:root{
  --wood-dark: #2A1A12;
  --wood-mid: #3E2419;
  --gold: #C9A24B;
  --gold-soft: #E4C878;
  --cream: #F5ECD9;
  --veg: #3A9D3A;
  --nonveg: #C1272D;
  --egg: #E0A81E;
  --card: #33221A;
  --glass: rgba(255,255,255,0.04);
  --max-width: 1100px;
  --whatsapp: #25D366;
  --st-new: #E0A81E;
  --st-preparing: #4FA8D8;
  --st-ready: #3A9D3A;
  --st-delivered: #9C9086;
  --st-bill: #C9A24B;
  --st-paid: #3A9D3A;
  --st-cash: #C1272D;
}
*{box-sizing:border-box}
a{color:var(--gold-soft)}
a:hover{color:var(--gold)}
html,body{height:100%}
html{overflow-x:hidden}
body{
  margin:0;font-family:Poppins,system-ui,Segoe UI,Roboto,Helvetica,Arial;
  background: linear-gradient(180deg,var(--wood-dark),var(--wood-mid));
  color:var(--cream);-webkit-font-smoothing:antialiased;line-height:1.4;
  overflow-x:hidden;
}
.container{max-width:var(--max-width);margin:0 auto;padding:0 16px;min-width:0}
.topbar{position:sticky;top:0;z-index:40;background:linear-gradient(180deg,rgba(0,0,0,0.35),rgba(0,0,0,0.2));backdrop-filter:blur(6px);border-bottom:1px solid rgba(255,255,255,0.03)}
.bar-inner{display:flex;align-items:center;justify-content:space-between;padding-top:12px;padding-bottom:12px;gap:8px}
.brand{min-width:0;flex-shrink:1}
.wordmark{display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.wordmark .rule{height:3px;width:56px;background:var(--gold);margin-bottom:6px}
.wordmark .name{font-family:Oswald,Segoe UI;font-weight:700;letter-spacing:2px;color:var(--cream);font-size:20px;white-space:nowrap}
.wordmark .subtitle{font-size:10px;color:var(--gold-soft);letter-spacing:3px;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.nav-desktop{display:flex;gap:14px;align-items:center}
.nav-desktop .nav-link{color:var(--cream);text-decoration:none;opacity:0.9;padding:10px 4px;display:inline-flex;align-items:center;min-height:44px}
.bar-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 14px;min-height:44px;border-radius:8px;font-weight:600;text-decoration:none;cursor:pointer;border:0;font-size:14px}
.btn.primary{background:linear-gradient(180deg,var(--gold),var(--gold-soft));color:var(--wood-dark);border:1px solid rgba(0,0,0,0.15)}
.btn.outline{background:transparent;border:1px solid rgba(255,255,255,0.14);color:var(--cream)}
.btn.outline:hover{border-color:var(--gold-soft)}
.btn.sm{padding:7px 11px;min-height:36px;font-size:13px}
.btn.lg{padding:14px 22px;min-height:52px;font-size:15.5px}
.btn.block{width:100%}
.btn:disabled{opacity:0.45;cursor:not-allowed}
.btn:focus-visible,.nav-link:focus-visible,.chip:focus-visible,.add-btn:focus-visible,.hamburger:focus-visible{outline:2px solid var(--gold-soft);outline-offset:2px}
.hamburger{display:none;background:transparent;border:0;color:var(--cream);font-size:22px;min-width:44px;min-height:44px}
.nav-link.active{color:var(--gold-soft)}

.wa-btn{background:rgba(37,211,102,0.14);border:1px solid rgba(37,211,102,0.4);color:var(--whatsapp);padding:8px 12px;min-height:40px}
.wa-btn:hover{background:rgba(37,211,102,0.24)}
.wa-icon{width:18px;height:18px;flex-shrink:0}
.wa-text{white-space:nowrap}

.hero{min-height:72vh;display:flex;align-items:center;position:relative;background-image:linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(0,0,0,0.6)), url('images/ambiance-01.jpg');background-size:cover;background-position:center}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0.35),rgba(0,0,0,0.65));}
.hero-inner{position:relative;padding-top:72px;padding-bottom:72px;z-index:2}
.hero-wordmark{max-width:780px}
.hero-wordmark .rule{
  height:3px;width:70px;margin-bottom:16px;border-radius:2px;
  background:linear-gradient(90deg, var(--gold) 0%, var(--gold-soft) 40%, #fff 50%, var(--gold-soft) 60%, var(--gold) 100%);
  background-size:220% 100%;
  animation:rule-shimmer 3.2s ease-in-out infinite;
}
@keyframes rule-shimmer{
  0%{background-position:200% 0}
  100%{background-position:-20% 0}
}
.hero-wordmark h1{font-family:Oswald;font-size:56px;margin:0;letter-spacing:4px}
.hero-wordmark .subtitle{font-size:12px;color:var(--gold-soft);margin-top:6px}
.tagline{margin:12px 0;color:var(--cream);opacity:0.95}
.rating-pill{display:inline-block;background:var(--card);padding:6px 10px;border-radius:999px;margin-top:10px;color:var(--gold-soft)}
.hero-ctas{margin-top:14px;display:flex;gap:10px;flex-wrap:wrap}

.info-strip{border-top:1px solid rgba(255,255,255,0.03);border-bottom:1px solid rgba(255,255,255,0.03);}
.info-row{display:flex;gap:18px;flex-wrap:wrap;padding-top:8px;padding-bottom:8px;font-size:14px;color:var(--gold-soft)}

.menu-section{padding:28px 0}
.menu-wrap{display:flex;gap:20px}
/* Sticky + its own scroll: with enough categories the rail is taller than the
   viewport, and a plain sticky element with no overflow of its own just gets
   cut off at the bottom of the screen — its lower items scroll out of reach
   since the element itself stops moving once stuck. max-height + overflow-y
   lets the rail scroll internally once it hits that ceiling. */
.category-rail{width:220px;min-width:220px;position:sticky;top:calc(var(--header-h, 64px) + var(--table-bar-h, 0px) + 12px);align-self:flex-start;max-height:calc(100vh - var(--header-h, 64px) - var(--table-bar-h, 0px) - 24px);overflow-y:auto}
.category-rail .cat{display:flex;justify-content:space-between;padding:8px 12px;border-radius:8px;color:var(--cream);cursor:pointer}
.category-rail .cat.active{background:rgba(201,162,75,0.12);border-left:3px solid var(--gold)}
.menu-main{flex:1;min-width:0}
.menu-filter-bar{background:var(--wood-dark);padding-bottom:8px;margin-bottom:12px}
.menu-filter-bar.sticky{position:sticky;top:calc(var(--header-h, 64px) + var(--table-bar-h, 0px));z-index:30}
.menu-filter{display:flex;flex-wrap:wrap;gap:12px;align-items:center;padding:10px;background:linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));border-radius:8px}
.menu-filter input{flex:1;min-width:0;padding:10px;border-radius:8px;border:1px solid rgba(255,255,255,0.04);background:transparent;color:var(--cream)}
.chips{display:flex;gap:8px}
.mobile-cat-row{display:none;gap:8px;overflow-x:auto;padding:8px 10px 0;-webkit-overflow-scrolling:touch;scroll-behavior:smooth;scrollbar-width:none}
.mobile-cat-row::-webkit-scrollbar{display:none}
.mobile-cat-row .mchip{white-space:nowrap;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,0.02);border:1px solid rgba(255,255,255,0.03);color:var(--cream);font-weight:600;transition:background .15s ease, border-color .15s ease, color .15s ease}
.mobile-cat-row .mchip.active{background:rgba(201,162,75,0.18);border-color:var(--gold);color:var(--gold-soft)}
.chip{background:transparent;border:1px solid rgba(255,255,255,0.04);padding:6px 8px;border-radius:999px;color:var(--cream);display:flex;gap:8px;align-items:center;transition:background .15s ease, border-color .15s ease, color .15s ease}
.chip.active{font-weight:700}
.chip[data-type="veg"].active{background:rgba(58,157,58,0.18);border-color:var(--veg);color:var(--veg)}
.chip[data-type="egg"].active{background:rgba(224,168,30,0.18);border-color:var(--egg);color:var(--egg)}
.chip[data-type="nonveg"].active{background:rgba(193,39,45,0.18);border-color:var(--nonveg);color:var(--nonveg)}
.dot{width:12px;height:12px;border-radius:3px;display:inline-block;border:2px solid rgba(255,255,255,0.06)}
.dot.veg{background:var(--veg)}
.dot.nonveg{background:var(--nonveg)}
.dot.egg{background:var(--egg)}

