@import "https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap";:root{color:#172b26;font-synthesis:none;--green:#176e5d;--mint:#dff1eb;--line:#dfe5e0;--muted:#6e7d78;background:#f4f6f2;font-family:DM Sans,system-ui,sans-serif}*{box-sizing:border-box}body{min-width:320px;margin:0}button,input{font:inherit}button{cursor:pointer}.shell{min-height:100vh;display:flex}aside{color:#fff;background:#123c35;flex-direction:column;width:220px;padding:24px 16px;display:flex}.brand{align-items:center;gap:11px;padding:0 8px 28px;font-size:20px;font-weight:700;display:flex}.brand>span{color:#143b35;background:#f1be55;border-radius:12px;place-items:center;width:38px;height:38px;font-size:25px;display:grid}.brand small,.brand div{display:block}.brand small{color:#a5bbb5;margin-top:1px;font-size:11px;font-weight:400}nav{flex-direction:column;gap:4px;display:flex}nav button,.settings{color:#c8d5d2;text-align:left;background:0 0;border:0;border-radius:10px;align-items:center;gap:12px;padding:12px 13px;display:flex}nav button:hover,nav button.active{color:#fff;background:#225249}.settings{margin-top:auto}main{flex:1;min-width:0}header{border-bottom:1px solid var(--line);background:#fff;justify-content:space-between;align-items:center;height:72px;padding:0 28px;display:flex}header b,header span{display:block}header span{color:var(--muted);margin-top:3px;font-size:12px}.status{border:0;border-radius:30px;align-items:center;gap:8px;padding:9px 14px;display:flex}.status span{color:inherit;margin:0}.status.ok{color:#176e5d;background:#e4f4ee}.status.off{color:#8b5b0a;background:#fff0d7}.pos{grid-template-columns:minmax(560px,1fr) 330px;gap:18px;min-height:calc(100vh - 72px);padding:22px;display:grid}.sale,.summary,.panel,.cards article{border:1px solid var(--line);background:#fff;border-radius:16px}.sale{padding:24px;position:relative}.title{justify-content:space-between;align-items:end;margin-bottom:22px;display:flex}small{color:var(--muted);font-size:11px}h1{margin:5px 0 0;font-size:25px}.shortcuts{color:var(--muted);font-size:12px}kbd{color:#41534e;background:#eef1ee;border:1px solid #d8ded9;border-radius:5px;padding:3px 6px}.search{background:#fff;border:2px solid #9acbbd;border-radius:12px;align-items:center;gap:12px;height:58px;padding:0 16px;display:flex}.search svg{color:var(--green)}.search input{border:0;outline:0;flex:1;font-size:16px}.search>span{color:var(--muted);background:#edf2ef;border-radius:5px;padding:5px 7px;font-size:11px}.results{z-index:2;border:1px solid var(--line);background:#fff;border-radius:12px;position:absolute;top:153px;left:24px;right:24px;overflow:hidden;box-shadow:0 12px 30px #263d3520}.results button{text-align:left;background:#fff;border:0;border-bottom:1px solid #edf0ed;justify-content:space-between;width:100%;padding:12px 15px;display:flex}.results small,.item small,td small{margin-top:4px;display:block}.carthead,.item{grid-template-columns:1fr 140px 105px 115px 34px;align-items:center;gap:12px;display:grid}.carthead{text-transform:uppercase;color:#83908c;border-bottom:1px solid var(--line);padding:22px 12px 10px;font-size:11px}.empty{text-align:center;color:#7a8883;padding:80px 10px}.empty div{color:#4c8679;background:#e9f3ef;border-radius:20px;place-items:center;width:62px;height:62px;margin:auto;display:grid}.empty svg{width:28px;height:28px}.empty h2{color:#344944;margin:15px 0 5px;font-size:18px}.empty p{font-size:13px;line-height:1.6}.item{border-bottom:1px solid #edf0ed;padding:14px 12px}.step{align-items:center;gap:12px;display:flex}.step button,.remove{background:#eef3f0;border:0;border-radius:8px;place-items:center;width:30px;height:30px;display:grid}.step svg,.remove svg{width:14px}.remove{color:#b75555;background:#fff0ef}.summary{color:#172b26;width:auto;padding:24px}.summary>div:first-child{border-bottom:1px solid var(--line);padding-bottom:20px}.summary h2{margin:5px 0;font-size:20px}.totals{border-bottom:1px solid var(--line);padding:18px 0}.totals p{justify-content:space-between;font-size:13px;display:flex}.grand{padding:24px 0}.grand span{color:var(--green);font-size:12px;font-weight:700;display:block}.grand strong{letter-spacing:-2px;margin-top:5px;font-size:42px;display:block}.charge,.confirm,.primary{color:#fff;background:#177260;border:0;border-radius:12px;font-weight:700}.charge{width:100%;height:58px;font-size:18px;box-shadow:0 8px 18px #176e5d30}.charge span{float:right;background:#ffffff25;border-radius:5px;padding:3px 6px;font-size:11px}.charge:disabled,.confirm:disabled{opacity:.4;cursor:not-allowed}.safe{text-align:center;color:#73837e;margin-top:18px;font-size:11px;line-height:1.5}.overlay{z-index:10;background:#102b2680;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.modal{background:#fff;border-radius:18px;width:min(460px,100%);padding:30px;position:relative;box-shadow:0 24px 70px #0c211c45}.close{background:#edf1ef;border:0;border-radius:10px;padding:7px;position:absolute;top:18px;right:18px}.paytotal{color:var(--green);margin:8px 0 24px;font-size:43px;font-weight:700}.modal label{margin:16px 0 8px;font-size:12px;font-weight:700;display:block}.methods{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.methods button{border:1px solid var(--line);background:#fff;border-radius:10px;padding:12px 5px}.methods .selected{border-color:var(--green);color:var(--green);background:#e9f5f1;font-weight:700}.received{border:1px solid #b8c6c1;border-radius:10px;outline:0;width:100%;padding:13px;font-size:24px;font-weight:700}.change{background:#f0f5f2;border-radius:10px;justify-content:space-between;margin-top:10px;padding:13px;display:flex}.confirm{width:100%;margin-top:18px;padding:16px}.success{text-align:center}.check{color:#13715d;background:#dff3e9;border-radius:50%;place-items:center;width:70px;height:70px;margin:auto;font-size:35px;display:grid}.success>div:last-child{gap:10px;margin-top:24px;display:flex}.success button{border:1px solid var(--line);background:#fff;border-radius:10px;flex:1;padding:14px}.success button.confirm{background:var(--green);margin:0}.toast{color:#fff;z-index:20;background:#263f38;border-radius:10px;padding:13px 20px;position:fixed;bottom:30px;left:50%;transform:translate(-50%)}.admin{padding:32px}.adminhead{justify-content:space-between;align-items:center;margin-bottom:24px;display:flex}.adminhead p{color:var(--muted);margin:7px 0 0}.primary{align-items:center;gap:7px;padding:12px 17px;display:flex}.primary svg{width:18px}.panel{padding:20px}.toolbar{justify-content:space-between;margin-bottom:20px;display:flex}.search.small{border-width:1px;width:400px;height:43px}.toolbar>button{border:1px solid var(--line);background:#fff;border-radius:9px;align-items:center;gap:20px;padding:0 13px;display:flex}.toolbar svg{width:15px}table{border-collapse:collapse;text-align:left;width:100%}th{text-transform:uppercase;color:var(--muted);border-bottom:1px solid var(--line);padding:12px;font-size:11px}td{border-bottom:1px solid #edf0ed;padding:14px 12px}.low{color:#c36a24}.pill{color:#18715e;background:#e3f3ed;border-radius:20px;padding:5px 9px;font-size:11px}.cards{grid-template-columns:repeat(3,1fr);gap:16px;display:grid}.cards article{padding:22px}.cards article span,.cards article small{display:block}.cards article strong{margin:10px 0 4px;font-size:27px;display:block}.wide{grid-column:1/-1}.bar{grid-template-columns:130px 1fr 120px;align-items:center;gap:15px;margin:18px 0;display:grid}.bar>div{background:#eaf0ed;border-radius:10px;height:8px}.bar i{background:#3b9b87;border-radius:10px;height:100%;display:block}@media (width<=900px){aside{width:72px;padding:20px 9px}.brand div,nav button:not(.active){font-size:0}.brand{padding-left:7px}.brand>span{flex:none}nav button,.settings{justify-content:center}.settings{font-size:0}.pos{grid-template-columns:1fr}.summary{order:-1}.grand{justify-content:space-between;align-items:center;padding:10px 0;display:flex}.grand strong{font-size:32px}.cards{grid-template-columns:1fr}.carthead{display:none}.item{grid-template-columns:1fr 120px 90px}.item>span{display:none}.item .remove{grid-column:4}.shortcuts{display:none}}@media (width<=600px){aside{display:none}header{padding:0 16px}.status span{display:none}.pos,.admin{padding:12px}.sale,.summary{padding:16px}.item{grid-template-columns:1fr auto auto}.item strong{grid-column:1}.item .remove{grid-area:1/3}.toolbar{flex-direction:column;gap:8px}.search.small{width:100%}table th:nth-child(2),table td:nth-child(2),table th:nth-child(5),table td:nth-child(5){display:none}.methods{grid-template-columns:1fr}}.settings.active{color:#fff;background:#225249}.modal{max-height:90vh;overflow:auto}.field{margin:14px 0;display:block}.field span{margin-bottom:7px;font-size:12px;font-weight:700;display:block}.field input,.field select,.reportfilters select{background:#fff;border:1px solid #bdc9c5;border-radius:10px;outline:none;width:100%;padding:12px}.field input:focus,.field select:focus{border-color:#278570;box-shadow:0 0 0 3px #27857018}.formgrid{grid-template-columns:1fr 1fr;gap:0 14px;display:grid}.formgrid .full{grid-column:1/-1}.metricrow{grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:18px;display:grid}.metric{border:1px solid var(--line);background:#fff;border-radius:16px;padding:22px}.metric>span,.metric small{color:var(--muted);display:block}.metric strong{margin:9px 0 4px;font-size:27px;display:block}.reportfilters{align-items:center;gap:10px;margin-bottom:18px;display:flex}.reportfilters>select{width:auto}.reportfilters>button,.tabs button{border:1px solid var(--line);background:#fff;border-radius:10px;align-items:center;gap:7px;padding:11px 14px;display:flex}.reportfilters svg{width:16px}.tabs{background:#e7ece9;border-radius:12px;margin-right:auto;padding:4px;display:flex}.tabs button{background:0 0;border:0;padding:8px 13px}.tabs button.selected{color:var(--green);background:#fff;font-weight:700;box-shadow:0 2px 8px #203c3420}.cards.report{grid-template-columns:1.3fr 1fr}.ranking{border-bottom:1px solid #edf0ed;grid-template-columns:30px 1fr auto;align-items:center;gap:10px;padding:11px 0;display:grid}.ranking>b{width:27px;height:27px;color:var(--green);background:#e8f3ef;border-radius:8px;place-items:center;display:grid}.clickable{cursor:pointer}.clickable:hover{background:#f5f8f6}.receipt{border-top:1px solid var(--line);margin-top:18px}.receipt p{border-bottom:1px solid #edf0ed;justify-content:space-between;padding:9px 0;display:flex}.receiptTotal{font-size:18px}.pill.pending,.pill.error{color:#8d5b06;background:#fff1d8}.pill.synced{color:#18715e;background:#e3f3ed}.settingsform{max-width:680px}.settingsform>.field{max-width:450px}.switchrow,.readonly{border-top:1px solid var(--line);justify-content:space-between;align-items:center;padding:18px 0;display:flex}.switchrow small{margin-top:4px;display:block}.switch{background:#cbd4d0;border:0;border-radius:20px;width:48px;height:28px;padding:3px}.switch i{background:#fff;border-radius:50%;width:22px;height:22px;transition:all .2s;display:block}.switch.on{background:var(--green)}.switch.on i{transform:translate(20px)}.settingsform .save{width:auto;padding:14px 22px}.toolbar>button svg{width:16px}.toolbar>button{gap:7px}.panel h2{font-size:18px}@media (width<=900px){.metricrow,.cards.report{grid-template-columns:1fr}.reportfilters{flex-wrap:wrap}.tabs{width:100%;overflow:auto}.formgrid{grid-template-columns:1fr}}@media (width<=600px){.admin{overflow:auto}.metricrow{gap:10px}.reportfilters>select,.reportfilters>button{flex:1}.panel{overflow-x:auto}.modal{padding:24px 18px}.formgrid{display:block}}.loginPage{background:linear-gradient(145deg,#eef5f1,#f9f4e8);place-items:center;min-height:100vh;padding:20px;display:grid}.loginCard{border:1px solid var(--line);background:#fff;border-radius:22px;width:min(430px,100%);padding:34px;box-shadow:0 24px 70px #123c3518}.loginBrand{color:#fff;background:#176e5d;border-radius:15px;place-items:center;width:52px;height:52px;margin-bottom:22px;font-size:31px;font-weight:700;display:grid}.loginCard h1{font-size:26px}.loginCard>p{color:var(--muted);line-height:1.5}.formError{color:#a33c33;background:#fff0ee;border-radius:9px;padding:11px;font-size:13px}.securityNote{text-align:center;margin-top:17px;line-height:1.5;display:block}.logout{border:1px solid var(--line);color:#53645f;z-index:4;background:#fff;border-radius:9px;padding:8px 12px;font-size:12px;position:fixed;bottom:18px;right:25px}@media (width<=600px){.loginCard{padding:25px}.logout{bottom:12px;right:12px}}.ticketHeader,.ticketItems,.ticketTotals{display:none}.successActions{gap:9px;margin-top:18px;display:flex}.successActions button{border:1px solid var(--line);background:#fff;border-radius:10px;flex:1;padding:13px}.successActions .confirm{background:var(--green);color:#fff;margin:0}@media print{@page{size:80mm auto;margin:3mm}html,body{background:#fff!important;width:80mm!important;min-width:0!important}.shell{min-height:0!important;display:block!important}.shell>aside,.shell>main,.toast{display:none!important}.overlay{background:#fff!important;padding:0!important;display:block!important;position:static!important}.modal{width:74mm!important;max-width:none!important;min-height:0!important;box-shadow:none!important;color:#000!important;border:0!important;border-radius:0!important;padding:1mm!important;display:block!important;overflow:visible!important}.modal:not(:has(.success)){display:none!important}.close,.successActions,.ticket>p,.success .check,.success>h2{display:none!important}.ticketHeader,.ticketItems,.ticketTotals{display:block!important}.ticketHeader{text-align:center;border-bottom:1px dashed #000;padding-bottom:3mm}.ticketHeader strong,.ticketHeader span{display:block}.ticketHeader strong{margin-bottom:2px;font-size:16px}.ticketHeader span{font-size:10px}.ticketItems{border-bottom:1px dashed #000;padding:2mm 0}.ticketItems>div{text-align:left;grid-template-columns:1fr auto;padding:1.5mm 0;display:grid}.ticketItems span{grid-column:1/-1;font-size:11px;font-weight:700}.ticketItems small{color:#000;font-size:10px}.ticketItems b{font-size:10px}.ticketTotals p{justify-content:space-between;margin:1.5mm 0;font-size:11px;display:flex!important}.ticketTotals p:first-child{border-bottom:1px solid #000;padding-bottom:2mm;font-size:15px}.success:before{display:none}.success:after{content:"Gracias por su compra";border-top:1px dashed #000;margin-top:3mm;padding-top:3mm;font-size:10px;display:block}}.reportfilters{flex-wrap:wrap;align-items:flex-end}.reportfilters .tabs{flex-basis:100%}.reportfilters .field{min-width:150px;margin:0}.reportfilters button:disabled{opacity:.45;cursor:not-allowed}.reportfilters .field select{max-width:360px}.product-actions{justify-content:flex-end;gap:10px;margin-bottom:16px;display:flex}.product-actions>button,.secondary{border:1px solid var(--line);background:#fff;border-radius:10px;justify-content:center;align-items:center;gap:8px;padding:11px 15px;display:flex}.product-actions svg,.secondary svg,.row-actions svg{width:17px;height:17px}.product-actions .primary{background:var(--green);color:#fff;border-color:var(--green)}.row-actions{gap:7px;display:flex}.row-actions button{border:1px solid var(--line);width:34px;height:34px;color:var(--green);background:#fff;border-radius:8px;place-items:center;display:grid}.row-actions button.danger{color:#b54848;background:#fff6f5}.pill.inactive{color:#68736f;background:#ecefed}.full{width:100%}.logoutNav{color:#c8d5d2;text-align:left;background:0 0;border:0;border-radius:10px;align-items:center;gap:12px;margin-top:6px;padding:12px 13px;display:flex}.logoutNav:hover{color:#fff;background:#225249}@media (width<=900px){.logoutNav{justify-content:center;font-size:0}}@media (width<=600px){.product-actions{flex-direction:column}.product-actions>button{width:100%}}
