:root {
  --ink: #20241e;
  --muted: #74796f;
  --faint: #9da297;
  --line: #e7e6df;
  --canvas: #f4f3ee;
  --panel: #ffffff;
  --soft: #f8f7f3;
  --brand: #315c4b;
  --brand-2: #234638;
  --brand-soft: #e7f0eb;
  --orange: #e76f35;
  --orange-soft: #fff0e8;
  --yellow: #e7a933;
  --yellow-soft: #fff6dd;
  --red: #c94b4b;
  --red-soft: #fdeaea;
  --blue: #5276a5;
  --blue-soft: #eaf1f8;
  --shadow: 0 12px 35px rgba(39, 46, 38, .07);
  --sidebar: 246px;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin-top: 0; }
.svg-sprite { width: 0; height: 0; position: absolute; overflow: hidden; }
.icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.icon.sm { width: 16px; height: 16px; }
.icon.lg { width: 23px; height: 23px; }
.hidden { display: none !important; }

/* Login */
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(440px, .88fr) minmax(500px, 1.12fr); background: #f7f6f2; }
.login-panel { display: flex; flex-direction: column; padding: 42px clamp(42px, 7vw, 104px); position: relative; z-index: 2; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-family: Manrope, sans-serif; font-weight: 800; font-size: 20px; letter-spacing: -.5px; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--brand); color: white; font-size: 20px; box-shadow: 0 8px 20px rgba(49, 92, 75, .22); }
.login-copy { margin: auto 0 26px; max-width: 530px; }
.eyebrow { color: var(--orange); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: 1.6px; margin-bottom: 14px; }
.login-copy h1 { font-family: Manrope, sans-serif; font-size: clamp(38px, 4.4vw, 59px); line-height: 1.06; letter-spacing: -2.2px; margin-bottom: 17px; }
.login-copy > p { color: var(--muted); font-size: 16px; line-height: 1.7; max-width: 470px; }
.demo-label { display: flex; align-items: center; justify-content: space-between; margin: 29px 0 12px; font-size: 13px; font-weight: 700; }
.demo-label span { color: var(--muted); font-weight: 500; }
.profile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.profile-card { border: 1px solid var(--line); background: white; border-radius: 15px; padding: 13px; display: flex; gap: 11px; text-align: left; color: var(--ink); transition: .2s ease; }
.profile-card:hover { border-color: #a9c1b5; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(39, 46, 38, .08); }
.profile-avatar, .avatar { display: grid; place-items: center; border-radius: 50%; color: white; font-weight: 800; flex: 0 0 auto; }
.profile-avatar { width: 39px; height: 39px; font-size: 12px; }
.profile-card strong { display: block; font-size: 13px; margin: 2px 0 3px; }
.profile-card small { color: var(--muted); font-size: 11px; }
.login-form { display: flex; gap: 9px; margin-top: 14px; }
.input-wrap { position: relative; flex: 1; }
.input-wrap .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.input, .select, .textarea { width: 100%; border: 1px solid var(--line); background: white; color: var(--ink); border-radius: 11px; padding: 11px 13px; outline: none; transition: .2s; }
.input-wrap .input { padding-left: 43px; }
.input:focus, .select:focus, .textarea:focus { border-color: #88a99a; box-shadow: 0 0 0 3px rgba(49, 92, 75, .09); }
.login-footer { color: var(--faint); font-size: 11px; margin-top: 18px; }
.login-visual { margin: 18px 18px 18px 0; border-radius: 26px; overflow: hidden; position: relative; min-height: calc(100vh - 36px); background: #23392e; }
.restaurant-art { position: absolute; inset: 0; background: radial-gradient(circle at 30% 22%, rgba(255,255,255,.13), transparent 20%), linear-gradient(120deg, rgba(19,35,28,.3), rgba(19,35,28,.82)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1000' height='1000'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.15'/%3E%3C/svg%3E"), linear-gradient(145deg, #99724b 0%, #3b604d 48%, #183127 100%); }
.art-window { position: absolute; top: 8%; right: 8%; width: 52%; height: 50%; border: 12px solid rgba(29,47,38,.92); border-radius: 50% 50% 6px 6px; box-shadow: inset 0 0 80px rgba(246,196,110,.25); background: linear-gradient(#839979 0 58%, #273c31 58%); opacity: .86; }
.art-window::before, .art-window::after { content: ""; position: absolute; background: rgba(29,47,38,.92); }
.art-window::before { left: 50%; top: 0; bottom: 0; width: 9px; }
.art-window::after { left: 0; right: 0; top: 56%; height: 9px; }
.art-table { position: absolute; width: 60%; height: 30%; left: 19%; bottom: 12%; background: linear-gradient(95deg,#bd8a58,#744f33); clip-path: polygon(6% 7%,94% 2%,100% 65%,0 72%); filter: drop-shadow(0 26px 20px rgba(0,0,0,.27)); }
.art-table::before { content: ""; position: absolute; width: 105px; height: 105px; border-radius: 50%; left: 42%; top: -42px; background: radial-gradient(circle at 45% 42%,#efbd56 0 7%,#8e2e23 8% 17%,#efe4ce 18% 30%,#3e673f 31% 38%,#e7d8bc 39% 56%,transparent 57%); transform: rotateX(55deg); }
.art-light { position: absolute; top: 0; left: 18%; width: 2px; height: 30%; background: #252b25; }
.art-light::after { content: ""; position: absolute; width: 150px; height: 88px; left: -74px; bottom: -38px; border-radius: 50% 50% 15% 15%; background: #1d261f; box-shadow: 0 45px 75px rgba(255,189,79,.5); }
.visual-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(16,27,22,.88)); }
.visual-copy { position: absolute; left: 8%; bottom: 7%; max-width: 560px; color: white; }
.visual-copy .quote-mark { width: 43px; height: 43px; border-radius: 12px; background: rgba(255,255,255,.13); backdrop-filter: blur(10px); display: grid; place-items: center; font-family: Georgia, serif; font-size: 28px; margin-bottom: 20px; }
.visual-copy h2 { font-family: Manrope, sans-serif; font-size: clamp(25px, 3vw, 38px); line-height: 1.25; letter-spacing: -1.1px; max-width: 600px; margin-bottom: 18px; }
.visual-copy p { color: rgba(255,255,255,.7); font-size: 13px; }
.demo-pill { position: absolute; top: 24px; right: 24px; padding: 8px 12px; border-radius: 100px; color: white; background: rgba(0,0,0,.2); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(8px); font-size: 11px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; }

/* App shell */
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; width: var(--sidebar); background: #fbfbf8; border-right: 1px solid var(--line); padding: 24px 15px 18px; display: flex; flex-direction: column; transition: transform .25s; }
.sidebar .brand { padding: 0 9px 24px; font-size: 18px; }
.sidebar .brand-mark { width: 34px; height: 34px; font-size: 17px; border-radius: 10px; }
.venue-switch { margin: 0 4px 19px; border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; align-items: center; gap: 9px; background: white; }
.venue-thumb { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg,#f2b66f,#315c4b); display: grid; place-items: center; color: white; }
.venue-switch strong { display: block; font-size: 12px; }
.venue-switch small { color: var(--muted); font-size: 10px; }
.venue-switch > .icon { margin-left: auto; color: var(--faint); width: 14px; }
.nav-label { padding: 0 12px; color: var(--faint); font-size: 9px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; margin: 10px 0 5px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item { border: 0; background: transparent; width: 100%; color: #62675e; border-radius: 10px; padding: 9px 11px; display: flex; align-items: center; gap: 11px; font-size: 12px; text-align: left; transition: .16s; }
.nav-item:hover { background: #f0f1ec; color: var(--ink); }
.nav-item.active { color: var(--brand); background: var(--brand-soft); font-weight: 700; }
.nav-item .count { margin-left: auto; border-radius: 100px; min-width: 21px; text-align: center; padding: 2px 6px; font-size: 9px; background: var(--orange); color: white; }
.sidebar-bottom { margin-top: auto; }
.demo-card { margin: 12px 3px; padding: 12px; border-radius: 13px; background: #263d33; color: white; position: relative; overflow: hidden; }
.demo-card::after { content: ""; position: absolute; width: 70px; height: 70px; border-radius: 50%; right: -25px; top: -30px; background: rgba(255,255,255,.08); }
.demo-card strong { display: block; font-size: 11px; margin-bottom: 5px; }
.demo-card p { color: rgba(255,255,255,.6); font-size: 9px; line-height: 1.5; margin: 0; }
.app-main { margin-left: var(--sidebar); min-height: 100vh; }
.topbar { height: 68px; background: rgba(255,255,255,.88); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 29px; position: sticky; top: 0; z-index: 12; }
.mobile-menu { display: none !important; }
.topbar-search { width: 260px; position: relative; }
.topbar-search .input { background: var(--soft); border-color: transparent; padding: 9px 13px 9px 38px; font-size: 11px; }
.topbar-search .icon { position: absolute; width: 16px; left: 13px; top: 10px; color: var(--faint); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); background: white; position: relative; }
.icon-btn:hover { color: var(--brand); border-color: #b9cbbf; }
.notification-dot { position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); border: 1px solid white; }
.user-menu { padding-left: 10px; margin-left: 3px; border-left: 1px solid var(--line); display: flex; align-items: center; gap: 9px; }
.avatar { width: 34px; height: 34px; font-size: 10px; }
.user-meta strong { font-size: 11px; display: block; }
.user-meta small { color: var(--muted); font-size: 9px; }
.page { padding: 25px 29px 38px; max-width: 1540px; margin: 0 auto; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 22px; }
.page-title h1 { font: 800 25px/1.15 Manrope, sans-serif; letter-spacing: -.7px; margin-bottom: 6px; }
.page-title p { color: var(--muted); font-size: 12px; margin: 0; }
.page-actions { display: flex; align-items: center; gap: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line); background: white; color: var(--ink); font-size: 11px; font-weight: 700; transition: .18s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 13px rgba(39,46,38,.08); }
.btn.primary { background: var(--brand); color: white; border-color: var(--brand); }
.btn.orange { background: var(--orange); color: white; border-color: var(--orange); }
.btn.soft { color: var(--brand); background: var(--brand-soft); border-color: transparent; }
.btn.danger { color: var(--red); background: var(--red-soft); border-color: transparent; }
.btn.sm { min-height: 30px; padding: 6px 10px; font-size: 10px; border-radius: 8px; }
.btn.block { width: 100%; }

/* Cards and dashboard */
.grid { display: grid; gap: 16px; }
.stats-grid { grid-template-columns: repeat(4, 1fr); margin-bottom: 16px; }
.stat-card { background: var(--panel); border: 1px solid var(--line); border-radius: 15px; padding: 17px 18px; box-shadow: 0 5px 20px rgba(39,46,38,.025); }
.stat-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 15px; }
.stat-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--brand); background: var(--brand-soft); }
.stat-icon.orange { color: var(--orange); background: var(--orange-soft); }
.stat-icon.yellow { color: #a8730e; background: var(--yellow-soft); }
.stat-icon.blue { color: var(--blue); background: var(--blue-soft); }
.trend { color: var(--brand); font-size: 9px; padding: 4px 7px; background: var(--brand-soft); border-radius: 100px; font-weight: 700; }
.trend.down { color: var(--red); background: var(--red-soft); }
.stat-card h3 { font: 800 23px/1 Manrope,sans-serif; letter-spacing: -.5px; margin-bottom: 6px; }
.stat-card > p { color: var(--muted); font-size: 10px; margin: 0; }
.dash-grid { grid-template-columns: 1.45fr .8fr; align-items: start; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 5px 20px rgba(39,46,38,.025); overflow: hidden; }
.card-pad { padding: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 18px 13px; }
.card-head h2 { font: 800 14px Manrope,sans-serif; margin: 0; letter-spacing: -.25px; }
.card-head p { color: var(--muted); font-size: 10px; margin: 3px 0 0; }
.link-btn { border: 0; background: transparent; color: var(--brand); font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.link-btn .icon { width: 13px; }
.chart-wrap { padding: 3px 18px 17px; height: 230px; display: flex; }
.y-axis { height: 180px; width: 35px; color: var(--faint); font-size: 8px; display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 2px; }
.bar-chart { height: 198px; flex: 1; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 45px); display: flex; align-items: end; justify-content: space-around; padding: 0 12px; }
.bar-group { height: 100%; width: 8%; display: flex; align-items: end; justify-content: center; position: relative; }
.bar { width: 17px; min-height: 4px; border-radius: 5px 5px 2px 2px; background: var(--brand); position: relative; transition: .3s; }
.bar:hover { background: var(--orange); }
.bar-label { position: absolute; bottom: -18px; color: var(--faint); font-size: 8px; }
.bar-value { display: none; position: absolute; left: 50%; transform: translateX(-50%); top: -24px; padding: 3px 5px; border-radius: 5px; background: var(--ink); color: white; white-space: nowrap; font-size: 8px; }
.bar:hover .bar-value { display: block; }
.activity-list { padding: 0 18px 9px; }
.activity { display: flex; gap: 11px; padding: 11px 0; border-top: 1px solid var(--line); }
.activity:first-child { border-top: 0; }
.activity-dot { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange); }
.activity-dot.green { background: var(--brand-soft); color: var(--brand); }
.activity-copy { min-width: 0; }
.activity-copy strong { display: block; font-size: 10px; margin-bottom: 3px; }
.activity-copy p { color: var(--muted); margin: 0; font-size: 9px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.activity-time { margin-left: auto; color: var(--faint); font-size: 8px; white-space: nowrap; }
.tables-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; padding: 2px 18px 18px; }
.table-mini { aspect-ratio: 1; border-radius: 10px; background: var(--soft); border: 1px solid var(--line); display: grid; place-items: center; font-size: 10px; font-weight: 800; color: var(--muted); }
.table-mini.occupied { background: var(--orange-soft); border-color: #f4c9b5; color: var(--orange); }
.table-mini.reserved { background: var(--yellow-soft); border-color: #efd58e; color: #a8730e; }

/* Tables */
.legend { display: flex; gap: 14px; align-items: center; font-size: 9px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 5px; }
.legend i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.legend .occ { background: var(--orange); }.legend .res { background: var(--yellow); }.legend .clean { background: var(--blue); }
.zone-tabs, .filter-tabs { display: flex; gap: 5px; padding: 4px; border-radius: 10px; background: #ebece6; width: fit-content; }
.zone-tab, .filter-tab { border: 0; padding: 7px 12px; border-radius: 7px; background: transparent; color: var(--muted); font-size: 10px; font-weight: 700; }
.zone-tab.active, .filter-tab.active { background: white; color: var(--ink); box-shadow: 0 2px 5px rgba(0,0,0,.06); }
.tables-grid { grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); }
.table-card { border: 1px solid var(--line); background: white; min-height: 152px; border-radius: 15px; padding: 15px; position: relative; transition: .18s; overflow: hidden; }
.table-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.table-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--brand); opacity: 0; }
.table-card.occupied::before { background: var(--orange); opacity: 1; }.table-card.reserved::before { background: var(--yellow); opacity: 1; }.table-card.cleaning::before { background: var(--blue); opacity: 1; }
.table-card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.table-number { width: 38px; height: 38px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font: 800 13px Manrope; }
.status-pill { font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; padding: 5px 7px; border-radius: 100px; color: var(--brand); background: var(--brand-soft); }
.status-pill.occupied { color: var(--orange); background: var(--orange-soft); }.status-pill.reserved { color: #a8730e; background: var(--yellow-soft); }.status-pill.cleaning { color: var(--blue); background: var(--blue-soft); }.status-pill.paid { color: var(--brand); background: var(--brand-soft); }.status-pill.pending { color: var(--orange); background: var(--orange-soft); }
.table-card h3 { font: 800 13px Manrope; margin: 14px 0 4px; }
.table-card p { margin: 0; color: var(--muted); font-size: 9px; }
.table-card-foot { position: absolute; bottom: 14px; left: 15px; right: 15px; display: flex; justify-content: space-between; align-items: center; }
.table-card-foot strong { font-size: 11px; }
.table-action { color: var(--brand); border: 0; background: transparent; padding: 0; font-size: 9px; font-weight: 700; }

/* POS */
.pos-page { height: calc(100vh - 68px); padding: 0; max-width: none; overflow: hidden; display: grid; grid-template-columns: 1fr 340px; }
.pos-catalog { padding: 23px 26px; overflow-y: auto; }
.pos-head { display: flex; gap: 15px; justify-content: space-between; align-items: center; margin-bottom: 17px; }
.pos-head h1 { font: 800 22px Manrope; margin: 0; }
.pos-search { position: relative; width: min(320px, 44%); }
.pos-search .input { background: white; padding-left: 38px; }
.pos-search .icon { position: absolute; left: 12px; top: 11px; color: var(--faint); }
.category-row { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 13px; scrollbar-width: none; }
.category-chip { flex: 0 0 auto; border: 1px solid var(--line); color: var(--muted); background: white; border-radius: 100px; padding: 8px 13px; font-size: 10px; font-weight: 700; }
.category-chip.active { background: var(--brand); border-color: var(--brand); color: white; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.product-card { border: 1px solid var(--line); border-radius: 14px; background: white; overflow: hidden; text-align: left; padding: 0; color: var(--ink); transition: .18s; }
.product-card:hover { transform: translateY(-2px); border-color: #b8cbbf; box-shadow: 0 9px 20px rgba(39,46,38,.07); }
.food-art { height: 104px; display: grid; place-items: center; font-size: 43px; position: relative; background: var(--food-bg, #eee); }
.food-art::after { content: ""; width: 74px; height: 22px; position: absolute; bottom: 15px; border-radius: 50%; background: rgba(0,0,0,.08); filter: blur(5px); }
.food-art span { position: relative; z-index: 1; filter: drop-shadow(0 8px 5px rgba(0,0,0,.13)); }
.product-info { padding: 11px 12px 12px; }
.product-info strong { display: block; font-size: 11px; line-height: 1.3; margin-bottom: 5px; }
.product-info small { color: var(--muted); font-size: 8px; }
.product-price { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.product-price b { color: var(--brand); font: 800 12px Manrope; }
.add-circle { width: 24px; height: 24px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.order-panel { background: white; border-left: 1px solid var(--line); height: 100%; display: flex; flex-direction: column; min-width: 0; }
.order-panel-head { padding: 18px 18px 12px; border-bottom: 1px solid var(--line); }
.order-panel-head h2 { font: 800 15px Manrope; margin-bottom: 12px; }
.order-context { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.order-context .select, .order-context .input { font-size: 10px; padding: 9px 10px; }
.cart-list { padding: 4px 18px; flex: 1; overflow-y: auto; }
.empty-cart { height: 100%; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 30px; }
.empty-cart .big-emoji { font-size: 36px; display: block; margin-bottom: 10px; filter: grayscale(.3); }
.empty-cart strong { color: var(--ink); display: block; font-size: 12px; margin-bottom: 5px; }
.empty-cart p { font-size: 9px; line-height: 1.5; }
.cart-item { display: grid; grid-template-columns: 39px 1fr auto; gap: 9px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 9px; font-size: 20px; background: var(--soft); }
.cart-copy strong { font-size: 10px; display: block; margin-bottom: 5px; }
.qty-control { display: flex; gap: 6px; align-items: center; }
.qty-btn { width: 18px; height: 18px; border-radius: 5px; padding: 0; display: grid; place-items: center; border: 1px solid var(--line); background: white; color: var(--muted); }
.qty-btn .icon { width: 11px; }.qty-control span { font-size: 9px; min-width: 13px; text-align: center; }
.cart-price { font: 800 10px Manrope; }
.order-summary { padding: 13px 18px 18px; border-top: 1px solid var(--line); background: #fdfdfb; }
.summary-row { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; margin: 7px 0; }
.summary-row.total { color: var(--ink); font: 800 15px Manrope; border-top: 1px dashed var(--line); padding-top: 11px; margin-top: 11px; }

/* Data tables */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 14px; }
.toolbar-search { width: 260px; position: relative; }
.toolbar-search .input { font-size: 10px; padding: 9px 12px 9px 36px; }
.toolbar-search .icon { position: absolute; left: 11px; top: 10px; color: var(--faint); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { background: #f8f8f5; color: var(--faint); font-size: 8px; letter-spacing: .7px; text-transform: uppercase; font-weight: 800; text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 10px; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fcfcf9; }
.order-code { font-weight: 800; color: var(--brand); }
.customer-cell { display: flex; align-items: center; gap: 8px; }
.customer-cell .avatar { width: 29px; height: 29px; font-size: 8px; }
.customer-cell strong { display: block; font-size: 10px; }.customer-cell small { color: var(--muted); font-size: 8px; }
.amount { font: 800 10px Manrope; }
.actions-inline { display: flex; gap: 5px; }

/* Kitchen */
.kitchen-board { grid-template-columns: repeat(3, 1fr); align-items: start; }
.kitchen-column { background: #ecece7; border-radius: 15px; padding: 11px; min-height: 470px; }
.column-head { display: flex; align-items: center; justify-content: space-between; padding: 5px 4px 12px; }
.column-head strong { font: 800 12px Manrope; display: flex; align-items: center; gap: 7px; }
.column-head i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.column-head .progress-dot { background: var(--yellow); }.column-head .ready-dot { background: var(--brand); }
.column-count { padding: 3px 7px; background: white; border-radius: 100px; font-size: 9px; }
.kitchen-card { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 13px; margin-bottom: 9px; }
.kitchen-card.late { border-color: #efb5a6; }
.kitchen-top { display: flex; justify-content: space-between; align-items: flex-start; }
.kitchen-top strong { font: 800 12px Manrope; }.kitchen-top small { color: var(--muted); font-size: 8px; display: block; margin-top: 3px; }
.timer { font-size: 9px; color: var(--brand); background: var(--brand-soft); border-radius: 100px; padding: 5px 7px; display: flex; gap: 4px; align-items: center; }
.timer.late { color: var(--red); background: var(--red-soft); }
.kitchen-items { margin: 12px 0; padding: 10px 0; border-block: 1px solid var(--line); }
.kitchen-item { font-size: 9px; display: flex; gap: 7px; margin: 6px 0; }
.kitchen-item b { color: var(--orange); min-width: 17px; }
.kitchen-note { background: var(--yellow-soft); color: #86631f; border-radius: 7px; padding: 7px; font-size: 8px; margin: -2px 0 10px; }

/* Management pages */
.inventory-layout { grid-template-columns: 1fr 280px; align-items: start; }
.stock-bar { width: 100px; height: 5px; border-radius: 10px; background: #e8e9e3; overflow: hidden; }
.stock-bar span { display: block; height: 100%; background: var(--brand); border-radius: inherit; }.stock-bar.low span { background: var(--red); }
.alert-list { padding: 0 17px 14px; }
.alert-item { padding: 10px 0; display: flex; gap: 9px; border-top: 1px solid var(--line); }
.alert-item:first-child { border-top: 0; }.alert-icon { width: 28px; height: 28px; border-radius: 8px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; }
.alert-item strong { display:block; font-size: 9px; margin-bottom: 2px; }.alert-item p { font-size: 8px; color: var(--muted); margin: 0; }
.reservation-list { grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); }
.reservation-card { padding: 16px; }
.reservation-date { display: flex; gap: 11px; align-items: center; }
.date-box { width: 44px; height: 47px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; line-height: 1; }
.date-box strong { font: 800 17px Manrope; }.date-box small { font-size: 8px; text-transform: uppercase; }
.reservation-date h3 { font: 800 12px Manrope; margin: 0 0 3px; }.reservation-date p { color: var(--muted); font-size: 9px; margin: 0; }
.reservation-meta { display: grid; grid-template-columns: repeat(3,1fr); margin: 14px 0; border-block: 1px solid var(--line); padding: 10px 0; }
.reservation-meta div { border-left: 1px solid var(--line); padding-left: 9px; }.reservation-meta div:first-child { border-left: 0; padding-left: 0; }
.reservation-meta small { color: var(--faint); font-size: 7px; text-transform: uppercase; display:block; }.reservation-meta strong { font-size: 9px; }
.staff-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.staff-card { text-align: center; padding: 20px; }
.staff-avatar { width: 60px; height: 60px; margin: 0 auto 11px; font-size: 16px; border: 4px solid white; box-shadow: 0 0 0 1px var(--line); }
.staff-card h3 { font: 800 12px Manrope; margin-bottom: 4px; }.staff-card > p { color: var(--muted); font-size: 9px; margin-bottom: 13px; }
.staff-stats { display:flex; border-top: 1px solid var(--line); padding-top: 12px; }.staff-stats div { width:50%; border-left:1px solid var(--line); }.staff-stats div:first-child {border-left:0}.staff-stats strong{font-size:10px;display:block}.staff-stats small{font-size:7px;color:var(--faint);text-transform:uppercase}
.report-grid { grid-template-columns: 1fr 1fr; }
.donut-wrap { padding: 13px 18px 22px; display: flex; align-items: center; gap: 28px; }
.donut { width: 130px; aspect-ratio:1; border-radius:50%; background: conic-gradient(var(--brand) 0 42%, var(--orange) 42% 70%, var(--yellow) 70% 88%, var(--blue) 88%); position:relative; }.donut::after{content:"S/ 8.4k";position:absolute;inset:19px;background:white;border-radius:50%;display:grid;place-items:center;font:800 15px Manrope}
.donut-legend { display:flex;flex-direction:column;gap:10px; font-size:9px; }.donut-legend span{display:flex;align-items:center;gap:7px}.donut-legend i{width:8px;height:8px;border-radius:2px;background:var(--brand)}
.config-layout { grid-template-columns: 1fr 330px; align-items:start; }
.form-section { padding: 18px; }.form-section + .form-section{border-top:1px solid var(--line)}.form-section h3{font:800 12px Manrope;margin-bottom:15px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field label{display:block;color:var(--muted);font-size:9px;font-weight:700;margin-bottom:6px}.field .input,.field .select,.field .textarea{font-size:10px}.field.full{grid-column:1/-1}.textarea{resize:vertical;min-height:75px}
.role-permissions { padding: 0 17px 16px; }.permission-row{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-top:1px solid var(--line);font-size:9px}.permission-row:first-child{border-top:0}.toggle{width:31px;height:17px;border-radius:100px;background:#d8dad4;position:relative}.toggle.on{background:var(--brand)}.toggle::after{content:"";position:absolute;width:13px;height:13px;left:2px;top:2px;border-radius:50%;background:white;transition:.2s}.toggle.on::after{transform:translateX(14px)}

/* Cash */
.cash-grid { grid-template-columns: 1.3fr .7fr; align-items:start; }
.cash-summary { display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:0 17px 17px}.cash-box{background:var(--soft);border-radius:10px;padding:12px}.cash-box small{display:block;color:var(--muted);font-size:8px;margin-bottom:5px}.cash-box strong{font:800 14px Manrope}.payment-row{display:flex;align-items:center;padding:11px 0;border-top:1px solid var(--line);font-size:9px}.payment-row:first-child{border-top:0}.payment-icon{width:29px;height:29px;border-radius:8px;background:var(--brand-soft);display:grid;place-items:center;color:var(--brand);margin-right:9px}.payment-row strong{margin-left:auto;font-size:10px}

/* Modal, toast */
.modal-backdrop { position: fixed; z-index: 100; inset: 0; background: rgba(24,31,26,.48); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; animation: fade .16s; }
.modal { width: min(480px,100%); max-height: 90vh; overflow-y: auto; background: white; border-radius: 18px; box-shadow: 0 30px 70px rgba(0,0,0,.24); animation: rise .2s; }
.modal-head { padding: 18px 19px 14px; border-bottom: 1px solid var(--line); display:flex;align-items:center;justify-content:space-between}.modal-head h2{font:800 15px Manrope;margin:0}.modal-body{padding:18px 19px}.modal-foot{display:flex;justify-content:flex-end;gap:8px;padding:14px 19px;border-top:1px solid var(--line);background:var(--soft)}
.payment-options{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:12px 0}.payment-option{border:1px solid var(--line);background:white;border-radius:11px;padding:13px 8px;text-align:center;color:var(--muted);font-size:9px}.payment-option span{font-size:23px;display:block;margin-bottom:5px}.payment-option.selected{border-color:var(--brand);background:var(--brand-soft);color:var(--brand);font-weight:700}
#toast-root { position:fixed;z-index:150;right:20px;bottom:20px;display:flex;flex-direction:column;gap:8px}.toast{min-width:260px;background:#26342d;color:white;border-radius:12px;padding:12px 14px;box-shadow:0 15px 35px rgba(0,0,0,.2);display:flex;gap:9px;align-items:center;font-size:10px;animation:slideIn .25s}.toast .icon{color:#aee2c7}.toast.error .icon{color:#ff9a8e}
.empty-state{padding:50px 20px;text-align:center;color:var(--muted)}.empty-state span{font-size:36px;display:block;margin-bottom:10px}.empty-state strong{display:block;color:var(--ink);font-size:12px;margin-bottom:5px}.empty-state p{font-size:9px}
.backdrop-mobile{display:none}
@keyframes fade{from{opacity:0}to{opacity:1}}@keyframes rise{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}@keyframes slideIn{from{opacity:0;transform:translateX(20px)}to{opacity:1;transform:none}}

@media (max-width: 1100px) {
  :root{--sidebar:220px}.stats-grid{grid-template-columns:repeat(2,1fr)}.dash-grid,.inventory-layout,.cash-grid,.config-layout{grid-template-columns:1fr}.pos-page{grid-template-columns:1fr 310px}.product-grid{grid-template-columns:repeat(auto-fill,minmax(145px,1fr))}.kitchen-board{grid-template-columns:1fr 1fr}.report-grid{grid-template-columns:1fr}.login-panel{padding:35px}.login-shell{grid-template-columns:minmax(410px,.9fr) 1.1fr}
}
@media (max-width: 760px) {
  .login-shell{display:block}.login-panel{min-height:100vh;padding:28px 22px}.login-visual{display:none}.login-copy{margin:auto 0}.profile-grid{grid-template-columns:1fr 1fr}.sidebar{transform:translateX(-100%);width:246px;box-shadow:10px 0 40px rgba(0,0,0,.14)}.sidebar.open{transform:none}.backdrop-mobile{display:block;position:fixed;z-index:19;inset:0;background:rgba(0,0,0,.32)}.app-main{margin-left:0}.mobile-menu{display:grid!important}.topbar{padding:0 16px}.topbar-search{display:none}.user-meta{display:none}.page{padding:20px 16px 30px}.page-head{align-items:flex-start;flex-direction:column}.page-actions{width:100%;overflow-x:auto}.stats-grid{grid-template-columns:1fr 1fr;gap:10px}.stat-card{padding:14px}.dash-grid{grid-template-columns:1fr}.tables-grid{grid-template-columns:repeat(2,1fr);gap:10px}.table-card{min-height:145px}.pos-page{height:auto;display:block;overflow:visible}.pos-catalog{padding:18px 15px;overflow:visible}.pos-head{align-items:flex-start}.pos-search{width:55%}.product-grid{grid-template-columns:repeat(2,1fr)}.order-panel{position:fixed;z-index:40;inset:68px 0 0 auto;width:min(360px,94vw);transform:translateX(100%);transition:.25s;box-shadow:-15px 0 40px rgba(0,0,0,.16)}.order-panel.open{transform:none}.kitchen-board{grid-template-columns:1fr}.data-scroll{overflow-x:auto}.data-table{min-width:720px}.toolbar{align-items:stretch;flex-direction:column}.toolbar-search{width:100%}.reservation-list,.staff-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.config-layout{grid-template-columns:1fr}.donut-wrap{flex-direction:column}.mobile-cart{display:inline-flex!important}.topbar-actions .icon-btn:nth-child(2){display:none}
}
@media (max-width: 430px) {
  .profile-grid{grid-template-columns:1fr}.stats-grid{grid-template-columns:1fr}.tables-grid{grid-template-columns:1fr 1fr}.legend{flex-wrap:wrap}.page-title h1{font-size:22px}.food-art{height:90px}.product-info{padding:9px}.login-copy h1{font-size:36px}.login-panel{padding:23px 18px}.login-form{flex-direction:column}.login-form .btn{width:100%}
}
