.admin-employer-shell {
  background: radial-gradient(circle at 40% 0%, #ffffff 0%, var(--cream) 48%, var(--cream-2) 100%);
}

.employer-app-main {
  width: min(100%, 1540px);
}

.employer-app-main .admin-topbar {
  min-height: 82px;
}

.admin-employer-drawer-open {
  overflow: hidden;
}

.refresh-btn,
.filter-btn {
  min-height: 40px;
  gap: 8px;
  padding-inline: 14px;
}

.refresh-btn svg,
.filter-btn svg,
.employer-stat-icon svg,
.search-field svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.employer-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 34px 0 18px;
}

.employer-stat-card {
  min-height: 118px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 4px 16px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow-soft);
}

.employer-stat-icon {
  width: 52px;
  height: 52px;
  grid-row: span 3;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
}

.tone-gold {
  color: var(--gold);
  background: #fbf0dc;
}

.tone-green {
  color: var(--green);
  background: #e6f5e8;
}

.tone-danger {
  color: var(--danger);
  background: #fde8e8;
}

.tone-blue {
  color: #4f46e5;
  background: #ecebff;
}

.employer-stat-card strong {
  align-self: end;
  font-family: Fraunces, Georgia, serif;
  font-size: 30px;
  line-height: 1;
}

.employer-stat-card span:not(.employer-stat-icon) {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.employer-stat-card small {
  color: var(--muted);
  font-size: 12px;
}

.employer-table-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow-soft);
}

.employer-filters {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(135px, 0.7fr) minmax(135px, 0.7fr) minmax(135px, 0.7fr) auto;
  gap: 16px;
  align-items: end;
  padding: 22px 22px 20px;
  border-bottom: 1px solid var(--line);
}

.employer-filters label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.employer-filters input,
.employer-filters select,
.employer-pagination select {
  min-height: 40px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fffdf8;
  color: var(--ink);
  font-size: 13px;
}

.employer-filters input {
  padding: 0 38px 0 14px;
}

.employer-filters select,
.employer-pagination select {
  padding: 0 12px;
}

.search-field {
  position: relative;
}

.search-field svg {
  position: absolute;
  right: 13px;
  bottom: 11px;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
}

.employer-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.employer-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.employer-table th,
.employer-table td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
}

.employer-table th {
  color: #37405b;
  font-size: 11px;
  font-weight: 900;
}

.employer-table tbody tr.is-selected {
  background: #fff6e5;
}

.employer-table tbody tr:hover {
  background: rgba(251, 240, 220, 0.5);
}

.employer-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.employer-avatar,
.detail-avatar {
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #fbf0dc;
  color: #7a520e;
  font-weight: 900;
  overflow: hidden;
}

.employer-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  font-size: 12px;
}

.employer-cell strong,
.employer-cell small {
  display: block;
  min-width: 0;
}

.employer-cell small,
.muted-cell {
  color: var(--muted);
}

.employer-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.employer-status.approved {
  color: var(--green);
  background: #dff4e4;
}

.employer-status.pending {
  color: #a86d09;
  background: #fff0d0;
}

.employer-status.rejected {
  color: var(--danger);
  background: #fde8e8;
}

.employer-pagination {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 22px;
  color: var(--muted);
  font-size: 12px;
}

.page-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-controls button {
  min-width: 34px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fffdf8;
  color: var(--ink);
  font-weight: 700;
}

.page-controls button.is-active {
  border-color: var(--navy);
  background: var(--navy);
  color: #ffffff;
}

.employer-pagination label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.employer-detail-panel {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 1600;
  width: min(560px, calc(100vw - 32px));
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border-left: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.98);
  box-shadow: -22px 0 60px rgba(3, 17, 41, 0.18);
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.28s ease, visibility 0s linear 0.28s;
}

.employer-detail-panel.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.28s ease, visibility 0s;
}

.employer-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1550;
  background: rgba(3, 17, 41, 0.42);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.employer-drawer-backdrop.is-open {
  opacity: 1;
}

.employer-drawer-backdrop[hidden] {
  display: none;
}

.employer-panel-close {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 26px;
}

.employer-detail {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.employer-drawer-tabs {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.detail-loading,
.detail-empty {
  padding: 32px 24px;
  color: var(--muted);
}

.employer-detail h2,
.detail-loading h2,
.detail-empty h2 {
  margin: 0 0 22px;
  font-family: Fraunces, Georgia, serif;
  font-size: 20px;
}

.detail-drawer-header {
  padding: 28px 24px 0;
}

.detail-person {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.detail-avatar {
  width: 62px;
  height: 62px;
  font-size: 20px;
}

.detail-person strong,
.detail-person small {
  display: block;
}

.detail-person strong {
  font-size: 16px;
}

.detail-person small {
  color: var(--muted);
}

.detail-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-person-meta {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.detail-tag {
  padding: 4px 9px;
  border-radius: 6px;
  background: #f1eee6;
  color: #30374d;
  font-size: 11px;
  font-weight: 800;
}

.detail-tag.approved {
  color: var(--green);
  background: #e6f5e8;
}

.detail-tag.rejected {
  color: var(--danger);
  background: #fde8e8;
}

.employer-tabs {
  display: flex;
  gap: 22px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
}

.employer-tab {
  min-height: 44px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.employer-tab.is-active {
  border-color: #1d39b8;
  color: #1d39b8;
}

.employer-tab-panel {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 6px 24px 160px;
}

.employer-tab-panel[hidden] {
  display: none;
}

.detail-section {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.detail-section:first-child {
  border-top: 0;
}

.detail-section h3 {
  margin: 0 0 14px;
  font-size: 13px;
}

.detail-list {
  display: grid;
  gap: 12px;
}

.detail-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.detail-row strong,
.detail-row a {
  justify-self: end;
  color: var(--ink);
  text-align: right;
}

.drawer-decision {
  position: sticky;
  bottom: 0;
  margin-top: auto;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 -14px 34px rgba(3, 17, 41, 0.08);
}

.drawer-decision h3 {
  margin: 0 0 12px;
  font-size: 14px;
}

.decision-card {
  display: grid;
  gap: 12px;
}

.decision-field {
  display: grid;
  gap: 8px;
}

.decision-field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.decision-field textarea {
  min-height: 96px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  padding: 12px 14px;
  color: var(--ink);
  font-size: 13px;
}

.notes-counter {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.decision-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px;
}

.decision-action {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  font-weight: 900;
}

.decision-action.approve {
  border-color: var(--green);
  background: var(--green);
  color: #ffffff;
}

.decision-action.reject {
  border-color: var(--danger);
  background: #ffffff;
  color: var(--danger);
}

.decision-action.secondary {
  color: var(--ink);
  background: #fffdf8;
}

.decision-action:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.inline-message {
  padding: 12px;
  border-radius: 7px;
  background: #fff6e5;
  color: #6f4f13;
  font-size: 12px;
}

.inline-message.error {
  color: var(--danger);
  background: #fde8e8;
}

.inline-message.success {
  color: var(--green);
  background: #e6f5e8;
}

.drawer-empty-state {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 9px;
  background: rgba(255, 246, 229, 0.45);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 1240px) {
  .employer-detail-panel {
    width: min(480px, 100vw);
  }

  .employer-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .employer-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .employer-detail-panel {
    width: 100vw;
  }

  .employer-stats,
  .employer-filters,
  .decision-actions {
    grid-template-columns: 1fr;
  }

  .employer-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .employer-table th,
  .employer-table td {
    padding: 13px 14px;
  }
}
