:root{--red:#d7193f;--red-dark:#a90e2e;--red-soft:#fff0f3;--ink:#241d20;--muted:#766b70;--line:#eadfe2;--cream:#fffaf7;--card:#fff;--green:#18864b;--amber:#d88405;--shadow:0 12px 36px rgba(73,22,37,.1);font-family:Inter,ui-rounded,"Segoe UI",system-ui,sans-serif;color:var(--ink);background:var(--cream);font-size:16px}*{box-sizing:border-box}body{margin:0;min-width:320px;background:radial-gradient(circle at 8% 10%,#ffe9ee 0,transparent 25%),var(--cream)}button,input,select{font:inherit}button{color:inherit}.app-shell{min-height:100vh;padding-bottom:92px}.topbar{height:82px;display:flex;align-items:center;justify-content:space-between;padding:10px 28px;background:rgba(255,255,255,.92);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20;backdrop-filter:blur(16px)}.brand{display:flex;align-items:center;gap:12px;border:0;background:none;text-align:left;padding:0;cursor:pointer}.brand img{width:76px;height:58px;object-fit:contain;border-radius:12px}.brand span{display:flex;flex-direction:column}.brand strong{font-size:1.15rem}.brand small{color:var(--muted);font-weight:650}.top-actions{display:flex;align-items:center;gap:12px}.status-pill{display:flex;align-items:center;gap:8px;padding:10px 14px;border-radius:999px;background:#e8f8ef;color:#126f3e;font-weight:750;font-size:.86rem}.status-pill i{width:8px;height:8px;border-radius:50%;background:#20a75d}.clock{font-weight:800;min-width:80px;text-align:center}.icon-btn{width:44px;height:44px;border:1px solid var(--line);background:white;border-radius:14px;font-size:1.4rem;cursor:pointer}.screen{display:none;padding:24px 28px;max-width:1500px;margin:auto}.screen.active{display:block}.pos-grid{display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:22px}.catalog-panel{min-width:0}.toolbar,.table-toolbar{display:flex;gap:12px;align-items:center;margin-bottom:18px}.search{height:52px;display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:0 16px;flex:1;box-shadow:0 5px 16px rgba(60,20,34,.04)}.search span{font-size:1.5rem;color:var(--muted)}.search input{border:0;outline:0;background:transparent;width:100%;font-size:1rem}.soft-btn,.primary-btn{min-height:48px;border-radius:14px;padding:0 18px;font-weight:800;cursor:pointer}.soft-btn{background:#fff;border:1px solid var(--line)}.primary-btn{background:var(--red);color:white;border:0;box-shadow:0 8px 18px rgba(215,25,63,.22)}.category-tabs,.filters{display:flex;gap:9px;overflow:auto;padding:2px 0 15px;scrollbar-width:none}.chip{white-space:nowrap;border:1px solid var(--line);background:#fff;padding:10px 15px;border-radius:999px;font-weight:750;cursor:pointer}.chip.active{background:var(--ink);color:white;border-color:var(--ink)}.product-grid{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr));gap:13px}.product-card{position:relative;min-height:175px;border:1px solid var(--line);border-radius:20px;background:white;padding:13px;text-align:left;cursor:pointer;box-shadow:0 5px 14px rgba(70,25,38,.04);transition:.16s transform,.16s box-shadow;overflow:hidden}.product-card:active{transform:scale(.97)}.product-card:hover{box-shadow:var(--shadow);transform:translateY(-2px)}.product-image{height:86px;border-radius:14px;background:linear-gradient(135deg,#fff1f4,#ffe0e7);display:grid;place-items:center;font-size:3.2rem;margin-bottom:10px;overflow:hidden}.product-image img{width:100%;height:100%;object-fit:cover}.product-card b{display:block;font-size:.94rem;line-height:1.15;margin-bottom:6px}.product-card strong{color:var(--red);font-size:1.05rem}.stock-tag{position:absolute;top:20px;right:20px;background:#fff8e7;color:#a46200;padding:4px 7px;border-radius:7px;font-size:.7rem;font-weight:800}.cart-panel{background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);padding:20px;position:sticky;top:104px;height:calc(100vh - 215px);min-height:575px;display:flex;flex-direction:column}.cart-head{display:flex;justify-content:space-between;align-items:start}.eyebrow{font-size:.72rem;letter-spacing:.12em;font-weight:900;color:var(--red)}h1,h2,p{margin:0}.cart-head h1{font-size:1.5rem;margin-top:4px}.text-btn,.link-btn{border:0;background:none;cursor:pointer;font-weight:800}.danger{color:var(--red)}.customer-picker{margin:16px 0 10px;display:flex;align-items:center;gap:10px;background:#fff8f3;border:1px solid #f4dfd1;border-radius:16px;padding:10px;text-align:left;cursor:pointer}.customer-picker .avatar{width:38px;height:38px;border-radius:12px;background:#ffe2e8;display:grid;place-items:center}.customer-picker span:nth-child(2){display:flex;flex:1;flex-direction:column}.customer-picker small{color:var(--muted)}.chevron{font-size:1.6rem}.cart-items{flex:1;overflow:auto;padding:3px}.empty-cart{height:100%;min-height:170px;display:grid;place-content:center;text-align:center;color:var(--muted)}.empty-cart span{font-size:2.4rem;opacity:.55}.empty-cart b{color:var(--ink);margin-top:8px}.cart-item{display:grid;grid-template-columns:1fr auto;gap:8px;padding:13px 0;border-bottom:1px solid var(--line)}.cart-item-name b{display:block}.cart-item-name small{color:var(--muted)}.qty{display:flex;align-items:center;gap:8px}.qty button{width:32px;height:32px;border-radius:10px;border:1px solid var(--line);background:white;font-weight:900}.qty strong{min-width:20px;text-align:center}.cart-summary{padding:12px 0;border-top:1px solid var(--line)}.cart-summary>div{display:flex;justify-content:space-between;padding:5px 0}.link-btn{color:var(--red)}.total-row{font-size:1.3rem;font-weight:900}.invoice-toggle{display:flex;align-items:center;justify-content:space-between;border:1px solid var(--line);padding:11px 13px;border-radius:15px;margin-bottom:12px;cursor:pointer}.invoice-toggle span{display:flex;flex-direction:column}.invoice-toggle small{color:var(--muted)}.invoice-toggle input{display:none}.invoice-toggle i{width:45px;height:26px;border-radius:999px;background:#d8d0d3;position:relative;transition:.2s}.invoice-toggle i:after{content:"";position:absolute;width:20px;height:20px;left:3px;top:3px;border-radius:50%;background:white;transition:.2s}.invoice-toggle input:checked+i{background:var(--red)}.invoice-toggle input:checked+i:after{left:22px}.pay-btn{border:0;background:linear-gradient(135deg,var(--red),#ed3155);color:white;border-radius:17px;min-height:60px;padding:0 20px;display:flex;align-items:center;justify-content:space-between;font-weight:900;font-size:1.08rem;cursor:pointer;box-shadow:0 12px 22px rgba(215,25,63,.25)}.pay-btn:disabled{opacity:.4;box-shadow:none}.page-head{display:flex;justify-content:space-between;align-items:center;margin:5px 0 22px}.page-head h1{font-size:2rem;margin:3px 0}.page-head p{color:var(--muted)}.metric,.mini-stat{background:white;border:1px solid var(--line);border-radius:17px;padding:13px 18px}.metric span,.mini-stat span{display:block;color:var(--muted);font-size:.85rem;font-weight:700}.metric strong{font-size:1.5rem}.metric.accent{background:var(--red-soft);border-color:#f5c9d3}.card{background:white;border:1px solid var(--line);border-radius:22px}.table-card{padding:18px}.table-toolbar select{height:48px;border:1px solid var(--line);border-radius:14px;padding:0 14px;background:#fff}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:720px}th,td{padding:14px 12px;text-align:left;border-bottom:1px solid var(--line)}th{font-size:.77rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}td{font-weight:650}.row-product{display:flex;align-items:center;gap:10px}.thumb{width:44px;height:44px;border-radius:12px;background:var(--red-soft);display:grid;place-items:center;font-size:1.5rem;overflow:hidden}.thumb img{width:100%;height:100%;object-fit:cover}.badge{padding:5px 9px;border-radius:99px;background:#eef7f1;color:var(--green);font-size:.75rem;font-weight:850}.badge.warn{background:#fff3dc;color:#a96300}.more-btn{border:1px solid var(--line);background:white;border-radius:10px;padding:7px 11px;cursor:pointer}.stats-row{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:16px}.mini-stat strong{font-size:1.4rem}.invoice-list{display:grid;gap:12px}.invoice-card{background:white;border:1px solid var(--line);border-radius:20px;padding:18px;display:grid;grid-template-columns:1fr auto;gap:14px;align-items:center}.invoice-card-main{display:flex;align-items:center;gap:14px}.invoice-icon{width:50px;height:50px;border-radius:15px;background:var(--red-soft);display:grid;place-items:center;font-size:1.5rem}.invoice-card h3{margin:0 0 5px}.invoice-card p{color:var(--muted);font-size:.88rem}.invoice-card .invoice-actions{display:flex;gap:8px}.client-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.client-card{background:white;border:1px solid var(--line);border-radius:20px;padding:18px}.client-card-head{display:flex;justify-content:space-between;align-items:start}.client-card h3{margin:0 0 5px}.client-card p{color:var(--muted);margin:4px 0;font-size:.88rem}.client-card .fiscal{margin-top:14px;background:#fff8f3;border-radius:13px;padding:10px}.settings-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.setting-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:22px;text-align:left;display:grid;grid-template-columns:50px 1fr;column-gap:13px;cursor:pointer}.setting-card>span{grid-row:1/3;width:48px;height:48px;border-radius:14px;background:var(--red-soft);display:grid;place-items:center;font-size:1.4rem;color:var(--red)}.setting-card b{font-size:1.02rem}.setting-card small{color:var(--muted);margin-top:4px}.setting-card.info{cursor:default}dialog{border:0;border-radius:24px;padding:0;max-width:600px;width:calc(100% - 28px);box-shadow:0 30px 80px rgba(40,10,20,.3)}dialog::backdrop{background:rgba(32,14,20,.55);backdrop-filter:blur(4px)}dialog form{padding:22px}.modal-head{display:flex;justify-content:space-between;align-items:start;margin-bottom:18px}.modal-head h2{font-size:1.55rem}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.field{display:flex;flex-direction:column;gap:6px}.field.full{grid-column:1/-1}.field label{font-weight:800;font-size:.85rem}.field input,.field select{height:48px;border:1px solid var(--line);border-radius:13px;padding:0 12px;background:white}.field input:focus,.field select:focus{outline:3px solid #ffd6df;border-color:var(--red)}.image-upload{min-height:92px;border:2px dashed #e4cbd1;border-radius:16px;display:grid;place-items:center;text-align:center;color:var(--muted);padding:12px;cursor:pointer}.image-upload img{width:74px;height:74px;object-fit:cover;border-radius:14px}.payment-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.payment-option input{display:none}.payment-option span{display:flex;min-height:72px;align-items:center;justify-content:center;border:2px solid var(--line);border-radius:15px;font-weight:850;cursor:pointer}.payment-option input:checked+span{border-color:var(--red);background:var(--red-soft);color:var(--red)}.receipt{background:#fffaf7;border:1px dashed #d8bfc5;border-radius:16px;padding:16px;margin-top:12px}.receipt-row{display:flex;justify-content:space-between;margin:5px 0}.toast{position:fixed;left:50%;bottom:110px;transform:translate(-50%,20px);background:#201a1d;color:white;padding:12px 18px;border-radius:13px;font-weight:750;opacity:0;pointer-events:none;transition:.25s;z-index:60}.toast.show{opacity:1;transform:translate(-50%,0)}.bottom-nav{position:fixed;bottom:0;left:0;right:0;height:78px;background:rgba(255,255,255,.96);border-top:1px solid var(--line);display:flex;justify-content:center;gap:6px;padding:8px max(12px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom));z-index:30;backdrop-filter:blur(18px)}.bottom-nav button{position:relative;border:0;background:transparent;border-radius:14px;min-width:100px;padding:6px 14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:var(--muted);font-size:.77rem;font-weight:800;cursor:pointer}.bottom-nav button>span{font-size:1.25rem;line-height:1}.bottom-nav button.active{color:var(--red);background:var(--red-soft)}.bottom-nav i{position:absolute;top:4px;right:18px;background:var(--red);color:white;border-radius:20px;min-width:18px;height:18px;font-style:normal;font-size:.65rem;display:grid;place-items:center}.empty-state{background:white;border:1px dashed #dbcbd0;border-radius:20px;padding:40px;text-align:center;color:var(--muted)}@media(max-width:1100px){.pos-grid{grid-template-columns:minmax(0,1fr) 350px}.product-grid{grid-template-columns:repeat(3,1fr)}.bottom-nav button{min-width:86px}.client-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:820px){.topbar{height:72px;padding:8px 15px}.brand img{width:60px;height:48px}.brand small,.status-pill,.clock{display:none}.screen{padding:15px}.pos-grid{display:block}.product-grid{grid-template-columns:repeat(3,1fr);padding-bottom:440px}.cart-panel{position:fixed;z-index:25;left:10px;right:10px;bottom:82px;top:auto;height:390px;min-height:0;border-radius:22px}.cart-items{min-height:80px}.bottom-nav{justify-content:space-around}.bottom-nav button{min-width:0;flex:1;padding:5px}.client-grid{grid-template-columns:1fr 1fr}.invoice-card{grid-template-columns:1fr}.invoice-card .invoice-actions{justify-content:flex-end}}@media(max-width:560px){.brand strong{font-size:.95rem}.product-grid{grid-template-columns:repeat(2,1fr)}.toolbar{align-items:stretch}.toolbar .soft-btn{font-size:0;width:50px;padding:0}.toolbar .soft-btn:after{content:"＋";font-size:1.4rem}.page-head{align-items:flex-start;gap:10px}.page-head h1{font-size:1.55rem}.page-head .primary-btn{padding:0 12px}.stats-row{grid-template-columns:1fr}.client-grid,.settings-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.payment-grid{grid-template-columns:1fr}.bottom-nav button{font-size:.66rem}.bottom-nav button>span{font-size:1.1rem}.cart-panel{height:365px}.product-grid{padding-bottom:415px}}
