/* Compact workspace: preserve readable text and natural scrolling for real content. */
.topbar{height:56px;min-height:56px;padding:0 24px}
.content,.content:has(.quote-desk){padding:14px 22px 18px;max-width:1660px}
.content:has(.quote-desk),.content:has(.analysis-sources){max-width:none}
.migration-banner,.content:has(.quote-desk) .migration-banner{padding:5px 10px;margin-bottom:12px}
.page-heading{margin:10px 0 14px;gap:14px}
.page-heading h1,.content>h1{font-size:26px;margin-bottom:4px}
.eyebrow,.page-heading .eyebrow{margin-bottom:5px}
.content>p.muted{margin-bottom:12px}
.app-footer{padding:8px 22px}
.sidebar{padding:22px 18px 16px}
.sidebar .wordmark{margin-bottom:22px}
.sidebar nav{gap:3px}
.sidebar nav a{padding:9px 12px}
.nav-caption{margin-bottom:10px}
.nav-group{margin:0}
.nav-group summary{padding:9px 12px}
.sidebar nav .nav-children a,.planned-item{padding:7px 10px}
.nav-children{margin-bottom:4px}
.nav-legacy{margin-top:12px;padding-top:12px}
.nav-legacy>a{margin-top:8px}
.sidebar-bottom{padding-top:18px}
.sidebar-bottom small{margin-top:6px}
.content input:not([type=checkbox]):not([type=radio]):not([type=file]),.content select{height:36px;padding:6px 10px}
.content input[type=checkbox],.content input[type=radio]{width:16px;height:16px;vertical-align:middle}
.content label{margin-bottom:4px}
.content .button{min-height:34px;padding:7px 13px;gap:10px}
.panel,.module-sections .panel,.quote-workbench>.panel{padding:16px}
.panel h2,.module-sections h2{font-size:18px;margin-bottom:12px}
.panel h3{margin-bottom:10px}
.form-note{margin:8px 0;font-size:11px;line-height:1.45}
.form-note:empty{display:none}
.field-grid{gap:10px 14px;padding:0}
.module-sections{gap:12px}
.module-notice,.alert,.profile-success{padding:9px 12px;margin:10px 0;font-size:12px}
.screen-tabs{margin-bottom:12px;gap:18px}
.screen-tabs a{padding:7px 0}
.filter-bar{padding:10px 14px;gap:10px}
.filter-bar input,.filter-bar select{height:34px}
.filter-bar .button{min-height:34px;padding:7px 13px}
.clear-filters{padding:8px 0}
.section-heading{margin:14px 0 10px}
.table-card>.section-heading{padding:0 14px}
th{padding:9px 12px}
td{padding:9px 12px}
td small{margin-top:3px}
.table-footer{padding:9px 14px}
.stats-row{gap:12px;margin-bottom:14px}
.stats-row>div{padding:12px 16px}
.stats-row span{margin-bottom:5px}
.stats-row strong{font-size:24px}
.empty-state{padding:28px 16px}
.detail-grid{gap:14px}
dl>div{padding:8px 0;gap:12px}
.parts-card,.detail-footer{margin-top:14px}
.welcome-card{min-height:200px;padding:22px 28px}
.welcome-card h2{font-size:29px;margin-bottom:8px}
.orbit{height:165px;transform:scale(.8)}
.quick-card{padding:16px}
.quick-icon{margin-bottom:12px}
.card-link{margin-top:12px}
.quick-card p{min-height:0;margin-bottom:8px}
.profile-picker{margin:0;gap:8px;align-items:end}
.profile-picker label{min-width:190px;margin:0}
.profile-picker select{margin-top:4px}
.profile-layout{max-width:1380px;gap:14px;grid-template-columns:240px minmax(0,1fr);grid-template-areas:'photo data' 'photo signature'}
.profile-photo-panel{grid-area:photo}
.profile-data{grid-area:data}
.profile-signature{grid-area:signature}
.profile-layout .panel{padding:16px}
.profile-layout .profile-title{gap:12px;margin-bottom:10px}
.profile-photo-panel .large-avatar{width:54px;height:54px}
.profile-photo-panel .profile-title h2{font-size:16px;margin-bottom:3px}
.profile-layout h2{margin:0 0 10px}
.profile-layout h3{margin:14px 0 8px;font-size:16px}
.profile-layout input:not([type=file]){height:34px;padding:6px 8px}
.profile-fields{gap:8px 12px;margin-bottom:10px}
.profile-fields label{margin:0}
.profile-layout input{margin-top:4px}
.profile-layout .permission-list{gap:6px;margin-top:8px}
.permission-list>span{padding:5px 7px;font-size:11px}
.profile-image-editor summary{margin:4px 0}
.profile-image-editor form{margin-top:6px}
.profile-signature{margin:0;border:1px solid var(--line)}
.profile-layout .profile-signature h3{margin-top:0}
.signature-preview{max-height:90px;margin-bottom:8px}
.profile-access{margin-top:16px;padding-top:12px;border-top:1px solid var(--line)}
.profile-access p{font-size:12px;line-height:1.45;margin-bottom:8px}
.profile-access h2{font-size:16px}
.mail-password-control{align-items:end}
.profile-layout .mail-password-control .button{min-height:34px;height:34px;padding:6px 9px}
.company-layout{max-width:1300px;gap:14px;grid-template-columns:minmax(0,1fr) 240px}
.company-layout .panel{padding:16px}
.company-fields{gap:8px 12px;margin-bottom:14px;grid-template-columns:repeat(3,minmax(0,1fr))}
.company-fields:first-of-type{grid-template-columns:repeat(2,minmax(0,1fr))}
.company-fields label{margin-bottom:0}
.company-fields input{margin-top:4px}
.company-data h2{margin-bottom:9px;font-size:17px}
.company-field-address_line1{grid-column:span 2}
.company-field-website{grid-column:auto}
.company-logo-empty{padding:20px 10px}
.company-logo img{max-height:100px}
:root .parameter-list{max-width:none;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.parameter-card label,.security-panel label{margin:8px 0}
.parameter-card textarea{min-height:42px;resize:vertical;font:inherit;border:1px solid var(--line);border-radius:5px;padding:6px}
.parameter-actions{gap:10px}
.parameter-actions>label:first-child{flex:1;max-width:190px}
.parameter-actions input[type=checkbox]{height:16px}
.security-panel{margin:12px 0;padding:16px}
.security-panel hr{margin:16px 0}
.security-panel input{margin-top:4px}
.review-summary{padding:12px;margin:12px 0}
.review-terms{gap:8px}
.desk-heading{gap:12px;margin-bottom:10px}
.quote-header-compact,.desk-support{padding:10px}
.desk-support{position:static;max-height:none;overflow:visible}
.quote-meta{gap:12px}
.customer-grid{gap:5px 10px}
.content .customer-grid input{height:29px;padding:4px 7px}
.desk-toolbar{margin:8px 0}
.color-key{margin:6px 0 8px}
.inline-part{margin-bottom:8px}
.content .inline-fields input,.content .inline-fields select{height:29px;padding:4px 6px}
.support-block{margin-top:9px}
.support-block h3{padding:6px 8px}
.support-block td,.support-block th{padding:6px 8px}
.support-block .support-message{padding:7px 8px}
.support-title p{margin-bottom:6px}
.support-filters{gap:8px;margin:5px 0}
.analysis-sources{gap:8px}
.analysis-queue{padding:10px;gap:6px}
.analysis-queue-row{padding:8px 12px;gap:4px 10px}
.analysis-queue-row b{grid-column:auto}
.analysis-offer-form,.analysis-next{margin-top:10px;padding:12px}
.analysis-actions{margin-top:9px}
.analysis-offer-form h2{margin-bottom:9px}
.analysis-offer-form input,.analysis-offer-form select{min-height:29px}
.product-editor-dialog{padding:16px;max-height:calc(100dvh - 32px)}
.product-editor-heading{top:-16px;padding:8px 0}
.product-editor-dialog .field-grid{gap:8px 12px}
.product-editor-dialog input:not([type=checkbox]){height:34px;margin-top:3px}
.recovery-page{padding:20px}
.brand-panel{min-height:100dvh;padding:32px 48px}
.brand-copy{margin-top:clamp(30px,8vh,90px)}
.brand-footer{padding-top:140px}
.login-panel{padding:24px 40px}
.login-content{padding:20px 0}
.login-form{margin-top:22px}
.login-form>input{margin-bottom:16px}
.small-symbol{margin-bottom:16px}
.login-help{margin-top:16px;padding-top:16px}
@media(min-width:1280px){
 .profile-layout{grid-template-columns:240px minmax(400px,1fr) 250px;grid-template-areas:'photo data signature'}
 .profile-layout .profile-signature{padding:14px}
 .content:has(.commercial-ledger) .module-sections{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(min-width:1500px){:root .parameter-list{grid-template-columns:repeat(3,minmax(0,1fr))}.field-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1050px){
 .profile-layout{max-width:none;grid-template-columns:220px minmax(0,1fr)}
 .company-layout{grid-template-columns:1fr}.company-logo{max-width:none}
 .company-logo img{width:auto;max-width:220px}.company-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
 .company-field-address_line1{grid-column:1/-1}
}
@media(max-width:760px){
 .sidebar{top:56px}.content,.content:has(.quote-desk){padding:12px}
 .page-heading{flex-wrap:wrap;margin:8px 0 12px}.profile-picker{width:100%}.profile-picker label{flex:1;min-width:0}
 .profile-layout{grid-template-columns:1fr;grid-template-areas:'data' 'signature' 'photo'}
 :root .parameter-list{grid-template-columns:1fr}
 .topbar{height:auto;padding:8px 12px}.sidebar .wordmark{margin-bottom:16px}
 .brand-panel{min-height:auto;padding:20px 26px}.brand-copy{margin-top:20px}.brand-footer{display:none}
 .login-panel{padding:20px 26px}.team-presence-panel{left:auto;right:0}
 .app-footer{padding:8px 12px}
}
@media(max-width:520px){.company-fields,.company-fields:first-of-type{grid-template-columns:1fr}.company-field-address_line1{grid-column:auto}}
@media(pointer:coarse){.content .button,.content input:not([type=checkbox]):not([type=radio]):not([type=file]),.content select{min-height:42px}}

@media(min-width:1200px){
 .company-fields:first-of-type{grid-template-columns:repeat(4,minmax(0,1fr))}
 .company-fields:last-of-type{grid-template-columns:repeat(4,minmax(0,1fr))}
 .company-field-address_line2{grid-column:span 2}
 .supplier-editor .module-sections{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
 .supplier-editor .field-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(min-width:1280px){:root .parameter-list{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:1800px){.supplier-editor .field-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}


.supplier-editor .field-grid{row-gap:6px}.supplier-editor .panel h2{margin-bottom:8px}


/* Navigation stays beside the page indicator, above list results. */
.table-card>.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.pagination{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}
.pagination-current{white-space:nowrap;padding:0 6px;font-variant-numeric:tabular-nums}
.pagination .disabled{opacity:.45;cursor:default;pointer-events:none}
@media(max-width:640px){.pagination{width:100%;justify-content:center}.content .pagination .button{padding:6px 8px;min-height:32px}.pagination-current{padding:0 2px}}

.quote-document-dialog{width:min(1400px,96vw);max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:14px;border:1px solid #cbdde0;border-radius:10px;color:var(--ink);overflow:auto}
.quote-document-dialog::backdrop{background:rgb(6 28 35 / .55)}
.document-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:10px}
.document-toolbar h2{font-size:18px;margin:0}.quote-document-dialog .desk-heading{display:none}
.original-email-frame{display:block;width:100%;height:70vh;border:1px solid #dce6e9;background:white}
.quote-document-dialog .original-email-frame{height:calc(100dvh - 160px);max-height:calc(100dvh - 160px);margin-bottom:8px}
.part-record-actions{display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap;margin:4px 0 8px}
.part-record-actions [hidden]{display:none}

.quote-pdf-frame{width:100%;height:70vh;border:1px solid #dce6e9}.document-actions{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}
/* A separate control for each password, including confirmation and admin changes. */
.security-password-field{display:flex;align-items:stretch;gap:6px;margin-bottom:12px}
.security-password-field input{min-width:0;flex:1;margin:0!important}
.security-password-field button{flex:0 0 auto;border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:6px;padding:0 12px;min-width:68px}
/* Quotation dashboard: status remains readable without relying on color. */
.quote-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:12px;padding:14px}
.quote-card{--quote-color:#566872;--quote-tint:#f0f3f5;border:1px solid #d5e0e5;border-radius:9px;overflow:hidden;text-decoration:none;color:#163a47;background:#fff;min-width:0;transition:box-shadow .15s,transform .15s}
.quote-card:hover{box-shadow:0 4px 14px #173c4720;transform:translateY(-2px)}
.quote-card:focus-visible{outline:3px solid #008d99;outline-offset:3px}
.quote-card--pending{--quote-color:#174c80;--quote-tint:#eaf2fb}
.quote-card--quoted{--quote-color:#247342;--quote-tint:#e9f5ed}
.quote-card--noquote{--quote-color:#926508;--quote-tint:#fff5da}
.quote-card--order{--quote-color:#65509c;--quote-tint:#f1edf9}
.quote-card--canceled{--quote-color:#91443e;--quote-tint:#fbeeea}
.quote-card>header{display:flex;align-items:center;justify-content:space-between;gap:8px;background:var(--quote-color);color:#fff;padding:10px 13px}
.quote-card>header strong{font-size:17px}.quote-card>header span{font-size:11px;overflow-wrap:anywhere;text-align:right}
.quote-card-body{padding:12px 13px}.quote-card-body h2{font-size:15px;line-height:1.35;margin:0;overflow-wrap:anywhere}
.quote-card-reference{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px;color:#526d79;margin:5px 0 10px}
.quote-card dl{margin:0;display:grid;gap:5px;font-size:12px}.quote-card dl>div{display:flex;justify-content:space-between;gap:10px;padding:0;border:0;font-size:12px}.quote-card dt{color:#617985}.quote-card dd{margin:0;text-align:right;overflow-wrap:anywhere}
.quote-card-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px;padding:8px;background:var(--quote-tint);color:var(--quote-color);border-radius:5px;font-size:12px}
.quote-card-status{font-weight:600}.quote-card-footer strong{white-space:nowrap}
@media(max-width:550px){.quote-grid{grid-template-columns:1fr;padding:10px}}

.quote-pdf-pages{background:#e5e9eb;padding:12px;display:grid;gap:12px;justify-items:center}.quote-pdf-pages img{display:block;width:100%;max-width:794px;height:auto;background:white;box-shadow:0 1px 5px #0002}.document-checks{margin-top:10px}.document-checks summary{cursor:pointer}

.quote-pdf-pages:not(.pdf-expanded) img{width:auto;max-width:100%;max-height:calc(100dvh - 210px);object-fit:contain}.document-actions:not(:has(.primary)) + .desk-note{display:none}.quote-document-dialog .document-toolbar{position:sticky;top:-14px;background:white;z-index:1}

.support-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;background:#e7eef1;padding:6px 10px}.support-heading h3{padding:0!important;margin:0!important}.support-heading label{display:flex;align-items:center;gap:5px;font-size:11px;margin:0}.support-heading input{width:auto}
.history-rows{overflow-y:auto;overflow-x:hidden}.history-record{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px 10px;padding:8px 10px;border-bottom:1px solid #d9e2e6}.history-record[hidden]{display:none!important}.history-record:nth-child(even){background:#f1f5f6}.history-record>div{min-width:0;overflow-wrap:anywhere}.history-record small{display:block;font-size:9px;color:#607985}.history-record span{display:block;font-size:11px}.history-customer{grid-column:span 2}.history-Observacao{grid-column:span 2}.desk-support .table-scroll table{table-layout:fixed;width:100%;min-width:0}.desk-support td,.desk-support th{white-space:normal!important;overflow-wrap:anywhere;padding:6px!important}.desk-support .table-scroll{max-width:100%;overflow-x:hidden}.desk-support,.desk-left{min-width:0}.money-input input{font-variant-numeric:tabular-nums}
@media(max-width:600px){.history-record{grid-template-columns:repeat(3,minmax(0,1fr))}}
.quote-add-inline{display:flex;gap:8px;align-items:end;flex-wrap:wrap;margin:8px 0 12px}.quote-add-inline .pn-search{position:relative;flex:1;max-width:360px;min-width:180px}.quote-add-inline label{display:block;font-size:11px;margin-bottom:4px}.quote-add-inline input{width:100%}.quote-add-inline [role=status]{font-size:11px;flex-basis:100%}.quote-add-inline [role=listbox]{position:absolute;top:100%;left:0;right:0;z-index:20;max-height:240px;overflow-y:auto;background:white;border:1px solid #b5cecf;box-shadow:0 5px 15px #102d3330;border-radius:5px}.quote-add-inline [role=option]{padding:8px 10px;cursor:pointer;border-bottom:1px solid #e4eeee}.quote-add-inline [role=option] small{display:block;overflow-wrap:anywhere}.quote-add-inline [role=option]:hover,.quote-add-inline [aria-selected=true]{background:#dff1ef}
/* Missing required fields and optional review cues are intentionally distinct. */
.inline-fields .pn-required-missing{border:1px solid #dc4545!important;background:#fff0f0!important}.inline-fields .pn-field-attention{border:1px solid #ce9d42!important;background:#fff9e9!important}.pn-validation{font-size:11px;color:#a62525;margin:5px 0 0}.pn-validation:empty{display:none}
/* Analysis: match the compact transaction-history density across every source. */
.analysis-sources{gap:5px}
.analysis-sources .support-block h3{padding:5px 8px;margin:0;font-size:11px;line-height:16px}
.analysis-sources .support-message{padding:6px 8px;margin:0;font-size:11px}
.analysis-sources table{width:100%;min-width:0;table-layout:fixed}
.analysis-sources th,.analysis-sources td{padding:4px 7px!important;line-height:18px;font-size:11px;white-space:normal!important;overflow-wrap:anywhere}
.analysis-sources th{font-size:9px;padding-top:3px!important;padding-bottom:3px!important}
.analysis-sources .compact-action{padding:2px 7px!important;min-height:18px;height:18px;line-height:12px;font-size:10px;white-space:nowrap;vertical-align:middle}
.analysis-sources [data-source=history] th:nth-child(3){width:19%}
.analysis-sources [data-source=offers] th:nth-child(1){width:11%}
.analysis-sources [data-source=offers] th:nth-child(2),.analysis-sources [data-source=offers] th:nth-child(3),.analysis-sources [data-source=offers] th:nth-child(4){width:5%}
.analysis-sources [data-source=offers] th:nth-child(5){width:9%}
.analysis-sources [data-source=offers] th:nth-child(6){width:7%}
.analysis-sources [data-source=offers] th:nth-child(7){width:13%}
.analysis-sources [data-source=offers] th:nth-child(8){width:17%}
.analysis-sources [data-source=offers] th:last-child{width:82px}
.analysis-offer-form{padding:8px 10px;margin-top:6px}
.analysis-offer-form h2{font-size:16px;line-height:20px;margin:0 0 5px}
.analysis-offer-form [data-offer-notice]{font-size:11px;line-height:16px;margin:3px 0}
.analysis-offer-form [data-offer-notice]:empty{display:none}
.analysis-offer-form .inline-fields{grid-template-columns:repeat(12,minmax(0,1fr));gap:5px 7px;padding:0;margin:0}
.analysis-offer-form .inline-fields>div{grid-column:span 1;min-width:0}
.analysis-offer-form .inline-fields>div:has([name=Description]),.analysis-offer-form .inline-fields>div:has([name=Certificado]),.analysis-offer-form .inline-fields>div:has([name=Lead_Time]),.analysis-offer-form .inline-fields>div:has([name=Preco_Unit]){grid-column:span 3}
.analysis-offer-form .inline-fields>div:has([name=Trace]),.analysis-offer-form .inline-fields>div:has([name=Garantia]){grid-column:span 2}
.analysis-offer-form .inline-fields>div:has([name=Observacao]){grid-column:span 4}
.analysis-offer-form label{font-size:10px;margin-bottom:2px;line-height:13px}
.analysis-offer-form .inline-fields input,.analysis-offer-form .inline-fields select{height:27px!important;min-height:27px!important;padding:3px 6px!important;font-size:11px}
.analysis-offer-form .money-input{height:27px;min-height:27px}
.analysis-actions{margin-top:6px}.analysis-actions .button{min-height:28px;padding:5px 12px;font-size:11px}
@media(max-width:1000px){.analysis-offer-form .inline-fields{grid-template-columns:repeat(6,minmax(0,1fr))}.analysis-sources th,.analysis-sources td{font-size:10px;padding:3px!important}}
@media(max-width:600px){.analysis-offer-form .inline-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.analysis-offer-form .inline-fields>div{grid-column:span 1!important}.analysis-offer-form .inline-fields>div:has([name=Description]),.analysis-offer-form .inline-fields>div:has([name=Observacao]){grid-column:span 2!important}}
/* Quote support: PN identity and actions share a compact row. */
.desk-support{padding:7px 9px}
.desk-support .support-title{display:flex;align-items:center;gap:3px 8px;flex-wrap:wrap}
.desk-support .support-title .eyebrow{flex-basis:100%;font-size:9px;line-height:12px;margin:0;letter-spacing:1px}
.desk-support .support-title h2{font-size:16px;line-height:24px;margin:0;overflow-wrap:anywhere}
.desk-support .support-title p:not(.eyebrow){flex:1;min-width:80px;font-size:11px;line-height:16px;margin:0;overflow-wrap:anywhere}
.desk-support .support-title p:empty{display:none}
.desk-support .support-title .pn-tag{font-size:9px;padding:1px 4px;line-height:16px}
.desk-support .compact-action{font-size:10px;line-height:14px;padding:2px 6px;min-height:20px;vertical-align:middle}
.desk-support .support-filters{margin:3px 0;gap:6px;font-size:10px;line-height:16px}
.desk-support .support-filters label{margin:0}
.desk-support .support-block{margin-top:5px}
.desk-support .support-heading{padding:3px 7px;gap:4px}
.desk-support .support-heading h3{font-size:11px;line-height:16px}
.desk-support .support-heading label{font-size:10px;line-height:16px}
.desk-support .support-heading input{height:13px;margin:0}
.desk-support .support-block th{padding:3px 6px!important;line-height:13px;font-size:9px}
.desk-support .support-block td{padding:3px 6px!important;line-height:16px;font-size:11px}
.desk-support .support-block:has([data-quote-offer]) th:last-child{width:80px}
.desk-support .support-block .support-message{padding:5px 7px;line-height:16px}
.desk-support .history-record{padding:4px 7px;gap:2px 7px}
.desk-support .history-record small{line-height:12px}
.desk-support .history-record span{line-height:15px}
.desk-support .legacy-support{margin:4px 0}
.desk-support .legacy-support summary{padding:4px;font-size:11px}
.desk-support .desk-note{margin:4px 7px;font-size:10px}
