/* Kitchen Log — shared styles */
:root {
  --green: #1a7f4e;
  --green-dark: #0f5c37;
  --ink: #16231c;
  --paper: #f6f8f6;
  --card: #ffffff;
  --line: #dfe7e1;
  --muted: #66756d;
  --amber: #b45309;
  --amber-bg: #fef3c7;
  --red: #b91c1c;
  --red-bg: #fee2e2;
  --blue: #1d4ed8;
  --blue-bg: #dbeafe;
  --ok: #15803d;
  --ok-bg: #dcfce7;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(15, 44, 34, .08), 0 4px 14px rgba(15, 44, 34, .06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--paper); color: var(--ink); font-size: 15px; line-height: 1.45;
}
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.topbar {
  background: var(--ink); color: #fff; padding: 18px 0;
  display: flex; justify-content: space-between; align-items: center;
}
.topbar .container { max-width: none; width: 100%; margin: 0; padding: 0 28px; position: relative; }
.topbar .brand { font-weight: 800; font-size: 22px; letter-spacing: .3px; }
.topbar .brand span { color: #7ee2a8; }
.topbar a { color: #d7e5dc; margin-left: 18px; font-size: 15px; }
.topbar .nav-right { display: flex; align-items: center; gap: 14px; position: absolute; left: 50%; transform: translateX(-50%); flex-wrap: wrap; justify-content: center; }
.topbar .nav-right a { margin-left: 0; }
.topbar .dashboard-btn { background: var(--green); color: #fff !important; padding: 9px 18px; border-radius: 8px; font-weight: 700; font-size: 14.5px; }
.topbar .dashboard-btn:hover { background: var(--green-dark); text-decoration: none; }
.topbar .nav-cta { position: absolute; right: 28px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.topbar .nav-cta svg { width: 16px; height: 16px; flex: none; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.card + .card { margin-top: 14px; }
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.btn {
  display: inline-block; background: var(--green); color: #fff; border: 0; border-radius: 8px;
  padding: 9px 16px; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--green-dark); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn.ghost:hover { background: #eaf5ee; }
.btn.danger { background: var(--red); }
.btn.danger:hover { background: #7f1d1d; }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
input, select, textarea {
  width: 100%; padding: 9px 11px; border: 1.5px solid var(--line); border-radius: 8px;
  font-size: 14px; font-family: inherit; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); }
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 10px 0 4px; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.muted { color: var(--muted); font-size: 13px; }
.small { font-size: 13px; }
.mt { margin-top: 12px; } .mb { margin-bottom: 12px; } .mt2 { margin-top: 22px; }
.badge {
  display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap;
}
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--amber-bg); color: var(--amber); }
.badge.high { background: var(--red-bg); color: var(--red); }
.badge.info { background: var(--blue-bg); color: var(--blue); }
.badge.gray { background: #eef2ef; color: var(--muted); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--line); }
td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:hover td { background: #fafcfa; }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
/* left sidebar layout */
.layout { display: flex; align-items: flex-start; }
.sidebar {
  width: 248px; flex-shrink: 0; background: var(--ink); color: #d7e5dc;
  padding: 14px 10px; position: sticky; top: 0; height: calc(100vh - 63px); overflow-y: auto;
  display: flex; flex-direction: column;
}
.sidebar .side-brand { font-weight: 800; color: #fff; font-size: 16.5px; padding: 6px 12px 14px; border-bottom: 1px solid rgba(255,255,255,.14); margin-bottom: 12px; }
.sidebar .side-brand span { color: #7ee2a8; }
.side-item {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  padding: 11px 14px; margin: 2px 0; border: 0; border-radius: 9px; background: none;
  color: #d7e5dc; font-size: 14.5px; font-weight: 600; cursor: pointer;
}
.side-item:hover { background: rgba(255,255,255,.09); color: #fff; }
.side-item.active { background: var(--green); color: #fff; }
.side-item .ic { width: 22px; text-align: center; flex-shrink: 0; }
.side-foot { margin-top: auto; padding: 12px 14px; font-size: 12.5px; color: #8aa397; }
.side-foot a { color: #cdeeda; }
.side-main { flex: 1; min-width: 0; padding: 20px 26px; }
.stat-square {
  width: 150px; height: 150px; display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; border-radius: 14px;
}
@media (max-width: 800px) {
  .layout { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; flex-direction: row; overflow-x: auto; padding: 8px; }
  .sidebar .side-brand { display: none; }
  .side-item { white-space: nowrap; width: auto; }
  .side-foot { display: none; }
  .side-main { padding: 14px; }
}
.tab {
  padding: 9px 16px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer;
  border: 0; background: none; border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.tab.active { color: var(--green); border-bottom-color: var(--green); }
.tab:hover { color: var(--ink); }
.pane { display: none; }
.pane.active { display: block; }
.alert-item { padding: 10px 12px; border-radius: 8px; margin-bottom: 8px; border-left: 4px solid; display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.alert-item.temp { background: var(--red-bg); border-left-color: var(--red); }
.alert-item.missed { background: var(--amber-bg); border-left-color: var(--amber); }
.alert-item.stock { background: var(--blue-bg); border-left-color: var(--blue); }
.alert-item.checklist { background: var(--amber-bg); border-left-color: var(--amber); }
.alert-item.daily { background: var(--blue-bg); border-left-color: var(--blue); }
.alert-item.resolved { background: #f0f3f1; border-left-color: #9aa8a0; color: var(--muted); }
.station-tile { border: 1px solid var(--line); border-radius: 10px; padding: 13px; background: #fff; }
.station-tile .name { font-weight: 700; }
.station-tile .meta { color: var(--muted); font-size: 12.5px; }
.station-tile .last { margin-top: 8px; font-size: 13px; }
.hero { background: linear-gradient(135deg, #0f2e22, #1a7f4e); color: #fff; padding: 64px 0 56px; }
.hero h1 { font-size: 40px; margin-bottom: 12px; }
.hero p { font-size: 17px; color: #cdeeda; max-width: 640px; }
.feature { padding: 22px; }
.feature h3 { margin-bottom: 6px; }
.quote { background: var(--ink); color: #fff; padding: 40px 0; text-align: center; }
.quote p { font-size: 20px; max-width: 720px; margin: 0 auto; font-style: italic; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 20px; }
.price-card { border: 2px solid var(--line); border-radius: 12px; padding: 22px; background: #fff; }
.price-card.featured { border-color: var(--green); box-shadow: var(--shadow); }
.price-card .price { font-size: 30px; font-weight: 800; margin: 8px 0; }
.footer { text-align: center; padding: 30px 0; color: var(--muted); font-size: 13px; }
.chart { display: flex; align-items: flex-end; gap: 8px; height: 90px; padding-top: 6px; }
.chart .bar { flex: 1; background: var(--green); border-radius: 4px 4px 0 0; min-height: 3px; position: relative; }
.chart .bar span { position: absolute; top: -18px; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--muted); }
.chart .day { text-align: center; font-size: 10.5px; color: var(--muted); margin-top: 4px; }
.hidden { display: none !important; }
.qr-box { text-align: center; }
.qr-box img { max-width: 220px; border: 1px solid var(--line); border-radius: 8px; padding: 6px; background: #fff; }
.status-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.status-dot.ok { background: var(--ok); }
.status-dot.high { background: var(--red); }
.status-dot.warn { background: var(--amber); }
.status-dot.off { background: #cbd5d0; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(15, 34, 26, .5); display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal { background: #fff; border-radius: 12px; padding: 22px; max-width: 520px; width: 92%; max-height: 88vh; overflow: auto; }
@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border: 1px solid #ccc; }
}
