/* ============================================================
   Cre8ive client portal — v2 view styles
   Upload to /var/www/portal/portal-views.css
   Loaded AFTER the inline <style> in index.html.
   Bump the ?v= number in the <link> tag after each upload.
   ============================================================ */

/* ---------- invoices ---------- */
.inv-hero{display:flex;align-items:center;gap:18px;background:var(--sf);border:1px solid var(--bd);
  border-radius:14px;padding:22px 24px;margin-bottom:1.25rem}
.inv-hero-m{flex:1;min-width:0}
.inv-hero-l{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--tx3)}
.inv-hero-v{font-family:var(--mono);font-size:34px;font-weight:700;letter-spacing:-1.3px;margin-top:7px}
.inv-hero-t{font-size:18px;font-weight:700}
.inv-hero-s{font-size:13.5px;color:var(--tx3);margin-top:5px;line-height:1.5}
.inv-hero-over{border-color:#f2c9d4}
[data-theme="light"] .inv-hero-over{background:#fff7f9}
.inv-hero-over .inv-hero-l{color:var(--pink-t)}
.inv-hero-ok{border-color:#bfe0cf}
[data-theme="light"] .inv-hero-ok{background:#f3fbf6}
.inv-hero-ok .inv-hero-t{color:#0c5c3a}
[data-theme="dark"] .inv-hero-ok .inv-hero-t{color:#7fd6a8}
.inv-hero-ok .inv-hero-s{color:#235c44}
[data-theme="dark"] .inv-hero-ok .inv-hero-s{color:#9fd8bb}
.inv-hero-tick{width:42px;height:42px;border-radius:999px;background:#dcf0e5;color:#0f7a4d;
  display:flex;align-items:center;justify-content:center;flex:0 0 42px}
.inv-hero-tick svg{width:21px;height:21px}
.inv-tv-sm{font-size:19px;letter-spacing:-.4px;font-family:var(--font)}
.iv-hd{display:flex;align-items:center;gap:16px;padding:13px 20px;border-bottom:1px solid var(--bd);
  background:var(--sf2);font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--tx3)}
.iv-row{display:flex;align-items:center;gap:16px;padding:15px 20px;border-bottom:1px solid var(--bd)}
.iv-row:last-child{border-bottom:none}
.iv-row-paid{opacity:.82}
[data-theme="light"] .iv-row-over{background:#fff7f9}
.iv-c-no{width:92px;flex-shrink:0;font-family:var(--mono);font-size:13px;font-weight:600}
.iv-c-for{flex:1;min-width:120px;font-size:14px;font-weight:600}
.iv-c-d{width:74px;flex-shrink:0;font-size:13px;color:var(--tx3)}
.iv-c-amt{width:96px;flex-shrink:0;text-align:right;font-family:var(--mono);font-size:14px;font-weight:700}
.iv-c-st{width:84px;flex-shrink:0;text-align:right}
.iv-c-dl{width:40px;flex-shrink:0;text-align:right}
.iv-dl{padding:8px;min-height:36px}
.iv-dl svg{width:15px;height:15px}

/* ---------- services ---------- */
.sv-row{display:flex;align-items:center;gap:20px;padding:17px 20px;border-bottom:1px solid var(--bd);flex-wrap:wrap}
.sv-row:last-child{border-bottom:none}
.sv-c-n{flex:1 1 260px;min-width:0}
.sv-n{display:block;font-size:15px;font-weight:700}
.sv-s{display:block;font-size:13px;color:var(--tx3);margin-top:4px}
.sv-c-r,.sv-c-p{flex:0 0 auto}
.sv-v{display:block;font-size:14px;font-weight:600;margin-top:4px}
.sv-mono{font-family:var(--mono);font-size:15px;font-weight:700}
.sv-c-b,.sv-c-s{flex:0 0 auto}
.b-one_off{background:#f0e6ff;color:#5b2d9e;border:1px solid #ddc9f7}
[data-theme="dark"] .b-one_off{background:#b06bff18;color:#c79bff;border-color:#b06bff40}
.b-recurring_annual{background:#e7f2fa;color:#0170b9;border:1px solid #cfe4f3}
.b-recurring_monthly{background:#e4f4ec;color:#0f7a4d;border:1px solid #bfe0cf}

/* ---------- websites ---------- */
.wsites{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px;margin-bottom:1.25rem}
.wsite{background:var(--sf);border:1px solid var(--bd);border-radius:14px;padding:20px 22px}
.wsite-hd{display:flex;align-items:center;gap:11px;margin-bottom:16px}
.wsite-dot{width:9px;height:9px;border-radius:999px;background:#0f7a4d;flex:0 0 9px}
.wsite-d{flex:1;min-width:0;font-size:16px;font-weight:700;font-family:var(--mono);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wsite-v{padding:7px 11px;min-height:36px;text-decoration:none}
.wsite-b{display:flex;gap:26px;flex-wrap:wrap}
.wsite-m{flex:1 1 130px;min-width:0}
.wsite-v2{font-family:var(--mono);font-size:17px;font-weight:700;margin-top:5px}
.wsite-v2.warn{color:#8a5a00}
.wsite-v2.crit{color:var(--pink-t)}
.wsite-s{font-size:12px;color:var(--tx3);margin-top:4px}
.wmeter{height:6px;border-radius:999px;background:#e6e6ef;overflow:hidden;margin-top:7px}
[data-theme="dark"] .wmeter{background:#2a2a38}
.wmeter span{display:block;height:100%;background:#0f7a4d}
.wcare{display:flex;flex-wrap:wrap;gap:24px;padding:18px 20px}
.wcare-i{flex:1 1 210px;min-width:0;display:flex;gap:11px;align-items:flex-start}
.wcare-i svg{width:18px;height:18px;flex:0 0 18px;margin-top:2px;color:#0f7a4d}
.wcare-t{font-size:14px;font-weight:600}
.wcare-s{font-size:12.5px;color:var(--tx3);margin-top:2px}

/* The sidebar takes 252px, so a table has roughly 300px less room than the
   viewport suggests. These stack well before the phone breakpoint. */
@media(max-width:1024px){
  .iv-hd,.tk-hd{display:none}
  .iv-row{flex-wrap:wrap;gap:8px;padding:14px 16px}
  .iv-c-for{flex:1 1 100%;order:1;min-width:0}
  .iv-c-no{order:2;width:auto}
  .iv-c-d{order:3;width:auto}
  .iv-c-amt{order:4;width:auto;margin-left:auto}
  .iv-c-st{order:5;width:auto;text-align:left}
  .iv-c-dl{order:6;width:auto}
  .tk-row{flex-wrap:wrap;gap:8px;padding:14px 16px}
  .tk-c-task{flex:1 1 100%}
  .tk-c-st{width:auto}
  .tk-c-due{width:auto;margin-left:auto}
  .tk-c-up{display:none}
  .sv-row{gap:12px}
  .sv-c-n{flex:1 1 100%}
}
@media(max-width:768px){
  .inv-hero-v{font-size:26px}
  .inv-hero{padding:18px 20px;gap:14px}
  .wsites{grid-template-columns:1fr}
}
