/* Visual theme, loaded after the base styles. Dark navigation, white working surfaces, brand olive as the accent. */
:root {
  --ink: #1a1c15; --muted: #6c7163; --line: #e6e8e1; --bg: #f3f4f0; --card: #ffffff;
  --olive: #74754d; --olive-2: #a5a472; --olive-dk: #4a4b31; --wash: #f4f4ea;
  --night: #15170f; --night-2: #1d2016; --gold: #c2b47a;
  --green: #17803d; --green-w: #e7f5ec; --red: #c2372b; --red-w: #fdecea;
  --amber: #a5630a; --amber-w: #fdf3dd; --blue: #2456c9; --blue-w: #e9f0ff;
  --shadow: 0 1px 2px rgba(22, 24, 15, .05), 0 10px 26px -20px rgba(22, 24, 15, .35);
  --head: 'Plus Jakarta Sans', Inter, system-ui, sans-serif;
}
body { background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
h1, h2, h3, .stat b, .company, .dtitle, .navgroup { font-family: var(--head); }
h1 { font-size: 25px; letter-spacing: -.02em; }
h2 { font-size: 18px; letter-spacing: -.01em; }
h3 { font-size: 14px; letter-spacing: -.005em; }
.head p { font-size: 13.5px; }

/* navigation */
.side { width: 252px; background: linear-gradient(180deg, var(--night-2), var(--night)); border-right: 0; padding: 20px 14px; color: rgba(255, 255, 255, .7); }
.brand { padding: 4px 10px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); margin-bottom: 6px; }
.brand img { width: 96px; }
.navgroup { color: rgba(255, 255, 255, .38); font-size: 10.5px; letter-spacing: .12em; padding: 18px 12px 7px; }
.navitem { display: flex; align-items: center; gap: 11px; color: rgba(255, 255, 255, .74); padding: 9px 12px; border-radius: 10px; font-weight: 500; position: relative; transition: background .15s, color .15s; }
.navitem:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.navitem.on { background: rgba(194, 180, 122, .16); color: #fff; }
.navitem.on::before { content: ''; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.navitem.on .ico { opacity: 1; color: var(--gold); }
.sidefoot { padding: 16px 8px 0; }
.proto { background: rgba(194, 180, 122, .13); color: var(--gold); border: 1px solid rgba(194, 180, 122, .22); border-radius: 8px; }
.side .link { color: rgba(255, 255, 255, .6); }
.side .link:hover { color: #fff; }

/* top bar */
.top { background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: 11px 30px; min-height: 60px; }
.crumb { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; flex: 1; }
.crumb b { font-family: var(--head); font-size: 15px; }
.crumb span { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who { gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--night); color: var(--gold); display: flex; align-items: center; justify-content: center; font: 700 12px var(--head); flex: none; }
.who .input.sm { border-radius: 9px; padding: 7px 9px; font-weight: 500; }
.content { padding: 28px 30px 70px; max-width: 1480px; }

/* surfaces */
.card, .stat, .clockcard { border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.card { padding: 20px; }
.card.flush { padding: 0; }
.card h3 { margin-bottom: 12px; }
.stats { gap: 14px; margin-bottom: 20px; }
.stat { padding: 16px 18px 15px 20px; position: relative; overflow: hidden; gap: 3px; }
.stat::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--olive-2); }
.stat:has(b.warn)::before { background: var(--red); }
.stat span { font-size: 11px; letter-spacing: .06em; font-weight: 600; }
.stat b { font-size: 23px; letter-spacing: -.02em; line-height: 1.2; }
.stat small { font-size: 12px; }

/* controls */
.btn { border-radius: 10px; border-color: #dcdfd5; padding: 9px 15px; transition: background .15s, border-color .15s, box-shadow .15s, transform .05s; }
.btn:hover { border-color: var(--olive-2); box-shadow: 0 1px 2px rgba(22, 24, 15, .08); }
.btn:active { transform: translateY(1px); }
.btn.p { background: var(--night); border-color: var(--night); color: #fff; }
.btn.p:hover { background: var(--olive-dk); border-color: var(--olive-dk); }
.btn.s { border-radius: 8px; padding: 5px 10px; }
.btn.ok { color: var(--green); border-color: #bfe0cb; background: #fbfefc; }
.btn.bad { color: var(--red); border-color: #f0cdc8; background: #fffcfb; }
.input { border-radius: 10px; border-color: #dcdfd5; padding: 9px 11px; transition: border-color .15s, box-shadow .15s; }
.input:hover { border-color: #c9cdbf; }
.input:focus { outline: 0; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(165, 164, 114, .28); }
.input:disabled { background: #f4f5f1; }
.input.search { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236c7163' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center; padding-left: 36px; }
label { color: #5d6255; letter-spacing: .01em; }
.readonly { border-radius: 10px; background: #f7f8f3; border: 1px solid var(--line); }
.link { color: var(--olive-dk); }

/* tables */
.t th { background: #fafaf6; color: #6c7163; font-size: 10.5px; letter-spacing: .07em; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.t td { padding: 12px 16px; border-bottom: 1px solid #f0f1ec; }
.t tbody tr { transition: background .12s; }
.t tbody tr:hover td { background: #fbfbf7; }
.card.flush .t th:first-child, .card.flush .t td:first-child { padding-left: 20px; }
.t.boxed { border-radius: 12px; overflow: hidden; }
.t.boxed tbody tr:hover td { background: transparent; }
.duerow td, .t tbody tr.duerow:hover td { background: var(--amber-w); }
.empty { padding: 36px 16px !important; }
.badge { padding: 3px 10px 3px 9px; font-size: 11px; letter-spacing: .01em; }
.badge::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; opacity: .8; }
.b-grey { background: #eff0ea; color: #5a5f52; }
.bar { background: #e9eae2; height: 7px; border-radius: 6px; }
.bar i { background: linear-gradient(90deg, var(--olive), var(--olive-2)); border-radius: 6px; }

/* tabs as a segmented control */
.tabs { background: #e9eae3; padding: 4px; border-radius: 12px; display: inline-flex; gap: 2px; margin-bottom: 16px; max-width: 100%; }
.tabs button { border: 0; background: transparent; border-radius: 9px; padding: 7px 14px; color: #5d6255; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(22, 24, 15, .14); }

/* windows */
.modal-bg { background: rgba(18, 20, 12, .55); backdrop-filter: blur(3px); }
.modal { background: #fff; border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); overflow: hidden; }
.mhead { padding: 18px 24px; background: #fff; }
.mbody { padding: 22px 24px; background: #fbfbf8; }
.mfoot { padding: 14px 24px; background: #fff; }
.line { border-radius: 12px; border-color: var(--line); box-shadow: 0 1px 2px rgba(22, 24, 15, .03); }
.termpick, .licres, .details { border-radius: 12px; border-color: var(--line); }
.upload { background: #f7f8f1; border: 1px dashed #c3c5a4; border-radius: 12px; }
.x { color: var(--muted); text-decoration: none; font-weight: 600; padding: 6px 10px; border-radius: 8px; }
.x:hover { background: #f0f1ec; color: var(--ink); }
.toast { background: var(--night); border-radius: 12px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); padding: 11px 20px; }

/* pipeline board */
.board { gap: 14px; }
.col { background: #eceee6; border-radius: 14px; padding: 12px; }
.lead { border-radius: 12px; border-left-width: 3px; box-shadow: 0 1px 2px rgba(22, 24, 15, .06); transition: transform .12s, box-shadow .12s; }
.lead:hover { transform: translateY(-1px); box-shadow: 0 6px 14px -8px rgba(22, 24, 15, .35); }
.chip { background: #fff; border-color: var(--line); }
.event { border-bottom-color: #eff0ea; }

/* dashboard charts */
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 14px; margin-bottom: 20px; }
.charts .card { min-width: 0; }
.hbar { display: grid; grid-template-columns: 118px minmax(0, 1fr) auto; gap: 10px; align-items: center; margin-bottom: 11px; font-size: 13px; }
.hbar .lbl { color: #4f5448; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar .track { height: 10px; background: #eeefe8; border-radius: 6px; overflow: hidden; }
.hbar .track i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--olive), var(--olive-2)); min-width: 2px; transition: width .4s; }
.hbar .track i.neg { background: var(--red); }
.hbar .track i.dark { background: var(--night); }
.hbar .val { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stack { display: flex; height: 14px; border-radius: 8px; overflow: hidden; background: #eeefe8; margin: 6px 0 14px; }
.stack i { display: block; height: 100%; }
.legend { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.legend div { display: flex; justify-content: space-between; gap: 10px; }
.legend span::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 8px; background: var(--c); }
.legend b { font-variant-numeric: tabular-nums; }
.t td.r, .totals b, .val, .stat b { font-variant-numeric: tabular-nums; }

/* printable documents keep their paper look */
.paper { border-radius: 6px; box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .5); }
.docbar .btn { box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }

/* HR worker screen */
.clockcard { background: #fff; }
.btn.big { border-radius: 16px; box-shadow: 0 10px 24px -12px rgba(22, 24, 15, .5); }
.sim { border-radius: 12px; }
.sitebox { border-radius: 12px; border-color: var(--line); background: #fcfcfa; }

@media (max-width: 900px) {
  .top { padding: 10px 14px; }
  .content { padding: 18px 14px 70px; }
  .crumb span { display: none; }
  .side { box-shadow: 0 0 50px rgba(0, 0, 0, .5); }
  .hbar { grid-template-columns: 92px minmax(0, 1fr) auto; }
  .tabs { display: flex; flex-wrap: wrap; }
}
@media print {
  .t th { background: #fff; }
  .stat::before, .badge::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .card, .stat { box-shadow: none; }
}

.installbtn { margin-bottom: 8px; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }
.installbig { width: 100%; margin: 4px 0 10px; }