.category{margin-bottom:18px;scroll-margin-top:calc(var(--header-h, 64px) + var(--table-bar-h, 0px) + 110px)}
.category h3{color:var(--gold);margin:6px 0 10px}
.item{display:flex;justify-content:space-between;padding:14px;border-radius:10px;background:var(--card);margin-bottom:10px;align-items:center;transition:transform 0.15s ease, box-shadow .15s ease}
.item:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(0,0,0,0.35)}
.item-left{display:flex;gap:12px;align-items:flex-start;flex:1;min-width:0}

.item.has-photo{align-items:flex-start}
.item-thumb-wrap{position:relative;width:96px;height:96px;flex-shrink:0;margin-left:14px}
.item-thumb{width:100%;height:100%;object-fit:cover;border-radius:10px;display:block;background:var(--wood-mid)}
.thumb-add{position:absolute;left:50%;bottom:-12px;transform:translateX(-50%);white-space:nowrap}
.thumb-add .add-btn{background:var(--wood-dark);box-shadow:0 3px 10px rgba(0,0,0,0.45);padding:6px 14px;min-height:38px}
.thumb-add .stepper{background:var(--wood-dark);box-shadow:0 3px 10px rgba(0,0,0,0.45);min-height:38px}
.indicator{width:16px;height:16px;min-width:16px;margin-top:3px;border-radius:3px;display:inline-flex;align-items:center;justify-content:center;border:2px solid}
.indicator::after{content:"";width:7px;height:7px;border-radius:50%}
.indicator.veg{border-color:var(--veg)}
.indicator.veg::after{background:var(--veg)}
.indicator.nonveg{border-color:var(--nonveg)}
.indicator.nonveg::after{background:var(--nonveg)}
.indicator.egg{border-color:var(--egg)}
.indicator.egg::after{background:var(--egg)}
.item-name{font-weight:700;font-size:15px}
.item-badge{display:inline-block;margin-left:8px;font-size:11px;font-weight:600;color:var(--wood-dark);background:var(--gold-soft);padding:2px 7px;border-radius:999px;vertical-align:middle}
.item-desc{font-size:13px;line-height:1.45;color:rgba(245,236,217,0.72);margin-top:4px;max-width:46ch}
.item-right{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.add-btn{
  background:transparent;border:1px solid var(--gold);color:var(--gold);
  padding:6px 16px;border-radius:8px;min-height:44px;min-width:78px;cursor:pointer;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;line-height:1.15;
}
.add-btn:hover{background:var(--gold);color:var(--wood-dark)}
.add-btn .add-label{font-size:13px;font-weight:800;letter-spacing:.04em}
.add-btn .add-price{font-size:11px;font-weight:600;opacity:0.85;white-space:nowrap}

.floating-cart{position:fixed;right:18px;bottom:18px;background:var(--gold);color:var(--wood-dark);padding:12px 18px;min-height:44px;border-radius:999px;cursor:pointer;display:none;align-items:center;font-weight:700;box-shadow:0 6px 18px rgba(0,0,0,0.35);z-index:60;border:0}
.floating-cart.show{display:inline-flex}

.gallery{padding:28px 0}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px}
.grid img{width:100%;height:160px;object-fit:cover;border-radius:8px}

.mapwrap{position:relative;margin-top:18px}
.visit .mapwrap iframe{width:100%;height:300px;border:0;border-radius:8px;display:block}
.directions-btn{
  position:absolute;right:12px;bottom:12px;
  background:var(--wood-dark);color:var(--gold-soft);
  border:1px solid rgba(255,255,255,0.15);
  padding:9px 14px;border-radius:999px;font-size:13px;font-weight:600;text-decoration:none;
  box-shadow:0 6px 18px rgba(0,0,0,0.4);
}
.directions-btn:hover{color:var(--gold);border-color:var(--gold)}

.site-footer{border-top:1px solid rgba(255,255,255,0.06);padding:52px 0 0;margin-top:24px;background:linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.28))}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.3fr;gap:36px;padding-bottom:36px}
.footer-col-title{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--gold);font-weight:700;margin:0 0 14px}
.footer-col{display:flex;flex-direction:column;gap:9px;font-size:13.5px}
.footer-col a{color:rgba(245,236,217,0.82);text-decoration:none}
.footer-col a:hover{color:var(--gold-soft);text-decoration:underline}
.footer-brand-col{gap:14px}
.brand-small{display:flex;flex-direction:column;align-items:flex-start}
.brand-small .rule{height:3px;width:44px;background:var(--gold);margin-bottom:8px;border-radius:2px}
.brand-small .name{font-family:Oswald,Segoe UI;font-weight:700;letter-spacing:1.5px;font-size:19px;color:var(--cream)}
.brand-small .subtitle{font-size:10.5px;color:var(--gold-soft);letter-spacing:2.5px;margin-top:3px}
.footer-blurb{font-size:13px;color:rgba(245,236,217,0.72);max-width:34ch;margin:0}
.footer-addr{font-size:13px;color:rgba(245,236,217,0.75);margin:0 0 2px;line-height:1.5}
.footer-notes{color:rgba(245,236,217,0.68);font-size:12.5px;display:flex;gap:16px}
.footer-notes-group{display:flex;flex-direction:column;gap:6px;flex:1;min-width:0}

