/* Dapur Mami Rania — Phase 1 design system (NEO-BRUTALISM) */
:root {
  --burgundy: #891F3D; --burgundy-dark: #65152D; --gold: #FFC900;
  --bg: #FFF9EF; --cream: #FFFFFF; --card: #FFFFFF;
  --ink: #161616; --muted: #5C5C5C; --line: #161616;
  --ok: #1E7E34; --warn: #B45309; --late: #E5484D; --info: #1864AB;
  --sh-out: 5px 5px 0 #161616;
  --sh-in: inset 3px 3px 0 rgba(22,22,22,.12);
  --sh-sm: 3px 3px 0 #161616;
  --r: 14px; --r-sm: 10px;
  --font: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.5; -webkit-font-smoothing: antialiased; }
.layout { display: flex; min-height: 100vh; }
.sidebar { width: 236px; flex-shrink: 0; background: var(--card); padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; border-right: 3px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 14px; }
.brand .mark { width: 40px; height: 40px; border-radius: 12px; border: 3px solid var(--line); background: var(--burgundy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; box-shadow: var(--sh-sm); }
.brand b { font-size: 14.5px; display: block; }
.brand span { font-size: 11px; color: var(--muted); }
.nav-sec { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 12px 8px 5px; }
.nav a { display: flex; gap: 9px; align-items: center; padding: 9px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 13.5px; font-weight: 700; border: 3px solid transparent; }
.nav a:hover { border-color: var(--line); transform: translate(-1px, -1px); box-shadow: var(--sh-sm); }
.nav a .ti { width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; background: var(--bg); border: 2px solid var(--line); flex-shrink: 0; }
.nav a.active { background: var(--gold); color: var(--ink); border-color: var(--line); box-shadow: var(--sh-sm); }
.nav a.active .ti { background: #fff; }
.main { flex: 1; padding: 20px 22px 40px; max-width: 1180px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.topbar h1 { font-size: 22px; margin: 0; font-weight: 800; text-transform: uppercase; letter-spacing: -.3px; }
.topbar .crumb { font-size: 12px; color: var(--muted); font-weight: 700; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; padding: 7px 13px; border-radius: 999px; border: 3px solid var(--line); background: var(--card); box-shadow: var(--sh-sm); }
.grid { display: grid; gap: 16px; }
.c2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.c3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.c4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.card { background: var(--card); border: 3px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--sh-out); }
.card h2 { font-size: 15px; margin: 0 0 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; text-transform: uppercase; letter-spacing: .02em; }
.kpi { text-align: left; }
.kpi .k { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.kpi .v { font-size: 26px; font-weight: 800; margin: 3px 0; font-variant-numeric: tabular-nums; }
.kpi .d { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.kpi.gold { background: var(--gold); }
.kpi.gold .v, .kpi.gold .k, .kpi.gold .d { color: #161616; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 3px solid var(--line); cursor: pointer; font: 800 13px var(--font); color: #fff; padding: 10px 18px; border-radius: 12px; background: var(--burgundy); box-shadow: var(--sh-sm); min-height: 42px; text-decoration: none; text-transform: uppercase; letter-spacing: .03em; transition: transform .1s ease, box-shadow .1s ease; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 #161616; }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 #161616; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn.ghost { background: #fff; color: var(--ink); }
.btn.gold { background: var(--gold); color: #161616; }
.btn.ok { background: var(--ok); }
.btn.sm { padding: 7px 13px; min-height: 36px; font-size: 12px; border-radius: 10px; }
.badge { display: inline-flex; align-items: center; font-size: 11px; font-weight: 800; padding: 4px 11px; border-radius: 999px; border: 2px solid var(--line); white-space: nowrap; text-transform: uppercase; }
.b-green { background: #B9E5C3; color: #0F4D1D; } .b-amber { background: #FFE29A; color: #7A4A00; }
.b-red { background: #FFB3B3; color: #7F1D1D; } .b-blue { background: #BFD9F5; color: #0C3A6E; }
.b-gray { background: #E4E4E4; color: #3A3A3A; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 2px solid var(--line); }
th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; background: var(--ink); color: #fff; }
th:first-child { border-radius: 8px 0 0 0; } th:last-child { border-radius: 0 8px 0 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
input, select, textarea { font: 700 13px var(--font); width: 100%; padding: 10px 13px; min-height: 44px; border: 3px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--ink); box-shadow: var(--sh-in); }
input:focus, select:focus, textarea:focus { outline: none; box-shadow: var(--sh-in), 0 0 0 3px var(--gold); }
label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); display: block; margin-bottom: 4px; }
form .row { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: end; }
.alert { border: 3px solid var(--line); border-radius: var(--r-sm); padding: 11px 14px; font-size: 13px; font-weight: 600; box-shadow: var(--sh-sm); margin-bottom: 10px; }
.alert.warn { background: #FFE29A; color: #5C3A00; } .alert.info { background: #BFD9F5; color: #0C3A6E; } .alert.danger { background: #FFB3B3; color: #7F1D1D; }
.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.col { background: var(--cream); border: 3px solid var(--line); border-radius: var(--r); padding: 12px; min-height: 180px; }
.col h3 { font-size: 12.5px; margin: 0 0 10px; display: flex; justify-content: space-between; text-transform: uppercase; }
.ticket { background: var(--card); border: 3px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; margin-bottom: 9px; font-size: 12.5px; }
.ticket b { display: block; font-size: 13px; }
.ticket .meta { color: var(--muted); font-size: 11.5px; margin-top: 3px; }
.steps { display: flex; gap: 5px; flex-wrap: wrap; font-size: 11px; font-weight: 800; background: #fff; border: 3px solid var(--line); border-radius: 999px; padding: 6px 11px; color: var(--muted); width: fit-content; }
.steps .cur { color: var(--burgundy); }
.bar { height: 12px; border-radius: 99px; border: 2px solid var(--line); background: #fff; overflow: hidden; margin: 6px 0; }
.bar > i { display: block; height: 100%; background: var(--gold); border-right: 2px solid var(--line); }
.footer { font-size: 11px; color: var(--muted); margin-top: 26px; text-align: center; font-weight: 600; }
.side-logo { display: flex; gap: 10px; align-items: center; padding: 4px 8px 12px; border-bottom: 3px solid var(--line); margin-bottom: 6px; }
.side-logo .chef { width: 46px; height: 46px; border-radius: 12px; border: 3px solid var(--line); background: var(--burgundy); display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: var(--sh-sm); flex-shrink: 0; }
.side-logo b { font-size: 15px; color: var(--ink); display: block; line-height: 1.15; text-transform: uppercase; }
.side-logo span { font-size: 10.5px; color: var(--muted); font-weight: 700; }
.nav .cnt { margin-left: auto; background: var(--ink); color: #fff; font-size: 10.5px; font-weight: 800; min-width: 20px; height: 20px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.nav a.active .cnt { background: #fff; color: var(--ink); }
.side-foot { margin-top: auto; font-size: 10.5px; color: var(--muted); text-align: center; padding: 10px 4px 0; font-weight: 700; }
.side-user { margin: 12px 4px 0; background: var(--gold); border: 3px solid var(--line); border-radius: var(--r-sm); padding: 11px 12px; box-shadow: var(--sh-sm); display: flex; gap: 9px; align-items: center; }
.side-user .av { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.side-user b { font-size: 12.5px; display: block; } .side-user span { font-size: 10.5px; color: #3A3A3A; font-weight: 700; }
.search { display: flex; align-items: center; gap: 8px; background: #fff; border: 3px solid var(--line); border-radius: 999px; padding: 10px 16px; box-shadow: var(--sh-sm); min-width: 220px; flex: 1; max-width: 420px; }
.search input { border: none; background: transparent; box-shadow: none; padding: 0; min-height: 0; font-size: 13px; }
.search input:focus { box-shadow: none; }
.period { display: flex; gap: 6px; flex-wrap: wrap; background: #fff; border: 3px solid var(--line); border-radius: 999px; padding: 5px; box-shadow: var(--sh-sm); }
.period a { font-size: 12px; font-weight: 800; color: var(--ink); text-decoration: none; padding: 7px 13px; border-radius: 999px; border: 3px solid transparent; text-transform: uppercase; }
.period a.on { background: var(--ink); color: #fff; }
.bell { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--line); background: #fff; box-shadow: var(--sh-sm); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.bell i { position: absolute; top: -6px; right: -6px; background: var(--late); border: 2px solid var(--line); color: #fff; font-size: 10px; font-weight: 800; font-style: normal; min-width: 18px; height: 18px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.me { display: flex; align-items: center; gap: 9px; background: #fff; border: 3px solid var(--line); border-radius: 999px; padding: 5px 14px 5px 5px; box-shadow: var(--sh-sm); }
.me .av { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); background: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 17px; }
.me b { font-size: 12.5px; display: block; } .me span { font-size: 10.5px; color: var(--muted); font-weight: 700; }
.greet { font-size: 22px; font-weight: 800; margin: 2px 0 14px; text-transform: uppercase; }
.greet small { display: block; font-size: 12px; color: var(--muted); font-weight: 700; text-transform: none; }
.kpi .ic { width: 42px; height: 42px; border-radius: 12px; border: 3px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 19px; margin-bottom: 6px; }
.ic.pink { background: #FFB3B3; } .ic.amber { background: #FFE29A; } .ic.green { background: #B9E5C3; } .ic.violet { background: #BFD9F5; }
.kpi .up { font-size: 11px; color: var(--ok); font-weight: 800; }
.spark { margin-top: 6px; }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; }
.mini { background: var(--card); border: 3px solid var(--line); border-radius: var(--r-sm); padding: 12px 10px; text-align: center; box-shadow: var(--sh-sm); }
.mini .n { font-size: 22px; font-weight: 800; margin: 4px 0 6px; }
.mini .t { font-size: 11px; color: var(--muted); font-weight: 800; text-transform: uppercase; }
.food { display: flex; gap: 11px; align-items: center; padding: 10px 0; border-bottom: 3px solid var(--line); }
.food:last-child { border-bottom: none; }
.food .ph { width: 48px; height: 48px; border-radius: 12px; border: 3px solid var(--line); font-size: 24px; display: flex; align-items: center; justify-content: center; background: var(--gold); flex-shrink: 0; }
.food b { font-size: 13px; display: block; } .food .pr { font-size: 12px; color: var(--muted); font-weight: 700; }
.food .qb { margin-left: auto; text-align: right; font-size: 12px; font-weight: 800; white-space: nowrap; }
.donut-wrap { display: flex; gap: 14px; align-items: center; }
.kds-tabs { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: #fff; border: 3px solid var(--line); border-radius: 999px; padding: 6px 8px; box-shadow: var(--sh-sm); width: fit-content; max-width: 100%; }
.kds-tabs a { font-size: 12.5px; font-weight: 800; color: var(--ink); text-decoration: none; padding: 8px 14px; border-radius: 999px; white-space: nowrap; text-transform: uppercase; }
.kds-tabs a.on { background: var(--gold); border: 3px solid var(--line); }
.kds-filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.kds-filter { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 3px solid var(--line); border-radius: 999px; padding: 6px 8px 6px 12px; box-shadow: var(--sh-sm); font-size: 12.5px; font-weight: 800; }
.kds-filter .dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; color: #fff; }
.kds-filter .n { font-size: 15px; font-weight: 800; padding-right: 6px; font-variant-numeric: tabular-nums; }
.dot.slate { background: #5B6B7C; } .dot.amber { background: #E8930C; } .dot.red { background: #E5484D; } .dot.green { background: #2FA84F; }
.kds-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.ticket2 { background: var(--card); border: 3px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--sh-out); }
.ticket2 .th { display: flex; gap: 10px; align-items: center; padding: 13px 14px; color: #fff; border-bottom: 3px solid var(--line); }
.ticket2 .th.slate { background: #5B6B7C; }
.ticket2 .th.amber { background: #E8930C; }
.ticket2 .th.red { background: #E5484D; }
.ticket2 .th.green { background: #2FA84F; }
.ticket2 .th .ca { width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff; background: rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; }
.ticket2 .th b { font-size: 13.5px; display: block; text-transform: uppercase; } .ticket2 .th span { font-size: 11px; font-weight: 700; }
.ticket2 .th .ord { margin-left: auto; background: #fff; border: 2px solid var(--line); color: var(--ink); font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.ticket2 .tb { padding: 12px 14px 14px; }
.ticket2 .meta2 { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.ticket2 .meta2 b { color: var(--ink); }
.kds-item { display: flex; gap: 8px; align-items: baseline; font-size: 13px; padding: 5px 0; font-weight: 700; }
.kds-item .q { margin-left: auto; color: var(--muted); font-weight: 800; white-space: nowrap; }
.veg { width: 13px; height: 13px; border: 2px solid #1E7E34; border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transform: translateY(2px); }
.veg::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #1E7E34; }
.nonveg { width: 13px; height: 13px; border: 2px solid #C92A2A; border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transform: translateY(2px); }
.nonveg::after { content: ""; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 6px solid #C92A2A; }
.kds-note { background: #FFF3C4; border: 2px dashed var(--line); border-radius: 10px; font-size: 11.5px; font-weight: 700; color: #5C3A00; padding: 7px 10px; margin: 3px 0 3px 21px; }
.kds-timer { margin-top: 10px; }
.kds-timer .row { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 800; }
.kds-timer .late { color: var(--late); } .kds-timer .early { color: var(--ok); }
.kds-actions { display: flex; gap: 8px; margin-top: 10px; }
.kds-actions .btn { flex: 1; }
.pageband { border: 3px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin-bottom: 14px; box-shadow: var(--sh-out); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; color: #fff; }
.pageband.slate { background: #5B6B7C; }
.pageband.brand { background: var(--burgundy); }
.pageband.amber { background: #E8930C; }
.pageband.green { background: #2FA84F; }
.pageband.red { background: #E5484D; }
.pageband h1 { font-size: 19px; margin: 0; text-transform: uppercase; }
.pageband .sub { font-size: 12px; font-weight: 700; }
.pageband .sp { flex: 1; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 2px; }
.chip { font-size: 11px; font-weight: 800; background: #fff; border: 2px solid var(--line); color: var(--ink); padding: 3px 10px; border-radius: 999px; }
.chip.solid { background: var(--gold); }
.table-wrap { overflow-x: auto; border: 3px solid var(--line); border-radius: var(--r-sm); }
.table-wrap table { min-width: 640px; }
.bottomnav { display: none; }
.statbar { display: flex; gap: 8px; align-items: center; font-size: 12.5px; font-weight: 800; }
.legend { font-size: 12px; display: grid; gap: 5px; font-weight: 700; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--line); margin-right: 6px; }
@media (max-width: 1024px) {
  .main { max-width: none; padding: 18px 16px 90px; }
  .kds-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}
@media (max-width: 860px) {
  .sidebar { display: none; }
  .topbar { gap: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .grid.c4 { grid-template-columns: repeat(2, 1fr); }
  .grid.c3 { grid-template-columns: 1fr; }
  .kpi .v { font-size: 20px; }
  .bottomnav { display: flex; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 50; background: #fff; border: 3px solid var(--line); border-radius: 20px; box-shadow: var(--sh-out); padding: 6px; gap: 2px; }
  .bottomnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; font-weight: 800; color: var(--ink); text-decoration: none; padding: 7px 2px; border-radius: 14px; text-transform: uppercase; }
  .bottomnav a.on { background: var(--gold); border: 2px solid var(--line); }
  .bottomnav a .ti { font-size: 17px; }
}
@media (max-width: 420px) {
  .grid.c4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card { padding: 14px; }
  .kds-grid { grid-template-columns: 1fr; }
  .period a { padding: 7px 10px; font-size: 11.5px; }
  .donut-wrap { flex-direction: column; }
}
