:root {
  color-scheme: light;
  --red: #cf142b;
  --ink: #202124;
  --muted: #68707d;
  --line: #d9dde5;
  --bg: #f6f7f9;
  --panel: #ffffff;
  --gold: #b97916;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
}

.shell {
  width: min(1520px, calc(100% - 24px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.form-page {
  background: #f7f8fb;
}

.form-shell {
  max-width: 820px;
}

.form-head,
.admin-top {
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--red);
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: 30px;
  letter-spacing: 0;
}

.form-head p:last-child {
  color: var(--muted);
  line-height: 1.7;
}

.form-section-title {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: 0.03em;
}

.form-section + .form-section {
  margin-top: 22px;
}

.recruit-banner {
  display: block;
  width: 100%;
  height: auto;
  margin: 16px 0;
  border-radius: 8px;
}

.recruit-banner-note {
  margin: 8px 0 14px;
  color: #c0c4cc;
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.panel,
.filters,
.stats,
.table-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.panel {
  padding: 22px;
}

.grid {
  display: grid;
  gap: 16px;
}

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

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  font-weight: 650;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  font: inherit;
  background: #fff;
}

textarea {
  resize: vertical;
}

button,
.export {
  border: 0;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  font-weight: 700;
  text-decoration: none;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.secondary {
  background: #2f6f55;
}

.danger {
  background: #8f1d2c;
}

.small-delete {
  min-height: 34px;
  padding: 0 12px;
}

.detail-button {
  min-height: 34px;
  padding: 0 12px;
  margin-right: 8px;
  background: #2f6f55;
}

.name-detail {
  min-height: auto;
  padding: 0;
  background: transparent;
  color: var(--red);
  font-weight: 800;
  text-align: left;
}

.primary {
  width: 100%;
  margin-top: 4px;
}

.message {
  min-height: 24px;
  color: var(--muted);
}

.hidden {
  display: none !important;
}

.success {
  color: #167a3a;
}

.error {
  color: var(--red);
}

.field-error {
  display: block;
  margin-top: 6px;
  color: #cf142b;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

input.field-invalid,
select.field-invalid,
textarea.field-invalid {
  border-color: #cf142b;
}

label.field-invalid {
  border-radius: 10px;
  outline: 2px solid rgba(207, 20, 43, 0.18);
  outline-offset: 4px;
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 14px;
}

.stats div {
  padding: 18px;
  background: #fff;
}

.stats span {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--red);
}

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

.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
  margin-bottom: 14px;
}

.filters label {
  margin: 0;
}

.table-wrap {
  max-height: calc(100vh - 310px);
  overflow: auto;
  position: relative;
}

.table-wrap th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fafafa;
  box-shadow: 0 1px 0 var(--line);
}

table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  min-width: 0;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
  white-space: normal;
  word-break: break-word;
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fafafa;
  color: #3d4451;
  font-size: 14px;
}

th:nth-child(1),
td:nth-child(1) {
  width: 44px;
  text-align: center;
}

th:nth-child(2),
td:nth-child(2),
th:nth-child(8),
td:nth-child(8) {
  width: 116px;
}

th:nth-child(3),
td:nth-child(3),
th:nth-child(4),
td:nth-child(4) {
  width: 92px;
}

th:nth-child(5),
td:nth-child(5),
th:nth-child(6),
td:nth-child(6),
th:nth-child(9),
td:nth-child(9),
th:nth-child(10),
td:nth-child(10),
th:nth-child(12),
td:nth-child(12) {
  width: 68px;
}

th:nth-child(7),
td:nth-child(7) {
  width: 118px;
}

th:nth-child(11),
td:nth-child(11) {
  width: 142px;
}

th:nth-child(13),
td:nth-child(13) {
  width: 118px;
}

.time-cell,
.wrap-cell,
.note-cell {
  white-space: normal;
}

.status-select {
  min-width: 112px;
  padding: 8px;
}

.phone-copy {
  min-height: auto;
  padding: 0;
  background: transparent;
  color: #1f5f9f;
  font-weight: 700;
  text-align: left;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  color: var(--muted);
}

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

#pageInfo {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  white-space: nowrap;
}

.page-controls button {
  min-height: 34px;
  padding: 0 12px;
}

.page-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
.page-size {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  font-size: 13px;
  color: var(--muted);
  margin: 0 4px 0 0;
  white-space: nowrap;
}
.page-size select {
  width: 82px;
  height: 34px;
  margin: 0;
  padding: 0 26px 0 10px;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  vertical-align: middle;
}
.page-size select:focus {
  outline: none;
  border-color: var(--red);
}

.admin-toast-container {
  position: fixed;
  top: 82px;
  right: 20px;
  z-index: 55;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(360px, calc(100vw - 24px));
  pointer-events: none;
}

.admin-toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 260px;
  max-width: 360px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: #1f2937;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  pointer-events: auto;
  animation: admin-toast-enter 220ms ease;
}

.admin-toast--leaving {
  animation: admin-toast-leave 200ms ease forwards;
}

.admin-toast__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

.admin-toast--success .admin-toast__icon {
  background: #dcfce7;
  color: #15803d;
}

.admin-toast--error .admin-toast__icon {
  background: #fee2e2;
  color: #b91c1c;
}

.admin-toast--warning .admin-toast__icon {
  background: #ffedd5;
  color: #c2410c;
}

.admin-toast--info .admin-toast__icon {
  background: #dbeafe;
  color: #1d4ed8;
}

