@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{font-family:'DM Sans',Arial,sans-serif;color:#1d3141;background:#f4f7fa;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}input,select{background:#fff;border:1px solid #cbd7e3;border-radius:9px;padding:12px 13px;outline:none;color:#1d3141;min-height:43px}input:focus,select:focus{border-color:#4b90aa;box-shadow:0 0 0 3px #4b90aa22}button:focus-visible,a:focus-visible{outline:3px solid #69a9c1;outline-offset:2px}.login-shell{min-height:100vh;display:grid;grid-template-columns:minmax(320px,1fr) minmax(420px,1fr)}.login-hero{background:#162934;color:#fff;padding:70px min(8vw,110px);display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.login-hero:after{content:'';position:absolute;right:-170px;bottom:-250px;width:630px;height:630px;border:1px solid #ffffff22;border-radius:50%;box-shadow:0 0 0 80px #ffffff07,0 0 0 160px #ffffff06}.brand{display:flex;align-items:center;gap:12px;font-family:Manrope,sans-serif;font-weight:800;letter-spacing:.12em;font-size:18px}.brand-mark{background:#daecf2;color:#173644;border-radius:11px;width:39px;height:39px;display:grid;place-items:center;font-size:24px;font-style:italic;letter-spacing:0}.login-hero h1{font-family:Manrope,sans-serif;font-size:clamp(34px,4vw,58px);line-height:1.12;max-width:600px;letter-spacing:-.05em;margin:0 0 20px}.login-hero p{color:#b9ced7;font-size:16px;max-width:480px;line-height:1.7}.hero-foot{color:#92adb9}.login-panel{display:grid;place-items:center;padding:45px;background:#fbfcfd}.login-card{width:min(100%,410px)}.eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:.18em;color:#648095;font-weight:800}.login-card h2,.content h1{font:800 30px/1.2 Manrope,sans-serif;letter-spacing:-.035em;margin:12px 0 10px}.subtle{color:#6f8492;line-height:1.5}.login-card form{margin-top:34px}.field{display:grid;gap:8px;margin-bottom:18px}.field span{font-weight:700;font-size:12px}.field input{width:100%}.check{display:flex;align-items:center;gap:9px;color:#516b7b;margin:2px 0 22px}.check input{min-height:0}.primary{border:0;background:#203d4d;color:#fff;border-radius:9px;padding:12px 18px;font-weight:700}.primary:hover{background:#2d5568}.login-card .primary{width:100%}.error{color:#b83535;background:#fff0f0;border:1px solid #f5caca;padding:12px;border-radius:8px;margin:12px 0}.app-shell{display:grid;grid-template-columns:238px 1fr;min-height:100vh}.sidebar{background:#172a36;color:#d3e0e6;display:flex;flex-direction:column;padding:25px 14px}.sidebar .brand{padding:4px 10px 30px}.nav-title{color:#7795a3;text-transform:uppercase;letter-spacing:.15em;font-size:10px;font-weight:800;margin:23px 12px 9px}.nav-item{border:0;background:transparent;color:#bfd0d8;text-align:left;width:100%;padding:11px 13px;border-radius:8px;display:flex;gap:11px;align-items:center;font-weight:600}.nav-item:hover{background:#ffffff0d}.nav-item.active{background:#315266;color:#fff}.nav-item .icon{width:18px;text-align:center;font-size:16px}.sidebar-foot{margin-top:auto;border-top:1px solid #ffffff1c;padding:18px 12px 5px;color:#9fb5c0;font-size:12px}.main-area{min-width:0}.topbar{height:72px;background:#fff;border-bottom:1px solid #e0e8ee;display:flex;align-items:center;justify-content:space-between;padding:0 35px;gap:16px}.topbar strong{font-family:Manrope,sans-serif}.top-right{display:flex;align-items:center;gap:15px}.store-switch{display:flex;align-items:center;gap:8px;color:#69818f;font-size:12px}.store-switch select{max-width:230px;padding:7px 9px;min-height:35px;border-color:#d9e2e8}.logout{background:none;border:0;color:#456579;font-weight:700}.content{padding:34px 38px;max-width:1800px;margin:auto}.page-head{display:flex;justify-content:space-between;gap:20px;align-items:end;margin-bottom:26px}.page-head h1{margin:7px 0}.page-head p{margin:0;color:#708796}.page-head .note{font-size:12px;color:#537183;background:#e8f2f6;border-radius:99px;padding:8px 13px;font-weight:700;white-space:nowrap}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:22px}.stat{background:#fff;border:1px solid #e0e8ee;border-radius:13px;padding:21px;box-shadow:0 7px 25px #1e394008}.stat .label{font-size:12px;color:#6d8492;font-weight:700}.stat strong{display:block;font:800 28px Manrope,sans-serif;margin:10px 0 0}.panel{background:#fff;border:1px solid #e0e8ee;border-radius:13px;box-shadow:0 7px 25px #1e394008;overflow:hidden}.panel-head{padding:22px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #e7edf2}.panel-head h2{font:800 16px Manrope,sans-serif;margin:0}.panel-head p{font-size:12px;color:#7a8d99;margin:5px 0 0}.toolbar{display:flex;gap:10px;align-items:center}.toolbar input{min-width:250px}.secondary{border:1px solid #cbd9e2;background:#fff;color:#315065;border-radius:9px;padding:10px 14px;font-weight:700}.secondary:hover{background:#f2f7f9}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;min-width:690px}th{text-align:left;background:#f8fafb;text-transform:uppercase;letter-spacing:.09em;color:#738a98;font-size:10px;padding:14px 19px;white-space:nowrap}td{padding:14px 19px;border-top:1px solid #eaf0f3;vertical-align:middle}tbody tr:hover{background:#fbfdfe}td b{font-weight:700}.muted{color:#8396a2}.empty{padding:38px;text-align:center;color:#758b9a}.link{background:none;border:0;color:#226080;padding:0;font-weight:700}.paging{border-top:1px solid #eaf0f3;padding:13px 20px;display:flex;justify-content:space-between;align-items:center;color:#7d909b}.notice{background:#ebf4f5;border:1px solid #cee2e6;border-radius:10px;padding:18px 20px;color:#3e6570;line-height:1.6}.split{display:grid;grid-template-columns:1fr 1fr;gap:18px}.modal-backdrop{position:fixed;inset:0;background:#102634a6;display:grid;place-items:center;padding:16px;z-index:5}.modal{background:#fff;border-radius:14px;width:min(680px,100%);max-height:calc(100vh - 32px);overflow:auto;box-shadow:0 25px 70px #10263455}.modal-head{padding:20px 24px;border-bottom:1px solid #e6edf1;display:flex;justify-content:space-between;align-items:center}.modal-head h2{margin:0;font:800 19px Manrope,sans-serif}.modal-body{padding:20px 24px}.modal-close{border:0;background:transparent;font-size:24px;color:#607d8a}.detail-row{display:flex;justify-content:space-between;gap:15px;padding:12px 0;border-bottom:1px solid #ebf0f3}.detail-row:last-child{border:0}.mobile-toggle{display:none}@media(max-width:1050px){.cards{grid-template-columns:repeat(2,1fr)}.content{padding:28px 22px}.topbar{padding:0 22px}}@media(max-width:760px){.login-shell{display:block}.login-hero{min-height:190px;padding:30px}.login-hero h1{font-size:29px}.login-hero p,.hero-foot{display:none}.login-panel{min-height:calc(100vh - 190px);padding:25px}.app-shell{display:block}.sidebar{display:none;position:fixed;z-index:4;top:0;left:0;bottom:0;width:245px;box-shadow:20px 0 50px #132b4055}.sidebar.open{display:flex}.mobile-toggle{display:block;background:none;border:0;font-size:23px;color:#294658}.topbar{height:auto;min-height:64px;padding:10px 14px}.topbar strong{font-size:13px}.top-right{gap:6px}.store-switch span{display:none}.store-switch select{max-width:130px;font-size:11px}.logout{font-size:11px}.content{padding:23px 13px}.page-head{align-items:start;flex-direction:column}.cards,.split{grid-template-columns:1fr}.panel-head{flex-direction:column;align-items:stretch;padding:18px}.toolbar{width:100%}.toolbar input{min-width:0;flex:1}}

.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.form-actions .modal-close{font-size:14px;padding:10px 14px}.transfer-draft-head{display:flex;align-items:center;justify-content:flex-end;gap:14px;margin-bottom:12px}.transfer-draft-head span{border:1px solid #d5e1e7;border-radius:8px;background:#f4f8fa;padding:9px 13px}.transfer-draft-head strong{display:inline-block;min-width:72px;text-align:right;font-size:17px;color:#183b4d}.transfer-add{display:flex;align-items:end;gap:10px}.transfer-add .field{flex:1;min-width:0}.transfer-add .quantity{flex:0 0 130px}.transfer-add button{margin-bottom:18px}.transfer-items{border:1px solid #e0e8ee;border-radius:9px;padding:8px 15px;min-height:52px;color:#576d7d}.transfer-items .detail-row{align-items:center}.modal .field select{width:100%}@media(max-width:760px){.transfer-draft-head{justify-content:space-between}.transfer-add{flex-wrap:wrap}.transfer-add .field:first-child{flex-basis:100%}.transfer-add button{margin-bottom:16px}}
.supplier-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}@media(max-width:600px){.supplier-grid{grid-template-columns:1fr}}
.row-actions{white-space:nowrap}.row-actions .link+.link{margin-left:14px}.entry-detail h3{margin:0 0 12px;font-size:15px}.entry-detail .detail-row strong{max-width:62%;text-align:right;overflow-wrap:anywhere}
.grid-action-bar{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.grid-action-bar>span{color:#6b818e;font-size:12px}.grid-action-bar .secondary{white-space:nowrap}.grid-action-column{display:none}.grid-selectable-row{cursor:pointer}.grid-selectable-row.selected{background:#e6f2f7!important;box-shadow:inset 3px 0 #287393}.grid-selectable-row:focus{outline:2px solid #4b90aa;outline-offset:-2px}
.customer-blocked{background:#ffe1e1}.customer-spc{background:#ffe0c2}.customer-collection{background:#ffd2fa}
.customer-summary{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:8px 20px;padding:14px 16px;border-top:1px solid #d9e4e9;background:#fff}.customer-summary>span{grid-column:1/-1;color:#6b818e}.customer-summary div{display:flex;gap:7px;min-width:0}.customer-summary div span{color:#6b818e;white-space:nowrap}.customer-summary div strong{overflow:hidden;text-overflow:ellipsis}
.customer-situation-modal{width:min(1280px,100%)}.customer-situation-head{display:grid;grid-template-columns:2fr 1fr 1fr;gap:6px 18px;padding:10px 12px;background:#eef5f8;border:1px solid #d5e3e9;border-radius:8px}.customer-situation-head strong{grid-column:1/-1}.customer-situation-section{margin-top:12px}.customer-situation-section h3{margin:0;padding:7px 10px;background:#edf3ff;color:#173d65;font-size:14px}.customer-situation-section .table-scroll{max-height:180px}.customer-situation-total,.customer-situation-summary{display:flex;justify-content:flex-end;gap:24px;padding:8px 10px;background:#f7fafb;color:#173d65}.customer-situation-total{font-size:15px}.customer-situation-summary{flex-wrap:wrap}
@media(max-width:800px){.customer-summary{grid-template-columns:1fr 1fr}.customer-situation-head{grid-template-columns:1fr}.customer-situation-head strong{grid-column:auto}}
.wide-modal{width:min(980px,100%)}.lookup-row{display:flex;align-items:end;gap:10px}.lookup-row .field{flex:1;min-width:0}.lookup-row button{margin-bottom:18px}.entry-editor{border:1px solid #dce7ee;border-radius:10px;padding:18px;margin:15px 0;background:#f9fcfd}.entry-editor h3{margin:0 0 16px}.cost-preview{display:flex;align-items:center;justify-content:space-between;margin:4px 0 17px}.price-grid{display:grid;grid-template-columns:1fr 130px 130px;align-items:center;gap:8px 12px}.price-grid>span{font-size:11px;text-transform:uppercase;color:#708796;font-weight:700}.price-grid input{min-width:0;width:100%}.wide-modal hr{border:0;border-top:1px solid #e0e8ee;margin:20px 0}@media(max-width:600px){.price-grid{grid-template-columns:1fr 95px 95px;gap:6px}.price-grid input{padding:8px}}
.entry-create-line{display:flex;align-items:end;gap:10px}.entry-create-line .field{flex:1;min-width:0}.entry-create-line button{margin-bottom:18px;white-space:nowrap}@media(max-width:600px){.entry-create-line{flex-wrap:wrap}.entry-create-line .field{flex-basis:100%}.entry-create-line button{margin-bottom:0}}
.xml-review{border:1px solid #dce7ee;border-radius:10px;padding:15px;margin:10px 0 18px;background:#f8fbfd}.xml-review h3{margin:0 0 5px}.xml-review p{margin:0 0 10px}.xml-review-list{max-height:220px;overflow:auto}.xml-review-row{display:flex;align-items:center;gap:10px;border-top:1px solid #e4edf2;padding:9px 0}.xml-review-row span{flex:1;min-width:0}.xml-review-row small{display:block;color:#6f8492;margin-top:3px}.xml-review-row .secondary{padding:7px 10px}@media(max-width:600px){.xml-review-row{flex-wrap:wrap}.xml-review-row span{flex-basis:100%}}
.wide-modal .modal-head{gap:10px;flex-wrap:wrap}.wide-modal .modal-head h2{flex:1;min-width:180px}
.entry-note-items{border:1px solid #dce7ee;border-radius:9px;max-height:40vh;overflow:auto;margin:12px 0}.entry-note-items details{border-bottom:1px solid #e8eef3;padding:11px 13px}.entry-note-items details:last-child{border-bottom:0}.entry-note-items summary{cursor:pointer;font-weight:700;line-height:1.4}.entry-note-items .detail-row{font-size:12px}
.field textarea{font:inherit;color:#1d3141;border:1px solid #cbd7e3;border-radius:9px;padding:12px 13px;resize:vertical;width:100%}.field textarea:focus{outline:0;border-color:#4b90aa;box-shadow:0 0 0 3px #4b90aa22}.row-actions .link{margin-left:0!important;margin-right:12px}
.money-words{display:block;min-height:31px;padding:6px 10px;border-left:4px solid #c58b18;border-radius:5px;background:#fff6df;color:#8a5800;font-size:15px;font-style:normal;font-weight:700;line-height:1.25}
.required-fields-note{margin:10px 0 4px;color:#6b818e;font-size:12px}.required-fields-note strong{color:#b42318;font-size:14px}.field>span:has(+input:required),.field>span:has(+select:required){font-weight:800}.customer-form>.required-fields-note{padding:0 2px;margin-top:8px}
.customer-modal{width:min(900px,100%);display:flex;flex-direction:column;overflow:hidden;max-height:min(94vh,1000px)}
.customer-modal .modal-head{flex:none}.customer-modal .modal-head .eyebrow{display:block;margin-bottom:5px}
.customer-form{display:flex;flex-direction:column;min-height:0;padding:0 24px 20px;overflow:hidden}
.customer-top{display:grid;grid-template-columns:170px 1fr;gap:16px;padding-top:18px;flex:none}
.customer-top:has(>label:only-child){grid-template-columns:170px}
.customer-top input[readonly]{background:#f3f7f9;color:#597080}
.customer-tabs{display:flex;gap:3px;overflow:auto;border-bottom:1px solid #dce7ed;flex:none;scrollbar-width:thin}
.customer-tabs button{border:0;background:transparent;color:#587080;font-size:12px;font-weight:700;white-space:nowrap;padding:12px 11px;border-bottom:3px solid transparent}
.customer-tabs button[aria-selected=true]{color:#20485e;border-bottom-color:#2c7595}
.customer-content{overflow:auto;min-height:100px;flex:1;padding:18px 2px 8px}
.customer-panel[hidden]{display:none}.customer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}
.customer-full{grid-column:1/-1}.customer-lookup{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:17px}
.customer-lookup .subtle{font-size:12px}.customer-hint{background:#eef6f8;border:1px solid #d6e8ed;border-radius:8px;padding:11px 13px;color:#466675;font-size:12px;margin:0 0 16px}
.customer-form .form-error{margin:8px 0 0;flex:none}.customer-form .form-actions{border-top:1px solid #e3ebf0;padding-top:15px;margin-top:0;flex:none}
@media(max-width:620px){.customer-modal{max-height:100vh;border-radius:0}.modal-backdrop:has(.customer-modal){padding:0}.customer-form{padding:0 14px 14px}.customer-grid,.customer-top{grid-template-columns:1fr}.customer-modal .modal-head{padding:15px}.customer-tabs button{font-size:11px;padding:10px 8px}}
.store-switch strong{color:#29495c;font-size:12px;max-width:290px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.terminal-setup{padding:26px;max-width:700px}.terminal-setup h2{margin:0 0 8px}.terminal-setup p{color:#6e8491;margin:0 0 20px}
.terminal-setup .toolbar select{min-width:270px;flex:1}.terminal-setup .form-error{margin-top:18px}
@media(max-width:760px){.store-switch strong{max-width:135px;font-size:11px}.terminal-setup .toolbar{flex-direction:column;align-items:stretch}.terminal-setup .toolbar select{min-width:0}}
.search-panel{margin-bottom:18px}.search-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}.search-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 16px;padding:20px 24px;align-items:end}.search-grid.presale-search-grid{grid-template-columns:minmax(150px,.85fr) minmax(190px,1.35fr) minmax(105px,.55fr) repeat(2,minmax(150px,1fr)) auto}.search-grid.service-order-search-grid{grid-template-columns:minmax(115px,1fr) minmax(160px,1.35fr) minmax(120px,.9fr) minmax(120px,.9fr) minmax(120px,.9fr) minmax(110px,.8fr) auto}.search-grid .field{margin:0}.store-code-field input{font-weight:700;background:#f3f7f9}.search-actions{display:flex;align-items:end}.search-actions button{min-height:43px}.search-panel .panel-head .primary{flex:none}@media(max-width:1100px){.search-grid.presale-search-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.search-grid.service-order-search-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:900px){.search-grid,.search-grid.presale-search-grid,.search-grid.service-order-search-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.search-grid,.search-grid.presale-search-grid,.search-grid.service-order-search-grid{grid-template-columns:1fr;padding:18px}.search-actions button{width:100%}.search-panel .panel-head{align-items:stretch}.search-head-actions{align-items:stretch;flex-direction:column}.search-panel .panel-head .primary,.search-head-actions .secondary{width:100%}}
.stock-statistics-heading{align-items:flex-end}.stock-statistics-heading h2{font:800 24px/1.2 Manrope,sans-serif;letter-spacing:-.035em;margin:6px 0 4px}.stock-statistics-heading p{margin:0}.stock-statistics-heading .eyebrow{font-size:9px}@media(max-width:600px){.stock-statistics-heading{align-items:stretch}.stock-statistics-heading h2{font-size:21px}}
.embedded-page-heading{align-items:flex-end}.embedded-page-heading h2{font:800 24px/1.2 Manrope,sans-serif;letter-spacing:-.035em;margin:6px 0 4px}.embedded-page-heading p{margin:0}.embedded-page-heading .eyebrow{font-size:9px}.panel-guidance{display:block;margin-top:5px;color:#81939e;font-size:10px}@media(max-width:600px){.embedded-page-heading{align-items:stretch}.embedded-page-heading h2{font-size:21px}}
.search-grid.product-search-grid{grid-template-columns:minmax(150px,220px) minmax(300px,1fr) auto auto}.product-stock-filter{align-self:end;min-height:43px;margin:0;padding:0 4px;white-space:nowrap}.product-stock-filter input{flex:none}@media(max-width:800px){.search-grid.product-search-grid{grid-template-columns:minmax(145px,.8fr) minmax(220px,1.2fr)}.product-stock-filter{align-self:center}}@media(max-width:520px){.search-grid.product-search-grid{grid-template-columns:1fr}.product-stock-filter{min-height:auto}}
.search-grid.entry-search-grid{grid-template-columns:minmax(145px,.75fr) minmax(190px,1.15fr) minmax(145px,.75fr) minmax(190px,1.15fr) repeat(2,minmax(145px,.8fr)) minmax(145px,.8fr) auto}.entry-search-totals{display:flex;align-items:center;gap:24px;padding:12px 18px;border-top:1px solid #d8e3e9;background:#f5f9fb;color:#496675}.entry-search-totals span{margin-right:auto}.entry-search-totals strong{color:#183b4d}.table-scroll td small{display:block;margin-top:2px;color:#718793}@media(max-width:1250px){.search-grid.entry-search-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:900px){.search-grid.entry-search-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.entry-search-totals{align-items:flex-start;flex-direction:column;gap:5px}.entry-search-totals span{margin:0}}@media(max-width:600px){.search-grid.entry-search-grid{grid-template-columns:1fr}}
.entry-consultation-body{display:grid;grid-template-columns:minmax(0,2.4fr) minmax(260px,1fr);min-height:360px}.entry-consultation-list{max-height:clamp(360px,50vh,620px);border-right:1px solid #dce5ea}.entry-consultation-list table{min-width:600px}.entry-consultation-list th,.entry-consultation-list td{padding:8px 10px}.entry-consultation-list th:nth-child(4),.entry-consultation-list th:nth-child(5),.entry-consultation-list th:nth-child(6),.entry-consultation-list td:nth-child(4),.entry-consultation-list td:nth-child(5),.entry-consultation-list td:nth-child(6){text-align:right}.entry-consultation-list tr[data-entry-consult-row]{cursor:pointer}.entry-consultation-list tr[data-entry-consult-row].selected td{background:#dceef7;box-shadow:inset 0 1px #8bbbd0,inset 0 -1px #8bbbd0}.entry-consultation-list tr[data-entry-consult-row]:focus-visible{outline:2px solid #287393;outline-offset:-2px}.entry-consultation-detail{max-height:clamp(360px,50vh,620px);overflow:auto;padding:0 12px}.entry-consultation-detail>p{color:#647d8b}.entry-consultation-detail dl{margin:0}.entry-consultation-detail dl>div{display:grid;grid-template-columns:48% 52%;border-bottom:1px solid #e4eaee;min-height:30px;align-items:center;font-size:11px}.entry-consultation-detail dt{color:#526b79}.entry-consultation-detail dd{margin:0;overflow-wrap:anywhere;font-weight:600}.entry-consultation-actions{display:flex;flex-wrap:wrap;gap:8px;padding:12px 0}.entry-period-summary{border-top:1px solid #dce5ea;padding:10px 14px}.entry-period-summary h3{margin:0 0 9px;font-size:15px;color:#173d65}.entry-period-values{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}.entry-period-values>div{display:grid;gap:5px;border:1px solid #dbe5ea;border-radius:6px;padding:7px 9px;background:#f7fafb;min-width:0}.entry-period-values span{font-size:10px;color:#647d8b}.entry-period-values strong{font-size:12px;color:#173d65;overflow-wrap:anywhere}@media(max-width:1150px){.entry-period-values{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:850px){.entry-consultation-body{grid-template-columns:1fr}.entry-consultation-list{border-right:0;border-bottom:1px solid #dce5ea;max-height:370px}.entry-consultation-detail{max-height:300px}.entry-period-values{grid-template-columns:repeat(2,minmax(0,1fr))}}
.desktop-home{margin:-34px -38px;min-height:calc(100vh - 72px);background:#f7f9fb}.desktop-menubar{display:flex;align-items:stretch;gap:2px;min-height:40px;background:#fff;border-bottom:1px solid #cdd9e0;padding:0 12px;overflow:visible;position:relative;z-index:50}.desktop-menu{position:relative}.desktop-menu summary,.desktop-menu-pending,.desktop-menu-exit{display:flex;align-items:center;min-height:40px;padding:0 12px;white-space:nowrap;font-size:12px;color:#253e4e;background:transparent;border:0;cursor:pointer}.desktop-menu summary{list-style:none}.desktop-menu summary::-webkit-details-marker{display:none}.desktop-menu summary:hover,.desktop-menu[open] summary,.desktop-menu-exit:hover{background:#e9f2f6}.desktop-menu-pending{color:#9baeb9;cursor:default}.desktop-menu-items{position:absolute;z-index:60;top:100%;left:0;min-width:215px;background:#fff;border:1px solid #cdd9e0;box-shadow:0 12px 24px #183e521f;padding:5px}.desktop-menu-items button{display:block;width:100%;border:0;background:#fff;text-align:left;padding:9px 11px;color:#294559;font-size:12px}.desktop-menu-items button:hover{background:#eaf3f6}.desktop-toolbar{display:flex;gap:0;min-height:104px;background:#fff;border-bottom:1px solid #cbd7df;overflow-x:auto;scrollbar-width:thin}.desktop-shortcut{width:105px;min-width:105px;padding:10px 6px;border:0;border-right:1px solid #dbe4e9;background:#fff;color:#203848;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;text-align:center;font-size:11px;font-weight:700;line-height:1.15}.desktop-shortcut:hover{background:#eef6f9}.desktop-shortcut-icon{width:47px;height:47px;border-radius:13px;display:grid;place-items:center;font-size:27px;font-weight:800;background:#eaf2f8;color:#2c6c9c}.desktop-shortcut-icon.orange{background:#fff0dc;color:#b86c1d}.desktop-shortcut-icon.green{background:#e7f5ea;color:#238856}.desktop-shortcut-icon.violet{background:#efeafb;color:#7356b5}.desktop-shortcut-icon.teal{background:#e4f5f5;color:#278184}.desktop-shortcut-icon.amber{background:#fff5d8;color:#a98417}.desktop-shortcut-icon.rose{background:#fdebf0;color:#bc5273}.desktop-shortcut-icon.charcoal{background:#e7ebee;color:#354956}.desktop-status{display:flex;flex-wrap:wrap;min-height:28px;background:#f7fbfd;border-bottom:1px solid #d3dde3;color:#4a6676;font-size:11px}.desktop-status span{padding:6px 13px;border-right:1px solid #d3dde3}.desktop-status strong{color:#243e50}.desktop-body{display:flex;min-height:calc(100vh - 244px)}.desktop-rail{width:92px;flex:none;background:#fff;border-right:1px solid #d0dce2}.desktop-shortcut.vertical{width:92px;min-width:92px;min-height:100px;border-right:0;border-bottom:1px solid #dbe4e9;font-size:10px}.desktop-shortcut.vertical .desktop-shortcut-icon{width:43px;height:43px;font-size:24px}.desktop-canvas{flex:1;min-width:0;padding:24px;background:#f7f9fb}.desktop-canvas .terminal-setup{margin:auto}.desktop-canvas .notice{max-width:700px;margin:auto}@media(max-width:1050px){.desktop-home{margin:-28px -22px}.desktop-menubar{overflow-x:auto}}@media(max-width:760px){.desktop-home{margin:-23px -13px;min-height:calc(100vh - 64px)}.desktop-menubar{padding:0 4px}.desktop-menu summary,.desktop-menu-pending,.desktop-menu-exit{padding:0 9px}.desktop-toolbar{min-height:94px}.desktop-shortcut{width:91px;min-width:91px}.desktop-shortcut-icon{width:40px;height:40px;font-size:23px}.desktop-rail{display:none}.desktop-body{min-height:calc(100vh - 230px)}.desktop-canvas{padding:14px}}
.desktop-toolbar-brand{width:110px;min-width:110px;border:0;border-right:1px solid #dbe4e9;background:#fff;cursor:pointer;font:inherit;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:11px;letter-spacing:.08em;color:#203d4d}.desktop-toolbar-brand:hover{background:#eef6f9}.desktop-toolbar-brand span{width:51px;height:51px;display:grid;place-items:center;background:#dceef5;border-radius:12px;color:#1c668e;font-size:34px;font-weight:800;font-style:italic}.desktop-toolbar-brand strong{font-family:Manrope,sans-serif}@media(max-width:1050px){.desktop-menubar{overflow:visible;flex-wrap:wrap}}
.pricing-layout{display:grid;grid-template-columns:1fr 1fr;gap:20px}.pricing-card{border:1px solid #dce7ee;border-radius:10px;padding:18px;background:#fbfdfe}.pricing-card h3{margin:0 0 16px;font-size:15px}.pricing-field{display:grid;grid-template-columns:minmax(120px,1fr) minmax(120px,180px);align-items:center;gap:12px;margin-bottom:9px;font-size:12px}.pricing-field input{width:100%;text-align:right}.pricing-total{display:flex;justify-content:space-between;border-top:1px solid #dce7ee;padding-top:14px;margin-top:15px}.pricing-head,.pricing-row{display:grid;grid-template-columns:minmax(90px,1fr) minmax(92px,120px) minmax(92px,120px);gap:9px;align-items:center;margin-bottom:9px}.pricing-head{font-size:11px;color:#6d8492;text-transform:uppercase}.pricing-row input{width:100%;min-width:0;text-align:right}.pricing-card .subtle{font-size:11px;margin-bottom:0}@media(max-width:760px){.pricing-layout{grid-template-columns:1fr}.pricing-card{padding:14px}.pricing-field{grid-template-columns:1fr 135px}.pricing-head,.pricing-row{grid-template-columns:1fr 95px 95px}}
.pricing-advanced{border-top:1px solid #dce7ee;margin-top:12px;padding-top:12px}.pricing-advanced summary{cursor:pointer;color:#28647d;font-weight:700;font-size:12px}.pricing-advanced h4{font-size:12px;margin:15px 0 10px;color:#526e7e}.pricing-advanced .pricing-field{grid-template-columns:minmax(120px,1fr) minmax(120px,180px)}@media(max-width:760px){.pricing-advanced .pricing-field{grid-template-columns:1fr 135px}}
.product-modal{width:min(1040px,100%);max-height:min(94vh,1000px);display:flex;flex-direction:column;overflow:hidden}.product-modal .modal-head{flex:none}.product-modal .modal-head .eyebrow{display:block;margin-bottom:5px}.product-modal form{display:flex;flex-direction:column;min-height:0;flex:1}.product-header{display:flex;align-items:center;gap:20px;padding:15px 24px 0}.product-header .field{width:150px;margin:0}.product-header-note{color:#67818f;font-size:12px}.product-tabs{display:flex;gap:3px;overflow:auto;padding:12px 24px 0;border-bottom:1px solid #dce7ed;flex:none}.product-tabs button{border:0;background:transparent;color:#587080;font-size:12px;font-weight:700;white-space:nowrap;padding:12px 14px;border-bottom:3px solid transparent}.product-tabs button[aria-selected=true]{color:#20485e;border-bottom-color:#2c7595}.product-content{padding:22px 24px;overflow:auto;min-height:0;flex:1}.product-panel[hidden]{display:none}.product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}.product-wide{grid-column:1/-1}.product-modal .field select,.product-modal .field textarea{width:100%}.product-panel h3{font-size:15px;margin:10px 0 15px}.product-hint{background:#f0f6f9;color:#466677;padding:12px 14px;border-radius:8px;line-height:1.5}.product-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0 24px}.product-facts span{border:1px solid #e1e9ee;border-radius:8px;padding:12px;color:#667f8c}.product-facts strong{color:#203d4d}.product-price-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.product-price-head h3,.product-price-head p{margin:0 0 6px}.product-price-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:15px 0 24px}.product-price-list>div{border:1px solid #e1e9ee;border-radius:8px;padding:12px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}.product-price-list strong{margin-left:auto}.product-price-list small{width:100%;color:#708696}.product-modal .form-error{margin:0 24px 8px}.product-modal .form-actions{padding:14px 24px;margin:0;border-top:1px solid #e1e9ee;background:#fff;flex:none}@media(max-width:650px){.modal-backdrop:has(.product-modal){padding:0}.product-modal{max-height:100vh;border-radius:0}.product-header{padding:12px 15px 0}.product-tabs{padding:8px 15px 0}.product-content{padding:16px 15px}.product-grid,.product-facts,.product-price-list{grid-template-columns:1fr}.product-price-head{align-items:stretch;flex-direction:column}.product-modal .form-actions{padding:12px 15px}}
.product-legacy-sheet{max-width:760px;margin:auto}.product-deferred-note{margin:12px 24px 0}.product-legacy-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:0 10px}.product-legacy-grid>.field{min-width:0}.product-legacy-grid>.field:nth-child(2){grid-column:span 8}.product-legacy-grid>.field:nth-child(3){grid-column:span 4}.product-legacy-grid>.field:nth-child(4){grid-column:span 8}.product-legacy-grid>.field:nth-child(5){grid-column:span 4}.product-legacy-grid>.field:nth-child(6){grid-column:span 5}.product-legacy-grid>.field:nth-child(7){grid-column:span 4}.product-legacy-grid>.field:nth-child(8){grid-column:span 3}.product-legacy-wide{grid-column:1/-1!important}.product-supplier-line{display:grid;grid-template-columns:1fr;gap:0;position:relative}.product-supplier-line .lookup-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:9px}.product-supplier-line .lookup-row .field{margin-bottom:10px}.product-supplier-line .lookup-row button{margin-bottom:10px;min-height:43px}.product-supplier-results{position:absolute;z-index:5;left:0;right:0;top:72px;max-height:230px;overflow:auto;box-shadow:0 12px 28px #1737472e}.product-supplier-results button{display:block;width:100%;text-align:left}.product-supplier-results small{display:block;margin-top:3px}.product-information textarea{min-height:82px;resize:vertical}.product-extra-fields{border-top:1px solid #dce7ed;margin-top:8px;padding-top:10px}.product-extra-fields summary{cursor:pointer;color:#587080;font-size:12px;font-weight:700;margin-bottom:12px}.product-extra-fields .check{align-self:center;margin-top:11px}.product-legacy-grid input[readonly]{background:#f4f7f9;color:#526b79}@media(max-width:650px){.product-legacy-grid{grid-template-columns:1fr}.product-legacy-grid>.field{grid-column:auto!important}.product-supplier-line .lookup-row{grid-template-columns:1fr}.product-supplier-line .lookup-row button{width:100%}.product-supplier-results{top:126px}}
.product-compatibility-section{border-top:1px solid #dce7ed;margin-top:18px;padding-top:16px}.product-compatibility-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.product-compatibility-head h3{margin:0 0 4px}.product-compatibility-head p{margin:0;color:#708696;font-size:12px}.product-compatibility-editor{display:grid;grid-template-columns:1fr 1.4fr auto;align-items:end;gap:0 10px;margin-top:14px}.product-compatibility-editor .field{margin-bottom:10px}.product-compatibility-editor>button{min-height:43px;margin-bottom:10px}.product-compatibility-notes{grid-column:span 2}.product-compatibility-list{border:1px solid #dce7ed;border-radius:8px;margin-top:6px;overflow:hidden}.product-compatibility-list>.subtle{padding:14px;margin:0}.product-compatibility-item{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 13px;border-bottom:1px solid #e8eef2}.product-compatibility-item:last-child{border-bottom:0}.product-compatibility-item span,.product-compatibility-item small{display:block}.product-compatibility-item small{color:#708696;margin-top:3px}@media(max-width:650px){.product-compatibility-head{display:block}.product-compatibility-head button{width:100%;margin-top:10px}.product-compatibility-editor{grid-template-columns:1fr}.product-compatibility-notes{grid-column:auto}.product-compatibility-editor>button{width:100%}}
.device-compatibility-browser{min-height:430px}.device-compatibility-search{display:grid;grid-template-columns:minmax(260px,1fr) auto;align-items:end;gap:10px}.device-compatibility-search .field{margin:0}.device-search-results{display:grid;gap:7px;margin-top:16px}.device-search-results>button{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;padding:13px 15px;border:1px solid #d8e3e9;border-radius:9px;background:#fff;text-align:left;color:#243f50}.device-search-results>button:hover{border-color:#84afc1;background:#f2f8fa}.device-search-results small{color:#708696}.device-compatibility-detail{margin-top:18px;padding:20px;border:1px solid #d8e3e9;border-radius:12px;background:#fff}.device-compatibility-detail h3{margin:18px 0 7px;font-size:20px}.device-compatibility-detail ul{display:grid;gap:12px;list-style:none;margin:16px 0 0;padding:0}.device-compatibility-detail li{color:#32536a}.device-confirmed-badge{display:inline-block;margin-top:14px;padding:6px 10px;border-radius:999px;background:#e5f4ef;color:#28725c;font-size:11px;font-weight:800}@media(max-width:560px){.device-compatibility-search{grid-template-columns:1fr}.device-compatibility-search button{width:100%}.device-search-results>button{align-items:flex-start;flex-direction:column;gap:4px}}
.device-compatibility-browser .device-search-results{max-height:min(38vh,320px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;align-content:start;padding-right:5px}
.device-compatibility-detail ul{max-height:min(38vh,320px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;align-content:start;padding-right:5px}
.product-compatibility-compact-head h3{margin:0 0 4px}.product-compatibility-compact-head p{margin:0;color:#708696;font-size:12px}.product-compatibility-compact-editor{display:grid;grid-template-columns:minmax(260px,1fr) 44px auto;align-items:end;gap:9px;margin-top:12px}.product-compatibility-compact-editor .field{margin:0}.product-compatibility-compact-editor>button{min-height:43px}.product-compatibility-compact-editor [data-new-compatible-device]{font-size:20px;padding:6px}.product-compatibility-compact-list{border:1px solid #dce7ed;border-radius:8px;margin-top:12px;overflow:hidden}.product-compatibility-compact-list>div{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 12px;border-bottom:1px solid #e8eef2}.product-compatibility-compact-list>div:last-child{border-bottom:0}.product-compatibility-compact-list small{display:block;color:#708696;margin:3px 0 0 18px}.product-compatibility-compact-list>.subtle{padding:13px;margin:0}.product-compatibility-detail-panel{margin-top:12px}@media(max-width:600px){.product-compatibility-compact-editor{grid-template-columns:1fr 44px}.product-compatibility-compact-editor [data-add-compatible-device]{grid-column:1/-1}.product-compatibility-compact-editor [data-compatible-model]{min-width:0}}
.tax-modal{width:min(1120px,calc(100vw - 28px));max-height:calc(100vh - 28px);display:flex;flex-direction:column}.tax-modal .modal-body{overflow:auto;min-height:0}.tax-profile-head{display:flex;align-items:end;gap:20px;flex-wrap:wrap}.tax-profile-head .field{min-width:min(400px,100%)}.tax-section{border:1px solid #d7e2ed;border-radius:10px;padding:16px;margin:14px 0}.tax-section legend{font-weight:700;color:#243748;padding:0 8px}.tax-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.tax-code-description{display:block;min-height:1em;margin-top:3px;font-size:11px;line-height:1.3}.tax-product-list{max-height:45vh;overflow:auto;border:1px solid #d7e2ed;border-radius:8px;margin-top:12px;padding:8px}.tax-product{display:block;padding:7px 9px;border-bottom:1px solid #edf1f5}.tax-product:last-child{border:0}@media(max-width:900px){.tax-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.tax-grid{grid-template-columns:1fr}.tax-modal{max-height:100vh;width:100vw;border-radius:0}}
.product-result-row{cursor:pointer}.product-result-row.product-stock-zero{background:#fff5e8}.product-result-row.product-stock-negative{background:#ffe4e4;color:#862727}.product-result-row:hover{background:#eef6fa}.product-result-row.selected{background:#dceef7}.product-result-row:focus-visible{outline:3px solid #4b90aa;outline-offset:-3px}.product-stock-label{display:block;margin-top:2px;color:#a35d13;font-size:10px;font-weight:700}.product-stock-negative .product-stock-label{color:#a12626}.product-load-status{border-top:1px solid #dce7ed;padding:9px 24px;background:#f7fafb;color:#647d8b;font-size:11px}.product-stock-detail{border-top:1px solid #dce7ed;padding:18px 24px;min-height:92px}.product-stock-title{display:flex;justify-content:space-between;align-items:center;gap:12px}.product-stock-title h3,.product-stock-detail h3{font-size:14px;margin:0 0 10px}.product-stock-title strong{white-space:nowrap}.product-stock-detail table{min-width:420px}.product-stock-detail th,.product-stock-detail td{padding:9px 12px}@media(max-width:560px){.product-stock-title{align-items:flex-start;flex-direction:column}}
.product-result-row.product-stock-uncontrolled{background:#edf0f4}.product-stock-uncontrolled .product-stock-label{color:#536578}
.product-results-scroll{max-height:min(380px,48vh);overflow:auto;overscroll-behavior:contain}.product-results-scroll th{position:sticky;top:0;z-index:1;box-shadow:0 1px #dce7ed}@media(max-width:560px){.product-results-scroll{max-height:38vh}}
.entry-total{display:flex;align-items:center;justify-content:flex-end;gap:18px;padding:14px 2px;border-top:1px solid #e0e8ee;color:#506b7b}.entry-total strong{font-size:20px;color:#203d4d}
.entry-autocomplete{position:relative;flex:1;min-width:0;width:100%}.entry-autocomplete .field{width:100%;margin-bottom:0}.entry-suggestions{max-height:230px;overflow:auto;border:1px solid #c9dbe6;border-radius:8px;background:#fff;margin-top:4px}.entry-suggestions[hidden]{display:none}.entry-suggestions button{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid #e7eef3;border-radius:0;background:#fff;color:#203d4d;padding:11px 13px;white-space:normal}.entry-suggestions button:hover,.entry-suggestions button:focus,.entry-suggestions button.keyboard-active{background:#dbeef8;outline:2px solid #397d9e;outline-offset:-2px}.entry-suggestions p{padding:10px 13px;margin:0;color:#657c89}
.prepared-entry-item{padding:12px 0;border-bottom:1px solid #dce7ee}.prepared-entry-item:last-child{border-bottom:0}.prepared-item-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;padding:12px 0;font-size:12px}.prepared-item-prices{display:grid;grid-template-columns:repeat(auto-fit,minmax(115px,1fr));gap:8px}.prepared-item-prices>span{display:flex;flex-direction:column;gap:4px;padding:10px;background:#f2f7fa;border-radius:6px;font-size:12px}.prepared-item-prices small{color:#627d8d}

/* Entrada: mantém a sequência operacional da tela Delphi em uma composição responsiva. */
.entry-modal{width:min(1220px,calc(100vw - 24px));max-height:calc(100vh - 24px);display:flex;flex-direction:column;overflow:hidden}.entry-modal .modal-head{flex:none;padding:14px 20px}.entry-modal .modal-head h2{margin-top:3px}.entry-modal .modal-body{padding:14px 18px;overflow:auto;min-height:0}.entry-modal .supplier-grid{gap:0 10px}.entry-modal .field{margin-bottom:10px}.entry-modal input,.entry-modal select{min-height:38px;padding:8px 10px}.entry-modal hr{margin:11px 0}.entry-modal .entry-create-line button{margin-bottom:10px}.entry-items-panel{border:1px solid #d7e2e9;border-radius:9px;margin:12px 0;background:#fff;overflow:hidden}.entry-section-title{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:9px 12px;background:#edf3f7;border-bottom:1px solid #d7e2e9}.entry-section-title span{font-size:11px;color:#69808e}.entry-items-panel .transfer-items{border:0;border-radius:0;padding:0;min-height:94px;max-height:220px;overflow:auto}.entry-grid-head,.entry-grid-row{display:grid;grid-template-columns:70px minmax(210px,2fr) minmax(105px,1fr) 100px 70px 105px 115px;gap:8px;align-items:center}.entry-grid-head{position:sticky;top:0;z-index:1;padding:8px 10px;background:#f6f9fa;border-bottom:1px solid #dce6eb;color:#6b818e;font-size:10px;font-weight:800;text-transform:uppercase}.entry-grid-row{padding:9px 10px;font-size:12px}.entry-grid-row>span,.entry-grid-row>strong{min-width:0;overflow-wrap:anywhere}.entry-grid-row>span:nth-last-child(1){white-space:nowrap}.entry-items-empty{padding:30px 12px;text-align:center;color:#718691}.prepared-entry-item{padding:0}.prepared-item-detail{padding:0 10px 10px;background:#fbfdfe}.prepared-item-detail summary{cursor:pointer;color:#28617c;font-size:11px;font-weight:700;padding:3px 0}.entry-modal .entry-editor{margin:12px 0;padding:14px}.entry-modal .entry-editor h3{margin-bottom:11px}.entry-modal .entry-extra-fields summary{cursor:pointer;font-weight:700;color:#425f70;margin:5px 0 12px}.entry-modal .cost-preview{margin:2px 0 12px}.entry-modal .form-actions{position:sticky;bottom:-14px;background:#fff;border-top:1px solid #dce6eb;padding:12px 0 14px;z-index:2}.entry-modal .entry-editor .form-actions{position:static;background:transparent;border:0;padding:0;margin-top:14px}.entry-modal .entry-total{padding:11px 2px}.entry-modal .price-grid{grid-template-columns:minmax(100px,1fr) 120px 130px}
@media(max-width:850px){.entry-grid-head{display:none}.entry-grid-row{grid-template-columns:80px 1fr 100px}.entry-grid-row>*:nth-child(3),.entry-grid-row>*:nth-child(4),.entry-grid-row>*:nth-child(5){display:none}.entry-grid-row>*:nth-child(6){text-align:right}.entry-grid-row>*:nth-child(7){grid-column:1/-1;text-align:right}.entry-section-title{align-items:flex-start;flex-direction:column}.entry-modal .modal-body{padding:12px}.entry-modal .form-actions{bottom:-12px}}
@media(max-width:600px){.modal-backdrop:has(.entry-modal){padding:0}.entry-modal{width:100vw;max-height:100vh;border-radius:0}.entry-modal .modal-head{padding:12px}.entry-modal .modal-head .secondary{order:3;width:100%}.entry-grid-row{grid-template-columns:60px 1fr 90px}.entry-items-panel .transfer-items{max-height:180px}.entry-modal .price-grid{grid-template-columns:minmax(75px,1fr) 88px 96px}.entry-modal .prepared-item-prices{grid-template-columns:repeat(2,minmax(0,1fr))}}

.modal:has(.transfer-form){width:min(900px,calc(100vw - 24px))}.transfer-form{min-width:0;max-width:100%;overflow:hidden}.transfer-form .entry-autocomplete{align-self:end;margin-bottom:12px}.transfer-form .entry-autocomplete .field{margin-bottom:0}.transfer-form .entry-suggestions{position:absolute;z-index:3;left:0;right:0;max-height:min(420px,55vh);box-shadow:0 10px 25px #17374722}.transfer-form .entry-suggestions button{display:grid;gap:3px;padding:9px 13px}.transfer-form .entry-suggestions small{color:#65808f}.transfer-saved-items{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;padding:0 2px;color:#294b5d}.transfer-saved-items span{font-size:11px;color:#6b818e}.transfer-form #transfer-items{height:clamp(280px,42vh,360px);min-height:280px;max-height:360px;overflow:auto;padding:0 10px}.transfer-saved-row{display:grid;grid-template-columns:70px minmax(0,1fr) 85px auto;align-items:center;gap:10px;min-height:39px;border-bottom:1px solid #ebf0f3;font-size:12px}.transfer-saved-row>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.transfer-saved-quantity{text-align:right;font-weight:700}.transfer-saved-row .link{white-space:nowrap}
.transfer-stock-filter{width:max-content;max-width:100%;margin:0 0 12px;font-size:12px}.transfer-stock-filter input{width:16px;height:16px;accent-color:#24566e}
@media(max-width:760px){.modal:has(.transfer-form){width:100%;max-height:100vh;border-radius:0}.transfer-form .transfer-add{display:grid;grid-template-columns:1fr 100px}.transfer-form .entry-autocomplete{grid-column:1/-1;margin-bottom:0}.transfer-form .transfer-add button{margin-bottom:12px}.transfer-saved-items{align-items:flex-start;flex-direction:column;gap:2px}.transfer-form #transfer-items{height:220px;min-height:220px;max-height:220px}.transfer-saved-row{grid-template-columns:52px minmax(0,1fr) 62px auto;gap:6px}}

/* Escala única e compacta para cadastros, filtros e operações. */
:root{--control-height:38px;--control-radius:7px;--control-pad-x:10px;--field-gap:6px;--form-gap:12px}body{font-size:13px}input,select{min-height:var(--control-height);border-radius:var(--control-radius);padding:8px var(--control-pad-x)}input[type=checkbox],input[type=radio]{min-height:0;min-width:0;width:auto}.field{gap:var(--field-gap);margin-bottom:var(--form-gap)}.field span{font-size:11px}.primary,.secondary{min-height:var(--control-height);border-radius:var(--control-radius);padding:8px 13px}.content{padding:26px 30px}.topbar{height:62px;padding:0 28px}.page-head{margin-bottom:20px}.panel-head{padding:17px 20px}.modal-head{padding:16px 20px}.modal-body{padding:16px 20px}.form-actions{margin-top:16px}.supplier-grid{gap:0 14px}.transfer-add button{margin-bottom:var(--form-gap)}
@media(max-width:760px){.content{padding:18px 12px}.topbar{min-height:58px;padding:8px 12px}.modal-head,.modal-body{padding:14px}.panel-head{padding:14px}}

/* Pre-venda: conserva a sequencia da tela antiga em uma janela compacta. */
.modal:has(.presale-form){width:min(1080px,calc(100vw - 24px));max-height:calc(100vh - 24px)}.presale-form{min-width:0}.presale-head-grid{display:grid;grid-template-columns:minmax(250px,2fr) 180px 170px 165px;gap:10px;align-items:start}.presale-add{display:grid;grid-template-columns:minmax(260px,1fr) 90px 105px 105px auto;gap:9px;align-items:end;border-top:1px solid #dce6eb;padding-top:12px}.presale-head-grid .field,.presale-add .field{margin-bottom:10px}.presale-head-grid small{display:block;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.presale-table-field select,.presale-output-field input{width:100%;height:var(--control-height);min-height:var(--control-height);white-space:nowrap}.presale-add .entry-autocomplete{align-self:end;margin-bottom:10px}.presale-add .entry-autocomplete .field{margin:0}.presale-add button{margin-bottom:10px;white-space:nowrap}.presale-form .entry-suggestions{position:absolute;z-index:4;left:0;right:0;box-shadow:0 10px 25px #17374722}.presale-form .entry-autocomplete{position:relative}.presale-form .entry-items-panel{margin:4px 0 12px}.presale-form #presale-items{max-height:260px;overflow:auto}.presale-grid-head,.presale-grid-row{display:grid;grid-template-columns:75px minmax(220px,1fr) 80px 100px 110px 125px;gap:9px;align-items:center}.presale-grid-head{position:sticky;top:0;z-index:1;background:#f4f8fa;padding:8px 10px;color:#6a818f;font-size:10px;font-weight:800;text-transform:uppercase;border-bottom:1px solid #dce6eb}.presale-grid-row{padding:9px 10px;border-bottom:1px solid #e4ebef;font-size:12px}.presale-grid-row:last-child{border-bottom:0}.presale-grid-row>:nth-child(n+3):not(button){text-align:right}.presale-row-actions{display:flex;justify-content:flex-end;gap:10px}.presale-total{display:grid;grid-template-columns:1fr 120px;gap:5px 15px;width:min(310px,100%);margin-left:auto;padding:7px 2px}.presale-total span{text-align:right;color:#5b7483}.presale-total strong{text-align:right;font-size:15px}.presale-total strong:last-child{font-size:19px}.presale-actions{border-top:1px solid #dce6eb;padding-top:12px}.presale-actions #new-presale{margin-right:auto}.presale-start{max-width:650px;padding:28px}.presale-start h2{margin-top:0}.presale-start p{color:#617987}.presale-start .primary{margin-top:12px}
.modal:has(.presale-product-browser){width:min(1500px,calc(100vw - 24px))}.presale-product-browser-results{margin-top:14px;max-height:65vh;overflow:auto}.presale-product-browser-results table{min-width:1180px}.presale-product-browser-results #presale-product-stock-detail{position:sticky;bottom:0;background:#fff;border-top:1px solid #dce6eb;padding:12px}
@media(max-width:780px){.modal:has(.presale-form),.modal:has(.presale-product-browser){width:100%;max-height:100vh;border-radius:0}.presale-head-grid{grid-template-columns:1fr 1fr}.presale-head-grid .entry-autocomplete{grid-column:1/-1}.presale-add{grid-template-columns:1fr 90px 105px}.presale-add .entry-autocomplete{grid-column:1/-1}.presale-add>button{grid-column:1/-1}.presale-grid-head{display:none}.presale-grid-row{grid-template-columns:65px 1fr 58px}.presale-grid-row>:nth-child(4),.presale-grid-row>:nth-child(5){display:none}.presale-grid-row button{grid-column:3;text-align:right}.presale-actions{flex-wrap:wrap}.presale-actions #new-presale{margin-right:0}.presale-actions button{flex:1 1 145px}}
@media(max-width:480px){.presale-head-grid{grid-template-columns:1fr}.presale-head-grid .entry-autocomplete{grid-column:auto}.presale-add{grid-template-columns:1fr 1fr}.presale-add .entry-autocomplete,.presale-add button{grid-column:1/-1}}
.field-warning{color:#b83535!important;font-weight:700}.field:has(.field-warning) input{border-color:#d76666;background:#fffafa}
.presale-payment-form .payment-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:16px}.payment-summary span{display:grid;gap:4px;padding:12px;background:#eef4f7;border-radius:8px;color:#607887}.payment-summary strong{font-size:17px;color:#203d4d}.payment-list{border:1px solid #dce7ee;border-radius:8px;padding:13px;max-height:210px;overflow:auto}.payment-list>strong{display:block;margin-bottom:7px}.billing-payment-entry{margin-top:12px;padding:12px;border:1px solid #dce7ee;border-radius:8px;background:#f8fbfd}@media(max-width:520px){.presale-payment-form .payment-summary{grid-template-columns:1fr}.payment-summary span{display:flex;justify-content:space-between}}
.sales-settings-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:16px;align-items:start}.sales-settings-menu{position:sticky;top:12px;background:#fff;border:1px solid #dce5ea;border-radius:11px;box-shadow:0 5px 18px #1e394008;overflow:hidden}.sales-settings-menu-head{display:grid;gap:3px;padding:16px;border-bottom:1px solid #e5ecef}.sales-settings-menu-head strong{font:800 14px Manrope,sans-serif;color:#20394b}.sales-settings-menu-head small{color:#748995;font-size:11px}.sales-settings-tabs{display:grid;padding:8px}.sales-settings-group{padding:9px 9px 5px;color:#8395a0;font-size:9px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.sales-settings-tabs button{display:grid;grid-template-columns:30px minmax(0,1fr);gap:9px;align-items:center;width:100%;border:0;border-left:3px solid transparent;border-radius:7px;background:transparent;padding:10px 9px;text-align:left;color:#42586a}.sales-settings-tabs button:hover{background:#f3f7f9}.sales-settings-tabs button.active{border-left-color:#bf7c00;background:#edf4f7;color:#173747}.sales-settings-tabs button>span:last-child{display:grid;gap:2px;min-width:0}.sales-settings-tabs button strong{font-size:12px}.sales-settings-tabs button small{color:#778c98;font-size:10px;line-height:1.3}.sales-settings-index{display:grid;place-items:center;width:28px;height:28px;border-radius:7px;background:#f0f4f6;color:#6b818e;font-size:10px;font-weight:800}.sales-settings-tabs button.active .sales-settings-index{background:#203d4d;color:#fff}.sales-settings-content{min-width:0}.sales-plan-search{display:grid;grid-template-columns:minmax(260px,1fr) 190px;gap:12px;padding:12px 16px 4px;border-bottom:1px solid #e4e9ec}.sales-plan-search .field{margin:0 0 8px}.sales-plan-table th:nth-child(n+5):nth-child(-n+8),.sales-plan-table td:nth-child(n+5):nth-child(-n+8){text-align:center;white-space:nowrap}.price-validity-panel{max-width:760px}.modal:has(.sales-plan-form){width:min(680px,calc(100vw - 24px));overflow-x:hidden}.sales-plan-form{min-width:0}.sales-plan-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 10px}.sales-plan-wide{grid-column:1/-1}.sales-plan-grid>label:nth-child(2),.sales-plan-grid>label:nth-child(3){grid-column:span 2}.sales-plan-third-party{grid-column:span 3}.sales-plan-form input,.sales-plan-form select{min-width:0;width:100%;max-width:100%}.modal:has(.price-validity-form){width:min(390px,calc(100vw - 24px))}.price-validity-form input,.price-validity-form select{width:100%}@media(max-width:900px){.sales-settings-layout{grid-template-columns:1fr}.sales-settings-menu{position:static}.sales-settings-menu-head{padding:13px 15px}.sales-settings-tabs{grid-template-columns:1fr 1fr;gap:7px}.sales-settings-group{display:none}.sales-settings-tabs button{border:1px solid #dbe5ea;border-left:3px solid transparent}.sales-settings-tabs button.active{border-color:#91afbc;border-left-color:#bf7c00}}@media(max-width:700px){.sales-plan-search{grid-template-columns:1fr}.sales-settings-tabs{grid-template-columns:1fr}.sales-settings-tabs button small{display:none}.modal-backdrop:has(.sales-plan-form){padding:0}.modal:has(.sales-plan-form){width:100vw;max-height:100vh;border-radius:0}.sales-plan-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sales-plan-wide,.sales-plan-third-party,.sales-plan-grid>label:nth-child(2),.sales-plan-grid>label:nth-child(3){grid-column:1/-1}.sales-plan-form .form-actions button{flex:1}}@media(max-width:430px){.sales-plan-grid{grid-template-columns:1fr}.sales-plan-grid>*{grid-column:auto!important}}
.billing-customer-lookup{margin:12px 0}.billing-customer-lookup .entry-suggestions{position:absolute;z-index:8;left:0;right:0;max-height:210px;box-shadow:0 12px 30px #17374733}.billing-customer-lookup .entry-suggestions button{display:grid;gap:3px}.billing-customer-lookup .entry-suggestions small{color:#65808f}
.permission-modal{width:min(720px,calc(100vw - 24px));max-height:calc(100vh - 24px);display:flex;flex-direction:column;overflow:hidden}.permission-modal .modal-head{flex:none}.permission-modal .modal-body{display:flex;min-height:0;overflow:hidden}.user-access-form{display:flex;flex-direction:column;min-height:0;width:100%}.permission-tabs{display:flex;gap:3px;border-bottom:1px solid #cfdce4;flex:none}.permission-tab{border:1px solid transparent;border-bottom:0;background:#eef3f6;color:#425d6d;padding:9px 15px;border-radius:6px 6px 0 0;font-weight:700}.permission-tab.active{background:#fff;border-color:#cfdce4;color:#173d53;position:relative;bottom:-1px}.permission-layout{display:grid;grid-template-columns:minmax(0,1fr) 125px;gap:14px;min-height:0;padding-top:12px}.permission-tree{border:1px solid #cfdce4;border-radius:6px;padding:9px 12px;overflow:auto;min-height:330px;max-height:56vh;background:#fff}.permission-tree [hidden]{display:none}.permission-group{border:0;border-left:1px dotted #9db0bc;margin:0 0 8px 8px;padding:0 0 2px 17px}.permission-group legend{font-weight:800;color:#253e4d;padding:3px 5px 4px 0}.permission-group input{width:15px;height:15px;accent-color:#246b8c;vertical-align:middle}.permission-item{display:flex;align-items:center;gap:7px;padding:4px 2px;font-size:12px;color:#2c4656}.permission-actions{display:flex;flex-direction:column;gap:9px}.permission-actions button{width:100%;text-align:left;white-space:nowrap}.user-access-form>.notice{margin:12px 0 0}.user-access-form .form-actions{flex:none}@media(max-width:560px){.modal-backdrop:has(.permission-modal){padding:0}.permission-modal{width:100vw;max-height:100vh;border-radius:0}.permission-layout{grid-template-columns:1fr}.permission-tree{min-height:260px;max-height:52vh}.permission-actions{display:grid;grid-template-columns:1fr 1fr}.permission-actions button{text-align:center}}
.permission-item small{color:#718895;font-size:10px;margin-left:5px}.permission-item:has(input:disabled){color:#607783}
.permission-tree .permission-group{border-left:0;margin-left:0;padding-left:0}.permission-tree .permission-group legend{padding-left:2px}.permission-tree .permission-children{margin-left:28px;padding-left:15px;border-left:1px dotted #9db0bc}.permission-tree .permission-children .permission-item{position:relative}.permission-tree .permission-children .permission-item::before{content:"";position:absolute;left:-15px;top:50%;width:11px;border-top:1px dotted #9db0bc}

/* Faturamento de pre-venda: usa a area da janela maximizada sem alterar o fluxo. */
.modal:has(.presale-billing-form){width:min(1080px,calc(100vw - 28px));max-height:calc(100vh - 28px);display:flex;flex-direction:column;overflow:hidden}.modal:has(.presale-billing-form) .modal-head{flex:none}.modal:has(.presale-billing-form) .modal-body{min-height:0;overflow:auto}.presale-billing-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(330px,.85fr);gap:14px;align-items:start;margin-top:14px}.presale-billing-form .payment-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:12px}.presale-billing-form .payment-list{max-height:300px}.presale-billing-form .billing-payment-entry{margin-top:12px}.presale-billing-form>.subtle{margin-bottom:0}.presale-billing-form>.form-actions{position:sticky;bottom:-16px;background:#fff;border-top:1px solid #e0e8ee;padding:13px 0 0;z-index:2}
.billing-identification .detail-row{display:grid;grid-template-columns:110px minmax(0,1fr);justify-content:initial}.billing-identification .detail-row strong{text-align:left;overflow-wrap:anywhere}.billing-customer-lookup input{max-width:100%}
.billing-customer-fields{display:grid;grid-template-columns:minmax(190px,240px) minmax(260px,1fr);gap:12px}.billing-customer-fields .field{margin-bottom:0}.billing-customer-fields input{width:100%}
.billing-customer-lookup .entry-suggestions{position:absolute;z-index:12;left:0;right:0;top:100%;box-shadow:0 12px 30px #17374733}.billing-customer-lookup .entry-suggestions small{display:block;color:#65808f;margin-top:3px}.billing-customer-lookup .entry-suggestions .error{margin:0;border:0;border-radius:0}
@media(max-width:850px){.presale-billing-layout{grid-template-columns:1fr}.presale-billing-form .payment-list{max-height:220px}}@media(max-width:560px){.modal-backdrop:has(.presale-billing-form){padding:0}.modal:has(.presale-billing-form){width:100vw;max-height:100vh;border-radius:0}.billing-customer-fields{grid-template-columns:1fr}.presale-billing-form .payment-summary{grid-template-columns:1fr}.presale-billing-form>.form-actions{bottom:-14px}.presale-billing-form>.form-actions button{flex:1}}
.modal-backdrop:has(.presale-billing-form){background:linear-gradient(135deg,#1d3342c9,#607684cf);backdrop-filter:blur(3px)}.modal:has(.presale-billing-form){width:min(1160px,calc(100vw - 28px));border-radius:15px;box-shadow:0 24px 70px #102d3d45}.modal:has(.presale-billing-form) .modal-head{padding:19px 24px;background:linear-gradient(180deg,#fff,#f7fafc)}.modal:has(.presale-billing-form) .modal-body{padding:18px 22px 20px;background:#f3f7f9}.billing-card{border:1px solid #d8e4ea;border-radius:12px;background:#fff;box-shadow:0 5px 18px #1737470b}.billing-identification{padding:15px 17px}.billing-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:11px;color:#173b50}.billing-section-title>span{font-size:14px;font-weight:800}.billing-section-title small{color:#78909d;font-size:11px}.billing-main-customer{padding:10px 12px;border-radius:8px;background:#eef6f9}.billing-customer-lookup{margin:11px 0}.presale-billing-layout{grid-template-columns:minmax(0,1.18fr) minmax(350px,.82fr);gap:16px}.billing-products,.billing-payments{padding:15px}.presale-billing-form .payment-list{border:0;border-radius:0;padding:0}.billing-items-list,.billing-payments-list{border-top:1px solid #e2eaee!important}.billing-items-list .detail-row,.billing-payments-list .detail-row{padding:11px 3px;border-bottom:1px solid #edf2f4}.presale-billing-form .payment-summary{gap:10px}.presale-billing-form .payment-summary span{border:1px solid #dce8ed;background:#f4f8fa;padding:13px}.presale-billing-form .payment-summary .billing-balance{background:#eaf5f8;border-color:#cce1e9}.presale-billing-form .payment-summary .billing-balance strong{font-size:20px;color:#0a536f}.presale-billing-form .billing-payment-entry{padding:14px;margin-top:14px;border-radius:10px;background:#f6fafb}.billing-payment-entry select{font-weight:700;color:#183e53}.billing-payment-entry .form-actions{margin-top:6px}.billing-payment-entry #billing-add-payment{width:100%}.billing-paid-notice{margin-top:14px;padding:13px;border:1px solid #a9dac1;border-radius:9px;background:#eaf8f1;color:#226346;font-weight:700}.billing-impact-note{margin:14px 2px 0;padding:10px 13px;border-left:3px solid #6f98aa;background:#eaf1f4;color:#55717f;border-radius:0 7px 7px 0}.presale-billing-form>.form-actions{margin-top:14px;padding:14px 2px 1px;background:#f3f7f9}.presale-billing-form>.form-actions button[type=submit]{min-width:170px;background:linear-gradient(180deg,#1285a8,#086c8d);box-shadow:0 7px 18px #08759326}.presale-billing-form>.form-actions button[type=submit]:disabled{background:#acbbc2;box-shadow:none}@media(max-width:850px){.presale-billing-layout{grid-template-columns:1fr}.billing-products,.billing-payments{padding:13px}}@media(max-width:560px){.modal:has(.presale-billing-form) .modal-body{padding:12px}.billing-identification{padding:12px}.billing-section-title{align-items:flex-start;flex-direction:column;gap:3px}.presale-billing-form>.form-actions{flex-wrap:wrap}.presale-billing-form>.form-actions button{min-width:0}}
.billing-observation{width:100%;margin:14px 0 0}.billing-observation textarea{min-height:92px;background:#fff}
.modal:has(.service-order-form){width:min(980px,calc(100vw - 24px));max-height:calc(100vh - 24px);display:flex;flex-direction:column}.modal:has(.service-order-form) .modal-body{overflow:auto;min-height:0}.service-order-grid{display:grid;grid-template-columns:120px 100px repeat(3,minmax(0,1fr));gap:0 12px}.service-order-customer{grid-column:3/-1}.service-order-wide{grid-column:1/-1}.service-order-form textarea{width:100%;resize:vertical;min-height:92px}.service-order-dates{display:flex;gap:24px;flex-wrap:wrap;padding:9px 12px;margin:2px 0 12px;background:#eef4f7;border-radius:7px;color:#4f6876}.service-order-products{border:1px solid #d7e2e9;border-radius:8px;padding:12px;margin-top:8px}.service-order-products h3{margin:0 0 5px;font-size:13px}.service-order-form>.form-actions{position:sticky;bottom:-16px;background:#fff;border-top:1px solid #dce6eb;padding-top:13px}@media(max-width:760px){.modal-backdrop:has(.service-order-form){padding:0}.modal:has(.service-order-form){width:100vw;max-height:100vh;border-radius:0}.service-order-grid{grid-template-columns:1fr 1fr}.service-order-customer,.service-order-wide{grid-column:1/-1}.service-order-form>.form-actions{bottom:-14px;flex-wrap:wrap}.service-order-form>.form-actions button{flex:1}}
.service-order-summary{border-top:1px solid #d7e2e9;padding:14px 18px;background:#fff}.service-order-summary h3{margin:0 0 10px;font-size:15px}.service-order-summary h4{margin:0 0 6px;font-size:12px}.service-order-summary p{margin:0;color:#587185}.service-order-summary-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px 16px;margin-bottom:12px;color:#587185;font-size:12px}.service-order-summary-fields strong{color:#173b55}.service-order-summary-notes{display:grid;grid-template-columns:1fr 1fr;gap:12px}.service-order-summary-notes>div{border:1px solid #d7e2e9;border-radius:7px;padding:10px;min-height:75px}.service-order-summary-notes p{white-space:pre-wrap;overflow-wrap:anywhere;color:#173b55}@media(max-width:760px){.service-order-summary-notes{grid-template-columns:1fr}}
.modal:has(.cash-sale-detail){width:min(1040px,calc(100vw - 24px));max-height:calc(100vh - 24px)}.modal:has(.cash-sale-detail) .modal-body{overflow:auto}.cash-sale-invoices{display:grid;grid-template-columns:1.2fr 1fr;gap:12px;margin-top:16px}.cash-sale-invoices section{min-width:0;border:1px solid #d7e2e9;border-radius:8px;padding:10px}.cash-sale-invoices h3{margin:0 0 8px}.cash-sale-invoices table{font-size:12px;width:100%}.cash-sale-invoices th,.cash-sale-invoices td{white-space:nowrap;padding:7px}.cash-sale-invoices p{text-align:right;margin:9px 0 0}@media(max-width:760px){.cash-sale-invoices{grid-template-columns:1fr}}

.print-settings-panel{margin-bottom:18px}.printing-settings-form{display:grid;grid-template-columns:repeat(2,minmax(250px,1fr));gap:12px 22px;padding:20px}.printing-settings-form .check{margin:0;padding:10px;border:1px solid #dce7ee;border-radius:7px}.printing-settings-form .field{margin:0}.printing-settings-form .form-actions{grid-column:1/-1;margin:0}@media(max-width:650px){.printing-settings-form{grid-template-columns:1fr;padding:15px}.printing-settings-form .form-actions{grid-column:auto}}
.sales-plan-form .receipt-plan-active{display:inline-flex;align-items:center;gap:8px;width:max-content;max-width:100%;margin:2px 0 18px;white-space:nowrap}.sales-plan-form .receipt-plan-active input[type="checkbox"]{width:16px;min-width:16px;max-width:16px;height:16px;min-height:16px;margin:0;padding:0;flex:none}.sales-plan-form .receipt-plan-active span{display:inline;white-space:nowrap}.sales-plan-group-label{padding:11px 16px 7px;color:#365b6c;font-size:12px;font-weight:800;background:#f4f8fa;border-bottom:1px solid #dce7ee}
.user-maintenance-grid{max-height:calc(100vh - 270px);overflow:auto}.user-maintenance-grid thead{position:sticky;top:0;z-index:1}.user-maintenance-grid th{box-shadow:0 1px 0 #e7edf2}.configuration-table-panel{margin-top:18px}.configuration-table-scroll{max-height:360px}.configuration-table-scroll thead{position:sticky;top:0;z-index:1}.configuration-table-scroll td{max-width:360px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media(max-height:650px){.user-maintenance-grid{max-height:390px}}

.app-shell.desktop-page-shell{display:block}.desktop-page-menubar{position:relative;z-index:4}.desktop-page-shell .content{max-width:none}
.desktop-page-body{display:flex;min-height:calc(100vh - 172px)}.desktop-page-body>.content{flex:1;min-width:0;margin:0}

/* Pre-venda modernizada: somente apresentacao, sem alterar o fluxo operacional. */
.modal-backdrop:has(.presale-form){background:linear-gradient(135deg,#263b4ac7,#607380c9);backdrop-filter:blur(3px)}
.modal:has(.presale-form){width:min(1160px,calc(100vw - 34px));border:1px solid #dce7ed;border-radius:15px;box-shadow:0 28px 80px #0c23364f}
.modal:has(.presale-form) .modal-head{padding:21px 24px;border-bottom:1px solid #e1e9ee}
.modal:has(.presale-form) .modal-head h2{font:800 25px/1.2 Manrope,sans-serif;letter-spacing:-.035em;color:#102a40}
.modal:has(.presale-form) .modal-body{padding:18px 24px 16px}
.presale-block{border:1px solid #dbe6ec;border-radius:11px;background:linear-gradient(180deg,#fbfdfe,#f7fafc);box-shadow:0 3px 12px #1d40500a}
.presale-head-grid.presale-block{padding:15px 16px 4px}
.presale-add.presale-block{margin-top:12px;padding:14px 16px 4px;border-top:1px solid #dbe6ec}
.presale-head-grid .field>span,.presale-add .field>span{color:#18354a;font-weight:800}
.presale-head-grid input,.presale-head-grid select,.presale-add input{border-color:#c6d6e0;border-radius:8px;background:#fff}
.presale-head-grid input:focus,.presale-head-grid select:focus,.presale-add input:focus{border-color:#0786ad;box-shadow:0 0 0 3px #0786ad1f}
.presale-customer-field input{padding-left:38px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235a7385' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:12px center}
.presale-product-field input{padding-left:40px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19' height='19' viewBox='0 0 24 24' fill='none' stroke='%235a7385' stroke-width='2'%3E%3Cpath d='M3 5v14M6 5v14M10 5v14M13 5v14M18 5v14M21 5v14'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:12px center}
.presale-add-button{min-height:38px;margin-bottom:10px;padding:8px 16px;background:linear-gradient(180deg,#0794bc,#027da4);box-shadow:0 7px 18px #0786ad26;white-space:nowrap}
.presale-add-button:hover{background:linear-gradient(180deg,#078ab1,#006f94)}
.presale-add-button span{font-size:20px;font-weight:400;vertical-align:-1px}
.presale-form .entry-items-panel{margin:14px 0 12px;border-color:#d7e3e9;border-radius:11px;box-shadow:0 3px 12px #1d405008}
.presale-form .entry-section-title{padding:12px 16px;background:linear-gradient(180deg,#f1f7fa,#eaf2f6)}
.presale-form .entry-section-title strong{font-size:14px;color:#18354a}.presale-form .entry-section-title i{margin-right:6px;color:#52738a;font-style:normal}
.presale-form .entry-items-empty{display:grid;place-items:center;gap:8px;min-height:118px;padding:28px;color:#657f90}
.presale-form .entry-items-empty:before{content:'▤';font-size:28px;color:#66839a}
.presale-total{padding:6px 8px 9px}.presale-total strong:last-child{color:#102f45;font-size:22px}
.presale-actions{gap:10px;padding-top:14px}.presale-actions .secondary{border-color:#c2d3dd;background:#fff;color:#17374c}.presale-actions .secondary:hover{border-color:#7faec0;background:#f4fafc}
.presale-actions #bill-presale{background:linear-gradient(180deg,#0794bc,#027da4);box-shadow:0 7px 18px #0786ad26}.presale-actions #bill-presale:disabled{background:#aebdc5;box-shadow:none}
@media(max-width:780px){.modal:has(.presale-form){width:100%;border-radius:0}.presale-head-grid.presale-block,.presale-add.presale-block{padding-left:12px;padding-right:12px}.modal:has(.presale-form) .modal-body{padding:14px}.presale-add-button{width:100%}}

.desktop-settings-menu .desktop-menu-items{min-width:280px}.desktop-menu-station{display:grid;gap:5px;padding:9px 11px;border-bottom:1px solid #e4ebef;color:#526d7c;font-size:11px;font-weight:700}.desktop-menu-station select{width:100%;min-height:34px;padding:6px 8px;border-radius:5px;font-size:11px}.desktop-menu-info{display:block;padding:10px 11px;border-bottom:1px solid #e4ebef;color:#617887;font-size:11px}
.desktop-settings-menu .desktop-menu-items{left:auto;right:0;width:min(390px,calc(100vw - 16px));min-width:0}.desktop-menu-station{min-width:0}.desktop-menu-station select{min-width:0;max-width:100%}
.desktop-menu-items .desktop-menu-item-pending{color:#9babb4;background:#f7f9fa;cursor:not-allowed;display:flex;align-items:center;justify-content:space-between;gap:18px}.desktop-menu-items .desktop-menu-item-pending:hover{background:#f7f9fa}.desktop-menu-item-pending small{font-size:9px;color:#aab7be;white-space:nowrap}

/* Login aprovado: identidade FERSOFT, formulário destacado e leitura mais curta. */
.login-shell{grid-template-columns:minmax(560px,1.15fr) minmax(520px,.85fr);background:#f4f7f9}.login-hero{padding:54px clamp(54px,6vw,92px);background:linear-gradient(135deg,#102733,#193845);isolation:isolate}.login-hero:before{content:'';position:absolute;inset:auto 0 0;height:38%;background:linear-gradient(160deg,transparent 25%,#fff 140%);opacity:.035;z-index:-1}.login-hero:after{right:-120px;bottom:-250px;width:650px;height:650px;border-color:#8fc1d133;box-shadow:0 0 0 80px #ffffff07,0 0 0 160px #ffffff04;z-index:-1}.login-message{max-width:690px}.login-pill{display:inline-flex;border-radius:99px;background:#77bed522;color:#9fd1df;padding:8px 14px;text-transform:uppercase;letter-spacing:.16em;font-size:10px;font-weight:800}.login-hero .login-message h1{font-size:clamp(43px,4vw,64px);max-width:720px;margin:30px 0 20px;line-height:1.08}.login-message>p{font-size:17px;max-width:610px;line-height:1.65}.login-benefits{display:flex;gap:14px;margin-top:42px}.login-benefits>div{display:flex;align-items:center;gap:12px;min-width:225px;padding:14px 16px;border:1px solid #ffffff12;border-radius:13px;background:#ffffff0b}.login-benefits small,.login-benefits strong{display:block}.login-benefits small{text-transform:uppercase;letter-spacing:.12em;color:#87a9b7;font-size:9px;margin-bottom:4px}.login-benefits strong{font-size:12px;color:#e7f1f4}.login-benefit-icon{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#58a9c333;color:#9dd7e8;font-weight:800}.hero-foot{display:flex;justify-content:space-between;gap:20px;font-size:11px}.login-panel{padding:42px;background:#f4f7f9}.login-card{width:min(100%,430px);background:#fff;border:1px solid #e1eaee;border-radius:22px;padding:42px;box-shadow:0 20px 55px #0b29351c}.login-environment{display:flex;align-items:center;gap:12px;margin-bottom:34px}.login-environment>span{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#e7f3f6;color:#26708a;font-weight:800}.login-environment strong,.login-environment small{display:block}.login-environment strong{text-transform:uppercase;letter-spacing:.12em;font-size:10px;color:#557481;margin-bottom:3px}.login-environment small{color:#8197a1}.login-card h2{font-size:31px;margin:0 0 8px}.login-card form{margin-top:31px}.login-input{height:52px;display:grid;grid-template-columns:34px 1fr auto;align-items:center;border:1px solid #c4d4dc;border-radius:9px;background:#fbfcfd;padding:0 10px;color:#66828f}.login-input:focus-within{border-color:#4b90aa;box-shadow:0 0 0 3px #4b90aa22;background:#fff}.login-input input{min-height:0;height:48px;padding:0 4px;border:0;box-shadow:none;background:transparent}.login-input input:focus{border:0;box-shadow:none}.login-input button{border:0;background:transparent;color:#66828f;padding:8px}.login-card .primary{min-height:52px;margin-top:4px}.login-status{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:34px;padding-top:22px;border-top:1px solid #e4ecef;color:#79909a;font-size:11px}.login-status i{display:inline-block;width:8px;height:8px;border-radius:50%;background:#48a577;margin-right:5px}
@media(max-width:1050px){.login-shell{grid-template-columns:1fr 1fr}.login-benefits{display:grid}.login-benefits>div{min-width:0}.login-card{padding:32px}.login-hero .login-message h1{font-size:42px}}
@media(max-width:760px){.login-shell{display:block}.login-hero{min-height:250px;padding:28px}.login-hero .brand{padding:0}.login-message{margin-top:35px}.login-hero .login-message h1{font-size:32px;margin:18px 0 12px}.login-hero .login-message>p{display:block;font-size:14px;margin:0}.login-pill,.login-benefits,.hero-foot{display:none}.login-panel{min-height:calc(100vh - 250px);padding:18px}.login-card{padding:28px 22px;border-radius:17px}.login-environment{margin-bottom:25px}.login-card h2{font-size:27px}}

.desktop-toolbar-brand{width:122px;min-width:122px;padding:8px 5px;text-align:center}
.desktop-toolbar-brand strong{max-width:108px;line-height:1.15;letter-spacing:.035em}
.desktop-status{align-items:stretch}
.desktop-status span{min-width:190px}
.desktop-status span:first-child{min-width:220px}
.desktop-page-shell>.main-area>.content{padding-top:28px}
.desktop-page-shell>.main-area>.content:has(>.desktop-home){padding:0;margin:0;max-width:none}
.desktop-page-shell>.main-area>.content>.desktop-home{margin:0;min-height:100vh}
.desktop-shortcut.unavailable{cursor:not-allowed;background:#f3f5f6;color:#8a979e;filter:grayscale(1);opacity:.5}.desktop-shortcut.unavailable:hover{background:#f3f5f6}.desktop-shortcut.unavailable .desktop-shortcut-icon{background:#e1e6e8;color:#829097}

/* Tela principal moderna. Mantém os destinos, permissões e ações do legado. */
.desktop-home{padding:18px 22px 24px;background:linear-gradient(145deg,#f4f8fa,#edf3f6)}
.desktop-home .desktop-menubar{min-height:48px;padding:4px 10px;border:1px solid #d7e2e8;border-radius:13px;background:#fff;box-shadow:0 7px 24px #15384a0a}
.desktop-home .desktop-menu summary,.desktop-home .desktop-menu-pending,.desktop-home .desktop-menu-exit{min-height:38px;border-radius:8px;padding:0 13px;color:#29495b;font-weight:700}
.desktop-home .desktop-menu summary:hover,.desktop-home .desktop-menu[open] summary,.desktop-home .desktop-menu-exit:hover{background:#eaf5f8;color:#087ca1}
.desktop-home .desktop-menu-items{top:calc(100% + 6px);border-color:#d5e2e8;border-radius:10px;box-shadow:0 18px 45px #102d3d26;padding:7px}
.desktop-home .desktop-menu-items button{border-radius:7px;padding:10px 12px}
.desktop-home .desktop-toolbar{display:grid;grid-template-columns:repeat(5,minmax(135px,1fr));gap:12px;min-height:0;margin:14px 0 0;padding:0;border:0;background:transparent;overflow:visible}
.desktop-home .desktop-toolbar-brand,.desktop-home .desktop-shortcut{width:auto;min-width:0;min-height:94px;border:1px solid #d6e2e8;border-radius:14px;background:#fff;box-shadow:0 7px 22px #15384a0a}
.desktop-home .desktop-toolbar-brand{flex-direction:row;padding:15px;gap:12px;text-align:left;justify-content:flex-start}
.desktop-home .desktop-toolbar-brand span{flex:none;width:48px;height:48px;border-radius:12px;background:linear-gradient(145deg,#e7f5f9,#a5d5e2);color:#075f7e;font-size:31px}
.desktop-home .desktop-toolbar-brand strong{font-size:12px;color:#17384b}
.desktop-home .desktop-shortcut{display:grid;grid-template-columns:46px minmax(0,1fr);align-content:center;justify-items:start;gap:12px;padding:15px;text-align:left;font-size:12px;line-height:1.3;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}
.desktop-home .desktop-shortcut:hover:not(:disabled){border-color:#82bdce;background:#fff;box-shadow:0 12px 28px #15384a18;transform:translateY(-2px)}
.desktop-home .desktop-shortcut-icon{width:46px;height:46px;border-radius:11px;font-size:24px}
.desktop-home .desktop-shortcut.unavailable{border-color:#e1e7ea;background:#f3f5f6;box-shadow:none;opacity:.58}
.desktop-home .desktop-status{min-height:34px;margin-top:14px;border:1px solid #d7e2e8;border-radius:10px;background:#fff;color:#5d7482;box-shadow:0 5px 16px #15384a08;overflow:hidden}
.desktop-home .desktop-status span{display:flex;align-items:center;padding:8px 13px;border-color:#e0e8ec}
.desktop-home .desktop-body{min-height:320px;margin-top:14px;border:1px solid #d7e2e8;border-radius:14px;background:#fff;box-shadow:0 8px 26px #15384a0b;overflow:hidden}
.desktop-home .desktop-rail{display:none}
.desktop-home .desktop-canvas{min-height:320px;padding:26px;background:linear-gradient(180deg,#fff,#f9fbfc)}
@media(max-width:1180px){.desktop-home .desktop-toolbar{grid-template-columns:repeat(3,minmax(135px,1fr))}}
@media(max-width:760px){.desktop-home{padding:10px}.desktop-home .desktop-menubar{border-radius:10px}.desktop-home .desktop-toolbar{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.desktop-home .desktop-toolbar-brand,.desktop-home .desktop-shortcut{min-height:84px}.desktop-home .desktop-shortcut{grid-template-columns:40px minmax(0,1fr);padding:12px;gap:9px}.desktop-home .desktop-shortcut-icon{width:40px;height:40px;font-size:21px}.desktop-home .desktop-status{margin-top:10px}.desktop-home .desktop-body{margin-top:10px}.desktop-home .desktop-canvas{padding:15px}}
@media(max-width:430px){.desktop-home .desktop-toolbar{grid-template-columns:1fr}.desktop-home .desktop-toolbar-brand{min-height:76px}}

/* Composição compacta aprovada: faixa superior e atalhos laterais do legado. */
.desktop-home{padding:0;background:#eef1f3}
.desktop-home .desktop-menubar{min-height:34px;margin:0;padding:0 5px;border:0;border-bottom:1px solid #aeb9bf;border-radius:0;background:#fff;box-shadow:none}
.desktop-home .desktop-menu summary,.desktop-home .desktop-menu-pending,.desktop-home .desktop-menu-exit{min-height:33px;padding:0 8px;border-radius:0;color:#172d3a;font-size:11px;font-weight:600}
.desktop-home .desktop-menu summary:hover,.desktop-home .desktop-menu[open] summary,.desktop-home .desktop-menu-exit:hover{background:#e6eef2;color:#172d3a}
.desktop-home .desktop-menu-items{top:100%;border-radius:2px}
.desktop-home .desktop-toolbar{display:flex;gap:0;min-height:88px;margin:0;padding:0;border-bottom:1px solid #aeb9bf;background:#fff;overflow-x:auto;overflow-y:hidden}
.desktop-home .desktop-toolbar-brand,.desktop-home .desktop-shortcut{width:92px;min-width:92px;min-height:88px;border:0;border-right:1px solid #b8c2c7;border-radius:0;background:#fff;box-shadow:none}
.desktop-home .desktop-toolbar-brand{display:flex;flex-direction:column;justify-content:center;gap:3px;padding:5px;text-align:center}
.desktop-home .desktop-toolbar-brand span{width:50px;height:50px;border-radius:4px;font-size:32px}
.desktop-home .desktop-toolbar-brand strong{font-size:9px;line-height:1.05}
.desktop-home .desktop-shortcut{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:5px;text-align:center;font-size:10px;line-height:1.05;transition:background .12s ease}
.desktop-home .desktop-shortcut:hover:not(:disabled){border-color:#b8c2c7;background:#e9f1f4;box-shadow:none;transform:none}
.desktop-home .desktop-shortcut-icon{width:49px;height:49px;border-radius:5px;font-size:27px}
.desktop-shortcut-icon{overflow:visible;background:transparent!important}.desktop-shortcut-icon img,.desktop-toolbar-brand span img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 3px 4px #1634482b)}.desktop-toolbar-brand span{overflow:visible;background:transparent!important}.desktop-home .desktop-shortcut:hover:not(:disabled) .desktop-shortcut-icon img{transform:translateY(-2px) scale(1.06)}.desktop-shortcut-icon img{transition:transform .16s ease}.desktop-shortcut.unavailable .desktop-shortcut-icon img{filter:grayscale(1);opacity:.48}
.desktop-home .desktop-shortcut.unavailable{border-color:#c8d0d4;background:#f3f4f5;box-shadow:none;opacity:.46}
.desktop-home .desktop-status{min-height:25px;margin:0;border:0;border-bottom:1px solid #aeb9bf;border-radius:0;background:#fff;box-shadow:none}
.desktop-home .desktop-status span{padding:5px 9px;border-color:#b8c2c7;font-size:10px}
.desktop-home .desktop-body{min-height:calc(100vh - 148px);margin:0;border:0;border-radius:0;background:#eee;box-shadow:none;overflow:visible}
.desktop-home .desktop-rail{display:block;width:76px;border-right:1px solid #9fa9ae;background:#f8f8f8}
.desktop-home .desktop-shortcut.vertical{width:75px;min-width:75px;min-height:82px;padding:4px;border-right:0;border-bottom:1px solid #9fa9ae;font-size:9px;line-height:1.05}
.desktop-home .desktop-shortcut.vertical .desktop-shortcut-icon{width:45px;height:45px;font-size:24px}
.desktop-home .desktop-canvas{min-height:calc(100vh - 148px);padding:14px;background:#eee}
.desktop-home .desktop-canvas{background-color:var(--wallpaper-color,#163442);background-position:center;background-repeat:no-repeat;background-size:var(--wallpaper-fit,cover)}.desktop-home .desktop-canvas.has-terminal-wallpaper{background-image:linear-gradient(rgb(4 20 31 / var(--wallpaper-overlay,.18)),rgb(4 20 31 / var(--wallpaper-overlay,.18))),var(--wallpaper-image);background-size:auto,var(--wallpaper-fit,cover)}
.desktop-toast{position:fixed;z-index:20;top:34px;right:22px;width:min(470px,calc(100vw - 44px));padding:11px 15px;border-radius:9px;box-shadow:0 12px 32px #102c3a2e;animation:desktop-toast-in .18s ease-out}@keyframes desktop-toast-in{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}
.demo-environment-banner{position:fixed;z-index:100;top:0;left:50%;transform:translateX(-50%);padding:5px 18px;border-radius:0 0 8px 8px;background:#b42318;color:#fff;font:800 11px/1.2 Manrope,Arial,sans-serif;letter-spacing:.08em;box-shadow:0 4px 12px #0003;pointer-events:none}
@media(max-width:760px){.desktop-home{padding:0}.desktop-home .desktop-toolbar{display:flex;gap:0}.desktop-home .desktop-toolbar-brand,.desktop-home .desktop-shortcut{width:84px;min-width:84px;min-height:82px}.desktop-home .desktop-shortcut{display:flex;padding:4px}.desktop-home .desktop-shortcut-icon{width:43px;height:43px}.desktop-home .desktop-status{margin:0}.desktop-home .desktop-body{margin:0}.desktop-home .desktop-rail{display:none}.desktop-home .desktop-canvas{padding:10px}}

/* Entrada de mercadoria: ordem operacional preservada da tela legada. */
.entry-head-actions{display:flex;align-items:center;gap:9px}.entry-note-header{padding:13px 14px 3px;border:1px solid #d6e2e8;border-radius:10px;background:#f7fafb}.entry-header-grid{display:grid;grid-template-columns:minmax(280px,1fr) auto 155px 135px 210px;gap:0 8px;align-items:end}.entry-header-grid>.field:first-child{grid-column:1/3}.entry-supplier-row{display:contents}.entry-supplier-row .entry-autocomplete{grid-column:1}.entry-supplier-row>button{grid-column:2;min-height:38px;margin-bottom:10px;padding:0 10px;white-space:nowrap;font-size:11px}.entry-issue-date{grid-column:3}.entry-entry-date{grid-column:4}.entry-key-field{grid-column:5}.entry-product-search{margin-top:12px;padding:12px 14px 2px;border:1px solid #d6e2e8;border-radius:10px;background:#f7fafb}.entry-main-actions{align-items:center}.entry-main-actions #create-entry-product-bottom{margin-right:auto}.entry-main-actions #entry-payables:disabled{opacity:.5}
@media(max-width:1100px){.entry-header-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.entry-header-grid>.field:first-child{grid-column:1/-1}.entry-supplier-row{grid-column:1/-1;display:flex;align-items:end;gap:9px}.entry-supplier-row .entry-autocomplete{flex:1}.entry-supplier-row>button{margin-bottom:10px}.entry-issue-date,.entry-entry-date{grid-column:auto}.entry-key-field{grid-column:1/-1}}
@media(max-width:600px){.entry-head-actions{align-items:stretch;flex-direction:column-reverse}.entry-header-grid{grid-template-columns:1fr}.entry-supplier-row,.entry-key-field{grid-column:auto}.entry-supplier-row{align-items:stretch;flex-direction:column}.entry-supplier-row>button{margin:0 0 10px}.entry-main-actions{flex-wrap:wrap}.entry-main-actions button{flex:1 1 145px}.entry-main-actions #create-entry-product-bottom{margin-right:0}}
@media(max-width:760px){.desktop-status span,.desktop-status span:first-child{min-width:auto}.desktop-page-shell>.main-area>.content{padding-top:18px}}
.modal:has(.service-order-form){width:min(980px,calc(100vw - 24px));max-height:calc(100vh - 24px);display:flex;flex-direction:column}.modal:has(.service-order-form) .modal-body{overflow:auto;min-height:0}.service-order-grid{display:grid;grid-template-columns:120px 100px repeat(3,minmax(0,1fr));gap:0 12px}.service-order-customer{grid-column:3/-1}.service-order-wide{grid-column:1/-1}.service-order-form textarea{width:100%;resize:vertical;min-height:92px}.service-order-dates{display:flex;gap:24px;flex-wrap:wrap;padding:9px 12px;margin:2px 0 12px;background:#eef4f7;border-radius:7px;color:#4f6876}.service-order-products{border:1px solid #d7e2e9;border-radius:8px;padding:12px;margin-top:8px}.service-order-products h3{margin:0 0 5px;font-size:13px}.service-order-form>.form-actions{position:sticky;bottom:-16px;background:#fff;border-top:1px solid #dce6eb;padding-top:13px}@media(max-width:760px){.modal-backdrop:has(.service-order-form){padding:0}.modal:has(.service-order-form){width:100vw;max-height:100vh;border-radius:0}.service-order-grid{grid-template-columns:1fr 1fr}.service-order-customer,.service-order-wide{grid-column:1/-1}.service-order-form>.form-actions{bottom:-14px;flex-wrap:wrap}.service-order-form>.form-actions button{flex:1}}
.quote-button{border:0;background:transparent;padding:2px 5px;display:inline-grid;place-items:center;border-radius:6px}.quote-button:hover{background:#fff4cf}.quote-icon{display:inline-grid;place-items:center;width:27px;height:29px;border:2px solid #d89a18;border-radius:3px;background:linear-gradient(135deg,#fff7c7 0 62%,#efb12e 63%);color:#315d82;font-weight:900;box-shadow:0 2px 4px #18374720}.quote-action{display:inline-flex;align-items:center;gap:7px}.quote-action .quote-icon{width:22px;height:23px;font-size:11px}.quote-format-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.quote-format-options>p{grid-column:1/-1;margin:0 0 4px;color:#617987}.quote-format-options button{display:grid;gap:5px;text-align:left;padding:18px}.quote-format-options button strong{font-size:18px}.quote-format-options button small{color:#6f8492}@media(max-width:480px){.quote-format-options{grid-template-columns:1fr}}
.modal:has(.service-order-print-options) .modal-head h2,
.service-order-print-options{font-family:"Segoe UI",Arial,sans-serif}
.service-order-print-options>p{color:#25445a;font-size:13px;font-weight:500}
html .service-order-print-options button.secondary{background:#f9fcff;border:1px solid #a9c5d5;border-radius:9px;color:#17364c;box-shadow:0 2px 7px #17364c12;padding:17px 18px}
html .service-order-print-options button.secondary:hover:not(:disabled){background:#eaf5fa;border-color:#4285a3;color:#112f45}
html .service-order-print-options button.secondary:focus-visible{outline:3px solid #2884ab;outline-offset:2px}
.service-order-print-options button strong{font-size:17px;font-weight:700;line-height:1.3}
.service-order-print-options button small{color:#38596c;font-size:13px;font-weight:500;line-height:1.4}
html .service-order-print-options button[data-service-order-whatsapp]{background:#eaf8f5;border-color:#72b6a8;border-left:4px solid #15816d}
html .service-order-print-options button[data-service-order-whatsapp]:hover:not(:disabled){background:#d9f2ec;border-color:#15816d}

/* Entrada compacta: preserva os campos e cálculos do legado com menor altura. */
.entry-modal .entry-cost-grid{grid-template-columns:repeat(5,minmax(125px,1fr));gap:0 9px}
.entry-modal .entry-cost-grid .field{margin-bottom:8px}
.entry-modal .entry-price-grid{display:grid;grid-template-columns:repeat(5,minmax(150px,1fr));gap:9px}
.entry-modal .entry-price-card{display:grid;grid-template-columns:1fr 1fr;gap:6px 8px;padding:9px;border:1px solid #d8e4ea;border-radius:8px;background:#fff}
.entry-modal .entry-price-card>strong{grid-column:1/-1;font-size:12px}
.entry-modal .entry-price-card label{display:grid;gap:4px;color:#667f8d;font-size:10px;font-weight:700;text-transform:uppercase}
.entry-modal .entry-price-card input{width:100%;min-width:0;text-align:right}
@media(max-width:1000px){.entry-modal .entry-cost-grid{grid-template-columns:repeat(3,minmax(135px,1fr))}.entry-modal .entry-price-grid{grid-template-columns:repeat(3,minmax(150px,1fr))}}
@media(max-width:650px){.entry-modal .entry-cost-grid{grid-template-columns:1fr 1fr}.entry-modal .entry-price-grid{grid-template-columns:1fr}.entry-modal .entry-price-card{grid-template-columns:1fr 1fr}}

/* Submenu legado de Entrada de Produtos, com reservas visíveis para módulos futuros. */
.desktop-submenu{position:relative}
.desktop-submenu-trigger{display:flex!important;align-items:center;justify-content:space-between;gap:24px}
.desktop-submenu-trigger>span{margin-left:auto;font-size:17px;line-height:1}
.desktop-submenu-items{display:none;position:fixed;z-index:70;min-width:280px;max-height:calc(100dvh - 12px);overflow-y:auto;overscroll-behavior:contain;padding:6px;background:#fff;border:1px solid #cdd9e0;border-radius:3px;box-shadow:0 12px 24px #183e521f}
.desktop-submenu.open>.desktop-submenu-items{display:block}
.desktop-submenu-items>button{display:flex!important;align-items:center;justify-content:space-between;gap:16px;width:100%;white-space:nowrap}
.modal-backdrop{z-index:200}
.desktop-sales-menu>.desktop-menu-items,.desktop-sales-output-items{min-width:315px}.desktop-sales-menu>.desktop-menu-items{max-height:calc(100dvh - 52px);overflow-y:auto;overscroll-behavior:contain}

/* Campos editáveis equivalentes à composição de custo da entrada legada. */
.entry-modal .entry-extra-fields{margin-top:4px;padding-top:9px;border-top:1px solid #dce6eb}
.entry-modal .entry-extra-fields h4{margin:0 0 8px;color:#425f70;font-size:12px}
.entry-modal .entry-extra-grid{grid-template-columns:repeat(5,minmax(125px,1fr));gap:0 9px}
.entry-modal .entry-extra-grid .field{margin-bottom:8px}
.entry-modal .cost-preview{justify-content:flex-start;gap:22px;flex-wrap:wrap}
.entry-modal .cost-preview>span{display:flex;align-items:center;gap:7px;color:#667f8d;font-size:11px;text-transform:uppercase}
.entry-modal .cost-preview>span strong{color:#203d4d;font-size:14px}
@media(max-width:1000px){.entry-modal .entry-extra-grid{grid-template-columns:repeat(3,minmax(135px,1fr))}}
@media(max-width:650px){.entry-modal .entry-extra-grid{grid-template-columns:1fr 1fr}.entry-modal .cost-preview{gap:10px}.entry-modal .cost-preview>span{width:100%;justify-content:space-between}}

/* Entrada incremental: modo manual/XML e identificação compacta do produto. */
.entry-mode-switch{display:flex;align-items:center;gap:8px;margin-bottom:10px;padding:9px 11px;border:1px solid #d6e2e8;border-radius:9px;background:#f7fafb}
.entry-mode-switch .secondary.active{border-color:#317d9c;background:#e1f1f6;color:#17536c}
.entry-mode-switch>span{margin-left:auto;color:#5f7887;font-size:11px}
.entry-note-header.locked{background:#f1f4f5}.entry-note-header.locked input:disabled,.entry-note-header.locked select:disabled{color:#526976;background:#e9eef0;opacity:1}
.entry-modal .entry-product-search{display:grid;grid-template-columns:150px minmax(250px,1fr) 135px 95px 115px auto;gap:9px;align-items:end}
.entry-modal .entry-product-search .field{margin-bottom:10px}.entry-modal .entry-product-search>button{margin-bottom:10px}
.entry-modal .entry-product-search{position:relative}.entry-modal .entry-product-search .entry-autocomplete{position:static}.entry-modal .entry-product-search #productId-results{position:absolute;z-index:8;left:14px;right:14px;top:calc(100% - 3px);box-shadow:0 12px 30px #17374733}
.entry-product-identity{display:grid;grid-template-columns:110px minmax(240px,1fr) minmax(140px,.5fr);gap:8px;margin-bottom:10px}
.entry-product-identity>span{display:grid;gap:3px;padding:7px 9px;border:1px solid #dce6eb;border-radius:7px;background:#fff}.entry-product-identity small{color:#718793;font-size:9px;text-transform:uppercase}
@media(max-width:900px){.entry-modal .entry-product-search{grid-template-columns:1fr 1fr}.entry-product-identity{grid-template-columns:90px 1fr}.entry-product-identity>span:last-child{grid-column:1/-1}.entry-mode-switch{flex-wrap:wrap}.entry-mode-switch>span{width:100%;margin-left:0}}
@media(max-width:600px){.entry-modal .entry-product-search{grid-template-columns:1fr}.entry-product-identity{grid-template-columns:1fr}.entry-product-identity>span:last-child{grid-column:auto}.entry-mode-switch button{flex:1}.entry-mode-switch #import-purchase-xml{flex-basis:100%}}
/* Entrada comercial e fiscal: três pilares com leitura compacta. */
.login-message>p{max-width:650px}
.login-benefits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:38px}
.login-benefits>div{min-width:0;padding:13px 12px;gap:10px}
.login-benefits strong{font-size:11px;line-height:1.25}
.login-benefit-icon{width:32px;height:32px;flex:none}
@media(max-width:1050px){.login-benefits{grid-template-columns:1fr}}

/* Confirmação interna da entrada: evita o bloqueio de teclado do diálogo nativo do Electron. */
.entry-confirm-overlay{position:absolute;inset:0;z-index:12;display:grid;place-items:center;padding:20px;background:#10263499;border-radius:14px}
.entry-confirm{width:min(430px,100%);padding:22px;border-radius:12px;background:#fff;box-shadow:0 22px 60px #10263466}
.entry-confirm h3{margin:0 0 9px;font:800 18px Manrope,sans-serif;color:#1d3141}
.entry-confirm p{margin:0;color:#607987;line-height:1.5}
.entry-confirm .form-actions{margin-top:20px}
.sidebar-brand{width:100%;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer;border-radius:9px}.sidebar-brand:hover{background:#ffffff0d}.sidebar-brand:active{background:#ffffff18}
.wallpaper-form{display:grid;gap:14px}.wallpaper-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.wallpaper-option{display:flex;align-items:flex-start;gap:9px;padding:14px;border:1px solid #d5e2e8;border-radius:9px;background:#f7fafb;cursor:pointer}.wallpaper-option input{margin-top:3px}.wallpaper-option span{display:grid;gap:3px}.wallpaper-option small{color:#6b818e;line-height:1.35}.wallpaper-controls{display:grid;grid-template-columns:120px minmax(180px,1fr) minmax(220px,1.2fr);gap:12px;align-items:end}.wallpaper-controls .field{margin:0}.wallpaper-preview{min-height:115px;border:1px dashed #b9ccd6;border-radius:9px;background:linear-gradient(135deg,#0a2235,#123e4b);display:grid;place-items:center;padding:20px;color:#d7edf4;text-align:center}.wallpaper-form>.form-actions{margin-top:2px}@media(max-width:700px){.wallpaper-options,.wallpaper-controls{grid-template-columns:1fr}.wallpaper-form>.form-actions{flex-wrap:wrap}.wallpaper-form>.form-actions button{flex:1 1 150px}}
.print-logo-preview{min-height:150px;display:grid;place-items:center;padding:18px;border:1px dashed #b9ccd6;border-radius:9px;background:#f7fafb;color:#6b818e}.print-logo-preview img{display:block;max-width:100%;max-height:130px;object-fit:contain}
.page-head-cashFlow{align-items:center;margin-bottom:12px}.page-head-cashFlow .eyebrow{font-size:9px}.page-head-cashFlow h1{margin:5px 0 3px;font-size:24px}.page-head-cashFlow p{font-size:12px}.page-head-cashFlow .note{padding:6px 10px;font-size:10px}.cash-flow-filters{display:grid;grid-template-columns:120px 120px 120px minmax(230px,1.2fr) 75px 130px 82px;gap:7px;align-items:end;padding:8px 12px 10px}.cash-flow-filters .field{min-width:0;margin:0}.cash-flow-filters .field span{font-size:9px}.cash-flow-filters input,.cash-flow-filters select{min-width:0;min-height:36px;padding:7px 9px;border-radius:7px}.cash-flow-filters .search-actions{min-width:0;margin:0}.cash-flow-filters .search-actions button{width:100%;min-height:36px;padding:7px}.cash-flow-panel>.panel-head{padding:10px 15px 7px}.cash-flow-panel>.panel-head h2{font-size:14px}.cash-flow-panel>.panel-head p{margin-top:2px;font-size:10px}.cash-income td{background:#dcfce7}.cash-expense td{background:#fee2e2}.cash-bank td{background:#fef3c7}.cash-summary{margin-top:12px}.cash-summary td:not(:first-child),.cash-summary th:not(:first-child){text-align:right}.cash-summary tr.cash-total td{border-top:2px solid #8ba3b0;font-weight:800;background:#edf4f7}@media(max-width:1250px){.cash-flow-filters{grid-template-columns:repeat(5,minmax(0,1fr))}.cash-flow-filters .cash-history{grid-column:span 2}}@media(max-width:900px){.cash-flow-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.cash-flow-filters .cash-history{grid-column:span 2}.cash-flow-filters .cash-operator{grid-column:span 2}}@media(max-width:760px){.page-head-cashFlow{align-items:flex-start}.page-head-cashFlow .note{white-space:normal}.cash-flow-filters{grid-template-columns:repeat(2,minmax(0,1fr));padding:9px}.cash-flow-filters .cash-history{grid-column:1/-1}.cash-flow-filters .cash-operator{grid-column:auto}.cash-flow-filters .search-actions{align-self:end}}@media(max-width:430px){.cash-flow-filters{grid-template-columns:1fr}.cash-flow-filters .cash-history,.cash-flow-filters .cash-store,.cash-flow-filters .cash-operator{grid-column:auto}}
.page-head-receivables{align-items:center;margin-bottom:12px}.page-head-receivables h1{margin:5px 0 3px;font-size:24px}.receivables-panel{margin-bottom:12px}.receivables-panel>.panel-head{padding:11px 15px 8px}.receivables-filters{display:grid;grid-template-columns:120px 120px 130px 110px 180px minmax(220px,1fr) 72px 88px;gap:7px;align-items:end;padding:9px 12px 11px}.receivables-filters .field{margin:0;min-width:0}.receivables-filters .field span{font-size:9px}.receivables-filters input,.receivables-filters select{min-width:0;min-height:36px;padding:7px 9px;border-radius:7px}.receivables-filters button{min-height:36px;padding:7px 10px}.receivable-actions{display:flex;align-items:center;gap:8px;padding:9px 12px;border-bottom:1px solid #e1e9ee}.receivable-actions strong{margin-right:auto}.receivable-actions button{padding:7px 10px}.receivables-grid{max-height:430px}.receivables-grid table{min-width:1180px}.receivables-grid th,.receivables-grid td{padding:9px 11px}.receivable-row{cursor:pointer}.receivable-current td{background:#dcfce7}.receivable-overdue td{background:#fee2e2}.receivable-paid td{background:#e8f2f6}.receivable-row.selected td{box-shadow:inset 0 2px #315266,inset 0 -2px #315266}.receivables-total{display:flex;align-items:center;gap:16px;padding:10px 14px;border-top:1px solid #d9e4ea}.receivables-total strong{margin-left:auto}@media(max-width:1250px){.receivables-filters{grid-template-columns:repeat(4,minmax(0,1fr))}.receivable-search{grid-column:span 2}}@media(max-width:760px){.page-head-receivables{align-items:flex-start}.receivables-filters{grid-template-columns:repeat(2,minmax(0,1fr));padding:9px}.receivable-search{grid-column:1/-1}.receivable-actions{align-items:stretch;flex-direction:column}.receivable-actions strong{margin:0}.receivables-total{flex-wrap:wrap}.receivables-total strong{margin-left:0}}@media(max-width:430px){.receivables-filters{grid-template-columns:1fr}.receivable-search{grid-column:auto}}
.system-update-notice{position:fixed;z-index:200;right:22px;bottom:22px;padding:14px 18px;border:1px solid #72a8bb;border-radius:10px;background:#173f52;color:#fff;font-weight:800;box-shadow:0 14px 38px #10293655;animation:desktop-toast-in .18s ease-out}.system-update-notice:hover{background:#225a72}@media(max-width:600px){.system-update-notice{left:12px;right:12px;bottom:12px;width:calc(100% - 24px)}}
.transfer-pending td{background:#fee2e2}.transfer-delivered td{background:#dcfce7}.transfer-partial td{background:#fef3c7}.transfer-pending:hover td,.transfer-delivered:hover td,.transfer-partial:hover td{filter:brightness(.985)}.transfer-detail .entry-note-items .detail-row>span:last-child{display:grid;justify-items:end;gap:6px}
.transfer-draft-head .field{margin:0;display:grid;grid-template-columns:auto 110px;align-items:center;gap:8px}.transfer-draft-head .field span{border:0;background:transparent;padding:0}.transfer-draft-head .field input{text-align:right;font-weight:700}.search-grid.transfer-search-grid{grid-template-columns:repeat(4,minmax(145px,1fr)) minmax(150px,.85fr) repeat(2,minmax(145px,.9fr)) auto;gap:12px}.search-grid.transfer-search-grid .search-actions button{min-width:90px}@media(max-width:1350px){.search-grid.transfer-search-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.search-grid.transfer-search-grid .search-actions{justify-content:flex-end}}@media(max-width:760px){.search-grid.transfer-search-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.search-grid.transfer-search-grid .search-actions{justify-content:stretch}.search-grid.transfer-search-grid .search-actions button{width:100%}}@media(max-width:520px){.search-grid.transfer-search-grid{grid-template-columns:1fr}}
.paged-grid-scroll{max-height:min(50vh,520px);overflow:auto}.paged-grid-scroll thead th{position:sticky;top:0;z-index:2;box-shadow:0 1px #e4ebef}.page-numbers{display:flex;align-items:center}.page-numbers button{min-width:38px;height:38px;padding:0 10px;border:1px solid #cbd9e2;border-right:0;background:#fff;color:#315065;font-weight:700}.page-numbers button:first-child{border-radius:7px 0 0 7px}.page-numbers button:last-child{border-right:1px solid #cbd9e2;border-radius:0 7px 7px 0}.page-numbers button.active{background:#4058bd;border-color:#4058bd;color:#fff}.page-numbers button:disabled{background:#f7f9fa;color:#9aabb4}.receivables-results .paging{margin-top:0}@media(max-width:600px){.paged-grid-scroll{max-height:55vh}.paging{gap:10px;align-items:flex-start;flex-direction:column}.page-numbers{max-width:100%;overflow:auto}}
.cash-flow-grid{height:48vh;min-height:300px;max-height:560px;overflow:auto;scrollbar-gutter:stable}.cash-flow-grid thead{position:sticky;top:0;z-index:2}.cash-flow-grid th{box-shadow:0 1px 0 #dbe5ea}.cash-flow-grid td{padding-top:8px;padding-bottom:8px}.cash-flow-grid tr[data-cash-row]{cursor:pointer}.cash-flow-grid tr[data-cash-row].selected td{background:#cdebf4!important;box-shadow:inset 0 1px #3b8faa,inset 0 -1px #3b8faa}.cash-flow-panel+.panel{margin-top:7px}.cash-flow-panel+.panel>.panel-head{display:flex;padding:7px 15px 5px}.cash-summary .panel-head h2{font-size:13px}.cash-summary .panel-head p{margin-top:1px;font-size:9px}.cash-summary th{padding-top:7px;padding-bottom:7px}.cash-summary td{padding-top:7px;padding-bottom:7px}.desktop-page-body>.content:has(.page-head-cashFlow){padding-top:9px}.page-head-cashFlow{margin-bottom:6px}.page-head-cashFlow .eyebrow{display:none}.page-head-cashFlow h1{margin:0 0 2px;font-size:21px}.page-head-cashFlow p{font-size:11px;line-height:1.25}.page-head-cashFlow .note{padding:5px 9px}@media(max-height:800px){.desktop-page-body>.content:has(.page-head-cashFlow){padding-top:6px;padding-bottom:8px}.page-head-cashFlow{margin-bottom:4px}.page-head-cashFlow p{display:none}.cash-flow-panel>.panel-head{padding:6px 12px 4px}.cash-flow-filters{padding:6px 10px 7px}.cash-flow-grid{height:48vh;min-height:260px;max-height:none}.cash-summary{margin-top:6px}.cash-flow-panel+.panel>.panel-head{padding:5px 12px 3px}.cash-summary th,.cash-summary td{padding-top:5px;padding-bottom:5px}}@media(max-width:760px){.cash-flow-grid{height:48vh;min-height:260px;max-height:none}}
.cash-correction-grid{display:grid;grid-template-columns:140px 150px 90px minmax(220px,1fr);gap:0 10px}.cash-correction-wide{grid-column:1/-1}.cash-correction-form textarea{width:100%;resize:vertical;border:1px solid #cbd7e3;border-radius:9px;padding:10px;font:inherit}.cash-correction-form .notice{padding:10px 12px;font-size:12px}@media(max-width:650px){.cash-correction-grid{grid-template-columns:1fr 1fr}.cash-correction-grid .cash-correction-wide{grid-column:1/-1}}@media(max-width:430px){.cash-correction-grid{grid-template-columns:1fr}.cash-correction-grid .cash-correction-wide{grid-column:auto}}
.payable-supplier-search{display:flex;gap:8px;align-items:stretch}.payable-supplier-search input{flex:1;min-width:0}.payable-supplier-search button{flex:none;width:auto;min-width:110px;margin:0}.cash-correction-grid #payable-supplier-status{display:block;color:#607681;font-size:11px;margin:4px 0 8px}@media(max-width:430px){.payable-supplier-search{flex-wrap:wrap}.payable-supplier-search button{width:100%}}
.payable-supplier-lookup{position:relative}.payable-supplier-lookup>.field{margin:0}.payable-supplier-lookup .entry-suggestions{position:absolute;z-index:10;left:0;right:0;top:calc(100% - 18px);box-shadow:0 10px 25px #17374722}.payable-supplier-lookup .entry-suggestions button{cursor:pointer}
.payable-create-form .cash-correction-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.payable-create-form input[type=date]{min-width:0;width:100%}@media(max-width:430px){.payable-create-form .cash-correction-grid{grid-template-columns:minmax(0,1fr)}}
#payable-results tr[data-payable-id]{cursor:pointer}#payable-results tr[data-payable-id]:hover,#payable-results tr[data-payable-id].selected{background:#e7f2f6}#payable-results tr[data-payable-id]:focus-visible{outline:2px solid #397d9e;outline-offset:-2px}
.payable-search-form .cash-correction-grid{grid-template-columns:minmax(118px,1fr) minmax(118px,1fr) minmax(90px,.7fr) minmax(110px,1.15fr) minmax(110px,1fr) minmax(140px,1.2fr) 92px;gap:8px;align-items:end}.payable-search-form .field{min-width:0;margin:0;gap:5px}.payable-search-form input,.payable-search-form select{width:100%;min-width:0;min-height:38px;padding:8px 9px;font-size:12px}.payable-search-form .payable-search-action{min-height:38px;padding:8px 10px;font-size:12px;white-space:nowrap}@media(max-width:900px){.payable-search-form .cash-correction-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.payable-search-form .payable-search-action{grid-column:4}}@media(max-width:600px){.payable-search-form .cash-correction-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.payable-search-form .payable-search-action{grid-column:2}}@media(max-width:380px){.payable-search-form .cash-correction-grid{grid-template-columns:minmax(0,1fr)}.payable-search-form .payable-search-action{grid-column:1}}
.audit-log-filters{display:grid;grid-template-columns:130px 130px minmax(130px,1fr) minmax(130px,1fr) auto;gap:10px;align-items:end}.audit-log-filters .field{min-width:0;margin:0}.audit-log-filters input{width:100%;min-width:0}.audit-log-results{margin-top:16px;max-height:55vh}.audit-log-results table{min-width:720px}.audit-log-results td:last-child{min-width:230px;white-space:normal;overflow-wrap:anywhere}@media(max-width:700px){.audit-log-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.audit-log-filters button{grid-column:1/-1}}@media(max-width:400px){.audit-log-filters{grid-template-columns:minmax(0,1fr)}}
.audit-history-filters{grid-template-columns:130px 130px minmax(180px,1fr) minmax(240px,1.4fr) auto}.audit-product-filters{display:grid;grid-template-columns:130px 130px minmax(180px,.8fr) minmax(280px,1.7fr) auto;gap:10px;align-items:end}.audit-product-filters .field{min-width:0;margin:0}.audit-product-search{position:relative}.audit-product-search .lookup-results{position:absolute;z-index:12;top:100%;left:0;right:0;max-height:260px;overflow:auto;background:var(--surface,#fff);border:1px solid var(--border,#d8dde5);box-shadow:0 10px 28px rgba(15,23,42,.18)}.audit-product-search .lookup-results button{display:flex;width:100%;gap:8px;justify-content:space-between;padding:9px 11px;border:0;border-bottom:1px solid var(--border,#e5e7eb);background:transparent;text-align:left}.audit-product-search .lookup-results button:hover{background:var(--surface-soft,#f4f6f8)}.audit-product-search .lookup-results span{display:block;padding:10px}.audit-movement-summary{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.audit-movement-summary span{padding:8px 11px;border:1px solid var(--border,#d8dde5);border-radius:8px;background:var(--surface-soft,#f6f8fa)}@media(max-width:800px){.audit-history-filters,.audit-product-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.audit-history-filters button,.audit-product-filters button.primary{grid-column:1/-1}}@media(max-width:480px){.audit-history-filters,.audit-product-filters{grid-template-columns:minmax(0,1fr)}}
.audit-compact-modal .audit-log-results{margin-top:10px;max-height:min(58vh,520px)}.audit-compact-modal .audit-log-results table{font-size:12px}.audit-compact-modal .audit-log-results th,.audit-compact-modal .audit-log-results td{padding:6px 8px;line-height:1.25;vertical-align:top}.audit-compact-modal .audit-log-results td:last-child{min-width:0;white-space:normal}.audit-compact-modal .audit-log-filters,.audit-compact-modal .audit-product-filters{gap:8px}
.cash-history-picker{display:grid;grid-template-columns:92px minmax(0,1fr);gap:7px}.cash-history-picker input{min-width:0;width:100%}@media(max-width:430px){.cash-history-picker{grid-template-columns:78px minmax(0,1fr)}}
.modal:has(.optics-form){width:min(1060px,calc(100vw - 24px));max-height:calc(100vh - 24px);display:flex;flex-direction:column}.modal:has(.optics-form) .modal-body{overflow:auto;min-height:0;padding:14px 18px}.optics-form .field{min-width:0;margin-bottom:8px}.optics-customer-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:0 10px}.optics-customer-grid .field{margin-bottom:6px}.optics-customer-grid input{min-height:34px;padding:6px 8px}.optics-order,.optics-store{grid-column:span 1}.optics-customer-name{grid-column:span 7}.optics-tax-id{grid-column:span 3}.optics-address{grid-column:span 6}.optics-district,.optics-city,.optics-phone{grid-column:span 2}.optics-prescription{margin:3px 0 10px;padding:11px 12px;border:1px solid #d7e2e9;border-radius:9px;background:#f7fafb}.optics-prescription h3{margin:0 0 8px;font-size:13px}.optics-eyes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.optics-eye{display:grid;grid-template-columns:76px 76px 62px 76px 82px;justify-content:start;gap:7px;margin:0;padding:9px;border:1px solid #d7e2e9;border-radius:8px;background:#fff}.optics-eye legend{padding:0 5px;font-weight:800;color:#29465a}.optics-eye .field{margin:0}.optics-eye .field span{font-size:9px}.optics-eye input{min-height:34px;padding:6px 8px;text-align:right}.optics-total-dp{width:130px;margin:8px 0 0!important}.optics-total-dp input{min-height:34px;padding:6px 8px;text-align:right}.optics-extra{display:grid;grid-template-columns:repeat(4,130px);gap:9px;margin-top:9px}.optics-extra input{min-height:34px;padding:6px 8px;text-align:right}.optics-finishing-grid{display:grid;grid-template-columns:minmax(220px,1.15fr) 135px 135px minmax(230px,1.25fr);gap:0 10px}.optics-lens-type{grid-column:4}.optics-notes{grid-column:1/-1}.optics-notes textarea{width:100%;min-height:70px;resize:vertical}.optics-form>.form-actions{position:sticky;bottom:-16px;background:#fff;border-top:1px solid #dce6eb;padding-top:11px}@media(max-width:980px){.optics-customer-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.optics-order,.optics-store{grid-column:span 1}.optics-customer-name{grid-column:span 4}.optics-tax-id{grid-column:span 2}.optics-address{grid-column:span 4}.optics-district,.optics-city,.optics-phone{grid-column:span 2}.optics-eyes{grid-template-columns:1fr}.optics-finishing-grid{grid-template-columns:minmax(210px,1fr) 135px 135px}.optics-lens-type{grid-column:1/-1}}@media(max-width:700px){.modal-backdrop:has(.optics-form){padding:0}.modal:has(.optics-form){width:100vw;max-height:100vh;border-radius:0}.modal:has(.optics-form) .modal-body{padding:12px}.optics-customer-grid,.optics-finishing-grid{grid-template-columns:1fr 1fr}.optics-customer-grid>*{grid-column:auto}.optics-customer-name,.optics-address,.optics-lens-type,.optics-notes{grid-column:1/-1}.optics-eye{grid-template-columns:repeat(3,minmax(68px,1fr))}.optics-extra{grid-template-columns:repeat(2,130px)}.optics-form>.form-actions{bottom:-14px;flex-wrap:wrap}.optics-form>.form-actions button{flex:1}}@media(max-width:430px){.optics-customer-grid,.optics-finishing-grid,.optics-eye,.optics-extra{grid-template-columns:1fr}.optics-customer-name,.optics-address,.optics-lens-type,.optics-notes{grid-column:auto}.optics-total-dp{width:100%}}
.module-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.module-setting{display:flex;align-items:flex-start;gap:11px;padding:14px;border:1px solid #d5e2e8;border-radius:9px;background:#f7fafb;cursor:pointer}.module-setting input{margin-top:3px}.module-setting span{display:grid;gap:3px}.module-setting strong{color:#20394b}.module-setting small{color:#6b818e;line-height:1.4}.module-setting:has(input:checked){border-color:#79a9bd;background:#eef7fa}.module-setting:has(input:disabled){cursor:not-allowed;opacity:.72}@media(max-width:650px){.module-settings-grid{grid-template-columns:1fr}}
.table-scroll{overflow:auto;max-height:clamp(280px,calc(100vh - 310px),620px);scrollbar-gutter:stable}.table-scroll thead{position:sticky;top:0;z-index:2}.table-scroll th{box-shadow:0 1px 0 #dce5ea}@media(max-width:760px){.table-scroll{max-height:calc(100vh - 280px)}}
.optics-frame-grid{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:10px}.optics-frame-type,.optics-frame-reference{grid-column:span 2}.optics-frame-models{display:grid;grid-template-columns:repeat(4,minmax(90px,1fr));gap:14px;margin:12px 0 18px}.optics-frame-model{display:grid;place-items:center;gap:7px;padding:10px;border:1px solid #d8e2e7;border-radius:8px;cursor:pointer}.optics-frame-model:has(input:checked){border-color:#1683ad;background:#eef9fd}.optics-frame-model input{position:absolute;opacity:0}.optics-frame-shape{display:block;width:72px;height:38px;border:2px solid #1683ad}.frame-shape-1{border-radius:13px}.frame-shape-2{border-radius:50%}.frame-shape-3{border-radius:45% 55% 48% 42%;transform:skew(-7deg)}.frame-shape-4{border-radius:48% 48% 44% 44%}.frame-shape-5{width:58px;height:46px;border-radius:50%}.frame-shape-6{border-radius:16px 16px 24px 24px}.frame-shape-7{border-radius:42% 48% 30% 35%}.frame-shape-8{width:65px;height:32px;border-radius:50%}.optics-prescription h4{margin:18px 0 4px}@media(max-width:760px){.optics-frame-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.optics-frame-models{grid-template-columns:repeat(2,minmax(0,1fr))}}
.optics-wizard{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:-4px 0 14px;border-bottom:1px solid #d7e0e5}.optics-wizard button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:8px;border:0;border-bottom:3px solid transparent;background:#fff;color:#84939b;font-weight:700}.optics-wizard button span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#e2e6e7;color:#69777d}.optics-wizard button.active{border-bottom-color:#0799cf;color:#0879aa}.optics-wizard button.active span{background:#0799cf;color:#fff}.optics-step{min-height:285px}.optics-step[hidden]{display:none!important}.optics-step .optics-prescription{margin-top:0}.optics-form>.form-actions{position:sticky;bottom:0;z-index:3;background:#fff;border-top:1px solid #e1e7ea;padding-top:10px}@media(max-width:760px){.optics-wizard{grid-template-columns:1fr 1fr}.optics-wizard button{justify-content:flex-start;font-size:11px}.optics-step{min-height:0}}
.optics-frame-measure-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.85fr);gap:22px;align-items:center}.optics-frame-guide{margin:0;text-align:center;color:#657984;font-size:11px}.optics-frame-guide svg{width:100%;max-width:440px;height:auto}.optics-frame-guide .frame-outline{fill:none;stroke:#343a3c;stroke-width:12;stroke-linejoin:round}.optics-frame-guide g{opacity:0;transition:opacity .15s}.optics-frame-guide g line{stroke:#ff674f;stroke-width:3;stroke-dasharray:7 5}.optics-frame-guide g circle{fill:#ff674f}.optics-frame-guide[data-active="frameHorizontal"] [data-frame-line="frameHorizontal"],.optics-frame-guide[data-active="frameVertical"] [data-frame-line="frameVertical"],.optics-frame-guide[data-active="frameBridge"] [data-frame-line="frameBridge"],.optics-frame-guide[data-active="frameDiagonal"] [data-frame-line="frameDiagonal"]{opacity:1}@media(max-width:900px){.optics-frame-measure-layout{grid-template-columns:1fr}.optics-frame-guide{max-width:460px;margin:auto}}
.sales-period-filters{display:grid;grid-template-columns:130px 130px 140px minmax(330px,1fr) minmax(240px,.8fr) 150px auto;gap:9px;align-items:end;padding:12px 15px}.sales-period-filters .field{margin:0;min-width:0}.sales-period-filters input,.sales-period-filters select{min-width:0;width:100%}.sales-period-filters .search-actions{min-width:0}.sales-filter-pair{display:grid;grid-template-columns:minmax(150px,1fr) 180px;gap:7px}.sales-period-summary{margin-top:12px}.sales-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:14px}.sales-summary-grid dl{margin:0;border:1px solid #dbe5ea;border-radius:8px;overflow:hidden}.sales-summary-grid dl>div{display:flex;justify-content:space-between;gap:15px;padding:7px 10px;border-top:1px solid #e7edf0}.sales-summary-grid dl>div:first-child{border-top:0}.sales-summary-grid dt{color:#4e6675}.sales-summary-grid dd{margin:0;color:#173d65;font-weight:800;white-space:nowrap}@media(max-width:1450px){.sales-period-filters{grid-template-columns:repeat(4,minmax(0,1fr))}.sales-main-filter,.sales-product-filter{grid-column:span 2}.sales-period-filters .search-actions{grid-column:1/-1;justify-content:flex-end}.sales-period-filters .search-actions button{min-width:110px}}@media(max-width:760px){.sales-period-filters{grid-template-columns:repeat(2,minmax(0,1fr));padding:10px}.sales-main-filter,.sales-product-filter{grid-column:1/-1}.sales-period-filters .search-actions{justify-content:stretch}.sales-period-filters .search-actions button{width:100%}.sales-summary-grid{grid-template-columns:1fr}.sales-filter-pair{grid-template-columns:1fr}}@media(max-width:430px){.sales-period-filters{grid-template-columns:1fr}.sales-main-filter,.sales-product-filter{grid-column:auto}}
.sales-commission-mode {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  gap: 18px;
  margin: 0;
  min-width: 220px;
  padding: 8px 12px 10px;
}

.sales-commission-mode legend {
  color: var(--muted);
  font-size: 12px;
  padding: 0 4px;
}

.sales-commission-mode label {
  align-items: center;
  display: flex;
  gap: 6px;
}

.sales-commission-totals {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 28px;
  justify-content: flex-end;
  padding: 14px 18px;
}

.realtime-metrics{display:grid;grid-template-columns:repeat(6,minmax(130px,1fr));gap:12px;margin:12px 0}.realtime-metric{display:grid;gap:7px;padding:16px;border:1px solid #d8e4ea;border-radius:10px;background:linear-gradient(145deg,#fff,#f2f8fa);box-shadow:0 3px 12px rgba(25,62,82,.07)}.realtime-metric span{color:#657b88;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.35px}.realtime-metric strong{color:#173d65;font-size:22px}.realtime-stores .table-scroll{max-height:310px}.realtime-rank-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:12px}.realtime-ranking{min-width:0}.realtime-bars{display:grid;gap:10px;padding:14px}.realtime-bar{display:grid;gap:5px}.realtime-bar div{display:flex;justify-content:space-between;gap:12px;min-width:0;font-size:11px}.realtime-bar div span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.realtime-bar div strong{color:#173d65;white-space:nowrap}.realtime-bar>i{display:block;height:7px;max-width:100%;border-radius:8px;background:#238db8}.realtime-bar>i.tone-green{background:#29a179}.realtime-bar>i.tone-gold{background:#d6a22c}.realtime-bar>i.tone-red{background:#d95f59}.realtime-finance-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}.realtime-finance-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:14px}.realtime-finance-values .realtime-metric{box-shadow:none}.realtime-suppliers{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:1200px){.realtime-metrics{grid-template-columns:repeat(3,minmax(130px,1fr))}.realtime-rank-grid{grid-template-columns:1fr 1fr}.realtime-rank-grid>:last-child{grid-column:1/-1}.realtime-suppliers>:last-child{grid-column:auto}}@media(max-width:760px){.realtime-metrics,.realtime-rank-grid,.realtime-finance-grid,.realtime-suppliers{grid-template-columns:1fr}.realtime-rank-grid>:last-child,.realtime-suppliers>:last-child{grid-column:auto}.realtime-finance-values{grid-template-columns:1fr 1fr}}
.realtime-sales-grid,.realtime-history-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.realtime-sales-grid>:last-child,.realtime-history-grid>:last-child{grid-column:auto}.realtime-history-grid .realtime-ranking:first-child{border-top:3px solid #29a179}.realtime-history-grid .realtime-ranking:last-child{border-top:3px solid #d95f59}@media(max-width:760px){.realtime-sales-grid,.realtime-history-grid{grid-template-columns:1fr}}
.presale-product-browser-results tr[data-browser-product]{cursor:pointer}.presale-product-browser-results tr[data-browser-product].selected td{background:#fff5df!important;box-shadow:inset 0 1px #d59b28,inset 0 -1px #d59b28}.presale-product-browser-results #presale-product-actions{position:sticky;bottom:0;z-index:3;padding:10px 12px;border-top:1px solid #dbe4e8;background:rgba(255,255,255,.97);backdrop-filter:blur(5px)}.presale-browser-actions{justify-content:flex-start;margin-top:8px;padding:0}.presale-browser-actions button{min-width:0}
.store-overview-metrics{grid-template-columns:repeat(4,minmax(150px,1fr))}.metric-positive strong,.value-positive{color:#16845f!important}.metric-negative strong,.value-negative{color:#c94747!important}@media(max-width:760px){.store-overview-metrics{grid-template-columns:1fr 1fr}}
.store-overview-dashboard{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);gap:12px;margin:0 0 12px}.chart-legend{display:flex;gap:14px;align-items:center;font-size:11px;font-weight:700;color:#607681}.chart-legend span:before{content:"";display:inline-block;width:9px;height:9px;border-radius:3px;margin-right:5px}.chart-legend .sales:before{background:#20a577}.chart-legend .expenses:before{background:#db5555}.store-chart-list,.liquidity-list{display:grid;gap:15px;padding:16px}.store-chart-row{display:grid;gap:6px}.store-chart-row header,.liquidity-list article>div{display:flex;justify-content:space-between;gap:12px;font-size:12px}.store-chart-row header strong,.liquidity-list strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.store-chart-row header span{color:#7b6767;white-space:nowrap}.store-chart-track{position:relative;height:19px;border-radius:5px;background:#edf2f3;overflow:hidden}.store-chart-track i{display:block;height:100%;border-radius:5px}.store-chart-track i.sales{background:linear-gradient(90deg,#16865f,#34b98d)}.store-chart-track i.expenses{background:linear-gradient(90deg,#bc3939,#eb6a64)}.store-chart-track b{position:absolute;inset:2px 7px auto auto;font-size:11px;color:#173d53;text-shadow:0 1px #fff}.liquidity-list article{display:grid;gap:6px}.liquidity-list article>div b{color:#147858}.liquidity-list article>span{height:10px;border-radius:8px;background:#e6eeef;overflow:hidden}.liquidity-list article>span i{display:block;height:100%;border-radius:8px;background:linear-gradient(90deg,#238db8,#29a179)}.liquidity-list small{color:#70828b}@media(max-width:1050px){.store-overview-dashboard{grid-template-columns:1fr}}@media(max-width:560px){.store-overview-metrics{grid-template-columns:1fr}.chart-legend{display:none}}
.product-compatibility-summary h3{margin:0 0 8px}.product-compatibility-summary-grid{display:flex;flex-wrap:wrap;gap:8px}.product-compatibility-summary-grid span{padding:7px 10px;border:1px solid #dce7ed;border-radius:14px;background:#f8fafc}
.product-inline-create{display:flex;align-items:end;gap:6px;min-width:0}.product-legacy-grid>.product-inline-create{grid-column:span 8}.product-legacy-grid>.product-inline-create.product-legacy-wide{grid-column:1/-1}.product-inline-create .field{flex:1;min-width:0}.compact-plus{min-height:36px;padding:7px 11px;margin-bottom:18px;font-size:18px;line-height:1}.product-modal .field{margin-bottom:10px}.product-modal input,.product-modal select,.product-modal textarea{min-height:37px;padding:9px 10px}.product-modal .modal-body{padding:16px 20px}.product-modal .product-legacy-grid{gap:8px 12px}
.product-modal{width:min(1260px,100%);max-height:calc(100vh - 30px);background:#f4f8fb;border-radius:14px}.product-modal-head{background:linear-gradient(120deg,#082b4b,#123f67);padding:20px 28px;border:0;color:#fff}.product-modal-head .eyebrow{color:#22d0d1}.product-modal-head h2{color:#fff;font-size:25px}.product-modal-title{display:flex;align-items:center;gap:15px}.product-modal-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:12px;background:#078fa2;color:#fff;font-size:28px;font-weight:800}.product-modal-head .modal-close{color:#fff}.product-modal .modal-body{padding:16px 20px;background:#f4f8fb}.product-modal form{background:#f4f8fb}.product-modal .required-fields-note{display:none}.product-legacy-sheet,.product-compatibility-section{background:#fff;border:1px solid #d9e6ef;border-radius:14px;padding:24px;box-shadow:0 5px 18px #082b4b0d}.product-section-heading{display:flex;align-items:center;gap:14px;margin-bottom:20px}.product-section-heading h3{margin:0;color:#082b4b;font-size:20px}.product-section-heading p{margin:4px 0 0;color:#6a8497}.product-section-heading .required-fields-note{display:block;margin-left:auto;color:#6a8497}.product-section-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#e8f1f8;color:#082b4b;font-size:22px}.product-compatibility-section{margin-top:18px}.product-compatibility-compact-head h3{font-size:20px;color:#082b4b}.product-modal .form-actions{background:#fff;padding:15px 24px;border-top:1px solid #d9e6ef}.product-modal .form-actions .primary{background:#078f99}.product-modal .form-actions .primary:hover{background:#06747c}
.product-modal .product-legacy-sheet{max-width:none;margin:0}.product-modal .product-content{padding:18px 20px;display:block}.product-modal .product-compatibility-section{margin-top:16px}.product-modal .product-legacy-grid{grid-template-columns:repeat(12,minmax(0,1fr))}.product-modal .product-section-heading h3{font-size:20px;margin:0}.product-modal .product-compatibility-compact-head h3{font-size:19px;margin:0}.product-modal .modal-head.product-modal-head,.modal-backdrop .product-modal>.product-modal-head{background:linear-gradient(120deg,#082b4b,#123f67)!important;color:#fff!important}.product-modal .product-modal-head h2{color:#fff!important;display:block!important;visibility:visible!important}.product-modal .product-modal-head .modal-close{color:#fff!important}@media(max-width:650px){.product-modal .product-content{padding:12px}.product-modal .product-legacy-sheet,.product-modal .product-compatibility-section{padding:16px}.product-modal .product-section-heading{flex-wrap:wrap}.product-modal .product-section-heading .required-fields-note{margin-left:0}}
.stock-current-output{display:flex;align-items:center;min-height:43px;padding:10px 13px;border:1px solid #cbd7e3;border-radius:9px;background:#edf3f7;color:#36566a;font-variant-numeric:tabular-nums}
.pricing-row-error{grid-column:2/-1;color:#b42318;font-size:11px}.pricing-row input[aria-invalid="true"]{border-color:#d55d54;background:#fff8f7}

/* Pre-venda: leitura completa das sugestoes e quantidade sem truncamento. */
.presale-add{grid-template-columns:minmax(300px,1fr) 100px 130px 110px auto}
.presale-add .quantity input{width:100%;min-width:0}
.presale-form #presale-product-results{width:min(720px,calc(100vw - 72px));max-height:min(360px,45vh);overflow-y:auto;overflow-x:hidden}
.presale-form #presale-product-results button{display:grid;gap:4px;white-space:normal;overflow-wrap:anywhere}
.presale-form #presale-product-results button strong,.presale-form #presale-product-results button small{display:block;white-space:normal}
@media(max-width:780px){.presale-add{grid-template-columns:repeat(3,minmax(105px,1fr))}.presale-form #presale-product-results{width:100%;max-width:calc(100vw - 48px)}}
@media(max-width:480px){.presale-add{grid-template-columns:repeat(2,minmax(0,1fr))}.presale-add .entry-autocomplete,.presale-add>button{grid-column:1/-1}}

/* Correção de fatura: campos proporcionais sem alterar o formulário ou a gravação. */
.receivable-correction-modal{width:min(760px,100%)}
.receivable-correction-section{padding:0 0 12px}
.receivable-correction-section+.receivable-correction-section{border-top:1px solid #dce7ee;padding-top:14px}
.receivable-correction-section h3{margin:0 0 12px;font-size:13px;color:#143653}
.receivable-correction-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:10px 12px}
.receivable-correction-grid .field{min-width:0;margin:0;gap:5px}
.receivable-correction-grid input{width:100%;min-width:0}
.receivable-correction-grid .rc-span-3{grid-column:span 3}
.receivable-correction-grid .rc-span-4{grid-column:span 4}
.receivable-correction-grid .rc-span-5{grid-column:span 5}
.receivable-correction-grid .rc-span-6{grid-column:span 6}
.receivable-correction-grid .rc-span-7{grid-column:span 7}
@media(max-width:650px){.receivable-correction-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.receivable-correction-grid .field{grid-column:span 1}}
@media(max-width:430px){.receivable-correction-grid{grid-template-columns:minmax(0,1fr)}}
.seller-analysis-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 18px;padding:10px 18px}
.seller-analysis-layout{display:grid;grid-template-columns:minmax(230px,0.36fr) minmax(0,1fr);gap:14px;align-items:start}
.seller-analysis-layout .panel{min-width:0}
.seller-analysis-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px;padding:10px 18px}
@media(max-width:760px){.seller-analysis-totals,.seller-analysis-metrics{grid-template-columns:1fr}.seller-analysis-layout{grid-template-columns:1fr}}
.customer-ranking-breakdown{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start}
@media(max-width:760px){.customer-ranking-breakdown{grid-template-columns:1fr}}
.sales-margin-chart {
  min-height: 430px;
}
.sales-margin-legend {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.sales-margin-bars {
  display: grid;
  gap: 14px;
  padding: 24px 20px 30px;
}
.sales-margin-row {
  display: grid;
  grid-template-columns: minmax(190px, 28%) 1fr 82px;
  align-items: center;
  gap: 16px;
}
.sales-margin-name {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.sales-margin-name b,
.sales-margin-name small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sales-margin-name small {
  color: var(--muted);
}
.sales-margin-track {
  height: 28px;
  overflow: hidden;
  background: color-mix(in srgb, var(--border) 55%, transparent);
  border-radius: 7px;
}
.sales-margin-bar {
  display: block;
  width: var(--bar-width);
  height: 100%;
  min-width: 0;
  background: var(--bar-color);
  border-radius: inherit;
  transition: width 180ms ease;
}
.sales-margin-bar.negative {
  background: #b42318;
}
.sales-margin-value {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.goal-editor {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
}
.goal-editor form {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
}
.goal-editor .field {
  min-width: 170px;
}
.goal-average {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
}
.goal-average strong {
  color: var(--primary);
  font-size: 1.08rem;
}
tr.goal-reached td { background: color-mix(in srgb, #22c55e 12%, var(--surface)); }
tr.goal-pending td { background: color-mix(in srgb, #f59e0b 8%, var(--surface)); }
.status-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:18px 24px}.status-grid>div{display:grid;gap:7px;padding:14px;border:1px solid #dce6eb;border-radius:9px;background:#f8fbfc}.status-grid span{color:#6d8492;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.status-grid strong{color:#173d65;font:800 20px Manrope,sans-serif}.status-grid+.notice{margin:0 24px 22px}@media(max-width:760px){.status-grid{grid-template-columns:1fr 1fr;padding:16px 18px}.status-grid+.notice{margin:0 18px 18px}}@media(max-width:430px){.status-grid{grid-template-columns:1fr}}
@media (max-width: 760px) {
  .sales-margin-row { grid-template-columns: 1fr 72px; gap: 8px 12px; }
  .sales-margin-track { grid-column: 1 / -1; grid-row: 2; }
  .sales-margin-value { grid-column: 2; grid-row: 1; }
}
.sales-period-filters.sales-query-filters{grid-template-columns:145px 145px 150px minmax(215px,280px) 175px;justify-content:start;gap:12px;padding:16px 20px}
.sales-query-filters>.field:nth-child(1){grid-column:1;grid-row:1}
.sales-query-filters>.field:nth-child(2){grid-column:2;grid-row:1}
.sales-query-filters>.field:nth-child(3){grid-column:3;grid-row:1}
.sales-query-filters>.sales-main-filter{grid-column:4/6;grid-row:1}
.sales-query-filters>.sales-product-filter{grid-column:1/3;grid-row:2}
.sales-query-filters>.field:nth-child(6){grid-column:3;grid-row:2}
.sales-query-filters>.search-actions{grid-column:4/6;grid-row:2;display:flex;gap:9px;justify-content:flex-start}
.sales-query-filters>.search-actions button{min-width:140px;width:auto;white-space:nowrap}
.sales-query-filters .sales-filter-pair{grid-template-columns:minmax(0,1fr) 175px}
@media(max-width:980px){.sales-period-filters.sales-query-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.sales-query-filters>.field:nth-child(1),.sales-query-filters>.field:nth-child(2),.sales-query-filters>.field:nth-child(3),.sales-query-filters>.sales-main-filter,.sales-query-filters>.sales-product-filter,.sales-query-filters>.field:nth-child(6),.sales-query-filters>.search-actions{grid-column:auto;grid-row:auto}.sales-query-filters>.sales-main-filter{grid-column:1/-1}.sales-query-filters>.sales-product-filter{grid-column:span 2}.sales-query-filters>.search-actions{grid-column:1/-1}}
@media(max-width:600px){.sales-period-filters.sales-query-filters{grid-template-columns:repeat(2,minmax(0,1fr));padding:14px}.sales-query-filters>.field:nth-child(3),.sales-query-filters>.sales-main-filter,.sales-query-filters>.sales-product-filter,.sales-query-filters>.field:nth-child(6),.sales-query-filters>.search-actions{grid-column:1/-1}.sales-query-filters .sales-filter-pair{grid-template-columns:1fr}.sales-query-filters>.search-actions{flex-wrap:wrap}}
.stock-participation-select{min-width:180px;margin:0}.stock-participation-totals{grid-template-columns:repeat(5,minmax(150px,1fr))}.stock-participation-totals strong{font-size:clamp(16px,1.5vw,22px)}
@media(max-width:1100px){.stock-participation-totals{grid-template-columns:repeat(3,minmax(150px,1fr))}}
@media(max-width:650px){.stock-participation-select{width:100%}.stock-participation-totals{grid-template-columns:repeat(2,minmax(0,1fr))}}
.stock-situation-layout{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}.stock-situation-column{display:grid;gap:12px;min-width:0}.stock-situation-block{padding:0 18px 14px}.stock-situation-block h2{margin:0 -18px 10px;padding:10px 18px;background:#eef4f8;color:#173d65;font-size:15px}.stock-situation-block dl{margin:0}.stock-situation-block dl>div{display:flex;justify-content:space-between;gap:15px;padding:4px 0}.stock-situation-block dt{color:#476275}.stock-situation-block dd{margin:0;font-weight:700;color:#173d65;white-space:nowrap}.stock-situation-goals{padding-bottom:0}.stock-situation-goals .table-scroll{max-height:380px}.stock-situation-goals table{min-width:430px}.stock-situation-goals th,.stock-situation-goals td{padding:10px}.stock-situation-average{text-align:right;padding:10px 0;color:#a52c2c;font-weight:800}
@media(max-width:900px){.stock-situation-layout{grid-template-columns:1fr}}
.stock-yearly-layout{display:grid;grid-template-columns:minmax(210px,1fr) minmax(450px,1.7fr) minmax(320px,1.2fr);gap:12px;align-items:stretch}.stock-yearly-layout>.panel{min-width:0}.stock-yearly-layout .panel-head{padding:12px 15px}.stock-yearly-layout .table-scroll{max-height:310px}.stock-yearly-layout table{min-width:0}.stock-yearly-layout th,.stock-yearly-layout td{padding:9px 10px;white-space:nowrap}.stock-yearly-layout tr.selected{box-shadow:inset 3px 0 #0e8398}.stock-yearly-layout tr.stock-yearly-positive{background:#e7f7ed}.stock-yearly-layout tr.stock-yearly-negative{background:#fde9e7}.stock-yearly-stores .link{text-align:left;white-space:normal}.stock-yearly-chart{grid-column:1/3}.stock-yearly-chart-inner{padding:14px;overflow:auto}.stock-yearly-chart svg{width:100%;min-width:610px;display:block}.stock-yearly-chart svg text{font:11px 'DM Sans',Arial,sans-serif;fill:#315266}.stock-yearly-chart svg circle{fill:#1a8a78}.stock-yearly-grid{stroke:#cad8df;stroke-dasharray:3 4}.stock-yearly-line{fill:none;stroke:#148773;stroke-width:2.2;stroke-linejoin:round}.stock-yearly-months{grid-column:3}.stock-yearly-months .table-scroll{max-height:330px}
.stock-weekday-layout,.stock-inaugurations-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.stock-inaugurations-layout{grid-template-columns:minmax(0,1.8fr) minmax(0,1fr)}
.stock-report-split{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:12px}.stock-report-split>.panel{min-width:0}.stock-report-grid{max-height:min(62vh,620px);overflow:auto}.stock-report-grid th,.stock-report-grid td{white-space:nowrap}.stock-report-details{max-height:min(62vh,620px);overflow:auto;padding:10px 14px}.stock-report-details table{min-width:0}.stock-report-details th{text-align:left}.stock-report-details td{text-align:right}.stock-report-details article{display:grid;gap:4px;padding:10px;border-bottom:1px solid #d6e1e8}.stock-report-totals{display:flex;gap:20px;flex-wrap:wrap;padding:14px 18px;margin-top:12px}
@media(max-width:1250px){.stock-yearly-layout{grid-template-columns:minmax(190px,1fr) minmax(380px,2fr)}.stock-yearly-general{grid-column:1/3}.stock-yearly-chart{grid-column:1/3}.stock-yearly-months{grid-column:1/3}}
@media(max-width:700px){.stock-yearly-layout{grid-template-columns:1fr}.stock-yearly-general,.stock-yearly-chart,.stock-yearly-months{grid-column:1}.stock-yearly-layout .table-scroll{max-height:260px}}
@media(max-width:900px){.stock-weekday-layout,.stock-inaugurations-layout{grid-template-columns:1fr}}
@media(max-width:900px){.stock-report-split{grid-template-columns:1fr}}
