:root {
  color-scheme: light;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: #17251f;
  background: #f4f6f1;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(ellipse at 8% 0%, rgba(220, 234, 211, 0.72), transparent 34rem), #f4f6f1;
}

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem clamp(1rem, 4vw, 3.5rem); color: #f7f8f3; background: #203b31; }
.brand { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; font-weight: 700; }
.live-indicator { display: inline-flex; align-items: center; gap: 0.5rem; color: #d5e9dc; font-size: 0.85rem; }
.live-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #8ed6a2; box-shadow: 0 0 0 4px rgba(142, 214, 162, 0.14); }
main { width: min(100% - 2rem, 1280px); margin: 0 auto; padding: clamp(2rem, 6vw, 4.5rem) 0 2.5rem; }
.heading-row { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 5vw, 3rem); font-weight: 600; }
.subheading { margin: 0.5rem 0 0; color: #5f6e66; font-size: 1rem; }
.updated { flex: 0 0 auto; color: #64746a; font-size: 0.85rem; }
.notice { display: none; margin: 0 0 1rem; padding: 0.85rem 1rem; border: 1px solid #e5c992; border-radius: 8px; color: #624814; background: #fff8e9; }
.orders { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 245px), 1fr)); gap: 0.85rem; }
.order-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.75rem; min-height: 116px; padding: 1.15rem; border: 1px solid #dce3da; border-left: 5px solid var(--status-color, #c18a35); border-radius: 8px; background: #fff; box-shadow: 0 5px 18px rgba(32, 59, 49, 0.05); animation: appear 220ms ease-out both; }
.table-label { overflow-wrap: anywhere; font-size: 1.45rem; font-weight: 700; }
.kot-label { margin-top: 0.35rem; color: #68766e; font-size: 0.96rem; font-weight: 600; }
.status { max-width: 8.5rem; padding: 0.45rem 0.65rem; border-radius: 999px; color: var(--status-text, #624814); background: var(--status-bg, #fff0cf); font-size: 0.82rem; font-weight: 700; text-align: center; overflow-wrap: anywhere; }
.empty { display: none; padding: 3rem 1rem; border: 1px dashed #cbd6cc; border-radius: 8px; color: #5f6e66; background: rgba(255, 255, 255, 0.7); text-align: center; }
.empty strong { display: block; margin-bottom: 0.4rem; color: #203b31; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; }
@keyframes appear { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 560px) { .topbar { padding-block: 0.85rem; } .heading-row { align-items: start; flex-direction: column; } .updated { order: 2; } .order-card { min-height: 100px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; } }