/* 12.10: stable work groups and legible operational information. */
.content:has(#view-verification:not(.hidden),#view-closed-clients:not(.hidden)){max-width:none;width:100%;padding:24px}
.commercial-station{grid-template-columns:290px minmax(0,1fr);gap:20px}
.commercial-client strong{font-size:15px}.commercial-client span,.commercial-client small{font-size:12px}
html .commercial-simple-sheet .lead-title-row h2{font-size:28px;line-height:1.25}
.commercial-simple-sheet #lead-top-facts{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:20px}
html .commercial-simple-sheet #lead-head-cpf{font-size:36px;line-height:1.3;letter-spacing:.025em;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--text)}
.commercial-simple-sheet #lead-head-city{font-size:18px;line-height:1.4}
.commercial-simple-sheet #lead-top-facts>div>span{font-size:13px;font-weight:650;color:var(--muted)}
.commercial-simple-sheet #lead-copy-cpf{font-size:14px;min-height:44px;margin-left:0}
.commercial-simple-sheet .lead-workspace-head{padding:24px!important}
.commercial-simple-sheet .commercial-phone strong{font-size:20px;line-height:1.4;font-variant-numeric:tabular-nums}
.commercial-simple-sheet .commercial-phone small{font-size:13px}
.commercial-simple-sheet .lead-primary-actions .btn{font-size:14px;min-height:44px}
.workplace-value{padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft);margin-bottom:20px}
.workplace-value-heading{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap;margin-bottom:8px}
.workplace-value-heading h3{font-size:18px;margin:0}.workplace-value-heading small{font-size:13px}
.workplace-value .qol-value-featured{border:0;border-left:3px solid var(--primary);padding:8px 12px;margin:0 0 14px;background:var(--surface)}
.workplace-value .qol-value-featured strong{font-size:28px;line-height:1.3}
.workplace-value-editor{display:grid;grid-template-columns:minmax(160px,1fr) minmax(150px,1fr) auto;gap:12px;align-items:end}
.workplace-value-editor label{font-size:14px;min-width:0}.workplace-value-editor input,.workplace-value-editor select{width:100%;min-height:44px;font-size:16px}
.workplace-value-editor .btn{min-height:44px;font-size:14px}
.workplace-value [role=status]:not(:empty){padding:10px 12px;border-radius:8px;background:var(--surface);color:var(--text)}
.workplace-value .commercial-context-actions{display:flex;flex-wrap:wrap;margin-bottom:0}.workplace-value [hidden]{display:none!important}
.workplace-value .hint{font-size:13px;margin:10px 0 0}
.workplace-value-readonly :is(.workplace-value-editor,[data-value-help]){display:none}
html .workplace-value [data-inline-save]:disabled{background:var(--surface);color:var(--muted);border-color:var(--line);opacity:1;cursor:default}
.sidebar{background:#132b23!important}.sidebar .nav-label{color:#b7c6c0;font-size:11px;letter-spacing:.06em}
html .logo-mark{background:#bcebcf;color:#132b23!important}
.sidebar .nav-item{color:#f2f6f4;font-size:14px;min-height:42px}.sidebar .nav-item:hover,.sidebar .nav-item.active{background:#2b5544;color:#fff}
.sidebar :is(.logo-copy small,.sidebar-user small,.qol-version){color:#b7c6c0}.sidebar .sidebar-user strong{color:#f2f6f4}
.workplace-nav-group:has(>.nav-item):not(:has(>.nav-item:not(.hidden):not([style*="display: none"]))) {display:none}
.city-owned-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px;margin:18px 0}
.city-owned-list article{border:1px solid var(--line);border-radius:12px;padding:20px;background:var(--surface);display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.city-owned-list article>strong{font-size:22px;width:100%}.city-owned-list article>small{font-size:14px;width:100%}
.city-owned-list article>[data-city-inventory]{width:100%;min-height:44px}.city-owned-list details{width:100%}
#view-cities>[hidden]{display:none!important}
.city-settings{border-top:1px solid var(--line);padding-top:16px;margin-top:20px}.city-settings summary{cursor:pointer;font-size:14px;font-weight:650}
.city-inventory-page{padding:22px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.city-inventory-page header{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.city-inventory-page header h2{font-size:26px;margin:8px 0}.city-inventory-page .city-inventory{margin-top:20px}
.city-inventory-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.city-inventory-tabs button[aria-pressed=true]{background:var(--primary);color:var(--on-primary);border-color:var(--primary)}
.city-inventory article{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:16px;border-bottom:1px solid var(--line);background:var(--surface);color:var(--text)}
.city-inventory article strong{font-size:16px;flex-basis:100%}.city-inventory article small{font-size:14px;flex:1}
.city-management{margin-top:24px}.city-management>summary{padding:16px;cursor:pointer;font-size:16px;font-weight:650}
.workplace-sound{padding:20px;margin:20px 0}.workplace-sound label{display:flex;align-items:center;gap:12px;font-size:16px;min-height:44px}.workplace-sound input{width:20px;height:20px}
html .receipt-forecast{border:1px solid var(--line);border-left:4px solid var(--primary);border-radius:10px;background:var(--surface-soft);color:var(--text);padding:14px;min-width:200px}
html .receipt-forecast>strong{display:block;font-size:17px;line-height:1.4;color:var(--text)}
.receipt-forecast .forecast-date{font-size:24px;font-weight:750;display:block;line-height:1.4;font-variant-numeric:tabular-nums;margin-top:4px}
.receipt-forecast[data-forecast=overdue]{border-left-color:var(--warning)}
.receipt-forecast small{font-size:12px;display:block;margin-top:6px}.receipt-forecast details{margin-top:12px}
.closed-forecast-cell{min-width:240px}.closed-update-cell{min-width:140px}.closed-update-cell small{font-size:12px}
/* Legacy surfaces and inline hardcoded colors must use the active semantic palette. */
html[data-theme=dark] :is(.callout,.mini-metrics>div,.empty,.toolbar,.filters-card,.lead-filter-panel,.lead-work-controls-slot,.seller-work-block,.seller-return-note,.seller-queue-row,.launch-card,.profile-card,.policy-profile-card,.policy-preview,.policy-panel,.qol-search-results,.qol-search-dialog,.registration-preview,.receipt-forecast,.commercial-extra-card,.city-owned-list article,.city-preferences-form,.city-inventory,.city-inventory article){background:var(--surface-soft);color:var(--text);border-color:var(--line)}
html[data-theme=dark] :is(.callout p,.callout strong,.callout small,.seller-work-block h3,.seller-access-options summary,.empty p,.empty strong,.table thead th,.pagination span,.toolbar small,.lead-filter-label,.verification-filter-caption,.lead-workspace-head p,.commercial-phone small,.notification-item p,.notification-item a,.policy-summary small,.launch-card p){color:var(--text)}
html[data-theme=dark] :is([style*="background:#fff"],[style*="background: #fff"],[style*="background:white"],[style*="background: white"]){background:var(--surface)!important;color:var(--text)!important}
html[data-theme=dark] :is([style*="color:#"],[style*="color: #"]){color:var(--text)!important}
html[data-theme=dark] .table :is(tr:hover,td),html[data-theme=dark] .city-management{background:var(--surface);color:var(--text)}
html[data-theme=dark] a:not(.btn):not(.nav-item){color:#a9e9cf}
html[data-theme=dark] option{color:var(--text);background:var(--surface)}
html[data-theme=dark] :is(.seller-return-card p,.reports-status,#report-status,.weekly-status,.policies-status,.policies-header p,.dialog-heading p,.filter-heading p,.review-hint,.field-label small,.client-sub,.table-footer,.empty-state,.drop-zone>span:last-child,.client-option span,.upload-feedback){color:var(--muted)}
html[data-theme=dark] :is(.text-button,.reports-status[data-kind=success],.policies-status[data-kind=success],.upload-feedback[data-kind=success]){color:var(--primary)}
html[data-theme=dark] :is(.policies-status[data-kind=error],.upload-feedback[data-kind=error],.reports-status[data-kind=error],.weekly-status[data-kind=error]){color:var(--danger)}
html[data-theme=dark] :is(.drop-zone,.upload-icon,.client-results,.client-option,.selected-client,.icon-button){background:var(--surface-soft);color:var(--text);border-color:var(--line)}
html[data-theme=dark] :is(.drop-zone strong,.client-option strong,.empty-state strong){color:var(--text)}
@container(max-width:740px){.workplace-value-editor{grid-template-columns:repeat(2,minmax(0,1fr))}.workplace-value-editor button{grid-column:1/-1}.commercial-simple-sheet #lead-top-facts{grid-template-columns:1fr}.commercial-simple-sheet #lead-head-cpf{font-size:32px}}
@media(max-width:800px){#view-verification:has(.commercial-station.has-selection)>.verification-page-head{display:none}#view-verification .verification-workspace:has(.commercial-station.has-selection)>:is(.verification-lot-head,.verification-personal-summary,.verification-filter-panel){display:none}}
@media(max-width:800px){.content:has(#view-verification:not(.hidden)){padding:14px}.commercial-station{display:block}.commercial-simple-sheet .lead-workspace-head{padding:18px!important}.workplace-value-editor{grid-template-columns:1fr}.workplace-value-editor button{grid-column:auto}.workplace-value{padding:14px}.city-inventory-page{padding:16px}}
@media(max-width:480px){html .commercial-simple-sheet #lead-head-cpf{font-size:28px;letter-spacing:.005em}.commercial-simple-sheet #lead-top-facts{grid-template-columns:1fr}.commercial-simple-sheet .lead-title-row h2{font-size:24px}.commercial-simple-sheet .commercial-phone strong{font-size:20px}
 #view-closed-clients .table{min-width:0}#view-closed-clients .table thead{display:none}#view-closed-clients .table tbody{display:block}#view-closed-clients .table tr{display:grid;gap:8px;padding:16px;border-bottom:2px solid var(--line)}#view-closed-clients .table td{display:block;padding:4px 0;border:0}#view-closed-clients .table td::before{content:attr(data-label);display:block;color:var(--muted);font-size:12px;font-weight:650}#view-closed-clients .closed-forecast-cell{min-width:0}}
@media print{.workplace-value-editor,.workplace-sound{display:none}html .receipt-forecast{background:white;color:black;border-color:#333}}
/* 12.11: quiet surfaces; strong color is reserved for commercial meaning. */
:root[data-theme=light]{--line:#e8eeea;--border:#e8eeea;--shadow-sm:0 2px 14px #17362b05;--shadow-md:0 8px 26px #17362b0c}
html [hidden]{display:none!important}
.lead-sheet-loading :is(#workplace-value,#lead-primary-actions,.commercial-contact-card){visibility:hidden}
html .btn.btn-primary{transition:border-color 150ms ease,box-shadow 150ms ease}
html .policies-page :is(.policies-header p,.dialog-heading p,.filter-heading p,.empty-state,.drop-zone>span:last-child,.client-sub,.field-label small,.client-option span,.table-footer,.review-hint){color:var(--muted)}
html .card,html .stat,html .lead-sheet-card,html .city-owned-list article,html .city-inventory-page{border-color:var(--line);box-shadow:0 2px 16px #17362b04}
html .workplace-value{border:0;background:#f7f9f7;padding:16px}
html .workplace-value .qol-value-featured{border:0;background:transparent;padding:4px 0}
html .lead-workspace-head,html .commercial-phone,html .lead-primary-actions,html .commercial-contact-card{border-color:var(--line);box-shadow:none}
html .commercial-phone{background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:12px 0}
html .city-inventory article{border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;background:transparent;padding:16px 0}
html .receipt-forecast{border:0;border-left:0;background:#f2f7f4;border-radius:8px;padding:10px 12px;min-width:165px;box-shadow:none}
html .receipt-forecast>strong{font-size:13px;font-weight:600}
html .receipt-forecast .forecast-date{font-size:16px;font-weight:650;margin-top:2px;line-height:1.4}
html .receipt-forecast small{font-size:11px;margin-top:4px}
html .receipt-forecast details{margin-top:6px}
html .closed-forecast-cell{min-width:195px}
.workplace-mode-controls{display:flex;align-items:center;gap:8px;margin:12px 0;flex-wrap:wrap}
.workplace-mode-controls small{font-size:12px;color:var(--muted);margin-left:auto}
.workplace-mode-controls [aria-pressed=true]{background:#edf5f0;color:#204d36;border-color:#dcebe1;font-weight:650}
.commercial-station[data-work-mode=list]{display:block}
.commercial-station[data-work-mode=list]>.commercial-detail{display:none}
.commercial-station[data-work-mode=list]>.commercial-list{display:block}
.commercial-station[data-work-mode=list] .verification-table-wrap{height:auto;min-height:180px;max-height:calc(100dvh - 330px);overflow:auto}
.commercial-station[data-work-mode=list] .table{width:100%;min-width:1060px;table-layout:auto}
.commercial-station[data-work-mode=list] .table th{background:#f6f8f6;font-size:12px;letter-spacing:0;text-transform:none;padding:12px}
.commercial-station[data-work-mode=list] .table td{padding:14px 12px;vertical-align:middle;border-bottom:1px solid #edf1ee;font-size:13px}
.workplace-list-cpf{display:block;font-size:21px;line-height:1.5;font-weight:650;white-space:nowrap;font-variant-numeric:tabular-nums;margin-top:3px}
.workplace-client-row td:first-child{min-width:195px}.workplace-client-row td:first-child>strong{font-size:15px}.workplace-client-row td:nth-child(2){min-width:220px}.workplace-client-row td:last-child{min-width:155px}
.workplace-row-actions{display:flex;gap:6px;flex-wrap:wrap;max-width:260px}.workplace-row-actions .btn{font-size:12px;min-height:36px;white-space:nowrap}
.workplace-value-badge{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:6px;background:#eef1ee;color:#526158;font-size:13px;font-weight:650;white-space:nowrap}
.workplace-value-badge::before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor}
.workplace-value-badge[data-value=available]{color:#66319c;background:#f1e9fc}
.workplace-value-badge[data-value=high]{color:#17683d;background:#e7f4eb}
.workplace-value-badge[data-value=none]{color:#a9323b;background:#fbe9eb}
.workplace-amount{display:block;font-size:14px;font-weight:650;margin-top:4px}
#view-verification .table tr[data-value=available]{background:#fcfaff}
#view-verification .table tr[data-value=high]{background:#f8fcf9}
#view-verification .table tr[data-value=none]{background:#fff9fa}
#view-verification .table tr[data-value]:hover{background:#f3f6f4}
html .qol-value[data-value=available],html .qol-value[data-value=available] strong{color:#66319c}
html .qol-value[data-value=high],html .qol-value[data-value=high] strong{color:#17683d}
html .qol-value[data-value=none],html .qol-value[data-value=none] strong{color:#a9323b}
.commercial-station[data-work-mode=individual] .commercial-client{height:auto;min-height:146px;padding:14px;gap:5px;border:0;border-bottom:1px solid var(--line);border-radius:0}
.commercial-station[data-work-mode=individual] .commercial-client.selected{box-shadow:none;background:#edf5f0}
.commercial-station[data-work-mode=individual] .commercial-client small{white-space:normal;font-size:11px;line-height:1.5}
.city-block-reason{flex-basis:100%;margin:0}.city-inventory article>div{min-width:130px}
@media(max-width:800px){.workplace-mode-controls small{width:100%;margin-left:0}.commercial-station[data-work-mode=list] .verification-table-wrap{max-height:calc(100dvh - 260px)}.commercial-station[data-work-mode=individual].has-selection>.commercial-list{display:none}
 #view-verification:has(.commercial-station[data-work-mode=individual].has-selection) .workplace-mode-controls,.app-shell:has(.commercial-station[data-work-mode=individual].has-selection) .qol-top-tools{display:none}
 .commercial-station[data-work-mode=list] .verification-table{display:table}.commercial-station[data-work-mode=list] .verification-table thead{display:table-header-group}.commercial-station[data-work-mode=list] .verification-table tbody{display:table-row-group}.commercial-station[data-work-mode=list] .verification-table tr{display:table-row;padding:0;border:0}.commercial-station[data-work-mode=list] .verification-table td{display:table-cell}.commercial-station[data-work-mode=list] .verification-table td::before{content:none}}
@media(max-width:480px){html .receipt-forecast .forecast-date{font-size:16px}#view-closed-clients .table tr{border-bottom:1px solid var(--line)}}

/* Room to work, without an extra contact page. */
#cancel-modal>.modal{width:min(1520px,96vw);max-width:96vw;max-height:96dvh}
#lead-modal:not(.commercial-docked) .lead-workspace-modal{width:min(1600px,96vw);max-width:96vw;height:94dvh;max-height:94dvh}
.commercial-station[data-work-mode=individual]{grid-template-columns:230px minmax(0,1fr)}
.commercial-contact-inline{width:100%;max-height:none;margin:12px 0;border:0;border-radius:12px;background:#f4f7f5;padding:16px}
.commercial-contact-inline .commercial-phones{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px}
[aria-invalid=true]{border-color:#bf3546!important;box-shadow:0 0 0 2px #bf35461c!important}
@media(min-width:1100px){#cancel-edit-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}#cancel-edit-form>fieldset,#cancel-attachments,#cancel-edit-form>.cancel-actions,#cancel-service-cost{grid-column:1/-1}#cancel-edit-form>fieldset{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}#cancel-edit-form>fieldset>.cancel-section:last-child{grid-column:1/-1}}
@media(max-width:800px){.commercial-station[data-work-mode=individual]{grid-template-columns:1fr}#cancel-modal>.modal{width:98vw;max-width:98vw;max-height:98dvh}.commercial-contact-inline .commercial-phones{display:block}}
.workplace-mode-controls #verification-next-lead{display:inline-flex;margin-left:auto}
