.admin-container {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto
}
.admin-header {
  margin-bottom: 2rem
}
.admin-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2d3748;
  margin: 0 0 .5rem 0
}
.admin-subtitle {
  font-size: 1.25rem;
  color: #718096;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 1rem
}
.view-toggle {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: .5rem 1rem;
  font-size: .875rem;
  color: #4a5568;
  cursor: pointer;
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
  gap: .5rem
}
.view-toggle:hover {
  background: #f7fafc;
  border-color: #cbd5e0
}
.view-toggle i {
  font-size: 1rem
}
.admin-alert {
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 0.5rem
}
.admin-alert i {
  flex-shrink: 0
}
.admin-alert-danger {
  background-color: #fee;
  border-color: #fcc;
  color: #c53030
}
.admin-alert-success {
  background-color: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534
}
.admin-alert-close {
  background: 0 0;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  color: inherit;
  opacity: .5;
  cursor: pointer;
  padding: 0;
  margin-left: 1rem
}
.admin-alert-close:hover {
  opacity: .8
}
.admin-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
  margin-bottom: 2rem
}
.admin-card-header {
  background: linear-gradient(135deg,#667eea 0,#764ba2 100%);
  color: #fff;
  padding: 1.5rem;
  border-bottom: none;
  display: flex;
  justify-content: space-between;
  align-items: center
}
.admin-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: .75rem
}
.admin-card-title i {
  color: #fff
}
.admin-card-body {
  padding: 1.5rem
}
.admin-add-button {
  background: #fff;
  color: #667eea;
  border: none;
  border-radius: 6px;
  padding: .75rem 1.25rem;
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
  gap: .5rem
}
.admin-add-button:hover {
  background: #f7fafc;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,.1)
}
.admin-add-button:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none
}
.admin-table {
  width: 100%;
  border-collapse: collapse
}
.admin-table thead th {
  background: #f7fafc;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: .875rem;
  color: #4a5568;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 2px solid #e2e8f0;
  position: relative
}
.admin-table thead th.sortable {
  cursor: pointer;
  user-select: none
}
.admin-table thead th.sortable:hover {
  background: #edf2f7
}
.admin-table thead th .sort-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: .75rem;
  color: #a0aec0
}
.admin-table tbody tr {
  border-bottom: 1px solid #e2e8f0;
  transition: background-color .15s ease
}
.admin-table tbody tr:hover {
  background-color: #f7fafc
}
.admin-table tbody td {
  padding: 1rem;
  vertical-align: middle;
  color: #2d3748;
  overflow: hidden;
  text-overflow: ellipsis
}
.admin-table td:last-child,
.admin-table th:last-child {
  width: auto;
  white-space: nowrap
}
.admin-badge {
  display: inline-block;
  padding: .25rem .75rem;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 9999px
}
.admin-badge-active {
  background-color: #d1fae5;
  color: #065f46
}
.admin-badge-inactive {
  background-color: #e5e7eb;
  color: #4b5563
}
.admin-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem
}
.admin-spinner {
  width: 3rem;
  height: 3rem;
  border: 3px solid #e2e8f0;
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin .8s linear infinite
}
@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}
.admin-loading-text {
  margin-top: 1rem;
  color: #718096;
  font-size: .875rem
}
.admin-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,.5);
  z-index: 1040;
  display: flex;
  align-items: center;
  justify-content: center
}
.admin-modal {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,.1),0 10px 10px -5px rgba(0,0,0,.04);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column
}
.admin-modal-large {
  max-width: 800px
}
.admin-modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center
}
.admin-modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0
}
.admin-modal-close {
  background: 0 0;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #718096;
  cursor: pointer;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all .2s ease
}
.admin-modal-close:hover {
  background: #f7fafc;
  color: #4a5568
}
.admin-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1
}
.admin-modal-footer {
  padding: 1.5rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: .75rem
}
.admin-form-group {
  margin-bottom: 1.5rem
}
.admin-form-label {
  display: block;
  font-size: .875rem;
  font-weight: 500;
  color: #4a5568;
  margin-bottom: .5rem
}
.admin-form-control {
  width: 100%;
  padding: .75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #2d3748;
  background-color: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  transition: border-color .15s ease,box-shadow .15s ease
}
.admin-form-control:focus {
  outline: 0;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102,126,234,.1)
}
.admin-form-control:disabled {
  background-color: #f7fafc;
  opacity: .75;
  cursor: not-allowed
}
.admin-form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: 16px 12px;
  padding-right: 2.5rem
}
.admin-form-check {
  display: flex;
  align-items: center;
  margin-bottom: .5rem
}
.admin-form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: .5rem;
  border: 1px solid #cbd5e0;
  border-radius: 4px;
  cursor: pointer
}
.admin-form-check-label {
  cursor: pointer;
  user-select: none
}
.admin-validation-message {
  color: #e53e3e;
  font-size: .875rem;
  margin-top: .25rem;
  text-align: left;
  display: block
}
.admin-button {
  padding: .75rem 1.25rem;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
  gap: .5rem
}
.admin-button:disabled {
  opacity: .6;
  cursor: not-allowed
}
.admin-button-primary {
  background: #667eea;
  color: #fff;
  border-color: #667eea
}
.admin-button-primary:hover:not(:disabled) {
  background: #5a67d8;
  border-color: #5a67d8
}
.admin-button-secondary {
  background: #fff;
  color: #4a5568;
  border-color: #cbd5e0
}
.admin-button-secondary:hover:not(:disabled) {
  background: #f7fafc;
  border-color: #a0aec0
}
.admin-button-danger {
  background: #fff;
  color: #e53e3e;
  border-color: #e53e3e
}
.admin-button-danger:hover:not(:disabled) {
  background: #e53e3e;
  color: #fff
}
.admin-button-sm {
  padding: .5rem .75rem;
  font-size: .75rem
}
.admin-button-group {
  display: inline-flex;
  gap: .25rem
}
.admin-button-group .admin-button {
  border-radius: 0
}
.admin-button-group .admin-button:first-child {
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px
}
.admin-button-group .admin-button:last-child {
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px
}
.admin-code {
  font-family: 'Courier New',monospace;
  font-weight: 600;
  font-size: 1.1rem;
  color: #2d3748;
  background-color: #f7fafc;
  padding: .25rem .5rem;
  border-radius: 4px
}
.admin-empty-state {
  text-align: center;
  padding: 4rem 2rem
}
.admin-empty-icon {
  font-size: 3rem;
  color: #cbd5e0;
  margin-bottom: 1rem
}
.admin-empty-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #4a5568;
  margin: 0 0 .5rem 0
}
.admin-empty-text {
  color: #718096;
  margin: 0 0 1.5rem 0
}
.admin-filters {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem
}
.admin-filters-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  gap: .5rem
}
.admin-filters-title i {
  color: #667eea
}
.admin-filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 1rem
}
.admin-search-box {
  position: relative
}
.admin-search-input {
  width: 100%;
  padding: .75rem 1rem .75rem 2.5rem;
  font-size: .875rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff
}
.admin-search-icon {
  position: absolute;
  left: .75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #a0aec0;
  font-size: 1rem;
  pointer-events: none
}
.admin-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(350px,1fr));
  gap: 1.5rem;
  margin-top: 1.5rem
}
.organization-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
  transition: all .2s ease;
  height: 100%;
  display: flex;
  flex-direction: column
}
.organization-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0,0,0,.1);
  border-color: #667eea
}
.organization-card-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center
}
.organization-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0
}
.organization-card-body {
  padding: 1.5rem;
  flex: 1
}
.organization-card-detail {
  margin-bottom: .75rem
}
.organization-card-label {
  font-weight: 600;
  color: #4a5568;
  margin-right: .5rem
}
.organization-card-value {
  color: #2d3748
}
.organization-card-description {
  color: #718096;
  font-size: .875rem;
  margin-top: .5rem
}
.organization-card-footer {
  padding: 1rem 1.5rem;
  background: #f7fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 0 0 8px 8px
}
.organization-card-meta {
  font-size: .75rem;
  color: #718096
}
.user-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
  transition: all .2s ease;
  height: 100%;
  overflow: hidden
}
.user-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0,0,0,.1);
  border-color: #667eea
}
.user-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f7fafc
}
.user-card-info {
  flex: 1;
  min-width: 0
}
.user-card-header .admin-badge {
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: .5rem
}
.user-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2d3748;
  margin: 0 0 .25rem 0;
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: break-word
}
.user-card-email {
  font-size: 1.1rem;
  color: #4a5568;
  font-weight: 400;
  word-wrap: break-word;
  overflow-wrap: break-word
}
.user-card-details {
  background: #f7fafc;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1.5rem
}
.user-card-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem 0;
  border-bottom: 1px solid #e2e8f0
}
.user-card-detail-row:last-child {
  border-bottom: none
}
.user-card-detail-label {
  font-weight: 600;
  color: #718096;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .05em
}
.user-card-detail-value {
  font-size: 1rem;
  color: #2d3748;
  font-weight: 500;
  text-align: right
}
.user-card-no-data {
  color: #a0aec0;
  font-style: italic
}
.user-card-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap
}
.admin-form-group {
  margin-bottom: 1.25rem
}
.admin-ce-form-label {
  display: block;
  margin-bottom: .5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #2d3748;
  letter-spacing: .025em
}
.admin-ce-form-control {
  width: 100%;
  padding: .75rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #2d3748;
  background-color: #fff;
  border: 2px solid #e2e8f0;
  border-radius: .5rem;
  transition: all .2s ease
}
.admin-ce-form-control:focus {
  outline: 0;
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66,153,225,.1)
}
.admin-ce-form-control:disabled {
  background-color: #f7fafc;
  color: #a0aec0;
  cursor: not-allowed
}
.admin-ce-form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right .75rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem
}
textarea.admin-ce-form-control {
  min-height: 100px;
  resize: vertical
}
.admin-ce-form-check {
  display: flex;
  align-items: center;
  margin-bottom: 1rem
}
.admin-ce-form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: .75rem;
  border: 2px solid #cbd5e0;
  border-radius: .25rem;
  cursor: pointer
}
.admin-ce-form-check-input:checked {
  background-color: #4299e1;
  border-color: #4299e1
}
.admin-ce-form-check-label {
  font-size: 1rem;
  color: #4a5568;
  cursor: pointer;
  user-select: none
}
.admin-validation-message {
  color: #e53e3e;
  font-size: .875rem;
  margin-top: .25rem;
  text-align: left;
  display: block
}
.ce-card-stats {
  border-left: 4px solid var(--ce-primary);
  transition: transform .2s ease
}
.ce-card-stats:hover {
  transform: translateY(-2px)
}
.ce-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff
}
.ce-bg-primary {
  background-color: var(--ce-primary)
}
.ce-bg-info {
  background-color: var(--ce-info)
}
.ce-bg-danger {
  background-color: var(--ce-danger)
}
.ce-bg-success {
  background-color: var(--ce-success)
}
.ce-text-2xl {
  font-size: 2rem
}
.ce-progress-container {
  min-width: 120px
}
.ce-progress {
  height: 8px;
  background-color: var(--ce-gray-200);
  border-radius: 4px;
  overflow: hidden
}
.ce-progress-bar {
  height: 100%;
  background-color: var(--ce-primary);
  transition: width .3s ease
}
.ce-code-block {
  background-color: var(--ce-gray-900);
  color: var(--ce-gray-100);
  padding: 1rem;
  border-radius: var(--ce-radius-md);
  overflow-x: auto;
  max-height: 400px;
  overflow-y: auto
}
.ce-code-block pre {
  margin: 0;
  font-family: Consolas,Monaco,'Courier New',monospace;
  font-size: .875rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word
}
.admin-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .5rem
}
.admin-header-actions {
  display: flex;
  gap: 1rem;
  align-items: center
}
.admin-view-toggle {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: .625rem 1.25rem;
  font-size: .9rem;
  font-weight: 500;
  color: #4a5568;
  cursor: pointer;
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
  gap: .5rem
}
.admin-view-toggle:hover {
  background: #f7fafc;
  border-color: #0d6efd;
  color: #0d6efd
}
.admin-view-toggle.active {
  background: #0d6efd;
  border-color: #0d6efd;
  color: #fff
}
.admin-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: center
}
.admin-search-box {
  flex: 1;
  max-width: 400px;
  position: relative
}
.admin-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none
}
.admin-search-input {
  width: 100%;
  padding: .75rem 1rem .75rem 2.75rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: .95rem;
  transition: all .2s ease
}
.admin-search-input:focus {
  outline: 0;
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13,110,253,.1)
}
.admin-filter-toggle {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: .75rem 1.25rem;
  font-size: .9rem;
  font-weight: 500;
  color: #4a5568;
  cursor: pointer;
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  position: relative
}
.admin-filter-toggle:hover {
  background: #f7fafc;
  border-color: #0d6efd;
  color: #0d6efd
}
.admin-filter-toggle.active {
  background: #0d6efd;
  border-color: #0d6efd;
  color: #fff
}
.admin-filter-badge {
  background: #dc2626;
  color: #fff;
  padding: .125rem .375rem;
  border-radius: 10px;
  font-size: .75rem;
  font-weight: 600;
  margin-left: .25rem
}
.admin-filters {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  animation: slideDown .2s ease
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px)
  }
  to {
    opacity: 1;
    transform: translateY(0)
  }
}
.admin-ce-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
  margin-bottom: 2rem
}
.admin-ce-card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 2px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center
}
.admin-ce-card-title {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #2d3748
}
.admin-ce-card-count {
  background: #0d6efd;
  color: #fff;
  padding: .25rem .625rem;
  border-radius: 6px;
  font-size: .875rem;
  font-weight: 600
}
.admin-button-primary {
  background: #0d6efd;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: .75rem 1.5rem;
  font-size: .95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
  gap: .5rem
}
.admin-button-primary:hover:not(:disabled) {
  background: #0b5ed7;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13,110,253,.25)
}
.admin-button-primary:disabled {
  opacity: .5;
  cursor: not-allowed
}
.admin-table th {
  background: #f8fafc;
  font-weight: 600;
  color: #475569;
  padding: .875rem 1rem;
  white-space: nowrap
}
.admin-table th.sortable {
  cursor: pointer;
  user-select: none;
  transition: background .2s ease
}
.admin-table th.sortable:hover {
  background: #e2e8f0
}
.admin-table .sort-icon {
  margin-left: .5rem;
  color: #94a3b8;
  font-size: .875rem
}
.admin-table .sort-icon .fa-sort {
  opacity: .3
}
.admin-table .sort-icon .fa-sort-down,
.admin-table .sort-icon .fa-sort-up {
  color: #0d6efd
}

