
:root{--green:#07552f;--deep:#063d25;--lime:#b8e270;--light:#eff5ed;--ink:#20362b;--muted:#6c7b71;--line:#e1e8df;--white:#fff;--bg:#f7f9f5;--red:#a63232;font-family:'Segoe UI',Arial,sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}*{box-sizing:border-box}body{margin:0;font-size:16px;line-height:1.5}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:var(--green);text-decoration:none}a:hover{text-decoration:underline}button{border:0;background:none;color:inherit}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #77a83b;outline-offset:3px}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(32px,4vw,54px);line-height:1.12;letter-spacing:-1.8px;font-weight:650}h2{font-size:25px;line-height:1.25;letter-spacing:-.6px;font-weight:650}h3{font-size:20px;line-height:1.25}small,.small{font-size:13px}strong{font-weight:650}.hidden{display:none!important}.muted{color:var(--muted)}.green{color:var(--green)}.red{color:var(--red)}.eyebrow{font-size:12px;letter-spacing:1.8px;font-weight:700;color:var(--green);display:block;margin-bottom:12px}.topbar{height:88px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1200px)/2));background:#fff}.brand{display:flex;align-items:center;gap:12px;color:var(--green);font-size:23px;font-weight:750;white-space:nowrap}.brand:hover{text-decoration:none}.brand img{width:52px;height:52px;object-fit:contain;border-radius:50%}.brand small{display:block;font-size:10px;letter-spacing:2px;font-weight:600}.text-link{font-size:14px;font-weight:600}.menu-wrap{max-width:1248px;margin:auto;padding:0 24px}.welcome{display:flex;align-items:center;justify-content:space-between;gap:40px;padding:48px 20px 42px}.welcome h1{font-size:clamp(42px,5.2vw,68px);margin-bottom:20px;color:var(--deep)}.welcome h1 em{font-family:Georgia,serif;font-weight:400}.welcome p{font-size:18px;color:var(--muted);margin-bottom:22px}.address{font-size:14px;color:var(--muted)}.welcome-logo{width:250px;height:250px;border-radius:50%;object-fit:contain;margin-right:42px;box-shadow:0 12px 50px #134d2110}.menu-controls{background:var(--bg);padding:20px 0 24px;border-top:1px solid var(--line)}.search{position:relative;display:flex;align-items:center;gap:12px;max-width:450px;width:100%;margin-bottom:16px!important}.search span{font-size:14px;color:var(--muted)}input,select,textarea{width:100%;background:#fff;border:1px solid #cdd9cf;border-radius:10px;padding:12px;color:var(--ink);min-height:45px}textarea{resize:vertical;min-height:85px}input[type=checkbox]{width:18px;height:18px;min-height:0;accent-color:var(--green);vertical-align:middle}input[type=file]{font-size:14px}label{display:block;font-size:14px;font-weight:600;margin-bottom:16px}label input,label select,label textarea{margin-top:7px;font-weight:400}.search input{margin:0}.tabs{display:flex;gap:8px;overflow-x:auto;padding:3px 0 8px;scrollbar-width:thin}.tabs button{padding:10px 21px;border-radius:30px;white-space:nowrap;font-size:14px;background:white;border:1px solid var(--line);font-weight:600}.tabs button.selected{color:white;background:var(--green);border-color:var(--green)}.tabs button:hover{border-color:var(--green)}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.section-heading h2{margin:0}.section-heading .muted{font-size:14px}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.product-card{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;display:flex;flex-direction:column;transition:transform .2s,box-shadow .2s}.product-card:hover{transform:translateY(-3px);box-shadow:0 12px 30px #17432b0d}.product-photo{display:block;width:100%;height:255px;padding:0;overflow:hidden;background:var(--light)}.product-photo img{width:100%;height:100%;object-fit:cover;transition:transform .3s}.product-photo:hover img{transform:scale(1.025)}.product-info{padding:22px;flex:1;display:flex;flex-direction:column}.product-info .eyebrow{font-size:10px;letter-spacing:1.5px;margin-bottom:8px}.product-info h3{margin-bottom:10px}.product-info p{font-size:14px;line-height:1.55;color:var(--muted);margin-bottom:22px;flex:1}.product-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px}.product-bottom strong{font-size:21px;color:var(--green)}.add{width:40px;height:40px;border-radius:50%;background:var(--green);color:#fff;font-size:26px;line-height:1}.photo-empty{width:100%;height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;background:#ecf2e7;color:#50715b}.photo-empty span{font-family:Georgia,serif;font-size:40px;letter-spacing:-2px}.photo-empty small{font-size:12px;color:#6f8572}.crop-food{object-position:center 55%}.product-photo img.crop-food{object-fit:cover}.cart-bar{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);width:min(590px,calc(100% - 32px));display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-radius:15px;background:var(--green);color:white;box-shadow:0 10px 35px #063d2535;z-index:10}.cart-bar span{font-size:14px}footer{padding:60px 0 120px;text-align:center;color:var(--muted);font-size:14px}footer p{margin:8px 0}footer a{font-size:13px}.primary,.secondary,.danger,.danger-outline{padding:12px 18px;border-radius:10px;font-weight:600;font-size:14px;display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:45px}.primary{background:var(--green);color:#fff}.primary:hover{background:var(--deep);text-decoration:none}.secondary{background:#fff;border:1px solid var(--line);color:var(--green)}.secondary:hover{background:var(--light)}.danger{background:var(--red);color:white}.danger-outline{border:1px solid #e5baba;color:var(--red);background:#fff}.full{width:100%}.text-button{font-size:14px;color:var(--green);padding:0;text-align:left}.text-button:hover{text-decoration:underline}.button-link{white-space:nowrap}.panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:26px;margin-bottom:24px}.notice{background:#f7f1de;border:1px solid #eee0b4;border-radius:10px;padding:14px 18px;font-size:14px;color:#725b1d}.empty{padding:48px 20px;text-align:center;color:var(--muted);grid-column:1/-1}.badge{display:inline-block;background:#edf5e8;color:var(--green);padding:5px 11px;border-radius:20px;font-size:12px;white-space:nowrap;font-weight:650}.badge.gray{background:#eef0ee;color:#68736c}.spaced{margin-bottom:20px}dialog{border:0;border-radius:20px;padding:0;width:min(570px,calc(100% - 24px));max-height:90dvh;color:var(--ink);box-shadow:0 20px 90px #0004}dialog::backdrop{background:#082b1dc0;backdrop-filter:blur(3px)}#dialog-content{padding:32px;position:relative}.close{position:absolute;right:12px;top:12px;z-index:2;border-radius:50%;width:36px;height:36px;font-size:26px;background:#fff;box-shadow:0 2px 12px #0002}.detail-photo{height:220px;margin:-32px -32px 24px;overflow:hidden;background:var(--light)}.detail-photo img{width:100%;height:100%;object-fit:cover}.large-price{font-size:28px;display:block;color:var(--green);margin:12px 0 24px}fieldset{border:1px solid var(--line);border-radius:10px;padding:12px 16px;margin:20px 0}legend{font-weight:600;font-size:16px}legend small{font-weight:400;color:var(--muted)}.check-row{display:flex;align-items:center;justify-content:space-between;gap:10px;font-weight:400;margin:0;padding:9px 0}.check-row input{margin:0 5px 0 0}.check-row strong{font-size:14px}.quantity-row{display:flex;gap:18px;align-items:end}.quantity-row label{max-width:100px;margin:0}.quantity-row button{flex:1}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:16px}.cart-item{display:flex;justify-content:space-between;gap:18px;padding:16px 0;border-bottom:1px solid var(--line)}.cart-item small{display:block;color:var(--muted);margin-top:6px}.cart-item>strong{white-space:nowrap}.remove{margin-top:8px;color:var(--red)}.total-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0;padding:14px 0;border-bottom:1px solid var(--line)}.total-row strong{font-size:20px}.tracking-row{display:flex;gap:20px;align-items:center;flex-wrap:wrap;margin-bottom:20px}#tracking{margin-top:32px}#toast{position:fixed;top:18px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 32px);background:#203d2d;color:white;border-radius:12px;padding:15px 22px;z-index:100;box-shadow:0 8px 32px #0002;display:none}#toast.visible{display:block}.admin-body{background:#f5f7f3}.sidebar{width:245px;position:fixed;inset:0 auto 0 0;background:white;border-right:1px solid var(--line);padding:32px 22px;display:flex;flex-direction:column;z-index:2}.sidebar .brand{font-size:23px;margin-bottom:50px}.sidebar .brand img{width:46px;height:46px}.sidebar .brand small{font-size:9px;letter-spacing:1.3px}.sidebar nav{display:flex;flex-direction:column;gap:8px}.sidebar nav button{display:flex;align-items:center;gap:13px;padding:14px 12px;text-align:left;font-size:14px;font-weight:600;border-radius:10px}.sidebar nav button small{font-size:10px;color:#829387}.sidebar nav button.selected{background:var(--green);color:white}.sidebar nav button.selected small{color:var(--lime)}.sidebar nav button:hover:not(.selected){background:var(--light)}.sidebar-bottom{margin-top:auto;display:flex;flex-direction:column;gap:17px}.sidebar-bottom a,.sidebar-bottom button{font-size:13px}.sidebar-bottom small{font-size:11px;line-height:1.6;color:var(--muted)}.workspace{margin-left:245px;padding:38px 40px;max-width:1700px}.workspace-header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}.workspace-header .eyebrow{font-size:10px;margin-bottom:8px}.workspace-header h1{font-size:34px;margin:0;letter-spacing:-1px}.admin-banner{background:var(--green);color:#fff;border-radius:18px;padding:30px 36px;display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px;overflow:hidden}.admin-banner .eyebrow{color:#b8e270;font-size:10px}.admin-banner h2{font-size:30px;margin-bottom:12px;font-weight:500}.admin-banner p{color:#c4d9cb;margin:0;font-size:14px}.banner-mark{font-size:80px;font-weight:300;letter-spacing:-8px;color:var(--lime);line-height:1;text-align:center;margin:0 30px}.banner-mark span{display:block;font-size:12px;letter-spacing:2px;margin-top:10px}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.metric{border:1px solid var(--line);background:#fff;border-radius:14px;padding:22px 20px;display:flex;flex-direction:column;gap:8px}.metric>span{font-size:13px;color:var(--muted)}.metric>strong{font-size:28px;letter-spacing:-.8px;line-height:1.2;color:var(--green);overflow-wrap:anywhere}.metric>small{color:var(--muted);font-size:11px;line-height:1.4}.dashboard-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:24px}.workspace h2{font-size:20px}.list-row{display:flex;align-items:center;text-align:left;justify-content:space-between;width:100%;gap:12px;padding:17px 0;border-bottom:1px solid var(--line);font-size:14px}.list-row:last-child{border:0}.list-row small{display:block;color:var(--muted);font-size:12px;margin-top:4px}.list-row>span:first-child{flex:1}.list-row>strong{white-space:nowrap}.insight{display:flex;align-items:center;gap:14px;padding:15px 0;border-bottom:1px solid var(--line);font-size:14px}.insight strong{font-size:24px;color:var(--green)}.rank-row{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--line);font-size:14px;gap:12px}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:22px;flex-wrap:wrap}.toolbar label{margin-bottom:0}.toolbar .tabs{flex:1}.toolbar .search{margin:0!important}.orders-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.order-card{padding:22px;border:1px solid var(--line);border-radius:15px;background:white}.order-card .section-heading{margin-bottom:18px}.order-card h3{font-size:19px;margin-bottom:8px}.order-card p{font-size:14px}.order-card>.secondary{margin-top:14px}.action-row{display:flex;gap:10px;flex-wrap:wrap}.cash-status{display:flex;align-items:center;gap:16px;font-size:14px;padding:18px 22px}.payment-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.payment-summary>div{display:flex;flex-direction:column;gap:6px}.payment-summary span{font-size:13px;color:var(--muted)}.payment-summary strong{font-size:23px}.table-scroll{overflow:auto;width:100%}table{border-collapse:collapse;width:100%;font-size:14px;text-align:left}th{color:var(--muted);font-weight:500;font-size:12px;border-bottom:1px solid var(--line);padding:12px;white-space:nowrap}td{padding:16px 12px;border-bottom:1px solid var(--line)}td small{display:block;color:var(--muted);font-size:12px;margin-top:4px}td .secondary{font-size:12px;white-space:nowrap;padding:9px 12px;min-height:38px}tr:last-child td{border:0}.closure{display:flex;flex-wrap:wrap;gap:10px 24px;padding:18px 0;border-bottom:1px solid var(--line);font-size:14px}.closure small{width:100%}.mini-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:20px}.mini-metrics .metric{padding:15px 12px}.mini-metrics .metric strong{font-size:22px}.notes{white-space:pre-wrap;background:var(--light);padding:16px;border-radius:10px;font-size:14px}.history-row{display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line);padding:15px 0;font-size:13px}.history-row small{display:block;color:var(--muted);font-size:12px;margin-top:6px}.product-cell{display:flex;align-items:center;gap:14px;min-width:230px}.thumb{width:52px;height:52px;object-fit:cover;border-radius:8px;flex-shrink:0}.thumb.photo-empty span{font-size:18px;letter-spacing:-1px}.thumb.photo-empty small{display:none}.extra-form{display:flex;align-items:center;gap:18px;padding:15px 0;border-bottom:1px solid var(--line)}.extra-form>strong{flex:1;font-size:14px}.extra-form label{margin:0;font-size:12px}.extra-form input[type=number]{width:100px}.login-wrap{min-height:100dvh;display:grid;place-items:center;padding:25px;background:linear-gradient(130deg,#f1f6eb,#fff)}.login-card{width:min(450px,100%);padding:36px;background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:0 20px 70px #1436190a}.login-card>img{display:block;width:110px;height:110px;object-fit:contain;margin:0 auto 24px}.login-card h1{font-size:32px;letter-spacing:-1px}.login-card p{font-size:14px;color:var(--muted);margin-bottom:26px}.login-card>a{display:block;text-align:center;font-size:13px;margin-top:24px}
@media(min-width:1600px){.product-photo{height:280px}}
@media(max-width:1150px){.workspace{padding:30px 24px;margin-left:215px}.sidebar{width:215px;padding:26px 16px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.orders-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid{grid-template-columns:1fr}.welcome-logo{margin-right:0;width:220px;height:220px}.product-photo{height:215px}.product-grid{gap:18px}.product-info{padding:18px}}
@media(max-width:760px){.topbar{height:75px;padding:0 18px}.brand{font-size:20px}.brand img{width:43px;height:43px}.text-link{font-size:12px}.menu-wrap{padding:0 16px}.welcome{padding:30px 0;gap:15px}.welcome .eyebrow{font-size:9px;letter-spacing:1px}.welcome h1{font-size:40px;letter-spacing:-1px;margin-bottom:15px}.welcome p{font-size:14px;margin-bottom:12px}.welcome-logo{width:110px;height:110px}.address{font-size:12px}.menu-controls{padding:18px 0}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.product-photo{height:200px}.product-info{padding:15px}.product-info h3{font-size:18px}.product-info p{font-size:13px}.product-bottom strong{font-size:18px}.section-heading h2{font-size:23px}.tabs button{padding:10px 17px}.sidebar{width:auto;position:relative;inset:auto;padding:14px 16px;border-right:0;border-bottom:1px solid var(--line)}.sidebar .brand{margin-bottom:15px}.sidebar nav{flex-direction:row;overflow:auto;gap:7px}.sidebar nav button{white-space:nowrap;padding:11px 15px;border:1px solid var(--line);font-size:13px}.sidebar nav button small{display:none}.sidebar-bottom{flex-direction:row;flex-wrap:wrap;gap:10px 20px;margin-top:14px}.sidebar-bottom small{display:none}.sidebar-bottom a,.sidebar-bottom button{font-size:11px}.workspace{margin:0;padding:24px 16px}.workspace-header h1{font-size:28px}.admin-banner{padding:24px}.admin-banner h2{font-size:26px}.banner-mark{font-size:60px;margin:0 5px}.admin-banner p{font-size:13px}.metrics{gap:12px}.metric{padding:18px}.metric>strong{font-size:25px}.panel{padding:20px}.orders-grid{gap:14px}.order-card{padding:18px}.toolbar .tabs{flex-basis:100%}.cash-status{flex-wrap:wrap}.payment-summary{grid-template-columns:repeat(2,1fr)}.extra-form{gap:12px;flex-wrap:wrap}.extra-form>strong{flex-basis:100%}.two-col{gap:12px}.workspace h2{font-size:20px}.list-row{flex-wrap:wrap}.list-row>span:first-child{min-width:120px}}
@media(max-width:430px){.welcome-logo{width:83px;height:83px;align-self:center}.welcome h1{font-size:35px}.welcome p{max-width:240px}.product-grid{grid-template-columns:1fr;gap:16px}.product-card{display:grid;grid-template-columns:125px 1fr;border-radius:14px}.product-photo{height:100%;min-height:185px}.product-info{padding:16px}.product-info p{font-size:12px;line-height:1.45;margin-bottom:12px}.product-info h3{font-size:17px;margin-bottom:8px}.product-info .eyebrow{font-size:9px}.product-bottom strong{font-size:17px}.add{height:34px;width:34px;font-size:23px}.photo-empty span{font-size:30px}.photo-empty small{font-size:11px}.orders-grid{grid-template-columns:1fr}.admin-banner .banner-mark{display:none}.metric{padding:15px}.metric>strong{font-size:22px}.metric>span{font-size:12px}.cart-bar{padding:17px 18px;bottom:14px}.cart-bar strong{font-size:14px}#dialog-content{padding:24px}.detail-photo{margin:-24px -24px 20px}.two-col{grid-template-columns:1fr;gap:0}.quantity-row{gap:10px}.quantity-row .primary{font-size:13px}.mini-metrics{grid-template-columns:1fr}.mini-metrics .metric{flex-direction:row;align-items:center;justify-content:space-between}.login-card{padding:26px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}@media print{.sidebar,.toolbar,.workspace-header button,.cart-bar{display:none!important}.workspace{margin:0;padding:0}.panel{break-inside:avoid}}


/* Keep the entire shake photo visible, including the rim and foot of the glass. */
.product-photo:has(.shake-photo),
.detail-photo:has(.shake-photo){background:#f0f3ec;}
.product-photo img.shake-photo,
.detail-photo img.shake-photo,
img.thumb.shake-photo{
  object-fit:contain;
  object-position:center center;
  display:block;
  background:#f0f3ec;
  padding:8px;
}
.product-photo:hover img.shake-photo{transform:none;}
.detail-photo:has(.shake-photo){height:clamp(280px,50dvh,420px);}
img.thumb.shake-photo{padding:3px;}

.tea-section{padding:16px 0;border-top:1px solid var(--line)}
.tea-section [data-fiber-options]{margin-top:12px}

.kitchen-notes{display:block;background:#f0f7f2;border-left:4px solid #07552f;padding:16px;margin:16px 0}.delivery-notes{background:#f4f7fb;border:1px solid #ced8e5;padding:20px;margin-top:32px;margin-bottom:24px}.delivery-notes p,.kitchen-notes p{white-space:pre-wrap}

/* Whole product photos, centered without zoom or cropping. */
.product-photo img,.detail-photo img,img.thumb{object-fit:contain!important;object-position:center!important;transform:none!important;clip-path:none!important;padding:12px}.product-photo:hover img{transform:none!important}.product-photo,.detail-photo{background:#f0f3ec}.detail-photo{height:clamp(280px,50dvh,420px)}img.thumb{padding:3px}

.search-results{display:flex;flex-direction:column;gap:6px;max-height:230px;overflow:auto;margin:8px 0 18px}.search-results button{text-align:left;flex-shrink:0}.chosen-product{font-weight:700;margin-bottom:16px}.chosen-extras{margin-bottom:16px}
#pos-basket{max-height:260px;overflow:auto} .pos-cart{position:sticky;bottom:0;background:white;border-top:1px solid #dce5dc;padding:12px 0;z-index:2} #pos-categories{max-height:110px;overflow:auto} #pos-results{max-height:200px}

/* Caixa: uma única rolagem, sem painel sobreposto. */
#dialog:has(#pos-form){width:min(700px,calc(100% - 24px));overflow-y:auto;scroll-padding-top:20px}
#pos-form .pos-cart{position:static;z-index:auto;border-top:0;background:transparent;padding:0;margin-top:24px}
#pos-basket{max-height:none;overflow:visible}
#pos-categories{max-height:none;overflow:visible}
#pos-form .pos-step{font-size:17px;margin:24px 0 14px;padding-top:16px;border-top:1px solid var(--line)}
#pos-form .pos-item{padding:14px 0;border-bottom:1px solid var(--line)}
#pos-form .pos-item details{font-size:12px;color:var(--muted);margin:4px 0 10px}
#pos-form .pos-item .action-row{align-items:center;gap:8px}
#pos-form .pos-item label{margin:0;flex:1;min-width:90px}
#pos-form .pos-item input[type=number]{max-width:130px}
#pos-results{max-height:220px;overflow-y:auto;margin-bottom:12px}
#pos-results button{justify-content:space-between;padding:12px;text-align:left}
#pos-form #pos-free{font-size:12px;min-height:36px;padding:6px 12px}
#pos-payments{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
#pos-total{display:block;font-size:24px;margin:20px 0}
@media(max-width:520px){#dialog:has(#pos-form) #dialog-content{padding:24px 16px}#pos-payments{grid-template-columns:repeat(2,1fr)}}

.menu-verse{max-width:900px;margin:26px auto 0;padding:20px 24px;text-align:center;background:#eff5ed;border-radius:14px;color:#07552f}.menu-verse blockquote{margin:0;font-family:Georgia,serif;font-size:18px;line-height:1.65}.menu-verse p{margin:10px 0 0;font-size:14px;font-weight:650}@media(max-width:520px){.menu-verse{padding:16px;margin-top:18px}.menu-verse blockquote{font-size:16px}}

/* Compact cash entry, inspired by the Auad workflow. */
#dialog:has(.quick-sale){width:min(1120px,96vw);max-width:1120px;max-height:94dvh;padding:0}
#dialog:has(.quick-sale) #dialog-content{padding:24px}
.pos-heading h2{margin:6px 0 20px}.pos-customer-row{display:grid;grid-template-columns:1fr 180px;gap:16px}
.pos-columns{display:grid;grid-template-columns:1.05fr 1fr;gap:24px;align-items:start}
.pos-columns h3{margin:12px 0}.pos-cart{background:#f4f7f1;border:1px solid var(--line);border-radius:16px;padding:16px}
.pos-search-row{display:grid;grid-template-columns:1fr 76px;gap:10px}.pos-quick-tabs{display:flex;gap:8px;align-items:center}.pos-quick-tabs select{min-width:0;flex:1}.pos-quick-tabs button{padding:9px 12px}
#pos-form input,#pos-form select{min-height:44px;padding:10px 12px}#pos-results{display:block;max-height:340px;overflow:auto;border:1px solid var(--line);border-radius:12px;margin:10px 0}
#pos-results .pos-result{width:100%;display:flex;align-items:center;gap:12px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:white;color:var(--ink);padding:12px;text-align:left;min-height:60px}
.pos-result>span:first-child{flex:1}.pos-result small{display:block;font-size:11px;color:var(--muted);margin-top:3px}.pos-result strong{white-space:nowrap}#pos-results .pos-highlight,#pos-results .pos-result:hover{background:#e7efdf;box-shadow:inset 3px 0 #739b43}
#pos-basket{max-height:310px;overflow:auto}.pos-line{padding:10px 0;border-bottom:1px solid var(--line)}.pos-line>input{width:100%;font-weight:600;background:transparent;border:1px solid transparent!important}.pos-line>input:focus{background:white;border-color:#739b43!important}
.pos-line-values{display:grid;grid-template-columns:65px 100px 1fr 32px;gap:8px;align-items:center}.pos-line-values label{font-size:11px;margin:0}.pos-line-values strong{text-align:right;font-size:14px}.pos-line-values button{padding:5px;font-size:22px}.pos-empty{padding:30px 10px;color:var(--muted);line-height:1.7;text-align:center}
.pos-checkout{padding-top:16px}#pos-payments{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}#pos-payments button{padding:9px 11px;min-height:42px;font-size:13px}#pos-total{font-size:28px;margin:14px 0}#pos-count{font-size:12px;font-weight:400;color:var(--muted)}.pos-added{min-height:20px;color:#075534;font-size:13px}
@media(max-width:760px){#dialog:has(.quick-sale){width:100%;max-width:100%;max-height:100dvh;border-radius:0}#dialog:has(.quick-sale) #dialog-content{padding:20px 14px}.pos-columns{grid-template-columns:1fr;gap:8px}.pos-customer-row{grid-template-columns:1fr}.pos-customer-row label{margin-bottom:8px}.pos-customer-row input[type=date]{max-width:190px}#pos-results{max-height:220px}#pos-basket{max-height:none}.pos-quick-tabs{flex-wrap:wrap}.pos-quick-tabs select{max-width:180px}.pos-cart{padding:12px}}
#dialog:has(#pos-form){width:min(1120px,96vw);max-width:1120px;max-height:94dvh;padding:0}
#pos-form .pos-cart{margin-top:0;position:static;padding:16px;background:#f4f7f1;border:1px solid var(--line)}
@media(max-width:760px){#dialog:has(#pos-form){width:100%;max-width:100%;max-height:100dvh;border-radius:0}#pos-form .pos-cart{padding:12px}}

/* Auad-inspired daily ledger and monthly balance, retaining EVS JP identity. */
.auad-cash{--paper:#fffdf8;--olive:#344b36;--sage:#879b55;--cash-line:#e6e4d9;background:#f5f3ec;border-radius:24px;padding:0 22px 24px;color:#344536;overflow:hidden}
.cash-hero{background:#344b36;color:#faf7ed;margin:0 -22px;padding:26px 28px;display:flex;justify-content:space-between;align-items:center;gap:24px}.cash-kicker{display:block;font-size:10px;letter-spacing:1.8px;font-weight:700;color:#778665}.cash-hero .cash-kicker{color:#d1d9b9}.cash-hero h2{font-family:Georgia,serif;font-size:34px;margin:7px 0}.cash-hero h2 em{font-weight:400}.cash-hero p{font-size:13px;color:#dde2d2;margin:0}.cash-date-nav{display:flex;align-items:center;gap:12px}.cash-date-nav>button{color:#fff;font-size:30px;min-width:36px}.cash-date-nav label{font-size:11px;color:#d1d9b9;margin:0}.cash-date-nav input{background:#ffffff10;color:#fff;border-color:#ffffff40;color-scheme:dark;min-width:170px}.cash-date-nav .cash-today{font-size:12px;text-decoration:underline}
.cash-tabs{display:flex;margin:0 -22px 14px;background:#eaece0;border-bottom:1px solid #d5dbc5;overflow:auto}.cash-tabs button{padding:16px 18px;white-space:nowrap;font-size:13px;font-weight:650;border-bottom:3px solid transparent;flex:1}.cash-tabs button:first-child{background:#dde6cd;color:#344b36}.cash-tabs button.selected{background:#fffdf8;border-color:#879b55;color:#344b36}.cash-tabs button:hover{background:#dce4cd}.cash-topline{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:11px;color:#6e7968;margin-bottom:15px}.cash-topline>div{margin-left:auto}.cash-topline .text-button{font-size:11px;padding:5px 8px}
.cash-numbers{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.cash-numbers .metric{border:1px solid var(--cash-line);border-radius:14px;background:var(--paper);padding:17px;box-shadow:none}.cash-numbers .metric>strong{font-size:28px;color:#344b36;font-family:Georgia,serif}.cash-numbers .metric:last-child>strong{color:#a14b3c}.cash-numbers .metric>span{font-size:12px}.cash-numbers .metric small{font-size:10px}.cash-balance{margin:12px 0;background:#e7eddd;border:1px solid #d2dcc2;border-radius:14px;padding:18px 22px;display:flex;justify-content:space-between;align-items:center;gap:16px}.cash-balance span{font-weight:650}.cash-balance small{display:block;color:#6f7f63;font-size:11px;margin-top:5px}.cash-balance>strong{font-size:34px;font-family:Georgia,serif;white-space:nowrap}.cash-balance.negative{background:#f6e5df;border-color:#e3c4b9;color:#9b4535}.cash-facts{display:flex;flex-wrap:wrap;gap:10px 24px;padding:8px 0 18px;font-size:11px;color:#707b69}.cash-facts strong{color:#344536;margin-left:6px}
.cash-paybox{background:var(--paper);border:1px solid var(--cash-line);border-radius:14px;padding:15px 18px;margin-bottom:20px}.cash-paybox h3{font-size:13px;margin-bottom:12px}.cash-paybox>div{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.cash-pay{display:flex;align-items:center;gap:7px;font-size:12px}.cash-pay strong{margin-left:auto;white-space:nowrap}.pay-dot{width:7px;height:7px;border-radius:50%;background:#879b55;flex-shrink:0}.pay-1{background:#c6a659}.pay-2{background:#718fa1}.pay-3{background:#a28fba}
.cash-paper{background:var(--paper);border:1px solid var(--cash-line);border-radius:16px;padding:20px;margin:16px 0}.cash-section-title{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}.cash-section-title h3{font-family:Georgia,serif;font-size:23px;margin:6px 0 0}.cash-section-title>small,.cash-section-title>span{font-size:11px;color:#7c806f}.cash-sheet-search{max-width:360px;font-size:11px}.cash-sheet-search input{min-height:40px;padding:8px 12px;font-size:13px}.cash-paper table{width:100%;font-size:13px}.cash-paper th{background:#f0f1e7;color:#788269;font-weight:600;font-size:11px;padding:12px}.cash-paper td{padding:12px;border-color:#edede4}.cash-paper th:last-child,.cash-paper td:last-child{text-align:right}.cash-client-name{font-weight:650;text-align:left;padding:0;font-size:14px}.cash-row-actions{display:flex;gap:12px}.cash-row-actions .text-button{font-size:10px;padding:3px 0}.cash-payment-badge{display:inline-block;font-size:11px;background:#edf1e4;border-radius:5px;padding:4px 8px;white-space:nowrap}.cash-payment-badge.pending{background:#f4e9d6;color:#93692d}.cash-footnote{font-size:10px;color:#868a7c;margin:12px 0 0}.cash-empty{padding:25px!important;text-align:center;color:#858e7d;font-size:13px}.cash-month-table{min-width:580px}.cash-month-table td:not(:first-child),.cash-month-table th:not(:first-child){text-align:right;white-space:nowrap}.cash-month-table tfoot th{background:#e2e9d7;color:#344b36;font-weight:700;border-top:2px solid #bac8a4}.cash-quiet td{color:#949a8c}.cash-month-table .text-button{font-size:13px;padding:0}.cash-sheet{min-width:340px}.cash-expense-group{border-top:1px solid var(--cash-line);padding:12px 0}.cash-expense-group summary{display:flex;justify-content:space-between;gap:15px;cursor:pointer;font-size:13px}.cash-expense-group summary small{font-size:10px;color:#808675}.cash-expense-group summary strong{color:#a14b3c}.cash-expense-item{padding:12px 8px 0;display:flex;justify-content:space-between;font-size:12px;gap:20px}.cash-expense-item small{display:block;font-size:10px;color:#808675}.cash-secondary>summary{cursor:pointer;font-size:13px;font-weight:600}.cash-secondary[open]>summary{margin-bottom:16px}.cash-secondary>p{font-size:12px;margin-top:15px}#cash-expenses{scroll-margin-top:20px}
@media(max-width:900px){.cash-hero{align-items:flex-start;flex-direction:column;gap:18px}.cash-paybox>div{grid-template-columns:repeat(2,1fr)}.cash-numbers .metric>strong{font-size:23px}}
@media(max-width:520px){.auad-cash{padding:0 10px 15px;border-radius:16px}.cash-hero{margin:0 -10px;padding:20px 16px}.cash-tabs{margin:0 -10px 12px}.cash-tabs button{padding:14px 12px;font-size:12px}.cash-date-nav{gap:6px;width:100%}.cash-date-nav label{flex:1}.cash-date-nav input{min-width:0}.cash-numbers{gap:6px}.cash-numbers .metric{padding:12px 8px;border-radius:10px;min-width:0}.cash-numbers .metric>strong{font-size:18px;letter-spacing:-.5px}.cash-numbers .metric>span{font-size:10px}.cash-numbers .metric small{display:none}.cash-balance{padding:15px 12px}.cash-balance>strong{font-size:27px}.cash-balance small{font-size:10px}.cash-facts{gap:7px 13px}.cash-paper{padding:12px}.cash-section-title{align-items:flex-start}.cash-section-title h3{font-size:21px}.cash-paybox{padding:12px}.cash-paybox>div{gap:12px}.cash-topline>div{margin-left:0}.cash-sheet td,.cash-sheet th{padding:9px 6px}.cash-client-name{font-size:12px}.cash-sheet{min-width:300px}.cash-payment-badge{font-size:10px;padding:3px 5px}}
@media(max-width:520px){.cash-numbers{grid-template-columns:1fr}.cash-numbers .metric{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:10px;padding:12px}.cash-numbers .metric>span{font-size:12px}.cash-numbers .metric>strong{font-size:23px;white-space:nowrap}.cash-sheet{min-width:0}.cash-sheet td,.cash-sheet th{font-size:11px}.cash-sheet td:last-child{white-space:nowrap}.cash-client-name{overflow-wrap:anywhere}}
.expense-launch{display:flex;align-items:center;gap:16px;width:100%;min-height:78px;padding:18px 22px;margin:6px 0 20px;background:#344b36;color:#fffdf8;border:2px solid #344b36;border-radius:14px;text-align:left;font-size:19px;font-weight:650}.expense-launch:hover{background:#263e29}.expense-launch-icon{display:grid;place-items:center;width:44px;height:44px;flex-shrink:0;border-radius:12px;background:#ffffff20;font-size:30px}.expense-launch>span:nth-child(2){flex:1}.expense-launch small{display:block;font-size:12px;font-weight:400;margin-top:4px;color:#dbe4cb}.expense-launch>span:last-child{font-size:24px}@media(max-width:520px){.expense-launch{padding:15px 12px;font-size:17px;gap:12px}}
