/* ============================================================
   Cre8ive client portal — Home
   Upload to /var/www/portal/portal-home.css
   Matches the Main.dc.html artboard. No box shadows.
   ============================================================ */

#view-dashboard .ph{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}
#hm-raise{flex:0 0 auto}

.hm-l{font-size:11px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--tx3)}
.hm-pill{display:inline-flex;align-items:center;padding:3px 10px;border-radius:999px;
  font-size:11.5px;font-weight:600;font-family:var(--mono);white-space:nowrap}
.hm-p-blue{background:#e7f2fa;color:#0170b9}
.hm-p-green{background:#e4f4ec;color:#0f7a4d}
.hm-p-amber{background:#fcf1dc;color:#8a5a00}
.hm-p-pink{background:#ffe8ee;color:var(--pink-t)}
.hm-p-grey{background:#eeeef4;color:var(--tx2)}
[data-theme="dark"] .hm-p-blue,[data-theme="dark"] .hm-p-green,[data-theme="dark"] .hm-p-amber,
[data-theme="dark"] .hm-p-pink,[data-theme="dark"] .hm-p-grey{background:var(--sf2);color:var(--tx2)}

/* ---------- build hero ---------- */
.hm-hero{margin-bottom:1.4rem}
.hm-hero-t{padding:22px 24px;border-bottom:1px solid var(--bd)}
.hm-hero-hd{display:flex;align-items:flex-start;gap:20px;flex-wrap:wrap}
.hm-hero-m{flex:1 1 260px;min-width:0}
.hm-hero-pills{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:8px}
.hm-started{font-size:12.5px;color:var(--tx3);font-family:var(--mono)}
.hm-hero-n{margin:0;font-size:21px;font-weight:700;letter-spacing:-.4px;line-height:1.25}
.hm-hero-s{margin:7px 0 0;font-size:14px;color:var(--tx2);line-height:1.5}
.hm-hero-stats{display:flex;gap:30px;flex:0 0 auto}
.hm-n{font-family:var(--mono);font-size:25px;font-weight:700;margin-top:4px}
.hm-bar{display:flex;gap:4px;margin-top:20px;height:8px}
.hm-bar span{display:block;height:8px}
.hm-bd{background:#0f7a4d;border-radius:999px 0 0 999px}
.hm-br{background:#0170b9}
.hm-bt{background:#e6e6ef;border-radius:0 999px 999px 0}
[data-theme="dark"] .hm-bt{background:#2a2a38}
.hm-bar span:only-child{border-radius:999px}
.hm-now{padding:16px 24px 20px}
.hm-now-l{margin-bottom:12px}
.hm-now-r{display:flex;align-items:center;gap:13px;padding:10px 0;border-bottom:1px solid var(--bd)}
.hm-now-r:last-child{border-bottom:none}
.hm-now-t{flex:1;min-width:0;font-size:14px;font-weight:600;line-height:1.4}
.hm-due{font-size:13px;color:var(--tx3);white-space:nowrap}
.hm-tick{width:18px;height:18px;border-radius:5px;flex:0 0 18px;
  display:flex;align-items:center;justify-content:center}
.hm-tick-run{border:2px solid #0170b9}
.hm-tick-done{background:#0f7a4d}
.hm-tick-done svg{width:12px;height:12px;stroke:#fff;fill:none;stroke-width:3.2;
  stroke-linecap:round;stroke-linejoin:round}

/* ---------- two columns ---------- */
.hm-cols{display:flex;flex-wrap:wrap;gap:22px;align-items:flex-start}
.hm-main{flex:999 1 420px;min-width:0;display:flex;flex-direction:column;gap:22px}
.hm-side{flex:1 1 300px;min-width:0;display:flex;flex-direction:column;gap:22px}
#view-dashboard .card{background:var(--sf);border:1px solid var(--bd);border-radius:14px}
#view-dashboard .ch{padding:14px 18px;border-bottom:1px solid var(--bd);
  display:flex;align-items:center;justify-content:space-between;gap:12px}
#view-dashboard .ct{font-size:14px;font-weight:700}
#view-dashboard .row{display:flex;align-items:center;gap:14px;padding:13px 18px;border-bottom:1px solid var(--bd)}
#view-dashboard .row:last-child{border-bottom:none}
.hm-rt{flex:1;min-width:0;font-size:14px;font-weight:600;line-height:1.4}
.hm-all{background:none;border:none;padding:0;font-family:var(--font);font-size:13px;
  font-weight:600;color:#0170b9;cursor:pointer;white-space:nowrap}
.hm-all:hover{text-decoration:underline}
.hm-note{padding:12px 18px;font-size:12.5px;color:var(--tx3);border-top:1px solid var(--bd)}

/* ---------- finished ---------- */
.hm-fin{padding:6px 18px 14px}
.hm-fin-r{display:flex;align-items:center;gap:13px;padding:11px 0;border-bottom:1px solid var(--bd)}
.hm-fin-r:last-child{border-bottom:none}
.hm-fin-t{flex:1;min-width:0;font-size:13.5px;font-weight:600;line-height:1.4}
.hm-fin-d{font-size:12.5px;color:var(--tx3);font-family:var(--mono);white-space:nowrap}

/* ---------- invoices ---------- */
.hm-inv{padding:18px}
.hm-amt{font-family:var(--mono);font-size:26px;font-weight:700;letter-spacing:-1px;margin-top:5px}
.hm-inv-s{font-size:13px;color:var(--tx2);margin-top:6px;line-height:1.5}
.hm-wide{display:block;width:100%;margin-top:16px;text-align:center;text-decoration:none;min-height:40px;
  line-height:22px}

/* one grid when there is no main column to sit beside */
.hm-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:22px;align-items:start}
.hm-site-r{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:6px}
.hm-jump{cursor:pointer;font-family:var(--font)}
.hm-jump:hover{border-color:var(--bd2);color:var(--tx)}

/* ---------- staging ---------- */
.hm-stg{padding:16px 18px}
.hm-stg-d{display:flex;align-items:center;gap:10px}
.hm-dot{width:9px;height:9px;border-radius:999px;background:#0f7a4d;flex:0 0 9px}
.hm-dot-off{background:#a9a9bd}
.hm-stg-n{flex:1;min-width:0;font-size:13.5px;font-weight:600;font-family:var(--mono);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hm-stg-p{margin:12px 0 0;font-size:13px;color:var(--tx3);line-height:1.55}

/* ---------- raise a request ---------- */
.hm-cta{background:#14141c;border:1px solid #14141c;border-radius:14px;padding:20px}
.hm-cta-t{font-size:15px;font-weight:700;color:#fff;margin-bottom:7px}
.hm-cta-p{margin:0 0 16px;font-size:13.5px;color:#b9b9cf;line-height:1.55}
.hm-cta-b{width:100%;padding:12px;border-radius:9px;border:none;background:#fff;color:#111118;
  font-family:var(--font);font-size:14px;font-weight:700;cursor:pointer;min-height:44px}
.hm-cta-b:hover{background:#ececf4}

@media(max-width:768px){
  .hm-hero-stats{flex:1 1 100%;gap:24px}
  .hm-hero-t{padding:18px 20px}
  .hm-now{padding:14px 20px 18px}
  .hm-amt{font-size:23px}
}