.admin-toast__message {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.admin-toast__close {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #9ca3af;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.admin-toast__close:hover,
.admin-toast__close:focus-visible {
  background: #f3f4f6;
  color: #4b5563;
}

@keyframes admin-toast-enter {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes admin-toast-leave {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-toast {
    animation: none;
  }

  .admin-toast--leaving {
    animation: none;
    opacity: 0;
  }
}

@media (max-width: 760px) {
  .admin-toast-container {
    top: 72px;
    right: 12px;
    left: 12px;
    width: auto;
  }

  .admin-toast {
    min-width: 0;
    max-width: none;
    width: 100%;
  }
}

.detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(18, 24, 38, 0.46);
}

.detail-modal {
  width: min(720px, 100%);
  max-height: min(86vh, 760px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(17, 24, 39, 0.22);
}

.detail-head,
.detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.detail-head h2 {
  margin: 0;
  font-size: 20px;
}

.detail-close {
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  background: #eef1f5;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.detail-text {
  margin: 0;
  padding: 18px;
  overflow: auto;
  color: #111827;
  font: 700 18px/1.75 "Microsoft YaHei", "PingFang SC", sans-serif;
  white-space: pre-wrap;
}

.detail-actions {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.detail-cancel {
  background: #eef1f5;
  color: var(--ink);
}

@media (max-width: 760px) {
  .two,
  .filters,
  .stats {
    grid-template-columns: 1fr;
  }

  .admin-top {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: 25px;
  }
}

/* Admin audit log modal */
body.admin-visual .audit-logs-modal {
  width: min(1120px, calc(100vw - 32px));
  max-width: 1120px;
}

body.admin-visual .audit-logs-modal .detail-head small {
  display: block;
  margin-top: 3px;
  color: #94a3b8;
  font-size: 12px;
}

body.admin-visual .audit-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

body.admin-visual .audit-table-wrap {
  max-height: min(62vh, 620px);
  overflow: auto;
  border: 1px solid #e5eaf1;
  border-radius: 6px;
}

body.admin-visual table.audit-logs-table {
  width: 100%;
  min-width: 980px;
  table-layout: fixed;
  border-collapse: collapse;
}

body.admin-visual .audit-logs-table th,
body.admin-visual .audit-logs-table td {
  width: auto !important;
  min-width: 0 !important;
  padding: 9px 8px !important;
  text-align: left !important;
  white-space: nowrap !important;
  word-break: normal !important;
}

body.admin-visual .audit-logs-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
  font-size: 12px;
}

body.admin-visual .audit-logs-table td {
  border-bottom: 1px solid #edf1f7;
  font-size: 12px;
}

body.admin-visual .audit-logs-table th:nth-child(1) { width: 150px !important; }
body.admin-visual .audit-logs-table th:nth-child(2) { width: 100px !important; }
body.admin-visual .audit-logs-table th:nth-child(3) { width: 90px !important; }
body.admin-visual .audit-logs-table th:nth-child(4) { width: 120px !important; }
body.admin-visual .audit-logs-table th:nth-child(5) { width: 110px !important; }
body.admin-visual .audit-logs-table th:nth-child(6) { width: 90px !important; }
body.admin-visual .audit-logs-table th:nth-child(7),
body.admin-visual .audit-logs-table th:nth-child(8) { width: 120px !important; }


.success-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 24, 39, 0.68);
}

.success-modal {
  width: min(680px, 100%);
  padding: 42px 30px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: center;
  box-shadow: 0 24px 80px rgba(17, 24, 39, 0.3);
}

.success-modal h2 {
  margin: 0 0 20px;
  color: #167a3a;
  font-size: 42px;
}

.success-modal p {
  margin: 12px 0;
  font-size: 22px;
  line-height: 1.6;
}

.success-strong,
.success-example {
  font-weight: 800;
}

.success-ok {
  margin-top: 24px;
  min-width: 180px;
  min-height: 52px;
  font-size: 18px;
}


th:nth-child(4),
td:nth-child(4),
.phone-cell {
  min-width: 118px;
  width: 118px;
  white-space: nowrap;
}

.status-select {
  border-color: transparent;
  font-weight: 700;
}
.status-select.status-pending { background: #f3f4f6; color: #6b7280; }
.status-select.status-arrived { background: #e0f2fe; color: #0369a1; }
.status-select.status-pass { background: #dcfce7; color: #15803d; }
.status-select.status-pass-abandon { background: #ffedd5; color: #c2410c; }
.status-select.status-fail { background: #fdecec; color: #b42318; }
.status-select.status-abandon { background: #fed7aa; color: #c2410c; }
.status-select.status-onboard { background: #dbeafe; color: #1e40af; }

.compact-stats { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); border-radius: 8px; box-shadow: 0 8px 24px rgba(15,23,42,.06); }
.compact-stats div { padding: 14px 16px; }
.compact-stats span { font-size: 24px; line-height: 1; }
.compact-stats small { display:block; margin-top:6px; }
.compact-stats .stat-muted span { color:#6b7280; font-size:20px; }
.compact-stats .stat-muted small { color:#8a93a3; }
.admin-shell table { min-width: 0; }
.admin-shell th, .admin-shell td { padding: 8px 6px; line-height: 1.35; }
.admin-shell th { font-size: 13px; }
.time-cell { white-space: nowrap; font-size: 13px; color: #4b5563; }
th:nth-child(4), td:nth-child(4), .phone-cell { min-width: 118px; width: 118px; white-space: nowrap; }
th:nth-child(5), td:nth-child(5), th:nth-child(6), td:nth-child(6) { white-space: nowrap; }
.phone-copy { white-space: nowrap; }
.status-select { border-radius: 999px; min-width: 92px; padding: 6px 26px 6px 10px; }
.note-cell { max-width: 180px; white-space: normal; }
.note-edit { display:block; width:100%; min-height:0; padding:0; overflow:hidden; border:0; background:transparent; color:#4b5563; font-weight:500; text-align:left; text-overflow:clip; white-space:normal; }
.note-edit:hover { color: var(--red); text-decoration: underline; }


/* Codex visual polish: admin page only */
body.admin-visual{background:#f8fafc;color:#111827}body.admin-visual .admin-shell{max-width:none;padding:22px 0 30px}body.admin-visual .admin-top{align-items:center;margin-bottom:18px}body.admin-visual .admin-top h1{font-size:22px;font-weight:800;color:#111827}body.admin-visual .actions{gap:12px}body.admin-visual .actions button,body.admin-visual .actions a{min-height:38px;padding:0 18px;border-radius:6px;font-size:14px;font-weight:700;box-shadow:0 8px 18px rgba(15,23,42,.08)}body.admin-visual #batchDeleteBtn{border:1px solid #ef4444;background:#fff;color:#dc2626;box-shadow:none}body.admin-visual .actions .export{border:1px solid #20a46b;background:linear-gradient(135deg,#21b879,#148f62);color:#fff}body.admin-visual .visual-stats{grid-template-columns:repeat(4,minmax(180px,1fr));gap:16px;margin-bottom:16px;padding:14px;border:1px solid #edf1f7;border-radius:8px;background:#fff;box-shadow:0 10px 28px rgba(15,23,42,.06)}body.admin-visual .visual-stats div{min-height:86px;padding:18px 22px;border:1px solid #eef2f7;border-radius:8px;background:linear-gradient(135deg,#f6f9ff 0%,#fff 100%);box-shadow:none}body.admin-visual .visual-stats div:nth-child(3){background:linear-gradient(135deg,#ecfdf5 0%,#fff 100%)}body.admin-visual .visual-stats span{display:block;font-size:28px;line-height:1;font-weight:800;color:#111827}body.admin-visual .visual-stats small{display:block;margin-top:8px;font-size:14px;font-weight:700;color:#374151}body.admin-visual .visual-stats .stat-muted span,body.admin-visual .visual-stats .stat-muted small{color:#6b7280}body.admin-visual .filters,body.admin-visual .table-wrap{border:1px solid #edf1f7;border-radius:8px;background:#fff;box-shadow:0 10px 28px rgba(15,23,42,.05)}body.admin-visual .filters{grid-template-columns:1.08fr 1.2fr 1fr 1fr;gap:18px 24px;margin-bottom:16px;padding:22px}body.admin-visual .filters label{gap:10px;font-size:14px;font-weight:800;color:#111827}body.admin-visual input,body.admin-visual select,body.admin-visual textarea{border-color:#d9e0ea;border-radius:5px;background:#fff}body.admin-visual .table-wrap{overflow:visible;position:static}body.admin-visual table{width:100%;min-width:0;border-collapse:separate;border-spacing:0;background:#fff}body.admin-visual thead th{position:sticky;top:0;z-index:3;padding:13px 12px;border-bottom:1px solid #e8edf4;background:#fff;color:#1f2937;font-size:13px;font-weight:800;white-space:nowrap}body.admin-visual tbody td{padding:11px 12px;border-bottom:1px solid #edf1f7;color:#111827;font-size:13px;line-height:1.35;vertical-align:middle}body.admin-visual tbody tr:hover{background:#f8fbff}body.admin-visual .name-detail{color:#dc2626;font-weight:800}body.admin-visual .time-cell,body.admin-visual .phone-cell,body.admin-visual .phone-copy{white-space:nowrap}body.admin-visual th:nth-child(4),body.admin-visual td:nth-child(4),body.admin-visual .phone-cell{min-width:118px;width:118px}body.admin-visual .phone-copy{color:#2563eb;font-weight:700}body.admin-visual .status-select{min-width:76px;max-width:96px;height:28px;padding:3px 24px 3px 10px;border:0;border-radius:6px;font-size:12px;font-weight:800;text-align:center;box-shadow:none}body.admin-visual .status-select.status-pending{background:#f3f4f6;color:#6b7280}body.admin-visual .status-select.status-pass{background:#dcfce7;color:#15803d}body.admin-visual .status-select.status-fail{background:#fee2e2;color:#b91c1c}body.admin-visual .status-select.status-abandon{background:#fed7aa;color:#c2410c}body.admin-visual .status-select.status-onboard{background:#dbeafe;color:#1e40af}body.admin-visual .note-cell{max-width:180px;white-space:normal}body.admin-visual .pagination{margin-top:14px;color:#374151}body.admin-visual .pagination button{min-height:34px;border-radius:6px}@media(max-width:900px){body.admin-visual .admin-shell{padding:16px 0}body.admin-visual .visual-stats{grid-template-columns:repeat(2,minmax(0,1fr))}body.admin-visual .filters{grid-template-columns:1fr}}


.interview-time-edit {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.interview-time-edit:hover {
  color: var(--red);
  text-decoration: underline;
}

.interview-time-input {
  width: 148px;
  min-width: 148px;
  padding: 5px 7px;
  font-size: 13px;
}

.admin-login-view {
  min-height: 100vh;
  overflow-x: hidden;
  background: linear-gradient(160deg, #eff6ff 0%, #f8fafc 45%, #eef2ff 100%);
}

.admin-login-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.admin-login-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.admin-login-blob-tr {
  top: -80px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.14) 0%, rgba(59, 130, 246, 0) 70%);
}

.admin-login-blob-bl {
  bottom: -100px;
  left: -70px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0) 72%);
}

.admin-login-blob-br {
  right: 8%;
  bottom: 10%;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.12) 0%, rgba(96, 165, 250, 0) 70%);
}

.admin-login-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 32px 32px 28px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(30, 64, 175, 0.1);
}

.admin-login-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.admin-login-logo {
  display: block;
  width: auto;
  height: 42px;
  object-fit: contain;
}

.admin-login-card h1 {
  margin: 0 0 24px;
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
}

.admin-login-field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
}

.admin-login-card input[type="text"],
.admin-login-card input[type="password"],
.admin-login-card input:not([type]) {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
}

.admin-login-card input[type="text"]::placeholder,
.admin-login-card input[type="password"]::placeholder {
  color: #94a3b8;
}

.admin-login-card input[type="text"]:focus,
.admin-login-card input[type="password"]:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.remember-row {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #4b5563;
  font-weight: 700;
}

.admin-login-remember {
  margin-bottom: 14px;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
}

.remember-row input {
  width: auto;
}

.login-error {
  min-height: 22px;
  margin-bottom: 10px;
  color: #dc2626;
  font-size: 14px;
  font-weight: 700;
}

.admin-login-card .admin-login-submit {
  width: 100%;
  min-height: 46px;
  margin-top: 4px;
  border: 1px solid #2563eb;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.admin-login-card .admin-login-submit:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.logout-button {
  background: #eef1f5;
  color: #111827;
}

@media (max-width: 560px) {
  .admin-login-shell {
    padding: 16px;
  }

  .admin-login-card {
    padding: 24px 18px 22px;
  }

  .admin-login-logo {
    height: 36px;
  }
}

.admin-login-view.hidden { display: none; }
#adminApp.hidden { display: none; }

.date-picker-popup {
  position: absolute;
  z-index: 200;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.15);
  padding: 6px;
  font-size: 12px;
  width: 240px;
  user-select: none;
}
.dp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 2px;
  font-weight: 600;
  color: #374151;
}
.dp-header .dp-nav {
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 14px;
  padding: 2px 6px;
  color: #6b7280;
}
.dp-header .dp-nav:hover { color: #111827; }
.dp-title { font-size: 13px; }
.dp-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 10px;
  color: #9ca3af;
  padding: 3px 0 1px;
}
.dp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  padding: 2px 0;
}
.dp-day {
  text-align: center;
  padding: 5px 0;
  cursor: pointer;
  border-radius: 3px;
  font-size: 12px;
}
.dp-day:hover { background: #f3f4f6; }
.dp-day.selected { background: #ef4444; color: #fff; font-weight: 600; }
.dp-day.empty { color: transparent; cursor: default; }
.dp-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  border-top: 1px solid #f3f4f6;
  padding-top: 5px;
  margin-top: 4px;
}
.dp-actions .dp-btn {
  font-size: 11px;
  padding: 2px 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  color: #374151;
}
.dp-actions .dp-btn:hover { background: #f9fafb; }

.store-cell {
  min-width: 180px;
  max-width: 280px;
}
.store-cell,
.store-edit {
  white-space: normal;
  word-break: break-word;
  line-height: 1.35;
  overflow: visible;
  text-overflow: clip;
}
.store-edit {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  max-width: 100%;
}
.store-edit:hover {
  color: var(--red);
  text-decoration: underline;
}
.store-edit-empty {
  color: #9ca3af;
  text-decoration: underline;
  text-decoration-style: dashed;
  text-underline-offset: 2px;
}
.store-edit-empty:hover {
  color: var(--red);
  text-decoration-style: solid;
}
.store-edit-input {
  width: 220px;
  padding: 2px 4px;
  font-size: 13px;
  border: 1px solid #d1d5db;
  border-radius: 3px;
}


/* Admin table fixed column widths */
body.admin-visual table {
  table-layout: fixed;
}
body.admin-visual th,
body.admin-visual td {
  overflow: hidden;
  vertical-align: middle;
}
body.admin-visual .admin-table thead th {
  overflow: visible;
}
body.admin-visual th:nth-child(1), body.admin-visual td:nth-child(1) { width: 42px; }
body.admin-visual th:nth-child(2), body.admin-visual td:nth-child(2) { width: 90px; }
body.admin-visual th:nth-child(3), body.admin-visual td:nth-child(3) { width: 80px; }
body.admin-visual th:nth-child(4), body.admin-visual td:nth-child(4), body.admin-visual .phone-cell { width: 118px; min-width: 118px; }
body.admin-visual th:nth-child(5), body.admin-visual td:nth-child(5) { width: 56px; }
body.admin-visual th:nth-child(6), body.admin-visual td:nth-child(6) { width: 90px; }
body.admin-visual th:nth-child(7), body.admin-visual td:nth-child(7) { width: 100px; text-align: left; white-space: normal; word-break: break-word; }
body.admin-visual th:nth-child(8), body.admin-visual td:nth-child(8) { width: 95px; text-align: left; }
body.admin-visual th:nth-child(9), body.admin-visual td:nth-child(9) { width: 36px; text-align: center; }
body.admin-visual th:nth-child(10), body.admin-visual td:nth-child(10),
body.admin-visual th:nth-child(11), body.admin-visual td:nth-child(11),
body.admin-visual th:nth-child(12), body.admin-visual td:nth-child(12) { width: 36px; text-align: center; }

body.admin-visual th:nth-child(7), body.admin-visual td:nth-child(7),
body.admin-visual th:nth-child(8), body.admin-visual td:nth-child(8),
body.admin-visual th:nth-child(9), body.admin-visual td:nth-child(9),
body.admin-visual th:nth-child(10), body.admin-visual td:nth-child(10),
body.admin-visual th:nth-child(11), body.admin-visual td:nth-child(11),
body.admin-visual th:nth-child(12), body.admin-visual td:nth-child(12) {
  padding-left: 6px;
  padding-right: 6px;
}
body.admin-visual th:nth-child(13), body.admin-visual td:nth-child(13) { width: 110px; text-align: center; white-space: nowrap; word-break: normal; }
body.admin-visual th:nth-child(14), body.admin-visual td:nth-child(14) { width: 42px; text-align: center; }
body.admin-visual th:nth-child(15), body.admin-visual td:nth-child(15) { width: 80px; text-align: center; }
body.admin-visual th:nth-child(16), body.admin-visual td:nth-child(16) { width: 82px; text-align: center; white-space: nowrap; }
body.admin-visual th:nth-child(17), body.admin-visual td:nth-child(17) { width: 78px; text-align: center; white-space: nowrap; }
body.admin-visual th:nth-child(18), body.admin-visual td:nth-child(18),
body.admin-visual .work-days-list-column { width: 54px; text-align: center; white-space: nowrap; }
body.admin-visual th:nth-child(19), body.admin-visual td:nth-child(19) { width: 90px; text-align: left; white-space: nowrap; }
body.admin-visual th:nth-child(20), body.admin-visual td:nth-child(20) { width: 180px; white-space: normal; word-break: break-word; }
body.admin-visual th:nth-child(21), body.admin-visual td:nth-child(21) { width: 185px; text-align: left; white-space: nowrap; word-break: normal; }
body.admin-visual th:nth-child(22), body.admin-visual td:nth-child(22) { width: 110px; text-align: left; white-space: nowrap; word-break: normal; }
body.admin-visual th:nth-child(23), body.admin-visual td:nth-child(23) { width: 120px; text-align: left; white-space: nowrap; word-break: normal; }
body.admin-visual .revenue-cell,
body.admin-visual .commission-cell,
body.admin-visual .work-days-cell {
  white-space: nowrap;
  word-break: normal;
  font-variant-numeric: tabular-nums;
}
body.admin-visual .fee-standard-cell {
  max-width: 185px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: normal;
  font-variant-numeric: tabular-nums;
}
body.admin-visual .store-cell button,
body.admin-visual .note-cell button {
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  text-overflow: clip;
}



body.admin-visual .second-id-cell {
  white-space: nowrap;
  word-break: normal;
  font-variant-numeric: tabular-nums;
}

/* Admin name search clear button */
body.admin-visual .search-clear-wrap {
  position: relative;
  display: block;
}
body.admin-visual .search-clear-wrap input {
  width: 100%;
  padding-right: 28px;
}
body.admin-visual .filter-clear {
  display: none;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #999;
  font-size: 15px;
  line-height: 16px;
  font-weight: 400;
  cursor: pointer;
  box-shadow: none;
}
body.admin-visual .filter-clear.is-visible {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
body.admin-visual .filter-clear:hover {
  background: transparent;
  color: #666;
}


/* Admin compact filter layout */
body.admin-visual .filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: end;
  gap: 18px 16px;
}
body.admin-visual .filters label {
  flex: 0 0 auto;
}
body.admin-visual .filters label:nth-child(1) { width: 180px; }
body.admin-visual .filters label:nth-child(2) { width: 300px; }
body.admin-visual .filters label:nth-child(3) { width: 180px; }
body.admin-visual .filters label:nth-child(4) { width: 180px; }
body.admin-visual .filters label:nth-child(5) { width: 180px; }
body.admin-visual .filters input,
body.admin-visual .filters select,
body.admin-visual .filters .search-clear-wrap {
  width: 100%;
}
@media (max-width: 900px) {
  body.admin-visual .filters label {
    width: 100% !important;
  }
}


/* Admin density and sticky table refinements */
body.admin-visual .visual-stats {
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px;
}
body.admin-visual .visual-stats div {
  min-height: 62px;
  padding: 12px 18px;
}
body.admin-visual .visual-stats span {
  font-size: 26px;
}
body.admin-visual .visual-stats small {
  margin-top: 5px;
  font-size: 13px;
}
body.admin-visual .table-meta {
  display: flex;
  justify-content: flex-end;
  margin: -4px 2px 8px;
  color: #9ca3af;
  font-size: 12px;
}
body.admin-visual .table-wrap {
  max-height: none !important;
  overflow: visible !important;
  position: static !important;
}
body.admin-visual .admin-table,
body.admin-visual .table-wrap .admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
body.admin-visual .admin-table thead th {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 50;
  overflow: visible;
  background: #fff;
  padding-top: 10px;
  padding-right: 6px;
  padding-bottom: 10px;
  padding-left: 6px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08), 0 4px 10px rgba(15, 23, 42, 0.04);
}
body.admin-visual tbody td {
  padding-top: 8px;
  padding-right: 6px;
  padding-bottom: 8px;
  padding-left: 6px;
  font-size: 13px;
}
body.admin-visual .status-select.status-pending { background: #f5f6f8; color: #6b7280; }
body.admin-visual .status-select.status-arrived { background: #e8f4ff; color: #2563eb; }
body.admin-visual .status-select.status-pass { background: #e8f7ee; color: #24855a; }
body.admin-visual .status-select.status-pass-abandon { background: #fff1e6; color: #c05f28; }
body.admin-visual .status-select.status-fail { background: #fdeeee; color: #b94a48; }
body.admin-visual .status-select.status-abandon { background: #fff1e6; color: #c56a2d; }
body.admin-visual .status-select.status-onboard { background: #e8f1ff; color: #2b64b7; }



body.admin-visual .entry-date-input {
  width: 108px;
  min-height: 28px;
  padding: 3px 6px;
  border: 1px solid #d9e0ea;
  border-radius: 6px;
  color: #374151;
  font-size: 12px;
}

/* Admin employee type inline select */
body.admin-visual .employee-type-select {
  min-width: 98px;
  max-width: 116px;
  height: 28px;
  padding: 3px 22px 3px 8px;
  border: 0;
  border-radius: 6px;
  background: #f5f6f8;
  color: #374151;
  font-size: 12px;
  font-weight: 800;
  box-shadow: none;
}

body.admin-visual th:nth-child(10),
body.admin-visual td:nth-child(10) {
  width: 52px;
  padding-left: 3px;
  padding-right: 3px;
}

body.admin-visual .tattoo-select {
  width: 46px;
  min-width: 46px;
  height: 28px;
  padding: 3px 16px 3px 6px;
  font-size: 12px;
}


/* Admin add applicant modal */
body.admin-visual .add-applicant-backdrop {
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(2px);
}
body.admin-visual .add-applicant-modal {
  width: min(560px, calc(100vw - 32px));
  max-width: 560px;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}
body.admin-visual .add-applicant-modal .detail-head {
  padding: 16px 18px 12px;
}
body.admin-visual .add-applicant-modal .detail-head h2 {
  font-size: 18px;
}
body.admin-visual .add-applicant-modal .detail-close {
  width: 28px;
  height: 28px;
  padding: 0;
  color: #9ca3af;
  background: transparent;
  font-size: 20px;
  line-height: 1;
}
body.admin-visual .add-applicant-modal .detail-close:hover {
  color: #4b5563;
  background: #f3f4f6;
}
body.admin-visual .add-applicant-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  padding: 2px 18px 14px;
}
body.admin-visual .add-applicant-grid label {
  display: grid;
  gap: 5px;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}
body.admin-visual .add-applicant-grid input,
body.admin-visual .add-applicant-grid select,
body.admin-visual .add-applicant-grid textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
}
body.admin-visual .add-applicant-grid textarea {
  height: 64px;
  min-height: 64px;
  resize: vertical;
}
body.admin-visual #addOnboardDateField,
body.admin-visual .add-applicant-note {
  grid-column: 1 / -1;
}
body.admin-visual .add-applicant-modal .detail-actions {
  gap: 10px;
  padding: 12px 18px 16px;
}
body.admin-visual .add-applicant-modal .detail-actions button {
  width: auto;
  min-width: 104px;
  min-height: 36px;
  margin: 0;
  padding: 0 18px;
  border-radius: 6px;
}
body.admin-visual .add-applicant-modal .detail-actions .secondary {
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #4b5563;
}
body.admin-visual .add-applicant-modal .detail-actions .primary {
  border: 1px solid #20a46b;
  background: linear-gradient(135deg, #21b879, #148f62);
  color: #fff;
}
@media (max-width: 700px) {
  body.admin-visual .add-applicant-grid {
    grid-template-columns: 1fr;
  }
}

/* Admin note inline editor */
html,
body {
  overflow-x: hidden;
}

/* overflow on html/body breaks position:sticky — admin page must stay visible */
html:has(body.admin-visual),
body.admin-visual {
  overflow-x: visible;
  overflow-y: visible;
}

body.admin-visual .shell.admin-shell,
body.admin-visual .table-wrap {
  overflow: visible;
}
body.admin-visual .note-cell,
body.admin-visual .note-cell button,
body.admin-visual .note-edit {
  max-width: 100%;
  box-sizing: border-box;
}
body.admin-visual .note-cell {
  white-space: normal;
}
body.admin-visual .note-edit {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
  word-break: normal;
}
body.admin-visual .note-edit.note-empty {
  color: #9ca3af;
  font-weight: 500;
}
body.admin-visual .note-edit.note-has-content {
  color: #111827;
  font-weight: 600;
}
body.admin-visual .note-inline-input {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 30px;
  margin: 0;
  padding: 4px 6px;
  box-sizing: border-box;
  border: 1px solid #3b82f6;
  border-radius: 4px;
  outline: 0;
  background: #fff;
  color: #111827;
  font: inherit;
  line-height: 1.3;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.12);
}

/* Admin entry date and ID card modal */
body.admin-visual .entry-date-edit,
body.admin-visual .resignation-date-edit,
body.admin-visual .second-id-view {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2563eb;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
body.admin-visual .entry-date-edit:hover,
body.admin-visual .resignation-date-edit:hover,
body.admin-visual .second-id-view:hover {
  color: #1d4ed8;
  text-decoration: underline;
}
body.admin-visual .entry-date-input,
body.admin-visual .resignation-date-input {
  width: 118px;
}
body.admin-visual .id-card-backdrop {
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(2px);
}
body.admin-visual .id-card-modal {
  width: min(420px, calc(100vw - 32px));
  max-width: 420px;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}
body.admin-visual .id-card-content {
  padding: 4px 18px 18px;
  color: #111827;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
  word-break: break-all;
}
body.admin-visual .id-card-actions {
  gap: 10px;
  padding: 12px 18px 16px;
}
body.admin-visual .id-card-actions button {
  width: auto;
  min-width: 104px;
  min-height: 36px;
  margin: 0;
  padding: 0 18px;
  border-radius: 6px;
}

.employee-type-hint {
  display: block;
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #f9fafb;
  color: #9ca3af;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 500;
}

.employment-confirm {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 4px 0 16px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
}

.employment-confirm input {
  width: auto;
  margin-top: 3px;
  flex: 0 0 auto;
}

body.admin-visual td.name-cell {
  vertical-align: middle;
}
body.admin-visual .name-cell {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  line-height: normal;
}
body.admin-visual .name-cell .name-detail {
  display: inline;
  margin: 0;
  padding: 0;
  line-height: inherit;
  color: #2563eb;
  font-weight: 700;
}

body.admin-visual .name-cell .name-detail:hover {
  color: #1d4ed8;
  text-decoration: underline;
}
body.admin-visual .name-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  min-width: 12px;
  height: 12px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  vertical-align: middle;
  box-shadow: none;
}
body.admin-visual .name-copy:hover {
  background: transparent;
  color: #6b7280;
}
body.admin-visual .name-copy.is-copied {
  color: #16a34a;
}

.store-hint {
  display: block;
  margin-top: 4px;
  color: #8a8f98;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
}

.required-star {
  color: #e53935;
  margin-left: 4px;
  font-weight: 600;
}

.form-page label:has(> .required-star) {
  display: block;
}

.form-page label:has(> .required-star) > input,
.form-page label:has(> .required-star) > select,
.form-page label:has(> .required-star) > textarea {
  margin-top: 8px;
}

.required-star {
  display: inline-block;
  vertical-align: baseline;
}

.hint {
  display: block;
  margin-top: 6px;
  color: #8a8f98;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
}

.interview-date-display {
  box-sizing: border-box;
  height: 44px;
  color: var(--ink);
  font-size: inherit;
  font-weight: 400;
  line-height: normal;
  text-align: left;
  -webkit-text-fill-color: var(--ink);
  opacity: 1;
  cursor: pointer;
}

.interview-date-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.28);
}

.interview-date-modal {
  width: min(340px, calc(100vw - 32px));
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
}

.interview-date-header {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  text-align: center;
}

.interview-date-header strong {
  color: var(--ink);
  font-size: 15px;
}

.interview-date-nav,
.interview-date-cancel,
.interview-date-day {
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}

.interview-date-nav {
  background: #f3f4f6;
  color: #374151;
  font-size: 22px;
}

.interview-date-week,
.interview-date-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.interview-date-week {
  margin-bottom: 6px;
  color: #9ca3af;
  font-size: 12px;
  text-align: center;
}

.interview-date-day {
  background: #fff;
  color: #374151;
}

.interview-date-day:hover {
  background: #f3f4f6;
}

.interview-date-day.is-today {
  border: 1px solid #d1d5db;
}

.interview-date-day.is-selected {
  background: var(--red);
  color: #fff;
}

.interview-date-cancel {
  display: block;
  width: 100%;
  margin-top: 12px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #4b5563;
}

/* Mobile form – recruitment application style */
@media (max-width: 760px) {
  .form-page .shell.form-shell {
    width: min(100%, calc(100% - 32px));
    padding: 6px 0 28px;
  }

  .form-page .form-head {
    margin-bottom: 6px;
    text-align: center;
  }

  .form-page .form-head h1 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
  }

  .form-page .form-head p:last-child {
    font-size: 13px;
    line-height: 1.45;
    margin: 3px 0 0;
    color: #9ca3af;
    font-weight: 400;
  }

  .form-page .recruit-banner {
    width: 100%;
    max-height: 94px;
    object-fit: cover;
    object-position: center;
    margin: 4px 0 6px;
    border-radius: 11px;
  }

  .form-page .panel {
    padding: 18px 16px 32px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(15, 23, 42, 0.06);
  }

  .form-page .form-section-title {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
  }

  .form-page .form-section + .form-section {
    margin-top: 26px;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
  }

  .form-page .grid.two {
    grid-template-columns: 1fr;
  }

  .form-page .grid {
    gap: 0;
  }

  .form-page label {
    display: block;
    gap: 0;
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 650;
    color: #374151;
    line-height: 1.4;
  }

  .form-page label:has(> .required-star) > input,
  .form-page label:has(> .required-star) > select,
  .form-page label:has(> .required-star) > textarea {
    margin-top: 8px;
  }

  .form-page input:not([type="checkbox"]),
  .form-page select,
  .form-page .interview-date-display,
  .form-page textarea {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    background: #f8fafc;
    font-size: 15px;
    -webkit-appearance: none;
    appearance: none;
  }

  .form-page input:not([type="checkbox"]),
  .form-page select,
  .form-page .interview-date-display {
    height: 48px;
    min-height: 48px;
    padding: 0 14px;
  }

  .form-page select {
    background-color: #f8fafc;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239ca3af' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
  }

  .form-page textarea {
    height: auto;
    min-height: 96px;
    padding: 12px 14px;
    line-height: 1.5;
  }

  .form-page textarea[name="experience"] {
    min-height: 112px;
  }

  .form-page textarea[name="note"] {
    min-height: 80px;
  }

  .form-page .store-hint,
  .form-page .hint,
  .form-page .employee-type-hint {
    margin-top: 6px;
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.5;
  }

  .form-page .employee-type-hint {
    padding: 8px 10px;
    border-radius: 8px;
    background: #f3f4f6;
  }

  .form-page label:has(.store-hint),
  .form-page label:has(.hint),
  .form-page label:has(.employee-type-hint) {
    margin-bottom: 20px;
  }

  .form-page .field-error {
    font-size: 12px;
  }

  .form-page input::placeholder,
  .form-page textarea::placeholder {
    color: #9ca3af;
    font-size: 15px;
    font-weight: 400;
    opacity: 1;
  }

  .form-page select:invalid {
    color: #9ca3af;
    font-size: 15px;
    font-weight: 400;
  }

  .form-page select:valid {
    color: var(--ink);
    font-weight: 400;
  }

  .form-page .interview-date-display {
    font-weight: 400;
  }

  .form-page button.primary {
    width: 100%;
    height: 52px;
    min-height: 52px;
    margin-top: 12px;
    border-radius: 11px;
    background: #2563eb;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.24);
  }

  .form-page button.primary:active {
    background: #1d4ed8;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
  }

  .form-page .employment-confirm {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .form-page input.field-invalid,
  .form-page select.field-invalid,
  .form-page textarea.field-invalid {
    border-color: #cf142b;
    background: #fff5f5;
  }
}

/* PC form – sync with mobile card style */
@media (min-width: 761px) {
  .form-page .shell.form-shell {
    max-width: 1100px;
    width: min(1100px, calc(100% - 32px));
    padding: 20px 0 36px;
  }

  .form-page .form-head {
    margin-bottom: 14px;
  }

  .form-page .form-head h1 {
    font-size: 28px;
    font-weight: 600;
  }

  .form-page .form-head p:last-child {
    margin-top: 6px;
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.5;
  }

  .form-page .recruit-banner {
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    object-position: center;
    margin: 10px 0 12px;
    border-radius: 12px;
  }

  .form-page .panel {
    padding: 20px 24px 26px;
    border: 1px solid #e8ecf1;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  }

  .form-page .form-section-title {
    margin-bottom: 12px;
  }

  .form-page .form-section + .form-section {
    margin-top: 18px;
  }

  .form-page .grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-page .grid {
    gap: 12px 16px;
  }

  .form-page label {
    margin-bottom: 12px;
    gap: 6px;
  }

  .form-page button.primary {
    background: #2563eb;
    color: #fff;
  }

  .form-page button.primary:hover {
    background: #1d4ed8;
  }
}

.interview-choice-group {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

@media (min-width: 640px) {
  .interview-choice-group {
    grid-template-columns: 1fr 1fr;
  }
}

body.admin-visual .interview-time-edit {
  color: #2563eb;
  font-weight: 700;
}
body.admin-visual .interview-time-edit:hover {
  color: #1d4ed8;
}

body.admin-visual .interview-date-inline-input,
body.admin-visual .entry-date-inline-input,
body.admin-visual .resignation-date-inline-input {
  width: 116px;
  min-width: 116px;
  height: 28px;
  padding: 2px 6px;
  font-size: 13px;
}
/* Mobile admin table: no horizontal scroll, page-level scroll only */
@media (max-width: 768px) {
  body.admin-visual .table-wrap {
    width: 100%;
    max-width: 100%;
    overflow: visible;
    position: static;
  }

  body.admin-visual .table-wrap table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }
}

/* Administrator workbench */
.enterprise-nav-items span[role="button"] {
  cursor: pointer;
}

.enterprise-nav-items span[role="button"]:focus-visible {
  outline: 2px solid rgba(37, 99, 169, 0.35);
  outline-offset: -4px;
}

.workbench-view {
  display: grid;
  gap: 16px;
}

.brand-welcome {
  display: flex;
  min-height: clamp(520px, calc(100vh - 155px), 760px);
  padding: 56px 24px 84px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e4ebf4;
  border-radius: 10px;
  background: #f8fbff;
  text-align: center;
}

.brand-welcome-visual {
  display: flex;
  width: min(320px, 82vw);
  margin-bottom: 34px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.brand-welcome-main-logo {
  display: block;
  width: min(260px, 70vw);
  height: auto;
  object-fit: contain;
}

.brand-welcome-screen {
  padding: 10px;
  border: 1px solid #bfd2e8;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(41, 92, 145, 0.13);
}

.brand-welcome-screen-bar {
  display: flex;
  height: 22px;
  padding: 0 8px;
  align-items: center;
  gap: 5px;
  border-radius: 6px 6px 3px 3px;
  background: #edf4fb;
}

.brand-welcome-screen-bar i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9eb8d4;
}

.brand-welcome-screen-body {
  display: flex;
  height: 142px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border-radius: 3px 3px 7px 7px;
  background: #f7faff;
}

.brand-welcome-mark {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 10px 24px rgba(37, 99, 169, 0.2);
}

.brand-welcome-lines {
  display: grid;
  width: 92px;
  gap: 11px;
}

.brand-welcome-lines i {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: #c9d9ea;
}

.brand-welcome-lines i:nth-child(2) {
  width: 74%;
}

.brand-welcome-lines i:nth-child(3) {
  width: 48%;
}

.brand-welcome-base {
  width: 112px;
  height: 12px;
  margin: 0 auto;
  border-radius: 0 0 18px 18px;
  background: #d5e2ef;
}

.brand-welcome-kicker {
  color: #6f87a2;
  font-size: 13px;
  font-weight: 650;
}

.brand-welcome h1 {
  margin: 13px 0 0;
  color: #173d68;
  font-size: 30px;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-welcome p {
  margin: 13px 0 0;
  color: #71839a;
  font-size: 15px;
  line-height: 1.7;
}

.workbench-view.hidden,
.admin-section.hidden {
  display: none !important;
}

.workbench-hero,
.workbench-panel,
.workbench-overview {
  border: 1px solid #dbe5f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(29, 58, 98, 0.055);
}

.workbench-hero {
  display: flex;
  min-height: 128px;
  padding: 26px 28px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(108deg, #edf5fd 0%, #fff 58%, #f3f8fd 100%);
}

.workbench-eyebrow {
  display: inline-block;
  margin-bottom: 9px;
  color: #3974af;
  font-size: 12px;
  font-weight: 800;
}

.workbench-hero h1 {
  margin: 0;
  color: #163a64;
  font-size: 25px;
  font-weight: 850;
  letter-spacing: 0;
}

.workbench-hero p {
  margin: 9px 0 0;
  color: #697a91;
  font-size: 14px;
}

.workbench-primary-action {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid #2563a9;
  border-radius: 6px;
  background: #2563a9;
  color: #fff;
  font-size: 13px;
  font-weight: 750;
}

.workbench-primary-action:hover {
  border-color: #1d4f91;
  background: #1d4f91;
}

.workbench-overview {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
}

.workbench-overview article {
  min-width: 0;
  padding: 19px 18px;
  border-right: 1px solid #e5ebf2;
}

.workbench-overview article:last-child {
  border-right: 0;
}

.workbench-overview small {
  display: block;
  color: #718096;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.workbench-overview strong {
  display: block;
  margin-top: 10px;
  overflow: hidden;
  color: #1d4f91;
  font-size: 24px;
  font-weight: 850;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workbench-panel {
  padding: 18px 20px;
}

.workbench-panel-heading {
  display: flex;
  margin-bottom: 15px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.workbench-panel-heading h2 {
  margin: 0;
  color: #26384f;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
}

.workbench-panel-heading p {
  margin: 5px 0 0;
  color: #8491a3;
  font-size: 12px;
}

.workbench-text-action {
  padding: 0;
  border: 0;
  background: transparent;
  color: #2563a9;
  font-size: 13px;
  font-weight: 700;
}

.workbench-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.workbench-shortcut-grid button {
  min-width: 0;
  min-height: 76px;
  padding: 14px 15px;
  border: 1px solid #dce6f1;
  border-radius: 7px;
  background: #f8fbfe;
  color: #344054;
  text-align: left;
}

.workbench-shortcut-grid button:hover {
  border-color: #9ebcdc;
  background: #eef5fc;
}

.workbench-shortcut-grid strong,
.workbench-shortcut-grid span {
  display: block;
}

.workbench-shortcut-grid strong {
  color: #245b96;
  font-size: 14px;
  font-weight: 800;
}

.workbench-shortcut-grid span {
  margin-top: 6px;
  overflow: hidden;
  color: #7b8798;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workbench-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.8fr);
  gap: 16px;
}

.workbench-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.workbench-table {
  width: 100%;
  min-width: 680px;
  border-collapse: separate;
  border-spacing: 0;
}

.workbench-table th {
  padding: 10px 11px;
  border-bottom: 1px solid #d7e2ed;
  background: #f1f6fb;
  color: #52647a;
  font-size: 12px;
  font-weight: 750;
  text-align: left;
  white-space: nowrap;
}

.workbench-table td {
  padding: 11px;
  border-bottom: 1px solid #e8edf3;
  color: #344054;
  font-size: 12px;
  white-space: nowrap;
}

.workbench-table tr:last-child td {
  border-bottom: 0;
}

.workbench-detail-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #2563a9;
  font: inherit;
  font-weight: 750;
}

.workbench-pending-list {
  display: grid;
  gap: 8px;
}

.workbench-pending-item {
  display: flex;
  width: 100%;
  min-height: 54px;
  padding: 10px 11px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #e2e9f1;
  border-radius: 6px;
  background: #fbfcfe;
  color: #344054;
  text-align: left;
}

.workbench-pending-item:hover {
  border-color: #b8cee4;
  background: #f2f7fc;
}

.workbench-pending-item span {
  display: grid;
  gap: 4px;
}

.workbench-pending-item span:last-child {
  justify-items: end;
}

.workbench-pending-item strong {
  color: #27364a;
  font-size: 13px;
}

.workbench-pending-item small {
  color: #8491a3;
  font-size: 11px;
}

.workbench-pending-item em {
  padding: 2px 6px;
  border-radius: 4px;
  background: #eef2f6;
  color: #68758a;
  font-size: 11px;
  font-style: normal;
}

.workbench-empty {
  padding: 24px 12px !important;
  color: #98a2b3 !important;
  font-size: 13px;
  text-align: center;
}

.workbench-performance-panel .workbench-table {
  min-width: 560px;
}

.admin-placeholder-view {
  display: grid;
  gap: 18px;
  padding: 22px 0 8px;
}

.admin-placeholder-view.hidden {
  display: none;
}

.admin-placeholder-hero,
.admin-placeholder-notice,
.admin-placeholder-grid article,
.admin-statistics-grid article,
.admin-placeholder-tip {
  border: 1px solid #e5edf8;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(30, 64, 175, 0.06);
}

.admin-placeholder-hero {
  padding: 24px 26px;
  background: linear-gradient(135deg, #f7faff 0%, #eef5ff 100%);
}

.admin-placeholder-hero span {
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
}

.admin-placeholder-hero h1 {
  margin: 7px 0 6px;
  color: #172033;
  font-size: 24px;
  letter-spacing: 0;
}

.admin-placeholder-hero p,
.admin-placeholder-grid p,
.admin-placeholder-notice p {
  margin: 0;
  color: #748198;
  line-height: 1.6;
}

.admin-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.admin-placeholder-grid article {
  min-width: 0;
  padding: 20px;
}

.admin-placeholder-grid strong {
  display: block;
  margin-bottom: 8px;
  color: #22304a;
  font-size: 15px;
}

.admin-placeholder-grid p {
  font-size: 13px;
}

#systemConfigView .system-config-layout {
  display: flex;
  border: 1px solid #e5edf8;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

#systemConfigView .system-config-sidebar {
  flex: 0 0 160px;
  padding: 12px 8px;
  border-right: 1px solid #eef2f6;
  background: #fafbfc;
}

#systemConfigView .system-config-side-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 40px;
  min-height: 40px;
  margin-bottom: 4px;
  padding: 0 10px 0 8px;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #334155;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
}

#systemConfigView .system-config-side-item:last-child {
  margin-bottom: 0;
}

#systemConfigView .system-config-side-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

#systemConfigView .system-config-side-item:hover:not(.active) {
  background: #f8fafc;
}

#systemConfigView .system-config-side-item.active {
  border-left-color: #2563eb;
  background: #eff6ff;
  color: #2563eb;
  font-weight: 500;
}

#systemConfigView .system-config-content {
  flex: 1;
  min-width: 0;
  padding: 16px 18px;
}

#systemConfigView .system-config-panel.hidden {
  display: none;
}

#systemConfigView .system-config-audit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

#systemConfigView .system-config-audit-header h2 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 600;
  color: #172033;
}

#systemConfigView .system-config-audit-header p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

#systemConfigView .system-config-audit-refresh {
  min-height: 30px;
  height: 30px;
  padding: 0 14px;
  border: 1px solid #dbe4f0;
  border-radius: 4px;
  background: #fff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 500;
}

#systemConfigView .system-config-audit-refresh:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}

#systemConfigView .system-config-audit-table-wrap {
  border: 1px solid #eef2f7;
  border-radius: 6px;
  overflow: auto;
  max-height: min(62vh, 560px);
}

#systemConfigView .system-config-audit-table-wrap .audit-logs-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 10px !important;
  border-bottom: 1px solid #eef2f7;
}

#systemConfigView .system-config-audit-table-wrap .audit-logs-table td {
  padding: 8px 10px !important;
  height: 40px;
  color: #334155;
  font-size: 13px;
  border-bottom: 1px solid #eef2f7;
}

