/* Shared styles for all web panels (admin, manager, cashier). */
:root {
  --brand: #c0392b;
  --brand-dark: #96281b;
  --bg: #f4f5f7;
  --card: #ffffff;
  --text: #23272e;
  --muted: #6b7280;
  --border: #e5e7eb;
  --ok: #1b8a5a;
  --warn: #d98e04;
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: system-ui, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--text);
}
a { color: var(--brand); text-decoration: none; }
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 220px; background: #1f2430; color: #cbd2dd; padding: 18px 0; flex-shrink: 0;
}
.sidebar .brand { font-size: 18px; font-weight: 700; color: #fff; padding: 0 20px 16px; }
.sidebar a {
  display: block; color: #cbd2dd; padding: 11px 20px; font-size: 14px; border-left: 3px solid transparent;
}
.sidebar a:hover, .sidebar a.active { background: #2a3140; color: #fff; border-left-color: var(--brand); }
.main { flex: 1; min-width: 0; }
.topbar {
  background: var(--card); border-bottom: 1px solid var(--border);
  padding: 14px 24px; display: flex; align-items: center; justify-content: space-between;
}
.topbar h1 { font-size: 18px; margin: 0; }
.content { padding: 24px; }
.grid { display: grid; gap: 16px; }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .cols-4,.cols-3,.cols-2 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cols-4,.cols-3,.cols-2 { grid-template-columns: 1fr; } .sidebar { display:none; } }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.stat { }
.stat .label { color: var(--muted); font-size: 13px; }
.stat .value { font-size: 26px; font-weight: 700; margin-top: 6px; }
.btn {
  display: inline-block; background: var(--brand); color: #fff; border: 0; border-radius: 8px;
  padding: 9px 16px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.btn.secondary { background: #eef0f3; color: #23272e; }
.btn.ok { background: var(--ok); }
.btn.warn { background: var(--warn); }
.btn.small { padding: 5px 10px; font-size: 12px; }
table.data { width: 100%; border-collapse: collapse; background: var(--card); }
table.data th, table.data td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
table.data th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; }
.badge { padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.active, .badge.free, .badge.completed { background: #e6f6ee; color: var(--ok); }
.badge.blocked, .badge.occupied { background: #fdecea; color: var(--brand); }
.badge.new { background: #eaf2ff; color: #1d4ed8; }
.badge.processing { background: #fff4e0; color: var(--warn); }
.badge.delivered { background: #eef9f0; color: var(--ok); }
label { display:block; font-size: 13px; font-weight: 600; margin: 12px 0 6px; }
input, select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid #ccc; border-radius: 8px; font-size: 14px; font-family: inherit;
}
.form-row { display:flex; gap: 14px; } .form-row > div { flex: 1; }
.flash { padding: 11px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.flash.ok { background: #e8f5e9; color: #1b5e20; }
.flash.err { background: #fdecea; color: #b71c1c; }
.login-wrap { display:flex; align-items:center; justify-content:center; min-height:100vh; }
.login-card { width: 360px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background:#ddd; }
.section-title { margin: 4px 0 14px; font-size: 15px; }
.toolbar { display:flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .spacer { flex: 1; }
