:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --text: #182230;
  --muted: #5d6b82;
  --primary: #1d4ed8;
  --success: #15803d;
  --warn: #b45309;
  --danger: #991b1b;
  --border: #dbe3ef;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a { color: var(--primary); text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 16px; }
.header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 2px 10px rgba(23, 38, 66, 0.06);
}
.grid { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

input, select, textarea, button {
  font: inherit;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 10px 12px;
}
textarea { min-height: 70px; width: 100%; }
input, select { width: 100%; background: #fff; }
button { cursor: pointer; background: #fff; }
.btn { background: var(--primary); color: #fff; border: 0; }
.btn-secondary { background: #0f766e; color: #fff; border: 0; }
.btn-danger { background: var(--danger); color: #fff; border: 0; }
.btn-outline { border: 1px solid var(--primary); color: var(--primary); background: #fff; }

.badge { padding: 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.status-available { background: #dcfce7; color: #166534; }
.status-occupied { background: #fef3c7; color: #92400e; }
.status-needs_cleaning { background: #f3e8ff; color: #6b21a8; }
.status-received { background: #dbeafe; color: #1d4ed8; }
.status-preparing { background: #fef9c3; color: #854d0e; }
.status-ready { background: #dcfce7; color: #166534; }
.status-served, .status-closed { background: #ede9fe; color: #5b21b6; }
.status-cancelled { background: #fee2e2; color: #991b1b; }

.menu-item {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}
.menu-item img {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: 10px;
  background: #e8eef7;
}
.muted { color: var(--muted); font-size: 14px; }
.metric { font-size: 28px; font-weight: 700; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { border-bottom: 1px solid var(--border); padding: 8px; text-align: left; }

.kitchen-order.urgent { border-left: 6px solid #ef4444; }
.kitchen-order.warning { border-left: 6px solid #f59e0b; }
.kitchen-order.normal { border-left: 6px solid #22c55e; }

.hidden { display: none !important; }

@media (max-width: 720px) {
  .menu-item { grid-template-columns: 1fr; }
  .menu-item img { width: 100%; height: 150px; }
  .header h1 { font-size: 20px; }
}