#systemConfigView .system-config-audit-table-wrap .audit-logs-table tbody tr:hover td {
  background: #f8fbff;
}

#systemConfigView .system-config-audit-table-wrap .audit-logs-table tbody tr:last-child td {
  border-bottom: 0;
}

#systemConfigView .system-config-audit-empty {
  min-height: 240px !important;
  padding: 0 !important;
  color: #94a3b8 !important;
  font-size: 13px !important;
  text-align: center !important;
  vertical-align: middle !important;
  border-bottom: 0 !important;
}

#systemConfigView .system-config-audit-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 36px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #eef2f7;
  border-top: 0;
  border-radius: 0 0 6px 6px;
  background: #fafbfc;
  font-size: 13px;
}

#systemConfigView .system-config-audit-pagination-left {
  display: flex;
  align-items: center;
  min-width: 0;
  color: #64748b;
}

#systemConfigView .system-config-audit-pagination .page-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

#systemConfigView .system-config-audit-pagination .page-controls button,
#systemConfigView .system-config-audit-pagination .page-size select {
  min-height: 32px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 500;
  box-shadow: none;
}

#systemConfigView .system-config-audit-pagination .page-controls button:hover:not(:disabled) {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}

#systemConfigView .system-config-audit-pagination .page-controls button:disabled {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #cbd5e1;
  cursor: not-allowed;
}

#systemConfigView .system-config-audit-pagination [data-audit-page-info] {
  color: #2563eb;
  font-size: 13px;
  white-space: nowrap;
}

#systemConfigView .system-config-audit-table-wrap {
  border-radius: 6px 6px 0 0;
}

#dataStatisticsView .data-stats-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

#dataStatisticsView .data-stats-page-heading {
  min-width: 0;
}

#dataStatisticsView .data-stats-calendar-btn {
  flex-shrink: 0;
  min-height: 32px;
  height: 32px;
  padding: 0 14px;
  border: 1px solid #dbe4f0;
  border-radius: 6px;
  background: #fff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 500;
  box-shadow: none;
}

#dataStatisticsView .data-stats-calendar-btn:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.admin-placeholder-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
}

.admin-placeholder-notice strong {
  display: block;
  margin-bottom: 4px;
  color: #22304a;
}

.admin-statistics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.admin-statistics-grid article {
  min-width: 0;
  padding: 19px 20px;
}

.admin-statistics-grid small {
  display: block;
  margin-bottom: 10px;
  color: #748198;
  font-size: 13px;
}

.admin-statistics-grid strong {
  color: #172033;
  font-size: 26px;
  line-height: 1;
}

.admin-placeholder-tip {
  padding: 16px 20px;
  color: #718096;
  font-size: 13px;
  text-align: center;
}

body.admin-visual .recruitment-lite-stats {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
}

body.admin-visual .recruitment-lite-stats div {
  min-height: 72px;
  padding: 14px 18px;
}

body.admin-visual .recruitment-lite-stats span {
  font-size: 24px;
}

body.admin-visual .recruitment-lite-stats .recruitment-stat-removed {
  display: none !important;
}

.data-stats-overview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.data-stats-panel {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid #e5edf8;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(30, 64, 175, 0.06);
}

.data-stats-panel-head h2 {
  margin: 0;
  color: #172033;
  font-size: 18px;
  font-weight: 700;
}

.data-stats-panel-head p {
  margin: 6px 0 0;
  color: #748198;
  font-size: 13px;
}

#adminExclusiveDataPanel.data-stats-admin-exclusive-panel {
  margin-top: 18px;
}

#adminExclusiveDataPanel .data-stats-admin-exclusive-head p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 13px;
}

#adminExclusiveDataPanel .data-stats-admin-exclusive-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

#adminExclusiveDataPanel .data-stats-admin-exclusive-grid article {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e8eef6;
  border-radius: 8px;
  background: #fff;
}

#adminExclusiveDataPanel .data-stats-admin-exclusive-grid span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
}

#adminExclusiveDataPanel .data-stats-admin-exclusive-grid strong {
  display: block;
  margin-top: 8px;
  overflow: hidden;
  color: #0f172a;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

#adminExclusiveDataPanel .data-stats-admin-exclusive-grid .admin-exclusive-revenue {
  border-color: #dbeafe;
  background: #f8fbff;
}

#adminExclusiveDataPanel .data-stats-admin-exclusive-grid .admin-exclusive-profit {
  border-color: #d1fae5;
  background: #f7fdf9;
}

#adminExclusiveDataPanel .data-stats-admin-exclusive-grid .admin-exclusive-money strong {
  white-space: nowrap;
}

@media (max-width: 900px) {
  #adminExclusiveDataPanel .data-stats-admin-exclusive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 520px) {
  #adminExclusiveDataPanel .data-stats-admin-exclusive-grid {
    grid-template-columns: 1fr;
  }
}

body.admin-visual .export-progress-backdrop {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

body.admin-visual .export-progress-modal {
  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

body.admin-visual .export-progress-table-wrap {
  margin: 0 20px;
  overflow-x: auto;
  border: 1px solid #e8eef6;
  border-radius: 8px;
}

body.admin-visual .export-progress-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

body.admin-visual .export-progress-table thead th {
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

body.admin-visual .export-progress-table tbody td {
  padding: 12px;
  border-bottom: 1px solid #eef2f7;
  color: #172033;
  font-size: 13px;
  vertical-align: middle;
}

body.admin-visual .export-progress-table tbody tr:last-child td {
  border-bottom: 0;
}

body.admin-visual .import-confirm-modal {
  width: min(480px, 100%);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

body.admin-visual .import-confirm-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  padding: 0 20px 8px;
}

body.admin-visual .import-confirm-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e8eef6;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
}

body.admin-visual .import-confirm-stat strong {
  color: #172033;
  font-size: 15px;
}

body.admin-visual .export-progress-actions {
  justify-content: center;
  gap: 12px;
}

body.admin-visual .export-download-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: #2563eb;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

body.admin-visual .export-download-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

#dataStatsStaffRankingPanel.data-stats-ranking-board {
  margin-top: 18px;
  padding: 22px 22px 20px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.08);
}

#dataStatsStaffRankingPanel .data-stats-ranking-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

#dataStatsStaffRankingPanel .data-stats-ranking-subtitle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  margin: 8px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

#dataStatsStaffRankingPanel .data-stats-ranking-range {
  margin: 0;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

#dataStatsStaffRankingPanel .data-stats-ranking-filters-panel {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f1f5f9;
  overflow: visible;
}

#dataStatsStaffRankingPanel .data-stats-ranking-presets,
#dataStatsStaffRankingPanel .data-stats-ranking-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

#dataStatsStaffRankingPanel .data-stats-ranking-preset-btn {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #fff;
  color: #1e40af;
  font-size: 13px;
  font-weight: 600;
  box-shadow: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

#dataStatsStaffRankingPanel .data-stats-ranking-preset-btn:hover {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

#dataStatsStaffRankingPanel .data-stats-ranking-preset-btn.is-active,
#dataStatsStaffRankingPanel .data-stats-ranking-preset-btn:active {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

#dataStatsStaffRankingPanel .data-stats-ranking-date-range-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  min-width: 280px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

#dataStatsStaffRankingPanel .data-stats-ranking-date-range {
  position: relative;
}

#dataStatsStaffRankingPanel .data-stats-ranking-date-range-trigger {
  display: inline-flex;
  width: 280px;
  min-height: 34px;
  height: 34px;
  padding: 0 10px;
  align-items: center;
  gap: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

#dataStatsStaffRankingPanel .data-stats-ranking-date-range-trigger:hover,
#dataStatsStaffRankingPanel .data-stats-ranking-date-range-trigger.login-log-date-range-trigger--open {
  border-color: #60a5fa;
  background: #f8fbff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

#dataStatsStaffRankingPanel .login-log-date-range-popover-host {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 120;
}

#dataStatsStaffRankingPanel .login-log-date-range-popover {
  width: 620px;
  max-width: calc(100vw - 24px);
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

#dataStatsStaffRankingPanel .login-log-date-range-popover__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

#dataStatsStaffRankingPanel .login-log-date-range-popover__nav-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

#dataStatsStaffRankingPanel .login-log-date-range-nav-btn {
  min-width: 28px;
  min-height: 28px;
  padding: 0 6px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  color: #475569;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
}

#dataStatsStaffRankingPanel .login-log-date-range-nav-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

#dataStatsStaffRankingPanel .login-log-date-range-popover__months {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

#dataStatsStaffRankingPanel .login-log-date-range-month__title {
  margin-bottom: 8px;
  color: #172033;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

#dataStatsStaffRankingPanel .login-log-date-range-weekdays,
#dataStatsStaffRankingPanel .login-log-date-range-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

#dataStatsStaffRankingPanel .login-log-date-range-weekdays span {
  height: 24px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 24px;
  text-align: center;
}

#dataStatsStaffRankingPanel .login-log-date-range-day {
  width: 100%;
  min-height: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #334155;
  font-size: 13px;
  cursor: pointer;
  box-shadow: none;
}

#dataStatsStaffRankingPanel .login-log-date-range-day:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

#dataStatsStaffRankingPanel .login-log-date-range-day--outside {
  color: #cbd5e1;
}

#dataStatsStaffRankingPanel .login-log-date-range-day--today {
  box-shadow: inset 0 0 0 1px #2563eb;
  color: #2563eb;
}

#dataStatsStaffRankingPanel .login-log-date-range-day--in-range {
  background: #eff6ff;
  border-radius: 0;
}

#dataStatsStaffRankingPanel .login-log-date-range-day--start,
#dataStatsStaffRankingPanel .login-log-date-range-day--end {
  background: #2563eb;
  color: #fff;
}

#dataStatsStaffRankingPanel .login-log-date-range-day--start {
  border-radius: 8px 0 0 8px;
}

#dataStatsStaffRankingPanel .login-log-date-range-day--end {
  border-radius: 0 8px 8px 0;
}

#dataStatsStaffRankingPanel .login-log-date-range-day--start.login-log-date-range-day--end {
  border-radius: 8px;
}

#dataStatsStaffRankingPanel .login-log-date-range-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #eef2f7;
}

#dataStatsStaffRankingPanel .login-log-date-range-footer__left,
#dataStatsStaffRankingPanel .login-log-date-range-footer__right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#dataStatsStaffRankingPanel .login-log-date-range-footer-btn {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid #dbe4f0;
  border-radius: 6px;
  background: #fff;
  color: #475569;
  font-size: 13px;
  cursor: pointer;
  box-shadow: none;
}

#dataStatsStaffRankingPanel .login-log-date-range-footer-btn:hover {
  background: #f8fafc;
}

#dataStatsStaffRankingPanel .login-log-date-range-footer-btn--primary {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

#dataStatsStaffRankingPanel .login-log-date-range-footer-btn--primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#dataStatsStaffRankingPanel .login-log-date-range-footer-btn--primary:hover:not(:disabled) {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

@media (max-width: 760px) {
  #dataStatsStaffRankingPanel .data-stats-ranking-date-range-trigger {
    width: 100%;
    max-width: 100%;
  }

  #dataStatsStaffRankingPanel .login-log-date-range-popover {
    width: calc(100vw - 24px);
    max-height: 85vh;
    overflow: auto;
  }

  #dataStatsStaffRankingPanel .login-log-date-range-popover__months {
    grid-template-columns: 1fr;
  }

  #dataStatsStaffRankingPanel .login-log-date-range-popover__months .login-log-date-range-month:last-child {
    display: none;
  }
}

#dataStatsStaffRankingPanel .data-stats-ranking-search {
  min-height: 34px;
  padding: 0 18px;
  border: 1px solid #2563eb;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.18);
  cursor: pointer;
}

#dataStatsStaffRankingPanel .data-stats-ranking-search:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

#dataStatsStaffRankingPanel .data-stats-ranking-table-wrap {
  margin-top: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #e8eef6;
  border-radius: 6px 6px 0 0;
  background: #fff;
}

#dataStatsStaffRankingPanel .data-stats-ranking-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
}

#dataStatsStaffRankingPanel .data-stats-ranking-table th,
#dataStatsStaffRankingPanel .data-stats-ranking-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #eef2f7;
  color: #172033;
  font-size: 13px;
  text-align: left;
  vertical-align: middle;
}

#dataStatsStaffRankingPanel .data-stats-ranking-table th {
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}

#dataStatsStaffRankingPanel .data-stats-ranking-table th.col-metric,
#dataStatsStaffRankingPanel .data-stats-ranking-table th.col-money,
#dataStatsStaffRankingPanel .data-stats-ranking-table td:nth-child(n+3) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#dataStatsStaffRankingPanel .data-stats-ranking-table th.col-rank,
#dataStatsStaffRankingPanel .data-stats-ranking-table td:first-child {
  text-align: center;
  width: 72px;
}

#dataStatsStaffRankingPanel .data-stats-ranking-table th.col-staff,
#dataStatsStaffRankingPanel .data-stats-ranking-table td:nth-child(2) {
  text-align: left;
  min-width: 120px;
}

#dataStatsStaffRankingPanel .data-stats-ranking-table tbody tr {
  transition: background-color 0.15s ease;
}

#dataStatsStaffRankingPanel .data-stats-ranking-table tbody tr:hover {
  background: #f8fbff;
}

#dataStatsStaffRankingPanel .data-stats-ranking-table tbody tr:last-child td {
  border-bottom: 0;
}

#dataStatsStaffRankingPanel .data-stats-ranking-table tbody td:nth-child(2) {
  color: #0f172a;
  font-weight: 600;
}

#dataStatsStaffRankingPanel .data-stats-ranking-table tbody td.is-rank-first {
  color: #b45309;
  font-size: 14px;
  font-weight: 800;
}

#dataStatsStaffRankingPanel .data-stats-ranking-table tbody td.is-rank-first::before {
  content: "🏆";
  margin-right: 4px;
}

#dataStatsStaffRankingPanel .data-stats-ranking-table tbody tr:nth-child(2) td:first-child {
  color: #475569;
  font-weight: 700;
}

#dataStatsStaffRankingPanel .data-stats-ranking-table tbody tr:nth-child(3) td:first-child {
  color: #64748b;
  font-weight: 700;
}

#dataStatsStaffRankingPanel .data-stats-ranking-table tbody td:nth-child(n+11) {
  font-weight: 600;
}

#dataStatsStaffRankingPanel .data-stats-ranking-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 36px;
  margin-top: 0;
  padding: 8px 12px;
  border: 1px solid #eef2f7;
  border-top: 0;
  border-radius: 0 0 6px 6px;
  background: #fafbfc;
  font-size: 13px;
}

#dataStatsStaffRankingPanel .data-stats-ranking-pagination-left {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  flex-shrink: 0;
  color: #64748b;
}

#dataStatsStaffRankingPanel [data-stats-ranking-total] {
  white-space: nowrap;
  flex-shrink: 0;
}

#dataStatsStaffRankingPanel .data-stats-ranking-page-size {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  white-space: nowrap;
  flex-shrink: 0;
  color: #64748b;
  font-size: 13px;
}

#dataStatsStaffRankingPanel .data-stats-ranking-page-size select {
  min-height: 32px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 500;
  flex-shrink: 0;
}

#dataStatsStaffRankingPanel .data-stats-ranking-page-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

#dataStatsStaffRankingPanel .data-stats-ranking-page-controls button {
  min-height: 32px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 500;
  box-shadow: none;
}

#dataStatsStaffRankingPanel .data-stats-ranking-page-controls button:hover:not(:disabled) {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}

#dataStatsStaffRankingPanel .data-stats-ranking-page-controls button:disabled {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #cbd5e1;
  cursor: not-allowed;
}

#dataStatsStaffRankingPanel [data-stats-ranking-page-info] {
  color: #2563eb;
  font-size: 13px;
  white-space: nowrap;
}

.data-stats-table-wrap {
  margin-top: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-stats-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.data-stats-table th,
.data-stats-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #edf1f7;
  color: #172033;
  font-size: 13px;
  text-align: left;
}

.data-stats-table th {
  color: #4b5b73;
  font-weight: 700;
  background: #f8fbff;
}

