/* BoiChitro HR v2 — additions to /assets/suite.css (navy / white). */
.hr-tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; margin-top: -4px; }
.hr-tabs::-webkit-scrollbar { display: none; }
.hr-tabs a { white-space: nowrap; }
.hr-tabs svg { width: 16px; height: 16px; }

/* avatars */
.hav { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; display: inline-grid; place-items: center; background: var(--navy-soft); color: var(--navy); font-weight: 700; font-size: 13px; flex: none; }
.hav.sm { width: 30px; height: 30px; font-size: 11.5px; }
.hav.lg { width: 72px; height: 72px; font-size: 24px; }
.hav.xl { width: 96px; height: 96px; font-size: 30px; }
.person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person b, .person a.nm { display: block; color: var(--ink); text-decoration: none; font-weight: 600; }
.person a.nm:hover { color: var(--navy); text-decoration: underline; }
.person small { display: block; color: var(--muted); font-size: 12px; }

/* today board */
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.bcard { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); }
.bcard .bt2 { min-width: 0; flex: 1; } .bcard .bt2 b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bcard .bt2 small { color: var(--muted); font-size: 12px; }
.st-in { border-left: 4px solid var(--ok); } .st-out { border-left: 4px solid var(--navy); } .st-leave { border-left: 4px solid var(--teal); }
.st-absent { border-left: 4px solid var(--danger); } .st-due { border-left: 4px solid var(--faint); } .st-off { border-left: 4px solid var(--line); }
.legend2 { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }

/* monthly register */
.reg-wrap { overflow: auto; max-height: 70vh; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); }
.reg { border-collapse: separate; border-spacing: 0; font-size: 12px; }
.reg th, .reg td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 5px 4px; text-align: center; min-width: 30px; white-space: nowrap; }
.reg thead th { position: sticky; top: 0; background: var(--paper); z-index: 2; font-weight: 600; color: var(--muted); }
.reg th.nm, .reg td.nm { position: sticky; left: 0; background: var(--paper); text-align: left; min-width: 170px; z-index: 1; padding: 5px 8px; }
.reg thead th.nm { z-index: 3; }
.reg .wk { background: var(--canvas); }
.reg .c-P { color: var(--ok); font-weight: 700; } .reg .c-L { color: var(--saffron); font-weight: 700; } .reg .c-A { color: var(--danger); font-weight: 700; background: var(--danger-soft); }
.reg .c-V { color: var(--teal); font-weight: 700; } .reg .c-H, .reg .c-S { color: var(--faint); } .reg .c-M { color: var(--danger); font-weight: 700; }
.reg .c-W { color: var(--navy); font-weight: 700; background: var(--navy-soft); }
.reg td.tot { font-weight: 700; background: var(--canvas); }

/* attendance photos */
.shots { display: flex; gap: 6px; }
.shots img { width: 46px; height: 46px; border-radius: 9px; object-fit: cover; border: 1px solid var(--line); cursor: zoom-in; }
.manual { font-size: 11px; font-weight: 700; color: var(--saffron); background: var(--saffron-soft); padding: 2px 7px; border-radius: 6px; }

