:root {
  --orange: #ff5a00;
  --orange-2: #ff6f00;
  --sidebar: #050b10;
  --sidebar-2: #091118;
  --text: #111820;
  --muted: #7a828e;
  --line: #e7ebf0;
  --soft: #f5f6f8;
  --panel: #ffffff;
  --danger: #ff2525;
  --green: #11b85d;
  --shadow: 0 12px 28px rgba(18, 28, 45, .045);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  overflow: hidden;
}
button, input { font: inherit; }
button { cursor: pointer; }

.pos-app {
  width: 100%;
  height: 100vh;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  background: #fff;
  overflow: hidden;
}

/* Sidebar: collapsed by default. It does NOT open on hover. */
.sidebar {
  position: relative;
  z-index: 30;
  width: 74px;
  height: 100vh;
  background: radial-gradient(circle at 100% 0, rgba(31, 39, 48, .48), transparent 30%), linear-gradient(180deg, var(--sidebar), var(--sidebar-2));
  color: #fff;
  padding: 22px 10px 18px;
  display: flex;
  flex-direction: column;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .045);
  overflow: hidden;
  transition: width .22s ease, box-shadow .22s ease;
}
.sidebar.open {
  width: 246px;
  box-shadow: 16px 0 38px rgba(0,0,0,.18), inset -1px 0 0 rgba(255,255,255,.045);
}

.brand {
  position: relative;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 30px;
  white-space: nowrap;
}
.sidebar.open .brand { justify-content: flex-start; gap: 12px; padding: 0 8px; }
.brand-icon { width: 42px; height: 42px; object-fit: contain; flex: 0 0 42px; }
.brand div, .nav-item .label, .nav-item > span:not(.nav-icon), .manager-meta, .manager-caret {
  width: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity .14s ease .05s;
}
.sidebar.open .brand div,
.sidebar.open .nav-item > span:not(.nav-icon),
.sidebar.open .manager-meta,
.sidebar.open .manager-caret {
  width: auto;
  opacity: 1;
  pointer-events: auto;
  overflow: visible;
}
.brand h1 { margin: 0; font-size: 20px; line-height: 1.05; font-weight: 850; letter-spacing: -.045em; }
.brand p { margin: 5px 0 0; color: rgba(255,255,255,.82); font-size: 13px; line-height: 1; }
.sidebar-toggle {
  position: absolute;
  right: 8px;
  top: 11px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--orange);
  background: rgba(255, 255, 255, .04);
}
.sidebar:not(.open) .sidebar-toggle { display: none; }
.sidebar-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.brand-icon { cursor: pointer; }