.data-stats-status-grid,
.data-stats-type-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.data-stats-type-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.data-stats-chip {
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid #e8eef7;
  border-radius: 10px;
  background: linear-gradient(135deg, #f6f9ff 0%, #fff 100%);
}

.data-stats-chip small {
  display: block;
  margin-bottom: 8px;
  color: #748198;
  font-size: 13px;
}

.data-stats-chip strong {
  color: #172033;
  font-size: 24px;
  line-height: 1;
}

.employee-management-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.employee-management-stats article,
.employee-management-panel,
.employee-management-actions,
.employee-permission-notes article {
  border: 1px solid #e5edf8;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(30, 64, 175, 0.06);
}

.employee-management-stats article {
  min-width: 0;
  padding: 19px 20px;
}

.employee-management-stats small {
  display: block;
  margin-bottom: 10px;
  color: #748198;
  font-size: 13px;
}

.employee-management-stats strong {
  color: #172033;
  font-size: 26px;
  line-height: 1;
}

.employee-management-panel {
  min-width: 0;
  padding: 20px;
}

.employee-management-table-scroll {
  width: 100%;
  max-width: 100%;
  margin-top: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.employee-management-page-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
}

.employee-management-page-table th,
.employee-management-page-table td {
  padding: 12px 13px;
  border-bottom: 1px solid #e9eef5;
  color: #475467;
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
  vertical-align: middle;
}

.employee-management-page-table th {
  background: #f5f8fc;
  color: #526078;
  font-weight: 700;
}

.employee-management-page-table tbody tr:hover {
  background: #f8fbff;
}

.employee-management-page-table td strong,
.employee-management-page-table td small {
  display: block;
}

.employee-management-page-table td strong {
  color: #22304a;
}

.employee-management-page-table td small {
  margin-top: 3px;
  color: #98a2b3;
  font-size: 11px;
}

.employee-management-page-table code {
  color: #44516a;
  font-family: inherit;
}

.employee-page-link {
  display: block;
  max-width: 270px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.employee-wecom-status {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 6px;
  background: #f2f4f7;
  color: #7b8494;
  font-size: 12px;
}

.employee-wecom-status.is-configured {
  background: #eaf8f1;
  color: #17875f;
}

.employee-page-actions {
  display: flex;
  gap: 6px;
}

.employee-page-actions button {
  height: 30px;
  padding: 0 10px;
  border: 1px solid #cfd9e8;
  border-radius: 6px;
  background: #fff;
  color: #315b92;
  font-size: 12px;
  cursor: pointer;
}

.employee-page-actions button:hover {
  border-color: #8fb2e5;
  background: #f2f7ff;
}

.employee-management-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
}

.employee-management-actions strong {
  color: #22304a;
}

.employee-management-actions p {
  margin: 4px 0 0;
  color: #748198;
  font-size: 13px;
}

.employee-permission-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.employee-permission-notes article {
  min-width: 0;
  padding: 17px 18px;
}

.employee-permission-notes strong {
  color: #315b92;
  font-size: 14px;
}

.employee-permission-notes p {
  margin: 6px 0 0;
  color: #748198;
  font-size: 13px;
}

@media (max-width: 980px) {
  .admin-placeholder-grid,
  .admin-statistics-grid,
  .employee-management-stats,
  .data-stats-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  #dataStatsStaffRankingPanel .data-stats-ranking-subtitle {
    flex-direction: column;
    align-items: flex-start;
  }

  #dataStatsStaffRankingPanel .data-stats-ranking-date-field {
    width: 100%;
  }

  #dataStatsStaffRankingPanel .data-stats-ranking-date-field input[type="date"] {
    flex: 1;
    min-width: 0;
  }

  #dataStatsStaffRankingPanel .data-stats-ranking-search {
    width: 100%;
  }
}