/* profile */
.prof-head { display: flex; gap: 16px; align-items: center; padding: 18px; flex-wrap: wrap; }
.prof-head h2 { margin: 0; font-size: 20px; } .prof-head p { margin: 2px 0 0; color: var(--muted); }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px 18px; padding: 16px; }
.kv div span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.kv div b { font-weight: 600; word-break: break-word; }
fieldset.sec2 { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
fieldset.sec2 legend { font-size: 13px; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: .04em; padding: 6px 0 2px; }
fieldset[disabled] input, fieldset[disabled] select, fieldset[disabled] textarea { background: var(--canvas); color: var(--ink); }
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.doc { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: var(--paper); }
.doc b { font-size: 13.5px; } .doc .has { color: var(--ok); font-size: 12.5px; font-weight: 600; } .doc .none { color: var(--faint); font-size: 12.5px; }
.doc input[type=file] { font-size: 12.5px; max-width: 100%; }

/* hiring */
.cands { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.cand { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.cand .scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cand .scores div { background: var(--canvas); border-radius: 10px; padding: 8px; text-align: center; }
.cand .scores b { display: block; font-size: 18px; } .cand .scores small { color: var(--muted); font-size: 11px; }
.notes { white-space: pre-wrap; background: var(--canvas); border-radius: 10px; padding: 8px 10px; font-size: 12.5px; max-height: 140px; overflow: auto; }
details.qa summary { cursor: pointer; color: var(--navy); font-weight: 600; font-size: 13px; }
details.qa .q { font-size: 12.5px; margin: 6px 0 0; } details.qa .a { font-size: 12.5px; color: var(--muted); }

/* payroll */
.money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.plus { color: var(--ok); } .minus { color: var(--danger); }
.calc-box { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; background: var(--canvas); border-radius: 12px; padding: 12px; }
.calc-box div span { display: block; font-size: 11.5px; color: var(--muted); } .calc-box div b { font-size: 14px; }
.netbox { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); font-weight: 700; }
.netbox b { font-size: 20px; }

/* letters */
.letter-prev { border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: #fff; color: #111; max-height: 420px; overflow: auto; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; } .tags button { font-family: var(--mono); font-size: 12px; padding: 4px 8px; border-radius: 7px; background: var(--navy-soft); color: var(--navy); }

/* ================= employee portal (phones first) ================= */
body.emp { padding-bottom: 76px; }
.emp-top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 14px; background: var(--paper); border-bottom: 1px solid var(--line); }
.emp-top .brand b { font-size: 15px; } .emp-top .me { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.emp-wrap { max-width: 720px; margin: 0 auto; padding: 14px 14px 30px; display: flex; flex-direction: column; gap: 12px; }
.emp-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--paper); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.emp-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: none; padding: 4px 0; border-radius: 10px; }
.emp-nav a svg { width: 22px; height: 22px; } .emp-nav a.on { color: var(--navy); background: var(--navy-soft); }
@media (min-width: 900px) { .emp-nav { max-width: 720px; margin: 0 auto 12px; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); } body.emp { padding-bottom: 96px; } }
.hi { background: linear-gradient(135deg, #12305f, #0b1f40); color: #fff; border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.hi h1 { margin: 0; font-size: 21px; } .hi p { margin: 0; color: rgba(255,255,255,.8); font-size: 13.5px; }
.hi .row2 { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.hi .chip2 { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: 6px 10px; font-size: 12.5px; }
.punch { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.cam { position: relative; border-radius: 16px; overflow: hidden; background: #0b1220; aspect-ratio: 3 / 4; max-height: 430px; }
.cam video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.cam .tag2 { position: absolute; left: 10px; right: 10px; bottom: 10px; background: rgba(11, 31, 64, .78); color: #fff; padding: 8px 10px; border-radius: 10px; font-size: 13px; font-weight: 600; text-align: center; }
.btn-punch { height: 56px; border-radius: 14px; font-size: 17px; font-weight: 700; color: #fff; width: 100%; }
.btn-punch.in { background: var(--ok); } .btn-punch.out { background: var(--danger); } .btn-punch[disabled] { opacity: .45; }
.timelog { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.timelog div { background: var(--canvas); border-radius: 12px; padding: 10px 12px; } .timelog span { display: block; font-size: 12px; color: var(--muted); } .timelog b { font-size: 17px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .dh { font-size: 11px; color: var(--muted); text-align: center; font-weight: 600; }
.cal .dy { border-radius: 9px; padding: 6px 2px; text-align: center; font-size: 12px; background: var(--canvas); min-height: 46px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cal .dy b { font-size: 13px; } .cal .dy i { font-style: normal; font-size: 10.5px; font-weight: 700; }
.cal .P { background: var(--ok-soft); color: var(--ok); } .cal .A, .cal .M { background: var(--danger-soft); color: var(--danger); } .cal .V { background: var(--teal-soft); color: var(--teal); }
.cal .S, .cal .H { color: var(--faint); } .cal .W { background: var(--navy-soft); color: var(--navy); } .cal .F { opacity: .45; } .cal .blank { background: none; }
.emp-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; background: var(--canvas); }
.emp-login .card { width: 100%; max-width: 400px; padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; }

/* employee documents: one combined PDF */
.docpack { display: flex; flex-direction: column; gap: 8px; border: 1px dashed var(--line); border-radius: 12px; padding: 12px; background: var(--paper); }
.docpack .dp-btn { align-self: flex-start; cursor: pointer; }
.docpack .dp-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.docpack .dp-list:empty { display: none; }
.docpack .dp-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; background: var(--canvas); font-size: 13px; }
.docpack .dp-list li small { color: var(--muted); }
.docpack .dp-acts { display: flex; gap: 4px; flex: none; }
.docpack .dp-status.ok { color: var(--ok); } .docpack .dp-status.err { color: var(--danger); font-weight: 600; }
.docpack.busy { opacity: .9; }
.docpack .spin { display: inline-block; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: dpspin .8s linear infinite; vertical-align: -2px; }
@keyframes dpspin { to { transform: rotate(360deg); } }
.olddocs li { display: flex; justify-content: space-between; gap: 8px; }
.reg td.clk { cursor: pointer; } .reg td.clk:hover { outline: 2px solid var(--navy); outline-offset: -2px; }
