/* v4.3.0: Quản lý hồ sơ, tài liệu */
.hs-layout{display:grid;grid-template-columns:300px 1fr;gap:14px;align-items:start}
@media (max-width:900px){.hs-layout{grid-template-columns:1fr}}
.hs-tree{padding:10px;max-height:calc(100vh - 160px);overflow:auto;position:sticky;top:70px}
@media (max-width:900px){.hs-tree{position:static;max-height:none}}
.hs-tree details{margin:6px 0}.hs-tree summary{font-weight:700;cursor:pointer;padding:4px 0}
.hs-tree summary a.on{color:var(--brand)}
.hs-node{display:flex;align-items:center;gap:6px;padding:5px 8px;border-radius:8px;color:var(--fg);text-decoration:none;font-size:14px}
.hs-node:hover{background:var(--soft)}.hs-node.on{background:var(--brand-soft);font-weight:700}
.hs-sub{margin-left:16px}
.hs-n{font-size:12px;color:var(--muted)}
.hs-b{font-size:11px;font-weight:700;border-radius:8px;padding:0 6px}.hs-b.bad{background:var(--bad-soft);color:var(--bad)}.hs-b.warn{background:var(--warn-soft);color:var(--warn)}
.hs-chips{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}
.hs-chips .chip.on{background:var(--brand);color:#fff;border-color:var(--brand)}
.hs-item{display:flex;gap:10px;align-items:flex-start}
/* TD-036: khung chọn nhiều dòng */
.hs-pick{position:sticky;top:70px;z-index:5;display:flex;flex-wrap:wrap;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:8px 12px;margin:6px 0 8px}
.hs-pick .grow{min-width:140px}
@media (max-width:900px){.hs-pick{position:static}}
.hs-pick-row{display:flex;align-items:stretch;gap:6px}
.hs-pick-row>.item{flex:1;min-width:0}
.hs-pick-tick{display:flex;align-items:center;justify-content:center;flex:none;width:36px;min-height:44px;cursor:pointer}
.hs-pick-tick input{width:20px;height:20px;margin:0}
.hs-bulk-sec{margin-top:10px}
.hs-thumb{width:56px;height:56px;border-radius:8px;object-fit:cover;flex:none;background:var(--soft)}
.hs-thumb.none{display:flex;align-items:center;justify-content:center;color:var(--muted)}
.hs-route{display:flex;flex-direction:column;gap:10px}
.hs-step{border-left:3px solid var(--brand);padding:4px 0 4px 10px}
.hs-step .photos{margin-top:6px}
.hs-part{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:4px 0}
.hs-part input[type=text],.hs-part input:not([type]){flex:1 1 180px}
.hs-req{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.hs-tags{display:flex;flex-wrap:wrap;gap:8px}
.hs-loc{border-left:2px solid var(--line);padding:6px 0 6px 10px;margin:4px 0}
.hs-aline.bad{border-left:4px solid var(--bad)}
.hs-aline .form{margin-top:6px}
/* v4.3.0: Họp giao ban - trình chiếu */
.gb-deck{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:14px;outline:none}
.gb-deck:fullscreen{border-radius:0;padding:2.2vw;display:flex;flex-direction:column;background:#fff}
.gb-stage{aspect-ratio:16/9;overflow:auto;display:flex;flex-direction:column}
.gb-deck:fullscreen .gb-stage{flex:1;aspect-ratio:auto}
.gb-hd{display:flex;align-items:center;gap:12px;border-bottom:3px solid var(--brand);padding-bottom:8px;margin-bottom:12px}
.gb-t{font-size:clamp(20px,2.4vw,40px);font-weight:800;color:var(--brand)}
.gb-s{color:var(--muted);font-size:clamp(12px,1vw,18px)}
.gb-logo{height:clamp(28px,3vw,56px)}
.gb-body{flex:1;font-size:clamp(13px,1.15vw,22px)}
.gb-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.gb-grid.sm{margin-bottom:12px}
@media (max-width:800px){.gb-grid{grid-template-columns:repeat(2,1fr)}}
.gb-kpi{border:1px solid var(--line);border-radius:12px;padding:12px}
.gb-kpi .l{color:var(--muted);font-size:.9em}.gb-kpi .v{font-size:2.4em;font-weight:800;line-height:1.1}.gb-kpi .p{font-size:.85em;color:var(--muted)}
.gb-d.ok{color:var(--ok);font-weight:700}.gb-d.bad{color:var(--bad);font-weight:700}
.gb-tbl{width:100%;border-collapse:collapse}
.gb-tbl th,.gb-tbl td{border-bottom:1px solid var(--line);padding:6px 8px;text-align:left}
.gb-tbl th{background:var(--soft);position:sticky;top:0}
.gb-tbl td.bad,.gb-tbl .bad{color:var(--bad);font-weight:700}.gb-tbl td.big{font-size:1.4em;font-weight:800}
.gb-tbl tr.t-ok td.rate{background:var(--ok-soft);color:var(--ok);font-weight:800}
.gb-tbl tr.t-warn td.rate{background:var(--warn-soft);color:var(--warn);font-weight:800}
.gb-tbl tr.t-bad td.rate,.gb-tbl tr.t-bad td:first-child{background:var(--bad-soft);color:var(--bad);font-weight:800}
.gb-2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media (max-width:800px){.gb-2{grid-template-columns:1fr}}
.gb-list li.bad{color:var(--bad)}.gb-list li.ok{color:var(--ok)}
.gb-empty{color:var(--muted);font-size:1.3em;padding:30px;text-align:center}
.gb-trend{display:grid;grid-template-columns:repeat(8,1fr);gap:10px;height:75%;align-items:end}
.gb-col{display:flex;flex-direction:column;align-items:center;height:100%}
.gb-bars{flex:1;width:100%;display:flex;gap:4px;align-items:flex-end;justify-content:center;min-height:120px}
.gb-bars .bar{width:40%;border-radius:4px 4px 0 0;min-height:2px}
.gb-bars .due{background:var(--brand)}.gb-bars .late{background:var(--bad)}
.gb-col .rate{font-weight:800}.gb-col .lbl{color:var(--muted)}.gb-col .sub{font-size:.8em;color:var(--muted)}
.gb-legend{margin-top:10px;color:var(--muted);display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.gb-legend .k{width:14px;height:14px;border-radius:3px;display:inline-block}.gb-legend .k.due{background:var(--brand)}.gb-legend .k.late{background:var(--bad)}
.gb-nav{display:flex;gap:8px;align-items:center;justify-content:center;margin-top:10px;flex-wrap:wrap}
.gb-dots{display:flex;gap:4px}.gb-dots button{width:30px;height:30px;border-radius:50%;border:1px solid var(--line);background:var(--surface);cursor:pointer}
.gb-dots button.on{background:var(--brand);color:#fff;border-color:var(--brand)}