.socials{display:flex;gap:10px;margin-top:4px}
.socials a{
  display:inline-flex;align-items:center;justify-content:center;
  width:38px;height:38px;border-radius:50%;
  background:rgba(255,255,255,0.06);border:1px solid rgba(255,255,255,0.1);
  color:var(--gold-soft);transition:transform .18s ease, background .18s ease, color .18s ease;
}
.socials a svg{width:17px;height:17px}
.socials a:hover{transform:translateY(-3px);background:var(--gold);color:var(--wood-dark)}

.footer-legal{
  border-top:1px solid rgba(255,255,255,0.06);
  display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;
  padding:16px 16px;font-size:12px;color:rgba(245,236,217,0.55);
  max-width:var(--max-width);margin:0 auto;
}
.footer-legal a{color:rgba(245,236,217,0.55);text-decoration:underline}
.footer-credit strong{color:var(--gold-soft);font-weight:700}

.back-to-top{
  position:fixed;right:18px;bottom:18px;z-index:55;
  width:46px;height:46px;border-radius:50%;border:1px solid rgba(255,255,255,0.15);
  background:var(--gold);color:var(--wood-dark);font-size:18px;font-weight:700;cursor:pointer;
  box-shadow:0 8px 20px rgba(0,0,0,0.35);
  opacity:0;transform:translateY(10px);transition:opacity .25s ease, transform .25s ease;
}
.back-to-top.show{opacity:1;transform:translateY(0)}
.back-to-top:hover{transform:translateY(-3px)}

@media (max-width:900px){
  .footer-grid{grid-template-columns:1fr 1fr;gap:28px}
  .footer-brand-col{grid-column:1/-1}
  .footer-legal{flex-direction:column;text-align:center}
}
@media (max-width:560px){
  .footer-grid{grid-template-columns:1fr}
}
@media (max-width:420px){
  .footer-notes{flex-direction:column;gap:6px}
}

.lightbox{position:fixed;inset:0;background:rgba(0,0,0,0.85);display:none;align-items:center;justify-content:center;z-index:80}
.lightbox img{max-width:92%;max-height:92%;border-radius:8px}
.lightbox.show{display:flex}

.cart-overlay{position:fixed;inset:0;background:rgba(0,0,0,0.6);display:none;align-items:center;justify-content:center;z-index:90}
.cart-inner{background:var(--card);padding:20px;border-radius:10px;min-width:280px;color:var(--cream)}
.cart-inner h3{margin-top:0}
.cart-actions{display:flex;gap:8px;margin-top:12px}

@media (max-width:900px){
  .category-rail{display:none}
  .mobile-cat-row{display:flex}
  .hamburger{display:block}
  .nav-desktop{
    display:flex;flex-direction:column;align-items:stretch;gap:0;
    position:absolute;top:100%;left:0;right:0;
    background:var(--wood-mid);
    max-height:0;overflow:hidden;
    transition:max-height 0.25s ease;
    border-bottom:1px solid rgba(255,255,255,0.06);
  }
  .nav-desktop.open{max-height:280px}
  .nav-desktop .nav-link{padding:14px 20px;border-top:1px solid rgba(255,255,255,0.04)}
  .hero-wordmark h1{font-size:40px}
  .grid img{height:120px}
  .topbar .wordmark .subtitle{display:none}
  .topbar .wordmark .name{font-size:17px}
  .bar-actions .btn.primary{padding:8px 10px;font-size:13px}
  .wa-text{display:none}
  .wa-btn{padding:8px;min-width:40px;justify-content:center}
}

@media (prefers-reduced-motion:reduce){
  *{transition:none!important;animation:none!important}
}

/* ============ Home page: hero highlights, vibe, popular ============ */
.hero-highlights{display:flex;gap:18px;flex-wrap:wrap;margin-top:18px}
.hero-highlight{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--cream);opacity:0.95}
.hh-icon{font-size:18px}
.hero-secondary-order{margin-top:14px;font-size:13.5px;color:rgba(245,236,217,0.75)}
.hero-secondary-order a{color:var(--gold-soft);text-decoration:underline}

.section-eyebrow{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--gold-soft);font-weight:700;margin:0 0 6px}

.reveal-init{opacity:0;transform:translateY(16px);transition:opacity .5s ease, transform .5s ease}
.reveal-init.revealed{opacity:1;transform:translateY(0)}

.vibe{display:flex;gap:40px;align-items:flex-start;padding:56px 16px 64px;flex-wrap:wrap}
.vibe-text{flex:1;min-width:260px}
.vibe-text h2{font-family:Oswald,Segoe UI;font-size:28px;margin:0 0 12px;text-wrap:balance}
.vibe-copy{color:rgba(245,236,217,0.85);max-width:52ch}
.link-arrow{display:inline-block;margin-top:14px;color:var(--gold-soft);text-decoration:none;font-weight:600}
.link-arrow:hover{text-decoration:underline}
.vibe-collage{flex:1;min-width:260px;display:grid;grid-template-columns:1.2fr 1fr;grid-template-rows:1fr 1fr;gap:8px;height:240px;overflow:hidden}
.vibe-collage img{width:100%;height:100%;min-height:0;object-fit:cover;border-radius:10px;display:block}
.vibe-collage img:first-child{grid-row:1/3}

.popular{padding:20px 16px 56px}
.popular-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:20px}
.popular-head h2{font-family:Oswald,Segoe UI;font-size:26px;margin:0}
.popular-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}
.popular-card{display:flex;gap:12px;background:var(--card);border-radius:10px;padding:14px;align-items:flex-start;transition:transform .15s ease}
.popular-card:hover{transform:translateY(-3px)}
.popular-card-body{min-width:0}
.popular-card-name{font-weight:700}
.popular-card-desc{font-size:12.5px;color:rgba(245,236,217,0.75);margin-top:2px}
.popular-card-price{color:var(--gold-soft);font-weight:700;margin-top:6px}

.gallery h2, .visit h2{font-family:Oswald,Segoe UI;font-size:26px;margin:4px 0 18px}

