/* V4.2.36 — Client Summary (Configurator Phase B).
   Customer-facing share card: shape-aware overall size, modules, area, pitch, resolution and a
   two-number power/energy readout. Internal-only figures (BOM, spare %, fit-option deltas,
   procurement) never render here. */
/* V4.2.84 (feedback round 2): align-items:flex-start (was center) + an explicit top offset keeps the
   modal's own title/close button anchored just below the top edge of the window at all times, so a
   tall modal (the Prepare Client Summary checklist + pricing + prepared-by form) can never end up
   rendering with its header above the visible screen — it always starts at a fixed, reachable
   position and scrolls internally (overflow:auto below) for anything past the viewport height. The
   z-index is also raised well above the app's own highest modal layers (see q286-modal's
   2147483100 elsewhere in the app) so nothing in the configurator can ever paint over this. */
.cs436-backdrop{
  position:fixed;inset:0;background:rgba(4,18,22,.58);z-index:2147483200;
  display:flex;align-items:flex-start;justify-content:center;padding:28px 20px;overflow:auto
}
.cs436-modal{
  width:min(720px,100%);max-height:calc(100vh - 56px);overflow:auto;background:#fff;border-radius:16px;
  box-shadow:0 28px 80px rgba(0,0,0,.28);padding:0;z-index:2147483201;display:flex;flex-direction:column
}
.cs436-head{padding:20px 22px 12px;border-bottom:1px solid var(--line);display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.cs436-head h3{margin:0 0 4px;font-size:19px}
.cs436-head .sub{color:var(--muted);font-size:12px;margin:0}
.cs436-close{border:0;background:transparent;font-size:20px;cursor:pointer;color:var(--muted);line-height:1;padding:4px 6px}
.cs436-close:hover{color:var(--text)}
.cs436-card-wrap{padding:18px 22px}
.cs436-card{border:1px solid var(--line);border-radius:14px;padding:20px;background:#fff}
.cs436-shot{width:100%;border-radius:10px;overflow:hidden;background:#f2f6f7;margin-bottom:14px;min-height:120px;display:flex;align-items:center;justify-content:center}
.cs436-shot img{width:100%;display:block}
.cs436-shot-empty{padding:26px;color:var(--muted);font-size:12px;text-align:center}
.cs436-title{margin:0 0 12px;font-size:17px;color:var(--teal2)}
.cs436-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 18px;margin-bottom:6px}
.cs436-row{display:flex;flex-direction:column;gap:2px;padding:8px 0;border-bottom:1px dashed var(--line)}
.cs436-row span{font-size:11px;color:var(--muted);font-weight:700;text-transform:uppercase;letter-spacing:.02em}
.cs436-row b{font-size:14px;color:var(--text)}
.cs436-shape-table{margin-top:12px;border-top:1px solid var(--line);padding-top:10px}
.cs436-shape-head{font-size:12px;font-weight:800;color:var(--teal2);margin-bottom:6px;text-transform:uppercase;letter-spacing:.02em}
.cs436-energy{margin-top:14px;background:#f7fafb;border-radius:10px;padding:14px}
.cs436-disclaimer{font-size:11px;color:var(--muted);line-height:1.5;margin-top:14px}
.cs436-contact{font-size:12px;color:var(--text);margin-top:8px;font-weight:700}
/* V4.2.50 — the DIGIX logo image itself is a WHITE cutout made for <header>'s own dark teal gradient
   background; placed directly on this card's white background it rendered with zero contrast (fully
   loaded, correct size, just invisible). .cs436-logo-digix-chip reproduces that same dark backdrop
   here in miniature (the identical gradient <header> uses) so the white logo has the contrast it
   needs, instead of trying to make it work on plain white paper.
   V4.2.52 — a Super Admin's own uploaded logo now replaces the DIGIX mark rather than sitting next to
   it (see 018-v4236-client-summary.js), so .cs436-logo-custom no longer needs the left border/padding
   that used to separate it from a DIGIX logo shown alongside it. */
.cs436-logos{display:flex;align-items:center;gap:14px;margin-bottom:12px;flex-wrap:wrap}
.cs436-logo{max-height:36px;display:block}
.cs436-logo-digix-chip{display:inline-flex;align-items:center;padding:8px 12px;border-radius:8px;background:linear-gradient(135deg,#0d272d,#143d43)}
.cs436-actions{display:flex;flex-wrap:wrap;gap:9px;justify-content:flex-end;padding:14px 22px 20px;border-top:1px solid var(--line)}
.cs436-actions button{border-radius:9px;padding:10px 14px;font-weight:800;cursor:pointer;border:1px solid var(--line);background:#fff;color:var(--text)}
.cs436-actions .cs436-primary{background:var(--teal2);border-color:var(--teal2);color:#fff}
.cs436-actions button:hover{filter:brightness(1.06)}
.cs436-hint{font-size:11px;color:var(--muted);padding:0 22px 14px}
@media(max-width:560px){.cs436-grid{grid-template-columns:1fr}}

/* Super Admin "Configurator & Client Summary" field checklist: each row keeps the shared
   .sa431-row 4-column grid (number, label, up, down) intact — the on/off checkbox sits inside
   the label itself instead of adding a 5th grid column, which used to squeeze the name input
   down to a sliver. */
.sa436-field-row .sa436-field-label{display:flex!important;flex-direction:row!important;align-items:center;gap:10px;min-width:0}
.sa436-field-row .sa436-field-check{width:18px;height:18px;flex:0 0 auto}
.sa436-field-row .sa436-field-text{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.sa436-field-row .sa436-field-text input{width:100%}

/* V4.2.51 — "Who may share the Client Summary" reused the shared .sa431-list container class for its
   role checkboxes, but that class is flex-direction:column (built for the reorderable field list
   above it, where each row needs its own line for up/down buttons). The role checkboxes have no
   ordering and no reason to stack one-per-line; #sa436Roles overrides just that one instance back to
   a normal wrapping row, without touching .sa431-list itself (the field list above still needs to
   stay vertical). */
#sa436Roles.sa431-list{flex-direction:row;flex-wrap:wrap;column-gap:22px;row-gap:10px}

/* ===== V4.2.84 — Client Summary "Proposal Style" (Option B) card, Step-1 Prepare modal, and the
   History list. Uses the same DIGIX brand tokens (design-system.css) as the rest of the app so this
   still looks like part of one professional suite, not a bolted-on export. ===== */
.cs436-card{padding:0;overflow:hidden}
.cs436-headband{background:linear-gradient(135deg,#0d272d,#143d43);color:#fff;padding:22px 24px 18px;display:flex;flex-direction:column;gap:13px}
.cs436-headtop{display:flex;align-items:center;justify-content:space-between}
.cs436-brand{display:flex;align-items:center;gap:8px}
.cs436-brandmark-dot{width:18px;height:18px;border-radius:50%;background:#4266f0;flex:0 0 auto}
.cs436-brandmark-text{font-size:15px;font-weight:800;letter-spacing:-.01em}
.cs436-brandmark-custom{max-height:28px;display:block}
.cs436-brandmark-chip{display:inline-flex;align-items:center;background:#fff;border-radius:8px;padding:6px 10px}
.cs436-tentative-badge{font-size:9px;font-weight:800;color:#ffdf9e;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);border-radius:999px;padding:4px 10px;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}
.cs436-headtitle .cs436-h1{font-size:18px;font-weight:800;letter-spacing:-.01em}
.cs436-headtitle .cs436-h2{font-size:11.5px;color:#b8ccd0;margin-top:3px}
.cs436-chiprow{display:flex;gap:9px;flex-wrap:wrap}
.cs436-chip{background:rgba(255,255,255,.08);border-radius:8px;padding:6px 10px}
.cs436-chip-k{font-size:8px;color:#9fc1c6;font-weight:700;letter-spacing:.04em}
.cs436-chip-v{font-size:11.5px;font-weight:700;margin-top:1px}
.cs436-body{padding:20px 24px;display:flex;flex-direction:column;gap:18px}
.cs436-shot{width:100%;border-radius:10px;overflow:hidden;background:#f2f6f7;margin:0;min-height:120px;display:flex;align-items:center;justify-content:center}
.cs436-shot-empty-brand{padding:20px;opacity:.35}
.cs436-shot-empty-brand img{max-height:40px}
.cs436-section{display:flex;flex-direction:column;gap:10px}
.cs436-sectitle{font-size:10.5px;font-weight:800;color:var(--text);text-transform:uppercase;letter-spacing:.05em;border-bottom:2px solid var(--digix-brand-primary,#4266f0);display:inline-block;padding-bottom:4px;align-self:flex-start}
.cs436-specgrid{display:grid;grid-template-columns:1fr 1fr;gap:8px 18px}
.cs436-spec{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line);padding-bottom:6px}
.cs436-spec span{font-size:11px;color:var(--muted)}
.cs436-spec b{font-size:12px;color:var(--text);text-align:right}
.cs436-energygrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px}
.cs436-energybox{background:#f7fafb;border-radius:8px;padding:10px}
.cs436-energybox .k{font-size:9px;color:var(--muted);font-weight:700}
.cs436-energybox .v{font-size:13px;font-weight:700;color:var(--text);margin-top:2px}
.cs436-investbox{background:linear-gradient(135deg,#eef2ff,#f5f8fc);border:1px solid #d7e0fb;border-radius:10px;padding:15px 17px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.cs436-investtotal{font-size:24px;font-weight:800;color:var(--text)}
.cs436-investline{font-size:11px;color:var(--muted);margin-top:2px}
.cs436-tentative-pill{font-size:9px;font-weight:800;color:#a87320;background:#fff5df;border:1px solid #f0e0ad;border-radius:999px;padding:4px 11px;letter-spacing:.03em;white-space:nowrap}
.cs436-terms{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:6px}
.cs436-terms li{font-size:11px;color:var(--muted);line-height:1.5}
.cs436-footer{padding:14px 24px;background:#f7fafb;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.cs436-footer-prep{font-size:11px;color:var(--muted)}
.cs436-footer-web{font-size:10.5px;color:#9ba8ae}
@media(max-width:560px){.cs436-specgrid{grid-template-columns:1fr}.cs436-chiprow{gap:6px}}

/* ---- Step 1: Prepare Client Summary modal ---- */
.cs436-prepmodal{width:min(680px,100%)}
.cs436-prepbody{padding:18px 22px;display:flex;flex-direction:column;gap:18px}
.cs436-prepgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px 16px}
.cs436-prepgrid3{grid-template-columns:1fr 1fr 1fr}
.cs436-field{display:flex;flex-direction:column;gap:4px;font-size:11.5px;font-weight:700;color:var(--muted)}
.cs436-field input{font:inherit;font-weight:500;color:var(--text);padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:#fff}
.cs436-field input:disabled,.cs436-field input:read-only{background:#f5f8fc;color:var(--muted)}
.cs436-readonly-field input{cursor:not-allowed}
.cs436-prepsection{border-top:1px solid var(--line);padding-top:14px;display:flex;flex-direction:column;gap:10px}
.cs436-prepsection-title{font-size:11px;font-weight:800;color:var(--teal2);text-transform:uppercase;letter-spacing:.03em}
.cs436-checklist{display:grid;grid-template-columns:1fr 1fr;gap:8px 16px}
.cs436-check{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--text)}
.cs436-check input{width:16px;height:16px;accent-color:var(--digix-brand-primary,#4266f0)}
.cs436-pricingmode{display:flex;gap:18px;flex-wrap:wrap;margin-bottom:2px}
.cs436-radio{display:flex;align-items:center;gap:6px;font-size:12.5px;color:var(--text);font-weight:600}
.cs436-radio input{width:15px;height:15px;margin:0;flex:0 0 auto;accent-color:var(--digix-brand-primary,#4266f0)}
.cs436-price-live{font-size:13px;color:var(--text);padding-top:2px}
.cs436-price-live b{font-size:15px}
@media(max-width:560px){.cs436-prepgrid,.cs436-prepgrid3,.cs436-checklist{grid-template-columns:1fr}}

/* ---- History list ---- */
/* V4.2.84 (feedback round 2): a bigger modal (was 620px/60vh) and grouped-by-date rows with a
   collapsible header per date, instead of one flat list where the date was buried in each row. */
.cs436-histmodal{width:min(820px,100%)}
.cs436-histbody{padding:16px 22px 20px;display:flex;flex-direction:column;gap:12px;max-height:calc(100vh - 170px);overflow:auto}
.cs436-hist-loading,.cs436-hist-empty{color:var(--muted);font-size:12.5px;padding:18px 4px;text-align:center}
.cs436-hist-group{border:1px solid var(--line);border-radius:12px;overflow:hidden}
.cs436-hist-group-head{width:100%;display:flex;align-items:center;gap:10px;padding:11px 14px;border:0;background:#f7fafb;cursor:pointer;text-align:left}
.cs436-hist-group-date{font-size:13px;font-weight:800;color:var(--text)}
.cs436-hist-group-count{font-size:10.5px;font-weight:700;color:var(--muted);background:#eef1f2;border-radius:999px;padding:2px 8px}
.cs436-hist-group-chevron{margin-left:auto;color:var(--muted);transition:transform .15s ease}
.cs436-hist-group.collapsed .cs436-hist-group-chevron{transform:rotate(-90deg)}
.cs436-hist-group-body{display:flex;flex-direction:column;gap:8px;padding:10px}
.cs436-hist-group.collapsed .cs436-hist-group-body{display:none}
.cs436-hist-row{display:flex;align-items:center;gap:12px;padding:10px;border:1px solid var(--line);border-radius:10px}
.cs436-hist-thumb{width:56px;height:56px;border-radius:8px;overflow:hidden;background:#f2f6f7;flex:0 0 auto;display:flex;align-items:center;justify-content:center}
.cs436-hist-thumb img{width:100%;height:100%;object-fit:cover}
.cs436-hist-thumb-empty{font-size:8.5px;color:var(--muted);text-align:center;padding:4px}
.cs436-hist-info{flex:1;min-width:0}
.cs436-hist-client{font-size:13px;font-weight:700;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cs436-hist-meta{font-size:11px;color:var(--muted);margin-top:2px}
.cs436-hist-actions{display:flex;gap:8px;flex:0 0 auto}
.cs436-hist-actions button{border-radius:8px;padding:7px 11px;font-size:12px;font-weight:700;cursor:pointer;border:1px solid var(--line);background:#fff;color:var(--text)}
.cs436-hist-actions .cs436-hist-delete{color:#b64c54;border-color:#e3a29c}