/* ============================================
   Assembly Mapping
   (migrated from AssemblyMapping/Index.razor.css)
   ============================================ */

.workflow-steps {
    margin: 0;
    padding-left: 1.25rem;
    line-height: 1.8;
}

.workflow-steps li {
    margin-bottom: 0.5rem;
}

.sample-file-note {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background-color: var(--bg-subtle, #f8f9fa);
    border-radius: 4px;
    font-size: 0.9rem;
}

.sample-file-note code {
    background-color: var(--bg-light, #e9ecef);
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
}

.upload-success {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background-color: #d1e7dd;
    border: 1px solid #badbcc;
    border-radius: 4px;
    color: #0f5132;
}

.upload-success i {
    margin-right: 0.5rem;
}

.loading-state {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    color: var(--text-muted);
}

.spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--border-color, #dee2e6);
    border-top-color: var(--primary-color, #0d6efd);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.ce-card-header-badge {
    display: flex;
    gap: 0.5rem;
}

.badge-mapped {
    padding: 0.25rem 0.5rem;
    background-color: #d1e7dd;
    color: #0f5132;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-unmapped {
    padding: 0.25rem 0.5rem;
    background-color: #fff3cd;
    color: #856404;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.ce-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.ce-table th,
.ce-table td {
    padding: 0.625rem 0.75rem;
    border-bottom: 1px solid var(--border-color, #dee2e6);
    text-align: left;
}

.ce-table th {
    font-weight: 600;
    background-color: var(--bg-subtle, #f8f9fa);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.ce-table tbody tr:hover {
    background-color: var(--bg-hover, #f8f9fa);
}

.unmapped-row {
    opacity: 0.6;
}

.mapped-icon {
    color: #198754;
}

.unmapped-icon {
    color: #adb5bd;
}

.family-count {
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.unmapped-note {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background-color: #fff3cd;
    border: 1px solid #ffecb5;
    border-radius: 4px;
    color: #856404;
    font-size: 0.875rem;
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.parent-row {
    background-color: var(--bg-subtle, #f8f9fa);
    font-weight: 500;
}

.parent-row td {
    border-top: 2px solid var(--border-color, #dee2e6);
}

.ce-alert {
    padding: 0.875rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ce-alert i {
    flex-shrink: 0;
}

.ce-alert-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.5;
}

.ce-alert-close:hover {
    opacity: 1;
}

.ce-alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
    color: #842029;
}

.ce-alert-success {
    background-color: #d1e7dd;
    border: 1px solid #badbcc;
    color: #0f5132;
}

/* ============================================
   Module Entitlements
   (migrated from ModuleEntitlements.razor.css)
   ============================================ */

.tab-card {
    border-top-left-radius: 0;
}

.module-column {
    text-align: center;
    min-width: 120px;
}

.module-icon {
    margin-right: 4px;
}

.module-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.plans-info-box {
    background: var(--surface-secondary, #f8f9fa);
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.plans-info-box h6 {
    margin: 0 0 0.5rem 0;
}

.plans-info-box p,
.plans-info-box ul {
    margin: 0;
    color: var(--text-muted, #6c757d);
}

.plans-info-box p {
    margin-bottom: 0.75rem;
}

.plans-info-box ul {
    padding-left: 1.5rem;
}

.plans-info-icon {
    color: var(--primary, #2563eb);
}

.user-search-dropdown {
    border: 1px solid var(--border-primary, #dee2e6);
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 4px;
    background: white;
}

.user-search-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-primary, #dee2e6);
}

.user-search-item:hover {
    background: var(--surface-secondary, #f8f9fa);
}

.user-search-item:last-child {
    border-bottom: none;
}

.user-search-email {
    color: var(--text-muted, #6c757d);
}

.selected-user-hint {
    color: var(--text-muted, #6c757d);
    margin-top: 4px;
    display: block;
}

.btn-spinner {
    width: 1rem;
    height: 1rem;
    border-width: 2px;
}