/* CHECKON evaluation theme
   Visual language follows the supplied evaluation-workspace reference while
   keeping CHECKON's own identity and every existing application hook intact. */

body.tad-theme {
  --navy-950: #0f172a;
  --navy-900: #172033;
  --navy-800: #27364d;
  --navy-700: #334155;
  --navy-100: #e2e8f0;
  --teal-700: #4338ca;
  --teal-600: #4f46e5;
  --teal-500: #5b50ee;
  --teal-100: #e0e7ff;
  --teal-50: #eef2ff;
  --blue-600: #4f46e5;
  --blue-50: #eef2ff;
  --purple-600: #7c3aed;
  --purple-50: #f5f3ff;
  --ink: #1e293b;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --canvas: #f4f6fa;
  --surface-subtle: #f8fafc;
  --surface-hover: #f1f5f9;
  --sidebar-width: 264px;
  --topbar-height: 66px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-xs: 0 1px 2px rgb(15 23 42 / 0.04);
  --shadow-sm: 0 7px 20px rgb(15 23 42 / 0.07);
  --shadow-md: 0 24px 64px rgb(15 23 42 / 0.14);
  font-family: "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", Arial,
    sans-serif;
}

body.tad-theme :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline-color: rgb(79 70 229 / 0.36);
}

body.tad-theme ::selection {
  background: #c7d2fe;
  color: #1e1b4b;
}

/* Manager shell */
body.tad-theme:not(.evaluator-mode) .app-shell {
  background: var(--canvas);
}

body.tad-theme:not(.evaluator-mode) .sidebar {
  border-right: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  box-shadow: 2px 0 14px rgb(15 23 42 / 0.025);
  scrollbar-color: #cbd5e1 transparent;
}

