:root{--ink:#122b43;--accent:#007fa0;--line:#dce7f0}body{font-family:'Segoe UI',Arial,sans-serif;background:#eef3f9;color:var(--ink);font-size:16px}.layout .main{min-width:0}.side{background:linear-gradient(165deg,#102d48,#082136);box-shadow:4px 0 22px #102d4810}.brand{padding-bottom:24px}.nav button{border-radius:10px;transition:background .15s}.nav button.active{background:linear-gradient(100deg,#0081aa,#0862ad);box-shadow:0 4px 14px #0002}.card{border:1px solid var(--line);border-radius:18px;box-shadow:0 5px 20px #213d5810;margin-bottom:18px}.topline{align-items:center}.subtitle{font-size:14px}.stat{font-size:clamp(24px,2vw,34px);letter-spacing:-.8px}.stat-label{font-size:14px;color:#53718b;font-weight:600}.grid.cols4>.card{border-top:3px solid #1598af;min-width:0}.grid{gap:18px}.executive-banner{display:flex;align-items:center;justify-content:space-between;background:radial-gradient(ellipse at 90% 0,#087c9f,transparent 65%),#102d48;color:white;padding:28px 32px;border-radius:22px;margin-bottom:20px;box-shadow:0 12px 32px #102d4820}.executive-banner h2{font-size:clamp(24px,3vw,34px);margin:10px 0}.executive-banner p{color:#c2dce9;margin:0}.eyebrow{font-size:13px;letter-spacing:2px;color:#6de8db;font-weight:700}.executive-date{padding:10px 16px;border:1px solid #ffffff35;border-radius:12px}.period-form{display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding:18px 0 24px}.period-form .field{max-width:220px;flex:1;min-width:140px}.field label{font-size:14px}.chart-card h3{margin-top:0}.chart-bars{display:grid;gap:18px;margin:24px 0}.chart-row{display:grid;grid-template-columns:minmax(90px,1fr) 2fr minmax(110px,1fr);align-items:center;gap:12px;font-size:14px}.chart-row>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chart-row strong{text-align:right}.bar-track{height:12px;border-radius:20px;background:#edf3f8;overflow:hidden}.bar-track i{display:block;height:100%;background:linear-gradient(90deg,#0a6fa9,#00bda6);border-radius:20px}.sales-chart{display:block;width:100%;height:auto;min-height:160px}.sales-chart text{font-family:'Segoe UI',sans-serif;font-size:15px;fill:#58718a}.table-search{min-width:220px;max-width:420px;padding:12px;border:1px solid #ccdbe8;border-radius:10px}.table-wrap{max-width:100%;overflow:auto}table th{font-size:13px;white-space:nowrap;letter-spacing:.5px}table td{font-size:14px;vertical-align:middle}td small{display:block;color:#61758b;margin-top:5px}.btn{border-radius:10px;font-size:14px;min-height:40px}.btn.primary{background:linear-gradient(115deg,#0875b0,#085b9b)}.badge{font-size:13px}.warehouse-warning{border-left:4px solid #dc7b17;background:#fff8ed}.payment-trace{padding:12px;background:#f2f7fb;border-radius:8px;margin:8px 0}.checkout-card{position:sticky;top:18px;align-self:start}.pos-document-brand{display:flex;align-items:center;gap:16px;border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:18px}.pos-document-brand img{width:110px;background:white;border-radius:10px}.pos-document-brand h2{margin:0 0 5px}.product-select{border-bottom:1px solid #e4edf4;padding:16px 4px}.products-list{max-height:720px}.business-document{position:relative;isolation:isolate;padding:22px;background:white;color:#17334b;max-width:950px;margin:auto}.document-head{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:3px solid #09698d;padding-bottom:20px}.document-head>img{width:170px;height:95px;object-fit:contain}.document-head>div{text-align:right}.document-head h2{font-size:22px;color:#0d5374;margin:0 0 8px}.document-head p{margin:6px 0}.document-customer{background:#eff5f9;border-radius:10px;padding:16px;margin:18px 0}.document-customer p{margin:6px 0}.document-items{overflow:auto}.document-items table{width:100%;border-collapse:collapse}.document-items td,.document-items th{padding:12px 10px;border-bottom:1px solid #dde7ef}.document-items th{background:#103a59;color:white}.document-items td:nth-child(n+3){text-align:right}.document-totals{max-width:340px;margin:20px 0 20px auto}.document-totals p{display:flex;justify-content:space-between;gap:24px}.document-totals .grand-total{font-size:22px;border-top:2px solid #0a789c;padding-top:12px}.document-watermark{position:absolute;z-index:-1;opacity:.065;top:40%;left:15%;width:70%;transform:rotate(-18deg);pointer-events:none}.business-document footer{border-top:1px solid #d3e1ed;padding-top:16px;font-size:13px;color:#53718b}.quotation{border:1px solid #dce7f0;border-radius:12px}.modal{max-width:1050px}.modal .span2{min-width:0}.modal .card{box-shadow:none}.note{font-size:14px}.top-actions{flex-wrap:wrap}.welcome-greeting{color:#007d91;font-weight:700}.toolbar{flex-wrap:wrap}.field input[type=checkbox]{width:auto;display:inline-block}.document-items table th{white-space:normal}
[hidden]{display:none!important}#toast{max-width:calc(100vw - 28px)}
@media(max-width:1000px){.grid.cols4{grid-template-columns:repeat(2,minmax(0,1fr))}.sale-grid{grid-template-columns:1fr}.checkout-card{position:static}.grid.cols2{grid-template-columns:1fr}}
@media(max-width:600px){.executive-banner{padding:22px;display:block}.executive-date{display:inline-block;margin-top:18px}.grid.cols4{grid-template-columns:1fr 1fr}.grid.cols4>.card{padding:16px}.stat{font-size:23px}.period-form{gap:8px}.chart-row{grid-template-columns:85px 1fr 95px;gap:8px;font-size:12px}.document-head{display:block}.document-head>div{text-align:left;margin-top:14px}.business-document{padding:8px}.document-items td,.document-items th{padding:8px 5px;font-size:12px}.document-head>img{width:130px}.modal{padding:14px}.executive-banner h2{font-size:26px}.table-search{width:100%;min-width:0}.section-head{flex-wrap:wrap}.grid{gap:10px}}
@media print{body{background:white!important}.side,.topline,#content,.sc-sync-banner,#toast,.modal .section-head,.modal .actions{display:none!important}.layout,.main{display:block!important;margin:0!important;padding:0!important}.modal-shade{position:static!important;background:none!important;display:block!important;padding:0!important;overflow:visible!important}.modal{position:static!important;box-shadow:none!important;border:0!important;width:100%!important;max-width:none!important;max-height:none!important;overflow:visible!important;padding:0!important}.modal .form-grid{display:block!important}.business-document{padding:0!important}.document-watermark{opacity:.07!important;print-color-adjust:exact}.document-items{overflow:visible}.document-items th,.document-customer{print-color-adjust:exact;-webkit-print-color-adjust:exact}.business-document tr{break-inside:avoid}.business-document footer{margin-top:24px}.quotation{border:0}.document-head{display:flex}.document-head>div{text-align:right}.modal .card{overflow:visible;box-shadow:none}button{display:none!important}@page{size:A4;margin:15mm}}
.section-reset-bar{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px;margin-bottom:18px}.reset-effect{padding:14px;background:#fff7e8;border:1px solid #efd7ab;border-radius:10px;color:#654b21}@media(max-width:600px){.section-reset-bar{justify-content:space-between}.section-reset-bar small{font-size:12px}.section-reset-bar .btn{min-height:44px}}@media print{.section-reset-bar{display:none!important}}
.password-control{display:flex;align-items:stretch;gap:8px;min-width:0}.password-control input{flex:1;min-width:0;width:0!important}.password-toggle{flex:0 0 88px;min-height:44px;white-space:nowrap}@media(max-width:350px){.password-toggle{flex-basis:76px;font-size:12px}}@media print{.password-control{display:none!important}}
.audit-json{white-space:pre-wrap;overflow-wrap:anywhere;max-height:45vh;overflow:auto;background:#f4f8fc;padding:12px;border-radius:10px;font-size:13px;}
