:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --surface: #fff;
  --surface-soft: #f8fafc;
  --ink: #182230;
  --muted: #697586;
  --line: #e3e9f1;
  --primary: #315f73;
  --primary-soft: #e3f1f5;
  --blue-soft: #e9f0ff;
  --green: #26705b;
  --green-soft: #e3f3ec;
  --amber: #8b6216;
  --amber-soft: #fff3d9;
  --red: #a44048;
  --red-soft: #fae8ea;
  --gray-soft: #eef1f5;
  --shadow: 0 14px 35px rgba(35, 49, 69, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { background: var(--bg); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.eyebrow { margin: 0 0 4px; color: var(--primary); font-size: .74rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.brand-mark { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 18px; background: linear-gradient(145deg, #dceef5, #eee9fa); color: #315f73; font-size: 1.35rem; font-weight: 900; box-shadow: inset 0 0 0 1px rgba(49, 95, 115, .08); }
.brand-mark.small { width: 42px; height: 42px; border-radius: 13px; font-size: 1rem; }
.login-view { display: grid; min-height: 100dvh; place-items: center; padding: 24px; background: radial-gradient(circle at 15% 15%, #e6f3f7 0, transparent 30%), radial-gradient(circle at 85% 75%, #eee9fa 0, transparent 28%), var(--bg); }
.login-card { width: min(430px, 100%); padding: 36px; border: 1px solid rgba(227, 233, 241, .9); border-radius: 26px; background: rgba(255, 255, 255, .94); box-shadow: var(--shadow); }
.login-card h1 { margin: 14px 0 6px; font-size: clamp(1.5rem, 5vw, 2rem); }
.login-card > .muted { margin: 0 0 26px; }
.form-stack { display: grid; gap: 18px; }
.form-stack label, .field { display: grid; gap: 7px; color: #364152; font-size: .88rem; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid #ccd5e0; border-radius: 12px; background: #fff; color: var(--ink); padding: 11px 13px; outline: none; transition: border-color .16s, box-shadow .16s; }
input:focus, select:focus, textarea:focus { border-color: #76a6ba; box-shadow: 0 0 0 3px rgba(118, 166, 186, .18); }
textarea { min-height: 92px; resize: vertical; }
.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 12px; padding: 9px 16px; font-weight: 800; transition: transform .12s, opacity .12s, background .12s; }
.button:active { transform: translateY(1px); }
.button:disabled { cursor: not-allowed; opacity: .55; }
.button.primary { background: var(--primary); color: #fff; }
.button.secondary { border-color: #cbd9e2; background: #f8fcfd; color: var(--primary); }
.button.ghost { border-color: var(--line); background: #fff; color: #425166; }
.button.danger { background: #a9464e; color: #fff; }
.button.wide { width: 100%; }
.button.compact { min-height: 38px; padding: 7px 12px; font-size: .86rem; }
.language-link { margin: 20px auto 0; display: block; border: 0; background: none; color: var(--primary); font-weight: 800; }
.inline-alert { margin: 15px 0; border-radius: 12px; padding: 11px 13px; font-size: .88rem; }
.inline-alert.error { background: var(--red-soft); color: var(--red); }
.inline-alert.success { background: var(--green-soft); color: var(--green); }
.app-shell { min-height: 100dvh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; width: 252px; flex-direction: column; border-right: 1px solid var(--line); background: rgba(255, 255, 255, .96); padding: 22px 16px; backdrop-filter: blur(18px); }
.brand-row { display: flex; align-items: center; gap: 12px; padding: 0 8px 24px; }
.brand-row strong, .brand-row span { display: block; }
.brand-row strong { font-size: 1.1rem; }
.brand-row span { margin-top: 2px; color: var(--muted); font-size: .73rem; }
.nav-list { display: grid; gap: 6px; }
.nav-list button, .nav-logout { display: flex; width: 100%; min-height: 45px; align-items: center; gap: 11px; border: 0; border-radius: 12px; background: transparent; color: #526071; padding: 10px 12px; text-align: left; font-weight: 700; }
.nav-list button:hover, .nav-list button.active { background: var(--primary-soft); color: var(--primary); }
.nav-icon { display: grid; width: 24px; place-items: center; font-size: 1.06rem; }
.nav-badge { margin-left: auto; min-width: 22px; border-radius: 99px; background: var(--amber-soft); color: var(--amber); padding: 3px 7px; text-align: center; font-size: .7rem; }
.sidebar-footer { margin-top: auto; border-top: 1px solid var(--line); padding-top: 14px; }
.admin-identity { padding: 8px 12px 12px; }
.admin-identity span, .admin-identity small { display: block; }
.admin-identity span { overflow: hidden; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.admin-identity small { margin-top: 3px; color: var(--muted); }
.main-column { min-height: 100dvh; margin-left: 252px; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; min-height: 78px; align-items: center; gap: 14px; border-bottom: 1px solid rgba(227, 233, 241, .9); background: rgba(244, 247, 251, .92); padding: 12px clamp(18px, 3vw, 38px); backdrop-filter: blur(16px); }
.topbar h1 { margin: 0; font-size: clamp(1.25rem, 2vw, 1.65rem); }
.topbar-actions { display: flex; gap: 8px; margin-left: auto; }
.icon-button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); }
.menu-button { display: none; }
.content { width: min(1500px, 100%); margin: 0 auto; padding: 26px clamp(18px, 3vw, 38px) 54px; }
.summary-grid { display: grid; grid-template-columns: repeat(6, minmax(145px, 1fr)); gap: 13px; }
.summary-card { min-height: 112px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); padding: 17px; box-shadow: 0 7px 20px rgba(35, 49, 69, .04); }
.summary-card span { display: block; min-height: 38px; color: var(--muted); font-size: .8rem; font-weight: 700; }
.summary-card strong { display: block; margin-top: 6px; color: var(--primary); font-size: 1.65rem; }
.panel { margin-top: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); box-shadow: 0 8px 22px rgba(35, 49, 69, .04); }
.panel.flush { margin-top: 0; }
.panel-header { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.panel-header h2 { margin: 0; font-size: 1.02rem; }
.panel-header p { margin: 4px 0 0; color: var(--muted); font-size: .82rem; }
.panel-header .button { margin-left: auto; }
.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: .84rem; }
th { position: sticky; top: 0; z-index: 1; background: #f8fafc; color: #536176; padding: 11px 13px; text-align: left; white-space: nowrap; }
td { border-top: 1px solid #edf1f5; padding: 12px 13px; vertical-align: middle; }
tbody tr:hover { background: #fbfcfe; }
.restaurant-cell strong, .restaurant-cell small { display: block; }
.restaurant-cell small { margin-top: 3px; color: var(--muted); }
.chip { display: inline-flex; min-height: 25px; align-items: center; border-radius: 999px; padding: 4px 9px; background: var(--gray-soft); color: #566273; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.chip.amber { background: var(--amber-soft); color: var(--amber); }
.chip.blue { background: var(--blue-soft); color: #3d5f9e; }
.chip.green { background: var(--green-soft); color: var(--green); }
.chip.red { background: var(--red-soft); color: var(--red); }
.toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 11px; margin-bottom: 16px; }
.toolbar .search { flex: 1 1 260px; }
.toolbar .filter { flex: 0 1 220px; }
.toolbar label span { display: block; margin-bottom: 6px; color: var(--muted); font-size: .76rem; font-weight: 800; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding: 13px 18px; color: var(--muted); font-size: .82rem; }
.pagination-actions { display: flex; gap: 7px; }
.empty-state { padding: 50px 24px; color: var(--muted); text-align: center; }
.loading-state { display: grid; min-height: 280px; place-items: center; color: var(--muted); }
.spinner { width: 28px; height: 28px; border: 3px solid #dbe3eb; border-top-color: var(--primary); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.review-dialog { width: min(780px, calc(100% - 28px)); max-height: calc(100dvh - 28px); border: 0; border-radius: 22px; padding: 0; color: var(--ink); box-shadow: 0 28px 80px rgba(23, 34, 48, .24); }
.review-dialog::backdrop { background: rgba(24, 34, 48, .48); backdrop-filter: blur(3px); }
.dialog-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); background: #fff; padding: 18px 20px; }
.dialog-header h2 { margin: 0; font-size: 1.12rem; }
.dialog-header .icon-button { margin-left: auto; }
.dialog-body { padding: 20px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.detail-card { border: 1px solid var(--line); border-radius: 15px; background: var(--surface-soft); padding: 15px; }
.detail-card h3 { margin: 0 0 12px; font-size: .87rem; }
.detail-list { display: grid; grid-template-columns: minmax(110px, .7fr) 1.3fr; gap: 8px 12px; margin: 0; font-size: .82rem; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--line); padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); }
.confirm-pane { margin-top: 16px; border: 1px solid #dce5ec; border-radius: 15px; background: #fff; padding: 16px; }
.confirm-pane h3 { margin: 0 0 6px; }
.confirm-pane p { margin: 0 0 14px; color: var(--muted); font-size: .86rem; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.transition { white-space: nowrap; }
.sidebar-backdrop { display: none; }
@media (max-width: 1180px) { .summary-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) {
  .sidebar { transform: translateX(-105%); transition: transform .2s ease; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 25; border: 0; background: rgba(24, 34, 48, .4); }
  .sidebar.open + .main-column + .sidebar-backdrop { display: block; }
  .main-column { margin-left: 0; }
  .menu-button { display: block; }
  .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .login-card { padding: 26px 20px; border-radius: 21px; }
  .topbar { min-height: 70px; padding-inline: 13px; }
  .topbar .eyebrow { display: none; }
  .topbar-actions .secondary span:last-child { display: none; }
  .content { padding: 17px 12px 38px; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .summary-card { min-height: 98px; padding: 14px; }
  .summary-card strong { font-size: 1.4rem; }
  .panel { margin-top: 16px; border-radius: 15px; }
  .panel-header { align-items: flex-start; padding: 15px; }
  .toolbar .filter { flex: 1 1 180px; }
  .pagination { align-items: flex-start; flex-direction: column; }
  .review-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); border-radius: 18px; }
  .dialog-header, .dialog-body, .dialog-actions { padding-left: 14px; padding-right: 14px; }
  .dialog-actions { flex-wrap: wrap; }
  .dialog-actions .button { flex: 1 1 150px; }
}
