/* Shared workspace presentation. Existing form and call behavior is preserved. */
:root{--ink:#153449;--muted:#526b7c;--line:#dce5ea;--green:#347d2b;--surface:#fff;background:#f3f6f8;color:var(--ink);font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:15px}
body>header{min-height:80px;background:#112e43;border-bottom:3px solid #7bbd43;padding:15px max(24px,calc((100vw - 1240px)/2));box-shadow:none}
.brand{font-size:20px;gap:12px}.brand b{color:#c0e58c}.brand-logo{border-radius:12px}.brand small{display:block;font-size:9px;letter-spacing:1.6px;color:#adc2cf}
#account{display:flex;align-items:center;gap:12px;font-size:13px}#account button{background:#28475a;border:1px solid #4b6678;color:#fff}
main{max-width:1288px;padding:28px 24px 32px}h1{font-size:30px;letter-spacing:-.8px}h2{font-size:24px}.eyebrow{font-size:10px;font-weight:750;letter-spacing:1.2px;color:var(--muted)}
button{border-radius:9px;min-height:42px;transition:background .15s,box-shadow .15s}button:not(.secondary):not(.order):not(.stat):not(.catalog-row){background:var(--green)}button.secondary{background:#edf2f5;color:#24465d}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #71aa49;outline-offset:3px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:0 3px 15px #17384c04}.page-title{margin:24px 0 18px}.page-title h1{margin:5px 0}.page-title>button{padding:12px 20px}
.management-nav{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 20px;padding:7px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:none}.nav-primary{display:flex;gap:5px;flex-wrap:wrap}.management-nav button{font-size:13px;padding:11px 16px;min-height:42px}.management-nav button[aria-pressed="true"]{background:#16394f;color:#fff}.nav-more{border:0;position:relative}.nav-more>summary{font-size:12px;padding:12px;color:#405f72}.nav-more[open] .nav-secondary{z-index:20;border:1px solid var(--line);box-shadow:0 14px 34px #15344920;border-radius:12px;padding:8px;background:white;min-width:240px}.nav-secondary button{text-align:left;font-size:13px}
.voice-panel{position:relative;display:flex;align-items:center;gap:16px;padding:20px 22px;margin:0 0 22px;border:1px solid var(--line);border-left:4px solid #73ab43;border-radius:16px}.voice-panel>div:first-child{flex:1;min-width:210px}.voice-panel strong{font-size:14px}.voice-panel p{font-size:13px;margin:5px 0}.voice-panel small{font-size:11px;line-height:1.5;color:#5c7383}.voice-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.voice-actions select{width:230px;min-height:44px;font-size:13px}.voice-actions button{font-size:13px;padding:11px 15px}.voice-tools{border:0;margin:0;order:2}.voice-tools summary{font-size:12px;padding:11px 10px;white-space:nowrap}.voice-tools-content{position:absolute;right:16px;top:80px;z-index:21;display:grid;gap:7px;min-width:240px;padding:10px;background:white;border:1px solid var(--line);border-radius:12px;box-shadow:0 14px 34px #15344920}.voice-tools-content button{text-align:left;font-size:12px;min-height:42px}.voice-presence{order:3;gap:7px;padding-top:14px;border-color:#e5ecf0}.voice-contact{font-size:11px!important;border-radius:20px!important;padding:8px 11px!important;min-height:34px}.voice-panel #incomingBackgroundStatus{order:4;width:100%}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:22px}.stat{min-height:130px;background:#fff;border:1px solid var(--line);border-top:3px solid var(--status-color);border-radius:13px;padding:17px 19px;gap:9px}.stat>span{font-size:12px;color:#496172}.stat b{font-size:32px;font-weight:750}.stat small{font-size:11px;color:#597182}.status-aberto{--status-color:#a96b13}.status-deslocamento{--status-color:#356baf}.status-atendimento{--status-color:#207e83}.status-concluido{--status-color:#39813b}.stat:hover{background:#f8fafb;box-shadow:0 4px 15px #1534490b}.stat[aria-pressed="true"]{outline:2px solid var(--status-color);outline-offset:2px;background:#f8fafb}
.workspace{grid-template-columns:330px minmax(0,1fr);gap:20px}.workspace>*{min-width:0}.filters{padding:16px;gap:10px;background:#fbfcfd}.filters input,.filters select{font-size:13px;min-height:44px;padding:10px 11px;border-color:#cedce5}.sort-label{font-size:11px;font-weight:600;gap:5px;margin:0;color:#5c7383}.filter-summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:30px;font-size:11px;color:#5c7383}.filter-summary button{font-size:11px;padding:6px 9px;min-height:30px}#orders{max-height:65vh;overscroll-behavior:contain}.order{padding:18px;border-bottom:1px solid #e8eef2}.order strong{font-size:15px;line-height:1.45;margin:10px 0}.order small{font-size:11px;color:#5b7282}.order .badge{font-size:10px;padding:5px 7px}.order:hover{background:#f3f8fa}.order.selected{background:#eef7ed;box-shadow:inset 3px 0 #579a39}.order-assignee{font-size:12px;color:#466073}.badge{border-radius:6px}.badge.atendimento{background:#e5f3f3;color:#22666c}.badge.concluido{background:#eaf5e6;color:#34712a}
#detail{padding:26px;border-radius:16px;min-height:250px}#detail.empty{display:grid;place-content:center;padding:65px 30px;color:#5f7889;font-size:14px;line-height:1.7;background:#fff}#detail.empty::before{content:"↗";display:grid;place-items:center;width:52px;height:52px;margin:0 auto 15px;border-radius:16px;background:#f0f5f7;color:#648398;font-size:27px}.detail-heading h2{font-size:24px}.problem{background:#f4f7f9;border-left-color:#7ab54a}.problem p{font-size:16px}.detail-tools{gap:8px}.detail-tools button{font-size:12px}.management-layout{gap:20px}.catalog-row{border-radius:11px}.login{margin:48px auto;padding:34px;border-radius:20px}.login h1{font-size:28px}.login p{font-size:14px}.login label{font-size:13px}dialog{border-radius:18px}footer{font-size:11px;color:#6a8090;padding:22px}
@media(max-width:1050px){.voice-panel{gap:12px}.voice-panel>div:first-child{width:100%;flex-basis:100%}.voice-actions{flex:1}.voice-tools-content{top:125px}.workspace{grid-template-columns:300px minmax(0,1fr)}}
@media(max-width:750px){body>header{padding:12px 16px;min-height:72px}.brand{font-size:16px;gap:9px}.brand small{font-size:8px;letter-spacing:.7px}#account{font-size:11px;gap:7px}#account button{min-height:38px;padding:8px 12px}.brand-logo{width:40px;height:40px}main{padding:18px 14px}.management-nav{gap:5px;align-items:stretch;flex-direction:column;margin-bottom:16px}.nav-primary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px}.management-nav button{padding:10px 5px;font-size:11px}.nav-more>summary{padding:9px 10px}.nav-more[open] .nav-secondary{position:static;min-width:0;box-shadow:none;display:grid;grid-template-columns:1fr 1fr}.voice-panel{padding:16px;margin-bottom:18px;gap:10px}.voice-panel>div:first-child{min-width:0}.voice-actions{display:grid;grid-template-columns:1fr 1fr;flex-basis:100%;width:100%}.voice-actions select{grid-column:1/-1;width:100%;max-width:none}.voice-actions button{font-size:12px;min-height:44px}.voice-tools{width:100%}.voice-tools summary{padding:8px 0}.voice-tools-content{position:static;min-width:0;box-shadow:none;background:#f7f9fa;grid-template-columns:1fr 1fr}.voice-tools-content button{font-size:11px;padding:10px}.voice-presence{gap:6px;padding-top:12px}.voice-contact{font-size:10px!important;min-height:34px}.page-title{margin-top:20px;align-items:center}.page-title h1{font-size:26px}.page-title>button{font-size:12px;padding:11px 13px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.stat{min-height:110px;padding:14px;gap:7px}.stat b{font-size:28px}.stat>span{font-size:11px}.stat small{font-size:10px}.workspace{grid-template-columns:1fr;gap:16px}#orders{max-height:330px}#detail{padding:20px}.detail-heading h2{font-size:22px}.management-layout{grid-template-columns:1fr}.login{margin:25px auto;padding:26px}}
button.voice-danger{background:#ad2634!important}
.catalog-controls{padding:16px;margin:16px 0 22px;border:1px solid #e2e9ee;border-radius:12px;background:#f7f9fb}.catalog-controls label,.quote-list-filters label{font-size:12px;color:#4a6476}.catalog-controls input,.catalog-controls select,.quote-list-filters input,.quote-list-filters select{font-size:13px;min-height:44px}.catalog-controls .grid{gap:0 12px}.catalog-controls .filter-summary{margin-top:3px}.catalog-controls .filter-summary button{min-height:40px}.registry-row{border:1px solid #e0e8ee;border-radius:12px;padding:14px;margin:0 0 14px;display:flex;flex-wrap:wrap;gap:8px;align-items:center;background:#fff}.registry-row>.catalog-row{flex-basis:100%;border:0;background:transparent;padding:0;margin:0;box-shadow:none}.registry-row>.catalog-row strong{font-size:16px}.registry-row>.catalog-row span{font-size:13px;line-height:1.5}.registry-row>.catalog-row small{font-size:12px}.registry-row>button.secondary{font-size:12px;min-height:42px;padding:10px 12px}.registry-row>.customer-history{width:auto}.registry-row.is-editing{border-color:#8cb879;background:#f4f9f1}.catalog-state{display:inline-flex!important;align-self:flex-start;justify-self:start;font-size:10px!important;font-weight:650;padding:4px 8px;border-radius:20px;line-height:1.2!important}.catalog-state.active{background:#eaf4e5;color:#35662c}.catalog-state.inactive{background:#f0f2f4;color:#64727b}.catalog-no-results{padding:24px 16px;border:1px dashed #cbd8e1;background:#f8fafb;border-radius:12px;text-align:center;font-size:13px;color:#597183}.quote-list-card> .row{margin-bottom:20px}.quote-list-filters{display:grid;grid-template-columns:minmax(0,2fr) 1fr 1fr;gap:14px}.quote-list-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 20px;padding:12px 14px;border-radius:10px;background:#f3f7f9;color:#4a6476;font-size:12px}.quote-list-summary button{font-size:12px;min-height:40px;padding:9px 12px}#quoteRows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}#quoteRows .catalog-row{margin:0;padding:18px;align-content:start;gap:12px}#quoteRows .catalog-row strong{font-size:15px}.quote-row-amount{font-size:19px!important;font-weight:700;color:#204961}.quote-status-draft{background:#eef1f5;color:#576b7d}.quote-status-sent{background:#e8f0fb;color:#345f9b}.quote-status-approved{background:#e9f5e5;color:#37732d}.quote-status-refused{background:#fbecec;color:#9d4141}
@media(max-width:750px){.quote-list-filters{grid-template-columns:1fr 1fr;gap:0 12px}.quote-list-filters>label:first-child{grid-column:1/-1}#quoteRows{grid-template-columns:1fr}.catalog-controls{padding:13px}.registry-row{padding:13px}.registry-row>button.secondary{flex:1;min-width:120px}.quote-list-summary{align-items:flex-start;flex-direction:column}.catalog-controls .grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){button{transition:none}}
.catalog-create{font-size:12px;margin-bottom:15px;min-height:42px}
@media(max-width:750px){.registry-layout>section:first-child{order:2}.registry-layout>section:nth-child(2){order:1}}
@media print{.voice-panel,.management-nav,.filters{display:none!important}#detail.empty::before{display:none}.workspace{display:block}#detail{border:0;box-shadow:none}}
/* Call surface: primary actions stay distinct from sound controls. */
#voiceDialog{width:min(560px,calc(100vw - 32px));max-width:560px;max-height:calc(100dvh - 32px);padding:24px;border:1px solid #dce6ed;border-radius:24px;background:#fbfcfd;box-shadow:0 28px 100px #081f3960;overflow:auto}
#voiceDialog::backdrop{background:#0b223acc;backdrop-filter:blur(5px)}
.call-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:27px}.call-eyebrow{font-size:10px;letter-spacing:1.1px;font-weight:750;color:#587185}#callDuration{font-variant-numeric:tabular-nums;font-size:13px;font-weight:700;color:#296b39;padding:5px 10px;background:#edf6e9;border-radius:20px;white-space:nowrap}
.call-identity{text-align:center;padding:29px 12px 24px}.call-avatar{display:grid;place-items:center;width:82px;height:82px;margin:0 auto 20px;background:#eaf3e5;border:1px solid #d4e7cb;border-radius:28px;color:#3a7f2c;font-size:38px;line-height:1;box-shadow:0 0 0 9px #f3f7f0}.call-phase{display:block;font-size:12px;font-weight:650;color:#547186;margin-bottom:8px}#voiceDialog #voicePeer{font-size:25px;line-height:1.3;letter-spacing:-.5px;margin:0;color:#14364d;overflow-wrap:anywhere}
#voiceDialog[data-state="incoming"] .call-avatar{background:#edf4fc;border-color:#d4e5f7;color:#366eac;box-shadow:0 0 0 9px #f3f7fb}#voiceDialog[data-state="active"] .call-phase{color:#3b7e2c}
#voiceDialog .call-video{display:none;position:relative;gap:8px;margin:0 0 20px}#voiceDialog[data-video="true"] .call-video{display:flex}#voiceDialog .call-video video{width:100%;max-height:42dvh;border-radius:15px;background:#122536;object-fit:contain}#voiceDialog .call-video #localVideo{position:absolute;bottom:10px;right:10px;width:110px;max-height:85px;border:2px solid #fff}
#voiceDialog #callError:empty{display:none}#voiceDialog #callError{font-size:12px;line-height:1.5;color:#a73e3e;background:#fff1f0;border:1px solid #f0d4d1;border-radius:10px;padding:12px;margin:0 0 16px}
.call-controls{display:flex;justify-content:center;gap:10px;margin:0 0 18px}.call-controls button{font-size:13px;padding:12px 18px;min-height:46px;border:1px solid #dde6eb;background:#fff!important;color:#345369!important}.call-controls #muteVoice[aria-pressed="true"]{background:#fff0da!important;color:#925f12!important;border-color:#e9c993}
.call-main-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:0 0 19px}.call-main-actions button{font-size:14px;min-height:52px;min-width:145px;padding:14px 22px;border-radius:13px}.call-main-actions #answerVoice,.call-main-actions #answerVideo{background:#347d2b;color:#fff}.call-main-actions #answerVoice::before{content:'☎';margin-right:8px}.call-main-actions #endVoice{background:#be3946!important;color:white}.call-main-actions #endVoice::before{content:'×';font-size:20px;margin-right:8px;line-height:12px}
.call-connection-details{border-top:1px solid #e0e8ed;text-align:center}.call-connection-details summary{font-size:11px;padding:12px 0 0;color:#6a7f8e;font-weight:500}.call-connection-details #voiceMediaStatus{font-size:11px;line-height:1.7;color:#526d80;background:#f0f4f7;border-radius:9px;padding:12px;margin:12px 0 0;text-align:left;overflow-wrap:anywhere}
@media(max-width:600px){#voiceDialog{padding:20px 16px;border-radius:22px;max-height:calc(100dvh - 20px)}.call-eyebrow{font-size:9px;letter-spacing:.7px}.call-identity{padding:25px 5px 23px}.call-avatar{width:72px;height:72px;font-size:33px;border-radius:24px}#voiceDialog #voicePeer{font-size:22px}.call-main-actions button{flex:1;min-width:120px;font-size:13px;padding:14px 12px}.call-main-actions #answerVideo{flex-basis:100%;order:2}.call-controls button{flex:1;font-size:12px;min-height:46px;padding:11px 10px}.call-connection-details summary{min-height:40px}.call-controls{margin-bottom:14px}}
