@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-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-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}
.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}
.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-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 .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))}}@media(max-width:900px){.search-grid,.search-grid.presale-search-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.search-grid,.search-grid.presale-search-grid{grid-template-columns:1fr;padding:18px}.search-actions button{width:100%}.search-panel .panel-head{align-items:stretch}.search-panel .panel-head .primary{width:100%}}
.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}}
.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}.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:3;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-right:1px solid #dbe4e9;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:11px;letter-spacing:.08em;color:#203d4d}.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}}
.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.selected{background:#eaf4fa}.product-result-row:focus-visible{outline:3px solid #4b90aa;outline-offset:-3px}.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-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:190px;box-shadow:0 10px 25px #17374722}.transfer-form .entry-suggestions button{display:grid;gap:3px}.transfer-form .entry-suggestions small{color:#65808f}.transfer-form #transfer-items{max-height:220px;overflow:auto}.transfer-form #transfer-items .detail-row span{min-width:0;overflow-wrap:anywhere}
.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-form #transfer-items{max-height:190px}}

/* 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}}
.modal:has(.sales-plan-form){width:min(720px,calc(100vw - 24px));overflow-x:hidden}.sales-plan-form{min-width:0}.sales-plan-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}.sales-plan-wide{grid-column:1/-1}.sales-plan-form input,.sales-plan-form select{min-width:0;width:100%;max-width:100%}.sales-plan-flags{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:2px 0 14px}.sales-plan-flags .check{min-width:0;margin:0;padding:10px;border:1px solid #dce7ee;border-radius:7px;line-height:1.25}.sales-plan-flags .check input{flex:0 0 auto}@media(max-width:600px){.modal-backdrop:has(.sales-plan-form){padding:0}.modal:has(.sales-plan-form){width:100vw;max-height:100vh;border-radius:0}.sales-plan-grid,.sales-plan-flags{grid-template-columns:1fr}.sales-plan-form .form-actions button{flex:1}}
.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}

/* 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%}
@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: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}}

.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}}

.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-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}}

/* 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:20;min-width:280px;max-height:calc(100vh - 12px);overflow-y:auto;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}

/* 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}
.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}}
