/* DoA WB Manpower Study Portal: NPC look on the Tabler kit (navy #141E78, blue #0071BC, yellow accent #F0F032).
   Text contrast meets WCAG AA; minimum text 14 px (U11). */
:root {
  --npc-navy: #141E78; --npc-blue: #0071BC; --npc-yellow: #F0F032; --npc-bg: #eef1f6; --npc-line: #dde3ee;
  --tblr-primary: #141E78; --tblr-primary-rgb: 20, 30, 120; --tblr-link-color: #005a96; --tblr-link-color-rgb: 0, 90, 150;
  --tblr-font-sans-serif: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --tblr-body-font-size: .9375rem;
}
body { background: var(--npc-bg); font-size: 15px; color: #1f2937; }
.small, small { font-size: 14px !important; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 2000; }
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--npc-blue); outline-offset: 2px; }

/* top bar */
.topbar { background: var(--npc-navy); color: #fff; display: flex; align-items: center; gap: 14px; padding: 10px 18px;
  border-bottom: 3px solid var(--npc-yellow); position: sticky; top: 0; z-index: 1030; }
.topbar .logo { width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--npc-navy); font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: 12px; flex: none; }
.topbar .t { font-weight: 700; font-size: 17px; line-height: 1.2; color: #fff; text-decoration: none; }
.topbar .s { font-size: 13px; color: #d7dcf5; }
.topbar .tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.topbar .me { text-align: right; font-size: 13px; color: #fff; background: none; border: 0; line-height: 1.25; }
.topbar .me b { display: block; font-size: 14px; }
.topbar .iconbtn { background: rgba(255,255,255,.12); border: 0; color: #fff; border-radius: 8px; width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center; position: relative; font-size: 20px; }
.topbar .iconbtn .count { position: absolute; top: -4px; right: -4px; background: var(--npc-yellow); color: #111; font-size: 11px;
  font-weight: 700; border-radius: 9px; padding: 0 5px; }
.sys-label { background: var(--npc-yellow); color: #111; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.search-box { position: relative; width: 300px; }
.search-box input { background: rgba(255,255,255,.95); border: 0; }
#search-results { position: absolute; top: 42px; left: 0; right: 0; z-index: 1050; }
#search-results .list-group { box-shadow: 0 8px 24px rgba(0,0,0,.18); }

/* layout */
.page-wrap { display: flex; min-height: calc(100vh - 61px); }
.sidenav { width: 230px; background: #fff; border-right: 1px solid var(--npc-line); padding: 12px 0; flex: none; }
.sidenav a { display: flex; align-items: center; gap: 10px; padding: 9px 18px; color: #374151; text-decoration: none; font-size: 15px;
  border-left: 4px solid transparent; }
.sidenav a:hover { background: #f4f6fb; }
.sidenav a.on { background: #e8edfb; color: var(--npc-navy); font-weight: 700; border-left-color: var(--npc-navy); }
.sidenav a .ti { font-size: 19px; color: #6b7280; }
.sidenav a.on .ti { color: var(--npc-navy); }
.sidenav .h { font-size: 12px; color: #6b7280; padding: 14px 18px 4px; text-transform: uppercase; letter-spacing: .05em; }
.main { flex: 1; padding: 20px 24px 40px; min-width: 0; }
.page-title { font-size: 22px; font-weight: 700; color: var(--npc-navy); margin: 0 0 2px; }
.page-sub { color: #5b6475; margin-bottom: 16px; font-size: 15px; }
.card { border-color: var(--npc-line); border-radius: 10px; }
.card-title { color: var(--npc-navy); font-weight: 700; }
.topbar .navtoggle { display: none; }
@media (max-width: 991.98px) {
  .sidenav { position: fixed; top: 61px; bottom: 0; left: 0; z-index: 1020; transform: translateX(-100%); transition: transform .2s;
    box-shadow: 4px 0 16px rgba(0,0,0,.15); overflow-y: auto; }
  .sidenav.open { transform: none; }
  .topbar .navtoggle { display: inline-flex; }
  .search-box { display: none; }
  .topbar .s, .topbar .me span.sub { display: none; }
  .main { padding: 14px 12px 40px; }
}

/* tiles: every figure "n of N" (screen rule 2) */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: #fff; border: 1px solid var(--npc-line); border-radius: 10px; padding: 14px; }
.tile .n { font-size: 26px; font-weight: 800; color: var(--npc-navy); line-height: 1.1; }
.tile .n small { font-size: 15px !important; font-weight: 600; color: #5b6475; }
.tile .l { color: #4b5563; font-size: 14px; margin-top: 2px; }
.tile.later { background: #f8f9fc; }
.tile.later .n { color: #8a93a6; font-size: 18px; }
.nofn-n { font-weight: 600; white-space: nowrap; }
.progress-bar { background-color: var(--npc-blue); }
.progress-bar.bg-green { background-color: #2fb344; }

/* job strip (M1) */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 16px; }
.strip .step { background: #fff; border: 1px solid var(--npc-line); border-radius: 10px; padding: 11px 13px; font-size: 14px; color: inherit; text-decoration: none; display: block; }
.strip .step b { display: block; color: var(--npc-navy); font-size: 15px; margin-bottom: 4px; }

/* status chips: icon + word (U2) */
.chip { font-size: 13px; font-weight: 600; padding: 4px 9px; border-radius: 12px; white-space: nowrap; }
.chip .ti { font-size: 14px; vertical-align: -2px; }
.bg-yellow-lt.text-yellow-fg { color: #7a4d00 !important; background: #fdf0c4 !important; }
.bg-red-lt { color: #9b1c1c !important; }
.bg-green-lt { color: #166534 !important; }
.bg-blue-lt { color: #1e40af !important; }
.bg-secondary-lt { color: #374151 !important; }

table.table { font-size: 15px; }
.table thead th { background: #f3f5fa; color: #374151; font-size: 13px; text-transform: none; letter-spacing: 0; font-weight: 700; }
.table td { vertical-align: middle; }
.row-link { color: var(--npc-navy); font-weight: 600; text-decoration: none; }
.row-link:hover { text-decoration: underline; }
.muted { color: #5b6475; }
.help-q { display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px; border-radius: 50%;
  background: #e2e8f5; color: var(--npc-navy); font-size: 12px; font-weight: 800; cursor: help; margin-left: 4px; vertical-align: 1px; }
.empty { text-align: center; padding: 34px 16px; color: #4b5563; }
.empty .ti { font-size: 40px; color: #9aa4b8; display: block; margin-bottom: 6px; }
.actions-bar { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 12px; }
.btn { font-weight: 600; }
.btn-primary { background: var(--npc-navy); border-color: var(--npc-navy); }
.btn-primary:hover { background: #0e1660; border-color: #0e1660; }
.btn-outline-primary { color: var(--npc-navy); border-color: var(--npc-navy); }
.btn-outline-primary:hover { background: var(--npc-navy); color: #fff; }
.btn[disabled], .btn.disabled { background: #d1d5db; border-color: #d1d5db; color: #4b5563; opacity: 1; }
.timeline-simple { list-style: none; padding: 0; margin: 0; }
.timeline-simple li { padding: 6px 0 6px 14px; border-left: 3px solid #cbd5e1; margin-left: 6px; font-size: 14px; }
.timeline-simple li b { color: var(--npc-navy); }
.thread .msg { border-left: 3px solid var(--npc-blue); padding: 6px 10px; margin-bottom: 8px; background: #f8fafd; border-radius: 0 6px 6px 0; }
.thread .msg.q { border-left-color: #d63939; }
.tree-row td:first-child { white-space: nowrap; }
.chart-box { width: 100%; height: 280px; }
.unit-indent { display: inline-block; }
.kbd-code { font-family: Consolas, monospace; background: #f1f3f9; padding: 1px 6px; border-radius: 4px; font-size: 14px; }

/* tour */
.tour-back { position: fixed; inset: 0; background: rgba(15, 23, 60, .55); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.tour-card { background: #fff; border-radius: 12px; max-width: 460px; width: 100%; padding: 22px; border-top: 5px solid var(--npc-yellow); }
.tour-card h3 { color: var(--npc-navy); font-size: 19px; }
.tour-dots span { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #cbd5e1; margin-right: 5px; }
.tour-dots span.on { background: var(--npc-navy); }
[x-cloak] { display: none !important; }

/* sign-in */
.auth-wrap { min-height: calc(100vh - 61px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth-card { max-width: 440px; width: 100%; }

/* password slip */
.slip-logo { width: 44px; height: 44px; border-radius: 50%; background: #141E78; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; flex: none; }
@media print { .slip { page-break-inside: avoid; } }
.slip { max-width: 640px; border: 2px dashed #8a93a6; border-radius: 10px; background: #fff; padding: 24px; }
.slip .pw { font-family: Consolas, monospace; font-size: 26px; letter-spacing: 2px; color: var(--npc-navy); font-weight: 700; }
@media print {
  .topbar, .sidenav, .no-print, .alert { display: none !important; }
  body, .main { background: #fff; padding: 0; }
  .slip { border: 1.5px dashed #000; }
}

/* review fixes (screenshots 01-11-2026) */
.sys-label { white-space: nowrap; }
.topbar .me { max-width: 360px; }
.topbar .me b, .topbar .me span.sub { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.checks .chip { white-space: normal; display: inline-block; text-align: left; line-height: 1.35; }
.col-unit { min-width: 230px; }
.col-came { min-width: 190px; }

/* U11: no text below 14 px */
.btn-sm, .btn-group-sm > .btn { font-size: 14px; }
.chip { font-size: 14px; }
.table thead th { font-size: 14px; }
.form-label.small, .form-control-sm, .form-select-sm { font-size: 14px !important; }
@media (max-width: 991.98px) {
  .sidenav:not(.open) { box-shadow: none; }
  .topbar { gap: 8px; padding: 8px 10px; }
  .topbar .t { font-size: 15px; }
  .topbar .logo { width: 32px; height: 32px; font-size: 10px; }
  .topbar .me { max-width: 110px; font-size: 14px; }
  .topbar .me b { font-size: 14px; }
  .sys-label { font-size: 12px; padding: 1px 5px; }
  .tiles, .strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .tiles, .strip { grid-template-columns: 1fr; }
  .topbar .t { max-width: 130px; display: block; white-space: normal; line-height: 1.15; }
}

.me-icon { display: none; font-size: 26px; }
@media (max-width: 480px) {
  .topbar .me b, .topbar .me span.sub { display: none; }
  .me-icon { display: inline-block; }
  .topbar .me { max-width: none; }
}

.actions-cell { min-width: 250px; }
.actions-cell > form, .actions-cell > a { margin: 2px 0; }
.col-head { min-width: 180px; }
.col-unit { min-width: 190px; }
.actions-cell { min-width: 230px; padding-right: 14px !important; }
.actions-cell { min-width: 200px; }
.table-responsive .card-table td.actions-cell { width: 220px; }
.card .table-responsive { overflow-x: auto; }
.col-unit { min-width: 170px; }
td.col-head { min-width: 160px; }

/* trial mode (D32) */
.trial-banner { background: #b42318; color: #fff; text-align: center; font-weight: 700; padding: 6px 12px; font-size: 15px; }
.acting-bar { background: #7a4d00; color: #fff; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; padding: 6px 12px; font-size: 15px; }
.acting-bar.acting-offer { background: #5b6475; }
.acting-bar form { margin: 0; }
.acting-bar .kbd-code { background: rgba(255,255,255,.2); color: #fff; }
.qr-box svg { width: 220px; height: auto; max-width: 100%; display: block; }