@media (max-width: 1100px) {
  .workbench-overview {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .workbench-overview article:nth-child(4) {
    border-right: 0;
  }

  .workbench-overview article:nth-child(-n+4) {
    border-bottom: 1px solid #e5ebf2;
  }

  .workbench-shortcut-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .admin-placeholder-view {
    gap: 12px;
    padding-top: 14px;
  }

  .admin-placeholder-hero {
    padding: 19px 16px;
  }

  .admin-placeholder-hero h1 {
    font-size: 20px;
  }

  .admin-placeholder-grid,
  .admin-statistics-grid,
  .employee-management-stats,
  .employee-permission-notes {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .admin-placeholder-notice {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-placeholder-notice .workbench-primary-action {
    width: 100%;
  }

  .employee-management-panel {
    padding: 15px;
  }

  .employee-management-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .employee-management-actions .workbench-primary-action {
    width: 100%;
  }

  .workbench-view {
    width: 100%;
    max-width: 100%;
    gap: 10px;
  }

  .brand-welcome {
    min-height: calc(100vh - 190px);
    padding: 42px 16px 62px;
  }

  .brand-welcome-visual {
    width: min(230px, 78vw);
    margin-bottom: 28px;
  }

  .brand-welcome-main-logo {
    width: min(190px, 68vw);
  }

  .brand-welcome-screen-body {
    height: 124px;
  }

  .brand-welcome h1 {
    font-size: 23px;
  }

  .brand-welcome p {
    max-width: 280px;
    font-size: 14px;
  }

  .workbench-hero {
    min-height: 0;
    padding: 18px;
    align-items: flex-start;
    flex-direction: column;
  }

  .workbench-hero h1 {
    font-size: 20px;
  }

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

  .workbench-overview article,
  .workbench-overview article:nth-child(4) {
    padding: 15px;
    border-right: 1px solid #e5ebf2;
    border-bottom: 1px solid #e5ebf2;
  }

  .workbench-overview article:nth-child(even) {
    border-right: 0;
  }

  .workbench-overview article:last-child {
    border-bottom: 0;
  }

  .workbench-overview strong {
    font-size: 21px;
  }

  .workbench-panel {
    padding: 15px;
  }

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

  .workbench-main-grid {
    grid-template-columns: 1fr;
  }

  .workbench-table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
  }
}

/* Admin full-width layout: stretch shell, stats, filters, and table together */
body.admin-visual .shell.admin-shell {
  width: 100%;
  max-width: calc(100vw - 24px);
  margin: 0 auto;
  padding: 22px 12px 30px;
  box-sizing: border-box;
}

body.admin-visual .admin-top,
body.admin-visual .visual-stats,
body.admin-visual .filters,
body.admin-visual .table-meta,
body.admin-visual .table-wrap,
body.admin-visual .pagination {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  body.admin-visual .shell.admin-shell {
    width: 100%;
    max-width: calc(100vw - 24px);
    padding: 16px 12px;
  }
}

/* Admin UI phase 1: sticky header reinforcement, revenue/work-days/note tones */
body.admin-visual #totalRevenueCount.revenue-total-value,
body.admin-visual .revenue-total-value {
  color: #16a34a;
}

body.admin-visual .revenue-cell.revenue-tone-zero {
  color: #9ca3af;
  font-weight: 500;
}
body.admin-visual .revenue-cell.revenue-tone-low {
  color: #16a34a;
  font-weight: 600;
}
body.admin-visual .revenue-cell.revenue-tone-high {
  color: #14532d;
  font-weight: 800;
}

body.admin-visual .work-days-cell.work-days-tone-none,
body.admin-visual .work-days-cell.work-days-tone-1 {
  color: #9ca3af;
  font-weight: 500;
}
body.admin-visual .work-days-cell.work-days-tone-2 {
  color: #2563eb;
  font-weight: 600;
}
body.admin-visual .work-days-cell.work-days-tone-3 {
  color: #ea580c;
  font-weight: 600;
}
body.admin-visual .work-days-cell.work-days-tone-4 {
  color: #16a34a;
  font-weight: 700;
}

/* Sticky thead: ancestors must not create scroll/contain/filter context */
body.admin-visual #adminApp,
body.admin-visual .shell.admin-shell,
body.admin-visual .table-wrap,
body.admin-visual .admin-table,
body.admin-visual .admin-table thead,
body.admin-visual .admin-table thead tr {
  overflow: visible;
  transform: none;
  contain: none;
  filter: none;
}

body.admin-visual .admin-table thead th {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08), 0 4px 10px rgba(15, 23, 42, 0.04);
}

/* Admin month filter */
body.admin-visual .filters label.month-filter-label {
  width: 300px;
}
body.admin-visual .month-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
body.admin-visual .month-filter-row input[type="month"] {
  flex: 1;
  min-width: 0;
}
body.admin-visual .month-filter-all {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #d9e0ea;
  border-radius: 6px;
  background: #f9fafb;
  color: #374151;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
}

/* Admin-only staff management */
body.admin-visual .owner-column {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.admin-visual .user-management-modal {
  width: min(960px, calc(100vw - 32px));
  max-width: 960px;
  display: block;
  overflow: auto;
  max-height: min(90vh, 880px);
  border-radius: 15px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.14);
}

body.admin-visual .user-management-modal .detail-head {
  align-items: flex-start;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #eef2f7;
}

body.admin-visual .user-management-modal .detail-head h2 {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

body.admin-visual .user-management-modal .detail-head h2::after {
  content: "新增、编辑、禁用和维护员工账号";
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.5;
}

body.admin-visual .user-management-modal .detail-close {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  margin-top: 2px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #94a3b8;
  font-size: 20px;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease;
}

body.admin-visual .user-management-modal .detail-close:hover {
  background: #e2e8f0;
  color: #475569;
}

body.admin-visual .user-management-modal > .user-reset-panel:not([data-reset-panel]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 14px 20px 0;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

body.admin-visual .user-management-modal > .user-reset-panel:not([data-reset-panel]) > div {
  flex: 1 1 280px;
  display: grid;
  gap: 6px;
  min-width: 0;
}

body.admin-visual .user-management-modal > .user-reset-panel:not([data-reset-panel]) strong {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

body.admin-visual .user-management-modal > .user-reset-panel:not([data-reset-panel]) > div > div {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}

body.admin-visual .user-management-modal > .user-reset-panel:not([data-reset-panel]) code {
  display: inline;
  padding: 2px 6px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #fff;
  color: #475569;
  font-size: 11px;
  word-break: break-all;
  white-space: normal;
}

body.admin-visual .user-management-modal > .user-reset-panel:not([data-reset-panel]) .user-admin-contact-copy,
body.admin-visual .user-management-modal > .user-reset-panel:not([data-reset-panel]) .user-admin-qr-upload {
  width: auto;
  min-height: 32px;
  margin: 0;
  padding: 0 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

body.admin-visual .user-management-modal > .user-reset-panel:not([data-reset-panel]) .user-admin-contact-copy {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #2563eb;
}

body.admin-visual .user-management-modal > .user-reset-panel:not([data-reset-panel]) .user-admin-contact-copy:hover {
  border-color: #93c5fd;
  background: #dbeafe;
}

body.admin-visual .user-management-modal > .user-reset-panel:not([data-reset-panel]) .user-admin-qr-upload {
  border: 1px solid #2563eb;
  background: #2563eb;
  color: #fff;
}

body.admin-visual .user-management-modal > .user-reset-panel:not([data-reset-panel]) .user-admin-qr-upload:hover {
  border-color: #1d4ed8;
  background: #1d4ed8;
}

body.admin-visual .user-management-modal .user-create-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  gap: 12px 10px;
  align-items: end;
  margin: 16px 20px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}

body.admin-visual .user-management-modal .user-create-form::before {
  content: "新增员工账号";
  grid-column: 1 / -1;
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

body.admin-visual .user-management-modal .user-create-form label {
  display: grid;
  gap: 6px;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

body.admin-visual .user-management-modal .user-create-form input {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
}

body.admin-visual .user-management-modal .user-create-form button.primary {
  width: auto;
  min-width: 96px;
  min-height: 36px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid #2563eb;
  border-radius: 6px;
  background: #2563eb;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

body.admin-visual .user-management-modal .user-create-form button.primary:hover {
  border-color: #1d4ed8;
  background: #1d4ed8;
}

body.admin-visual .user-management-modal > .user-reset-panel[data-reset-panel] {
  margin: 12px 20px 0;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

body.admin-visual .user-management-modal > .user-reset-panel[data-reset-panel] input {
  flex: 1 1 180px;
  min-width: 0;
  height: 36px;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
}

body.admin-visual .user-management-modal > .user-reset-panel[data-reset-panel] .primary {
  width: auto;
  min-height: 32px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #2563eb;
  border-radius: 6px;
  background: #2563eb;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

body.admin-visual .user-management-modal > .user-reset-panel[data-reset-panel] .secondary {
  width: auto;
  min-height: 32px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
}

body.admin-visual .user-management-modal .user-table-wrap {
  width: auto;
  margin: 16px 20px 0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow-x: auto;
}

body.admin-visual table.user-management-table {
  width: 100%;
  min-width: 820px;
  table-layout: auto;
  border-collapse: collapse;
}

body.admin-visual .user-management-table th,
body.admin-visual .user-management-table td {
  width: auto !important;
  min-width: 0 !important;
  padding: 10px 10px !important;
  text-align: left !important;
  word-break: normal !important;
}

body.admin-visual .user-management-modal .user-management-table th,
body.admin-visual .user-management-modal .user-management-table td {
  white-space: nowrap !important;
}

body.admin-visual .user-management-modal .user-management-table td.user-actions {
  white-space: normal !important;
}

body.admin-visual .user-management-table th {
  position: static;
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  border-bottom: 1px solid #e2e8f0;
}

body.admin-visual .user-management-table td {
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
  vertical-align: middle;
}

body.admin-visual .user-management-modal .user-management-table tbody tr:hover {
  background: #f8fafc;
}

body.admin-visual .user-management-modal .user-management-table td:nth-child(1),
body.admin-visual .user-management-modal .user-management-table td:nth-child(2) {
  font-weight: 600;
  color: #0f172a;
}

body.admin-visual .user-management-table code {
  color: #475569;
}

body.admin-visual .user-management-modal .user-management-table td:nth-child(4) code {
  font-weight: 600;
  color: #334155;
}

body.admin-visual .user-management-modal .user-wecom-id {
  width: 100%;
  min-width: 120px;
  max-width: 168px;
  height: 32px;
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 12px;
}

body.admin-visual .user-management-modal .user-link-copy,
body.admin-visual .user-management-modal .user-contact-link-copy,
body.admin-visual .user-management-modal .user-qr-upload {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 600;
}

body.admin-visual .user-management-modal .user-link-copy:hover,
body.admin-visual .user-management-modal .user-contact-link-copy:hover,
body.admin-visual .user-management-modal .user-qr-upload:hover {
  border-color: #93c5fd;
  background: #dbeafe;
}

body.admin-visual .user-management-modal .user-enabled {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  background: #ecfdf3;
  color: #166534;
  font-size: 12px;
  font-weight: 600;
}

body.admin-visual .user-management-modal .user-enabled.is-disabled {
  background: #f1f5f9;
  color: #94a3b8;
}

body.admin-visual .user-management-modal .user-actions {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  gap: 6px;
  max-width: 340px;
}

body.admin-visual .user-management-modal .user-actions button {
  min-height: 30px;
  height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

body.admin-visual .user-management-modal .user-toggle {
  border: 1px solid #d1d5db;
  background: #f8fafc;
  color: #475569;
}

body.admin-visual .user-management-modal .user-toggle:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

body.admin-visual .user-management-modal .user-wecom-save {
  border: 1px solid #2563eb;
  background: #2563eb;
  color: #fff;
}

body.admin-visual .user-management-modal .user-wecom-save:hover {
  border-color: #1d4ed8;
  background: #1d4ed8;
}

body.admin-visual .user-management-modal .user-reset {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #2563eb;
}

body.admin-visual .user-management-modal .user-reset:hover {
  border-color: #93c5fd;
  background: #dbeafe;
}

body.admin-visual .user-management-modal .user-delete {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

body.admin-visual .user-management-modal .user-delete:hover {
  border-color: #fca5a5;
  background: #fee2e2;
}

body.admin-visual .user-management-modal .user-empty {
  padding: 24px !important;
  text-align: center !important;
  color: #9ca3af;
}

body.admin-visual .user-management-modal .detail-actions {
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px 18px;
  border-top: 1px solid #eef2f7;
}

body.admin-visual .user-management-modal .detail-actions button {
  width: auto;
  min-width: 88px;
  min-height: 36px;
  margin: 0;
  padding: 0 18px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
}

body.admin-visual .user-management-modal .detail-actions button:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

@media (max-width: 760px) {
  body.admin-visual .user-management-modal {
    width: calc(100vw - 24px);
    max-height: 92vh;
  }

  body.admin-visual .user-management-modal .user-create-form {
    grid-template-columns: 1fr 1fr;
  }

  body.admin-visual .user-management-modal .user-create-form button.primary {
    grid-column: 1 / -1;
    width: 100%;
  }

  body.admin-visual .user-management-modal > .user-reset-panel:not([data-reset-panel]) {
    flex-direction: column;
    align-items: stretch;
  }

  body.admin-visual .user-management-modal > .user-reset-panel:not([data-reset-panel]) .user-admin-contact-copy,
  body.admin-visual .user-management-modal > .user-reset-panel:not([data-reset-panel]) .user-admin-qr-upload {
    width: 100%;
  }

  body.admin-visual .user-management-modal > .user-reset-panel[data-reset-panel] {
    flex-direction: column;
    align-items: stretch;
  }

  body.admin-visual .user-management-modal > .user-reset-panel[data-reset-panel] input {
    width: 100%;
  }
}

body.admin-visual .user-management-modal .user-management-table th:nth-child(6),
body.admin-visual .user-management-modal .user-management-table td:nth-child(6) {
  display: none !important;
}

body.admin-visual .user-management-modal table.user-management-table {
  min-width: 680px;
}

body.admin-visual .user-management-modal .user-management-table th:nth-child(5),
body.admin-visual .user-management-modal .user-management-table td:nth-child(5) {
  min-width: 180px;
}

body.admin-visual .user-management-modal .user-wecom-id {
  min-width: 160px;
  max-width: 220px;
}

body.admin-visual .user-management-modal .user-management-table th:nth-child(8),
body.admin-visual .user-management-modal .user-management-table td.user-actions {
  min-width: 260px;
  max-width: 300px;
}

body.admin-visual .user-management-modal .user-actions {
  max-width: 300px;
}

body.admin-visual .month-filter-all:hover {
  background: #f3f4f6;
}

/* Interview calendar */
body.admin-visual .interview-calendar-modal {
  width: min(1100px, calc(100vw - 32px));
  max-width: 1100px;
  max-height: 92vh;
  display: block;
  overflow-y: auto;
}

body.admin-visual .calendar-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}

body.admin-visual .calendar-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

body.admin-visual .calendar-navigation strong {
  min-width: 110px;
  color: #1f2937;
  text-align: center;
}

body.admin-visual .calendar-navigation button {
  min-height: 32px;
  padding: 4px 10px;
}

body.admin-visual .calendar-week,
body.admin-visual .calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

body.admin-visual .calendar-week {
  margin-top: 12px;
  border: 1px solid #e5eaf1;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  background: #f8fafc;
}

body.admin-visual .calendar-week span {
  padding: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

body.admin-visual .calendar-grid {
  overflow: hidden;
  border-top: 1px solid #e5eaf1;
  border-left: 1px solid #e5eaf1;
}

body.admin-visual .calendar-day {
  position: relative;
  display: block;
  min-height: 108px;
  padding: 8px;
  border: 0;
  border-right: 1px solid #e5eaf1;
  border-bottom: 1px solid #e5eaf1;
  border-radius: 0;
  background: #fff;
  color: #1f2937;
  text-align: left;
  box-shadow: none;
}

body.admin-visual button.calendar-day:hover {
  background: #f8fbff;
}

body.admin-visual .calendar-day.is-empty {
  background: #f8fafc;
}

body.admin-visual .calendar-day.has-interviews {
  background: #f0fdf4;
}

body.admin-visual .calendar-day.is-today {
  box-shadow: inset 0 0 0 2px #22c55e;
}

body.admin-visual .calendar-day.is-selected {
  z-index: 1;
  box-shadow: inset 0 0 0 2px #2563eb;
}

body.admin-visual .calendar-day-number {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
}

body.admin-visual .calendar-count {
  float: right;
  color: #15803d;
  font-size: 11px;
  font-weight: 700;
}

body.admin-visual .calendar-names {
  display: grid;
  gap: 3px;
  margin-top: 7px;
  color: #475569;
  font-size: 11px;
  line-height: 1.3;
}

body.admin-visual .calendar-names span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.admin-visual .calendar-names .calendar-more {
  color: #2563eb;
  font-weight: 700;
}

body.admin-visual .calendar-day-list {
  margin-top: 18px;
}

body.admin-visual .calendar-day-list h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

body.admin-visual .calendar-list-wrap {
  overflow-x: auto;
  border: 1px solid #e5eaf1;
  border-radius: 6px;
}

body.admin-visual table.calendar-list-table {
  width: 100%;
  min-width: 900px;
  table-layout: auto;
  border-collapse: collapse;
}

body.admin-visual .calendar-list-table th,
body.admin-visual .calendar-list-table td {
  width: auto !important;
  min-width: 0 !important;
  padding: 9px 8px !important;
  text-align: left !important;
  white-space: nowrap !important;
  word-break: normal !important;
}

body.admin-visual .calendar-list-table th {
  position: static;
  background: #f8fafc;
  font-size: 12px;
}

body.admin-visual .calendar-list-table td {
  border-bottom: 1px solid #edf1f7;
  font-size: 12px;
}

body.admin-visual .calendar-list-table th:nth-child(7),
body.admin-visual .calendar-list-table td.calendar-note {
  width: 180px !important;
  max-width: 180px !important;
}

body.admin-visual .calendar-note span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.admin-visual .calendar-name,
body.admin-visual .calendar-phone {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.admin-visual .calendar-name {
  color: #dc2626;
  font-weight: 700;
}

body.admin-visual .calendar-phone {
  color: #2563eb;
}

body.admin-visual .calendar-empty {
  padding: 24px !important;
  color: #94a3b8;
  text-align: center !important;
}

/* Unified admin filter date/month controls */
body.admin-visual .filters label {
  align-self: flex-end;
}

body.admin-visual .filters input,
body.admin-visual .filters select,
body.admin-visual .filters .search-clear-wrap,
body.admin-visual .filters .month-filter-all {
  box-sizing: border-box;
  height: 40px;
  min-height: 40px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
}

body.admin-visual .filters input,
body.admin-visual .filters select {
  padding: 0 12px;
  border: 1px solid #d9e0ea;
  color: #1f2937;
  background-color: #fff;
}

body.admin-visual .filters input:focus,
body.admin-visual .filters select:focus {
  border-color: #3b82f6;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

body.admin-visual .filters .filter-date-control {
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

body.admin-visual .month-filter-row {
  align-items: stretch;
}

body.admin-visual .month-filter-row #monthFilter {
  flex: 1;
  min-width: 0;
}

body.admin-visual .month-filter-all {
  padding: 0 12px;
}

/* Final admin filter alignment */
body.admin-visual .filters {
  align-items: flex-end;
}

body.admin-visual .filters > label {
  display: grid;
  grid-template-rows: auto 40px;
  align-items: stretch;
  gap: 10px;
  width: 180px;
}

body.admin-visual .filters > label:nth-child(1) {
  width: 180px;
}

body.admin-visual .filters > label.month-filter-label {
  width: 288px;
}

body.admin-visual .filters input,
body.admin-visual .filters select,
body.admin-visual .filters .search-clear-wrap,
body.admin-visual .filters .month-filter-row,
body.admin-visual .filters .month-filter-all {
  box-sizing: border-box;
  height: 40px;
  min-height: 40px;
  margin: 0;
  border-width: 1px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  line-height: normal;
}

body.admin-visual .filters input,
body.admin-visual .filters select {
  padding: 0 12px;
}

body.admin-visual .filters .search-clear-wrap {
  display: block;
}

body.admin-visual .filters .month-filter-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

body.admin-visual .filters .month-filter-row #monthFilter {
  flex: 0 0 180px;
  width: 180px;
}

body.admin-visual .filters .month-filter-all {
  flex: 1;
  padding: 0 12px;
  border: 1px solid #d9e0ea;
  background: #f9fafb;
  color: #374151;
  font-weight: 700;
}

body.admin-visual .filters .month-filter-all:hover {
  border-color: #c5cdd8;
  background: #f3f4f6;
}

body.admin-visual .filters .month-filter-all:focus-visible {
  border-color: #3b82f6;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.month-picker-popup {
  position: absolute;
  z-index: 220;
  width: 210px;
  padding: 12px;
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.month-picker-title {
  margin-bottom: 10px;
  color: #666;
  font-size: 13px;
  font-weight: 600;
}

.month-picker-controls {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 8px;
}

.month-picker-controls select {
  width: 100%;
  height: 36px;
  padding: 0 8px;
  border: 1px solid #d9e0ea;
  border-radius: 6px;
  background: #fff;
  color: #1f2937;
  font-size: 13px;
}

.month-picker-controls select:focus {
  border-color: #3b82f6;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.month-picker-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.month-picker-actions button {
  flex: 1;
  min-height: 34px;
  height: 34px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 13px;
}

.month-picker-actions [data-month-cancel] {
  display: none;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #4b5563;
  box-shadow: none;
}

.month-picker-actions [data-month-cancel]:hover {
  background: #f9fafb;
}

.month-picker-actions [data-month-cancel]:active {
  background: #f3f4f6;
}

.month-picker-actions [data-month-confirm] {
  flex: 0 0 120px;
  width: 120px;
  border: 1px solid #16945f;
  background: #16945f;
  color: #fff;
  box-shadow: none;
}

.month-picker-actions [data-month-confirm]:hover {
  border-color: #11794d;
  background: #11794d;
}

.month-picker-actions [data-month-confirm]:active {
  border-color: #0f6843;
  background: #0f6843;
}

.date-picker-popup {
  border-color: #dbe2ea;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}

/* Mobile admin layout: shared by administrator and staff accounts. */
@media (max-width: 768px) {
  html:has(body.admin-visual),
  body.admin-visual {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden !important;
  }

  body.admin-visual .shell.admin-shell {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 8px !important;
    box-sizing: border-box;
  }

  body.admin-visual .admin-top {
    width: 100%;
    margin-bottom: 12px;
  }

  body.admin-visual .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
  }

  body.admin-visual .actions button,
  body.admin-visual .actions a {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  body.admin-visual .visual-stats {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 8px;
  }

  body.admin-visual .visual-stats > div {
    min-width: 0 !important;
    min-height: 72px;
    padding: 12px;
  }

  body.admin-visual .filters {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px !important;
  }

  body.admin-visual .filters > label,
  body.admin-visual .filters > label:nth-child(1),
  body.admin-visual .filters > label.month-filter-label {
    width: 100% !important;
    min-width: 0 !important;
  }

  body.admin-visual .filters input,
  body.admin-visual .filters select,
  body.admin-visual .filters .search-clear-wrap,
  body.admin-visual .filters .month-filter-row {
    width: 100% !important;
    min-width: 0 !important;
  }

  body.admin-visual .filters .month-filter-row #monthFilter {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  body.admin-visual .filters .month-filter-all {
    flex: 0 0 92px;
    width: 92px;
    white-space: nowrap;
  }

  body.admin-visual .table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: auto;
    position: relative;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
  }

  body.admin-visual .table-wrap .admin-table {
    width: 1500px !important;
    min-width: 1500px !important;
    max-width: none !important;
    table-layout: fixed;
  }

  body.admin-visual .admin-table th,
  body.admin-visual .admin-table td {
    white-space: nowrap;
  }

  body.admin-visual .pagination,
  body.admin-visual .page-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    width: 100%;
  }

  body.admin-visual .pagination {
    justify-content: flex-start;
  }

  body.admin-visual .pagination button,
  body.admin-visual .pagination select {
    font-size: 12px;
  }
}
body.admin-visual .staff-ranking-modal {
  width: min(1080px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  display: block;
  overflow: auto;
  max-height: min(90vh, 860px);
}

body.admin-visual .staff-ranking-modal .detail-head {
  padding: 14px 16px;
}

body.admin-visual .staff-ranking-body {
  padding: 12px 16px 0;
  display: grid;
  gap: 12px;
}

body.admin-visual .staff-ranking-filters-panel {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #edf1f7;
  border-radius: 8px;
  background: #f8fafc;
}

body.admin-visual .staff-ranking-presets,
body.admin-visual .staff-ranking-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

body.admin-visual .staff-ranking-presets .secondary,
body.admin-visual .staff-ranking-filters .secondary {
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
}

body.admin-visual .staff-ranking-filters label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}

body.admin-visual .staff-ranking-filters input[type="date"] {
  width: auto;
  min-width: 132px;
  min-height: 32px;
  padding: 4px 8px;
  font-size: 13px;
}

body.admin-visual .staff-ranking-search {
  min-height: 32px;
  padding: 0 16px;
  border: 1px solid #20a46b;
  border-radius: 6px;
  background: linear-gradient(135deg, #21b879, #148f62);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(20, 143, 98, 0.18);
}

body.admin-visual .staff-ranking-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(100px, 1fr));
  gap: 8px;
}

body.admin-visual .staff-ranking-summary-card {
  padding: 10px 12px;
  border: 1px solid #e8edf4;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

body.admin-visual .staff-ranking-summary-card span {
  display: block;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  color: #111827;
}

body.admin-visual .staff-ranking-summary-card small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 500;
  color: #9ca3af;
}

body.admin-visual .staff-ranking-table-wrap {
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid #e8edf4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

body.admin-visual .staff-ranking-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

body.admin-visual .staff-ranking-table thead th {
  padding: 9px 12px;
  border-bottom: 1px solid #e8edf4;
  background: #f3f6fa;
  color: #4b5563;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

body.admin-visual .staff-ranking-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  color: #111827;
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
}

body.admin-visual .staff-ranking-table tbody tr:last-child td {
  border-bottom: 0;
}

body.admin-visual .staff-ranking-table tbody tr:hover {
  background: #f8fbff;
}

body.admin-visual .staff-ranking-modal .detail-actions {
  padding: 12px 16px;
  border-top: 1px solid #edf1f7;
}

/* Admin-only enterprise dashboard presentation */
.admin-enterprise-nav,
.admin-welcome {
  display: none;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) {
  background: #f3f6fa;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-enterprise-nav {
  display: flex;
  min-height: 60px;
  margin-bottom: 18px;
  padding: 0 20px;
  align-items: center;
  gap: 28px;
  border: 1px solid #e4eaf2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(23, 43, 77, 0.06);
}

.enterprise-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #172033;
  white-space: nowrap;
}

.brand-logo {
  display: block;
  width: auto;
  height: 36px;
  object-fit: contain;
}

.enterprise-brand-mark {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #2563a9;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.enterprise-nav-items {
  display: flex;
  min-width: 0;
  align-items: stretch;
  gap: 4px;
  align-self: stretch;
}

.enterprise-nav-items span {
  display: inline-flex;
  padding: 0 14px;
  align-items: center;
  border-bottom: 3px solid transparent;
  color: #667085;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.enterprise-nav-items span.active {
  border-bottom-color: #2563a9;
  color: #1d4f91;
}

.enterprise-account {
  display: inline-flex;
  margin-left: auto;
  align-items: center;
  gap: 7px;
  color: #526074;
  font-size: 13px;
  white-space: nowrap;
}

.enterprise-account span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f8f67;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-top {
  justify-content: flex-end;
  margin-bottom: 14px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-top > div:first-child {
  display: none;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-welcome {
  display: flex;
  min-height: 92px;
  margin-bottom: 16px;
  padding: 20px 24px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #dce7f5;
  border-radius: 8px;
  background: #f8fbff;
  box-shadow: 0 5px 18px rgba(37, 99, 169, 0.05);
}

.admin-welcome h2 {
  margin: 0;
  color: #172033;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: 0;
}

.admin-welcome p {
  margin: 7px 0 0;
  color: #718096;
  font-size: 14px;
}

.admin-welcome-tag {
  padding: 7px 12px;
  border: 1px solid #cbdcf1;
  border-radius: 6px;
  background: #fff;
  color: #2563a9;
  font-size: 12px;
  font-weight: 700;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .visual-stats {
  gap: 12px;
  padding: 12px;
  border-color: #e4eaf2;
  box-shadow: 0 6px 20px rgba(23, 43, 77, 0.06);
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .visual-stats > div {
  min-height: 78px;
  padding: 15px 18px;
  border-color: #e7edf5;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(23, 43, 77, 0.04);
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .visual-stats > div::before {
  display: block;
  width: 24px;
  height: 3px;
  margin-bottom: 10px;
  border-radius: 2px;
  background: #5b8fc9;
  content: "";
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .visual-stats span {
  color: #172033;
  font-size: 27px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .visual-stats small {
  color: #68758a;
  font-size: 13px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .filters,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .table-wrap {
  border-color: #e1e8f0;
  box-shadow: 0 6px 20px rgba(23, 43, 77, 0.055);
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .table-wrap {
  border-radius: 8px;
  background: #fff;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-table thead th {
  border-bottom-color: #dbe4ef;
  background: #f4f7fb;
  color: #344054;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-table tbody tr:hover {
  background: #f6f9fd;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .actions button,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .actions a,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .pagination button {
  box-shadow: none;
}

/* Administrator dashboard visual refinement */
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-enterprise-nav {
  min-height: 66px;
  padding: 0 22px;
  gap: 34px;
  border-color: #dce5f0;
  box-shadow: 0 8px 24px rgba(29, 58, 98, 0.07);
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .enterprise-brand {
  gap: 12px;
  font-size: 15px;
  font-weight: 800;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .enterprise-brand-mark {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: linear-gradient(145deg, #2e72bd, #1d4f91);
  box-shadow: 0 5px 12px rgba(37, 99, 169, 0.22);
  font-size: 18px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .enterprise-nav-items {
  gap: 10px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .enterprise-nav-items span {
  padding: 0 12px;
  border-bottom-width: 2px;
  color: #66758a;
  font-size: 14px;
  font-weight: 650;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .enterprise-nav-items span.active {
  color: #1d4f91;
  font-weight: 800;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .enterprise-account {
  padding: 7px 11px;
  border: 1px solid #e0e7f0;
  border-radius: 7px;
  background: #f8fafc;
  color: #475569;
  font-weight: 650;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .enterprise-account span {
  box-shadow: 0 0 0 3px rgba(47, 143, 103, 0.12);
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .actions {
  gap: 8px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .actions button,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .actions a {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #bfd1e6;
  border-radius: 6px;
  background: #edf4fb;
  color: #245b96;
  font-size: 13px;
  font-weight: 700;
  line-height: 34px;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .actions button:hover,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .actions a:hover {
  border-color: #8eb2d8;
  background: #e3eef9;
  color: #174b82;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #addApplicantBtn,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #exportLink {
  border-color: #2563a9;
  background: #2563a9;
  color: #fff;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #addApplicantBtn:hover,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #exportLink:hover {
  border-color: #1d4f91;
  background: #1d4f91;
  color: #fff;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #batchDeleteBtn {
  border-color: #e8b8b8;
  background: #fff8f8;
  color: #b94a4a;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #logoutBtn {
  border-color: #d7dee8;
  background: #fff;
  color: #6b7280;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-welcome {
  min-height: 104px;
  padding: 23px 26px;
  border-color: #d7e5f4;
  background: linear-gradient(105deg, #f5f9fe 0%, #ffffff 62%, #edf5fd 100%);
  box-shadow: 0 8px 24px rgba(37, 99, 169, 0.07);
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-welcome h2 {
  color: #163a64;
  font-size: 22px;
  font-weight: 800;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-welcome p {
  margin-top: 8px;
  color: #697a91;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-welcome-tag {
  padding: 8px 13px;
  border-color: #bcd1e8;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 4px 12px rgba(37, 99, 169, 0.08);
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .visual-stats {
  gap: 14px;
  padding: 14px;
  border-color: #dfe7f0;
  box-shadow: 0 8px 24px rgba(29, 58, 98, 0.06);
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .visual-stats > div {
  min-height: 84px;
  padding: 16px 18px;
  border-color: #e2e9f2;
  box-shadow: 0 3px 10px rgba(29, 58, 98, 0.045);
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .visual-stats > div::before {
  width: 28px;
  height: 2px;
  margin-bottom: 11px;
  background: #4b83bd;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .visual-stats span {
  font-size: 29px;
  font-weight: 850;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .filters {
  padding: 20px 22px;
  border-color: #dfe7f0;
  box-shadow: 0 8px 24px rgba(29, 58, 98, 0.055);
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .filters label {
  gap: 8px;
  color: #344054;
  font-size: 13px;
  font-weight: 750;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .filters input,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .filters select,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .filters button:not(.filter-clear) {
  height: 40px;
  min-height: 40px;
  border-color: #d3dce8;
  border-radius: 6px;
  font-size: 13px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .filters input:focus,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .filters select:focus,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .filters button:focus {
  border-color: #6d9dcc;
  box-shadow: 0 0 0 3px rgba(37, 99, 169, 0.1);
  outline: none;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .table-wrap {
  border-color: #dfe7f0;
  box-shadow: 0 8px 24px rgba(29, 58, 98, 0.06);
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-table thead th {
  padding-top: 14px;
  padding-bottom: 14px;
  border-bottom-color: #d4dfec;
  background: #eef3f8;
  color: #344054;
  font-weight: 800;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-table tbody td {
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom-color: #e8edf3;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-table tbody tr:nth-child(even) {
  background: #fbfcfe;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-table tbody tr:hover {
  background: #f2f7fc;
}

@media (max-width: 768px) {
  body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-enterprise-nav {
    padding: 12px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .enterprise-brand {
    width: 100%;
  }

  .brand-logo {
    height: 30px;
  }

  .enterprise-nav-items {
    max-width: 100%;
    min-height: 38px;
    overflow-x: auto;
  }

  .enterprise-nav-items span {
    padding: 0 10px;
  }

  .enterprise-account {
    margin-left: 0;
  }

  body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-welcome {
    min-height: 0;
    padding: 16px;
  }

  body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .actions {
    width: 100%;
    flex-wrap: wrap;
  }

  body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .actions button,
  body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .actions a {
    flex: 0 0 auto;
  }

  .admin-welcome h2 {
    font-size: 18px;
  }

  .admin-welcome-tag {
    display: none;
  }
}

@media (max-width: 768px) {
  body.admin-visual .staff-ranking-modal {
    width: calc(100vw - 16px);
  }

  body.admin-visual .staff-ranking-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}body.admin-visual.partner-readonly .check-cell {
  display: none;
}

body.admin-visual.partner-readonly thead th:has(#selectAllRows) {
  display: none;
}

.status-badge,
body.admin-visual .readonly-status {
  display: inline-block;
  min-width: 56px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  white-space: nowrap;
}

.status-badge.status-pending,
.readonly-status.status-pending,
.status-select.status-pending {
  background: #f3f4f6;
  color: #6b7280;
}

.status-badge.status-arrived,
.readonly-status.status-arrived,
.status-select.status-arrived {
  background: #e0f2fe;
  color: #0369a1;
}

.status-badge.status-pass,
.readonly-status.status-pass,
.status-select.status-pass {
  background: #dcfce7;
  color: #15803d;
}

.status-badge.status-onboard,
.readonly-status.status-onboard,
.status-select.status-onboard {
  background: #dbeafe;
  color: #1e40af;
}

.status-badge.status-fail,
.readonly-status.status-fail,
.status-select.status-fail {
  background: #fdecec;
  color: #b42318;
}

.status-badge.status-abandon,
.readonly-status.status-abandon,
.status-select.status-abandon,
.status-badge.status-pass-abandon,
.readonly-status.status-pass-abandon,
.status-select.status-pass-abandon {
  background: #ffedd5;
  color: #c2410c;
}

body.admin-visual .status-select {
  border-radius: 999px;
}

body.admin-visual .readonly-field {
  display: inline-block;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
  color: #111827;
}

body.admin-visual .filters {
  overflow: visible;
}

body.admin-visual .filters > label.owner-filter-label {
  overflow: visible;
  position: relative;
  z-index: 1;
  width: 180px;
}

body.admin-visual .filters > label.owner-filter-label:has(.staff-filter-menu:not(.hidden)) {
  z-index: 10001;
}

.staff-filter-multiselect {
  position: relative;
  min-width: 180px;
  width: 100%;
  overflow: visible;
}

.staff-filter-trigger {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: 40px;
  min-height: 40px;
  padding: 0 32px 0 12px;
  border: 1px solid #d9e0ea;
  border-radius: 6px;
  background: #fff;
  color: #1f2937;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.staff-filter-trigger::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #6b7280;
  transform: translateY(-25%);
  pointer-events: none;
}

.staff-filter-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 10000;
  box-sizing: border-box;
  width: 240px;
  min-width: 100%;
  max-width: 260px;
  max-height: 260px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
}

.staff-filter-menu.hidden {
  display: none;
}

.staff-filter-menu .staff-filter-reset {
  display: block;
  width: 100%;
  height: 34px;
  margin: 0;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  background: #f8fafc;
  color: #1f2937;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.staff-filter-menu .staff-filter-reset:hover {
  background: #f1f5f9;
}

.staff-filter-divider {
  height: 1px;
  margin: 4px 0;
  background: #e8edf4;
}

.staff-filter-menu .staff-filter-option {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 34px;
  margin: 0;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: #1f2937;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.staff-filter-menu .staff-filter-option:hover {
  background: #f8fafc;
}

.staff-filter-menu .staff-filter-option input[type="checkbox"] {
  display: inline-block;
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  max-width: 16px;
  max-height: 16px;
  margin: 0;
  padding: 0;
  flex: 0 0 16px;
  accent-color: #2563eb;
}

.staff-filter-menu .staff-filter-option span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.admin-visual .filters .staff-filter-trigger {
  height: 40px;
  min-height: 40px;
}

body.admin-visual .filters .staff-filter-option input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  padding: 0 !important;
  border: 0;
  background: transparent;
  box-shadow: none;
}

@media (max-width: 900px) {
  body.admin-visual .filters > label.owner-filter-label {
    width: 100% !important;
  }

  .staff-filter-menu {
    width: min(260px, calc(100vw - 24px));
    max-width: min(260px, calc(100vw - 24px));
  }
}

/* Administrator recruitment table and pagination refinement */
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .table-meta {
  padding: 0 4px 8px;
  color: #718096;
  font-size: 12px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .table-wrap {
  overflow: visible;
  border: 1px solid #dbe5f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(29, 58, 98, 0.065);
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-table {
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-table thead th {
  padding-top: 13px;
  padding-bottom: 13px;
  border-right: 1px solid #e3eaf2;
  border-bottom: 1px solid #cfdbe8;
  background: #edf3f9;
  color: #31445d;
  font-size: 13px;
  font-weight: 800;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-table thead th:last-child {
  border-right: 0;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-table tbody td {
  padding-top: 11px;
  padding-bottom: 11px;
  border-bottom: 1px solid #e7edf4;
  color: #27364a;
  line-height: 1.35;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-table tbody tr:last-child td {
  border-bottom: 0;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-table tbody tr:nth-child(even) {
  background: #fbfcfe;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-table tbody tr:hover {
  background: #f1f6fb;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .pagination {
  margin-top: 14px;
  padding: 13px 16px;
  border: 1px solid #dbe5f0;
  border-radius: 8px;
  background: #fff;
  color: #52647a;
  box-shadow: 0 6px 18px rgba(29, 58, 98, 0.05);
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #pageSummary {
  color: #607086;
  font-size: 13px;
  font-weight: 650;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .page-controls {
  gap: 7px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .page-size {
  height: 34px;
  color: #607086;
  font-size: 13px;
  font-weight: 600;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .page-size select {
  height: 34px;
  border-color: #cfd9e5;
  border-radius: 6px;
  color: #344054;
  background-color: #fff;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .page-size select:focus {
  border-color: #5d91c5;
  box-shadow: 0 0 0 3px rgba(37, 99, 169, 0.1);
  outline: none;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #pageInfo {
  min-height: 34px;
  padding: 0 8px;
  color: #40536b;
  font-size: 13px;
  font-weight: 700;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .page-controls button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #b9cee3;
  border-radius: 6px;
  background: #eef5fc;
  color: #245b96;
  font-size: 13px;
  font-weight: 700;
  box-shadow: none;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .page-controls button:hover:not(:disabled) {
  border-color: #78a3ce;
  background: #deebf8;
  color: #174b82;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .page-controls button:active:not(:disabled) {
  background: #d3e4f5;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .page-controls button:disabled {
  border-color: #e0e5eb;
  background: #f5f7f9;
  color: #a2acb8;
  opacity: 1;
}

@media (max-width: 768px) {
  body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .pagination,
  body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .page-controls {
    width: 100%;
    flex-wrap: wrap;
  }

  body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .pagination {
    align-items: flex-start;
    padding: 12px;
  }
}

/* Recruitment welcome panel with integrated actions */
#recruitmentView .recruitment-welcome-panel {
  align-items: flex-start;
  gap: 18px;
}

#recruitmentView .recruitment-welcome-copy {
  flex: 1 1 260px;
  min-width: 0;
}

#recruitmentView .recruitment-welcome-actions {
  flex: 1 1 380px;
  max-width: 640px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

#recruitmentView .toolbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  box-shadow: none !important;
  white-space: nowrap;
}

#recruitmentView .toolbar-btn-view {
  border: 1px solid #cfe0fb;
  background: #f8fbff;
  color: #2563eb;
}

#recruitmentView .toolbar-btn-primary {
  border: 1px solid #3b82f6;
  background: #3b82f6;
  color: #fff;
}

#recruitmentView .toolbar-btn-danger {
  border: 1px solid #fecaca;
  background: #fff5f5;
  color: #dc2626;
}

#recruitmentView .toolbar-btn-muted {
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #6b7280;
}

@media (max-width: 900px) {
  #recruitmentView .recruitment-welcome-panel {
    flex-direction: column;
    align-items: stretch;
  }

  #recruitmentView .recruitment-welcome-actions {
    max-width: none;
    justify-content: flex-start;
  }
}

/* Admin enterprise shell: topbar + sidebar + content workspace */
.admin-topbar,
.admin-layout {
  display: none;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) {
  background: #eef2f6;
  overflow-x: hidden;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #adminApp.admin-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.18);
  background: #1e3a5f;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.14);
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-topbar .enterprise-brand {
  color: #f8fafc;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-topbar .brand-logo {
  height: 32px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-topbar .enterprise-account {
  margin-left: auto;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-topbar .enterprise-account span {
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18);
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-layout {
  display: flex;
  flex: 1;
  width: 100%;
  min-height: 0;
  min-width: 0;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-sidebar {
  width: 208px;
  flex-shrink: 0;
  padding: 12px 0 16px;
  border-right: 1px solid #e2e8f0;
  background: #fff;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-sidebar-nav {
  width: 100%;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-sidebar .enterprise-nav-items {
  flex-direction: column;
  gap: 4px;
  align-self: auto;
  min-width: 0;
  padding: 0 10px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-sidebar .enterprise-nav-items span {
  width: 100%;
  padding: 10px 14px;
  border-bottom: 0;
  border-left: 3px solid transparent;
  border-radius: 8px;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-sidebar .enterprise-nav-items span:hover {
  background: #f8fafc;
  color: #1e40af;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-sidebar .enterprise-nav-items span.active {
  border-left-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-content-area {
  flex: 1;
  min-width: 0;
  padding: 16px 18px 24px;
  background: #eef2f6;
  overflow-x: hidden;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-content-area > .workbench-view:not(.hidden),
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-content-area > .admin-placeholder-view:not(.hidden),
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-content-area > #recruitmentView:not(.hidden) {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-content-area > .workbench-view:not(.hidden) {
  padding: 20px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-content-area > .admin-placeholder-view:not(.hidden) {
  padding: 18px 20px 20px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-content-area > #recruitmentView:not(.hidden) {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px 16px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-welcome-panel {
  min-height: 0;
  margin: 0;
  padding: 10px 14px;
  align-items: center;
  border: 1px solid #e8eef6;
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: none;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-welcome-copy h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-welcome-copy p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #64748b;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-welcome-actions {
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-lite-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #e8eef6;
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: none;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-lite-stats > div {
  min-height: 54px;
  padding: 8px 10px;
  border: 1px solid #e8eef6;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-lite-stats > div::before {
  width: 20px;
  height: 2px;
  margin-bottom: 6px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-lite-stats span {
  font-size: 22px;
  font-weight: 800;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-lite-stats small {
  margin-top: 4px;
  font-size: 12px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: flex-end;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #e8eef6;
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: none;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .filters label {
  flex: 1 1 150px;
  min-width: 130px;
  margin: 0;
  gap: 6px;
  font-size: 12px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .filters input,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .filters select,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .filters .staff-filter-trigger,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .filters button:not(.filter-clear) {
  height: 36px;
  min-height: 36px;
  border-color: #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .table-meta {
  margin: 0;
  padding: 0 2px;
  color: #64748b;
  font-size: 12px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .table-wrap {
  margin: 0;
  border: 1px solid #e8eef6;
  border-radius: 8px;
  overflow-x: auto;
  box-shadow: none;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table thead th {
  padding: 10px 10px;
  border-bottom: 1px solid #e2e8f0;
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table tbody td {
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 12px;
  line-height: 1.35;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table tbody tr:hover {
  background: #f8fafc;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .pagination {
  margin: 0;
  padding: 10px 2px 0;
  border-top: 0;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .toolbar-btn-view {
  border: 1px solid #bfdbfe;
  background: #fff;
  color: #1e40af;
  box-shadow: none;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .toolbar-btn-primary,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView #addApplicantBtn,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView #exportLink {
  border: 1px solid #2563eb;
  background: #2563eb;
  color: #fff;
  box-shadow: none;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .toolbar-btn-danger,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView #batchDeleteBtn {
  border: 1px solid #fecaca;
  background: #fff;
  color: #dc2626;
  box-shadow: none;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .toolbar-btn-muted,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView #logoutBtn {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  box-shadow: none;
}

@media (max-width: 900px) {
  body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-layout {
    flex-direction: column;
  }

  body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-sidebar {
    width: 100%;
    padding: 8px 10px;
    border-right: 0;
    border-bottom: 1px solid #e2e8f0;
  }

  body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-sidebar .enterprise-nav-items {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-sidebar .enterprise-nav-items span {
    width: auto;
    flex: 0 0 auto;
    border-left: 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
  }

  body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-sidebar .enterprise-nav-items span.active {
    border-bottom-color: #2563eb;
    background: #eff6ff;
  }

  body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-content-area {
    padding: 12px;
  }

  body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-lite-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Admin UI phase 2: grouped sidebar + business panels */
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-topbar {
  align-items: center;
  min-height: 56px;
  max-height: 56px;
  padding: 0 16px;
  background: #1e40af;
  border-bottom-color: rgba(15, 23, 42, 0.1);
  box-shadow: none;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-topbar .enterprise-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-topbar .brand-logo {
  height: 30px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-system-name {
  color: #f1f5f9;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-topbar .enterprise-account {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 500;
  box-shadow: none;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-topbar .enterprise-account span {
  width: 6px;
  height: 6px;
  background: #4ade80;
  box-shadow: none;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-sidebar {
  width: 208px;
  padding: 0 0 12px;
  border-right: 1px solid #eef2f6;
  background: #fff;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-sidebar-title {
  margin: 0;
  padding: 14px 14px 10px;
  border-bottom: 1px solid #f1f5f9;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-sidebar-nav {
  padding: 8px 8px 0;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-sidebar-section + .admin-sidebar-section {
  margin-top: 6px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-sidebar-group-title {
  margin: 0 0 3px;
  padding: 0 8px;
  color: #a8b3c2;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-sidebar-item {
  display: flex;
  width: 100%;
  min-height: 38px;
  margin: 0 0 2px;
  padding: 0 8px 0 6px;
  align-items: center;
  gap: 8px;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-sidebar-icon {
  width: 16px;
  flex-shrink: 0;
  color: #94a3b8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-sidebar-item:hover,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-sidebar-trigger:hover {
  background: #f8fafc;
  color: #334155;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-sidebar-item.active {
  border-left-color: #2563eb;
  background: #eff6ff;
  color: #1e40af;
  font-weight: 700;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-sidebar-item.active .admin-sidebar-icon {
  color: #2563eb;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-content-area {
  padding: 14px 16px 20px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-content-area > #recruitmentView:not(.hidden).recruitment-business-view {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-page-title h1 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
  font-weight: 700;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-page-title p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 12px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-business-panel {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  max-height: 72px;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #f1f5f9;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-metrics-bar > div {
  display: flex;
  min-height: 72px;
  padding: 10px 14px;
  flex-direction: column;
  justify-content: center;
  border: 0;
  border-right: 1px solid #f1f5f9;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-metrics-bar > div:last-child {
  border-right: 0;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-metrics-bar > div::before {
  display: none;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-metrics-bar span {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-metrics-bar small {
  margin-top: 2px;
  font-size: 11px;
  color: #64748b;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: flex-end;
  margin: 0 0 10px;
  padding: 12px;
  border: 0;
  border-bottom: 1px solid #eef2f6;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-filters-bar label {
  display: flex;
  flex-direction: column;
  flex: 1 1 150px;
  min-width: 128px;
  max-width: 220px;
  margin: 0;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-filters-bar label.month-filter-label {
  display: flex;
  flex-direction: column;
  flex: 1 1 220px;
  max-width: 280px;
  gap: 4px;
  margin: 0;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-filters-bar label.owner-filter-label {
  flex: 1 1 170px;
  max-width: 240px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-filters-bar input,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-filters-bar select,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-filters-bar button:not(.filter-clear),
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-filters-bar .staff-filter-trigger {
  box-sizing: border-box;
  width: 100%;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  padding: 0 10px;
  border: 1px solid #dbe4f0;
  border-radius: 4px;
  background: #fff;
  color: #1f2937;
  font-size: 13px;
  line-height: 30px;
  box-shadow: none;
  vertical-align: middle;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-filters-bar select {
  padding-right: 28px;
  appearance: auto;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-filters-bar .staff-filter-trigger {
  display: inline-flex;
  align-items: center;
  width: 100%;
  padding: 0 26px 0 10px;
  font-weight: 500;
  line-height: 1;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-filters-bar .staff-filter-trigger::after {
  right: 10px;
  transform: translateY(-50%);
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-filters-bar input::placeholder {
  color: #94a3b8;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-filters-bar input:focus,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-filters-bar select:focus,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-filters-bar .staff-filter-trigger:focus,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-filters-bar .staff-filter-trigger:focus-visible {
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-filters-bar .search-clear-wrap {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  border: 1px solid #dbe4f0;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-filters-bar .filter-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  min-height: 24px;
  margin: 0 4px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 1;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-filters-bar .search-clear-wrap input {
  flex: 1;
  width: auto;
  height: 100%;
  min-height: 0;
  border: 0;
  padding: 0 10px;
  background: transparent;
  box-shadow: none;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-filters-bar .search-clear-wrap:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-filters-bar .month-filter-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-sizing: border-box;
  line-height: normal;
  font-size: inherit;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-filters-bar .month-filter-row #monthFilter,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-filters-bar #clearMonthFilter.month-filter-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid #dbe4f0;
  border-radius: 4px;
  background: #fff;
  color: #1f2937;
  font-size: 13px;
  font-weight: 500;
  line-height: 30px;
  white-space: nowrap;
  box-shadow: none;
  vertical-align: middle;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-filters-bar #clearMonthFilter.month-filter-all {
  flex: 0 0 auto;
  color: #475569;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-filters-bar .month-filter-all:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-filters-bar .staff-filter-multiselect {
  width: 100%;
  min-height: 32px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-filters-bar .staff-filter-menu {
  width: 100%;
  min-width: 220px;
  max-width: 260px;
  max-height: 260px;
  padding: 8px;
  border: 1px solid #dbe4f0;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
  overflow-x: hidden;
  overflow-y: auto;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-filters-bar .staff-filter-menu .staff-filter-reset {
  display: flex;
  align-items: center;
  width: 100%;
  height: 28px;
  min-height: 28px;
  margin: 0;
  padding: 4px 6px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #1f2937;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
  box-shadow: none;
  cursor: pointer;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-filters-bar .staff-filter-menu .staff-filter-reset:hover {
  background: #f0f7ff;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-filters-bar .staff-filter-menu .staff-filter-divider {
  height: 1px;
  margin: 6px 0;
  background: #e8edf4;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-filters-bar .staff-filter-menu .staff-filter-option {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 28px;
  height: auto;
  margin: 0;
  padding: 4px 6px;
  border: 0;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  color: #1f2937;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-filters-bar .staff-filter-menu .staff-filter-option:hover {
  background: #f0f7ff;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-filters-bar .staff-filter-menu .staff-filter-option input[type="checkbox"] {
  display: inline-block;
  flex: 0 0 16px;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  line-height: normal;
  vertical-align: middle;
  accent-color: #2563eb;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-filters-bar .staff-filter-menu .staff-filter-option span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 36px;
  padding: 8px 12px 4px;
  flex-wrap: wrap;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
  flex: 1 1 auto;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: nowrap;
  margin-left: auto;
  align-self: center;
  flex-shrink: 0;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-toolbar .recruitment-toolbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  height: 30px;
  padding: 0 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  box-shadow: none;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  cursor: pointer;
  gap: 6px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-toolbar .recruitment-toolbar-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #64748b;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-toolbar .recruitment-toolbar-btn-secondary {
  border: 1px solid #dbe4f0;
  background: #fff;
  color: #334155;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-toolbar .recruitment-toolbar-btn-secondary:hover {
  background: #f0f7ff;
  border-color: #9ec5ff;
  color: #2563eb;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-toolbar .recruitment-toolbar-btn-secondary:hover .recruitment-toolbar-icon {
  color: #2563eb;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-toolbar #addApplicantBtn.recruitment-toolbar-btn-primary {
  border: 1px solid #1f3f99;
  background: #1f3f99;
  color: #fff;
  padding: 0 12px;
  box-shadow: none;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-toolbar #addApplicantBtn.recruitment-toolbar-btn-primary:hover {
  background: #183576;
  border-color: #183576;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-toolbar .recruitment-toolbar-btn-danger {
  border: 1px solid #fecaca;
  background: #fff;
  color: #dc2626;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-toolbar .recruitment-toolbar-btn-danger:hover {
  background: #fef2f2;
  border-color: #fca5a5;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-toolbar-actions .table-meta {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
}



body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-panel .table-wrap {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-panel .admin-table thead th {
  padding: 8px 10px;
  border-bottom: 1px solid #e8edf3;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-panel .admin-table tbody td {
  padding: 7px 10px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 12px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-panel .admin-table tbody tr:hover {
  background: #f8fafc;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  border-top: 1px solid #f1f5f9;
  background: #fafbfc;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-pagination-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-batch-selected {
  font-size: 13px;
  color: #64748b;
  white-space: nowrap;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-batch-delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 30px;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid #fecaca;
  border-radius: 4px;
  background: #fff;
  color: #dc2626;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  box-shadow: none;
  cursor: pointer;
  white-space: nowrap;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-batch-delete-btn:hover {
  background: #fef2f2;
  border-color: #fca5a5;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #employeeManagementView .admin-placeholder-hero,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #dataStatisticsView .admin-placeholder-hero {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #employeeManagementView .admin-placeholder-hero h1,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #dataStatisticsView .admin-placeholder-hero h1 {
  font-size: 18px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #employeeManagementView .employee-management-stats,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #dataStatisticsView .data-stats-overview {
  gap: 10px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #employeeManagementView .employee-management-stats article,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #dataStatisticsView .data-stats-overview article {
  min-height: 68px;
  padding: 10px 12px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #employeeManagementView .employee-management-panel .workbench-panel-heading {
  flex-wrap: wrap;
  gap: 10px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #employeeManagementView .employee-management-page-table th,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #employeeManagementView .employee-management-page-table td {
  padding: 8px 10px;
  font-size: 12px;
}

@media (max-width: 900px) {
  body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-system-name {
    font-size: 13px;
  }

  body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-sidebar-nav {
    display: flex;
    gap: 8px;
    padding: 8px 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-sidebar-section {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 6px;
    align-items: center;
  }

  body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-sidebar-section + .admin-sidebar-section {
    margin-top: 0;
    padding-left: 8px;
    border-left: 1px solid #e2e8f0;
  }

  body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-sidebar-group-title {
    margin: 0;
    padding: 0 4px 0 0;
    white-space: nowrap;
  }

  body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-sidebar-item {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
    border-left: 0;
    border-bottom: 2px solid transparent;
  }

  body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-sidebar-item.active {
    border-bottom-color: #2563eb;
    background: #eff6ff;
  }

  body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-metrics-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
  }

  body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-metrics-bar > div {
    min-height: 58px;
    border-right: 0;
    border-bottom: 1px solid #f1f5f9;
  }

  body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-page-header {
    flex-direction: column;
  }

  body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-page-actions {
    justify-content: flex-start;
  }
}

/* Admin top horizontal nav: hide sidebar, full-width content */
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-sidebar {
  display: none !important;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  max-height: 56px;
  padding: 0 16px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-topbar .enterprise-brand {
  flex-shrink: 0;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-topnav.enterprise-nav-items {
  display: flex;
  flex: 1;
  min-width: 0;
  justify-content: center;
  align-items: stretch;
  gap: 2px;
  align-self: stretch;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-topnav.enterprise-nav-items span {
  display: inline-flex;
  padding: 0 14px;
  align-items: center;
  border-bottom: 2px solid transparent;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-topnav.enterprise-nav-items span:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-topnav.enterprise-nav-items span.active {
  border-bottom-color: #fff;
  color: #fff;
  font-weight: 700;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-topbar .enterprise-account {
  flex-shrink: 0;
  margin-left: 0;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-layout {
  display: block;
  width: 100%;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-content-area {
  width: 100%;
  max-width: none;
  padding: 16px 18px 24px;
  overflow-x: hidden;
}

@media (max-width: 900px) {
  body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-topbar {
    flex-wrap: wrap;
    min-height: 0;
    max-height: none;
    padding: 10px 12px;
    gap: 8px;
  }

  body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-topnav.enterprise-nav-items {
    order: 3;
    flex: 1 1 100%;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-topnav.enterprise-nav-items span {
    flex: 0 0 auto;
    height: 40px;
    padding: 0 12px;
  }

  body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-content-area {
    padding: 12px;
  }
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-topbar .enterprise-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-left: 2px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-topbar .brand-icon {
  display: block;
  width: auto;
  height: 33px;
  object-fit: contain;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-topbar .admin-system-name {
  color: rgba(255, 255, 255, 0.95);
  font-size: 15px;
  font-weight: 700;
}

/* Topnav + workbench welcome light polish */
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-topnav.enterprise-nav-items {
  flex: 1;
  justify-content: flex-start;
  padding-left: 20px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-topbar .enterprise-account {
  margin-left: auto;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-content-area > .workbench-view:not(.hidden) {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .workbench-view:not(.hidden) .brand-welcome {
  min-height: clamp(480px, calc(100vh - 155px), 720px);
  padding: 36px 24px 84px;
  border: 0;
  border-radius: 0;
  background: #f8fafc;
  box-shadow: none;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-account-menu {
  position: relative;
  flex-shrink: 0;
  margin-left: auto;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-account-trigger {
  display: inline-flex;
  min-height: 38px;
  max-height: 40px;
  padding: 0 12px 0 4px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.18s ease, border-color 0.18s ease;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-account-trigger:hover,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-account-trigger.admin-account-menu__trigger--open {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.24);
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-account-avatar {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-account-label {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-account-caret {
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  line-height: 1;
  flex-shrink: 0;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-account-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  width: 168px;
  min-width: 168px;
  padding: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-account-menu__arrow {
  position: absolute;
  top: -6px;
  right: 18px;
  width: 10px;
  height: 10px;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  border-left: 1px solid #e2e8f0;
  transform: rotate(45deg);
  pointer-events: none;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-account-dropdown-item,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-account-menu__item {
  display: flex;
  width: 100%;
  min-height: 40px;
  padding: 0 14px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #334155;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-account-menu__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #64748b;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-account-menu__text {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-account-dropdown-item:hover,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-account-menu__item:hover {
  background: #f8fafc;
  color: #0f172a;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-account-menu__item--disabled,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-account-menu__item--disabled:hover {
  background: transparent;
  color: #94a3b8;
  cursor: not-allowed;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-account-menu__item--disabled .admin-account-menu__icon {
  color: #94a3b8;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-account-menu__divider {
  height: 1px;
  margin: 4px 8px;
  background: #e5e7eb;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-account-menu__item--logout:hover {
  background: #fef2f2;
  color: #b91c1c;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-account-menu__item--logout:hover .admin-account-menu__icon {
  color: #b91c1c;
}

@media (max-width: 760px) {
  body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-account-dropdown {
    right: 0;
    width: 168px;
    max-width: calc(100vw - 24px);
  }
}

/* Recruitment list page: compact business panel polish */
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) .admin-content-area > #recruitmentView:not(.hidden).recruitment-business-view {
  gap: 0;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-page-header {
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #fff;
  box-shadow: none;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-page-actions .toolbar-btn,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-page-actions #addApplicantBtn,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-page-actions #exportLink,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-page-actions #batchDeleteBtn {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 32px;
  box-shadow: none;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-business-panel {
  border: 1px solid #e2e8f0;
  border-radius: 0 0 8px 8px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-metrics-bar {
  max-height: 60px;
  border-bottom: 1px solid #eef2f6;
  background: #fafbfc;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-metrics-bar > div {
  min-height: 60px;
  padding: 8px 12px;
  border-right-color: #eef2f6;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-metrics-bar span {
  font-size: 18px;
  font-weight: 800;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-metrics-bar small {
  font-size: 11px;
  color: #64748b;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-panel .table-meta {
  padding: 6px 12px 0;
  font-size: 11px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-panel .admin-table thead th {
  padding: 7px 10px;
  border-bottom: 1px solid #dbe4f0;
  background: #f1f5f9;
  color: #1f2937;
  font-size: 13px;
  font-weight: 600;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-panel .admin-table tbody td {
  padding: 6px 10px;
  border-bottom: 1px solid #e5edf6;
  color: #1f2937;
  font-size: 13px;
  line-height: 1.3;
  vertical-align: middle;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-panel .admin-table tbody tr:hover {
  background: #f8fbff;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-pagination {
  padding: 8px 12px;
  border-top: 1px solid #eef2f6;
  background: #fafbfc;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-pagination .page-controls button,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-pagination .page-size select {
  min-height: 32px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  box-shadow: none;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-pagination #pageSummary,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-pagination #pageInfo {
  font-size: 12px;
  color: #64748b;
}

@media (max-width: 900px) {
  body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-page-header {
    border-radius: 8px 8px 0 0;
  }

  body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-metrics-bar {
    max-height: none;
  }

  body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-metrics-bar > div {
    min-height: 52px;
  }
}

/* Recruitment table inline selects: collapsed state polish */
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table tbody select {
  height: 28px;
  min-height: 28px;
  max-height: 28px;
  padding: 0 24px 0 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%2364748b' d='M2 3.5 5 7 8 3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 7px center;
  background-size: 10px 10px;
  color: #1f2937;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table select.employee-type-select {
  min-width: 108px;
  max-width: 120px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table select.tattoo-select {
  box-sizing: border-box;
  min-width: 52px;
  width: 52px;
  max-width: 52px;
  padding-right: 18px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table select.status-select {
  min-width: 84px;
  max-width: 96px;
  border-radius: 6px;
  font-weight: 500;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table tbody select:hover {
  border-color: #93c5fd;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table tbody select:focus {
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.14);
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table select.status-select.status-pending {
  border-color: #dbe4f0;
  background-color: #f8fafc;
  color: #475569;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table select.status-select.status-arrived {
  border-color: #bae6fd;
  background-color: #e0f2fe;
  color: #0369a1;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table select.status-select.status-pass {
  border-color: #bbf7d0;
  background-color: #f0fdf4;
  color: #15803d;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table select.status-select.status-pass-abandon {
  border-color: #fed7aa;
  background-color: #fff7ed;
  color: #c2410c;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table select.status-select.status-abandon {
  border-color: #fde68a;
  background-color: #fffbeb;
  color: #b45309;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table select.status-select.status-fail {
  border-color: #fecaca;
  background-color: #fef2f2;
  color: #b91c1c;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table select.status-select.status-onboard {
  border-color: #bfdbfe;
  background-color: #eff6ff;
  color: #1e40af;
}

/* Employee management page UI polish */
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #employeeManagementView .employee-management-stats {
  gap: 10px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #employeeManagementView .employee-management-stats article {
  min-height: 68px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: none;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #employeeManagementView .employee-management-stats small {
  margin-bottom: 6px;
  font-size: 12px;
  color: #64748b;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #employeeManagementView .employee-management-stats strong {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #employeeManagementView .employee-management-panel {
  padding: 0;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #employeeManagementView .employee-management-panel .workbench-panel-heading {
  margin: 0;
  padding: 12px 14px;
  border-bottom: 1px solid #eef2f6;
  background: #fafbfc;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #employeeManagementView .employee-management-panel .workbench-panel-heading h2 {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #employeeManagementView .employee-management-panel .workbench-panel-heading p {
  margin-top: 4px;
  font-size: 12px;
  color: #64748b;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #employeeManagementView .employee-management-panel .workbench-primary-action {
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid #2563eb;
  border-radius: 6px;
  background: #2563eb;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: none;
  white-space: nowrap;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #employeeManagementView .employee-management-table-scroll {
  margin-top: 0;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #employeeManagementView .employee-management-page-table {
  min-width: 1080px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #employeeManagementView .employee-management-page-table th,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #employeeManagementView .employee-management-page-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 12px;
  vertical-align: middle;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #employeeManagementView .employee-management-page-table th {
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #employeeManagementView .employee-management-page-table tbody tr:hover {
  background: #f8fafc;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #employeeManagementView .employee-management-page-table td strong {
  font-weight: 600;
  color: #0f172a;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #employeeManagementView .employee-management-page-table th:nth-child(1),
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #employeeManagementView .employee-management-page-table td:nth-child(1) {
  min-width: 110px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #employeeManagementView .employee-management-page-table th:nth-child(2),
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #employeeManagementView .employee-management-page-table td:nth-child(2) {
  min-width: 96px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #employeeManagementView .employee-management-page-table th:nth-child(3),
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #employeeManagementView .employee-management-page-table td:nth-child(3) {
  min-width: 88px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #employeeManagementView .employee-management-page-table th:nth-child(4),
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #employeeManagementView .employee-management-page-table td:nth-child(4) {
  min-width: 220px;
  max-width: 320px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #employeeManagementView .employee-management-page-table th:nth-child(5),
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #employeeManagementView .employee-management-page-table td:nth-child(5) {
  min-width: 120px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #employeeManagementView .employee-management-page-table th:nth-child(6),
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #employeeManagementView .employee-management-page-table td:nth-child(6) {
  width: 72px;
  min-width: 72px;
  text-align: center;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #employeeManagementView .employee-management-page-table th:nth-child(7),
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #employeeManagementView .employee-management-page-table td:nth-child(7) {
  min-width: 128px;
  width: 128px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #employeeManagementView .employee-management-page-table td.employee-page-actions {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #employeeManagementView .employee-management-page-table td.employee-page-actions button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #employeeManagementView .employee-management-page-table .employee-page-copy {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #employeeManagementView .employee-management-page-table .employee-page-copy:hover {
  border-color: #93c5fd;
  background: #dbeafe;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #employeeManagementView .employee-management-page-table .employee-page-enter {
  display: none !important;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #employeeManagementView .employee-wecom-status {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

@media (max-width: 900px) {
  body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #employeeManagementView .employee-management-page-table td.employee-page-actions {
    flex-wrap: wrap;
    row-gap: 6px;
  }
}

/* Full ID card modal visual polish */
body.admin-visual .id-card-modal {
  width: min(520px, calc(100vw - 32px));
  max-width: 520px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.14);
}

body.admin-visual .id-card-modal .detail-head {
  padding: 18px 22px;
  border-bottom: 1px solid #eef2f7;
}

body.admin-visual .id-card-modal .detail-head h2 {
  color: #0f172a;
  font-size: 21px;
  font-weight: 700;
}

body.admin-visual .id-card-modal .detail-close {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #f1f5f9;
  color: #475569;
  font-size: 20px;
  font-weight: 500;
  box-shadow: none;
}

body.admin-visual .id-card-modal .detail-close:hover {
  background: #e2e8f0;
  color: #1f2937;
}

body.admin-visual .id-card-content {
  margin: 20px 22px;
  padding: 16px 20px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  color: #111827;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 1px;
  text-align: center;
  word-break: break-all;
}

body.admin-visual .id-card-modal .id-card-actions {
  gap: 8px;
  padding: 14px 22px 20px;
  border-top: 1px solid #eef2f7;
}

body.admin-visual .id-card-modal .id-card-actions button {
  width: auto;
  min-width: 104px;
  height: 36px;
  min-height: 36px;
  margin: 0;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: none;
}

body.admin-visual .id-card-modal .id-card-copy {
  border: 1px solid #2563eb;
  background: #2563eb;
  color: #fff;
}

body.admin-visual .id-card-modal .id-card-copy:hover {
  border-color: #1d4ed8;
  background: #1d4ed8;
}

body.admin-visual .id-card-modal .id-card-revoke {
  border: 1px solid #fca5a5;
  background: #fff;
  color: #dc2626;
}

body.admin-visual .id-card-modal .id-card-revoke:hover {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #b91c1c;
}

body.admin-visual .id-card-modal .detail-cancel {
  min-width: 72px;
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
  color: #334155;
}

body.admin-visual .id-card-modal .detail-cancel:hover {
  background: #e2e8f0;
}

@media (max-width: 560px) {
  body.admin-visual .id-card-content {
    margin: 16px;
    padding: 14px 12px;
    font-size: 20px;
  }

  body.admin-visual .id-card-modal .id-card-actions {
    padding: 12px 16px 16px;
    flex-wrap: wrap;
  }
}

/* Data statistics staff ranking column balance */
#dataStatsStaffRankingPanel .data-stats-ranking-table {
  width: 100%;
  table-layout: fixed;
}

#dataStatsStaffRankingPanel .data-stats-ranking-table th,
#dataStatsStaffRankingPanel .data-stats-ranking-table td {
  overflow: hidden;
  white-space: nowrap;
}

#dataStatsStaffRankingPanel .data-stats-ranking-table :is(th, td):nth-child(1) {
  width: 6%;
  min-width: 0;
  text-align: center;
}

#dataStatsStaffRankingPanel .data-stats-ranking-table :is(th, td):nth-child(2) {
  width: 12%;
  min-width: 0;
}

#dataStatsStaffRankingPanel .data-stats-ranking-table :is(th, td):nth-child(3),
#dataStatsStaffRankingPanel .data-stats-ranking-table :is(th, td):nth-child(4),
#dataStatsStaffRankingPanel .data-stats-ranking-table :is(th, td):nth-child(6),
#dataStatsStaffRankingPanel .data-stats-ranking-table :is(th, td):nth-child(8) {
  width: 8%;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

#dataStatsStaffRankingPanel .data-stats-ranking-table :is(th, td):nth-child(5),
#dataStatsStaffRankingPanel .data-stats-ranking-table :is(th, td):nth-child(7),
#dataStatsStaffRankingPanel .data-stats-ranking-table :is(th, td):nth-child(9),
#dataStatsStaffRankingPanel .data-stats-ranking-table :is(th, td):nth-child(10) {
  width: 7%;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

#dataStatsStaffRankingPanel .data-stats-ranking-table :is(th, td):nth-child(11) {
  width: 10%;
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

#dataStatsStaffRankingPanel .data-stats-ranking-table :is(th, td):nth-child(12) {
  width: 12%;
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-panel .recruitment-table-toolbar-actions .table-meta {
  display: flex;
  height: 30px;
  margin: 0;
  padding: 0;
  align-items: center;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
}

/* Recruitment table column width balance */
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table {
  min-width: 1810px;
  table-layout: fixed;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table :is(th, td):nth-child(1) {
  width: 40px;
  min-width: 40px;
  max-width: 40px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table :is(th, td):nth-child(2) {
  width: 88px;
  min-width: 88px;
  max-width: 88px;
  white-space: nowrap;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table :is(th, td):nth-child(3) {
  width: 72px;
  min-width: 72px;
  max-width: 72px;
  white-space: nowrap;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table :is(th, td):nth-child(4) {
  width: 108px;
  min-width: 108px;
  max-width: 108px;
  white-space: nowrap;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table :is(th, td):nth-child(5) {
  width: 70px;
  min-width: 70px;
  max-width: 70px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table :is(th, td):nth-child(6) {
  width: 128px;
  min-width: 128px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table :is(th, td):nth-child(7) {
  width: 145px;
  min-width: 145px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table :is(th, td):nth-child(8) {
  width: 126px;
  min-width: 126px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table :is(th, td):nth-child(9) {
  width: 48px;
  min-width: 48px;
  max-width: 48px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table :is(th, td):nth-child(10) {
  width: 68px;
  min-width: 68px;
  max-width: 68px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table :is(th, td):nth-child(11),
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table :is(th, td):nth-child(12) {
  width: 52px;
  min-width: 52px;
  max-width: 52px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table :is(th, td):nth-child(13) {
  width: 70px;
  min-width: 70px;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table :is(th, td):nth-child(14) {
  width: 54px;
  min-width: 54px;
  max-width: 54px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table :is(th, td):nth-child(15) {
  width: 112px;
  min-width: 112px;
  max-width: 112px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table :is(th, td):nth-child(16),
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table :is(th, td):nth-child(17) {
  width: 80px;
  min-width: 80px;
  max-width: 80px;
  white-space: nowrap;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table :is(th, td):nth-child(18) {
  width: 48px;
  min-width: 48px;
  max-width: 48px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table :is(th, td):nth-child(19) {
  width: 78px;
  min-width: 78px;
  max-width: 78px;
  white-space: nowrap;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table :is(th, td):nth-child(20) {
  width: 105px;
  min-width: 105px;
  max-width: 105px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table :is(th, td):nth-child(22) {
  width: 85px;
  min-width: 85px;
  max-width: 85px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table :is(th, td):nth-child(23) {
  width: 100px;
  min-width: 100px;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 769px) {
  body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table :is(th, td):nth-child(10) {
    width: 60px;
    min-width: 60px;
    max-width: 60px;
  }

  body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table :is(th, td):nth-child(11),
  body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table :is(th, td):nth-child(12) {
    width: 46px;
    min-width: 46px;
    max-width: 46px;
  }

  body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table :is(th, td):nth-child(13) {
    width: 58px;
    min-width: 58px;
    max-width: 58px;
  }

  body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table :is(th, td):nth-child(14) {
    width: 49px;
    min-width: 49px;
    max-width: 49px;
  }

  body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table :is(th, td):nth-child(20) {
    width: 141px;
    min-width: 141px;
    max-width: 141px;
    overflow: hidden;
    white-space: normal;
    word-break: break-word;
  }

  body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table .note-cell,
  body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table .note-cell .note-edit,
  body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table .note-cell .readonly-field {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    word-break: normal;
  }

  body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table .note-cell .note-edit,
  body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table .note-cell .readonly-field {
    display: block;
    width: 100%;
    line-height: 1.35;
  }

  body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .admin-table .second-id-cell {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

body.admin-visual #recruitmentView .recruitment-filters-actions {
  margin-left: auto;
  flex: 0 0 auto;
  align-self: flex-end;
}

body.admin-visual #recruitmentView .recruitment-clear-filters-btn {
  min-height: 32px;
  height: 32px;
  padding: 0 14px;
  border: 1px solid #dbe4f0;
  border-radius: 4px;
  background: #fff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 500;
  box-shadow: none;
  cursor: pointer;
  white-space: nowrap;
}

body.admin-visual #recruitmentView .recruitment-clear-filters-btn:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}

body.admin-visual #recruitmentView .recruitment-metrics-bar > div.recruitment-stat-filter {
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-metrics-bar > div.recruitment-stat-filter:hover:not(.is-active),
body.admin-visual #recruitmentView .recruitment-metrics-bar > div.recruitment-stat-filter:hover:not(.is-active) {
  background: #eff6ff;
  border-color: #bfdbfe;
  box-shadow: inset 0 0 0 1px #dbeafe;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-metrics-bar > div.recruitment-stat-filter.is-active,
body.admin-visual #recruitmentView .recruitment-metrics-bar > div.recruitment-stat-filter.is-active {
  background: #eff6ff;
  border: 1px solid #2563eb;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-metrics-bar > div.recruitment-stat-filter.is-active span,
body.admin-visual #recruitmentView .recruitment-metrics-bar > div.recruitment-stat-filter.is-active span {
  color: #1d4ed8;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-metrics-bar > div.recruitment-stat-filter.is-active small,
body.admin-visual #recruitmentView .recruitment-metrics-bar > div.recruitment-stat-filter.is-active small {
  color: #2563eb;
  font-weight: 700;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-metrics-bar > div.recruitment-stat-filter.is-active:hover,
body.admin-visual #recruitmentView .recruitment-metrics-bar > div.recruitment-stat-filter.is-active:hover {
  background: #eff6ff;
  border-color: #2563eb;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

body.admin-visual #recruitmentView .admin-table .note-cell .note-edit,
body.admin-visual #recruitmentView .admin-table .note-cell .readonly-field {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  word-break: normal;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-panel .table-wrap .admin-table tbody tr:hover > td,
body.admin-visual #recruitmentView .recruitment-table-panel .table-wrap .admin-table tbody tr:hover > td {
  background-color: #f8fbff;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-panel .table-wrap .admin-table thead th,
body.admin-visual #recruitmentView .recruitment-table-panel .table-wrap .admin-table thead th {
  padding: 7px 8px;
  border-bottom: 1px solid #dbe4f0;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  vertical-align: middle;
  line-height: 1.2;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-panel .admin-table :is(th, td):nth-child(10),
body.admin-visual #recruitmentView .recruitment-table-panel .admin-table :is(th, td):nth-child(10) {
  width: 60px;
  min-width: 60px;
  max-width: 60px;
  padding-left: 4px;
  padding-right: 4px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-panel .admin-table .tattoo-select,
body.admin-visual #recruitmentView .recruitment-table-panel .admin-table .tattoo-select {
  box-sizing: border-box;
  width: 52px;
  min-width: 52px;
  max-width: 52px;
  padding-left: 4px;
  padding-right: 18px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-pagination,
body.admin-visual #recruitmentView .recruitment-table-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  margin: 0;
  padding: 10px 12px;
  border-top: 1px solid #e5eaf2;
  background: #fff;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-pagination-left,
body.admin-visual #recruitmentView .recruitment-pagination-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-pagination .page-controls,
body.admin-visual #recruitmentView .recruitment-table-pagination .page-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-pagination #pageSummary,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-pagination #pageInfo,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-pagination .page-size,
body.admin-visual #recruitmentView .recruitment-table-pagination #pageSummary,
body.admin-visual #recruitmentView .recruitment-table-pagination #pageInfo,
body.admin-visual #recruitmentView .recruitment-table-pagination .page-size {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-pagination #pageInfo,
body.admin-visual #recruitmentView .recruitment-table-pagination #pageInfo {
  color: #334155;
  font-weight: 600;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-pagination .page-controls button,
body.admin-visual #recruitmentView .recruitment-table-pagination .page-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #dbe4f0;
  border-radius: 4px;
  background: #fff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 500;
  box-shadow: none;
  cursor: pointer;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-pagination .page-controls button:hover:not(:disabled),
body.admin-visual #recruitmentView .recruitment-table-pagination .page-controls button:hover:not(:disabled) {
  background: #eff6ff;
  border-color: #bfdbfe;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-pagination .page-controls button:disabled,
body.admin-visual #recruitmentView .recruitment-table-pagination .page-controls button:disabled {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #cbd5e1;
  cursor: not-allowed;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-pagination .page-size select,
body.admin-visual #recruitmentView .recruitment-table-pagination .page-size select {
  min-height: 32px;
  height: 32px;
  margin-left: 4px;
  padding: 0 8px;
  border: 1px solid #dbe4f0;
  border-radius: 4px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  box-shadow: none;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-filters-bar,
body.admin-visual #recruitmentView .recruitment-filters-bar {
  align-items: flex-end;
  gap: 10px 12px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-filters-bar > label,
body.admin-visual #recruitmentView .recruitment-filters-bar > label {
  gap: 5px;
  line-height: 1.2;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-filters-bar input,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-filters-bar select,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-filters-bar button:not(.filter-clear),
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-filters-bar .staff-filter-trigger,
body.admin-visual #recruitmentView .recruitment-filters-bar input,
body.admin-visual #recruitmentView .recruitment-filters-bar select,
body.admin-visual #recruitmentView .recruitment-filters-bar button:not(.filter-clear),
body.admin-visual #recruitmentView .recruitment-filters-bar .staff-filter-trigger {
  box-sizing: border-box;
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  padding: 0 10px;
  line-height: 1.2;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-filters-bar .staff-filter-trigger,
body.admin-visual #recruitmentView .recruitment-filters-bar .staff-filter-trigger {
  display: inline-flex;
  align-items: center;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-filters-bar .search-clear-wrap,
body.admin-visual #recruitmentView .recruitment-filters-bar .search-clear-wrap {
  box-sizing: border-box;
  height: 34px;
  min-height: 34px;
  max-height: 34px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-filters-bar .month-filter-row,
body.admin-visual #recruitmentView .recruitment-filters-bar .month-filter-row {
  height: 34px;
  min-height: 34px;
  max-height: 34px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-filters-bar .month-filter-row #monthFilter,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-filters-bar #clearMonthFilter.month-filter-all,
body.admin-visual #recruitmentView .recruitment-filters-bar .month-filter-row #monthFilter,
body.admin-visual #recruitmentView .recruitment-filters-bar #clearMonthFilter.month-filter-all {
  box-sizing: border-box;
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  line-height: 1.2;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-filters-bar .staff-filter-multiselect,
body.admin-visual #recruitmentView .recruitment-filters-bar .staff-filter-multiselect {
  min-height: 34px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-filters-actions,
body.admin-visual #recruitmentView .recruitment-filters-actions {
  display: flex;
  align-items: center;
  align-self: flex-end;
  height: 34px;
  min-height: 34px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-clear-filters-btn,
body.admin-visual #recruitmentView .recruitment-clear-filters-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  min-height: 34px;
  padding: 0 14px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-toolbar #exportLink.recruitment-toolbar-btn-secondary,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-toolbar #downloadImportTemplateBtn.recruitment-toolbar-btn-secondary,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-toolbar #batchImportBtn.recruitment-toolbar-btn-secondary,
body.admin-visual #recruitmentView .recruitment-table-toolbar #exportLink.recruitment-toolbar-btn-secondary,
body.admin-visual #recruitmentView .recruitment-table-toolbar #downloadImportTemplateBtn.recruitment-toolbar-btn-secondary,
body.admin-visual #recruitmentView .recruitment-table-toolbar #batchImportBtn.recruitment-toolbar-btn-secondary {
  border: 1px solid #dbe4f0;
  background: #fff;
  color: #334155;
  box-shadow: none;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-toolbar #exportLink.recruitment-toolbar-btn-secondary:hover,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-toolbar #downloadImportTemplateBtn.recruitment-toolbar-btn-secondary:hover,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-toolbar #batchImportBtn.recruitment-toolbar-btn-secondary:hover,
body.admin-visual #recruitmentView .recruitment-table-toolbar #exportLink.recruitment-toolbar-btn-secondary:hover,
body.admin-visual #recruitmentView .recruitment-table-toolbar #downloadImportTemplateBtn.recruitment-toolbar-btn-secondary:hover,
body.admin-visual #recruitmentView .recruitment-table-toolbar #batchImportBtn.recruitment-toolbar-btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-toolbar #exportLink.recruitment-toolbar-btn-secondary:hover .recruitment-toolbar-icon,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-toolbar #downloadImportTemplateBtn.recruitment-toolbar-btn-secondary:hover .recruitment-toolbar-icon,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-toolbar #batchImportBtn.recruitment-toolbar-btn-secondary:hover .recruitment-toolbar-icon,
body.admin-visual #recruitmentView .recruitment-table-toolbar #exportLink.recruitment-toolbar-btn-secondary:hover .recruitment-toolbar-icon,
body.admin-visual #recruitmentView .recruitment-table-toolbar #downloadImportTemplateBtn.recruitment-toolbar-btn-secondary:hover .recruitment-toolbar-icon,
body.admin-visual #recruitmentView .recruitment-table-toolbar #batchImportBtn.recruitment-toolbar-btn-secondary:hover .recruitment-toolbar-icon {
  color: #64748b;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-toolbar #exportLink.recruitment-toolbar-btn,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-toolbar #downloadImportTemplateBtn.recruitment-toolbar-btn,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-toolbar #batchImportBtn.recruitment-toolbar-btn,
body.admin-visual #recruitmentView .recruitment-table-toolbar #exportLink.recruitment-toolbar-btn,
body.admin-visual #recruitmentView .recruitment-table-toolbar #downloadImportTemplateBtn.recruitment-toolbar-btn,
body.admin-visual #recruitmentView .recruitment-table-toolbar #batchImportBtn.recruitment-toolbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 30px;
  min-height: 30px;
  padding: 0 10px;
  gap: 6px;
  line-height: 1;
  white-space: nowrap;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-toolbar #exportLink .recruitment-toolbar-icon,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-toolbar #downloadImportTemplateBtn .recruitment-toolbar-icon,
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-toolbar #batchImportBtn .recruitment-toolbar-icon,
body.admin-visual #recruitmentView .recruitment-table-toolbar #exportLink .recruitment-toolbar-icon,
body.admin-visual #recruitmentView .recruitment-table-toolbar #downloadImportTemplateBtn .recruitment-toolbar-icon,
body.admin-visual #recruitmentView .recruitment-table-toolbar #batchImportBtn .recruitment-toolbar-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  flex-shrink: 0;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-toolbar .recruitment-table-toolbar-actions,
body.admin-visual #recruitmentView .recruitment-table-toolbar .recruitment-table-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-toolbar .recruitment-table-toolbar-actions .table-meta,
body.admin-visual #recruitmentView .recruitment-table-toolbar .recruitment-table-toolbar-actions .table-meta {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-panel .admin-table :is(
  .name-detail,
  .phone-copy,
  .store-edit,
  .interview-time-edit,
  .second-id-view,
  .entry-date-edit,
  .resignation-date-edit,
  .note-edit
),
body.admin-visual #recruitmentView .recruitment-table-panel .admin-table :is(
  .name-detail,
  .phone-copy,
  .store-edit,
  .interview-time-edit,
  .second-id-view,
  .entry-date-edit,
  .resignation-date-edit,
  .note-edit
) {
  cursor: pointer;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-panel .admin-table :is(
  .name-detail,
  .phone-copy,
  .store-edit,
  .interview-time-edit,
  .second-id-view,
  .entry-date-edit,
  .resignation-date-edit,
  .note-edit
):hover,
body.admin-visual #recruitmentView .recruitment-table-panel .admin-table :is(
  .name-detail,
  .phone-copy,
  .store-edit,
  .interview-time-edit,
  .second-id-view,
  .entry-date-edit,
  .resignation-date-edit,
  .note-edit
):hover {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-panel .admin-table .store-edit-empty:hover,
body.admin-visual #recruitmentView .recruitment-table-panel .admin-table .store-edit-empty:hover {
  text-decoration-style: solid;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-panel .admin-table :is(
  .name-detail,
  .phone-copy,
  .store-edit,
  .interview-time-edit,
  .second-id-view,
  .entry-date-edit,
  .resignation-date-edit,
  .note-edit,
  .name-copy
):focus-visible,
body.admin-visual #recruitmentView .recruitment-table-panel .admin-table :is(
  .name-detail,
  .phone-copy,
  .store-edit,
  .interview-time-edit,
  .second-id-view,
  .entry-date-edit,
  .resignation-date-edit,
  .note-edit,
  .name-copy
):focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
  border-radius: 2px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-panel .admin-table .empty-value,
body.admin-visual #recruitmentView .recruitment-table-panel .admin-table .empty-value {
  color: #94a3b8;
  font-weight: 400;
  white-space: nowrap;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-panel .admin-table :is(th, td):nth-child(20),
body.admin-visual #recruitmentView .recruitment-table-panel .admin-table :is(th, td):nth-child(20) {
  width: 130px;
  min-width: 130px;
  max-width: 130px;
}

@media (min-width: 769px) {
  body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-panel .admin-table :is(th, td):nth-child(20),
  body.admin-visual #recruitmentView .recruitment-table-panel .admin-table :is(th, td):nth-child(20) {
    width: 165px;
    min-width: 165px;
    max-width: 165px;
  }
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-panel .admin-table .store-cell,
body.admin-visual #recruitmentView .recruitment-table-panel .admin-table .store-cell {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-panel .admin-table .store-cell .store-edit,
body.admin-visual #recruitmentView .recruitment-table-panel .admin-table .store-cell .store-edit {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  word-break: normal;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-panel .admin-table .store-cell > span:not(.empty-value),
body.admin-visual #recruitmentView .recruitment-table-panel .admin-table .store-cell > span:not(.empty-value) {
  display: block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-panel .admin-table .owner-column,
body.admin-visual #recruitmentView .recruitment-table-panel .admin-table .owner-column {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-panel .admin-table .owner-column > span,
body.admin-visual #recruitmentView .recruitment-table-panel .admin-table .owner-column > span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-panel .admin-table :is(th, td):nth-child(22),
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-panel .admin-table :is(th, td):nth-child(23),
body.admin-visual #recruitmentView .recruitment-table-panel .admin-table :is(th, td):nth-child(22),
body.admin-visual #recruitmentView .recruitment-table-panel .admin-table :is(th, td):nth-child(23) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-panel .admin-table :is(th, td):nth-child(21),
body.admin-visual #recruitmentView .recruitment-table-panel .admin-table :is(th, td):nth-child(21) {
  border-right: 1px solid #e2e8f0;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-panel .admin-table thead th:nth-child(21),
body.admin-visual #recruitmentView .recruitment-table-panel .admin-table thead th:nth-child(21) {
  text-align: left;
  vertical-align: middle;
  line-height: 1.2;
  padding: 7px 8px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-panel .admin-table thead th:nth-child(22),
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-panel .admin-table thead th:nth-child(23),
body.admin-visual #recruitmentView .recruitment-table-panel .admin-table thead th:nth-child(22),
body.admin-visual #recruitmentView .recruitment-table-panel .admin-table thead th:nth-child(23) {
  text-align: right;
  vertical-align: middle;
  line-height: 1.2;
  padding: 7px 8px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-panel .admin-table .fee-standard-cell,
body.admin-visual #recruitmentView .recruitment-table-panel .admin-table .fee-standard-cell {
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-panel .admin-table :is(th, td):nth-child(22),
body.admin-visual #recruitmentView .recruitment-table-panel .admin-table :is(th, td):nth-child(22) {
  width: 100px;
  min-width: 100px;
  max-width: 100px;
}

/* Staff recruitment table: in-container horizontal scroll (desktop) */
@media (min-width: 769px) {
  body.admin-visual:not(.partner-readonly):has(#copyInviteLinkBtn:not(.hidden)) #recruitmentView .recruitment-table-panel .table-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto !important;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
  }
}

/* Tattoo column: reduce cell padding so 52px select fits in 60px column */
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-panel .admin-table thead th:nth-child(10),
body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-panel .admin-table tbody td:nth-child(10),
body.admin-visual #recruitmentView .recruitment-table-panel .admin-table thead th:nth-child(10),
body.admin-visual #recruitmentView .recruitment-table-panel .admin-table tbody td:nth-child(10) {
  width: 60px;
  min-width: 60px;
  max-width: 60px;
  padding-left: 4px;
  padding-right: 4px;
}

body.admin-visual:has(#adminApp:not(.hidden) #manageUsersBtn:not(.hidden)) #recruitmentView .recruitment-table-panel .admin-table .tattoo-select,
body.admin-visual #recruitmentView .recruitment-table-panel .admin-table .tattoo-select {
  box-sizing: border-box;
  width: 52px;
  min-width: 52px;
  max-width: 52px;
  padding-left: 4px;
  padding-right: 18px;
}

/* Applicant detail modal (求职者详情) */
.applicant-detail-backdrop {
  padding: 16px;
}

.applicant-detail-modal {
  width: min(820px, calc(100vw - 40px));
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 80px);
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.14);
  background: #fff;
}

.applicant-detail-modal .applicant-detail-head {
  flex-shrink: 0;
  padding: 14px 18px;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}

.applicant-detail-modal .applicant-detail-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.applicant-detail-modal .applicant-detail-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.applicant-detail-modal .applicant-detail-close:hover,
.applicant-detail-modal .applicant-detail-close:focus-visible {
  background: #f1f5f9;
  color: #334155;
  outline: none;
}

.applicant-detail-body {
  min-height: 0;
  overflow-y: auto;
  padding: 14px 18px 16px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.applicant-detail-body::-webkit-scrollbar {
  width: 6px;
}

.applicant-detail-body::-webkit-scrollbar-track {
  background: transparent;
}

.applicant-detail-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.applicant-detail-body::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.applicant-detail-section + .applicant-detail-section,
.applicant-detail-fee-standard {
  margin-top: 10px;
}

.applicant-detail-section-title {
  margin: 0 0 5px;
  padding-left: 8px;
  border-left: 3px solid #bfdbfe;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.applicant-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 16px;
}

.applicant-detail-field {
  min-width: 0;
}

.applicant-detail-field--full {
  grid-column: 1 / -1;
}

.applicant-detail-label {
  margin-bottom: 2px;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.applicant-detail-value {
  color: #0f172a;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.applicant-detail-modal .applicant-detail-actions {
  flex-shrink: 0;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid #e2e8f0;
  border-bottom: 0;
  background: #fff;
}

.applicant-detail-modal .applicant-detail-copy,
.applicant-detail-modal .applicant-detail-cancel {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}

.applicant-detail-modal .applicant-detail-copy {
  border: 1px solid #2563eb;
  background: #2563eb;
  color: #fff;
}

.applicant-detail-modal .applicant-detail-copy:hover,
.applicant-detail-modal .applicant-detail-copy:focus-visible {
  border-color: #1d4ed8;
  background: #1d4ed8;
  color: #fff;
  outline: none;
}

.applicant-detail-modal .applicant-detail-cancel {
  border: 1px solid #dbe4f0;
  background: #fff;
  color: #334155;
}

.applicant-detail-modal .applicant-detail-cancel:hover,
.applicant-detail-modal .applicant-detail-cancel:focus-visible {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
  outline: none;
}

@media (max-width: 640px) {
  .applicant-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .applicant-detail-modal {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
  }
}


/* batch delete confirm modal - ui refresh */
body.admin-visual .batch-delete-confirm-modal {
  width: min(480px, calc(100vw - 32px));
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  grid-template-rows: none;
  overflow: hidden;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

body.admin-visual .batch-delete-confirm-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #e5e7eb;
}

body.admin-visual .batch-delete-confirm-modal__title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

body.admin-visual .batch-delete-confirm-modal__title-wrap h2 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

body.admin-visual .batch-delete-confirm-modal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fee2e2;
  color: #dc2626;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

body.admin-visual .batch-delete-confirm-modal__close {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

body.admin-visual .batch-delete-confirm-modal__close:hover:not(:disabled),
body.admin-visual .batch-delete-confirm-modal__close:focus-visible:not(:disabled) {
  background: #e2e8f0;
  color: #334155;
}

body.admin-visual .batch-delete-confirm-modal__close:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

body.admin-visual .batch-delete-confirm-modal__body {
  padding: 18px;
  overflow: auto;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.5;
}

body.admin-visual .batch-delete-confirm-modal__summary {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 14px;
  color: #374151;
  font-size: 15px;
}

body.admin-visual .batch-delete-confirm-modal__summary strong {
  color: #b91c1c;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

body.admin-visual .batch-delete-confirm-modal__block-title {
  margin-bottom: 8px;
  color: #111827;
  font-size: 13px;
  font-weight: 600;
}

body.admin-visual .batch-delete-confirm-modal__owner-card {
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

body.admin-visual .batch-delete-confirm-modal__owner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
}

body.admin-visual .batch-delete-confirm-modal__owner-row + .batch-delete-confirm-modal__owner-row {
  border-top: 1px solid #eef2f7;
  margin-top: 4px;
  padding-top: 8px;
}

body.admin-visual .batch-delete-confirm-modal__owner-name {
  color: #1f2937;
  font-size: 14px;
}

body.admin-visual .batch-delete-confirm-modal__owner-count {
  padding: 2px 8px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

body.admin-visual .batch-delete-confirm-modal__people {
  margin-bottom: 14px;
}

body.admin-visual .batch-delete-confirm-modal__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 120px;
  overflow: auto;
}

body.admin-visual .batch-delete-confirm-modal__chip {
  display: inline-block;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 13px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.admin-visual .batch-delete-confirm-modal__more {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  color: #64748b;
  font-size: 13px;
}

body.admin-visual .batch-delete-confirm-modal__warning {
  margin-bottom: 14px;
  padding: 9px 12px 9px 15px;
  border-left: 3px solid #ef4444;
  border-radius: 6px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 13px;
  line-height: 1.5;
}

body.admin-visual .batch-delete-confirm-modal__input {
  display: grid;
  gap: 6px;
}

body.admin-visual .batch-delete-confirm-modal__input-label {
  color: #374151;
  font-size: 13px;
  font-weight: 500;
}

body.admin-visual .batch-delete-confirm-modal__input-field {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-size: 14px;
  box-sizing: border-box;
}

body.admin-visual .batch-delete-confirm-modal__input-field:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

body.admin-visual .batch-delete-confirm-modal__input-field.is-valid {
  border-color: #86efac;
}

body.admin-visual .batch-delete-confirm-modal__error {
  margin: 10px 0 0;
  color: #b91c1c;
  font-size: 13px;
  line-height: 1.5;
}

body.admin-visual .batch-delete-confirm-modal__error.hidden {
  display: none;
}

body.admin-visual .batch-delete-confirm-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid #e5e7eb;
}

body.admin-visual .batch-delete-confirm-modal__cancel {
  min-width: 88px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

body.admin-visual .batch-delete-confirm-modal__cancel:hover:not(:disabled),
body.admin-visual .batch-delete-confirm-modal__cancel:focus-visible:not(:disabled) {
  background: #f9fafb;
  border-color: #9ca3af;
}

body.admin-visual .batch-delete-confirm-modal__cancel:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

body.admin-visual .batch-delete-confirm-modal__submit {
  min-width: 104px;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: #dc2626;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

body.admin-visual .batch-delete-confirm-modal__submit:disabled {
  background: #fca5a5;
  color: #fff;
  cursor: not-allowed;
}

body.admin-visual .batch-delete-confirm-modal__submit:not(:disabled):hover {
  background: #b91c1c;
}  background: #991b1b;
}
#systemConfigView .login-log-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#systemConfigView .login-log-header h2 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 600;
  color: #172033;
}

#systemConfigView .login-log-header p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

#systemConfigView .login-log-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 12px;
  padding: 12px;
  border: 1px solid #eef2f7;
  border-radius: 6px;
  background: #fff;
}

#systemConfigView .login-log-filters label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
}

#systemConfigView .login-log-filters input,
#systemConfigView .login-log-filters select {
  min-width: 132px;
  min-height: 32px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #dbe4f0;
  border-radius: 4px;
  background: #fff;
  color: #334155;
  font-size: 13px;
}

#systemConfigView .login-log-query-btn,
#systemConfigView .login-log-clear-btn {
  min-height: 32px;
  height: 32px;
  padding: 0 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: none;
}

#systemConfigView .login-log-query-btn {
  border: 1px solid #2563eb;
  background: #2563eb;
  color: #fff;
}

#systemConfigView .login-log-query-btn:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

#systemConfigView .login-log-clear-btn {
  border: 1px solid #dbe4f0;
  background: #fff;
  color: #64748b;
}

#systemConfigView .login-log-clear-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

#systemConfigView .login-log-table-wrap {
  border: 1px solid #eef2f7;
  border-radius: 6px;
  overflow: auto;
  max-height: min(62vh, 560px);
}

#systemConfigView .login-log-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

#systemConfigView .login-log-table th,
#systemConfigView .login-log-table td {
  padding: 8px 10px;
  font-size: 13px;
  color: #334155;
  text-align: left;
  border-bottom: 1px solid #eef2f7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


#systemConfigView .login-log-table th:first-child,
#systemConfigView .login-log-table td.login-log-time-cell {
  min-width: 145px;
  width: 155px;
  max-width: 170px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#systemConfigView .login-log-table th:first-child {
  white-space: nowrap;
}

#systemConfigView .login-log-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  font-weight: 600;
}

#systemConfigView .login-log-table tbody tr:hover td {
  background: #f8fbff;
}

#systemConfigView .login-log-table tbody tr:last-child td {
  border-bottom: 0;
}

#systemConfigView .login-log-empty {
  min-height: 240px !important;
  padding: 0 !important;
  color: #94a3b8 !important;
  font-size: 13px !important;
  text-align: center !important;
  vertical-align: middle !important;
  border-bottom: 0 !important;
}

#systemConfigView .login-log-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

#systemConfigView .login-log-status--success {
  background: #ecfdf5;
  color: #15803d;
}

#systemConfigView .login-log-status--failed {
  background: #fef2f2;
  color: #b91c1c;
}

#systemConfigView .login-log-device {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}

#systemConfigView .login-log-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 36px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #eef2f7;
  border-top: 0;
  border-radius: 0 0 6px 6px;
  background: #fafbfc;
  font-size: 13px;
}

#systemConfigView .login-log-pagination-left {
  display: flex;
  align-items: center;
  min-width: 0;
  color: #64748b;
}

#systemConfigView .login-log-page-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

#systemConfigView .login-log-page-controls button,
#systemConfigView .login-log-page-size select {
  min-height: 32px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 500;
  box-shadow: none;
}

#systemConfigView .login-log-page-controls button:hover:not(:disabled) {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}

#systemConfigView .login-log-page-controls button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#systemConfigView .login-log-page-size {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  color: #64748b;
  white-space: nowrap;
}

@media (max-width: 760px) {
  #systemConfigView .login-log-filters label {
    flex: 1 1 140px;
  }
  #systemConfigView .login-log-table-wrap {
    overflow-x: auto;
  }
}

#systemConfigView .login-log-date-range-label {
  min-width: 280px;
}

#systemConfigView .login-log-date-range {
  position: relative;
}

#systemConfigView .login-log-date-range-trigger {
  display: inline-flex;
  width: 280px;
  min-height: 32px;
  height: 32px;
  padding: 0 10px;
  align-items: center;
  gap: 8px;
  border: 1px solid #dbe4f0;
  border-radius: 4px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: none;
}

#systemConfigView .login-log-date-range-trigger:hover,
#systemConfigView .login-log-date-range-trigger.login-log-date-range-trigger--open {
  border-color: #bfdbfe;
  background: #f8fbff;
}

#systemConfigView .login-log-date-range-trigger__icon {
  display: inline-flex;
  color: #64748b;
  flex-shrink: 0;
}

#systemConfigView .login-log-date-range-trigger__text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

#systemConfigView .login-log-date-range-trigger__text--placeholder {
  color: #94a3b8;
}

#systemConfigView .login-log-date-range-trigger__arrow {
  color: #94a3b8;
  font-size: 11px;
  flex-shrink: 0;
}

#systemConfigView .login-log-date-range-popover-host {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 80;
}

#systemConfigView .login-log-date-range-popover {
  width: 620px;
  max-width: calc(100vw - 24px);
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

#systemConfigView .login-log-date-range-popover__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

#systemConfigView .login-log-date-range-popover__nav-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

#systemConfigView .login-log-date-range-nav-btn {
  min-width: 28px;
  min-height: 28px;
  padding: 0 6px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  color: #475569;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
}

#systemConfigView .login-log-date-range-nav-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

#systemConfigView .login-log-date-range-popover__months {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

#systemConfigView .login-log-date-range-month__title {
  margin-bottom: 8px;
  color: #172033;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

#systemConfigView .login-log-date-range-weekdays,
#systemConfigView .login-log-date-range-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

#systemConfigView .login-log-date-range-weekdays span {
  height: 24px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 24px;
  text-align: center;
}

#systemConfigView .login-log-date-range-day {
  width: 100%;
  min-height: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #334155;
  font-size: 13px;
  cursor: pointer;
  box-shadow: none;
}

#systemConfigView .login-log-date-range-day:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

#systemConfigView .login-log-date-range-day--outside {
  color: #cbd5e1;
}

#systemConfigView .login-log-date-range-day--today {
  box-shadow: inset 0 0 0 1px #2563eb;
  color: #2563eb;
}

#systemConfigView .login-log-date-range-day--in-range {
  background: #eff6ff;
  border-radius: 0;
}

#systemConfigView .login-log-date-range-day--start,
#systemConfigView .login-log-date-range-day--end {
  background: #2563eb;
  color: #fff;
}

#systemConfigView .login-log-date-range-day--start {
  border-radius: 8px 0 0 8px;
}

#systemConfigView .login-log-date-range-day--end {
  border-radius: 0 8px 8px 0;
}

#systemConfigView .login-log-date-range-day--start.login-log-date-range-day--end {
  border-radius: 8px;
}

#systemConfigView .login-log-date-range-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #eef2f7;
}

#systemConfigView .login-log-date-range-footer__left,
#systemConfigView .login-log-date-range-footer__right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#systemConfigView .login-log-date-range-footer-btn {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid #dbe4f0;
  border-radius: 6px;
  background: #fff;
  color: #475569;
  font-size: 13px;
  cursor: pointer;
  box-shadow: none;
}

#systemConfigView .login-log-date-range-footer-btn:hover {
  background: #f8fafc;
}

#systemConfigView .login-log-date-range-footer-btn--primary {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

#systemConfigView .login-log-date-range-footer-btn--primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#systemConfigView .login-log-date-range-footer-btn--primary:hover:not(:disabled) {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

@media (max-width: 760px) {
  #systemConfigView .login-log-date-range-trigger {
    width: 100%;
    max-width: 100%;
  }

  #systemConfigView .login-log-date-range-popover {
    width: calc(100vw - 24px);
    max-height: 85vh;
    overflow: auto;
  }

  #systemConfigView .login-log-date-range-popover__months {
    grid-template-columns: 1fr;
  }

  #systemConfigView .login-log-date-range-popover__months .login-log-date-range-month:last-child {
    display: none;
  }
}


.account-info-backdrop .account-info-modal {
  width: 600px;
  max-width: calc(100vw - 32px);
  max-height: 85vh;
  overflow: auto;
  border-radius: 12px;
}

.account-info-head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
}

.account-info-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 20px 20px;
}

.account-info-card {
  border: 1px solid #e8edf3;
  border-radius: 10px;
  background: #fff;
  padding: 14px 16px;
}

.account-info-overview {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  background: #f8fafc;
}

.account-info-avatar {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 18px;
  font-weight: 700;
}

.account-info-name {
  font-size: 18px;
  font-weight: 600;
  color: #172033;
}

.account-info-username {
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
}

.account-info-overview-tags {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.account-info-role,
.account-info-status {
  display: inline-flex;
  min-height: 22px;
  padding: 0 8px;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.account-info-role {
  background: #eff6ff;
  color: #2563eb;
}

.account-info-status--active {
  background: #ecfdf5;
  color: #15803d;
}

.account-info-status--disabled {
  background: #f1f5f9;
  color: #94a3b8;
}

.account-info-card-title {
  margin-bottom: 10px;
  color: #172033;
  font-size: 14px;
  font-weight: 600;
}

.account-info-last-login-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

.account-info-last-login-grid span {
  display: block;
  color: #94a3b8;
  font-size: 12px;
}

.account-info-last-login-grid strong {
  display: block;
  margin-top: 2px;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-info-login-log-link {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2563eb;
  font-size: 13px;
  cursor: pointer;
  box-shadow: none;
}

.account-info-login-log-link--disabled {
  color: #94a3b8;
  cursor: not-allowed;
}

.account-info-password-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.account-info-password-tip {
  margin: 4px 0 8px;
  color: #64748b;
  font-size: 12px;
}

.account-info-password-state {
  color: #334155;
  font-size: 13px;
}

.account-info-password-edit {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #dbe4f0;
  border-radius: 6px;
  background: #fff;
  color: #2563eb;
  font-size: 13px;
  cursor: pointer;
  box-shadow: none;
}

.account-info-password-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #eef2f7;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.account-info-password-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #64748b;
  font-size: 12px;
}

.account-info-password-form input {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #dbe4f0;
  border-radius: 6px;
  font-size: 13px;
}

.account-info-field-error {
  min-height: 16px;
  color: #b91c1c;
  font-size: 12px;
}

.account-info-password-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.account-info-loading {
  padding: 28px;
  text-align: center;
  color: #64748b;
  font-size: 13px;
}

@media (max-width: 760px) {
  .account-info-overview {
    grid-template-columns: auto 1fr;
  }
  .account-info-overview-tags {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-start;
  }
  .account-info-last-login-grid {
    grid-template-columns: 1fr;
  }
}

.demo-env-badge,.demo-login-tip,.demo-user-note{display:inline-flex;align-items:center;gap:6px;background:#fff4e5;color:#9a4b00;border:1px solid #ffd29a;border-radius:6px;padding:6px 10px;font-weight:700}.demo-login-tip{display:flex;margin-bottom:14px;line-height:1.5}.demo-user-note{display:flex;margin:12px auto 0;max-width:1180px}.demo-readonly .account-info-password,.demo-readonly #exportLink,.demo-readonly #batchImportBtn,.demo-readonly #downloadImportTemplateBtn,.demo-readonly #addApplicantBtn{display:none!important}.demo-readonly-note{color:#7a4b00;font-weight:700}
