/* KYC Lab extension styles: home (CMD-KYCLAB/009, work package HOME). Classes are prefixed home-. Colours come from the theme tokens of app.css (light, dark, auto). */

.home-host{display:grid;gap:22px;min-width:0;}
.home-sec{display:grid;gap:12px;min-width:0;}
.home-sech{display:flex;align-items:center;gap:8px;font-size:1.05rem;font-weight:700;letter-spacing:-.01em;margin:0;color:var(--ink);}
.home-sech svg{width:18px;height:18px;color:var(--ink-3);flex:none;}
.home-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:14px;min-width:0;}
.home-grid.one{grid-template-columns:minmax(0,1fr);}

/* ---------- cards ---------- */
.home-card{display:grid;align-content:start;gap:10px;padding:16px 18px;border:1px solid var(--line);border-radius:18px;background:var(--surface);box-shadow:var(--shadow);min-width:0;}
.home-card.wide{grid-column:1/-1;}
.home-card.sev-crit{border-color:var(--block);}
.home-card.is-empty{background:var(--surface-2);box-shadow:none;}
.home-ct{margin:0;font-size:.95rem;font-weight:600;line-height:1.3;overflow-wrap:anywhere;}
.home-ctl{color:var(--ink);text-decoration:none;}
.home-ctl:hover{color:var(--accent-ink);text-decoration:underline;}
.home-ctl:focus-visible,.home-num:focus-visible,.home-itl:focus-visible,.home-part:focus-visible,.home-overlink:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:6px;}
.home-big{display:flex;align-items:center;flex-wrap:wrap;gap:10px;}
.home-num{font-size:2.4rem;font-weight:300;letter-spacing:-.03em;line-height:1.05;font-variant-numeric:tabular-nums;color:var(--ink);text-decoration:none;}
.home-num:hover{color:var(--accent-ink);}
.home-status{display:flex;gap:8px;align-items:center;}
.home-overdue{display:flex;}
.home-overlink{text-decoration:none;}
.home-empty{display:flex;align-items:center;gap:10px;color:var(--ink-3);font-size:13.5px;}
.home-empty svg{width:20px;height:20px;flex:none;color:var(--allow);}
.home-profile{margin:0;}
.home-subh{margin:12px 0 6px;font-size:.85rem;font-weight:600;color:var(--ink-2);}

/* ---------- breakdown chips ---------- */
.home-parts{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px;min-width:0;}
.home-part{display:inline-flex;align-items:baseline;gap:6px;padding:5px 10px;border:1px solid var(--line);border-radius:999px;background:var(--surface-2);color:var(--ink);text-decoration:none;font-size:13px;min-width:0;}
a.home-part:hover{border-color:var(--accent);background:var(--accent-soft);}
.home-pn{font-weight:700;font-variant-numeric:tabular-nums;}
.home-pk{color:var(--ink-2);overflow-wrap:anywhere;}
.home-part.crit,.home-part.block{border-color:var(--block);}
.home-part.crit .home-pn,.home-part.block .home-pn{color:var(--block);}
.home-part.review .home-pn{color:var(--review);}
.home-part.allow .home-pn{color:var(--allow);}

/* ---------- item lists ---------- */
.home-items{list-style:none;margin:0;padding:0;display:grid;gap:0;min-width:0;}
.home-item{display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:6px 10px;padding:9px 0;border-top:1px solid var(--line);min-width:0;}
.home-item:first-child{border-top:0;}
.home-itmain{display:grid;gap:2px;min-width:0;flex:1 1 130px;}
.home-itl{color:var(--accent-ink);text-decoration:none;font-weight:600;font-size:13.5px;overflow-wrap:anywhere;}
.home-itl:hover{text-decoration:underline;}
.home-itmeta{font-size:12.5px;color:var(--ink-3);overflow-wrap:anywhere;}
.home-itside{display:flex;flex-wrap:wrap;gap:6px;align-items:center;justify-content:flex-end;min-width:0;}
.home-due{font-size:12.5px;color:var(--ink-2);white-space:nowrap;}
.home-due.over{color:var(--block);font-weight:600;}
.home-links{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px;}
.home-links .btn{text-decoration:none;}

/* ---------- holding table ---------- */
.home-tbl .num{text-align:right;font-variant-numeric:tabular-nums;}
.home-tbl tfoot th,.home-tbl tfoot td{font-weight:700;border-top:2px solid var(--line);}

/* ---------- trend (bars are sized by classes: no inline style) ---------- */
.home-trend{display:grid;gap:6px;min-width:0;}
.home-trendh{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:4px 12px;}
.home-bars{list-style:none;margin:0;padding:0;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);align-items:end;gap:3px;height:84px;}
.home-bar{display:block;min-height:0;background:var(--accent);border-radius:3px 3px 0 0;opacity:.85;}
.home-bar.home-h-0{background:var(--line);height:2px;opacity:1;}
.home-axis{display:flex;justify-content:space-between;}
.home-h-1{height:5%;}.home-h-2{height:10%;}.home-h-3{height:15%;}.home-h-4{height:20%;}.home-h-5{height:25%;}.home-h-6{height:30%;}.home-h-7{height:35%;}
.home-h-8{height:40%;}.home-h-9{height:45%;}.home-h-10{height:50%;}.home-h-11{height:55%;}.home-h-12{height:60%;}.home-h-13{height:65%;}.home-h-14{height:70%;}
.home-h-15{height:75%;}.home-h-16{height:80%;}.home-h-17{height:85%;}.home-h-18{height:90%;}.home-h-19{height:95%;}.home-h-20{height:100%;}

.home-ov,.home-ovhost{min-width:0;}
.home-ovhost{display:grid;gap:12px;}
.home-omitted{margin:4px 0 0;padding-left:18px;}
.home-foot{margin:0;}

@media (max-width:520px){
  .home-card{padding:14px;border-radius:16px;}
  .home-num{font-size:2rem;}
  .home-itside{justify-content:flex-start;}
  .home-bars{height:64px;gap:2px;}
}

/* Overview: what needs attention */
.home-attn-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;}
.home-attn-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;padding:10px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface);min-width:0;}
.home-attn-row.crit{border-color:var(--block);}
.home-attn-link{font-weight:600;overflow-wrap:anywhere;min-width:0;flex:1 1 220px;}
.home-attn{display:flex;flex-direction:column;gap:10px;margin:0 0 14px;min-width:0;}

/* Stage 3 S3-F: pending approvals card */
.home-appr .home-items{margin-top:8px;}
.home-appr-row.over{background:var(--block-soft, transparent);}
.home-appr-row .home-itmeta.mono{font-family:var(--mono, monospace);}
.home-appr-open{white-space:nowrap;}
.home-attn-actors{flex:1 1 100%;margin-top:4px;}