body.tad-theme:not(.evaluator-mode) .sidebar-header {
  min-height: 86px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

body.tad-theme:not(.evaluator-mode) .sidebar .brand {
  width: 100%;
  min-height: 85px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

body.tad-theme .brand-mark {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  grid-template-columns: repeat(2, 8px);
  grid-template-rows: repeat(2, 8px);
  place-content: center;
  gap: 3px;
  border-radius: 11px;
  background: linear-gradient(145deg, #665cf4, #4338ca);
  color: white;
  box-shadow: 0 8px 20px rgb(79 70 229 / 0.24);
}

body.tad-theme .brand-mark > i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #fff;
}

body.tad-theme .brand-mark > i:first-child {
  grid-row: 1 / 3;
  height: 19px;
}

body.tad-theme .brand-mark > i:nth-child(2) { opacity: .95; }
body.tad-theme .brand-mark > i:nth-child(3) { opacity: .62; }

body.tad-theme:not(.evaluator-mode) .brand-text {
  color: #111827;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.025em;
}

body.tad-theme:not(.evaluator-mode) .brand-text small {
  margin-top: 1px;
  color: #64748b;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: none;
}

body.tad-theme:not(.evaluator-mode) .sidebar-body {
  padding: 20px 14px;
}

body.tad-theme:not(.evaluator-mode) .nav-section + .nav-section {
  margin-top: 25px;
}

body.tad-theme:not(.evaluator-mode) .nav-section-title {
  margin: 0 12px 9px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .04em;
}

body.tad-theme:not(.evaluator-mode) .nav-item {
  min-height: 46px;
  gap: 12px;
  padding: 10px 12px;
  border: 0;
  border-radius: 9px;
  color: #475569;
  font-size: 13px;
  font-weight: 650;
}

body.tad-theme:not(.evaluator-mode) .nav-item:hover {
  background: #f8fafc;
  color: #312e81;
}

body.tad-theme:not(.evaluator-mode) .nav-item.is-active,
body.tad-theme:not(.evaluator-mode) .nav-item[aria-current="page"] {
  border-color: transparent;
  background: #eef2ff;
  color: #4338ca;
  box-shadow: inset 0 0 0 1px rgb(99 102 241 / .05);
}

body.tad-theme:not(.evaluator-mode) .nav-item.is-active::before,
body.tad-theme:not(.evaluator-mode) .nav-item[aria-current="page"]::before {
  inset: 8px auto 8px -14px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: #4f46e5;
}

body.tad-theme:not(.evaluator-mode) .nav-icon {
  color: #64748b;
  font-size: 15px;
}

body.tad-theme:not(.evaluator-mode) .nav-item.is-active .nav-icon,
body.tad-theme:not(.evaluator-mode) .nav-item[aria-current="page"] .nav-icon {
  color: #4f46e5;
}

body.tad-theme:not(.evaluator-mode) .nav-count {
  min-width: 23px;
  padding: 2px 7px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 12px;
}

body.tad-theme:not(.evaluator-mode) .nav-item.is-active .nav-count,
body.tad-theme:not(.evaluator-mode) .nav-item[aria-current="page"] .nav-count {
  background: #fff;
  color: #4338ca;
}

body.tad-theme:not(.evaluator-mode) .admin-only-chip {
  border: 0;
  background: #ede9fe;
  color: #6d28d9;
}

body.tad-theme:not(.evaluator-mode) .sidebar-help {
  margin-top: 28px;
  padding: 15px;
  border: 1px solid #e0e7ff;
  border-radius: 12px;
  background: linear-gradient(145deg, #f5f3ff, #eef2ff);
  color: #4338ca;
}

body.tad-theme:not(.evaluator-mode) .sidebar-help strong { color: #312e81; }
body.tad-theme:not(.evaluator-mode) .sidebar-help p { color: #64748b; }
body.tad-theme:not(.evaluator-mode) .sidebar-help button {
  color: #4f46e5;
  text-decoration: none;
}

body.tad-theme:not(.evaluator-mode) .sidebar-footer {
  padding: 13px 14px;
  border-top-color: var(--line);
  background: #fff;
}

body.tad-theme:not(.evaluator-mode) .sidebar-profile {
  min-height: 55px;
  padding: 8px 10px;
  border: 1px solid #edf1f5;
  border-radius: 10px;
  background: #f8fafc;
  color: #475569;
}

body.tad-theme:not(.evaluator-mode) .sidebar-profile-name { color: #1e293b; font-size: 13px; }
body.tad-theme:not(.evaluator-mode) .sidebar-profile-org { color: #94a3b8; font-size: 12px; }

body.tad-theme:not(.evaluator-mode) .profile-avatar {
  background: #e0e7ff;
  color: #4338ca;
}

body.tad-theme:not(.evaluator-mode) .topbar {
  min-height: 66px;
  padding: 0 30px;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / .96);
  box-shadow: none;
}

@supports (backdrop-filter: blur(12px)) {
  body.tad-theme:not(.evaluator-mode) .topbar {
    background: rgb(255 255 255 / .88);
    backdrop-filter: blur(16px) saturate(140%);
  }
}

body.tad-theme:not(.evaluator-mode) .breadcrumb { color: #94a3b8; font-size: 12px; }
body.tad-theme:not(.evaluator-mode) .breadcrumb > :last-child { color: #1e293b; }

body.tad-theme:not(.evaluator-mode) .search-box {
  min-height: 38px;
  border-color: #dbe3ed;
  border-radius: 9px;
  background: #f8fafc;
}

body.tad-theme:not(.evaluator-mode) .search-box:focus-within {
  border-color: #818cf8;
  background: #fff;
  box-shadow: 0 0 0 3px rgb(99 102 241 / .12);
}

body.tad-theme:not(.evaluator-mode) .btn-primary {
  border-color: #4f46e5;
  background: #4f46e5;
  color: #fff;
  box-shadow: 0 5px 14px rgb(79 70 229 / .18);
}

body.tad-theme:not(.evaluator-mode) .btn-primary:hover {
  border-color: #4338ca;
  background: #4338ca;
}

body.tad-theme:not(.evaluator-mode) .btn-secondary {
  border-color: #dbe3ed;
  background: #fff;
  color: #334155;
}

body.tad-theme:not(.evaluator-mode) .page {
  max-width: 1700px;
  padding: 28px 30px 44px;
}

body.tad-theme:not(.evaluator-mode) .page-header {
  margin-bottom: 23px;
}

body.tad-theme:not(.evaluator-mode) .page-title {
  color: #111827;
  font-size: clamp(25px, 2.1vw, 31px);
  font-weight: 800;
  letter-spacing: -.035em;
}

body.tad-theme:not(.evaluator-mode) .page-subtitle {
  margin-top: 7px;
  color: #64748b;
  font-size: 13px;
}

body.tad-theme:not(.evaluator-mode) .view-head {
  margin-bottom: 20px;
}

body.tad-theme:not(.evaluator-mode) .view-head h2 {
  color: #1e293b;
  font-size: 21px;
  font-weight: 800;
}

body.tad-theme:not(.evaluator-mode) .eyebrow {
  color: #4f46e5;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}

/* Cards, tables and operating screens */
body.tad-theme:not(.evaluator-mode) :is(.panel, .card, .table-card, .content-card) {
  border-color: #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 2px 7px rgb(15 23 42 / .035);
}

body.tad-theme:not(.evaluator-mode) :is(.panel, .card, .table-card, .content-card):hover {
  border-color: #d8e0eb;
}

body.tad-theme:not(.evaluator-mode) .panel-head {
  min-height: 60px;
  padding: 14px 18px;
  border-bottom-color: #e8edf3;
}

body.tad-theme:not(.evaluator-mode) .panel-head h3 {
  color: #1e293b;
  font-size: 15px;
}

body.tad-theme:not(.evaluator-mode) .panel-head p { color: #94a3b8; font-size: 12px; }

body.tad-theme:not(.evaluator-mode) .kpi-grid { gap: 14px; margin-bottom: 20px; }

body.tad-theme:not(.evaluator-mode) .kpi-card {
  min-height: 126px;
  padding: 18px;
  border-color: #e2e8f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgb(15 23 42 / .035);
}

body.tad-theme:not(.evaluator-mode) .kpi-card::after {
  background: radial-gradient(circle, rgb(99 102 241 / .10), transparent 68%);
}

body.tad-theme:not(.evaluator-mode) .kpi-card .kpi-icon {
  border-radius: 10px;
  background: #eef2ff;
  color: #4f46e5;
}

body.tad-theme:not(.evaluator-mode) .kpi-card > strong { color: #111827; font-size: 27px; }
body.tad-theme:not(.evaluator-mode) .kpi-note { color: #64748b; font-size: 12px; }

body.tad-theme:not(.evaluator-mode) .dashboard-grid { gap: 14px; }

body.tad-theme:not(.evaluator-mode) .stage-metric {
  min-height: 76px;
  border-color: #e2e8f0;
  border-radius: 9px;
  background: #f8fafc;
}

body.tad-theme:not(.evaluator-mode) .stage-metric:hover {
  border-color: #c7d2fe;
  background: #fff;
}

body.tad-theme:not(.evaluator-mode) .insight-banner {
  border-color: #d8dcff;
  background: #f5f3ff;
  color: #4f46e5;
}

body.tad-theme:not(.evaluator-mode) .insight-banner strong { color: #312e81; }
body.tad-theme:not(.evaluator-mode) .insight-banner span { color: #64748b; }

body.tad-theme:not(.evaluator-mode) :is(.task-row, .schedule-row, .person-row, .evaluation-row) {
  min-height: 57px;
  border-bottom-color: #edf1f5;
}

body.tad-theme:not(.evaluator-mode) :is(.data-table, .admin-users-table) thead th {
  min-height: 44px;
  padding-top: 12px;
  padding-bottom: 12px;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

body.tad-theme:not(.evaluator-mode) :is(.data-table, .admin-users-table) tbody tr {
  border-bottom-color: #edf1f5;
}

body.tad-theme:not(.evaluator-mode) :is(.data-table, .admin-users-table) tbody tr:hover {
  background: #f8faff;
}

body.tad-theme:not(.evaluator-mode) :is(.data-table, .admin-users-table) td {
  min-height: 54px;
  padding-top: 13px;
  padding-bottom: 13px;
  font-size: 12px;
}

body.tad-theme:not(.evaluator-mode) :is(.pill, .badge, .status, .status-pill, .stage-chip) {
  border-radius: 999px;
}

body.tad-theme:not(.evaluator-mode) :is(.segmented, .tabs) {
  border-radius: 999px;
  background: #f1f5f9;
}

body.tad-theme:not(.evaluator-mode) .segmented button:is(.active, [aria-selected="true"]) {
  border-radius: 999px;
  background: #fff;
  color: #4338ca;
  box-shadow: 0 2px 7px rgb(15 23 42 / .08);
}

body.tad-theme:not(.evaluator-mode) .kanban-column {
  border-color: #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

body.tad-theme:not(.evaluator-mode) .applicant-card {
  border-color: #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgb(15 23 42 / .035);
}

body.tad-theme:not(.evaluator-mode) .applicant-card:hover {
  border-color: #a5b4fc;
  box-shadow: 0 7px 18px rgb(79 70 229 / .08);
}

body.tad-theme:not(.evaluator-mode) .text-btn { color: #4f46e5; }

/* Drawers and dialogs use the same clean, divided surfaces as the reference. */
body.tad-theme :is(.drawer, .modal) {
  border-color: #e2e8f0;
  background: #fff;
  box-shadow: 0 24px 64px rgb(15 23 42 / .18);
}

body.tad-theme :is(.drawer-header, .modal-header) {
  border-bottom-color: #e2e8f0;
}

body.tad-theme :is(input, select, textarea) {
  border-color: #cbd5e1;
}

body.tad-theme :is(input, select, textarea):focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgb(99 102 241 / .12);
}

/* Login */
body.tad-theme.auth-visible .auth-screen {
  position: relative;
  overflow: hidden;
  padding: 36px 22px;
  background:
    linear-gradient(180deg, #172033 0, #172033 38%, #f1f5f9 38%, #f1f5f9 100%);
}

body.tad-theme.auth-visible .auth-screen::before {
  position: absolute;
  top: 9%;
  left: 50%;
  width: min(820px, 82vw);
  height: 260px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgb(99 102 241 / .24), transparent 68%);
  content: "";
  pointer-events: none;
}

body.tad-theme .auth-card {
  position: relative;
  width: min(100%, 440px);
  padding: 38px 38px 32px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 30px 70px rgb(15 23 42 / .20);
}

body.tad-theme .auth-brand {
  justify-content: center;
  margin-bottom: 28px;
  color: #1e293b;
}

body.tad-theme .auth-brand strong { font-size: 19px; }
body.tad-theme .auth-brand small { color: #4f46e5; }
body.tad-theme .auth-card > div:nth-child(2) { text-align: center; }
body.tad-theme .auth-card h1 { color: #111827; font-size: 27px; }
body.tad-theme .auth-card form { margin-top: 25px; }
body.tad-theme .auth-card .field > span { color: #475569; font-size: 12px; font-weight: 700; }
body.tad-theme .auth-card input { min-height: 47px; border-radius: 8px; }
body.tad-theme .auth-submit {
  min-height: 48px;
  border-radius: 999px;
  background: #4f46e5;
  box-shadow: 0 9px 22px rgb(79 70 229 / .23);
}
body.tad-theme .auth-help a { color: #4f46e5; }

@media (max-width: 1180px) {
  body.tad-theme { --sidebar-width: 236px; }
}

@media (max-width: 1024px) {
  body.tad-theme { --sidebar-width: 264px; }

  body.tad-theme:not(.evaluator-mode) .sidebar {
    box-shadow: 16px 0 38px rgb(15 23 42 / .15);
  }

  body.tad-theme:not(.evaluator-mode) .topbar { padding-inline: 20px; }
  body.tad-theme:not(.evaluator-mode) .page { padding-inline: 20px; }
}

@media (max-width: 760px) {
  body.tad-theme:not(.evaluator-mode) .topbar { padding-inline: 14px; }
  body.tad-theme:not(.evaluator-mode) .page { padding: 20px 14px 32px; }
  body.tad-theme:not(.evaluator-mode) .page-header { margin-bottom: 17px; }
  body.tad-theme:not(.evaluator-mode) .page-title { font-size: 24px; }
  body.tad-theme:not(.evaluator-mode) .kpi-grid { gap: 10px; }
  body.tad-theme:not(.evaluator-mode) .kpi-card { min-height: 114px; padding: 14px; }
  body.tad-theme.auth-visible .auth-screen {
    align-items: center;
    background: linear-gradient(180deg, #172033 0, #172033 30%, #f1f5f9 30%);
  }
}

@media (max-width: 480px) {
  body.tad-theme .auth-card { padding: 30px 22px 26px; }
  body.tad-theme:not(.evaluator-mode) .page-title { font-size: 22px; }
}

@media (forced-colors: active) {
  body.tad-theme .brand-mark > i { forced-color-adjust: none; }
}