.nav-list { display: flex; flex-direction: column; gap: 8px; }
.nav-item {
  height: 48px;
  width: 54px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0;
  color: var(--orange);
  text-decoration: none;
  font-size: 15px;
  font-weight: 780;
  letter-spacing: -.018em;
  transition: background .18s ease, color .18s ease, width .22s ease, padding .22s ease, justify-content .22s ease;
}
.sidebar.open .nav-item { width: 100%; justify-content: flex-start; padding: 0 17px; color: rgba(255,255,255,.96); }
.nav-icon { width: 25px; height: 25px; flex: 0 0 25px; display: grid; place-items: center; }
.nav-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.nav-item:hover { background: rgba(255,255,255,.075); }
.nav-item.active {
  background: linear-gradient(180deg, #ff6a00 0%, #ff4d00 100%);
  box-shadow: 0 10px 20px rgba(255, 87, 0, .32);
  color: #fff;
}
.nav-item.active .nav-icon svg { stroke-width: 2.25; }

.manager-card {
  margin-top: auto;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0;
}
.sidebar.open .manager-card { justify-content: flex-start; padding: 0 8px; }
.avatar {
  position: relative;
  width: 41px;
  height: 41px;
  flex: 0 0 41px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d7c52, #ffc065);
  color: white;
  font-weight: 850;
  font-size: 17px;
  box-shadow: 0 0 0 3px rgba(255,255,255,.08);
}
.avatar::after { content: ""; position: absolute; right: -1px; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: #15d16d; border: 3px solid var(--sidebar-2); }
.manager-meta { min-width: 0; line-height: 1.1; white-space: nowrap; }
.manager-meta strong { display:block; font-size:15px; font-weight:800; color:#fff; }
.manager-meta span { display:block; margin-top:6px; font-size:12px; color:rgba(255,255,255,.70); }
.manager-caret { margin-left: auto; border: 0; background: transparent; color: #fff; width: 25px; height: 25px; font-size: 20px; line-height: 1; }

.workspace { min-width: 0; height: 100vh; padding: 20px 30px 18px; overflow: hidden; background: #fff; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 56px; }
.searchbox {
  width: min(100%, 656px);
  height: 56px;
  border: 1px solid #e5e9ef;
  border-radius: 16px;
  display: flex;
  align-items: center;
  padding: 0 14px 0 18px;
  gap: 14px;
  background: #fff;
  box-shadow: 0 7px 17px rgba(18,28,45,.018);
}
.searchbox svg { width: 22px; height: 22px; fill: none; stroke: #0f141a; stroke-width: 2.15; stroke-linecap: round; }
.searchbox input { width: 100%; border: 0; outline: 0; color: var(--text); font-size: 16px; font-weight: 560; background: transparent; }
.searchbox input::placeholder { color: #969eaa; }
.searchbox kbd { min-width: 40px; height: 31px; display: inline-grid; place-items: center; border: 0; border-radius: 9px; background: #f2f4f7; color: #747c88; font-size: 14px; font-weight: 750; }
.header-actions { display:flex; align-items:center; gap:17px; flex-shrink: 0; }
.icon-btn { position: relative; width: 47px; height: 47px; border: 0; border-radius: 50%; background: #f6f7f9; display: grid; place-items: center; color: var(--text); }
.icon-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn.notification { background: #fff; }
.icon-btn.notification span { position: absolute; top: 3px; right: 6px; width: 19px; height: 19px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 11px; line-height: 19px; text-align: center; font-weight: 850; }
.outlet-select { height: 56px; min-width: 229px; border-radius: 16px; border: 1px solid #e5e9ef; background: #fff; color: var(--text); padding: 0 19px 0 22px; display:flex; align-items:center; justify-content:space-between; font-weight: 720; font-size: 16px; box-shadow: 0 8px 17px rgba(18,28,45,.018); }
.outlet-select span { font-size: 18px; color: #333942; }

.content-grid {
  height: calc(100vh - 112px);
  display: grid;
  grid-template-columns: minmax(690px, 1fr) 348px;
  gap: 26px;
  margin-top: 18px;
  align-items: stretch;
}
.menu-panel { min-width: 0; height: 100%; overflow: hidden; }
.category-tabs { display: flex; align-items: center; gap: 16px; height: 49px; white-space: nowrap; overflow: hidden; }
.category-tab { height: 49px; min-width: 82px; padding: 0 22px; border-radius: 11px; border: 1px solid #e6ebf1; background: #fff; color: #111820; font-weight: 760; font-size: 15px; box-shadow: 0 7px 15px rgba(18,28,45,.018); }
.category-tab.active { background: linear-gradient(180deg, #ff6500 0%, #ff4d00 100%); border-color: transparent; color: #fff; box-shadow: 0 11px 23px rgba(255, 88, 0, .18); }

.products-grid {
  height: calc(100% - 66px);
  display: grid;
  grid-template-columns: repeat(4, minmax(152px, 1fr));
  grid-template-rows: repeat(3, minmax(142px, 1fr));
  gap: 14px;
  margin-top: 17px;
  overflow: hidden;
}
.product-card {
  min-height: 0;
  height: 100%;
  position: relative;
  border: 1px solid #e7ebf0;
  border-radius: 14px;
  background: #fff;
  padding: 10px 11px 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(18,28,45,.024);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.product-card:hover { transform: translateY(-2px); border-color: rgba(255, 90, 0, .25); box-shadow: 0 14px 28px rgba(18,28,45,.055); }
.product-img-wrap { height: calc(100% - 52px); min-height: 75px; max-height: 105px; display: grid; place-items: center; margin-bottom: 3px; overflow: visible; }
.product-card img.product-img { max-width: 94%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(12, 18, 27, .10)); }
.product-card[data-slug*="pizza"] img.product-img { max-width: 102%; max-height: 98%; }
.product-card[data-slug*="fries"] img.product-img { max-height: 102%; }
.product-card[data-slug="coca-cola"] img.product-img, .product-card[data-slug="fresh-orange"] img.product-img { max-height: 108%; max-width: 78%; }
.product-card[data-slug="hot-wings"] img.product-img, .product-card[data-slug="chicken-strips"] img.product-img { max-width: 96%; max-height: 98%; }
.product-name { margin-top: auto; font-size: 14px; line-height: 1.07; font-weight: 840; letter-spacing: -.028em; color: #171c23; padding-right: 29px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price { margin-top: 5px; font-size: 13px; line-height: 1; font-weight: 850; color: var(--orange); }
.add-btn { position: absolute; right: 10px; bottom: 12px; width: 25px; height: 25px; border: 0; border-radius: 50%; background: var(--orange); color: #fff; font-size: 21px; line-height: 23px; display: grid; place-items: center; font-weight: 530; box-shadow: 0 7px 13px rgba(255, 88, 0, .22); }
.spicy-badge { position: absolute; top: 12px; left: 12px; height: 26px; padding: 0 9px; border-radius: 7px; background: #ff222c; color: #fff; font-size: 12px; line-height: 26px; font-weight: 850; box-shadow: 0 8px 14px rgba(255,34,44,.17); z-index: 2; }

.cart-panel {
  height: 100%;
  min-height: 0;
  border: 1px solid #e8ecf1;
  border-radius: 15px;
  background: var(--panel);
  padding: 20px 18px 18px;
  box-shadow: 0 13px 35px rgba(18, 28, 45, .035);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cart-head { display:flex; align-items:center; justify-content:space-between; margin-bottom: 12px; flex: 0 0 auto; }
.cart-title-wrap { display:flex; align-items:center; gap: 12px; }
.cart-head h2 { margin:0; font-size: 24px; line-height: 1; letter-spacing:-.04em; font-weight: 900; }
.cart-title-wrap span { height: 29px; min-width: 68px; padding: 0 12px; border-radius: 10px; background: #f2f4f7; color: #59606a; font-size: 13px; display:grid; place-items:center; font-weight: 850; }
.trash-btn { width: 28px; height: 28px; border: 0; background: transparent; color: #ff2020; padding: 0; }
.trash-btn svg { width: 25px; height: 25px; fill:none; stroke:currentColor; stroke-width:2.15; stroke-linecap:round; stroke-linejoin:round; }
.cart-items { border-bottom: 1px solid #edf0f4; flex: 0 1 auto; max-height: 220px; overflow-y: auto; padding-right: 2px; }
.cart-items::-webkit-scrollbar { width: 4px; }
.cart-items::-webkit-scrollbar-thumb { background: #d7dce3; border-radius: 999px; }
.cart-line { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; gap: 10px; padding: 10px 0 12px; border-bottom: 1px solid #edf0f4; }
.cart-line:last-child { border-bottom: 0; }
.item-qty-pill { width: 27px; height: 30px; border-radius: 9px; background: #f3f5f8; display:grid; place-items:center; font-size: 15px; color: #323941; font-weight: 850; }
.cart-item-main { min-width:0; }
.cart-item-main strong { display:block; font-size: 15px; line-height: 1.14; font-weight: 870; color:#1d2229; letter-spacing:-.02em; margin-top: 2px; }
.cart-item-main span { display:block; margin-top:8px; color:#858b95; font-size: 12px; line-height:1; font-weight: 550; }
.cart-item-main span.spicy-text { color:#ff1e25; font-weight:700; }
.cart-item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cart-item-side .line-price { font-size: 14px; font-weight: 760; color:#111820; }
.qty-control { width: 74px; height: 26px; border: 1px solid #e5e9ef; border-radius: 8px; display:grid; grid-template-columns: 1fr 1fr 1fr; align-items:center; overflow:hidden; background:#fff; }
.qty-control button { height:100%; border:0; background:#fff; color:#20252c; font-size:15px; line-height:1; font-weight:750; }
.qty-control span { text-align:center; font-size:13px; font-weight:850; color:#262b32; }
.kitchen-note { display:block; margin: 14px 0 11px; flex: 0 0 auto; }
.kitchen-note input { width:100%; height: 38px; border: 0; border-radius: 9px; outline: 0; background: #f5f6f8; color:#4c535d; padding: 0 13px; font-size: 13px; font-weight: 520; }
.kitchen-note input::placeholder { color:#959ba5; }
.totals { padding: 4px 0 10px; border-bottom: 1px solid #edf0f4; display:flex; flex-direction:column; gap: 8px; flex: 0 0 auto; }
.totals div, .total-row { display:flex; align-items:center; justify-content:space-between; }
.totals span, .totals strong { font-size: 14px; color:#282e36; }
.totals strong { font-weight: 760; }
.total-row { margin: 14px 0 12px; flex: 0 0 auto; }
.total-row span { font-size: 22px; line-height: 1; font-weight: 900; letter-spacing:-.04em; }
.total-row strong { color: var(--orange); font-size: 22px; line-height: 1; font-weight: 900; letter-spacing:-.04em; }
.quick-payment { padding-top: 6px; flex: 0 0 auto; }
.section-label { display:flex; align-items:center; gap:10px; color:#1a1f26; font-size: 12px; font-weight: 900; justify-content:center; }
.section-label span { height:1px; flex:1; background:#edf0f4; }
.payment-methods { display:grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.pay-method { height: 61px; border: 1px solid #e6eaf0; background:#fff; border-radius: 10px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap: 6px; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.pay-method:hover { transform: translateY(-2px); border-color: rgba(255,90,0,.25); }
.pay-method.selected { border-color: var(--orange); background: #fff6f1; box-shadow: 0 8px 16px rgba(255, 90, 0, .08); }
.pay-method small { font-size: 11px; font-weight: 850; color:#121820; }
.mini-icon { width: 24px; height: 24px; display: block; position: relative; }
.cash-icon::before { content:""; position:absolute; inset:5px 2px 6px; border:2px solid #18ba50; border-radius:3px; }
.cash-icon::after { content:""; position:absolute; left:9px; top:9px; width:6px; height:6px; border:2px solid #18ba50; border-radius:50%; }
.mpesa-icon::before { content:""; position:absolute; left:8px; top:1px; width:10px; height:22px; border:2px solid #19b75d; border-radius:3px; }
.mpesa-icon::after { content:""; position:absolute; left:4px; top:10px; width:18px; height:3px; border-radius:2px; background:#fb2b30; transform:rotate(-20deg); }
.card-icon::before { content:""; position:absolute; left:3px; top:5px; width:19px; height:15px; border-radius:4px; background:#18a7ee; }
.card-icon::after { content:""; position:absolute; left:6px; top:10px; width:13px; height:2px; background:#fff; box-shadow: 0 5px 0 rgba(255,255,255,.8); }
.split-icon::before, .split-icon::after, .split-icon i, .split-icon i::before { content:""; position:absolute; width:5px; height:5px; border:2px solid #ff9700; border-radius:50%; }
.split-icon::before { left:4px; top:3px; }
.split-icon::after { right:4px; top:3px; }
.split-icon i { left:4px; bottom:3px; }
.split-icon i::before { left:10px; top:-2px; }
.pay-btn { width:100%; height: 54px; min-height: 54px; border:0; border-radius: 11px; background: linear-gradient(180deg, #ff6400 0%, #ff4e00 100%); color:#fff; font-size: 18px; font-weight: 850; letter-spacing:-.035em; box-shadow: 0 12px 20px rgba(255, 88, 0, .20); flex: 0 0 auto; margin-top: 13px; }
.pay-btn:disabled { background: #e8ecf1; color: #8d96a3; box-shadow: none; cursor: not-allowed; }

.modal { position: fixed; inset: 0; z-index: 100; background: rgba(7, 12, 18, .48); display: none; align-items: center; justify-content: center; padding: 18px; }
.modal.show { display: flex; }
.modal-card { width: min(96vw, 430px); border-radius: 20px; background: #fff; box-shadow: 0 28px 90px rgba(0,0,0,.24); padding: 24px; position: relative; }
.modal-close { position: absolute; top: 14px; right: 14px; border: 0; width: 32px; height: 32px; border-radius: 50%; background: #f3f5f8; font-size: 24px; line-height: 1; color: #1e252e; }
.modal-head { display: flex; align-items: center; gap: 14px; padding-right: 30px; }
.modal-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--orange); color: #fff; font-size: 20px; font-weight: 900; }
.modal-head h3 { margin: 0; font-size: 22px; letter-spacing: -.04em; line-height: 1.05; }
.modal-head p { margin: 7px 0 0; font-size: 13px; color: #7a828e; line-height: 1.35; }
.modal-amount { height: 64px; border-radius: 14px; background: #fff6f1; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; margin: 22px 0 18px; }
.modal-amount span { color: #7a828e; font-size: 13px; font-weight: 750; }
.modal-amount strong { color: var(--orange); font-size: 24px; font-weight: 900; letter-spacing: -.04em; }
.mpesa-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.mpesa-tab { height: 43px; border: 1px solid #e5e9ef; border-radius: 11px; background: #fff; color: #121820; font-weight: 850; }
.mpesa-tab.active { background: var(--orange); color: #fff; border-color: var(--orange); }
.mpesa-pane { display: none; }
.mpesa-pane.active { display: block; }
.modal-card label { display: block; font-size: 13px; color: #4d5560; font-weight: 760; }
.modal-card label input { margin-top: 8px; width: 100%; height: 48px; border: 1px solid #e5e9ef; border-radius: 12px; padding: 0 14px; outline: 0; font-weight: 700; }
.modal-primary { width: 100%; height: 50px; border: 0; border-radius: 12px; background: var(--orange); color: #fff; font-size: 16px; font-weight: 900; margin-top: 14px; }
.modal-note { margin: 12px 0 0; color: #737b87; font-size: 12px; line-height: 1.45; }
.simple-flow { display: none; }
.simple-flow.show { display: block; }
.mpesa-flow.hide { display: none; }

@media (max-height: 735px) {
  .workspace { padding-top: 16px; padding-bottom: 14px; }
  .topbar { height: 54px; }
  .searchbox, .outlet-select { height: 54px; }
  .content-grid { height: calc(100vh - 98px); margin-top: 14px; }
  .category-tabs, .category-tab { height: 46px; }
  .products-grid { height: calc(100% - 60px); margin-top: 14px; gap: 13px; grid-template-rows: repeat(3, minmax(134px, 1fr)); }
  .product-card { padding-top: 8px; padding-bottom: 8px; }
  .product-img-wrap { height: calc(100% - 49px); min-height: 68px; max-height: 92px; }
  .product-name { font-size: 13px; }
  .product-price { font-size: 12px; margin-top: 5px; }
  .cart-panel { padding: 18px 18px 16px; }
  .cart-head { margin-bottom: 9px; }
  .cart-items { max-height: 196px; }
  .cart-line { padding: 8px 0 10px; }
  .cart-item-main strong { font-size: 14px; }
  .cart-item-main span { margin-top: 6px; font-size: 12px; }
  .cart-item-side { gap: 8px; }
  .kitchen-note { margin: 11px 0 9px; }
  .totals { gap: 7px; padding-bottom: 8px; }
  .total-row { margin: 11px 0 10px; }
  .payment-methods { margin-top: 9px; gap: 7px; }
  .pay-method { height: 55px; }
  .pay-btn { height: 50px; min-height: 50px; margin-top: 10px; }
}

@media (max-width: 1180px) {
  .workspace { padding-left: 22px; padding-right: 22px; }
  .content-grid { grid-template-columns: minmax(560px, 1fr) 330px; gap: 18px; }
  .category-tabs { gap: 12px; overflow-x: auto; scrollbar-width: none; }
  .category-tabs::-webkit-scrollbar { display: none; }
  .category-tab { min-width: 78px; padding: 0 18px; }
  .products-grid { gap: 12px; }
}

@media (max-width: 940px) {
  body { overflow: auto; }
  .pos-app { display:block; height:auto; min-height:100vh; overflow:visible; }
  .sidebar { position:sticky; top:0; z-index:50; width:100%; height:70px; min-height:70px; padding:0 14px; flex-direction:row; align-items:center; }
  .sidebar.open { width:100%; }
  .brand { margin:0; height:70px; justify-content:flex-start; gap:12px; padding:0 6px; }
  .brand div { width:auto; opacity:1; overflow:visible; }
  .sidebar-toggle { display: none; }
  .nav-list { flex-direction:row; gap:8px; overflow-x:auto; max-width: calc(100vw - 215px); }
  .nav-item, .sidebar.open .nav-item { width:52px; height:52px; justify-content:center; padding:0; color: var(--orange); }
  .nav-item > span:not(.nav-icon) { display:none; }
  .manager-card { display:none; }
  .workspace { height:auto; min-height:calc(100vh - 70px); padding:18px; overflow:visible; }
  .topbar { height:auto; flex-direction:column; align-items:stretch; gap:14px; }
  .searchbox { width:100%; }
  .header-actions { justify-content:flex-end; }
  .content-grid { height:auto; grid-template-columns:1fr; margin-top:22px; }
  .menu-panel { height:auto; overflow:visible; }
  .products-grid { height:auto; grid-template-columns: repeat(2, minmax(145px, 1fr)); grid-template-rows:auto; overflow: visible; }
  .product-card { min-height: 195px; height: auto; }
  .product-img-wrap { height: 106px; max-height: 106px; }
  .cart-panel { height:auto; min-height:0; overflow: visible; }
  .cart-items { max-height: none; }
}

@media (max-width: 520px) {
  .workspace { padding:14px; }
  .products-grid { gap:12px; }
  .product-card { min-height:184px; padding:10px; }
  .product-img-wrap { height:100px; max-height:100px; }
  .outlet-select { min-width:160px; }
  .cart-panel { padding:18px 14px; }
}


/* --- POS polish update: fixed sizing, scroll zones, category overflow, user dropdown --- */
body { overflow: hidden; }

.sidebar { width: 74px; padding-left: 10px; padding-right: 10px; }
.nav-list {
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 90, 0, .42) transparent;
}
.nav-list::-webkit-scrollbar { width: 4px; }
.nav-list::-webkit-scrollbar-thumb { background: rgba(255, 90, 0, .42); border-radius: 999px; }
.sidebar:not(.open) .nav-item:not(.active) { color: var(--orange); }
.sidebar:not(.open) .nav-item.active { color: #fff; }
.sidebar:not(.open) .manager-card { justify-content: center; }

.workspace {
  padding: 16px 30px 16px;
  overflow: hidden;
}

.topbar {
  height: 56px;
  gap: 22px;
}

.searchbox {
  width: min(100%, 656px);
}

.user-dropdown-wrap {
  position: relative;
  flex-shrink: 0;
}

.user-select {
  height: 56px;
  min-width: 229px;
  border-radius: 16px;
  border: 1px solid #e5e9ef;
  background: #fff;
  color: var(--text);
  padding: 0 18px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 8px 17px rgba(18,28,45,.018);
}

.user-select span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
}

.user-select strong {
  font-size: 16px;
  font-weight: 850;
  letter-spacing: -.025em;
}

.user-select small {
  margin-top: 5px;
  font-size: 12px;
  color: #7f8792;
  font-weight: 650;
}

.user-select b {
  font-size: 18px;
  color: #333942;
  font-weight: 850;
}

.user-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 210px;
  border: 1px solid #e5e9ef;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(18, 28, 45, .12);
  padding: 8px;
  display: none;
  z-index: 60;
}

.user-dropdown-wrap.open .user-menu { display: block; }

.user-menu button {
  width: 100%;
  height: 40px;
  border: 0;
  background: transparent;
  text-align: left;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 750;
  color: #202731;
}

.user-menu button:hover { background: #f6f7f9; }
.user-menu .logout { color: #ff2525; }

.content-grid {
  height: calc(100vh - 96px);
  grid-template-columns: minmax(660px, 1fr) 370px;
  gap: 24px;
  margin-top: 16px;
  overflow: hidden;
}

.menu-panel {
  min-width: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.category-tabs {
  height: 49px;
  flex: 0 0 49px;
  gap: 14px;
  overflow: visible;
  position: relative;
}

.category-tab {
  min-width: 82px;
  height: 49px;
  padding: 0 20px;
  white-space: nowrap;
}

.category-more {
  min-width: 58px;
  width: 58px;
  padding: 0;
  letter-spacing: .08em;
}

.more-categories {
  position: relative;
  flex: 0 0 auto;
}

.category-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 174px;
  background: #fff;
  border: 1px solid #e6ebf1;
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(18, 28, 45, .11);
  padding: 8px;
  z-index: 55;
  display: none;
}

.more-categories.open .category-menu { display: block; }

.category-menu button {
  width: 100%;
  height: 38px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  text-align: left;
  padding: 0 12px;
  font-weight: 770;
  color: #151b22;
}

.category-menu button:hover { background: #f6f7f9; }

.products-grid {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  grid-template-rows: none;
  grid-auto-rows: 166px;
  gap: 13px;
  margin-top: 14px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  align-content: start;
  scrollbar-width: thin;
  scrollbar-color: #d9dee6 transparent;
}

.products-grid::-webkit-scrollbar { width: 5px; }
.products-grid::-webkit-scrollbar-track { background: transparent; }
.products-grid::-webkit-scrollbar-thumb { background: #d9dee6; border-radius: 999px; }

.product-card {
  height: 166px;
  min-height: 166px;
  padding: 10px 11px 12px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 96px 34px 16px;
  row-gap: 2px;
}

.product-card:hover {
  transform: none;
}

.product-img-wrap {
  height: 96px;
  min-height: 96px;
  max-height: 96px;
  width: 100%;
  margin: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.product-card img.product-img {
  max-width: 94%;
  max-height: 92px;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: drop-shadow(0 7px 9px rgba(12, 18, 27, .10));
}

.product-card[data-slug*="burger"] img.product-img { max-height: 88px; max-width: 96%; }
.product-card[data-slug*="pizza"] img.product-img { max-height: 92px; max-width: 100%; }
.product-card[data-slug="french-fries"] img.product-img,
.product-card[data-slug="cheesy-fries"] img.product-img { max-height: 92px; max-width: 90%; }
.product-card[data-slug="coca-cola"] img.product-img,
.product-card[data-slug="fresh-orange"] img.product-img { max-height: 94px; max-width: 66%; }
.product-card[data-slug="hot-wings"] img.product-img,
.product-card[data-slug="chicken-strips"] img.product-img { max-height: 88px; max-width: 94%; }

.product-name {
  margin: 0;
  align-self: end;
  font-size: 14px;
  line-height: 1.08;
  min-height: 31px;
  padding-right: 36px;
  z-index: 2;
}

.product-price {
  margin: 0;
  font-size: 13px;
  line-height: 16px;
  z-index: 2;
}

.add-btn {
  right: 10px;
  bottom: 12px;
  width: 26px;
  height: 26px;
  line-height: 24px;
  font-size: 22px;
  z-index: 5;
}

.spicy-badge {
  top: 11px;
  left: 11px;
  height: 25px;
  line-height: 25px;
}

.cart-panel {
  width: 100%;
  padding: 20px 18px 16px;
  min-width: 0;
}

.cart-head h2 {
  font-size: 24px;
}

.cart-items {
  max-height: 184px;
}

.cart-line {
  grid-template-columns: 29px minmax(0,1fr) auto;
  gap: 10px;
  padding: 10px 0 11px;
}

.kitchen-note {
  margin: 12px 0 10px;
}

.totals {
  gap: 8px;
  padding: 4px 0 10px;
}

.total-row {
  margin: 12px 0 10px;
}

.quick-payment {
  padding-top: 3px;
}

.payment-methods {
  gap: 8px;
  margin-top: 10px;
}

.pay-method {
  height: 54px;
}

.pay-btn {
  height: 53px;
  min-height: 53px;
  margin-top: 12px;
  border-radius: 11px;
}

.modal-card {
  width: min(96vw, 520px);
  padding: 24px;
}

.mpesa-awaiting-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  background: linear-gradient(180deg, #fff7f1, #fff);
  border: 1px solid #ffe0cf;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 14px;
}

.mpesa-awaiting-card div {
  min-width: 0;
}

.mpesa-awaiting-card strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #151b22;
  font-size: 15px;
  font-weight: 900;
}

.mpesa-awaiting-card small {
  display: block;
  color: #68717d;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 5px;
}

.mpesa-awaiting-card b {
  color: var(--orange);
  background: #fff;
  border: 1px solid #ffe0cf;
  height: 38px;
  min-width: 62px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  font-size: 14px;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(255, 90, 0, .36);
  animation: pulse 1.35s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(255, 90, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 0, 0); }
}

.mpesa-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 14px;
}

.mpesa-details div {
  border: 1px solid #e9edf2;
  border-radius: 13px;
  padding: 11px 10px;
  background: #fff;
}

.mpesa-details span {
  display: block;
  color: #777f8b;
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
}

.mpesa-details strong {
  display: block;
  margin-top: 7px;
  font-size: 13px;
  font-weight: 900;
  color: #131920;
}

.mpesa-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.modal-secondary {
  width: 100%;
  height: 50px;
  border: 1px solid #e5e9ef;
  border-radius: 12px;
  background: #fff;
  color: var(--orange);
  font-size: 15px;
  font-weight: 900;
  margin-top: 14px;
}

.stk-inline {
  display: none;
  border-top: 1px solid #edf0f4;
  margin-top: 16px;
  padding-top: 15px;
}

.stk-inline.show {
  display: block;
}

.modal-primary.success {
  background: #11b85d;
}

@media (max-height: 735px) {
  .workspace { padding-top: 12px; padding-bottom: 12px; }
  .topbar { height: 54px; }
  .searchbox, .user-select { height: 54px; }
  .content-grid {
    height: calc(100vh - 86px);
    margin-top: 12px;
    grid-template-columns: minmax(660px, 1fr) 370px;
    gap: 24px;
  }
  .category-tabs, .category-tab { height: 46px; }
  .category-tabs { flex-basis: 46px; }
  .products-grid {
    grid-auto-rows: 150px;
    margin-top: 12px;
    gap: 12px;
  }
  .product-card {
    height: 150px;
    min-height: 150px;
    grid-template-rows: 82px 33px 15px;
    padding: 8px 10px 10px;
  }
  .product-img-wrap {
    height: 82px;
    min-height: 82px;
    max-height: 82px;
  }
  .product-card img.product-img { max-height: 78px; }
  .product-card[data-slug*="burger"] img.product-img { max-height: 76px; }
  .product-card[data-slug*="pizza"] img.product-img { max-height: 80px; }
  .product-card[data-slug="coca-cola"] img.product-img,
  .product-card[data-slug="fresh-orange"] img.product-img { max-height: 80px; max-width: 58%; }
  .product-name { font-size: 13px; min-height: 30px; }
  .product-price { font-size: 12px; line-height: 15px; }
  .add-btn { width: 25px; height: 25px; bottom: 10px; right: 10px; }
  .cart-panel { padding: 18px 18px 14px; }
  .cart-head { margin-bottom: 8px; }
  .cart-items { max-height: 152px; }
  .cart-line { padding: 7px 0 9px; }
  .cart-item-main strong { font-size: 14px; }
  .cart-item-main span { margin-top: 5px; }
  .kitchen-note { margin: 9px 0 8px; }
  .totals { gap: 6px; padding-bottom: 7px; }
  .total-row { margin: 9px 0 8px; }
  .payment-methods { margin-top: 8px; }
  .pay-method { height: 52px; }
  .pay-btn { height: 50px; min-height: 50px; margin-top: 10px; }
}

@media (max-width: 1220px) {
  .workspace { padding-left: 22px; padding-right: 22px; }
  .content-grid { grid-template-columns: minmax(560px, 1fr) 358px; gap: 18px; }
  .category-tabs { gap: 12px; overflow-x: auto; overflow-y: visible; scrollbar-width: none; }
  .category-tabs::-webkit-scrollbar { display: none; }
  .category-tab { min-width: 78px; padding: 0 18px; }
  .products-grid { grid-template-columns: repeat(4, minmax(135px, 1fr)); gap: 12px; }
}

@media (max-width: 940px) {
  body { overflow: auto; }
  .content-grid { grid-template-columns: 1fr; }
  .products-grid { height: auto; overflow: visible; grid-template-columns: repeat(2, minmax(145px, 1fr)); }
  .product-card { height: 184px; min-height: 184px; grid-template-rows: 108px 36px 16px; }
  .product-img-wrap { height: 108px; min-height: 108px; max-height: 108px; }
  .product-card img.product-img { max-height: 104px; }
  .mpesa-details { grid-template-columns: 1fr; }
  .mpesa-actions { grid-template-columns: 1fr; }
}

.empty-products {
  grid-column: 1 / -1;
  height: 170px;
  border: 1px dashed #dfe5ec;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #7b8491;
  font-weight: 750;
}


/* --- Final product-card and cart-bottom polish --- */
.content-grid {
  overflow: hidden;
}

.menu-panel {
  overflow: hidden;
}

.products-grid {
  grid-auto-rows: 192px !important;
  gap: 14px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding-right: 8px !important;
  padding-bottom: 10px !important;
  align-content: start !important;
}

.product-card {
  height: 192px !important;
  min-height: 192px !important;
  padding: 12px 12px 13px !important;
  display: grid !important;
  grid-template-rows: 123px 34px 17px !important;
  row-gap: 2px !important;
  overflow: hidden !important;
}

.product-img-wrap {
  height: 123px !important;
  min-height: 123px !important;
  max-height: 123px !important;
  margin: 0 !important;
  overflow: hidden !important;
  display: grid !important;
  place-items: center !important;
}

.product-card img.product-img {
  max-width: 88% !important;
  max-height: 112px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center !important;
}

.product-card[data-slug*="burger"] img.product-img {
  max-width: 86% !important;
  max-height: 108px !important;
}

.product-card[data-slug*="pizza"] img.product-img {
  max-width: 92% !important;
  max-height: 112px !important;
}

.product-card[data-slug="french-fries"] img.product-img,
.product-card[data-slug="cheesy-fries"] img.product-img {
  max-width: 76% !important;
  max-height: 116px !important;
}

.product-card[data-slug="coca-cola"] img.product-img,
.product-card[data-slug="fresh-orange"] img.product-img {
  max-width: 52% !important;
  max-height: 116px !important;
}

.product-card[data-slug="hot-wings"] img.product-img,
.product-card[data-slug="chicken-strips"] img.product-img {
  max-width: 82% !important;
  max-height: 106px !important;
}

.product-name {
  align-self: end !important;
  margin: 0 !important;
  min-height: 32px !important;
  max-height: 32px !important;
  font-size: 14px !important;
  line-height: 1.12 !important;
  padding-right: 36px !important;
  overflow: hidden !important;
}

.product-price {
  margin: 0 !important;
  height: 17px !important;
  font-size: 13px !important;
  line-height: 17px !important;
}

.add-btn {
  right: 10px !important;
  bottom: 13px !important;
  width: 27px !important;
  height: 27px !important;
  font-size: 22px !important;
  line-height: 27px !important;
  display: grid !important;
  place-items: center !important;
  z-index: 6 !important;
}

.cart-panel {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  min-height: 0 !important;
}

.cart-head {
  flex: 0 0 auto !important;
}

.cart-items {
  flex: 1 1 auto !important;
  min-height: 150px !important;
  max-height: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  border-bottom: 1px solid #edf0f4 !important;
  padding-right: 5px !important;
}

.kitchen-note,
.totals,
.total-row,
.quick-payment,
.pay-btn {
  flex: 0 0 auto !important;
}

.kitchen-note {
  margin-top: 12px !important;
}

.totals {
  padding-top: 4px !important;
}

.total-row {
  margin-top: 12px !important;
}

.quick-payment {
  padding-top: 4px !important;
}

.pay-btn {
  margin-top: 12px !important;
}

@media (max-height: 735px) {
  .products-grid {
    grid-auto-rows: 184px !important;
    gap: 13px !important;
    padding-bottom: 12px !important;
  }

  .product-card {
    height: 184px !important;
    min-height: 184px !important;
    grid-template-rows: 116px 34px 16px !important;
    padding: 11px 11px 12px !important;
  }

  .product-img-wrap {
    height: 116px !important;
    min-height: 116px !important;
    max-height: 116px !important;
  }

  .product-card img.product-img {
    max-height: 106px !important;
  }

  .product-card[data-slug*="burger"] img.product-img {
    max-height: 102px !important;
  }

  .product-card[data-slug*="pizza"] img.product-img {
    max-height: 106px !important;
  }

  .product-card[data-slug="french-fries"] img.product-img,
  .product-card[data-slug="cheesy-fries"] img.product-img {
    max-height: 110px !important;
  }

  .product-card[data-slug="coca-cola"] img.product-img,
  .product-card[data-slug="fresh-orange"] img.product-img {
    max-height: 110px !important;
    max-width: 50% !important;
  }

  .product-name {
    font-size: 13.5px !important;
    min-height: 32px !important;
    max-height: 32px !important;
  }

  .product-price {
    font-size: 12.5px !important;
  }

  .cart-items {
    min-height: 135px !important;
  }
}

@media (max-width: 1220px) {
  .products-grid {
    grid-template-columns: repeat(4, minmax(148px, 1fr)) !important;
  }
}

@media (max-width: 940px) {
  .products-grid {
    overflow: visible !important;
    grid-auto-rows: auto !important;
  }

  .product-card {
    height: 198px !important;
    min-height: 198px !important;
    grid-template-rows: 126px 36px 17px !important;
  }

  .product-img-wrap {
    height: 126px !important;
    min-height: 126px !important;
    max-height: 126px !important;
  }
}


/* --- Cart width / center gap / product price visibility final adjustment --- */
.content-grid {
  grid-template-columns: minmax(650px, 1fr) 392px !important;
  gap: 14px !important;
}

.products-grid {
  padding-right: 6px !important;
}

.product-card {
  grid-template-rows: 119px 30px 18px !important;
}

.product-img-wrap {
  height: 119px !important;
  min-height: 119px !important;
  max-height: 119px !important;
}

.product-card img.product-img {
  max-height: 108px !important;
}

.product-card[data-slug*="burger"] img.product-img {
  max-height: 104px !important;
}

.product-card[data-slug*="pizza"] img.product-img {
  max-height: 108px !important;
}

.product-card[data-slug="french-fries"] img.product-img,
.product-card[data-slug="cheesy-fries"] img.product-img {
  max-height: 110px !important;
}

.product-card[data-slug="coca-cola"] img.product-img,
.product-card[data-slug="fresh-orange"] img.product-img {
  max-height: 110px !important;
}

.product-name {
  min-height: 28px !important;
  max-height: 30px !important;
  align-self: end !important;
}

.product-price {
  margin-top: -1px !important;
  height: 18px !important;
  line-height: 16px !important;
  align-self: start !important;
}

.cart-panel {
  max-width: none !important;
}

@media (max-height: 735px) {
  .content-grid {
    grid-template-columns: minmax(650px, 1fr) 392px !important;
    gap: 14px !important;
  }

  .product-card {
    grid-template-rows: 111px 30px 17px !important;
  }

  .product-img-wrap {
    height: 111px !important;
    min-height: 111px !important;
    max-height: 111px !important;
  }

  .product-card img.product-img {
    max-height: 101px !important;
  }

  .product-card[data-slug*="burger"] img.product-img {
    max-height: 98px !important;
  }

  .product-card[data-slug*="pizza"] img.product-img {
    max-height: 101px !important;
  }

  .product-card[data-slug="french-fries"] img.product-img,
  .product-card[data-slug="cheesy-fries"] img.product-img {
    max-height: 104px !important;
  }

  .product-card[data-slug="coca-cola"] img.product-img,
  .product-card[data-slug="fresh-orange"] img.product-img {
    max-height: 104px !important;
  }
}

@media (max-width: 1220px) {
  .content-grid {
    grid-template-columns: minmax(545px, 1fr) 378px !important;
    gap: 12px !important;
  }
}

@media (max-width: 940px) {
  .content-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
}


/* =========================================================
   Orders page
   ========================================================= */
.orders-app {
  background: #fff;
}

.orders-workspace {
  padding: 22px 30px 18px;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.orders-topbar {
  flex: 0 0 auto;
}

.orders-searchbox {
  width: min(100%, 690px);
}

.orders-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-top: 26px;
  flex: 0 0 auto;
}

.orders-head-row h1 {
  margin: 0;
  color: #111820;
  font-size: 29px;
  line-height: 1;
  font-weight: 920;
  letter-spacing: -.055em;
}

.orders-head-row p {
  margin: 8px 0 0;
  color: #566178;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 520;
}

.orders-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tool-select,
.tool-icon {
  height: 46px;
  border: 1px solid #e6ebf1;
  background: #fff;
  border-radius: 12px;
  color: #111820;
  box-shadow: 0 7px 17px rgba(18,28,45,.018);
}

.tool-select {
  min-width: 156px;
  padding: 0 14px 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.tool-select svg,
.tool-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool-icon {
  width: 46px;
  display: grid;
  place-items: center;
}

.orders-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 20px;
  margin-top: 26px;
  flex: 0 0 auto;
}

.order-stat-card {
  min-height: 118px;
  border: 1px solid #e8ecf1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 13px 34px rgba(18,28,45,.032);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
}

.stat-icon {
  width: 45px;
  height: 45px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: 0 0 45px;
}

.stat-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat-orange { color: var(--orange); background: #fff3ec; }
.stat-amber { color: #ff9f00; background: #fff8eb; }
.stat-purple { color: #7b35ff; background: #f5eeff; }
.stat-red { color: #ff242b; background: #fff0f1; }

.order-stat-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.05;
  font-weight: 760;
  color: #262d36;
}

.order-stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 29px;
  line-height: 1;
  font-weight: 930;
  letter-spacing: -.055em;
  color: #10161e;
}

.order-stat-card small {
  display: block;
  margin-top: 14px;
  font-size: 14px;
  color: #596276;
  line-height: 1;
  font-weight: 650;
}

.order-stat-card small.positive {
  color: #07b950;
}

.order-stat-card small.negative {
  color: #ff222c;
}

.order-stat-card small em {
  color: #596276;
  font-style: normal;
  font-weight: 560;
}

.orders-filter-bar {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex: 0 0 auto;
}

.order-type-filters,
.status-filters {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.order-filter,
.status-filter {
  height: 39px;
  border-radius: 10px;
  border: 1px solid #e6ebf1;
  background: #fff;
  color: #111820;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.order-filter.active {
  background: linear-gradient(180deg, #ff6500 0%, #ff4d00 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(255, 88, 0, .18);
}

.status-filter.active {
  color: var(--orange);
  border-color: var(--orange);
  min-width: 86px;
}

.status-filter.pending-soft {
  background: #fff6ee;
  color: #ff6200;
  border-color: transparent;
}

.status-filter.complete-soft {
  background: #f5edff;
  color: #7433ff;
  border-color: transparent;
}

.status-filter.cancel-soft {
  background: #fff0f1;
  color: #ff2028;
  border-color: transparent;
}

.orders-table-card {
  margin-top: 18px;
  min-height: 0;
  flex: 1 1 auto;
  border: 1px solid #e7ebf0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 13px 35px rgba(18,28,45,.032);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.orders-table-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.orders-table {
  width: 100%;
  min-width: 1000px;
  border-collapse: separate;
  border-spacing: 0;
}

.orders-table thead th {
  height: 54px;
  color: #151b22;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: -.015em;
  text-align: left;
  padding: 0 18px;
  border-bottom: 1px solid #edf0f4;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 3;
}

.orders-table thead th.check-col {
  width: 60px;
  text-align: center;
}

.orders-table tbody tr {
  height: 73px;
  position: relative;
}

.orders-table tbody td {
  padding: 0 18px;
  border-bottom: 1px solid #edf0f4;
  vertical-align: middle;
  color: #121820;
}

.orders-table tbody tr.selected {
  background: linear-gradient(90deg, rgba(255, 91, 0, .055), rgba(255,255,255,.9));
  outline: 1.5px solid rgba(255, 90, 0, .82);
  outline-offset: -1.5px;
}

.orders-table tbody tr.selected td:first-child {
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}

.orders-table tbody tr.selected td:last-child {
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
}

.order-check {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.7px solid #dce3eb;
  display: inline-grid;
  place-items: center;
  background: #fff;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.order-check.checked {
  border-color: transparent;
  background: var(--orange);
}

.order-check.checked::before {
  content: "✓";
  line-height: 1;
}

.order-id strong,
.customer-name,
.order-kind,
.order-items,
.order-amount {
  display: block;
  font-size: 14px;
  line-height: 1.08;
  font-weight: 850;
  letter-spacing: -.018em;
  color: #151b22;
}

.order-id span,
.customer-phone,
.order-sub {
  display: block;
  margin-top: 7px;
  color: #536078;
  font-size: 13px;
  line-height: 1;
  font-weight: 550;
}

.order-type-cell {
  display: flex;
  align-items: center;
  gap: 14px;
}

.order-mode-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 30px;
}

.order-mode-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.05;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mode-dine { color: var(--orange); }
.mode-takeaway { color: #0fc65c; }
.mode-delivery { color: var(--orange); }
.mode-online { color: #7b35ff; }

.status-pill {
  height: 29px;
  min-width: 82px;
  padding: 0 13px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 850;
}

.status-pending {
  color: #ff5a00;
  background: #fff6ee;
  border: 1px solid #ffe1ce;
}

.status-completed {
  color: #7433ff;
  background: #f5edff;
  border: 1px solid #eadbff;
}

.status-cancelled {
  color: #ff2028;
  background: #fff0f1;
  border: 1px solid #ffd8dc;
}

.orders-pagination {
  min-height: 54px;
  padding: 0 18px;
  border-top: 1px solid #edf0f4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex: 0 0 auto;
}

.orders-pagination p {
  margin: 0;
  color: #536078;
  font-size: 13px;
  font-weight: 560;
}

.pager {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pager button,
.pager span {
  min-width: 32px;
  height: 32px;
  border: 1px solid #e5e9ef;
  background: #fff;
  color: #3f4855;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 760;
}

.pager button.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  box-shadow: 0 8px 16px rgba(255,90,0,.18);
}

.pager span {
  border-color: transparent;
}

@media (max-height: 760px) {
  .orders-workspace {
    padding-top: 16px;
    padding-bottom: 14px;
  }

  .orders-head-row {
    margin-top: 18px;
  }

  .orders-summary-grid {
    margin-top: 20px;
    gap: 16px;
  }

  .order-stat-card {
    min-height: 104px;
    padding: 18px 20px;
  }

  .orders-filter-bar {
    margin-top: 18px;
  }

  .orders-table-card {
    margin-top: 14px;
  }

  .orders-table tbody tr {
    height: 65px;
  }

  .orders-table thead th {
    height: 50px;
  }

  .orders-pagination {
    min-height: 48px;
  }
}

@media (max-width: 1180px) {
  .orders-workspace {
    padding-left: 22px;
    padding-right: 22px;
  }

  .orders-summary-grid {
    gap: 14px;
  }

  .order-stat-card {
    padding: 18px 16px;
    gap: 14px;
  }

  .orders-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .order-type-filters,
  .status-filters {
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .order-type-filters::-webkit-scrollbar,
  .status-filters::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 940px) {
  .orders-workspace {
    height: auto;
    min-height: calc(100vh - 70px);
    overflow: visible;
  }

  .orders-head-row {
    flex-direction: column;
    align-items: stretch;
  }

  .orders-tools {
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .orders-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .orders-table-card {
    min-height: 620px;
  }

  .orders-pagination {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 16px;
  }
}

@media (max-width: 560px) {
  .orders-summary-grid {
    grid-template-columns: 1fr;
  }

  .tool-select {
    min-width: 145px;
  }
}


/* =========================================================
   Orders page refined production polish
   - normal page scroll
   - no vertical inner table scrollbar
   - sharper order icons/listing flow
   - order details modal
   ========================================================= */

body:has(.orders-app) {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  background: #fff;
}

.orders-app {
  min-height: 100vh !important;
  height: auto !important;
  overflow: visible !important;
  align-items: stretch;
}

.orders-workspace {
  min-height: 100vh !important;
  height: auto !important;
  overflow: visible !important;
  padding: 22px 30px 24px !important;
}

.orders-head-row {
  margin-top: 24px !important;
}

.orders-summary-grid {
  margin-top: 24px !important;
  gap: 20px !important;
}

.order-stat-card {
  min-height: 116px !important;
  border-color: #e8edf3 !important;
  box-shadow: 0 14px 36px rgba(18, 28, 45, .028) !important;
}

.order-stat-card:hover {
  border-color: rgba(255, 90, 0, .20);
  box-shadow: 0 18px 46px rgba(18, 28, 45, .045) !important;
}

.orders-table-card {
  flex: 0 0 auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  border-radius: 16px !important;
}

.orders-table-scroll {
  overflow: visible !important;
  min-height: 0 !important;
}

.orders-table {
  min-width: 0 !important;
  width: 100% !important;
}

.orders-table thead th {
  position: static !important;
  height: 52px !important;
  background: #fff !important;
}

.orders-table tbody tr {
  height: 69px !important;
  cursor: pointer;
  transition: background .16s ease, box-shadow .16s ease;
}

.orders-table tbody tr:hover {
  background: #fffaf6;
}

.orders-table tbody tr.selected {
  background: linear-gradient(90deg, rgba(255, 91, 0, .055), rgba(255,255,255,.9)) !important;
  outline: 1.5px solid rgba(255, 90, 0, .82) !important;
}

.orders-table tbody td {
  padding: 0 18px !important;
}

.orders-table tbody td:first-child,
.orders-table thead th:first-child {
  padding-left: 20px !important;
}

.order-check {
  width: 19px !important;
  height: 19px !important;
}

.order-mode-icon {
  border-radius: 11px;
  background: transparent;
}

.order-mode-icon svg {
  width: 27px !important;
  height: 27px !important;
}

.status-pill {
  min-width: 84px !important;
  height: 28px !important;
  font-size: 12px !important;
}

.orders-pagination {
  min-height: 58px !important;
  background: #fff;
}

.pager button {
  cursor: pointer;
}

.orders-table-card + * {
  margin-top: 0;
}

/* Slightly richer visual balance like the provided target */
.orders-searchbox {
  max-width: 690px;
}

.orders-tools {
  margin-bottom: 0;
}

.tool-select,
.tool-icon,
.order-filter,
.status-filter,
.orders-table-card,
.order-stat-card {
  backdrop-filter: blur(10px);
}

/* Order details modal */
.order-details-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 11, 16, .54);
  padding: 18px;
}

.order-details-modal.show {
  display: flex;
}

.order-details-card {
  width: min(96vw, 760px);
  max-height: min(92vh, 820px);
  overflow-y: auto;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 32px 95px rgba(0, 0, 0, .28);
  padding: 24px;
  position: relative;
}

.order-details-card::-webkit-scrollbar {
  width: 6px;
}

.order-details-card::-webkit-scrollbar-thumb {
  background: #dce2ea;
  border-radius: 999px;
}

.order-details-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f3f5f8;
  color: #1d242d;
  font-size: 25px;
  line-height: 1;
}

.order-details-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-right: 42px;
}

.details-kicker {
  display: inline-flex;
  height: 25px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff3ec;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
}

.order-details-head h2 {
  margin: 12px 0 0;
  color: #111820;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -.055em;
  font-weight: 950;
}

.order-details-head p {
  margin: 8px 0 0;
  color: #657084;
  font-size: 14px;
  font-weight: 580;
}

.details-status {
  height: 32px;
  min-width: 94px;
  border-radius: 9px;
  display: inline-grid;
  place-items: center;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 900;
}

.details-status.status-pending {
  background: #fff6ee;
  border: 1px solid #ffe1ce;
  color: #ff5a00;
}

.details-status.status-completed {
  background: #f5edff;
  border: 1px solid #eadbff;
  color: #7433ff;
}

.details-status.status-cancelled {
  background: #fff0f1;
  border: 1px solid #ffd8dc;
  color: #ff2028;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}

.details-panel {
  border: 1px solid #e8edf3;
  border-radius: 16px;
  background: #fff;
  padding: 16px;
}

.details-panel h3 {
  margin: 0 0 14px;
  color: #111820;
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.025em;
}

.details-info-row,
.details-totals div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-top: 1px solid #edf0f4;
}

.details-info-row:first-of-type,
.details-totals div:first-child {
  border-top: 0;
  padding-top: 0;
}

.details-info-row span,
.details-totals span,
.details-note span {
  color: #798292;
  font-size: 13px;
  font-weight: 650;
}

.details-info-row strong,
.details-totals strong {
  color: #111820;
  font-size: 14px;
  font-weight: 880;
  text-align: right;
}

.details-items-panel {
  margin-top: 14px;
}

.details-items {
  display: grid;
  gap: 9px;
}

.details-item {
  height: 48px;
  border-radius: 12px;
  background: #f8fafc;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
}

.details-item .item-count {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
}

.details-item strong {
  color: #141a22;
  font-size: 14px;
  font-weight: 850;
}

.details-item span:last-child {
  color: #111820;
  font-size: 14px;
  font-weight: 880;
}

.details-totals-panel {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 18px;
  align-items: start;
}

.details-note p {
  margin: 8px 0 0;
  color: #212832;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 620;
}

.details-grand {
  border-top: 1px solid #e7ebf0 !important;
  padding-top: 12px !important;
  margin-top: 4px;
}

.details-grand span,
.details-grand strong {
  font-size: 18px !important;
  color: #111820 !important;
  font-weight: 930 !important;
}

.details-grand strong {
  color: var(--orange) !important;
}

.details-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.timeline-step {
  border: 1px solid #e8edf3;
  border-radius: 15px;
  padding: 14px;
  background: #fff;
  position: relative;
}

.timeline-step span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d9dee6;
  display: block;
  margin-bottom: 10px;
}

.timeline-step.done span {
  background: #0fc65c;
}

.timeline-step.current span {
  background: var(--orange);
  box-shadow: 0 0 0 7px rgba(255, 90, 0, .10);
}

.timeline-step strong {
  display: block;
  color: #111820;
  font-size: 13px;
  font-weight: 880;
}

.timeline-step small {
  display: block;
  margin-top: 6px;
  color: #778190;
  font-size: 12px;
  font-weight: 650;
}

.details-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 10px;
  margin-top: 16px;
}

.details-primary,
.details-secondary {
  height: 48px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 900;
}

.details-primary {
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, #ff6500 0%, #ff4d00 100%);
  box-shadow: 0 13px 24px rgba(255, 88, 0, .18);
}

.details-secondary {
  border: 1px solid #e6ebf1;
  background: #fff;
  color: #151b22;
}

@media (max-width: 1180px) {
  .orders-table {
    min-width: 1000px !important;
  }

  .orders-table-scroll {
    overflow-x: auto !important;
    overflow-y: visible !important;
  }
}

@media (max-width: 760px) {
  .details-grid,
  .details-totals-panel,
  .details-timeline,
  .details-actions {
    grid-template-columns: 1fr;
  }

  .order-details-card {
    padding: 20px;
  }
}

/* Shared long-page fixes */
body:has(.orders-app), body:has(.inventory-app){overflow-y:auto!important;overflow-x:hidden!important;background:#fff}
.orders-app,.inventory-app{min-height:100vh!important;height:auto!important;overflow:visible!important;align-items:stretch}
.orders-app .sidebar,.inventory-app .sidebar{position:sticky!important;top:0!important;align-self:start!important;height:100vh!important;min-height:100vh!important}
.orders-workspace,.inventory-workspace{min-height:100vh!important;height:auto!important;overflow:visible!important}
.orders-table-scroll,.orders-table-card{overflow:visible!important}
.orders-table thead th{position:static!important}
.orders-table tbody tr{cursor:pointer}
.orders-table tbody tr:hover{background:#fffaf6}
@media (max-width:940px){.orders-app .sidebar,.inventory-app .sidebar{position:sticky!important;top:0!important;height:70px!important;min-height:70px!important}}

/* Inventory page */
.inventory-workspace{padding:22px 30px 24px!important;display:flex;flex-direction:column}
.inventory-searchbox{width:min(100%,690px)}
.inventory-head-row{display:flex;align-items:flex-end;justify-content:space-between;gap:22px;margin-top:26px}
.inventory-head-row h1{margin:0;color:#111820;font-size:29px;line-height:1;font-weight:920;letter-spacing:-.055em}
.inventory-head-row p{margin:8px 0 0;color:#566178;font-size:15px;line-height:1.2;font-weight:520}
.inventory-actions{display:flex;align-items:center;gap:12px}
.add-item-btn{height:46px;min-width:121px;border:0;border-radius:12px;background:linear-gradient(180deg,#ff6500 0%,#ff4d00 100%);color:#fff;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-size:14px;font-weight:880;box-shadow:0 12px 22px rgba(255,90,0,.18)}
.add-item-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round}
.inventory-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(170px,1fr));gap:20px;margin-top:26px}
.inventory-stat-card{min-height:118px;border:1px solid #e8ecf1;border-radius:16px;background:#fff;box-shadow:0 13px 34px rgba(18,28,45,.032);display:flex;align-items:center;gap:20px;padding:22px 24px}
.inventory-stat-card:hover{border-color:rgba(255,90,0,.2);box-shadow:0 18px 46px rgba(18,28,45,.045)}
.inventory-stat-icon{width:50px;height:50px;border-radius:50%;display:grid;place-items:center;flex:0 0 50px}
.inventory-stat-icon svg{width:31px;height:31px;fill:none;stroke:currentColor;stroke-width:2.15;stroke-linecap:round;stroke-linejoin:round}
.inv-blue{color:#1d84ff;background:#eaf3ff}.inv-amber{color:#ff9f00;background:#fff1db}.inv-red{color:#ff2832;background:#ffe7e9}.inv-purple{color:#8439ff;background:#f0e6ff}
.inventory-stat-card p{margin:0;font-size:14px;line-height:1.05;font-weight:760;color:#262d36}.inventory-stat-card strong{display:block;margin-top:8px;font-size:29px;line-height:1;font-weight:930;letter-spacing:-.055em;color:#10161e}.inventory-stat-card small{display:block;margin-top:15px;font-size:13px;color:#596276;line-height:1;font-weight:560}
.inventory-filter-bar{margin-top:24px;display:flex;align-items:center;justify-content:space-between;gap:22px}
.inventory-category-filters,.inventory-status-filters{display:flex;align-items:center;gap:10px;min-width:0}
.inventory-filter,.inv-status-filter{height:41px;border-radius:10px;border:1px solid #e6ebf1;background:#fff;color:#111820;padding:0 16px;font-size:13px;font-weight:800;white-space:nowrap}
.inventory-filter.active{background:linear-gradient(180deg,#ff6500 0%,#ff4d00 100%);color:#fff;border-color:transparent;box-shadow:0 10px 20px rgba(255,88,0,.18)}
.inv-status-filter.active{color:var(--orange);background:#fff6ee;border-color:transparent}.in-stock-soft{background:#ecfff4;color:#08a94c;border-color:transparent}.low-stock-soft{background:#fff6ee;color:#ff6200;border-color:transparent}.out-stock-soft{background:#fff0f1;color:#ff2028;border-color:transparent}
.inventory-table-card{margin-top:22px;border:1px solid #e7ebf0;border-radius:16px;background:#fff;box-shadow:0 13px 35px rgba(18,28,45,.032);overflow:hidden}
.inventory-table-wrap{overflow:visible}.inventory-table{width:100%;min-width:1080px;border-collapse:separate;border-spacing:0}
.inventory-table thead th{height:54px;color:#151b22;font-size:13px;font-weight:850;letter-spacing:-.015em;text-align:left;padding:0 16px;border-bottom:1px solid #edf0f4;background:#fff}.inventory-table thead th.check-col{width:58px;text-align:center}
.inventory-table tbody tr{height:58px;cursor:pointer;transition:background .16s ease}.inventory-table tbody tr:hover{background:#fffaf6}.inventory-table tbody tr.selected{background:linear-gradient(90deg,rgba(255,91,0,.055),rgba(255,255,255,.9));outline:1.5px solid rgba(255,90,0,.82);outline-offset:-1.5px}
.inventory-table tbody td{padding:0 16px;border-bottom:1px solid #edf0f4;vertical-align:middle;color:#121820;font-size:13px;font-weight:560}
.inventory-name,.inventory-sku,.inventory-category,.inventory-qty,.inventory-cost,.inventory-price,.inventory-updated{font-size:14px;line-height:1.1;color:#152033}.inventory-name{font-weight:840;color:#111820}.inventory-sku,.inventory-category,.inventory-qty,.inventory-updated{color:#3f4e68;font-weight:620}.inventory-cost,.inventory-price{font-weight:780}
.inv-pill{min-width:84px;height:27px;padding:0 12px;border-radius:8px;display:inline-grid;place-items:center;font-size:12px;font-weight:860}.status-in-stock{color:#08a94c;background:#ecfff4;border:1px solid #cef6df}.status-low-stock{color:#ff6200;background:#fff6ee;border:1px solid #ffe1ce}.status-out-of-stock{color:#ff2028;background:#fff0f1;border:1px solid #ffd8dc}
.inventory-pagination{min-height:58px;padding:0 18px;border-top:1px solid #edf0f4;display:flex;align-items:center;justify-content:space-between;gap:20px}.inventory-pagination p{margin:0;color:#536078;font-size:13px;font-weight:560}
.inventory-modal{position:fixed;inset:0;z-index:210;display:none;align-items:center;justify-content:center;background:rgba(5,11,16,.54);padding:18px}.inventory-modal.show{display:flex}.inventory-modal-card{width:min(96vw,650px);background:#fff;border-radius:22px;box-shadow:0 32px 95px rgba(0,0,0,.28);padding:24px;position:relative}.inventory-modal-close{position:absolute;top:16px;right:16px;width:34px;height:34px;border:0;border-radius:50%;background:#f3f5f8;color:#1d242d;font-size:25px;line-height:1}
.inventory-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-right:42px}.inventory-modal-head span{display:inline-flex;height:25px;align-items:center;padding:0 10px;border-radius:999px;background:#fff3ec;color:var(--orange);font-size:12px;font-weight:900}.inventory-modal-head h2{margin:12px 0 0;color:#111820;font-size:29px;line-height:1;letter-spacing:-.055em;font-weight:950}.inventory-modal-head p{margin:8px 0 0;color:#657084;font-size:14px;font-weight:580}
.inventory-details-grid{margin-top:22px;display:grid;grid-template-columns:1fr 1fr;gap:14px}.inventory-details-grid section{border:1px solid #e8edf3;border-radius:16px;padding:16px}.inventory-details-grid h3{margin:0 0 14px;color:#111820;font-size:15px;line-height:1;font-weight:900}.inventory-details-grid section div{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:9px 0;border-top:1px solid #edf0f4}.inventory-details-grid section div:first-of-type{border-top:0;padding-top:0}.inventory-details-grid span{color:#798292;font-size:13px;font-weight:650}.inventory-details-grid strong{color:#111820;font-size:14px;font-weight:880;text-align:right}
.inventory-stock-actions{display:grid;grid-template-columns:1fr 1fr 1.2fr;gap:10px;margin-top:16px}.inventory-stock-actions button{height:48px;border-radius:12px;border:1px solid #e6ebf1;background:#fff;color:#151b22;font-size:14px;font-weight:900}.inventory-stock-actions button.primary{border:0;color:#fff;background:linear-gradient(180deg,#ff6500 0%,#ff4d00 100%);box-shadow:0 13px 24px rgba(255,88,0,.18)}
@media (max-width:1180px){.inventory-workspace{padding-left:22px;padding-right:22px}.inventory-summary-grid{gap:14px}.inventory-stat-card{padding:18px 16px;gap:14px}.inventory-filter-bar{flex-direction:column;align-items:stretch}.inventory-category-filters,.inventory-status-filters,.inventory-actions{overflow-x:auto;padding-bottom:2px;scrollbar-width:none}.inventory-category-filters::-webkit-scrollbar,.inventory-status-filters::-webkit-scrollbar,.inventory-actions::-webkit-scrollbar{display:none}.inventory-table-wrap{overflow-x:auto}}
@media (max-width:940px){.inventory-head-row{flex-direction:column;align-items:stretch}.inventory-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.inventory-details-grid,.inventory-stock-actions{grid-template-columns:1fr}}
@media (max-width:560px){.inventory-summary-grid{grid-template-columns:1fr}}
