:root{--bg:#f3f2ee;--blue:#343436;--light-blue:#f0efec;--yellow:#ffd326;--ink:#242426;--muted:#625e57;--orange:#f36d21}
.top{background:#fff;color:var(--ink);padding:0;border-bottom:1px solid var(--line)}
.top .shell{padding:12px 0;gap:24px;min-height:118px}.logo-window{display:block;overflow:hidden;flex-shrink:0}
.logo-window img{display:block;width:100%;height:auto}.brand-profer{width:220px;height:95px}.brand-profer img{transform:translateY(-14px)}
.brand-stihl{margin-left:auto;width:128px;height:57px;border-radius:5px}.brand-stihl img{transform:translateY(-14px)}
.brand-caption{display:flex;flex-direction:column;border-left:1px solid var(--line);padding-left:24px}.brand-caption strong{font-size:18px}.brand-caption span{font-size:12px;color:var(--muted);margin-top:3px}
.test-strip{padding:8px 0;font-size:11px;color:#706d66;letter-spacing:.03em}.tabs{border-bottom:1px solid var(--line);padding:5px 0 13px;margin:0 0 25px}.tab{border:0;border-radius:7px;padding:11px 18px;background:transparent;color:#65615b}.tab[aria-selected=true]{background:#232426;color:white;box-shadow:none}
.workspace-title{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:25px 0 18px}.workspace-title h1{font-size:28px;line-height:1.2;margin:6px 0}.workspace-title p{margin:0;color:var(--muted);font-size:13px}.eyebrow{font-size:10px;letter-spacing:.16em;font-weight:800;color:#965b00}
.access-section>.panel{padding:12px 18px;margin-bottom:18px;background:#faf9f6;box-shadow:none}.access-section summary{cursor:pointer;font-size:13px;font-weight:700}.access-section details[open]{padding:18px}.access-section textarea{min-height:105px}.access-section .field{margin:12px 0}
.grid{grid-template-columns:minmax(0,1fr) 310px;gap:22px}.panel,.summary{border-radius:14px;box-shadow:0 4px 20px #1a1e2505}.panel h2,.summary h2{font-size:19px}.panel{padding:26px}.summary{top:20px;height:max-content;padding:22px;background:#fff;border-top:3px solid var(--yellow)}.summary .totals{gap:8px}.summary .price-box{padding:12px;box-shadow:none}.summary .price-box strong{font-size:22px}
.btn{border-radius:7px;box-shadow:none;padding:11px 16px;font-size:13px}.btn.blue{background:#fff;border:1px solid #d4d1c8;color:#2b2b2b}.btn.yellow{background:var(--yellow);color:#171717;border-color:var(--yellow)}.btn:hover{filter:brightness(.97)}.divider-title{font-size:12px;letter-spacing:.03em;border-bottom:1px solid #ece9e0;padding-bottom:9px;margin-top:26px}
input,select,textarea{border-radius:7px!important;border-color:#d9d6ce!important}label{font-size:12px;font-weight:650}.field{margin-bottom:12px}.hint{font-size:12px}.upload{background:#f8f7f3;border:1px dashed #d9d3c4;border-radius:9px;padding:16px}.uploadimg{max-height:320px;object-fit:contain;object-position:left}.document-tools,.optional-fields{border:1px solid var(--line);border-radius:8px;padding:12px 14px;margin:20px 0}.document-tools summary,.optional-fields summary{font-size:13px;font-weight:700;cursor:pointer}.document-tools small,.optional-fields small{font-size:11px;font-weight:400;color:#706d66}.document-tools[open]>summary,.optional-fields[open]>summary{margin-bottom:16px}.optional-fields{background:#faf9f6}
#ocrText{min-height:180px;margin-bottom:14px}#ocrReview{margin-top:18px;border-top:1px solid var(--line);padding-top:18px}.ocr-row{display:grid;grid-template-columns:20px 1fr;gap:9px;padding:10px 0;border-bottom:1px solid #ece9df}.ocr-row input{width:16px;margin-top:4px}.ocr-row label{font-weight:400;overflow-wrap:anywhere}.ocr-row b{display:block;font-size:12px;margin-bottom:3px}#ocrSuggestions{margin-bottom:16px}#ocrStatus{overflow-wrap:anywhere}
.client{max-width:840px;margin:0 auto 60px}.client-intro{padding:25px 0 24px}.client-intro h1{font-size:clamp(32px,5vw,48px);line-height:1.12;letter-spacing:-.04em;margin:12px 0}.client-intro p{color:#6a655a;margin:0;font-size:15px}.clientbox{border-radius:18px;border:1px solid #e4dfd3;box-shadow:0 14px 40px #19160608;padding:32px;background:#fff}.clienthead{border-bottom:1px solid #eee9dc;padding-bottom:16px}.clienthead b{letter-spacing:.12em}.clienthead .subtitle{font-size:11px}.clientbox>h2{font-size:26px;margin:25px 0 7px}.clientbox>.subtitle{font-size:12px}.client-steps{list-style:none;padding:0;display:flex;gap:8px;margin:20px 0;counter-reset:steps}.client-steps li{flex:1;background:#f7f5ee;border-radius:7px;padding:9px;font-size:11px;color:#665f50;counter-increment:steps}.client-steps li::before{content:counter(steps) ' · ';color:#7d5300;font-weight:800}.service-card{margin:20px 0;border:1px solid #eee8dc;border-radius:9px;padding:16px;background:#fdfcf9}.service-card summary{font-weight:750;cursor:pointer;font-size:14px}.service-card dl{margin:16px 0}.service-card dt{font-size:11px;color:#726a5c;margin-top:13px}.service-card dd{font-size:14px;margin:2px 0 0;white-space:pre-wrap}.client-part{display:flex;justify-content:space-between;gap:20px;font-size:12px;border-top:1px solid #ede8dd;padding:9px 0}.client-part span{overflow-wrap:anywhere}
.client .price-box{border-radius:10px;background:#f9f7f0;border-color:#ece6d7}.client .price-box strong{font-size:29px}.decision{background:#fff;border-top:1px solid #ebe7dd;padding-top:24px;margin-top:24px}.choice{border:1px solid #e4dfd5;border-radius:9px;background:#fff;margin:10px 0;padding:15px}.choice:has(input:checked){border-color:#c89d00;background:#fffbee}.choice small{font-size:12px;line-height:1.5}.payment-accordion{border-radius:9px;box-shadow:none}.payment-accordion summary{background:#f7f5ef;padding:14px}.client-total{background:#242426;color:#fff;border-radius:12px;padding:20px;margin-top:18px}.client-total .kv{border-color:#ffffff24}.client-total .small-muted{color:#d8d2c5}.client-total .moneyline{border-color:#ffffff40}.client-total .moneyline strong{color:var(--yellow);font-size:30px}.payment-help{font-size:12px;color:#71695d;background:#f6f3ec;padding:12px;border-radius:7px;margin-top:24px}.footer{font-size:11px;line-height:1.7;color:#726c60;border-top:1px solid var(--line);margin-top:30px;background:#efeee8}
.client-mode .tabs,.client-mode .brand-caption{display:none}.client-mode #clientLookup{margin-top:4px}.client-mode #secureAccess{display:none}
#deliveryPanel{border-top:1px solid var(--line);padding-top:16px;margin-top:18px}#deliveryPanel h3{font-size:14px}#deliveryPanel textarea{font-size:12px;min-height:155px}#deliveryPanel label{display:none}#shareStatus{font-size:11px;line-height:1.5}
.summary .price-box.standard{background:#f8f6f0}
dialog{width:min(1440px,96vw);height:min(94vh,1100px);border:1px solid #d9d3c4;border-radius:14px;padding:0;background:#f7f5ef;color:#242426}dialog::backdrop{background:#161719b8}.transcription-bar{display:flex;justify-content:space-between;align-items:center;padding:18px 22px;border-bottom:1px solid var(--line);background:#fff}.transcription-bar h2{margin:3px 0;font-size:21px}.transcription-layout{display:grid;grid-template-columns:1fr 1fr;gap:22px;padding:20px;height:calc(100% - 90px)}.paper-side,.typing-side{min-width:0;overflow:auto}.paper-controls{display:flex;align-items:center;gap:9px;margin-bottom:12px}.paper-viewport{height:calc(100% - 105px);min-height:330px;overflow:auto;background:#dfdcd3;border:1px solid #d4ccba;border-radius:8px}.paper-viewport img{display:block;width:100%;max-width:none;transform-origin:center center}.typing-side{padding-right:8px}.transcription-identity,.paper-row-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.paper-row{background:#fff;border:1px solid #ded8ca;border-radius:9px;padding:14px;margin:12px 0}.paper-row-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;font-size:13px}.paper-row-fields .wide{grid-column:1/-1}.paper-row-fields input,.paper-row-fields select{margin-top:4px;width:100%;font-size:13px;padding:8px}.paper-row-checks{display:flex;gap:16px;flex-wrap:wrap;padding-top:12px}.paper-row-checks label{font-weight:500;font-size:12px}.paper-row-checks input{width:auto}.paper-totals{display:flex;gap:14px;flex-wrap:wrap;border-top:2px solid #ffd326;padding:14px 0;margin-top:18px;font-size:12px}.paper-totals b{display:block;font-size:19px}.ocr-options{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px}.ocr-options select{width:auto;max-width:100%;font-size:12px}.ocr-options input{width:auto}.part-qty{max-width:75px}.part-row:has(.part-qty){grid-template-columns:46px 2fr 1fr 75px 110px 36px}
@media(max-width:850px){.transcription-layout{grid-template-columns:1fr;height:auto}.paper-viewport{height:360px}.typing-side{overflow:visible}.transcription-bar{position:sticky;top:0;z-index:2}.part-row:has(.part-qty){grid-template-columns:1fr 1fr}.part-row .part-tag{grid-column:1/-1}}
@media(max-width:800px){.grid{grid-template-columns:1fr}.summary{position:static}.workspace-title{display:block}.workspace-title p{margin-top:10px}.top .shell{padding:12px 0;min-height:95px;gap:10px}.brand-caption{display:none}.brand-profer{width:180px;height:76px}.brand-profer img{transform:translateY(-12px)}.brand-stihl{width:98px;height:44px}.brand-stihl img{transform:translateY(-11px)}.clientbox{padding:20px}.client-steps{gap:5px}.client-steps li{font-size:10px;padding:8px}.client .payment-cols{grid-template-columns:1fr}.panel{padding:19px}.client-intro{padding-top:10px}.test-strip{font-size:10px}.parts-table .part-row{min-width:0}.clienthead{gap:10px}.clienthead .status{font-size:10px}}

.edit-lock{padding:10px 14px;border:1px solid #d3a83f;border-radius:10px;background:#fff7e4;color:#6f5415;font-weight:600;} input:disabled,textarea:disabled,select:disabled,button:disabled{opacity:.62;cursor:not-allowed;}

/* LAB03 — Painel Operacional. Respostas e fichas preservadas fora do cadastro. */
.office-nav{display:flex;align-items:center;gap:10px;margin:0 0 18px;border-bottom:2px solid #ddd9cf;padding-bottom:10px;flex-wrap:wrap}
.office-nav button{background:#fff;border:1px solid #e1dccf;border-radius:8px;font-weight:800;padding:13px 19px;cursor:pointer;color:#333}
.office-nav .office-nav-active{background:#262626;color:#fff;border-color:#262626;box-shadow:inset 0 -3px var(--yellow)}
.pending-dot{display:inline-block;width:8px;height:8px;background:#ed722e;border-radius:50%;margin-left:6px}
#operationalWorkspace{padding:0 0 28px}.operational-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:16px 0 22px}.operational-heading h2{font-size:28px;margin:5px 0}.operational-heading p{font-size:13px;color:#5d5952;max-width:610px;margin:0}.panel-protected{background:#fff9e8;border:1px solid #ddc577}.status-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:12px 0 18px}.status-tile{padding:19px;background:white;border:1px solid #e6e0d5;border-radius:12px;border-top:3px solid var(--yellow)}.status-tile span{display:block;font-size:12px;color:#655f53}.status-tile strong{display:block;font-size:29px;margin-top:4px;font-variant-numeric:tabular-nums;color:#242426}.status-tile:nth-child(3){border-top-color:#32835a}.status-tile:nth-child(4){border-top-color:#bc5547}
.operational-list{padding:22px}.operational-tools{display:grid;grid-template-columns:1fr 230px;gap:15px;align-items:end}.operational-tools .field{margin:0}.op-table-wrap{overflow:auto;border:1px solid #e4dfd5;border-radius:9px;margin-top:15px}.op-table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}.op-table th{font-size:11px;letter-spacing:.04em;text-transform:uppercase;background:#f6f3ec;color:#5f584c;padding:13px 10px;white-space:nowrap}.op-table td{padding:14px 10px;border-top:1px solid #e9e4da;vertical-align:middle}.op-table td:nth-child(2){min-width:180px}.op-table td strong{font-weight:800}.op-table td small{display:block;color:#77716a;margin-top:3px}.op-badge{display:inline-block;border-radius:8px;padding:7px 9px;font-size:11px;font-weight:800;white-space:nowrap}.op-badge.pending{background:#fff3d3;color:#7c5415}.op-badge.approved{background:#e3f5e8;color:#1b6738}.op-badge.rejected{background:#fbe7e3;color:#923c35}.op-pages{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-top:16px;flex-wrap:wrap}.op-details{margin-top:20px;border-left:4px solid var(--yellow)}.op-detail-head{display:flex;justify-content:space-between;gap:20px;align-items:start}.op-detail-head h3{font-size:23px;margin:7px 0}.op-detail-content{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:15px 0}.op-detail-content article{background:#f8f6f1;border-radius:8px;padding:13px;min-width:0}.op-detail-content article.wide{grid-column:1/-1}.op-detail-content article small{font-size:11px;display:block;color:#686056;margin-bottom:5px}.op-detail-content article p{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}.op-detail-content article strong{font-size:14px}.op-table .op-empty{text-align:center;padding:28px;color:#6f6b64}
@media(max-width:800px){.status-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.operational-tools{grid-template-columns:1fr}.op-detail-content{grid-template-columns:1fr}.op-detail-content article.wide{grid-column:auto}.operational-heading{display:block}.operational-heading button{margin-top:12px}}

/* LAB04 — ações de acesso e decisão assistida, fora do formulário de cadastro */
.op-activity{background:#fff;border:1px solid #e1dace;border-radius:12px;padding:20px;margin:18px 0}
.op-activity h4{font-size:17px;margin:0 0 8px;color:#262626}
.op-activity p.hint{line-height:1.6;margin-bottom:12px}
.op-activity label{display:block;margin:10px 0 5px}
.op-activity textarea{width:100%;resize:vertical;min-height:95px;white-space:pre-wrap;font-family:inherit}
.op-activity .actions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.op-activity .check{display:flex;align-items:flex-start;gap:8px}.op-activity .check input{width:auto;margin-top:4px}
.op-assist{border-left:4px solid #e6a300}.op-access{border-left:4px solid #4c7383}

/* LAB06 CORREÇÃO 02 — retorno visual específico para + Novo orçamento */
#tabCadastro{transition:transform .16s ease,box-shadow .16s ease,background-color .16s ease;}
#tabCadastro:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 3px 0 #e3b200,0 6px 12px rgba(0,0,0,.08);}
#tabCadastro:active:not(:disabled){transform:translateY(0);box-shadow:inset 0 -2px #f0c400;}
#tabCadastro:focus-visible{outline:3px solid #f4ae00;outline-offset:3px;}
@media(prefers-reduced-motion:reduce){#tabCadastro{transition:none;}#tabCadastro:hover:not(:disabled){transform:none;}}

/* V07 — Alertas na mesma linha da navegação, à direita do Painel. */
.nav-and-alerts{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border-bottom:2px solid #ddd9cf;margin-bottom:18px}
.nav-and-alerts .office-nav{margin:0;border:0;padding-bottom:10px;flex:0 1 auto}
.alert-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;margin-left:auto;padding-bottom:10px;flex-wrap:wrap}
.alert-button,.alert-sound{border:1px solid #d9d2c7;border-radius:9px;background:#fff;padding:10px 12px;color:#2a2925;font-weight:700;cursor:pointer;font-size:12px;white-space:nowrap}
.alert-button span{display:inline-block;min-width:18px;border-radius:20px;background:#f1eee6;padding:2px 5px;margin-left:4px;font-variant-numeric:tabular-nums}
.alert-button.alert-urgent{border-color:#dd9760;background:#fff4e9;color:#8a461c}
.alert-sound[aria-pressed="true"]{background:#e7f4e9;border-color:#7caa85}
.alert-button:focus-visible,.alert-sound:focus-visible{outline:3px solid #e8b62c;outline-offset:2px}
.alert-center{margin-bottom:18px;background:#fffaf1;border-left:4px solid #e0a434}
.alert-line,.tech-line{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #e6dfd2;flex-wrap:wrap}
.master-panel{margin:24px 0;border-top:4px solid #d6a522}
.master-panel input{max-width:320px}
.metric-bars{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.metric-month{padding:14px;background:#f8f6f1;border-radius:12px}
.metric-month p{margin:6px 0 0;font-size:12px}
.metric-track{height:14px;border-radius:8px;background:#e5e1d9;margin:9px 0;overflow:hidden}
.metric-fill{background:#2c8570;height:100%;min-width:0;border-radius:8px}
.pickup-control input{min-width:160px}
.recycle-choice{border:1px solid #d9cfb8;padding:12px;border-radius:10px;margin:16px 0}
.recycle-choice legend{font-weight:800}
.recycle-term{border-left:4px solid #c6982a;padding:10px 14px;background:#fff7de;font-size:12px;line-height:1.5}
.recycle-term .check{display:flex;align-items:flex-start;gap:8px}
@media(max-width:960px){.nav-and-alerts{align-items:stretch}.nav-and-alerts .office-nav{width:100%}.alert-actions{justify-content:flex-start;margin-left:0}.metric-bars{grid-template-columns:1fr}}

/* V07 Correcao 05: cabeçalho fixo visível com logotipos, sem bloquear os demais controles. */
.top{position:sticky;top:0;z-index:100;box-shadow:0 2px 8px #26262612;}
html{scroll-padding-top:135px;}
#opAssistSection,#masterPanel,.op-details{scroll-margin-top:140px;}
.op-row-actions{min-width:220px;white-space:normal;}
.op-row-actions .btn{margin:3px;white-space:nowrap;}
.pickup-done{display:inline-block;color:#26764c;font-size:11px;font-weight:700;margin-left:6px;}
.op-badge.recycle-status{background:#e2f1e5;color:#266d4b;}
/* Barras verticais: cor da marca; o vermelho recusado desce da linha zero. */
.metric-bars{grid-template-columns:1fr 1fr;gap:16px;}
.metric-month-vertical{padding:20px 16px;}
.pipeline-chart{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:12px;}
.pipeline-column{display:flex;align-items:center;flex-direction:column;gap:5px;min-width:0;}
.pipeline-plot{height:186px;width:100%;position:relative;border-bottom:1px solid #bcb4a7;background:repeating-linear-gradient(to top,#eeeae2 0,#eeeae2 1px,transparent 1px,transparent 44px);}
.pipeline-bar{width:58%;max-width:58px;position:absolute;left:50%;bottom:57px;transform:translateX(-50%);border-radius:5px 5px 0 0;min-height:0;box-shadow:inset 0 0 0 1px #0001;}
.pipeline-plot:before{content:'';position:absolute;left:0;right:0;bottom:57px;border-top:2px solid #b5ada0;}
.pipeline-bar.negative{top:calc(100% - 57px);bottom:auto;border-radius:0 0 5px 5px;}
.pipeline-amount{font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap;}
.pipeline-label{font-weight:650;text-align:center;font-size:11px;min-height:24px;}
.pipeline-column small{font-size:10px;color:#766e63;}
.pipeline-receipts{padding-top:12px;border-top:1px solid #e0dacf;margin-top:16px!important;font-size:12px!important;}
@media(max-width:840px){.metric-bars{grid-template-columns:1fr}.top .shell{min-height:80px}html{scroll-padding-top:100px}}
@media(max-width:460px){.pipeline-chart{gap:3px}.pipeline-amount{font-size:10px}.pipeline-label{font-size:10px}.op-row-actions{min-width:185px}}

/* V07 Correcao 06: valor unitario e subtotal por quantidade com contraste acessivel. */
.part-line-total{display:block;font-size:12px;font-weight:750;color:#715000;margin-top:6px;min-height:18px;white-space:normal}

/* V07 Correção 07: autorização manual abre o lançamento sem desviar para a busca. */
.manual-decision-panel{border-left:4px solid #e0a434;margin:0 0 20px;background:#fffdf7;scroll-margin-top:140px;}
.manual-os-row{display:flex;align-items:end;gap:12px;flex-wrap:wrap;}
.manual-os-row .field{flex:1 1 190px;max-width:360px;}
.manual-os-row .btn{margin-bottom:0;}
.manual-target-info{padding:12px 14px;border:1px solid #ded7ca;border-radius:10px;background:#f7f5ee;font-size:13px;line-height:1.5;}
.manual-decision-panel textarea{width:100%;min-height:92px;}
.manual-decision-panel .check{display:flex;gap:9px;align-items:flex-start;margin:12px 0;}
.manual-decision-panel .check input{width:auto;margin-top:4px;}
.manual-decision-panel .actions{display:flex;gap:12px;margin:12px 0;}
.manual-decision-panel .two{margin-top:12px;}
@media(max-width:700px){.manual-decision-panel .two{grid-template-columns:1fr;}.manual-os-row .field{max-width:none;}}

/* V07 C08 — barra de ações em grupos e preferências acessíveis. */
.office-toolbar{
 display:flex;align-items:stretch;justify-content:space-between;gap:10px;
 margin:0 0 18px;padding:13px 14px;border:1px solid #e4ded1;
 border-bottom:1px solid #e4ded1;border-radius:14px;background:#fff;
 box-shadow:0 7px 24px #1019260a;
}
.toolbar-group{min-width:0;display:flex;flex-direction:column;gap:8px;padding:0 10px 0 0;position:relative}
.toolbar-group+.toolbar-group{border-left:1px solid var(--line);padding-left:14px}
.toolbar-group:last-child{padding-right:0}
.toolbar-heading{font-size:10px;line-height:1.2;font-weight:850;letter-spacing:.1em;text-transform:uppercase;color:#706c65;white-space:nowrap}
.toolbar-buttons{display:flex;gap:7px;align-items:stretch;flex-wrap:wrap;min-height:44px}
.office-toolbar .office-nav{display:flex;flex:0 0 auto;width:auto;margin:0;padding:0;border:0}
.office-toolbar .office-nav button,.office-toolbar .alert-button,.portal-settings>summary{
 display:inline-flex;justify-content:center;align-items:center;gap:7px;min-height:44px;
 padding:10px 12px;border:1px solid #ded9d0;border-radius:9px;
 background:#faf9f6;color:#292a2d;font:750 12px/1.25 system-ui,-apple-system,'Segoe UI',sans-serif;
 white-space:nowrap;cursor:pointer;box-shadow:none;
}
.office-toolbar .office-nav .office-nav-active{background:#292d32;color:#fff;border-color:#292d32;box-shadow:inset 0 -3px var(--yellow)}
.office-toolbar .office-nav button:hover:not(:disabled),.office-toolbar .alert-button:hover:not(:disabled),.portal-settings>summary:hover{border-color:#bdac80;filter:brightness(.985)}
.office-toolbar .master-shortcut{border-color:#dec479;background:#fff8dd;font-weight:800}
.office-toolbar .master-shortcut[aria-expanded="true"]{box-shadow:inset 0 -3px #e8ad00;border-color:#ca9d28}
.toolbar-symbol{font-size:19px;line-height:.7}
.office-toolbar .alert-actions{padding:0;margin:0;justify-content:flex-start;align-items:stretch}
.office-toolbar .alert-button>span:not([aria-hidden]){display:inline-flex;justify-content:center;align-items:center;min-width:22px;border-radius:6px;background:#ede9e1;padding:4px 5px;font-weight:850}
.office-toolbar .alert-button.alert-urgent{background:#fff0e4;border-color:#e3a77b;color:#8b4016}
.toolbar-preferences{z-index:30}
.portal-settings{position:relative;min-width:0}
.portal-settings>summary{list-style:none;user-select:none;min-width:142px}
.portal-settings>summary::-webkit-details-marker{display:none}
.portal-settings[open]>summary{border-color:#cfa41d;background:#fff8d9}
.settings-gear{flex:none}
.settings-chevron{margin-left:auto;color:#847763;font-size:16px}
.settings-dropdown{position:absolute;z-index:35;right:0;top:calc(100% + 9px);width:280px;max-width:calc(100vw - 28px);padding:16px;background:#fff;border:1px solid #d9d4c9;border-radius:13px;box-shadow:0 18px 46px #11182732;color:#242426}
.settings-dropdown>strong{font-size:14px;display:block}
.settings-dropdown>p{color:#716b63;font-size:12px;margin:4px 0 12px}
.settings-option{display:flex;align-items:center;justify-content:space-between;gap:11px;margin:0;padding:12px 0;border-top:1px solid #e9e5dd;cursor:pointer;font-weight:500}
.settings-option-text{flex:1;min-width:0}
.settings-option b,.settings-option small{display:block}
.settings-option b{font-size:13px}
.settings-option small{font-size:11px;color:#777168;margin-top:3px;font-weight:450;line-height:1.4}
.settings-option input[type=checkbox]{appearance:none;position:relative;flex:none;width:38px;height:22px;margin:0;border:1px solid #b8b9ba;background:#d9dcdf;border-radius:20px;transition:background-color .15s}
.settings-option input[type=checkbox]:before{content:'';position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003;transition:transform .15s}
.settings-option input[type=checkbox]:checked{background:#2f7557;border-color:#2f7557}
.settings-option input[type=checkbox]:checked:before{transform:translateX(16px)}
.settings-option input[type=checkbox]:focus-visible{outline:3px solid #e8b62c;outline-offset:3px}
#masterPanel,#manualDecisionPanel,#alertCenter{scroll-margin-top:144px}
@media(max-width:1180px){
 .office-toolbar{justify-content:flex-start;flex-wrap:wrap}
 .toolbar-group{flex:1 1 auto;padding-right:12px}
 .toolbar-group+.toolbar-group{padding-left:12px}
}
@media(max-width:760px){
 .office-toolbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;padding:12px}
 .toolbar-group,.toolbar-group+.toolbar-group{border:0;padding:0;min-width:0}
 .toolbar-buttons{flex-direction:column}
 .office-toolbar .office-nav{width:100%}
 .office-toolbar .office-nav button,.office-toolbar .alert-button,.portal-settings>summary{width:100%;justify-content:flex-start;white-space:normal;text-align:left;min-height:45px}
 .portal-settings>summary{min-width:0}
 .settings-dropdown{right:0;top:calc(100% + 8px)}
}
@media(max-width:390px){
 .office-toolbar{grid-template-columns:1fr}
 .toolbar-buttons{flex-direction:row;flex-wrap:wrap}
 .office-toolbar .office-nav,.office-toolbar .alert-button,.portal-settings>summary{flex:1 1 100%}
 .settings-dropdown{left:0;right:auto}
}

/* Modo escuro C08: escolha manual, por navegador. Contraste suficiente sem branco intenso. */
html[data-theme="dark"]{
 --bg:#151b22;--ink:#e8edf2;--muted:#abb6c3;--line:#3a4652;
 --light-blue:#293747;--blue:#aac8ed;--shadow:0 9px 30px #05090c36;
 background:#151b22;color-scheme:dark;
}
html[data-theme="dark"] body{background:var(--bg);color:var(--ink)}
html[data-theme="dark"] .top{background:#1b222b;color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .brand-caption span,html[data-theme="dark"] .workspace-title p,html[data-theme="dark"] .test-strip,html[data-theme="dark"] .toolbar-heading{color:#bac6d2}
html[data-theme="dark"] .logo-window{background:#f7f7f4;border-radius:6px}
html[data-theme="dark"] .office-toolbar,html[data-theme="dark"] .panel,html[data-theme="dark"] .summary,html[data-theme="dark"] .clientbox,html[data-theme="dark"] .op-activity,
html[data-theme="dark"] .op-detail-content article,html[data-theme="dark"] .metric-month,html[data-theme="dark"] .paper-row,html[data-theme="dark"] .transcription-bar,
html[data-theme="dark"] .payment-accordion,html[data-theme="dark"] .accordion,html[data-theme="dark"] .document-tools,html[data-theme="dark"] .optional-fields,
html[data-theme="dark"] .operational-list,html[data-theme="dark"] .service-card,html[data-theme="dark"] .choice,
html[data-theme="dark"] .decision,html[data-theme="dark"] .detail{background:#222b35;color:var(--ink);border-color:var(--line);box-shadow:0 6px 25px #06090d29}
html[data-theme="dark"] .office-toolbar{background:#222b35;border-color:var(--line)}
html[data-theme="dark"] .office-toolbar .office-nav button,html[data-theme="dark"] .office-toolbar .alert-button,
html[data-theme="dark"] .portal-settings>summary,html[data-theme="dark"] .btn.blue,
html[data-theme="dark"] .tab,html[data-theme="dark"] .btn:not(.yellow):not(.black):not(.ghost){background:#2e3945;color:#e9f0f6;border-color:#536172}
html[data-theme="dark"] .office-toolbar .office-nav .office-nav-active{background:#10171f;color:#fff;border-color:#a7a16a;box-shadow:inset 0 -3px var(--yellow)}
html[data-theme="dark"] .office-toolbar .master-shortcut{background:#3d3421;color:#ffe49d;border-color:#75633e}
html[data-theme="dark"] .office-toolbar .alert-button.alert-urgent{background:#452f22;color:#ffd8ad;border-color:#bb794f}
html[data-theme="dark"] .office-toolbar .alert-button>span:not([aria-hidden]){background:#405061;color:#f3f6f9}
html[data-theme="dark"] .settings-dropdown{background:#202a34;color:var(--ink);border-color:#647182;box-shadow:0 19px 40px #0008}
html[data-theme="dark"] .settings-dropdown>p,html[data-theme="dark"] .settings-option small{color:#c0cbd5}
html[data-theme="dark"] .settings-option{border-color:var(--line)}
html[data-theme="dark"] .settings-option input[type=checkbox]:not(:checked){background:#52606e;border-color:#657588}
html[data-theme="dark"] .settings-option input[type=checkbox]:checked{background:#357c61;border-color:#357c61}
html[data-theme="dark"] .btn.yellow{background:#e8c347;border-color:#e8c347;color:#151a1d}
html[data-theme="dark"] .access-section>.panel,html[data-theme="dark"] .manual-decision-panel,
html[data-theme="dark"] .alert-center,html[data-theme="dark"] .upload,html[data-theme="dark"] .payment-help,
html[data-theme="dark"] .recycle-term,html[data-theme="dark"] .recycle-choice,
html[data-theme="dark"] .panel-protected,html[data-theme="dark"] .manual-target-info,
html[data-theme="dark"] .edit-lock,html[data-theme="dark"] .check,
html[data-theme="dark"] .price-box,html[data-theme="dark"] .price-box.standard,
html[data-theme="dark"] .summary .price-box.standard,html[data-theme="dark"] .client .price-box,
html[data-theme="dark"] .payment-accordion>summary,html[data-theme="dark"] .accordion>summary,
html[data-theme="dark"] .part-row,html[data-theme="dark"] .client-steps li,
html[data-theme="dark"] .op-table th{background:#2b3642;color:var(--ink);border-color:#445364}
html[data-theme="dark"] input:not([type=radio]):not([type=checkbox]):not([type=file]),
html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#18212b!important;color:#eef2f6!important;border:1px solid #647182!important}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#afbdc8;opacity:1}
html[data-theme="dark"] input[type=checkbox],html[data-theme="dark"] input[type=radio]{accent-color:#e8c347}
html[data-theme="dark"] .hint,html[data-theme="dark"] .subtitle,
html[data-theme="dark"] .operational-heading p,html[data-theme="dark"] .op-activity p.hint,
html[data-theme="dark"] .client-intro p,html[data-theme="dark"] .op-table th,
html[data-theme="dark"] .op-table td small,html[data-theme="dark"] .op-detail-content article small,
html[data-theme="dark"] .metric-month p,html[data-theme="dark"] .pipeline-column small{color:#b9c5cf}
html[data-theme="dark"] .price-box strong,html[data-theme="dark"] .status-tile strong,
html[data-theme="dark"] .payment-figure,html[data-theme="dark"] .moneyline strong,
html[data-theme="dark"] .op-activity h4{color:#f2f5f8}
html[data-theme="dark"] .status-tiles .status-tile{background:#24313c;color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .status-tiles .status-tile span,html[data-theme="dark"] .kv span{color:#bac5d0}
html[data-theme="dark"] .kv,html[data-theme="dark"] .op-table td,html[data-theme="dark"] .op-table-wrap,
html[data-theme="dark"] .op-activity label,html[data-theme="dark"] .op-pages{border-color:#46525e}
html[data-theme="dark"] .status,html[data-theme="dark"] .op-badge.pending{background:#423a24;color:#f9dfa0;border-color:#857244}
html[data-theme="dark"] .status.ok,html[data-theme="dark"] .op-badge.approved,html[data-theme="dark"] .op-badge.recycle-status{background:#254336;color:#aee5c7;border-color:#426b54}
html[data-theme="dark"] .status.no,html[data-theme="dark"] .op-badge.rejected{background:#4a3034;color:#ffbab8;border-color:#815156}
html[data-theme="dark"] .client-total{background:#101820;color:#e8edf2;border:1px solid #425261}
html[data-theme="dark"] .client-total .moneyline strong{color:#ffe27a}
html[data-theme="dark"] dialog{background:#1d2732;color:var(--ink);border-color:#697684}
html[data-theme="dark"] .paper-viewport{background:#303c47;border-color:#667382}
html[data-theme="dark"] .footer{background:#111820;color:#bac5d0;border-color:var(--line)}
html[data-theme="dark"] .part-line-total{color:#ffe5a5}
html[data-theme="dark"] .pipeline-plot{background:repeating-linear-gradient(to top,#33414e 0,#33414e 1px,transparent 1px,transparent 44px);border-color:#778594}
html[data-theme="dark"] .pipeline-plot:before{border-color:#8a99a8}
html[data-theme="dark"] .client .choice:has(input:checked){background:#263e38;border-color:#6aab8f}
@media(prefers-reduced-motion:reduce){.settings-option input[type=checkbox],.settings-option input[type=checkbox]:before{transition:none}}

/* C08 acabamento: engrenagem compacta mantém quatro grupos na mesma faixa desktop. */
@media(min-width:761px){
 .office-toolbar{gap:7px;padding-inline:11px}
 .office-toolbar .toolbar-group{padding-right:5px}
 .office-toolbar .toolbar-group+.toolbar-group{padding-left:8px}
 .office-toolbar .office-nav button,.office-toolbar .alert-button{padding-inline:10px}
 .toolbar-preferences{flex:0 0 46px}
 .portal-settings>summary{width:44px;min-width:44px;padding:10px;justify-content:center}
 .toolbar-preferences .toolbar-heading{text-align:center}
}
@media(max-width:760px){
 .portal-settings>summary{justify-content:center}
}
html[data-theme="dark"] .divider-title{color:#f1d179;border-color:#455363}
html[data-theme="dark"] .divider-title:after{background:#455363}
html[data-theme="dark"] .payment-accordion>summary:after,html[data-theme="dark"] .accordion>summary:after{color:#f0d57c}

/* V07 C09: cabeçalho oficial, barra centralizada e Sobre proprietário. */
.topline{justify-content:flex-start;column-gap:13px;flex-wrap:nowrap}
.brand-profer{width:204px;height:88px}
.brand-caption{padding-left:14px;margin-left:2px;min-width:0;max-width:min(100%,560px);border-left:1px solid var(--line)}
.brand-caption strong{font-size:19px;letter-spacing:-.02em}
.brand-caption span{font-size:12px;line-height:1.5;max-width:480px}
.about-open{margin-left:auto;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:110px;min-height:44px;padding:10px 16px;border-radius:9px;border:1px solid #ad944c;background:#fff8de;color:#302c20;font:800 13px system-ui,sans-serif;cursor:pointer}
.about-open:hover{background:#ffefb4}
.office-toolbar{justify-content:center;column-gap:15px;}
.office-toolbar .toolbar-group{flex:0 1 auto;align-items:stretch}
.office-toolbar .toolbar-buttons{justify-content:center;}
.office-toolbar .toolbar-preferences{flex:0 0 46px}
.office-toolbar .toolbar-heading{text-align:center}
.sound-feedback{font-size:11px;color:#6b6045;margin:0 0 2px;line-height:1.4}
.about-dialog{box-sizing:border-box;width:min(540px,calc(100vw - 28px));height:auto;max-height:min(85vh,850px);padding:0;overflow:auto;border-radius:17px;border:1px solid #d7d1c4;background:#fff;color:#272b31;box-shadow:0 30px 70px #1218208a}
.about-dialog::backdrop{background:#0d1219a8}
.about-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#172334;color:white;padding:14px 18px}
.about-head strong{font-size:17px}
.about-close{border:1px solid #65768d;background:#2a3c51;color:white;border-radius:8px;padding:5px 10px;min-width:37px;font-size:18px}
.about-body{padding:18px 23px 26px;font-size:13px;line-height:1.6}
.about-body h2{text-align:center;font-size:20px;margin:6px 0 14px}
.about-logo{display:block;width:clamp(200px,80%,350px);height:auto;max-height:175px;object-fit:contain;margin:0 auto 7px}
.about-version{text-align:center;font-size:13px;border-radius:9px;background:#f5f2e9;padding:11px;color:#242426}
.about-version span{display:block;color:#615a4e;font-size:11px}
.about-block{border-top:1px solid #e6e3dc;padding-top:12px;margin-top:13px}
.about-block h3{margin:0 0 5px;font-size:14px}
.about-block p{font-size:12.5px;line-height:1.65;color:#373737;overflow-wrap:anywhere}
.about-block a{color:#075c9b;font-weight:700}
html[data-theme="dark"] .about-open{background:#3c3424;color:#fff0bc;border-color:#8b7542}
html[data-theme="dark"] .about-dialog{background:#1d2732;color:#e8edf2;border-color:#576879;color-scheme:dark}
html[data-theme="dark"] .about-head{background:#111b25;color:#fff}
html[data-theme="dark"] .about-version{background:#263744;color:#ecf1f6}
html[data-theme="dark"] .about-version span,html[data-theme="dark"] .about-block p{color:#ced9e3}
html[data-theme="dark"] .about-block{border-color:#455463}
html[data-theme="dark"] .about-block a{color:#aed8ff}
html[data-theme="dark"] .sound-feedback{color:#bac9da}
@media(max-width:1180px){.office-toolbar{justify-content:center;gap:14px}.office-toolbar .toolbar-group{flex:0 1 auto}}
@media(max-width:800px){.brand-caption{display:flex}.brand-profer{width:145px;height:64px}.brand-profer img{transform:translateY(-10px)}.brand-caption strong{font-size:14px}.brand-caption span{font-size:10px}.topline{flex-wrap:wrap}.about-open{min-width:94px}}
@media(max-width:520px){.brand-caption{order:3;flex-basis:100%;border:0;padding:0;margin:0 0 3px}.brand-profer{width:138px;height:58px}.about-open{margin-left:auto}.topline{row-gap:4px}}

/* V07 C10 — Torres agrupadas por semana, outubro e novembro comparados lado a lado.
   Semana 4 inclui do dia 22 ate o ultimo dia. O grafico preserva A/B/C/D. */
.metric-bars:has(.metric-comparison){display:block;min-width:0;}
.metric-comparison{display:flex;flex-direction:column;gap:12px;min-width:0;}
.metric-month-headings{display:grid;grid-template-columns:90px minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:center;}
.metric-month-heading{padding:9px 12px;border-radius:10px;background:#f5f1e8;color:#2c2922;text-align:center;font-size:15px;}
.metric-head-spacer{color:#807667;font-size:11px;font-weight:700;text-transform:uppercase;}
.metric-week-row{display:grid;grid-template-columns:90px minmax(0,1fr);gap:12px;align-items:stretch;min-width:0;}
.metric-week-title{display:flex;flex-direction:column;justify-content:center;gap:7px;min-width:0;color:#2d343c;}
.metric-week-title strong{font-size:13px;}
.metric-week-title small{color:#786e62;font-size:11px;}
.metric-week-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0;}
.metric-week-month{border:1px solid #e7dfd2;border-radius:13px;padding:13px 10px 11px;min-width:0;background:#faf8f4;}
.metric-month-caption{display:none;}
.pipeline-chart-weekly{margin-top:0;gap:6px;}
.pipeline-chart-weekly .pipeline-plot{height:150px;background:repeating-linear-gradient(to top,#e9e3d9 0,#e9e3d9 1px,transparent 1px,transparent 32px);}
.pipeline-chart-weekly .pipeline-plot::before{bottom:71px;}
.pipeline-chart-weekly .pipeline-bar{bottom:71px;max-width:45px;width:62%;}
.pipeline-chart-weekly .pipeline-bar.negative{top:calc(100% - 71px);bottom:auto;}
.pipeline-chart-weekly .pipeline-amount{font-size:11px;white-space:normal;overflow-wrap:anywhere;line-height:1.25;}
.pipeline-chart-weekly .pipeline-label{font-size:10px;min-height:30px;line-height:1.25;}
.pipeline-chart-weekly .pipeline-column small{font-size:10px;}
.metric-month-totals{margin-left:102px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.metric-month-totals .pipeline-receipts{border:1px solid #e5dcca;border-radius:10px;padding:12px;margin:0!important;line-height:1.5;}
html[data-theme="dark"] .metric-month-heading,html[data-theme="dark"] .metric-week-month,html[data-theme="dark"] .metric-month-totals .pipeline-receipts{background:#222b35;color:#e8edf2;border-color:#46525e;}
html[data-theme="dark"] .metric-week-title,html[data-theme="dark"] .metric-week-title small,html[data-theme="dark"] .metric-head-spacer{color:#c9d1da;}
html[data-theme="dark"] .pipeline-chart-weekly .pipeline-plot{background:repeating-linear-gradient(to top,#33414e 0,#33414e 1px,transparent 1px,transparent 32px);}
@media(max-width:810px){
 .metric-month-headings{display:none;}
 .metric-week-row{grid-template-columns:1fr;gap:8px;}
 .metric-week-title{flex-direction:row;align-items:baseline;justify-content:flex-start;}
 .metric-month-caption{display:block;margin-bottom:9px;font-size:12px;}
 .metric-month-totals{margin-left:0;}
}
@media(max-width:580px){
 .metric-week-pair,.metric-month-totals{grid-template-columns:1fr;}
 .metric-week-month{padding:13px 10px;}
 .pipeline-chart-weekly .pipeline-label{min-height:20px;}
}

/* Alinha os campos de cada peça; o total permanece abaixo do valor unitário. */
@media (min-width: 861px) {
  .part-row:has(.part-qty) {
    grid-template-columns: 64px minmax(0, 2fr) minmax(0, 1fr) 75px 110px 36px;
    align-items: start;
  }
  .part-row .part-tag {
    padding: 0;
    margin-top: 34px;
    white-space: nowrap;
  }
  .part-row .part-remove {
    padding: 0;
    margin-top: 24px;
  }
}


/* Reflexos espelhados abrem e voltam ao centro. */
.top::after {
  pointer-events: none;
  background: linear-gradient(90deg, var(--yellow) 44%, var(--orange) 59%);
}
@media (prefers-reduced-motion: no-preference) {
  .top[data-led-sweep]::after {
    background-image:
      linear-gradient(90deg, transparent, #fff9e6 50%, transparent),
      linear-gradient(90deg, transparent, #fff9e6 50%, transparent),
      linear-gradient(90deg, var(--yellow) 44%, var(--orange) 59%);
    background-size: 16% 100%, 16% 100%, 100% 100%;
    background-repeat: no-repeat;
    animation: profer-led-sweep 4.8s ease-in-out infinite;
  }
  @keyframes profer-led-sweep {
    0%, 100% { background-position: 50% 0, 50% 0, 0 0; }
    50% { background-position: 0% 0, 100% 0, 0 0; }
  }
}


/* Resposta ao toque nos botões da oficina. */
:is(.btn, .office-toolbar button, .portal-settings > summary, .about-open, .about-close):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
@media (prefers-reduced-motion: no-preference) {
  :is(.btn, .office-toolbar button, .portal-settings > summary, .about-open, .about-close):not(#tabCadastro) {
    transition: translate 150ms ease-out, box-shadow 150ms ease-out;
  }
  @media (hover: hover) {
    :is(.btn, .office-toolbar button, .portal-settings > summary, .about-open, .about-close):not(#tabCadastro, :disabled):hover {
      translate: 0 -2px;
      box-shadow: 0 4px 9px rgb(0 0 0 / 15%);
    }
  }
  :is(.btn, .office-toolbar button, .portal-settings > summary, .about-open, .about-close):not(#tabCadastro, :disabled):active {
    translate: 0 1px;
    box-shadow: inset 0 1px 3px rgb(0 0 0 / 15%);
  }
}


/* Tipografia hospedada junto ao Portal. */
@font-face {
  font-family: Inter;
  src: url("/assets/fontes/inter-400-800.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/fontes/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
body {
  font-family: Inter, system-ui, sans-serif;
}
:is(h1, h2, .divider-title) {
  font-family: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  font-weight: 700;
}
body:not(.client-mode) :is(.office-toolbar button, .portal-settings > summary, .about-open) {
  font-family: Inter, system-ui, sans-serif;
}

/* Dois gráficos mensais compactos, com a mesma escala. */
.metric-comparison .metric-stage-legend{display:flex;flex-wrap:wrap;gap:5px 14px;margin:0;padding:0;list-style:none;font-size:11px;}
.metric-stage-legend li::before{content:"";display:inline-block;width:9px;height:9px;border-radius:2px;background:var(--stage-color);margin-right:5px;}
.metric-comparison .metric-month-caption{display:block;margin:0 0 6px;text-align:center;}
.metric-comparison .metric-week-month{padding:8px 10px;}
.metric-comparison .pipeline-chart-weekly{gap:4px;}
.metric-week-group{min-width:0;text-align:center;}
.metric-comparison .pipeline-chart-weekly .pipeline-plot{height:94px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));}
.metric-week-slot{position:relative;min-width:0;}
.metric-comparison .pipeline-chart-weekly .pipeline-plot::before,.metric-comparison .pipeline-chart-weekly .pipeline-bar{bottom:46px;}
.metric-comparison .pipeline-chart-weekly .pipeline-bar.negative{top:calc(100% - 46px);bottom:auto;}
.metric-week-caption{display:block;margin-top:4px;font-size:10px;}
.metric-week-details{margin-top:6px;font-size:11px;}
.metric-week-details summary{cursor:pointer;}
.metric-week-details ul{margin:0 0 4px;padding-left:18px;}
.metric-comparison .metric-month-totals{margin-left:0;}

.metric-line-preview{border-top:1px solid var(--line);padding-top:8px;font-size:12px;}
.metric-line-preview summary{cursor:pointer;font-weight:700;}
.metric-line-preview label{display:inline-flex;align-items:center;gap:8px;margin:8px 0 4px;}
.metric-line-preview select{width:auto;}
.metric-line-plot svg{display:block;width:100%;max-width:740px;margin:auto;}
.metric-line-plot text{fill:currentColor;font-size:11px;}

.client-proposal-table{width:100%;border-collapse:collapse;font-size:13px;}
.client-proposal-table th,.client-proposal-table td{padding:7px 5px;text-align:left;border-bottom:1px solid var(--line);overflow-wrap:anywhere;}
.client-proposal-table th:last-child,.client-proposal-table td:last-child{text-align:right;white-space:nowrap;}
.client-proposal-table td:first-child{white-space:pre-wrap;}
.client-forecast{padding:14px;margin-top:14px;border:2px solid var(--yellow);border-radius:9px;background:#fffbee;}
.client-forecast strong{display:block;font-size:17px;}