/* ============ Table bar (menu.html) ============ */
.table-bar{background:var(--card);border-bottom:1px solid rgba(255,255,255,0.06);position:sticky;top:var(--header-h, 64px);z-index:35}
.table-bar-inner{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 16px}
.table-bar-label{font-weight:600;font-size:14px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.table-bar-change{flex-shrink:0;background:transparent;border:1px solid var(--gold);color:var(--gold-soft);padding:6px 12px;border-radius:999px;font-weight:600;font-size:13px;min-height:32px;cursor:pointer}
.table-bar.waiter-mode{background:rgba(201,162,75,0.14)}
.waiter-tag{padding:3px 10px;border-radius:999px;font-size:11px;font-weight:700;background:rgba(201,162,75,0.18);color:var(--gold-soft);margin-left:8px;white-space:nowrap}

/* ============ Stepper / variant popover / cart badges ============ */
.stepper{display:inline-flex;align-items:center;gap:10px;background:var(--wood-mid);border:1px solid var(--gold);border-radius:8px;padding:4px 10px;min-height:36px}
.stepper button{background:transparent;border:0;color:var(--gold-soft);font-size:16px;font-weight:700;cursor:pointer;width:22px;min-height:28px}
.stepper-qty{min-width:16px;text-align:center;font-weight:700}
.stepper.sm{padding:2px 8px;min-height:30px}
.in-cart-badge{display:block;margin-top:4px;font-size:11px;color:var(--gold-soft);text-align:right}

.variant-popover{position:absolute;display:none;background:var(--card);border:1px solid rgba(255,255,255,0.1);border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,0.4);padding:10px;z-index:70;min-width:200px;max-width:260px}
.variant-popover.show{display:block}
.variant-title{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--gold-soft);margin-bottom:6px;padding:0 4px}
.variant-opt{display:flex;justify-content:space-between;gap:10px;width:100%;background:transparent;border:0;color:var(--cream);padding:9px 6px;border-radius:6px;cursor:pointer;text-align:left;font-size:14px}
.variant-opt:hover{background:rgba(255,255,255,0.06)}
.variant-opt strong{color:var(--gold-soft)}

/* ============ Modal overlay (table picker, invoice) ============ */
.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,0.6);display:none;align-items:center;justify-content:center;z-index:95;padding:16px}
.modal-overlay.show{display:flex}
.modal-card{background:var(--card);border-radius:14px;padding:24px;max-width:380px;width:100%;max-height:90vh;overflow-y:auto;box-shadow:0 20px 60px rgba(0,0,0,0.5)}
.modal-card h3{margin:0 0 8px;font-family:Oswald,Segoe UI}
.modal-hint{font-size:13px;color:rgba(245,236,217,0.75);margin:0 0 14px}
.modal-input{width:100%;padding:12px;border-radius:8px;border:1px solid rgba(255,255,255,0.15);background:var(--wood-dark);color:var(--cream);font-size:16px;margin-bottom:14px}
.modal-actions{display:flex;gap:10px;justify-content:flex-end}
.table-pick-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:8px;margin-bottom:16px;max-height:50vh;overflow-y:auto}
.table-pick-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:56px;padding:8px 4px;border-radius:10px;border:1px solid rgba(255,255,255,0.15);background:var(--wood-dark);color:var(--cream);font-size:16px;font-weight:600;cursor:pointer;font-family:inherit}
.table-pick-btn:hover{border-color:var(--gold-soft)}
.table-pick-btn.occupied{opacity:.75}
.table-pick-btn.takeaway{grid-column:span 2;font-size:15px}
.table-pick-btn .tp-sub{font-size:10px;font-weight:400;text-transform:uppercase;letter-spacing:.05em;color:var(--gold-soft);margin-top:2px}
.table-pick-btn.selected{border-color:var(--gold-soft);background:var(--gold-soft);color:var(--wood-dark)}
.table-pick-btn.selected .tp-sub{color:var(--wood-dark)}

/* ============ Cart drawer ============ */
.drawer-scrim{position:fixed;inset:0;background:rgba(0,0,0,0.55);display:none;z-index:75}
.drawer-scrim.show{display:block}
.cart-drawer{position:fixed;top:0;right:0;bottom:0;width:min(420px,100%);background:var(--wood-dark);border-left:1px solid rgba(255,255,255,0.08);z-index:80;transform:translateX(100%);transition:transform .28s ease;display:flex;flex-direction:column}
.cart-drawer.open{transform:translateX(0)}
.cart-drawer-inner{display:flex;flex-direction:column;height:100%;overflow-y:auto;padding:18px}
.cart-drawer-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.cart-drawer-head h3{margin:0;font-family:Oswald,Segoe UI;font-size:19px}
.cart-drawer-head #cartTableTag{color:var(--gold-soft);font-size:13px;font-weight:400;margin-left:6px}
.icon-btn{background:transparent;border:0;color:var(--cream);font-size:18px;min-width:36px;min-height:36px;cursor:pointer;border-radius:8px}
.icon-btn:hover{background:rgba(255,255,255,0.08)}
.cart-empty{color:rgba(245,236,217,0.7);font-size:14px;padding:24px 0;text-align:center}
.cart-items{display:flex;flex-direction:column;gap:10px}
.cart-line{display:flex;justify-content:space-between;align-items:center;gap:10px;background:var(--card);border-radius:8px;padding:10px 12px}
.cart-line-name{font-size:13.5px;font-weight:600;min-width:0}
.cart-line-right{display:flex;align-items:center;gap:12px;flex-shrink:0}
.cart-line-price{font-weight:700;color:var(--gold-soft);min-width:60px;text-align:right;font-size:13.5px}
.cart-summary{border-top:1px solid rgba(255,255,255,0.08);padding-top:14px;margin-top:14px}
.cart-total-row{display:flex;justify-content:space-between;font-size:16px;margin-bottom:12px}

.my-orders{margin-top:20px}
.my-orders-title{font-size:13px;text-transform:uppercase;letter-spacing:.06em;color:var(--gold-soft);margin:0 0 10px}
.order-card{background:var(--card);border-radius:8px;padding:10px 12px;margin-bottom:8px}
.order-card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
.order-time{font-size:11.5px;color:rgba(245,236,217,0.6)}
.order-card-items{font-size:12.5px;color:rgba(245,236,217,0.8)}
.order-card-total{font-size:13px;font-weight:700;color:var(--gold-soft);margin-top:4px}

