/* SERVICOLOR .14 · capa visual. Los documentos impresos conservan su formato. */
.ui-icon{display:block;flex:0 0 auto}
@media screen{
 :root{--ink:#172d45;--muted:#53677e;--line:#dfe6ef;--blue:#086da5;--navy:#142f4c;--accent:#087f89;--sc-surface:#fff;--sc-bg:#f4f6fb;--sc-focus:#0879a5}
 body{background:var(--sc-bg);color:var(--ink);font-family:'Segoe UI Variable Text','Segoe UI',system-ui,sans-serif;font-size:15px;line-height:1.55;-webkit-font-smoothing:antialiased}
 h1,h2,h3{color:#17324e;letter-spacing:-.025em;line-height:1.3}h1{font-weight:750}h2{font-size:20px}h3{font-size:16px}p,small,.muted{color:var(--muted)}
 .layout{grid-template-columns:250px minmax(0,1fr);align-items:start}
 .side{position:sticky;top:35px;height:calc(100dvh - 35px);padding:22px 14px 16px;gap:12px;background:radial-gradient(ellipse at 0 0,#1c466a,transparent 60%),#10283f;border-right:1px solid #ffffff0d;box-shadow:5px 0 30px #18334a08;overflow:hidden;align-self:start}
 .brand{min-height:74px;gap:12px;padding:0 10px 18px;margin-bottom:0;border-bottom:1px solid #ffffff1a}.brand img{width:54px;height:54px;border-radius:13px;box-shadow:0 4px 16px #0002;padding:3px}.brand strong{font-size:16px;letter-spacing:.03em;color:#fff}.brand small{color:#b9cde0;font-size:12px}
 .side .nav{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;gap:4px;padding:3px 3px 8px;scrollbar-width:thin;scrollbar-color:#50708a transparent}
 .side .nav button{position:relative;flex:0 0 auto;min-height:43px;font-size:14px;font-weight:500;color:#c8d8e8;line-height:1.4;padding:11px 12px;border:1px solid transparent;border-radius:10px;gap:12px;transition:background .15s,color .15s,border-color .15s}
 .side .nav button:hover{background:#ffffff0b;color:#fff}.side .nav button.active{background:linear-gradient(100deg,#086c89,#0a6889);border-color:#55d2d12b;box-shadow:0 4px 12px #0001;color:#fff;font-weight:650}
 .side .nav button.active::before{content:'';position:absolute;left:-3px;top:11px;bottom:11px;width:3px;background:#5ee0cc;border-radius:4px}.navicon{width:21px;display:inline-flex;align-items:center;justify-content:center;color:inherit}
 .side-foot{flex:0 0 auto;padding:15px 10px 0;border-top:1px solid #ffffff1a;gap:6px}.side-foot strong{font-size:13px;font-weight:600;overflow-wrap:anywhere;color:#eef5fc}.side-foot small{font-size:10px;letter-spacing:.1em;color:#b6cada}.side-foot button{font-size:12px;min-height:36px;border-color:#ffffff25;color:#d3e1ee;background:#ffffff06}
 .main{max-width:1700px;padding:26px 30px 44px;min-width:0}.topline{padding:21px 23px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 3px 12px #243a5704;margin-bottom:24px;gap:20px}
 .welcome-greeting{font-size:13px;color:#176374;letter-spacing:0;font-weight:650;margin-bottom:1px}.welcome-username{font-size:11px;color:#53677e;margin-bottom:11px}.topline h1{font-size:28px;margin:0 0 6px;line-height:1.15}.subtitle{font-size:12px;color:#53677e;letter-spacing:.015em}.top-actions{gap:8px;align-items:center}.top-actions .badge{margin-right:4px}
 .card{border:1px solid var(--line);background:var(--sc-surface);border-radius:17px;padding:23px;box-shadow:0 3px 12px #243a5705;margin-bottom:19px}.grid{gap:18px}.grid.cols2>.card{height:auto}
 .metric-card{position:relative;overflow:hidden;min-height:144px;padding:22px!important;border-top:1px solid var(--line)!important}.metric-card::before{content:'';position:absolute;inset:0 auto 0 0;width:4px;background:#177ea6}.metric-card:nth-child(4n+2)::before{background:#108b81}.metric-card:nth-child(4n+3)::before{background:#6f6aba}.metric-card:nth-child(4n+4)::before{background:#b98428}
 .metric-card .stat-label{font-size:13px;font-weight:600;color:#53677e;line-height:1.4;margin-bottom:12px;padding-right:8px}.metric-card .stat{font-size:clamp(25px,2.3vw,35px);line-height:1.2;font-weight:750;letter-spacing:-.045em;color:#17324e;font-variant-numeric:tabular-nums}.metric-card small{display:block;font-size:12px;line-height:1.5;margin-top:12px;color:#53677e}
 .executive-banner{position:relative;overflow:hidden;isolation:isolate;padding:30px 32px;border:1px solid #174e6e;background:radial-gradient(ellipse at 100% 0,#087e8c 0,transparent 65%),linear-gradient(105deg,#13334e,#124d66);box-shadow:0 8px 22px #113b5312;border-radius:20px}.executive-banner::after{content:'';position:absolute;z-index:-1;right:-75px;top:-145px;width:360px;height:360px;border:1px solid #ffffff16;border-radius:50%;box-shadow:0 0 0 55px #ffffff06,0 0 0 110px #ffffff03}.executive-banner h2{font-size:30px;color:#fff;letter-spacing:-.03em;margin:9px 0 10px}.executive-banner p{color:#d3e6ef;font-size:14px;max-width:600px}.eyebrow{color:#8febdd;font-size:11px;letter-spacing:.17em}.executive-date{border:1px solid #d0e7f135;border-radius:11px;background:#ffffff0b;color:#edf6fa;font-size:13px;white-space:nowrap;padding:10px 14px}
 .alerts-panel{padding:16px 20px;background:#fffdf7;border-color:#ebdfbf;box-shadow:none}.alerts-panel>.section-head{margin-bottom:0;align-items:flex-start}.alerts-panel details{min-width:0;flex:1}.alerts-panel summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:12px;font-size:14px;font-weight:650;color:#694c13;min-height:40px}.alerts-panel summary::-webkit-details-marker{display:none}.alerts-panel summary::before{content:'!';display:inline-grid;place-items:center;width:29px;height:29px;border:1px solid #d0b676;border-radius:9px;font-weight:750;background:#fff2d1;flex:0 0 auto}.alerts-panel summary::after{content:'Ver detalle +';font-size:12px;color:#694c13;font-weight:600;margin-left:auto;padding-left:10px}.alerts-panel details[open] summary::after{content:'Ocultar −'}.alerts-panel details>p{font-size:13px;margin:12px 0}.alerts-panel .table-wrap{margin-top:14px;background:#fff}.alerts-panel .btn{margin-top:0;margin-left:12px}
 .period-form{padding:0 0 20px;gap:12px}.period-form .field label{font-size:12px}.period-form .field{gap:6px}.period-form input{min-height:43px}.period-form .btn{min-height:43px}
 .chart-card{padding:24px}.chart-card h3{font-weight:650;font-size:17px}.sales-chart{margin-top:18px}.sales-chart text{fill:#53677e}.chart-row{font-size:13px}.chart-row strong{font-variant-numeric:tabular-nums;color:#183952}.bar-track{height:9px;background:#ecf1f7}.bar-track i{background:linear-gradient(90deg,#0b7b9d,#1b9e95)}
 .toolbar{gap:9px;margin:16px 0 18px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;line-height:1.3;border-radius:9px;font-weight:600;font-size:13px;padding:10px 15px;border-color:#d4dfea;background:#edf3f8;color:#23415c;transition:background .15s,border-color .15s,box-shadow .15s;box-shadow:none}.btn:hover{filter:none;background:#e3edf5;border-color:#b2cbdc}.btn.primary{color:#fff;background:linear-gradient(110deg,#096e9f,#086285);border-color:#086789;box-shadow:0 2px 6px #08648b12}.btn.primary:hover{background:#075b7f;box-shadow:0 4px 10px #08648b22}.btn.ghost{background:#fff}.btn.ghost:hover{background:#f4f8fc}.btn.danger{color:#a32c39;background:#fff7f8;border-color:#e6bdc2;box-shadow:none}.btn.small{font-size:12px;min-height:35px;padding:7px 11px}.btn:disabled{opacity:.55;box-shadow:none;cursor:not-allowed}
 .badge{background:#e1f3f0;color:#14675e;font-size:11px;line-height:1.4;padding:5px 10px;font-weight:650;border:1px solid #cce6e1;border-radius:8px}.badge.warn{background:#fff4d9;color:#79500c;border-color:#ecd8aa}.badge.bad{background:#fff0f1;color:#a32c39;border-color:#ecc9ce}
 .table-wrap{padding:0;border-radius:15px;overflow:auto;background:white;box-shadow:0 2px 8px #243a5704}.table-wrap table{border-collapse:separate;border-spacing:0;width:100%}.table-wrap th{font-size:10px;font-weight:700;color:#4b637d;letter-spacing:.065em;background:#f0f4f9;border-bottom:1px solid #dce5ee;padding:14px 17px;line-height:1.5}.table-wrap td{padding:15px 17px;font-size:13px;border-bottom:1px solid #e8eef4;color:#25415c;line-height:1.6;font-variant-numeric:tabular-nums}.table-wrap tbody tr:nth-child(even) td{background:#fbfcfe}.table-wrap tr:hover td{background:#f2f8fc}.table-wrap tr:last-child td{border-bottom:0}.table-wrap td b{font-weight:650;color:#183650}.table-wrap td small{font-size:11px;color:#53677e;margin-top:4px}.table-wrap .btn{margin:2px 2px 2px 0}.table-wrap .empty{padding:32px 20px;color:#53677e;font-size:13px}.table-search{background:#fff;font-size:14px;padding:11px 13px;border:1px solid #d2deea;min-height:44px;border-radius:10px}
 .field label{font-size:13px;font-weight:650;color:#354f68;line-height:1.5}.field input,.field select,.field textarea{border-color:#cedbe7;border-radius:9px;background:#fff;font-size:14px;color:#19364e;min-height:44px;padding:11px 12px;transition:border-color .15s,box-shadow .15s}.field textarea{line-height:1.6}.field input[readonly],.field input:disabled,.field select:disabled,.field textarea:disabled{background:#f3f6fa;color:#4c6278;opacity:1}.field input::placeholder,.field textarea::placeholder{color:#687d92}.field input:focus,.field select:focus,.field textarea:focus{outline:0;border-color:#0989a5;box-shadow:0 0 0 3px #0e8fa216}.form-grid{gap:19px}.field input[type=checkbox]{min-height:20px;width:20px;height:20px;accent-color:#087b90;vertical-align:middle}.password-control{border-radius:9px}.password-control .password-toggle{background:#f0f5f9;border-color:#cbdce8;color:#25415c}
 button:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid #5db8d1;outline-offset:3px}input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #0879a5;outline-offset:1px}
 .modal-shade{background:#0b2038a8;backdrop-filter:blur(3px)}.modal{border:1px solid #d9e5f0;border-radius:19px;padding:25px;box-shadow:0 30px 90px #061d4240}.modal>.section-head{border-bottom:1px solid #e2eaf2;padding-bottom:16px;margin-bottom:22px}.modal>.section-head h2{font-size:21px;font-weight:700;line-height:1.3;margin:0}.modal .actions{gap:10px}.modal .note,.modal small{line-height:1.55}.payment-trace{background:#f3f7fb;border:1px solid #e2ebf3;border-radius:10px;padding:14px}
 .checkout-card{border-top:3px solid #0d8796;padding:23px}.pos-document-brand{padding-bottom:19px;margin-bottom:18px;gap:15px}.pos-document-brand img{width:94px}.pos-document-brand h2{font-size:22px}.pos-document-brand small{font-size:12px}.products-list{padding-right:5px}.product-select{border-bottom:1px solid #e4edf5;padding:16px 3px;align-items:center}.product-select b{font-size:14px}.product-select small{font-size:12px;color:#53677e;margin-top:4px}.product-select .btn{background:#e9f4f8;border-color:#c8e2ec;color:#12657d}.product-select .qty{font-variant-numeric:tabular-nums}.total{color:#086c85;font-size:34px;line-height:1.3;padding-top:7px}.right{font-size:14px;line-height:1.8}
 [data-section-reset]{border:1px solid #ead7da;background:#fffafb;border-radius:11px;padding:9px 12px!important;margin-bottom:18px!important;font-size:12px;color:#845c65}[data-section-reset] .btn{min-height:36px;font-size:11px}
 .auth{grid-template-columns:1.05fr 1fr;min-height:100dvh;background:#f3f6fa}.auth-left{position:relative;isolation:isolate;overflow:hidden;padding:8vw;background:radial-gradient(ellipse at 100% 0,#126a7a,transparent 70%),linear-gradient(135deg,#112d46,#14516d)}.auth-left::after{content:'';position:absolute;z-index:-1;right:-200px;bottom:-170px;width:580px;height:580px;border-radius:50%;border:1px solid #ffffff10;box-shadow:0 0 0 80px #ffffff05,0 0 0 160px #ffffff03}.auth-left h1{font-size:clamp(32px,3.6vw,56px);color:#fff;font-weight:750;letter-spacing:-.045em;line-height:1.12;margin-bottom:22px}.auth-left>p{color:#d5e6ef;font-size:15px}.auth-left img{width:165px;border-radius:16px;margin-bottom:45px;box-shadow:0 6px 24px #0001}.auth-right{padding:48px}.auth-card{max-width:460px;background:#fff;border-radius:22px;padding:37px;border:1px solid #dbe6ef;box-shadow:0 18px 55px #19344e0b}.auth-card h2{font-size:26px;margin-bottom:10px}.auth-card>p{font-size:14px;margin-bottom:23px}.auth-card form{gap:18px}.auth-card input{min-height:48px;font-size:16px}.auth-card .btn{min-height:46px;font-size:14px}.auth-card p{line-height:1.6}.auth-card .error{color:#a32c39}
 .sc-sync-banner{font-size:11px;font-weight:650;letter-spacing:.015em;min-height:35px;padding:8px 14px;border-bottom:1px solid #d2e5df}.sc-sync-banner.online{background:#edf7f3;color:#23634b}.sc-sync-banner.offline{background:#fff1d0;color:#704b00}.sc-sync-banner.conflict{background:#ffe9ed;color:#8d2335}.toast{background:#163951;color:#fff;border:1px solid #476279;border-radius:12px;padding:13px 17px;box-shadow:0 8px 28px #12344e22}.toast.err{background:#9a3242;border-color:#b85a68}.empty{line-height:1.7}.note{font-size:13px;line-height:1.65}
}
@media screen and (min-width:981px) and (max-width:1200px){.layout{grid-template-columns:220px minmax(0,1fr)}.main{padding:22px}.side{padding:18px 10px}.brand{padding-left:6px;padding-right:6px}.brand strong{font-size:14px}.side .nav button{font-size:13px;padding:10px}.topline{padding:18px}.topline h1{font-size:25px}.top-actions{max-width:280px;justify-content:flex-end}.metric-card{padding:17px!important}.metric-card .stat{font-size:27px}.auth-right{padding:30px}}
@media screen and (max-width:980px){
 .layout{display:block;min-height:calc(100dvh - 80px)}.side{position:static;height:auto;overflow:visible;padding:12px 16px;gap:0;border-right:0}.brand{min-height:50px;padding:0;border:0;margin:0}.brand img{width:47px;height:47px;padding:2px}.brand strong{font-size:16px}.brand small{font-size:11px}.side .nav{display:none;overflow:visible;max-height:none;flex:none}.side.nav-open .nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:65dvh;overflow-y:auto;padding:4px 0 10px;gap:8px}.side .nav button{min-height:48px;padding:12px;white-space:normal}.side .nav button.active::before{left:0}.side-foot{display:none}.main{padding:21px 16px 32px}.topline{padding:19px;border-radius:15px;gap:15px}.topline h1{font-size:26px}.welcome-greeting{font-size:13px}.welcome-username{font-size:11px;margin-bottom:9px}.top-actions .btn{min-height:43px}.grid{gap:14px}.card{padding:21px;border-radius:15px}.metric-card{padding:19px!important;min-height:135px}.metric-card .stat{font-size:29px}.metric-card small{font-size:12px}.field input,.field select,.field textarea{font-size:16px;min-height:46px}.field label{font-size:13px}.btn{min-height:44px}.btn.small{min-height:44px}.modal{padding:18px;max-height:calc(100dvh - 24px);border-radius:16px}.modal>.section-head h2{font-size:20px}.modal .actions{bottom:-18px;margin:18px -18px -18px;padding:14px 18px}.mobile-shortcuts{background:#fff;box-shadow:0 -5px 22px #1936500a;border-color:#dce6ef;padding-top:7px}.mobile-shortcuts button{font-size:11px;color:#4b657c;gap:5px;border-radius:10px}.mobile-shortcuts button span{display:flex;align-items:center;justify-content:center}.mobile-shortcuts .ui-icon{width:21px;height:21px}.mobile-shortcuts button.active{background:#eaf5f7;color:#076982}.mobile-menu-toggle{min-height:44px;border-color:#ffffff38;background:#ffffff08}.checkout-card{position:static}.auth-card{max-width:460px}.auth-right{padding:25px}.auth-left{padding:6vw}.auth-left h1{font-size:38px}.alerts-panel{padding:13px 16px}.alerts-panel summary{font-size:13px}.alerts-panel .btn{font-size:11px;min-height:40px;padding:8px 10px}.table-search{font-size:16px;min-height:46px}.sc-sync-banner{font-size:11px;min-height:35px}
}
@media screen and (max-width:600px){
 .main{padding:15px 12px 25px}.topline{padding:18px;margin-bottom:18px}.topline h1{font-size:25px;line-height:1.15}.subtitle{font-size:11px}.top-actions{margin-top:16px;padding-top:14px;border-top:1px solid #edf1f6;gap:7px}.top-actions .badge{font-size:11px;margin-right:auto}.top-actions .btn{min-height:40px;font-size:12px;padding:9px 10px}.welcome-greeting{font-size:13px}.welcome-username{font-size:11px}.grid.cols4{gap:10px}.metric-card{padding:16px!important;min-height:140px}.metric-card .stat-label{font-size:12px;line-height:1.45;margin-bottom:11px}.metric-card .stat{font-size:clamp(21px,6vw,29px);letter-spacing:-.04em;overflow-wrap:anywhere}.metric-card small{font-size:11px;line-height:1.5;margin-top:10px}.card{padding:18px;border-radius:14px;margin-bottom:15px}.executive-banner{padding:24px 20px;border-radius:16px}.executive-banner h2{font-size:27px;line-height:1.16}.executive-banner p{font-size:13px}.eyebrow{font-size:10px}.executive-date{margin-top:16px;font-size:12px;display:inline-flex}.period-form{gap:9px;padding-bottom:17px}.period-form .btn{min-height:44px}.alerts-panel{padding:13px 15px}.alerts-panel>.section-head{display:block}.alerts-panel summary{gap:9px;line-height:1.45;align-items:center}.alerts-panel summary::before{width:25px;height:25px;border-radius:7px}.alerts-panel summary::after{content:'Ver +';font-size:11px;white-space:nowrap;padding-left:0}.alerts-panel details[open] summary::after{content:'Cerrar −'}.alerts-panel .btn{margin:10px 0 0;min-height:40px;font-size:12px}.chart-card{padding:18px}.chart-card h3{font-size:16px}.chart-row{font-size:12px}.chart-row strong{font-size:12px}.table-wrap{padding:9px;overflow:visible}.table-wrap table{display:block;min-width:0}.table-wrap th{font-size:11px}.table-wrap tbody td{padding:12px 10px 12px 42%;font-size:13px;min-height:44px;white-space:normal!important;border-bottom:1px solid #e9eff5}.table-wrap tbody td[data-label]::before{top:13px;left:10px;color:#4d657c;font-size:11px}.table-wrap tbody tr{border-color:#dde7f0;border-radius:11px;margin:7px 0 11px}.table-wrap tbody tr:nth-child(even) td{background:white}.table-wrap tr:hover td{background:white}.table-wrap td small{font-size:11px;color:#53677e}.table-wrap td .btn{font-size:12px;min-height:44px;margin:3px 2px 3px 0}.table-wrap td .badge{font-size:11px;white-space:normal}.table-wrap td[colspan]{padding:8px}.table-wrap .empty{padding:20px 10px}.toolbar .btn{font-size:12px;min-height:44px;padding:11px 9px}.toolbar{gap:9px}.field input,.field select,.field textarea{font-size:16px;min-height:46px}.field label{font-size:13px}.modal{padding:18px;border-radius:15px}.modal>.section-head{margin-bottom:19px;padding-bottom:14px}.modal>.section-head h2{font-size:19px}.modal .actions{border-top-color:#dce6ef}.sale-grid .card{padding:17px}.pos-document-brand img{width:82px}.pos-document-brand h2{font-size:20px}.product-select{padding:15px 0;align-items:start}.product-select b{font-size:14px}.product-select small{font-size:12px}.total{font-size:30px}.right{font-size:13px}.auth{display:block}.auth-left{padding:29px 26px;min-height:240px}.auth-left img{width:112px;border-radius:11px;padding:9px;margin-bottom:20px}.auth-left h1{font-size:31px;max-width:400px;margin-bottom:13px;line-height:1.13}.auth-left>p{font-size:13px}.auth-right{padding:20px 14px 30px}.auth-card{padding:25px 22px;border-radius:18px;max-width:460px}.auth-card h2{font-size:24px}.auth-card p{font-size:13px}.auth-card input{font-size:16px;min-height:48px}.auth-card .btn{font-size:13px;min-height:46px}.auth-card form{gap:17px}[data-section-reset]{padding:9px 10px!important;font-size:11px;gap:8px!important}[data-section-reset] .btn{min-height:42px;font-size:11px;padding:9px 10px}.sc-sync-banner{font-size:10px;padding:8px 10px}
}
@media screen and (max-width:350px){.brand strong{font-size:14px}.brand img{width:40px;height:40px}.brand small{font-size:10px}.main{padding-left:10px;padding-right:10px}.topline{padding:16px}.topline h1{font-size:23px}.top-actions{gap:5px}.top-actions .btn{font-size:11px;padding:9px 8px}.metric-card{padding:14px!important}.metric-card .stat{font-size:21px}.metric-card .stat-label{font-size:11px}.metric-card small{font-size:11px}.side.nav-open .nav{grid-template-columns:1fr}.chart-row{grid-template-columns:60px minmax(15px,1fr) 82px;font-size:11px}.chart-row strong{font-size:11px}.modal{padding:14px}.modal .actions{bottom:-14px;margin:16px -14px -14px;padding:12px 14px}.modal>.section-head h2{font-size:18px}.auth-left{padding:26px 23px}.auth-left h1{font-size:28px}.table-wrap tbody td{padding-left:40%;font-size:12px}.table-wrap td[data-label]::before{width:31%;font-size:10px}}
@media screen and (max-width:600px){.topline{padding:16px}.topline .subtitle{display:none}.topline h1{margin-bottom:0}.topline .welcome-username{margin-bottom:6px}.topline .top-actions{margin-top:11px;padding-top:11px}[data-section-reset]{flex-wrap:nowrap!important;justify-content:space-between!important;gap:9px!important}[data-section-reset] small{font-size:10.5px;max-width:95px;line-height:1.4}[data-section-reset] .btn{flex:0 0 auto}.executive-banner{padding:19px 20px}.executive-banner h2{font-size:23px;margin:7px 0}.executive-banner .executive-date,.executive-banner>div>p{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
