
:root{font-family:Arial,Helvetica,sans-serif;color:#172a2b;background:#f4f6f5;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;transition:.15s}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible{outline:3px solid #e4aa55;outline-offset:3px}input:focus,select:focus{outline:2px solid #198477;border-color:transparent}button svg{flex-shrink:0}.app{display:flex;min-height:100vh}.sidebar{width:236px;flex-shrink:0;padding:30px 20px;background:#142f2e;color:#d6e5df;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:#efb45a;font-size:36px;font-weight:900}.brand span{font-size:18px;letter-spacing:1px;color:#fff}.brand small{display:block;font-size:9px;letter-spacing:2px;margin-top:6px;color:#adc4ba}.store{padding:19px 12px;margin-top:30px;border:1px solid #38514d;border-radius:9px;font-size:13px}.store i{display:inline-block;background:#89c7a0;width:7px;height:7px;border-radius:50%;margin-right:8px}.store small{display:block;color:#9eb6ae;margin:7px 0 0 15px;font-size:11px}.nav-label{font-size:10px;letter-spacing:1.5px;color:#8ca69d;margin:32px 12px 12px}nav button{width:100%;border:0;background:none;color:#adc4ba;display:flex;gap:14px;align-items:center;padding:15px 14px;border-radius:8px;margin-bottom:5px;text-align:left;font-size:14px}nav button.active{background:#28504a;color:#fff}nav button b{margin-left:auto;font-size:10px;border-radius:5px;background:#efb45a;color:#172a2b;padding:3px 6px}.sidebar-bottom{margin-top:auto;display:flex;gap:11px;border-top:1px solid #38514d;padding-top:22px;font-size:12px}.avatar{background:#38554e;padding:11px;border-radius:8px}.sidebar-bottom strong,.sidebar-bottom small{display:block;margin:4px 0}.sidebar-bottom small{color:#9eb6ae}main{margin-left:236px;width:calc(100% - 236px);padding:32px 36px}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.eyebrow{font-size:10px;letter-spacing:1.8px;color:#7b8b83}h1{font-size:28px;letter-spacing:-.9px;margin:9px 0}header p{font-size:13px;color:#73847d;margin:0}.icon-btn{border:1px solid #dde4df;border-radius:7px;background:white;padding:9px;display:inline-flex;justify-content:center;align-items:center;color:#60766c}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:25px}.stats>div{border:1px solid #e0e6e1;border-radius:11px;background:white;padding:20px 23px}.stats span{font-size:12px;color:#6b8076}.stats strong{font-size:26px;display:flex;justify-content:space-between;margin:12px 0;font-weight:600;letter-spacing:-.5px}.stats svg{color:#94aea2}.stats small{font-size:11px;color:#819289}.sale-grid{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:22px;align-items:start}.panel{background:#fff;border:1px solid #e0e6e1;border-radius:12px;padding:22px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}h2{margin:0;font-size:16px;font-weight:600;letter-spacing:-.3px}.section-head>span{font-size:11px;color:#839189}.search{display:flex;gap:10px;align-items:center;background:#f6f8f6;border:1px solid #e0e6e1;border-radius:7px;padding:0 12px;color:#8b9a91}.search input{border:0;background:none;padding:12px 0;width:100%;font-size:12px;outline:none}.chips{display:flex;gap:7px;flex-wrap:wrap;margin:18px 0}.chips button{display:flex;align-items:center;gap:4px;padding:7px 12px;font-size:11px;border:1px solid #e0e6e1;border-radius:6px;background:white;color:#657a70}.chips button.selected{background:#e9f2ec;border-color:#bdcfbf;color:#285641}.products{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:14px}.product-card{border:1px solid #e0e6e1;padding:12px;border-radius:9px;background:white;text-align:left}.product-card:hover{border-color:#709d87;box-shadow:0 4px 15px #142f2e0d}.product-art{height:104px;border-radius:6px;background:#f1f4ef;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;color:#819786;margin-bottom:13px}.product-art span{font-size:10px}.product-card>small{font-size:9px;color:#8a9b90}.product-card h3{font-size:13px;margin:6px 0;line-height:1.4}.product-card p{font-size:10px;color:#819188}.product-card>div:last-child{display:flex;justify-content:space-between;align-items:center;margin-top:16px}.product-card strong{font-size:15px}.add-icon{background:#edf4ee;padding:6px;border-radius:5px;color:#38664d}.cart label, .modal label{display:block;color:#6e8077;font-size:11px;margin-bottom:14px}input,select{border:1px solid #dde5df;padding:11px 12px;border-radius:6px;background:white;color:#263e33;width:100%;font-size:13px}label input,label select{margin-top:7px}.cart-lines{min-height:190px;max-height:380px;overflow:auto}.cart-empty{padding:30px 8px;text-align:center;color:#b0beb5}.cart-empty svg{margin:auto auto 18px}.cart-empty strong{display:block;font-size:13px;color:#798d80}.cart-empty p{font-size:11px}.cart-line{display:grid;grid-template-columns:1fr auto;gap:9px;padding:13px 0;border-bottom:1px solid #edf1ed}.cart-line strong{font-size:12px}.cart-line small{display:block;font-size:10px;color:#8a9b90;margin-top:5px}.cart-line input{width:82px;font-size:12px;padding:6px 8px}.cart-line b{font-size:12px;text-align:right;align-self:center}.checkout{border-top:1px solid #e2e8e3;padding-top:21px}.total{display:flex;justify-content:space-between;align-items:center;margin:0 0 22px;font-size:13px}.total strong{font-size:25px;letter-spacing:-.7px}.primary,.secondary{border:0;border-radius:7px;padding:11px 14px;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-size:12px;font-weight:600}.primary{background:#285d45;color:#fff}.primary:hover{background:#1c4934}.secondary{background:#f0f4f0;color:#416451;border:1px solid #dce5dd}.charge{width:100%;padding:15px;justify-content:space-between;margin-top:12px}.change{display:flex;justify-content:space-between;font-size:12px;color:#6c8176}.hint{display:block;font-size:9px;line-height:1.6;color:#84948b;margin-top:12px}.empty{text-align:center;padding:48px 20px;color:#7b8d80}.empty svg{margin:auto}.empty h3{font-size:17px;color:#335440}.empty p{font-size:13px;line-height:1.7}.empty .chips{justify-content:center}.notice{display:flex;gap:9px;align-items:center;padding:13px;border-radius:7px;font-size:12px;margin-bottom:18px}.error{background:#fff0ec;color:#ae4934}.success{background:#e4f2e9;color:#32694c}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:12px;margin-top:16px;text-align:left}th{font-weight:500;color:#7e9084;font-size:10px;padding:14px 10px;border-bottom:1px solid #dde5de}td{padding:17px 10px;border-bottom:1px solid #edf1ed}td small{display:block;font-size:10px;color:#8c9b90;margin-top:5px}.badge{font-size:10px;padding:5px 8px;background:#e8f2ea;border-radius:5px;color:#4c785c;white-space:nowrap}.badge.low{background:#fff0d7;color:#aa7929}.text-btn{background:none;border:none;color:#3b7756;font-size:11px}footer{display:flex;justify-content:space-between;font-size:10px;color:#91a096;margin-top:24px}.overlay{position:fixed;inset:0;background:#10282088;display:flex;align-items:center;justify-content:center;z-index:5;padding:20px;overflow:auto}.modal{background:white;border-radius:13px;padding:28px;width:550px;max-width:100%;max-height:90vh;overflow:auto;box-shadow:0 20px 100px #0003}.modal>p{font-size:12px;color:#7c8e81;line-height:1.8}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.error-text{color:#a44635!important}.receipt{width:420px}.receipt-actions{display:flex;justify-content:space-between;margin-bottom:26px}.receipt-brand{text-align:center;font-size:26px;font-weight:900;color:#254b36}.center{text-align:center}.receipt .total{border-top:1px dashed #bccabc;padding-top:20px;margin-top:20px}.receipt table{margin:18px 0}.receipt td:last-child{text-align:right}.receipt th:last-child{text-align:right}@media(min-width:1500px){main{padding:40px 50px}.sale-grid{grid-template-columns:1fr 385px}}@media(max-width:1100px){.sidebar{width:190px;padding:25px 14px}.brand span{font-size:14px}main{margin-left:190px;width:calc(100% - 190px);padding:25px 20px}.sale-grid{grid-template-columns:1fr 310px}.products{grid-template-columns:repeat(auto-fill,minmax(130px,1fr))}.panel{padding:17px}}@media(max-width:850px){.sidebar{position:static;width:100%;padding:16px}.app{display:block}.brand{font-size:26px}.brand small,.store,.nav-label,.sidebar-bottom{display:none}nav{display:flex;margin-top:16px;gap:6px}nav button{margin:0;padding:10px;font-size:11px;justify-content:center;gap:6px}nav svg{width:16px}.sidebar nav button b{display:none}main{margin:0;width:100%;padding:22px 16px}.sale-grid{grid-template-columns:1fr}.stats{gap:9px}.stats>div{padding:13px}.stats strong{font-size:21px}.stats span,.stats small{font-size:10px}.stats svg{display:none}.products{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}.cart-lines{min-height:100px}footer{gap:15px;line-height:1.5}h1{font-size:25px}}@media print{body{background:white}.sidebar,main,.receipt-actions{display:none!important}.app{display:block}.receipt-overlay{position:static;display:block;background:white;padding:0}.receipt{width:80mm;max-width:100%;padding:5mm;box-shadow:none;max-height:none;border-radius:0;overflow:visible}.receipt table{font-size:10px}.receipt-brand{font-size:22px}.receipt .total strong{font-size:20px}@page{margin:5mm}}

.close-date{display:block;max-width:260px;font-size:12px;color:#6e8077;margin-bottom:22px}.close-date input{margin-top:8px}@media(max-width:850px){nav{flex-wrap:wrap}nav button{flex:1 1 30%}.total strong{font-size:21px}}

.brand{display:flex;flex-direction:column;gap:10px;align-items:stretch;font-size:inherit}.system-logo{display:block;width:100%;height:auto;border-radius:8px;background:#fff}.brand-caption{text-align:center;font-size:9px;letter-spacing:2px;color:#adc4ba}.receipt-logo{display:block;width:190px;max-width:100%;height:auto;margin:0 auto;background:white}@media(max-width:850px){.brand{flex-direction:row;align-items:center;gap:16px}.system-logo{width:105px}.brand-caption{text-align:left}}@media print{.receipt-logo{width:45mm;max-width:100%;height:auto;break-inside:avoid;print-color-adjust:exact;-webkit-print-color-adjust:exact}}

.sale-problems{background:#fff3df;border:1px solid #ead4ab;border-radius:7px;padding:12px;margin:14px 0;font-size:12px;color:#765222;line-height:1.6}.sale-problems ul{margin:7px 0 0;padding-left:18px}.cart>.text-btn{display:flex;gap:5px;align-items:center;margin-bottom:12px}

.form-grid label{display:block;font-size:12px;color:#6e8077;margin:10px 0 16px}.panel>label{display:block;font-size:12px;margin:12px 0}.panel>label select{margin-top:7px}details{font-size:11px;color:#6e8077;margin-top:8px}summary{cursor:pointer}.table-wrap th{white-space:nowrap}nav button{padding-top:11px;padding-bottom:11px}

.delivery-toggle{display:flex!important;align-items:center;gap:9px;font-size:12px!important}.delivery-toggle input{width:auto;margin:0}.delivery-fields{padding:12px;background:#f4f7f3;border-radius:7px;margin-bottom:16px}.delivery-address{white-space:pre-wrap}.delivery-note{width:650px}.delivery-note .receipt-logo{width:140px}.delivery-signatures{margin-top:30px;font-size:13px;line-height:2}.receipt-actions{gap:8px;flex-wrap:wrap}@media print{.delivery-note{width:100%;padding:10mm}.delivery-note .receipt-logo{width:35mm}.delivery-note table{font-size:13px}.delivery-address{font-size:13px}.delivery-note p{color:#111}.delivery-signatures{break-inside:avoid}}

.quote-editor{width:900px}.quote-editor label{display:block;font-size:12px;color:#6e8077}.quote-editor td input{min-width:90px}.quote-editor td:first-child input{min-width:200px}.sidebar{overflow-y:auto}.sidebar-bottom{padding-top:16px;min-height:60px}nav button{padding-top:8px;padding-bottom:8px}

.auth-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}.auth-screen .panel{width:420px}.auth-screen label{display:block;margin:16px 0}.auth-screen input{margin-top:8px}.formal-document{width:760px}.formal-document table{font-size:13px}@media print{@page{size:letter portrait;margin:12mm}.receipt,.formal-document,.delivery-note{width:100%!important;max-width:none!important;padding:0!important;font-size:12pt!important;overflow:visible!important;max-height:none!important}.receipt-overlay,.overlay{position:static!important;display:block!important;overflow:visible!important;background:white!important;padding:0!important}.receipt-actions{display:none!important}.receipt table{font-size:10pt!important;table-layout:auto}.receipt tr{break-inside:avoid}.receipt thead{display:table-header-group}.receipt .total{break-inside:avoid}.receipt-logo{width:45mm!important}}

.letter-modal{width:880px;background:#e9edf0;padding:20px;max-width:98vw}.letter-page{background:white;color:#182334;padding:40px 42px;min-height:950px;font-family:Arial,sans-serif}.letter-header{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:4px solid #151c76;padding:0 0 22px;margin:0 0 24px;gap:24px}.letter-business{display:flex;flex-direction:column;gap:5px;width:45%;font-size:11px;line-height:1.5}.letter-business img{width:170px;height:auto;align-self:flex-start}.letter-business strong{font-size:15px;margin-top:8px}.letter-id{width:49%;text-align:right}.letter-kicker{font-size:9px;letter-spacing:2px;color:#686e7b}.letter-id h1{font-size:23px;color:#151c76;margin:10px 0}.letter-id>strong{font-size:17px}.letter-id p{font-size:11px;margin:7px 0;line-height:1.5}.letter-client{display:grid;grid-template-columns:1.3fr 1fr;gap:24px;padding:18px;background:#f3f5f9;border:1px solid #dce0e7;margin-bottom:26px}.letter-page h2{font-size:9px;color:#151c76;letter-spacing:1px;margin:0 0 10px}.letter-client strong{font-size:14px}.letter-page p{font-size:11px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0}.letter-items{width:100%;border-collapse:collapse;table-layout:fixed;margin:0!important}.letter-items th{background:#151c76;color:white;padding:12px 7px;font-size:9px;white-space:normal}.letter-items td{padding:12px 7px;border-bottom:1px solid #dce0e7;font-size:11px;overflow-wrap:anywhere;color:#182334}.letter-items th:nth-child(n+3),.letter-items td:nth-child(n+3){text-align:right}.letter-items tbody tr:nth-child(even){background:#f7f8fb}.letter-bottom{display:grid;grid-template-columns:1.2fr 1fr;gap:32px;margin-top:26px;break-inside:avoid}.letter-totals>div{display:flex;justify-content:space-between;padding:10px 12px;gap:12px;font-size:11px;border-bottom:1px solid #dce0e7}.letter-totals .letter-grand{background:#151c76;color:white;align-items:center}.letter-grand span{font-size:9px}.letter-grand strong{font-size:20px;white-space:nowrap}.letter-signatures{display:flex;gap:70px;margin-top:65px;break-inside:avoid}.letter-signatures>div{flex:1;text-align:center;border-top:1px solid #8d95a3;padding-top:9px}.letter-signatures span,.letter-signatures strong{display:block;font-size:10px;line-height:1.7}.letter-signatures strong{font-weight:normal;color:#687180}.letter-footer{display:flex;flex-direction:column;gap:6px;border-top:1px solid #dce0e7;margin-top:35px;padding-top:12px;text-align:center;font-size:9px;line-height:1.5}.letter-footer span{color:#687180}@media print{@page{size:letter portrait;margin:12mm}.letter-modal{width:100%!important;max-width:none!important;padding:0!important;background:white!important;box-shadow:none!important;max-height:none!important;overflow:visible!important;border-radius:0!important}.letter-page{padding:0;min-height:0;width:100%;print-color-adjust:exact;-webkit-print-color-adjust:exact}.letter-header{display:flex!important}.letter-footer{display:flex!important}.letter-items thead{display:table-header-group}.letter-items tr{break-inside:avoid}.letter-page .letter-items{font-size:10px}.letter-header,.letter-client{break-inside:avoid}.letter-signatures{margin-top:45px}}


:root{font-family:Arial,Helvetica,sans-serif;color:#172a2b;background:#f4f6f5;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;transition:.15s}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible{outline:3px solid #e4aa55;outline-offset:3px}input:focus,select:focus{outline:2px solid #198477;border-color:transparent}button svg{flex-shrink:0}.app{display:flex;min-height:100vh}.sidebar{width:236px;flex-shrink:0;padding:30px 20px;background:#142f2e;color:#d6e5df;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:#efb45a;font-size:36px;font-weight:900}.brand span{font-size:18px;letter-spacing:1px;color:#fff}.brand small{display:block;font-size:9px;letter-spacing:2px;margin-top:6px;color:#adc4ba}.store{padding:19px 12px;margin-top:30px;border:1px solid #38514d;border-radius:9px;font-size:13px}.store i{display:inline-block;background:#89c7a0;width:7px;height:7px;border-radius:50%;margin-right:8px}.store small{display:block;color:#9eb6ae;margin:7px 0 0 15px;font-size:11px}.nav-label{font-size:10px;letter-spacing:1.5px;color:#8ca69d;margin:32px 12px 12px}nav button{width:100%;border:0;background:none;color:#adc4ba;display:flex;gap:14px;align-items:center;padding:15px 14px;border-radius:8px;margin-bottom:5px;text-align:left;font-size:14px}nav button.active{background:#28504a;color:#fff}nav button b{margin-left:auto;font-size:10px;border-radius:5px;background:#efb45a;color:#172a2b;padding:3px 6px}.sidebar-bottom{margin-top:auto;display:flex;gap:11px;border-top:1px solid #38514d;padding-top:22px;font-size:12px}.avatar{background:#38554e;padding:11px;border-radius:8px}.sidebar-bottom strong,.sidebar-bottom small{display:block;margin:4px 0}.sidebar-bottom small{color:#9eb6ae}main{margin-left:236px;width:calc(100% - 236px);padding:32px 36px}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.eyebrow{font-size:10px;letter-spacing:1.8px;color:#7b8b83}h1{font-size:28px;letter-spacing:-.9px;margin:9px 0}header p{font-size:13px;color:#73847d;margin:0}.icon-btn{border:1px solid #dde4df;border-radius:7px;background:white;padding:9px;display:inline-flex;justify-content:center;align-items:center;color:#60766c}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:25px}.stats>div{border:1px solid #e0e6e1;border-radius:11px;background:white;padding:20px 23px}.stats span{font-size:12px;color:#6b8076}.stats strong{font-size:26px;display:flex;justify-content:space-between;margin:12px 0;font-weight:600;letter-spacing:-.5px}.stats svg{color:#94aea2}.stats small{font-size:11px;color:#819289}.sale-grid{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:22px;align-items:start}.panel{background:#fff;border:1px solid #e0e6e1;border-radius:12px;padding:22px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}h2{margin:0;font-size:16px;font-weight:600;letter-spacing:-.3px}.section-head>span{font-size:11px;color:#839189}.search{display:flex;gap:10px;align-items:center;background:#f6f8f6;border:1px solid #e0e6e1;border-radius:7px;padding:0 12px;color:#8b9a91}.search input{border:0;background:none;padding:12px 0;width:100%;font-size:12px;outline:none}.chips{display:flex;gap:7px;flex-wrap:wrap;margin:18px 0}.chips button{display:flex;align-items:center;gap:4px;padding:7px 12px;font-size:11px;border:1px solid #e0e6e1;border-radius:6px;background:white;color:#657a70}.chips button.selected{background:#e9f2ec;border-color:#bdcfbf;color:#285641}.products{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:14px}.product-card{border:1px solid #e0e6e1;padding:12px;border-radius:9px;background:white;text-align:left}.product-card:hover{border-color:#709d87;box-shadow:0 4px 15px #142f2e0d}.product-art{height:104px;border-radius:6px;background:#f1f4ef;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;color:#819786;margin-bottom:13px}.product-art span{font-size:10px}.product-card>small{font-size:9px;color:#8a9b90}.product-card h3{font-size:13px;margin:6px 0;line-height:1.4}.product-card p{font-size:10px;color:#819188}.product-card>div:last-child{display:flex;justify-content:space-between;align-items:center;margin-top:16px}.product-card strong{font-size:15px}.add-icon{background:#edf4ee;padding:6px;border-radius:5px;color:#38664d}.cart label, .modal label{display:block;color:#6e8077;font-size:11px;margin-bottom:14px}input,select{border:1px solid #dde5df;padding:11px 12px;border-radius:6px;background:white;color:#263e33;width:100%;font-size:13px}label input,label select{margin-top:7px}.cart-lines{min-height:190px;max-height:380px;overflow:auto}.cart-empty{padding:30px 8px;text-align:center;color:#b0beb5}.cart-empty svg{margin:auto auto 18px}.cart-empty strong{display:block;font-size:13px;color:#798d80}.cart-empty p{font-size:11px}.cart-line{display:grid;grid-template-columns:1fr auto;gap:9px;padding:13px 0;border-bottom:1px solid #edf1ed}.cart-line strong{font-size:12px}.cart-line small{display:block;font-size:10px;color:#8a9b90;margin-top:5px}.cart-line input{width:82px;font-size:12px;padding:6px 8px}.cart-line b{font-size:12px;text-align:right;align-self:center}.checkout{border-top:1px solid #e2e8e3;padding-top:21px}.total{display:flex;justify-content:space-between;align-items:center;margin:0 0 22px;font-size:13px}.total strong{font-size:25px;letter-spacing:-.7px}.primary,.secondary{border:0;border-radius:7px;padding:11px 14px;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-size:12px;font-weight:600}.primary{background:#285d45;color:#fff}.primary:hover{background:#1c4934}.secondary{background:#f0f4f0;color:#416451;border:1px solid #dce5dd}.charge{width:100%;padding:15px;justify-content:space-between;margin-top:12px}.change{display:flex;justify-content:space-between;font-size:12px;color:#6c8176}.hint{display:block;font-size:9px;line-height:1.6;color:#84948b;margin-top:12px}.empty{text-align:center;padding:48px 20px;color:#7b8d80}.empty svg{margin:auto}.empty h3{font-size:17px;color:#335440}.empty p{font-size:13px;line-height:1.7}.empty .chips{justify-content:center}.notice{display:flex;gap:9px;align-items:center;padding:13px;border-radius:7px;font-size:12px;margin-bottom:18px}.error{background:#fff0ec;color:#ae4934}.success{background:#e4f2e9;color:#32694c}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:12px;margin-top:16px;text-align:left}th{font-weight:500;color:#7e9084;font-size:10px;padding:14px 10px;border-bottom:1px solid #dde5de}td{padding:17px 10px;border-bottom:1px solid #edf1ed}td small{display:block;font-size:10px;color:#8c9b90;margin-top:5px}.badge{font-size:10px;padding:5px 8px;background:#e8f2ea;border-radius:5px;color:#4c785c;white-space:nowrap}.badge.low{background:#fff0d7;color:#aa7929}.text-btn{background:none;border:none;color:#3b7756;font-size:11px}footer{display:flex;justify-content:space-between;font-size:10px;color:#91a096;margin-top:24px}.overlay{position:fixed;inset:0;background:#10282088;display:flex;align-items:center;justify-content:center;z-index:5;padding:20px;overflow:auto}.modal{background:white;border-radius:13px;padding:28px;width:550px;max-width:100%;max-height:90vh;overflow:auto;box-shadow:0 20px 100px #0003}.modal>p{font-size:12px;color:#7c8e81;line-height:1.8}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.error-text{color:#a44635!important}.receipt{width:420px}.receipt-actions{display:flex;justify-content:space-between;margin-bottom:26px}.receipt-brand{text-align:center;font-size:26px;font-weight:900;color:#254b36}.center{text-align:center}.receipt .total{border-top:1px dashed #bccabc;padding-top:20px;margin-top:20px}.receipt table{margin:18px 0}.receipt td:last-child{text-align:right}.receipt th:last-child{text-align:right}@media(min-width:1500px){main{padding:40px 50px}.sale-grid{grid-template-columns:1fr 385px}}@media(max-width:1100px){.sidebar{width:190px;padding:25px 14px}.brand span{font-size:14px}main{margin-left:190px;width:calc(100% - 190px);padding:25px 20px}.sale-grid{grid-template-columns:1fr 310px}.products{grid-template-columns:repeat(auto-fill,minmax(130px,1fr))}.panel{padding:17px}}@media(max-width:850px){.sidebar{position:static;width:100%;padding:16px}.app{display:block}.brand{font-size:26px}.brand small,.store,.nav-label,.sidebar-bottom{display:none}nav{display:flex;margin-top:16px;gap:6px}nav button{margin:0;padding:10px;font-size:11px;justify-content:center;gap:6px}nav svg{width:16px}.sidebar nav button b{display:none}main{margin:0;width:100%;padding:22px 16px}.sale-grid{grid-template-columns:1fr}.stats{gap:9px}.stats>div{padding:13px}.stats strong{font-size:21px}.stats span,.stats small{font-size:10px}.stats svg{display:none}.products{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}.cart-lines{min-height:100px}footer{gap:15px;line-height:1.5}h1{font-size:25px}}@media print{body{background:white}.sidebar,main,.receipt-actions{display:none!important}.app{display:block}.receipt-overlay{position:static;display:block;background:white;padding:0}.receipt{width:80mm;max-width:100%;padding:5mm;box-shadow:none;max-height:none;border-radius:0;overflow:visible}.receipt table{font-size:10px}.receipt-brand{font-size:22px}.receipt .total strong{font-size:20px}@page{margin:5mm}}

.close-date{display:block;max-width:260px;font-size:12px;color:#6e8077;margin-bottom:22px}.close-date input{margin-top:8px}@media(max-width:850px){nav{flex-wrap:wrap}nav button{flex:1 1 30%}.total strong{font-size:21px}}

.brand{display:flex;flex-direction:column;gap:10px;align-items:stretch;font-size:inherit}.system-logo{display:block;width:100%;height:auto;border-radius:8px;background:#fff}.brand-caption{text-align:center;font-size:9px;letter-spacing:2px;color:#adc4ba}.receipt-logo{display:block;width:190px;max-width:100%;height:auto;margin:0 auto;background:white}@media(max-width:850px){.brand{flex-direction:row;align-items:center;gap:16px}.system-logo{width:105px}.brand-caption{text-align:left}}@media print{.receipt-logo{width:45mm;max-width:100%;height:auto;break-inside:avoid;print-color-adjust:exact;-webkit-print-color-adjust:exact}}

.sale-problems{background:#fff3df;border:1px solid #ead4ab;border-radius:7px;padding:12px;margin:14px 0;font-size:12px;color:#765222;line-height:1.6}.sale-problems ul{margin:7px 0 0;padding-left:18px}.cart>.text-btn{display:flex;gap:5px;align-items:center;margin-bottom:12px}

.form-grid label{display:block;font-size:12px;color:#6e8077;margin:10px 0 16px}.panel>label{display:block;font-size:12px;margin:12px 0}.panel>label select{margin-top:7px}details{font-size:11px;color:#6e8077;margin-top:8px}summary{cursor:pointer}.table-wrap th{white-space:nowrap}nav button{padding-top:11px;padding-bottom:11px}

.delivery-toggle{display:flex!important;align-items:center;gap:9px;font-size:12px!important}.delivery-toggle input{width:auto;margin:0}.delivery-fields{padding:12px;background:#f4f7f3;border-radius:7px;margin-bottom:16px}.delivery-address{white-space:pre-wrap}.delivery-note{width:650px}.delivery-note .receipt-logo{width:140px}.delivery-signatures{margin-top:30px;font-size:13px;line-height:2}.receipt-actions{gap:8px;flex-wrap:wrap}@media print{.delivery-note{width:100%;padding:10mm}.delivery-note .receipt-logo{width:35mm}.delivery-note table{font-size:13px}.delivery-address{font-size:13px}.delivery-note p{color:#111}.delivery-signatures{break-inside:avoid}}

.quote-editor{width:900px}.quote-editor label{display:block;font-size:12px;color:#6e8077}.quote-editor td input{min-width:90px}.quote-editor td:first-child input{min-width:200px}.sidebar{overflow-y:auto}.sidebar-bottom{padding-top:16px;min-height:60px}nav button{padding-top:8px;padding-bottom:8px}

.auth-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}.auth-screen .panel{width:420px}.auth-screen label{display:block;margin:16px 0}.auth-screen input{margin-top:8px}.formal-document{width:760px}.formal-document table{font-size:13px}@media print{@page{size:letter portrait;margin:12mm}.receipt,.formal-document,.delivery-note{width:100%!important;max-width:none!important;padding:0!important;font-size:12pt!important;overflow:visible!important;max-height:none!important}.receipt-overlay,.overlay{position:static!important;display:block!important;overflow:visible!important;background:white!important;padding:0!important}.receipt-actions{display:none!important}.receipt table{font-size:10pt!important;table-layout:auto}.receipt tr{break-inside:avoid}.receipt thead{display:table-header-group}.receipt .total{break-inside:avoid}.receipt-logo{width:45mm!important}}

.letter-modal{width:880px;background:#e9edf0;padding:20px;max-width:98vw}.letter-page{background:white;color:#182334;padding:40px 42px;min-height:950px;font-family:Arial,sans-serif}.letter-header{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:4px solid #151c76;padding:0 0 22px;margin:0 0 24px;gap:24px}.letter-business{display:flex;flex-direction:column;gap:5px;width:45%;font-size:11px;line-height:1.5}.letter-business img{width:170px;height:auto;align-self:flex-start}.letter-business strong{font-size:15px;margin-top:8px}.letter-id{width:49%;text-align:right}.letter-kicker{font-size:9px;letter-spacing:2px;color:#686e7b}.letter-id h1{font-size:23px;color:#151c76;margin:10px 0}.letter-id>strong{font-size:17px}.letter-id p{font-size:11px;margin:7px 0;line-height:1.5}.letter-client{display:grid;grid-template-columns:1.3fr 1fr;gap:24px;padding:18px;background:#f3f5f9;border:1px solid #dce0e7;margin-bottom:26px}.letter-page h2{font-size:9px;color:#151c76;letter-spacing:1px;margin:0 0 10px}.letter-client strong{font-size:14px}.letter-page p{font-size:11px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0}.letter-items{width:100%;border-collapse:collapse;table-layout:fixed;margin:0!important}.letter-items th{background:#151c76;color:white;padding:12px 7px;font-size:9px;white-space:normal}.letter-items td{padding:12px 7px;border-bottom:1px solid #dce0e7;font-size:11px;overflow-wrap:anywhere;color:#182334}.letter-items th:nth-child(n+3),.letter-items td:nth-child(n+3){text-align:right}.letter-items tbody tr:nth-child(even){background:#f7f8fb}.letter-bottom{display:grid;grid-template-columns:1.2fr 1fr;gap:32px;margin-top:26px;break-inside:avoid}.letter-totals>div{display:flex;justify-content:space-between;padding:10px 12px;gap:12px;font-size:11px;border-bottom:1px solid #dce0e7}.letter-totals .letter-grand{background:#151c76;color:white;align-items:center}.letter-grand span{font-size:9px}.letter-grand strong{font-size:20px;white-space:nowrap}.letter-signatures{display:flex;gap:70px;margin-top:65px;break-inside:avoid}.letter-signatures>div{flex:1;text-align:center;border-top:1px solid #8d95a3;padding-top:9px}.letter-signatures span,.letter-signatures strong{display:block;font-size:10px;line-height:1.7}.letter-signatures strong{font-weight:normal;color:#687180}.letter-footer{display:flex;flex-direction:column;gap:6px;border-top:1px solid #dce0e7;margin-top:35px;padding-top:12px;text-align:center;font-size:9px;line-height:1.5}.letter-footer span{color:#687180}@media print{@page{size:letter portrait;margin:12mm}.letter-modal{width:100%!important;max-width:none!important;padding:0!important;background:white!important;box-shadow:none!important;max-height:none!important;overflow:visible!important;border-radius:0!important}.letter-page{padding:0;min-height:0;width:100%;print-color-adjust:exact;-webkit-print-color-adjust:exact}.letter-header{display:flex!important}.letter-footer{display:flex!important}.letter-items thead{display:table-header-group}.letter-items tr{break-inside:avoid}.letter-page .letter-items{font-size:10px}.letter-header,.letter-client{break-inside:avoid}.letter-signatures{margin-top:45px}}

/* MR. Joseph’s: controles para teléfono */
@media(max-width:600px){input,select,textarea{font-size:16px!important}button{min-height:44px}.sidebar{padding:12px}.system-logo{width:78px}.brand-caption{font-size:11px}.sidebar nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.sidebar nav button{white-space:normal;min-width:0;font-size:11px;line-height:1.3;padding:9px 4px}.sidebar-bottom{display:flex;padding:12px 0 0;min-height:0}.sidebar-bottom .avatar{display:none}.sidebar-bottom>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.sidebar-bottom small{display:inline}.form-grid{grid-template-columns:1fr!important}.section-head{flex-wrap:wrap;gap:12px}main>header{flex-wrap:wrap;gap:12px}main>header .chips{width:100%;margin:0}.stats{grid-template-columns:1fr!important}.modal{padding:16px;max-width:96vw}.receipt-actions{display:flex;flex-direction:column;align-items:stretch}.receipt-actions .icon-btn{align-self:flex-end}.letter-modal{padding:6px}.letter-page{padding:18px 12px;min-height:0}.letter-header{gap:12px}.letter-business img{width:95px}.letter-id h1{font-size:15px}.letter-client{grid-template-columns:1fr;padding:12px;gap:12px}.letter-bottom{grid-template-columns:1fr;gap:18px}.letter-signatures{gap:20px}.letter-items td{font-size:9px;padding:9px 3px}.letter-items th{font-size:8px;padding:9px 3px}.table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.products{grid-template-columns:repeat(2,minmax(0,1fr))}.cart{position:static}.auth-screen{padding:16px}.auth-screen .panel{width:100%}}

body{margin:0}.demo-bar{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fff4d7;color:#4e3b12;padding:10px 20px;font:12px Arial;border-bottom:1px solid #e7c97e}.demo-bar a{color:inherit;font-weight:bold}.demo-bar button{padding:7px;border:1px solid #d2b56c;background:white;border-radius:5px}.portal{min-height:100vh;padding:70px 24px;background:#edf1f5;text-align:center;font-family:Arial;color:#192f3b}.portal-tag{font-size:11px;letter-spacing:2px;color:#546c78}.portal h1{font-size:38px;margin:18px 0}.portal-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;max-width:880px;margin:40px auto}.portal-options>a{color:inherit;text-decoration:none;background:white;border:1px solid #d9e1e6;border-radius:14px;padding:30px;box-shadow:0 10px 30px #1026350a}.portal-options>a:hover{border-color:#285d45}.portal-options img{height:180px;width:100%;object-fit:contain}.portal-options h2{font-size:24px}.portal-options p{font-size:14px;line-height:1.6;color:#5e6d77}.portal-options strong{display:block;background:#142f2e;color:white;padding:15px;border-radius:8px;margin-top:25px}.portal-note{max-width:660px;margin:30px auto;font-size:12px;line-height:1.7;color:#5e6d77}@media(max-width:650px){.portal{padding:35px 16px}.portal h1{font-size:28px}.portal-options{grid-template-columns:1fr}.demo-bar{flex-wrap:wrap;padding:8px;font-size:10px}.app .sidebar{top:51px}}@media print{.demo-bar{display:none!important}}
