*{box-sizing:border-box}body{margin:0;font-family:'Open Sans',Arial,sans-serif;background:#eceff1;color:#34383b}button,input{font:inherit}button{cursor:pointer;border:0}button:focus-visible,input:focus-visible{outline:3px solid #006c6a;outline-offset:2px}header{height:68px;background:#34383b;color:#fff;display:flex;align-items:center;gap:16px;padding:0 22px}header strong{font-size:20px;letter-spacing:.5px}header strong span,.login h1 span{color:#0aa9a5}.title{font-size:17px;border-left:1px solid #737779;padding-left:18px;flex:1}#shift-status{font-size:13px}.header-btn{background:#505658;color:white;padding:12px;border-radius:3px}header form{margin:0}main{display:grid;grid-template-columns:minmax(0,1fr) 390px;height:calc(100vh - 68px);gap:1px}.products{padding:22px;overflow:auto}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}h1,h2{margin:0;font-size:22px;font-weight:600}.section-head input,.login input{border:1px solid #d2d7d9;border-radius:3px;padding:13px;background:white}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:10px}.product{background:#fff;min-height:110px;padding:15px 12px;text-align:left;border:1px solid #d9dedf;border-radius:3px;display:flex;flex-direction:column;justify-content:space-between;color:#34383b;font-weight:600}.product:active{background:#d8f3f1}.product small{color:#078b87;font-size:15px}.order{background:#fff;display:flex;flex-direction:column;padding:22px;min-height:0}.lines{overflow:auto;flex:1}.empty{color:#899295;text-align:center;padding:50px 10px}.line{border-bottom:1px solid #e7ebeb;padding:12px 0;display:grid;grid-template-columns:1fr auto;gap:8px}.line-name{font-weight:600}.qty{display:flex;align-items:center;gap:10px}.qty button{width:36px;height:36px;background:#edf2f2;border-radius:3px;font-size:20px}.bottom{border-top:1px solid #dce1e1;padding-top:18px}.total{display:flex;justify-content:space-between;font-size:24px;margin-bottom:18px}.payments{display:grid;grid-template-columns:1fr 1fr;gap:10px}.pay{background:#09a8a4;color:white;min-height:58px;border-radius:3px;font-weight:700}.secondary{background:#50585a}.subtle{background:none;color:#078b87;padding:12px}dialog{border:0;border-radius:5px;padding:24px;max-width:650px;width:90%;max-height:80vh;overflow:auto}dialog::backdrop{background:#0009}.close{padding:13px 20px;background:#50585a;color:#fff;border-radius:3px;margin-top:16px}#notice{position:fixed;bottom:18px;left:20px;background:#34383b;color:white;padding:14px;display:none}.login{min-height:100vh;display:grid;place-items:center;background:#707070}.login-card{background:#fff;width:min(440px,90vw);padding:40px;display:grid;gap:18px}.login-card h1{font-weight:800}.login-card h2{font-size:20px}.login-card label{display:grid;gap:8px}.error{color:#a42525}table{border-collapse:collapse;width:100%}td,th{text-align:left;border-bottom:1px solid #ddd;padding:9px}@media(max-width:760px){header{gap:8px;padding:0 10px}header strong{font-size:15px}#shift-status,.title{display:none}main{display:flex;flex-direction:column;height:auto}.products{min-height:45vh}.order{min-height:50vh}.grid{grid-template-columns:repeat(3,1fr)}.product{min-height:85px}}
html[data-theme="dark"] body{background:#202526;color:#e8eeee}html[data-theme="dark"] header{background:#121819}html[data-theme="dark"] .order,html[data-theme="dark"] .product,html[data-theme="dark"] dialog,html[data-theme="dark"] .login-card{background:#303838;color:#eef5f4}html[data-theme="dark"] .product{border-color:#4b5858}html[data-theme="dark"] .product small,html[data-theme="dark"] .subtle{color:#5ee0d9}html[data-theme="dark"] .section-head input,html[data-theme="dark"] .login input{background:#1d2525;border-color:#586666;color:#fff}html[data-theme="dark"] .line,html[data-theme="dark"] .bottom,html[data-theme="dark"] td{border-color:#526060}html[data-theme="dark"] .qty button{background:#465353;color:#fff}html[data-theme="dark"] .empty{color:#b6c7c6}html[data-theme="dark"] .login{background:#202526}#sync-status{font-size:12px;max-width:165px;color:#b8d8d6}@media(max-width:1000px){#sync-status{display:none}}@media(max-width:760px){#theme-btn{font-size:12px;padding:9px}}
.product{align-items:center;text-align:center;justify-content:flex-start;gap:8px;min-height:190px;padding:10px}.product-badge{display:flex;align-items:center;justify-content:center;width:88px;height:88px;flex:none;font-size:40px;font-weight:500;letter-spacing:-1px;line-height:1}.product-name{font-size:15px;line-height:1.2;overflow-wrap:anywhere}.product small{margin-top:auto;font-size:16px}@media(max-width:760px){.product{min-height:160px}.product-badge{width:64px;height:64px;font-size:30px}}
.void-sale{background:#a33131;color:#fff;border-radius:3px;padding:11px 14px;font-weight:600}.void-sale:disabled{opacity:.6}
#checkout-dialog{max-width:480px;padding:28px}#checkout-dialog h2{font-size:24px} .checkout-detail{font-size:19px;line-height:1.45;margin:20px 0 26px}.checkout-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end}.checkout-actions button{min-height:54px;padding:12px 18px}.checkout-cancel{background:#e5ebeb;color:#303838;border-radius:3px;font-weight:600}html[data-theme="dark"] .checkout-cancel{background:#526060;color:#fff}button:disabled{opacity:.6;cursor:wait}
.product-cell{min-width:0;display:flex;flex-direction:column;gap:6px}.product-cell>.product{width:100%;flex:1}.product-cell>.product:disabled{opacity:1;cursor:default}.order-controls{display:flex;gap:6px;justify-content:center}.order-control{background:#dfe8e8;color:#244444;border-radius:3px;padding:10px;min-height:44px;font-weight:600}.order-control:disabled{opacity:.45;cursor:default}html[data-theme="dark"] .order-control{background:#526060;color:#fff}#order-btn[aria-pressed="true"]{background:#087f7b}
#action-dialog{max-width:480px;padding:28px}#action-dialog h2{font-size:24px}.action-field{display:grid;gap:8px;margin-top:20px;font-size:17px;font-weight:600}.action-field input{width:100%;min-height:54px;padding:12px;border:1px solid #a5b4b4;border-radius:3px;background:#fff;color:#303838;font-size:19px}.action-error{color:#a32828;min-height:1.2em}html[data-theme="dark"] .action-field input{background:#1d2525;border-color:#6c7d7d;color:#fff}html[data-theme="dark"] .action-error{color:#ffaaaa}
.sort-label{display:flex;align-items:center;gap:8px;font-weight:600}.sort-label select{font:inherit;min-height:44px;max-width:150px;padding:8px;border:1px solid #b4c3c3;border-radius:3px;background:#fff;color:#303838}.sort-hint{color:#546363;margin:-6px 0 14px;font-size:14px}.sort-hint[hidden]{display:none}.draggable-product{user-select:none;-webkit-user-select:none}.drag-ghost{position:fixed;z-index:10000;pointer-events:none;background:#087f7b;color:white;padding:14px 18px;border-radius:4px;box-shadow:0 4px 16px #0006;font-weight:700;max-width:220px}.drag-target{outline:4px solid #09a8a4;outline-offset:2px}html[data-theme="dark"] .sort-label select{background:#1d2525;border-color:#6c7d7d;color:#fff}html[data-theme="dark"] .sort-hint{color:#bdcecc}#dialog tr.draggable-product:focus-visible{outline:3px solid #006c6a;outline-offset:-3px}
.drag-ghost{width:144px;max-width:none;padding:10px;display:flex;flex-direction:column;align-items:center;gap:8px;background:#fff;color:#303838;text-align:center;font-size:15px;line-height:1.2;border:3px solid #08aaa6;border-radius:6px;box-shadow:0 12px 30px #0009;transform:rotate(3deg);z-index:10000}.drag-ghost .product-badge{width:70px;height:70px;font-size:32px}.drag-ghost small{font-size:15px;color:#067c78}.drag-source{opacity:.35}.product-cell{position:relative}.product-cell.drag-target::after{content:'Soltar aquí';position:absolute;bottom:5px;left:5px;right:5px;padding:8px 4px;background:#007b78;color:#fff;text-align:center;font-size:14px;font-weight:700;border-radius:3px;pointer-events:none}#dialog tr.drag-target td{background:#b8ece6}html[data-theme="dark"] #dialog tr.drag-target td{background:#17615d}html[data-theme="dark"] .drag-ghost{background:#303838;color:#fff}html[data-theme="dark"] .drag-ghost small{color:#5ee0d9}
.header-link{display:inline-flex;align-items:center;text-decoration:none;white-space:nowrap}@media(max-width:1300px){header .title{display:none}}