.status-pill{display:inline-block;padding:3px 9px;border-radius:999px;font-size:11px;font-weight:700;color:var(--wood-dark)}
.status-pill.st-new{background:var(--st-new)}
.status-pill.st-preparing{background:var(--st-preparing)}
.status-pill.st-ready{background:var(--st-ready)}
.status-pill.st-delivered{background:var(--st-delivered)}
.status-pill.st-bill{background:var(--st-bill)}
.status-pill.st-paid{background:var(--st-paid);color:#fff}

.bill-request{margin-top:20px;background:linear-gradient(180deg, rgba(201,162,75,0.12), transparent);border:1px solid rgba(201,162,75,0.3);border-radius:10px;padding:14px}
.bill-request h4{margin:0 0 4px;font-family:Oswald,Segoe UI}
.bill-request p{margin:0 0 12px;font-size:13px;color:rgba(245,236,217,0.8)}
.bill-request-note{font-size:12px;font-style:italic;color:var(--gold-soft);margin:-6px 0 12px}
.pay-methods{display:flex;gap:8px}
.pay-method{flex:1;background:var(--card);border:1px solid rgba(255,255,255,0.1);border-radius:8px;padding:12px 6px;color:var(--cream);display:flex;flex-direction:column;align-items:center;gap:4px;font-size:12.5px;font-weight:600;cursor:pointer;min-height:60px}
.pay-method:hover{border-color:var(--gold)}

/* ============ Toast ============ */
.toast-host{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:120;display:flex;flex-direction:column;gap:8px;align-items:center;padding:0 16px;width:100%;pointer-events:none}
.toast{background:var(--wood-mid);color:var(--cream);border:1px solid rgba(255,255,255,0.1);padding:11px 16px;border-radius:10px;font-size:13.5px;box-shadow:0 8px 24px rgba(0,0,0,0.4);opacity:0;transform:translateY(8px);transition:opacity .25s ease, transform .25s ease;max-width:420px;text-align:center}
.toast.show{opacity:1;transform:translateY(0)}

/* ============ Menu page footer secondary order links ============ */
.footer-secondary-order{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:13px;color:rgba(245,236,217,0.75)}

/* ============ Staff pages (kitchen / waiter / counter / hub) ============ */
.page-staff{background:linear-gradient(180deg,#1c120c,#2a1a12);min-height:100vh}
.staff-bar{position:sticky;top:0;z-index:30;background:rgba(0,0,0,0.35);backdrop-filter:blur(6px);border-bottom:1px solid rgba(255,255,255,0.06)}
.staff-bar-inner{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px}
.staff-back{color:var(--cream);text-decoration:none;font-size:20px;min-width:36px;min-height:36px;display:flex;align-items:center;justify-content:center;border-radius:8px}
.staff-back:hover{background:rgba(255,255,255,0.08)}
.staff-title{font-family:Oswald,Segoe UI;font-weight:700;font-size:17px;letter-spacing:.03em}
.staff-clock{font-variant-numeric:tabular-nums;color:var(--gold-soft);font-size:14px;min-width:60px;text-align:right}

.qr-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:18px;padding:18px}
.qr-card{background:var(--cream);color:#241207;border-radius:12px;padding:16px;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}
.qr-card-code{width:150px;height:150px;background:#fff;padding:6px;border-radius:8px}
.qr-card-code canvas{width:100%;height:100%}
.qr-card-label{font-family:Oswald,Segoe UI;font-weight:700;font-size:16px}
.qr-card-hint{font-size:10.5px;color:rgba(36,18,7,0.6);word-break:break-all}
/* .btn.outline defaults to light cream text on a near-invisible light border —
   fine on the site's dark theme, unreadable on this card's cream background. */
.qr-card .btn.outline{color:#241207;border-color:rgba(36,18,7,0.35)}
.qr-card .btn.outline:hover{border-color:#241207}

@media print{
  .staff-bar{display:none!important}
  .page-staff{background:#fff}
  .qr-grid{padding:0}
  .qr-card{break-inside:avoid;border:1px dashed #999}
  /* "Print QR" isolates one card via body.printing-single + .print-only, set in
     table-qr.js — everything else in the grid is hidden for that print. */
  body.printing-single .qr-card{display:none}
  body.printing-single .qr-card.print-only{display:flex}
}
.bill-breakdown{font-size:12.5px;color:rgba(245,236,217,0.7);display:flex;flex-direction:column;gap:2px;margin-bottom:8px}
.bill-breakdown .bill-total-line{display:flex;justify-content:space-between;font-size:14.5px;color:var(--cream);font-weight:700;margin-top:2px;padding-top:4px;border-top:1px dashed rgba(255,255,255,0.15)}
.bill-breakdown .bill-line{display:flex;justify-content:space-between}
.bill-discount-row{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12.5px;color:rgba(245,236,217,0.7);margin-bottom:8px}
.bill-discount-select{padding:5px 8px;border-radius:6px;border:1px solid rgba(255,255,255,0.15);background:var(--wood-dark);color:var(--cream);font-size:12.5px}
.staff-sync-note{text-align:center;color:rgba(245,236,217,0.45);font-size:12px;padding:18px 16px 30px}

.kds-board{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;padding:18px}
.waiter-actions{padding:18px 18px 0}
.waiter-actions .btn{width:100%}

.menu-editor-sticky-top{position:sticky;top:0;z-index:30;background:linear-gradient(180deg,#1c120c,#2a1a12)}
.menu-editor-actions{display:flex;gap:10px;padding:14px 18px;border-bottom:1px solid rgba(255,255,255,0.06)}
.menu-editor-actions .btn{width:auto;flex:1}
@media (max-width:480px){
  .menu-editor-actions{flex-direction:column}
}
.waiter-board, .counter-board{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:18px}
.waiter-board .full-row{grid-column:1/-1}
.kds-col, .waiter-section{background:rgba(255,255,255,0.02);border:1px solid rgba(255,255,255,0.06);border-radius:12px;padding:14px;transition:box-shadow .3s ease}
.kds-col.flash, .waiter-section.flash{box-shadow:0 0 0 3px var(--gold-soft), 0 0 24px rgba(228,200,120,0.5)}
.kds-col-title, .waiter-section-title{display:flex;align-items:center;gap:8px;font-family:Oswald,Segoe UI;font-size:16px;margin:0 0 12px;letter-spacing:.02em}
.waiter-section-hint{font-size:12.5px;color:rgba(245,236,217,0.55);margin:-8px 0 12px}
.waiter-welcome{font-size:13.5px;color:var(--gold-soft);font-weight:600}
.kds-count{margin-left:auto;background:rgba(255,255,255,0.08);padding:2px 9px;border-radius:999px;font-size:12px;font-variant-numeric:tabular-nums}
.invoice-filter-head{margin-bottom:12px}
.invoice-filter-head .waiter-section-title{margin-bottom:8px}
.invoice-filter{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.invoice-filter input[type=date]{padding:6px 8px;border-radius:6px;border:1px solid rgba(255,255,255,0.15);background:var(--wood-dark);color:var(--cream);font-size:12.5px;color-scheme:dark}
.dot-new,.dot-preparing,.dot-ready,.dot-cash,.dot-bill{width:10px;height:10px;border-radius:50%;display:inline-block}
.dot-new{background:var(--st-new)}
.dot-preparing{background:var(--st-preparing)}
.dot-ready{background:var(--st-ready)}
.dot-cash{background:var(--st-cash)}
.dot-bill{background:var(--st-bill)}
.kds-cards, .waiter-cards{display:flex;flex-direction:column;gap:10px}
.kds-empty{color:rgba(245,236,217,0.4);font-size:13px;padding:20px 0;text-align:center}
.kds-card{background:var(--card);border-radius:10px;padding:12px 14px;border-left:4px solid rgba(255,255,255,0.15)}
.kds-card.age-ok{border-left-color:var(--st-ready)}
.kds-card.age-warn{border-left-color:var(--st-new)}
.kds-card.age-critical{border-left-color:var(--st-cash)}
.kds-card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.kds-table{font-weight:700;font-family:Oswald,Segoe UI;letter-spacing:.02em}
.kds-age{font-size:12px;color:rgba(245,236,217,0.65);font-variant-numeric:tabular-nums}
.kds-items{list-style:none;margin:0 0 8px;padding:0;font-size:13.5px;display:flex;flex-direction:column;gap:3px}
.kds-special{color:var(--gold-soft)}
.kds-notes{font-size:12.5px;color:rgba(245,236,217,0.7);margin-bottom:8px}
.kds-actions{display:flex;justify-content:flex-end}
.kds-actions.wrap{flex-wrap:wrap;gap:6px;justify-content:flex-start}
.btn.full-width{display:block;width:100%;margin-top:6px;text-align:center}
.kds-waiting-badge{font-size:12px;color:rgba(245,236,217,0.55);font-style:italic}
.mine-order-row{padding:8px 0;border-top:1px solid rgba(255,255,255,0.07)}
.mine-order-row:first-of-type{border-top:none;padding-top:0}

@keyframes glow-pulse{0%,100%{box-shadow:0 0 0 0 rgba(228,200,120,0.55)}50%{box-shadow:0 0 14px 4px rgba(228,200,120,0.75)}}
.btn.glow{animation:glow-pulse 1.6s ease-in-out infinite}

.cash-card{border-left-color:var(--st-cash)}
.cash-section .kds-card{background:linear-gradient(180deg, rgba(193,39,45,0.12), var(--card))}

.method-chip{padding:3px 10px;border-radius:999px;font-size:11px;font-weight:700}
.method-chip.method-cash{background:var(--st-cash);color:#fff}
.method-chip.method-card{background:var(--st-preparing);color:#fff}
.method-chip.method-upi{background:var(--gold);color:var(--wood-dark)}
.recent-card{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;background:var(--card);border-radius:10px;padding:10px 14px;cursor:pointer}
.recent-card:hover{background:var(--wood-mid)}

.staff-hub{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 20px;gap:32px;text-align:center}
.staff-hub-brand .rule{height:3px;width:64px;background:var(--gold);margin:0 auto 12px}
.staff-hub-name{font-family:Oswald,Segoe UI;font-weight:700;font-size:28px;letter-spacing:.05em}
.staff-hub-sub{color:var(--gold-soft);font-size:13px;letter-spacing:.1em;text-transform:uppercase;margin-top:4px}
.staff-hub-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:18px;max-width:760px;width:100%}
.staff-tile{background:var(--card);border:1px solid rgba(255,255,255,0.08);border-radius:14px;padding:26px 18px;text-decoration:none;color:var(--cream);display:flex;flex-direction:column;align-items:center;gap:8px;transition:transform .15s ease, border-color .15s ease}
.staff-tile:hover{transform:translateY(-4px);border-color:var(--gold)}
.staff-tile-icon{font-size:34px}
.staff-tile-title{font-family:Oswald,Segoe UI;font-weight:700;font-size:17px}
.staff-tile-desc{font-size:12.5px;color:rgba(245,236,217,0.7)}
.staff-hub-home{color:var(--gold-soft);text-decoration:none;font-size:13.5px}
.staff-hub-home:hover{text-decoration:underline}

.menu-editor-board{max-width:var(--max-width);margin:0 auto;padding:0 16px 100px;display:flex;flex-direction:column;gap:18px}
.menu-editor-cat{background:var(--card);border:1px solid rgba(255,255,255,0.08);border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:10px}
.menu-editor-cat-head{display:flex;align-items:center;gap:10px}
.menu-editor-cat-name{flex:1;font-family:Oswald,Segoe UI;font-weight:700;font-size:16px;background:transparent;border:1px solid rgba(255,255,255,0.15);border-radius:8px;padding:8px 10px;color:var(--cream)}
.menu-editor-items{display:flex;flex-direction:column;gap:8px}
.menu-editor-item{display:grid;grid-template-columns:56px 2fr 1fr 100px 100px 2fr auto;gap:8px;align-items:center}
.menu-editor-item input,.menu-editor-item select{background:var(--wood-dark);border:1px solid rgba(255,255,255,0.15);border-radius:8px;padding:8px 10px;color:var(--cream);font-size:13.5px;min-width:0}
.menu-editor-item-price{max-width:140px}
.menu-editor-item-photo{width:56px;height:56px;border-radius:8px;border:1px dashed rgba(255,255,255,0.25);background:var(--wood-dark);display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;flex-shrink:0}
.menu-editor-item-photo:hover{border-color:var(--gold)}
.menu-editor-item-photo img{width:100%;height:100%;object-fit:cover}
.menu-editor-item-photo-ph{font-size:18px;opacity:0.6}
@media (max-width:760px){
  .menu-editor-item{grid-template-columns:56px 1fr 1fr;grid-auto-rows:auto}
  .menu-editor-item-name,.menu-editor-item-desc{grid-column:2 / -1}
}

.staff-login-card{width:100%;max-width:320px;text-align:left}
.staff-login-label{display:block;font-size:13px;color:rgba(245,236,217,0.75);margin-bottom:8px}
.staff-login-error{color:var(--st-cash);font-size:13px;margin:-6px 0 12px}
.staff-welcome-card{width:100%;max-width:360px;text-align:left;display:flex;flex-direction:column;gap:10px}
.staff-welcome-card select{width:100%;padding:12px;border-radius:8px;border:1px solid rgba(255,255,255,0.15);background:var(--wood-dark);color:var(--cream);font-size:16px}

@media (max-width:760px){
  .staff-hub-grid{grid-template-columns:1fr}
}

/* ============ Invoice ============
   Styled as a printed paper receipt (light background, monospace) regardless
   of the site's dark theme — this is what the customer takes away on paper. */
.invoice-card{max-width:420px;background:var(--cream);color:#3a2a1a;font-family:'Courier New',ui-monospace,Consolas,monospace;border:1px solid rgba(0,0,0,0.08);font-weight:700}
.invoice-head{text-align:center;margin-bottom:14px;padding-bottom:14px;border-bottom:1px dashed rgba(0,0,0,0.25)}
.invoice-brand{font-family:Oswald,Segoe UI;font-weight:700;font-size:22px;letter-spacing:.05em;color:#241207}
.invoice-addr{font-size:11.5px;color:rgba(58,42,26,0.75);margin-top:6px}
.invoice-reg{font-size:11px;color:rgba(58,42,26,0.75);margin-top:4px}
.invoice-meta{display:flex;justify-content:space-between;font-size:13px;margin:10px 0;color:rgba(58,42,26,0.85)}
.invoice-table{width:100%;border-collapse:collapse;font-size:13px;margin:10px 0}
.invoice-table th{text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#a97a1f;padding-bottom:6px;border-bottom:1px solid rgba(0,0,0,0.2)}
.invoice-table td{padding:6px 0;border-bottom:1px dotted rgba(0,0,0,0.15)}
.invoice-table th:nth-child(2), .invoice-table td:nth-child(2){text-align:center}
.invoice-table th:nth-child(3), .invoice-table td:nth-child(3), .invoice-table th:nth-child(4), .invoice-table td:nth-child(4){text-align:right}
.invoice-pay-row{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin:14px 0}
.invoice-qr-block{display:flex;flex-direction:column;align-items:center;gap:4px;flex-shrink:0}
.invoice-qr-img{width:110px;height:110px;border-radius:6px;background:#fff;padding:4px;box-shadow:0 1px 4px rgba(0,0,0,0.15);overflow:hidden}
/* The QR is generated at 256px for a sharp print. On screen, scale it down
   to fit this 110px box instead of letting it overflow onto the totals. */
.invoice-qr-img img, .invoice-qr-img canvas{width:100%;height:100%;display:block;image-rendering:pixelated}
.invoice-totals-block{display:flex;flex-direction:column;gap:4px;min-width:150px;flex:1}
.invoice-totals-block .invoice-meta{margin:0;font-size:12.5px}
.invoice-total-row{display:flex;justify-content:space-between;font-size:16px;margin-top:8px;padding-top:8px;border-top:1px dashed rgba(0,0,0,0.3)}
.invoice-thanks{text-align:center;margin-top:16px;font-size:12px;color:#a97a1f;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.invoice-footnote{text-align:center;margin-top:4px;font-size:10.5px;color:rgba(58,42,26,0.55)}

/* ============ Sales Dashboard ============ */
.dash-hero{padding:32px 20px 24px;text-align:center;background:rgba(0,0,0,0.15)}
.dash-hero-inner .rule{height:3px;width:64px;background:var(--gold);margin:0 auto 12px}
.dash-hero-name{font-family:Oswald,Segoe UI;font-weight:700;font-size:26px;letter-spacing:.05em}
.dash-hero-sub{color:var(--gold-soft);font-size:13px;letter-spacing:.05em;margin-top:6px}
.dashboard-page{max-width:960px;margin:0 auto;padding:18px;display:flex;flex-direction:column;gap:16px}

.stat-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.stat-tile{background:var(--card);border:1px solid rgba(255,255,255,0.08);border-radius:12px;padding:16px}
.stat-label{font-size:12px;color:rgba(245,236,217,0.6);text-transform:uppercase;letter-spacing:.05em}
.stat-value{font-family:Oswald,Segoe UI;font-weight:700;font-size:26px;color:var(--gold-soft);margin-top:4px}
.stat-sub{font-size:12.5px;color:rgba(245,236,217,0.55);margin-top:2px}

.dash-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:16px}
.dash-card{background:rgba(255,255,255,0.02);border:1px solid rgba(255,255,255,0.06);border-radius:12px;padding:16px}
.dash-card-title{font-family:Oswald,Segoe UI;font-size:15px;margin:0 0 12px;letter-spacing:.02em;display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
.dash-card-sub{font-size:11.5px;color:rgba(245,236,217,0.5);font-weight:400;letter-spacing:0}
.dash-card-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.dash-card-head .dash-card-title{margin-bottom:0}

.dash-range-toggle{display:flex;gap:6px;flex-wrap:wrap}
.range-btn{background:transparent;border:1px solid rgba(255,255,255,0.14);color:rgba(245,236,217,0.7);border-radius:999px;padding:4px 10px;font-size:11.5px;cursor:pointer;transition:all .15s ease}
.range-btn:hover{border-color:var(--gold-soft)}
.range-btn.active{background:var(--gold);border-color:var(--gold);color:var(--wood-dark);font-weight:700}

.trend-chart{display:flex;align-items:flex-end;gap:6px;height:160px;padding-top:8px}
.trend-bar{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;min-width:0}
.trend-bar-fill{width:100%;max-width:22px;background:var(--gold);border-radius:4px 4px 0 0;transition:height .3s ease}
.trend-bar.is-today .trend-bar-fill{background:var(--gold-soft);box-shadow:0 0 8px rgba(228,200,120,0.6)}
.trend-bar-label{font-size:9.5px;color:rgba(245,236,217,0.5);margin-top:6px;white-space:nowrap}
.trend-empty{color:rgba(245,236,217,0.4);font-size:13px;text-align:center;padding:40px 0}

.dish-rank-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.dish-rank-item{display:flex;gap:10px;align-items:flex-start}
.dish-rank-badge{background:var(--wood-dark);color:var(--gold-soft);font-family:Oswald,Segoe UI;font-weight:700;font-size:12px;border-radius:6px;padding:3px 7px;flex-shrink:0}
.dish-rank-body{flex:1;min-width:0}
.dish-rank-top{display:flex;justify-content:space-between;gap:8px;font-size:13px;margin-bottom:4px}
.dish-rank-name{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dish-rank-qty{color:var(--gold-soft);font-size:12px;flex-shrink:0}
.dish-rank-bar-track{height:5px;background:rgba(255,255,255,0.08);border-radius:999px;overflow:hidden}
.dish-rank-bar-fill{height:100%;background:var(--gold);border-radius:999px}
.dish-rank-revenue{font-size:11.5px;color:rgba(245,236,217,0.5);margin-top:3px}

.pie-row{display:flex;align-items:center;gap:24px;flex-wrap:wrap}
.pie-chart{width:130px;height:130px;border-radius:50%;flex-shrink:0}
.pie-legend{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;flex:1;min-width:160px}
.pie-legend li{display:flex;align-items:center;gap:8px;font-size:13px}
.pie-swatch{width:11px;height:11px;border-radius:3px;flex-shrink:0}
.pie-legend-label{flex:1}
.pie-legend-value{color:rgba(245,236,217,0.6);font-size:12px}
.pie-legend-pct{color:var(--gold-soft);font-weight:700;font-size:12px;min-width:34px;text-align:right}
.pie-empty{color:rgba(245,236,217,0.4);font-size:13px}

/* Named page sized for 72mm thermal receipt roll paper — the invoice is meant
   to come off the counter's thermal printer, not a regular A4/Letter sheet.
   Chrome/Edge honor a named @page assigned via the `page` property on just
   #invoicePrintArea, so this doesn't affect print sizing anywhere else on the
   site (e.g. table-qr.html's QR sheets stay at the browser's normal page size
   — they never set `page:`). Firefox/Safari fall back to their default page
   size but #invoicePrintArea's own width below still keeps the content itself
   receipt-narrow either way. */
@page invoice-72mm{ size:72mm auto; margin:2mm; }

/* Scoped to body.page-counter (only counter.html) — otherwise "hide everything
   except #invoicePrintArea" would blank out every other page's print output too,
   since #invoicePrintArea only exists on this one page. */
@media print{
  /* visibility:hidden (below) only hides paint, not layout — every invisible
     element still occupies its full height/width in the print document. On
     this page that's the whole staff header + the pending-bills/recent-invoices
     board (which can be many cards tall), and since #invoicePrintArea's page
     uses size:72mm auto (height = fit-to-content), that leftover invisible
     height inflated the page far past the actual receipt, producing a tall
     PDF/printout that needs scrolling — the real source of the "scrollbar".
     display:none on everything except the invoice overlay removes that layout
     entirely, instead of just hiding it in place. */
  body.page-counter > *:not(#invoiceOverlay){display:none!important}
  body.page-counter *{visibility:hidden}
  body.page-counter #invoicePrintArea, body.page-counter #invoicePrintArea *{visibility:visible}
  /* #invoiceOverlay is position:fixed;inset:0 on screen — a full-viewport box.
     visibility:hidden keeps it invisible but NOT out of the print layout (unlike
     display:none, which would also hide the #invoicePrintArea it contains), so
     that viewport-wide invisible box was still there during print, next to the
     68mm receipt content, and Chrome rendered the extra width as a scrollbar-like
     strip down the side of the printed page/PDF. Neutralizing its box here (not
     hiding it outright) removes that phantom width while leaving #invoicePrintArea
     itself, further down, still explicitly positioned and sized for the receipt. */
  #invoiceOverlay, body.page-counter .modal-card{position:static;inset:auto;width:auto;height:auto;max-width:none;display:block;background:none;box-shadow:none;padding:0}
  /* Same phantom-box problem as #invoiceOverlay above, but for the toast
     notification host — position:fixed;width:100% — which exists in the DOM
     any time a toast has fired on this page (e.g. "Bill sent to billing
     printer" right before printing), even though visibility:hidden makes it
     invisible. */
  #ekToastHost, body.page-counter .toast-host{position:static;inset:auto;width:auto;transform:none;left:auto;bottom:auto}
  html, body.page-counter{margin:0}
  #invoicePrintArea{position:absolute;top:0;left:0;width:68mm;color:#000000d6;page:invoice-72mm;font-size:11px}
  .invoice-brand{color:#000;font-size:16px}
  .invoice-table{font-size:11px}
  /* Invoice # got a longer prefix (INV-ANG-DHB-####) — shrunk just this row,
     and stopped it wrapping, so it stays on one line next to the date. */
  .invoice-id-row{font-size:9.5px;flex-wrap:nowrap;gap:6px}
  .invoice-id-row div{white-space:nowrap}
  .invoice-pay-row{flex-direction:column;align-items:center}
  .invoice-totals-block{width:100%;order:1}

  /* Solid black, bold text on every line. The faint browns/greys used on
     screen (address, headers, footnote, thank-you) print washed out on
     thermal paper. */
  #invoicePrintArea, #invoicePrintArea *{
    color:#000!important;
    font-weight:700;
    -webkit-text-stroke:0.25px #000; /* Courier New bold is thin, so this thickens it a bit more */
    -webkit-print-color-adjust:exact;print-color-adjust:exact;
  }

  /* Printed after the totals block (order:2, vs. totals' order:1 above), so the
     receipt reads Total, then the QR. The QR block takes the full receipt width
     and the QR itself fills about 95% of it. */
  .invoice-qr-block{order:2;margin-top:10px;width:100%;align-self:stretch;align-items:center}
  .invoice-qr-img{width:95%;height:auto;aspect-ratio:1/1;padding:0;border-radius:0;box-shadow:none;background:#fff}
  .invoice-qr-img img, .invoice-qr-img canvas{
    width:100%;height:100%;display:block;
    image-rendering:crisp-edges;image-rendering:pixelated;
  }

  /* Thank-you line and footnote start on their own lines after the QR ends */
  .invoice-thanks{display:block;width:100%;margin-top:10px;font-size:11px;white-space:nowrap}
  .invoice-footnote{display:block;width:100%;font-size:10px;line-height:1.5;margin-top:4px}

  /* Darken the dashed/dotted divider lines so they don't fade out either */
  .invoice-head, .invoice-total-row, .invoice-table th, .invoice-table td{border-color:#000!important}

  .no-print{display:none!important}
}

/* ============ Mobile overrides for the components appended above ============
   Placed last on purpose: these target base rules defined earlier in this file,
   and a later same-specificity rule always wins the cascade regardless of nesting,
   so any such override has to physically come after the rule it overrides. */
@media (max-width:900px){
  .hero-highlights{flex-direction:column;align-items:flex-start;gap:10px}
  .vibe{flex-direction:column;align-items:stretch;padding:40px 16px}
  .popular-head{flex-direction:column;align-items:flex-start;gap:12px}
  .vibe-collage{grid-template-columns:1fr 1fr;height:220px}
  .cart-drawer{width:100%}
  .kds-board{grid-template-columns:1fr;padding:14px;gap:12px}
  .waiter-board, .counter-board{grid-template-columns:1fr;padding:14px;gap:12px}
  .staff-hub-grid{grid-template-columns:1fr}
  .modal-card{padding:20px}
  .stat-tiles{grid-template-columns:1fr}
  .dash-grid{grid-template-columns:1fr}
}

@media (max-width:380px){
  .invoice-pay-row{flex-direction:column;align-items:center}
  .invoice-totals-block{width:100%}
}
