/* OrderBot - modern internal operations console */
:root {
  --bg: #f3f5f8;
  --panel: #ffffff;
  --panel-2: #f7f8fa;
  --border: #e2e6ec;
  --border-strong: #c9d0da;
  --text: #15202b;
  --muted: #667485;
  --navy: #0f2740;
  --navy-2: #1a3a57;
  --brand: #0f8f6a;
  --brand-dark: #0b7356;
  --brand-soft: #e6f6f0;
  --danger: #c62828;
  --danger-soft: #fdecea;
  --warn: #b26a00;
  --warn-soft: #fff6e5;
  --info: #1e6fbf;
  --info-soft: #e8f2fc;
  --radius: 10px;
  --radius-sm: 8px;
  --font: "Manrope", "Segoe UI", sans-serif;
  --font-brand: "Sora", "Manrope", sans-serif;
  --shadow: 0 1px 2px rgba(15, 39, 64, 0.04), 0 8px 24px rgba(15, 39, 64, 0.04);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(1200px 400px at 10% -10%, #dceee7 0%, transparent 55%),
    radial-gradient(900px 360px at 100% 0%, #d9e6f4 0%, transparent 50%),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--info); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--navy); }

.muted { color: var(--muted); }
.small { font-size: 12px; }

/* Text-only wordmark */
.brand-logo {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-brand);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  text-decoration: none !important;
  color: inherit;
}
.brand-logo-img {
  display: block;
  max-height: 28px;
  max-width: 140px;
  object-fit: contain;
}
.brand-logo-bot { color: #5ee0b5; font-size: 1.2rem; }
.brand-logo-lg .brand-logo-order,
.brand-logo-lg .brand-logo-bot { font-size: 1.85rem; }
.auth-brand .brand-logo-order { color: var(--navy); }
.auth-brand .brand-logo-bot { color: var(--brand); }
.auth-brand { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.5rem; }
.auth-brand p { margin: 0; }

/* --- Auth --- */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(800px 320px at 20% 0%, #d8efe7 0%, transparent 55%),
    var(--bg);
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.85rem 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: var(--shadow);
}
.auth-card h1 { margin: 0; font-size: 1.35rem; color: var(--navy); }

/* --- App chrome --- */
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
  height: 60px;
  background: #0b1f33;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.35rem;
  flex-shrink: 0;
}
.topbar-brand { display: flex; align-items: center; gap: 0.85rem; }
.topbar-chip {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}
.topbar-mark {
  width: 30px;
  height: 30px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.topbar-titles { display: flex; flex-direction: column; line-height: 1.15; }
.topbar-titles strong { font-size: 15px; font-weight: 650; }
.topbar-titles span { font-size: 11px; color: rgba(255,255,255,0.7); }
.topbar-meta { display: flex; align-items: center; gap: 0.85rem; font-size: 13px; }
.topbar-user { color: rgba(255,255,255,0.8); }
.topbar-user-chip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.2rem 0.55rem 0.2rem 0.2rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}
.topbar-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 750;
}
.topbar-user-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  padding-right: 0.35rem;
}
.topbar-user-text strong { font-size: 12.5px; font-weight: 700; }
.topbar-user-text small { font-size: 10.5px; color: rgba(255,255,255,0.55); }
.topbar-link {
  color: #fff;
  border: none;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-weight: 650;
  background: rgba(255,255,255,0.1);
}
.topbar-link:hover { background: rgba(255,255,255,0.18); text-decoration: none; color: #fff; }

.app-body { display: flex; flex: 1; min-height: 0; }

.sidebar {
  width: 232px;
  background: #fbfcfd;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  padding: 0.85rem 0.7rem 0.7rem;
}
.sidebar-label {
  padding: 0.35rem 0.75rem 0.55rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 0;
  flex: 1;
  gap: 4px;
}
.sidebar-nav a {
  color: #3d4b5c;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border-left: none;
  font-size: 14px;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  transition: background 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}
.sidebar-nav a:hover {
  background: #eef2f6;
  text-decoration: none;
  color: var(--navy);
}
.sidebar-nav a.on {
  background: #fff;
  color: var(--navy);
  font-weight: 750;
  box-shadow: 0 1px 2px rgba(15, 39, 64, 0.05), 0 0 0 1px var(--border);
}
.sidebar-nav a.on .nav-svg { color: var(--brand); }
.nav-svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #7a8796;
}
.nav-ico { display: none; }
.sidebar-foot {
  border-top: none;
  padding: 0.65rem 0.75rem 0.25rem;
  background: transparent;
  margin-top: 0.5rem;
}
.who { color: var(--muted); font-size: 12px; }
.who strong { color: var(--text); font-weight: 650; }
.who-mode {
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: #eef2f6;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
}
.logout { color: var(--muted); font-size: 0.9rem; }

.workspace { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.content {
  flex: 1;
  padding: 1.35rem 1.6rem 2rem;
  max-width: none;
}
.app-footer {
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.7);
  padding: 0.55rem 1.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 11px;
  color: var(--muted);
}

.layout { display: flex; min-height: 100vh; }
.brand { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; color: var(--navy); }

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}
.page-head h1 { margin: 0; }
.page-kicker {
  margin: 0 0 0.25rem;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-brand);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.03em;
}
h2 {
  margin: 1.5rem 0 0.75rem;
  font-size: 1rem;
  font-weight: 750;
  color: var(--navy);
  padding-bottom: 0;
  border-bottom: none;
  letter-spacing: -0.01em;
}
h3 { margin: 1rem 0 0.5rem; font-size: 0.95rem; color: var(--navy); }

.flash {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.95rem;
  font-size: 13px;
  border: 1px solid transparent;
}
.flash-ok { background: var(--brand-soft); border-color: #b7dfcf; color: #0b5c44; }
.flash-err { background: var(--danger-soft); border-color: #f0b6bf; color: #8f0c20; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.85rem; }
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  box-shadow: var(--shadow);
}
.card-label {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}
.card-value {
  font-family: var(--font-brand);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.03em;
}
.card-hint { font-size: 12px; color: var(--muted); }

/* Dashboard visibility panels */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}
.dash-panel {
  grid-column: span 6;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.dash-panel.span-4 { grid-column: span 4; }
.dash-panel.span-8 { grid-column: span 8; }
.dash-panel.span-12 { grid-column: span 12; }
.dash-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fbfcfd, #f7f8fa);
}
.dash-panel-head h2 {
  margin: 0;
  font-size: 0.95rem;
}
.dash-panel-body { padding: 0.9rem 1rem 1.05rem; flex: 1; }
.dash-stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 0.65rem;
}
.dash-stat {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.7rem;
}
.dash-stat strong {
  display: block;
  font-family: var(--font-brand);
  font-size: 1.2rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.dash-stat span { font-size: 11px; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: 0.04em; }
.dash-meta-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.dash-meta-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 13px;
  padding-bottom: 0.45rem;
  border-bottom: 1px dashed var(--border);
}
.dash-meta-list li:last-child { border-bottom: none; padding-bottom: 0; }
.dash-meta-list .k { color: var(--muted); font-weight: 600; }
.dash-meta-list .v { color: var(--navy); font-weight: 700; text-align: right; }
.open-pill, .closed-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 12px;
  font-weight: 750;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}
.open-pill { background: var(--brand-soft); color: var(--brand-dark); }
.closed-pill { background: var(--danger-soft); color: var(--danger); }
.quick-links { display: flex; flex-wrap: wrap; gap: 0.45rem; }
@media (max-width: 980px) {
  .dash-panel, .dash-panel.span-4, .dash-panel.span-8 { grid-column: span 12; }
}

.checklist { list-style: none; padding: 0; }
.checklist li { padding: 0.45rem 0 0.45rem 1.6rem; position: relative; }
.checklist li::before { position: absolute; left: 0; }
.checklist li.done::before { content: "✓"; color: var(--brand); font-weight: 700; }
.checklist li.todo::before { content: "○"; color: var(--muted); }

/* Forms */
.form, fieldset { display: flex; flex-direction: column; gap: 0.85rem; }
fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin: 0 0 1rem;
  background: var(--panel);
}
legend {
  padding: 0 0.4rem;
  color: var(--navy);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 12px; color: var(--muted); font-weight: 600; }
label.check { flex-direction: row; align-items: center; gap: 0.45rem; color: var(--text); font-weight: 500; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }

.config-wrap { display: flex; gap: 1.25rem; align-items: flex-start; }
.config-side {
  flex: 0 0 168px;
  position: sticky;
  top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.35rem;
}
.config-tab {
  text-align: left;
  padding: 0.5rem 0.7rem;
  border: none;
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.config-tab:hover { color: var(--text); background: var(--panel-2); }
.config-tab.on {
  color: var(--navy);
  background: var(--panel-2);
  border-left-color: var(--brand);
  font-weight: 650;
}
.config-body { flex: 1; min-width: 0; }
.config-panel { display: none; }
.config-panel.on { display: block; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.field-grid .span-2 { grid-column: 1 / -1; }
.field-grid p.span-2 { margin: -0.2rem 0 0; }
.behavior-profile-list { margin: 0; padding-left: 1.15rem; color: var(--text); }
.behavior-profile-list li { margin: 0.2rem 0; }
.catalog-create-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 0.9rem;
  align-items: end;
}
.catalog-create-row .check-field {
  min-width: 9.5rem;
}
.catalog-create-row .check-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0.55rem 0 0.35rem;
  flex: none;
}
.config-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.25rem;
  padding: 0.75rem 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
@media (max-width: 760px) {
  .config-wrap { flex-direction: column; }
  .config-side { flex-direction: row; flex-wrap: wrap; position: static; flex-basis: auto; }
  .field-grid { grid-template-columns: 1fr; }
  .catalog-create-row { grid-template-columns: 1fr; }
  .app-body { flex-direction: column; }
  .sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); }
  .sidebar-nav { flex-direction: row; flex-wrap: wrap; }
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="date"],
input[type="time"],
select,
textarea {
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0.45rem 0.55rem;
  color: var(--text);
  font: inherit;
  font-size: 13px;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--info);
  box-shadow: 0 0 0 2px rgba(26, 111, 181, 0.15);
}
textarea { resize: vertical; min-height: 72px; }

.btn {
  display: inline-block;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
  font-family: inherit;
}
.btn:hover { background: var(--panel-2); text-decoration: none; }
.btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand-dark);
}
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-sm { padding: 0.25rem 0.55rem; font-size: 12px; }
.btn-danger { color: var(--danger); border-color: #e3a0ab; }
.btn-danger:hover { background: var(--danger); color: #fff; }
.row-actions { display: flex; gap: 0.55rem; margin-top: 0.95rem; flex-wrap: wrap; align-items: center; }
.table .row-actions { margin-top: 0; justify-content: flex-end; }
.table .row-actions form { margin: 0; }
.inline-status { margin: 0; }
.inline-status select {
  min-width: 8.5rem;
  max-width: 11rem;
  padding: 0.28rem 0.5rem;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--panel);
  color: inherit;
  cursor: pointer;
}
.inline-status select:focus {
  outline: 2px solid color-mix(in srgb, var(--brand) 35%, transparent);
  outline-offset: 1px;
}

.inline-form { display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.inline-form input, .inline-form select { flex: 1; min-width: 160px; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  margin-bottom: 1.15rem;
  padding: 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.form-grid .field { display: flex; flex-direction: column; gap: 0.3rem; }
.form-grid .field label { color: var(--muted); font-size: 12px; }
.form-grid .field-actions { grid-column: 1 / -1; align-items: flex-start; }
.business-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  padding: 0.75rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--panel-2);
}
.business-fields p { grid-column: 1 / -1; margin: 0; }

.badge {
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 650;
  background: var(--panel-2);
  color: var(--muted);
  border: 1px solid var(--border);
}
.badge-cloud { background: var(--info-soft); color: var(--info); border-color: #b8d7ef; }
.branch-tag {
  font-size: 11px;
  font-weight: 650;
  vertical-align: middle;
  padding: 0.1rem 0.45rem;
  border-radius: 2px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border: 1px solid #b7dfb0;
}

/* Tables - dense ERP */
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.table th, .table td {
  text-align: left;
  padding: 0.45rem 0.65rem;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.table th {
  color: var(--navy);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 700;
  background: var(--panel-2);
  border-bottom: 1px solid var(--border-strong);
}
.table tbody tr:hover { background: #f9fbfc; }
.table code {
  background: var(--panel-2);
  padding: 0.05rem 0.3rem;
  border-radius: 2px;
  border: 1px solid var(--border);
  font-size: 12px;
}

/* ERP order register */
.erp-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}
.erp-kpis { display: flex; gap: 0.55rem; flex-wrap: wrap; }
.erp-kpi {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.45rem 0.75rem;
  min-width: 6.5rem;
  box-shadow: var(--shadow);
}
.erp-kpi strong { display: block; font-size: 1.05rem; margin-top: 0.1rem; color: var(--navy); }
.erp-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.75rem;
  padding: 0.6rem 0.7rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.erp-filters input[type="search"] { min-width: 14rem; flex: 1; }
.erp-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.erp-table { margin: 0; border: none; border-radius: 0; box-shadow: none; font-size: 12.5px; }
.erp-table th, .erp-table td {
  padding: 0.35rem 0.55rem;
  white-space: nowrap;
  vertical-align: top;
}
.erp-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #e9eef3;
}
.erp-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.erp-table .nowrap { white-space: nowrap; }
.erp-table .truncate {
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.erp-table tr.row-fail { background: var(--danger-soft); }
.erp-type {
  display: inline-block;
  padding: 0.05rem 0.35rem;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 650;
  background: var(--panel-2);
  border: 1px solid var(--border);
}
.erp-type-delivery { border-color: #9ec4e6; color: var(--info); background: var(--info-soft); }
.erp-type-takeaway { border-color: #e6d09a; color: var(--warn); background: var(--warn-soft); }
.erp-type-dine_in { border-color: #b7dfb0; color: var(--brand-dark); background: var(--brand-soft); }
.erp-pager {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  justify-content: flex-end;
  margin-top: 0.7rem;
}
.actions { display: flex; gap: 0.3rem; align-items: center; flex-wrap: wrap; }
.actions form { margin: 0; }

.status {
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 650;
  text-transform: capitalize;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--muted);
}
.status-open { background: var(--brand-soft); color: var(--brand-dark); border-color: #b7dfb0; }
.status-connecting { background: var(--warn-soft); color: var(--warn); border-color: #e6d09a; }
.status-created, .status-close, .status-unknown { background: var(--panel-2); color: var(--muted); }

.pos-status {
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 650;
  border: 1px solid var(--border);
}
.pos-success, .pos-matched { background: var(--brand-soft); color: var(--brand-dark); border-color: #b7dfb0; }
.pos-failed, .pos-unmatched { background: var(--danger-soft); color: var(--danger); border-color: #f0b6bf; }
.pos-pending, .pos-ambiguous { background: var(--warn-soft); color: var(--warn); border-color: #e6d09a; }
.pos-local, .pos-not_attempted { background: var(--panel-2); color: var(--muted); }
.row-off td:not(.actions) { opacity: 0.55; }

/* Client header + subnav */
.client-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.client-head h1 { margin-bottom: 0.15rem; }
.subnav {
  display: flex;
  gap: 0.2rem;
  margin: 0.85rem 0 1.25rem;
  flex-wrap: wrap;
  background: #eef2f6;
  padding: 0.3rem;
  border-radius: 14px;
  border: none;
  box-shadow: none;
}
.subnav a {
  padding: 0.55rem 0.95rem;
  color: #5a6878;
  font-size: 13.5px;
  font-weight: 650;
  border-bottom: none;
  margin-bottom: 0;
  border-radius: 11px;
}
.subnav a:hover { color: var(--navy); text-decoration: none; background: rgba(255,255,255,0.7); }
.subnav a.on {
  color: var(--navy);
  background: #fff;
  border-bottom-color: transparent;
  box-shadow: 0 1px 2px rgba(15, 39, 64, 0.06);
  font-weight: 750;
}
.subnav a.back {
  margin-left: auto;
  color: var(--info);
  font-weight: 650;
  background: transparent;
}

.config-sep { border: none; border-top: 1px solid var(--border); margin: 0.9rem 0; }

.toggle-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 0.95rem;
  margin-top: 0.5rem;
  background: var(--panel);
}
.toggle-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.toggle-head p { margin: 0.15rem 0 0; }
.toggle-card .field-grid { margin-top: 0.85rem; }

.ops-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 700;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.ops-badge.ops-external {
  background: var(--brand-soft);
  color: var(--brand-dark);
  border: 1px solid #b7dfb0;
}
.ops-badge.ops-internal {
  background: var(--panel-2);
  color: var(--muted);
  border: 1px solid var(--border);
}
.ops-mode-block { margin-bottom: 1rem; padding-bottom: 0.85rem; border-bottom: 1px solid var(--border); }
.ops-mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
.ops-mode-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 0.9rem;
  cursor: pointer;
  background: var(--panel);
  position: relative;
}
.ops-mode-card input { position: absolute; opacity: 0; pointer-events: none; }
.ops-mode-card.on {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.ops-mode-card strong { font-size: 0.95rem; color: var(--navy); }
.ops-mode-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-dark);
}
.ops-mode-points { margin: 0.35rem 0 0; padding-left: 1rem; }
.ops-mode-points li { margin: 0.1rem 0; }
.ops-checklist { margin: 0.65rem 0 0; padding-left: 1rem; }
.ops-checklist li { margin: 0.2rem 0; }
.setup-hero { margin-bottom: 1rem; }
.setup-guide {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 0.95rem;
  background: var(--panel-2);
}
.setup-guide-head { display: flex; align-items: center; justify-content: space-between; gap: 0.65rem; }
.setup-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.setup-step {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.55rem;
  align-items: start;
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
}
.setup-step.done { border-color: #b7dfb0; background: #f7fcf6; }
.setup-step-mark {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--muted);
}
.setup-step.done .setup-step-mark {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand-dark);
}
@media (max-width: 720px) {
  .ops-mode-grid { grid-template-columns: 1fr; }
  .setup-step { grid-template-columns: auto 1fr; }
  .setup-step .btn { grid-column: 2; justify-self: start; }
}
.locked { opacity: 0.45; pointer-events: none; }

.switch { position: relative; display: inline-block; width: 40px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: #c5ccd6;
  border-radius: 2px;
  transition: background 0.12s ease;
}
.switch-slider::before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.12s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.switch input:checked + .switch-slider { background: var(--brand); }
.switch input:checked + .switch-slider::before { transform: translateX(18px); }

.hours-table { width: 100%; border-collapse: collapse; background: var(--panel); }
.hours-table th, .hours-table td {
  text-align: left;
  padding: 0.4rem 0.55rem;
  border-bottom: 1px solid var(--border);
}
.hours-table th { color: var(--muted); font-weight: 700; font-size: 12px; }
.hours-table td:first-child { font-weight: 650; }
.hours-table input[type="checkbox"] { width: 16px; height: 16px; }

.qr-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  max-width: 360px;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: var(--shadow);
}
.qr-box img {
  display: block;
  width: min(240px, 100%);
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin: 0 auto 0.85rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  box-sizing: border-box;
}
.qr-box p { margin: 0.45rem 0 0; word-wrap: break-word; overflow-wrap: anywhere; }
.pair { font-size: 1.05rem; letter-spacing: 0.08em; display: inline-block; max-width: 100%; font-weight: 650; }

/* Analytics funnel */
.analytics-funnel {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow);
}
.analytics-funnel-step {
  position: relative;
  min-height: 2rem;
  display: flex;
  align-items: center;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.analytics-funnel-bar {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--brand-soft);
  border-right: 2px solid var(--brand);
  max-width: 100%;
}
.analytics-funnel-meta {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0.4rem 0.7rem;
  font-size: 13px;
}
.analytics-funnel-meta strong { color: var(--navy); font-weight: 650; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* --- Simple / demo UI (role.friendly_ui) --- */
.ui-friendly .content { max-width: 980px; }
.ui-friendly .sidebar { width: 200px; }
.friendly-hero h1 {
  font-size: 1.85rem;
  margin-bottom: 0.45rem;
}
.friendly-status-line { margin: 0; }
.friendly-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.15rem;
}
.friendly-banner-title {
  margin: 0;
  font-family: var(--font-brand);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.friendly-banner-stats {
  display: flex;
  gap: 1.25rem;
}
.friendly-banner-stats div {
  text-align: right;
}
.friendly-banner-stats strong {
  display: block;
  font-family: var(--font-brand);
  font-size: 1.45rem;
  color: var(--navy);
  letter-spacing: -0.03em;
}
.friendly-banner-stats span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 650;
}
.friendly-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}
.friendly-tile {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.15rem 1.1rem;
  box-shadow: var(--shadow);
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}
.friendly-tile:hover {
  transform: translateY(-2px);
  border-color: #b7dfcf;
  box-shadow: 0 10px 28px rgba(15, 39, 64, 0.08);
  color: inherit;
}
.friendly-tile-label {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.friendly-tile-value {
  font-family: var(--font-brand);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.friendly-tile-hint {
  font-size: 12.5px;
  color: var(--muted);
}
.friendly-list-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1.15rem 1.1rem;
  box-shadow: var(--shadow);
}
.friendly-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}
.friendly-list-head h2 { margin: 0; font-size: 1rem; }
.friendly-order-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.friendly-order-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}
.friendly-order-list li:last-child { border-bottom: none; }
.friendly-order-meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  color: var(--navy);
}
.friendly-switch-card {
  background: linear-gradient(180deg, #f3fbf7, #fff);
  border-color: #b7dfcf;
}
.ui-friendly .subnav {
  border-radius: 14px;
  padding: 0.3rem;
}
@media (max-width: 720px) {
  .friendly-banner-stats { width: 100%; justify-content: space-between; }
  .friendly-banner-stats div { text-align: left; }
}

/* --- Sedap admin layout (reference dashboard) --- */
.sedap {
  --sedap-bg: #f3f2f7;
  --sedap-green: #00b074;
  --sedap-green-dark: #009460;
  --sedap-green-soft: #e8f8f2;
  --sedap-sidebar: #ffffff;
  --sedap-text: #464255;
  --sedap-muted: #a3a3a3;
  flex-direction: row;
  background: var(--sedap-bg);
  min-height: 100vh;
}
.sedap .brand-logo-order { color: #1f8f6a; font-size: 1.45rem; }
.sedap .brand-logo-bot { color: #00b074; font-size: 1.45rem; }
.sedap .brand-logo-dot { color: #ff5b5b; font-size: 1.45rem; font-family: var(--font-brand); font-weight: 700; }
.auth-brand .brand-logo-dot { color: #ff5b5b; }

.sedap .sidebar {
  width: 248px;
  background: var(--sedap-sidebar);
  border-right: none;
  box-shadow: 4px 0 24px rgba(70, 66, 85, 0.04);
  padding: 1.25rem 1rem 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sedap .sidebar-brand { padding: 0.25rem 0.55rem 1.25rem; }
.sedap .sidebar-nav { gap: 2px; }
.sedap .sidebar-nav a {
  border-radius: 12px;
  padding: 0.72rem 0.9rem;
  color: var(--sedap-text);
  font-weight: 600;
  position: relative;
}
.sedap .sidebar-nav a svg { width: 18px; height: 18px; color: #b0b0b8; }
.sedap .sidebar-nav a:hover { background: #f6f6f9; }
.sedap .sidebar-nav a.on {
  background: var(--sedap-green-soft);
  color: var(--sedap-green);
  box-shadow: none;
  font-weight: 750;
}
.sedap .sidebar-nav a.on::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--sedap-green);
}
.sedap .sidebar-nav a.on svg { color: var(--sedap-green); }
.sedap .sidebar-section {
  margin: 1rem 0.6rem 0.35rem;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sedap-muted);
}
.sedap .sidebar-promo {
  margin-top: auto;
  background: linear-gradient(160deg, #00b074, #009e68);
  color: #fff;
  border-radius: 16px;
  padding: 1rem;
  margin-top: 1.25rem;
}
.sedap .sidebar-promo p { margin: 0 0 0.75rem; font-size: 13px; font-weight: 650; line-height: 1.35; }
.sedap .btn-promo {
  display: inline-flex;
  background: #fff;
  color: var(--sedap-green-dark);
  font-weight: 750;
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  text-decoration: none !important;
  font-size: 13px;
}
.sedap .workspace { background: var(--sedap-bg); min-width: 0; flex: 1; display: flex; flex-direction: column; }
.sedap .topbar {
  height: auto;
  background: transparent;
  color: var(--sedap-text);
  padding: 1.15rem 1.5rem 0.35rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.sedap .top-search {
  flex: 1;
  min-width: 220px;
  max-width: 520px;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: #fff;
  border-radius: 14px;
  padding: 0.65rem 0.9rem;
  box-shadow: 0 2px 10px rgba(70,66,85,0.04);
}
.sedap .top-search svg { width: 18px; height: 18px; color: #b0b0b8; }
.sedap .top-search input {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  width: 100%;
}
.sedap .topbar-right { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; flex-wrap: wrap; }
.sedap .client-switcher select {
  border-radius: 12px;
  border: 1px solid #e8e7ee;
  background: #fff;
  padding: 0.55rem 0.75rem;
  min-width: 180px;
  font-weight: 650;
}
.sedap .workspace-name {
  font-weight: 750;
  color: var(--sedap-text);
  background: #fff;
  border-radius: 12px;
  padding: 0.55rem 0.85rem;
}
.sedap .topbar-user-chip {
  background: transparent;
  gap: 0.65rem;
}
.sedap .topbar-hello { font-weight: 650; color: var(--sedap-text); }
.sedap .topbar-avatar {
  width: 40px;
  height: 40px;
  background: var(--sedap-green);
  font-size: 14px;
}
.sedap .topbar-link {
  background: #fff;
  color: var(--sedap-text);
  border-radius: 12px;
}
.sedap .topbar-link:hover { background: var(--sedap-green-soft); color: var(--sedap-green); }
.sedap .content { padding: 0.75rem 1.5rem 2rem; }
.sedap .app-footer { display: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.dash-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.15rem;
}
.dash-title h1 { margin: 0; font-size: 1.7rem; color: #464255; }
.period-chip {
  background: #fff;
  border-radius: 12px;
  padding: 0.55rem 0.85rem;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--sedap-muted);
  box-shadow: 0 2px 10px rgba(70,66,85,0.04);
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.kpi-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.1rem 1.15rem;
  display: flex;
  gap: 0.85rem;
  align-items: center;
  box-shadow: 0 4px 18px rgba(70,66,85,0.05);
}
.kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.kpi-green { background: #e8f8f2; }
.kpi-teal { background: #e6f7f4; }
.kpi-red { background: #ffe8e8; color: #ff5b5b; }
.kpi-mint { background: #e9fbf4; }
.kpi-value { font-family: var(--font-brand); font-size: 1.55rem; font-weight: 750; color: #464255; letter-spacing: -0.03em; }
.kpi-label { color: var(--sedap-muted); font-size: 13px; font-weight: 650; }

.sedap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.sedap-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.1rem 1.15rem 1.2rem;
  box-shadow: 0 4px 18px rgba(70,66,85,0.05);
}
.sedap-card.span-2 { grid-column: span 2; }
.sedap-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}
.sedap-card-head h2 { margin: 0; font-size: 1.05rem; color: #464255; }

.rings-row { display: flex; justify-content: space-around; gap: 0.75rem; flex-wrap: wrap; padding: 0.5rem 0 0.25rem; }
.ring {
  --p: 0;
  --c: #00b074;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), #eee 0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.ring::before {
  content: "";
  position: absolute;
  inset: 12px;
  background: #fff;
  border-radius: 50%;
}
.ring strong, .ring span { position: relative; z-index: 1; }
.ring strong { font-size: 1.15rem; color: #464255; }
.ring span { font-size: 11px; color: var(--sedap-muted); font-weight: 650; text-align: center; padding: 0 0.4rem; }

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.55rem;
  height: 180px;
  padding: 0.5rem 0.25rem 0;
}
.bar-chart.wide { height: 160px; }
.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  gap: 0.25rem;
}
.bar-fill {
  width: 100%;
  max-width: 28px;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, #5b8def, #2d9cdb);
  min-height: 4px;
}
.bar-fill.alt { background: linear-gradient(180deg, #ffb84d, #ff5b5b); }
.bar-col span { font-size: 11px; color: var(--sedap-muted); font-weight: 650; }
.bar-col small { font-size: 10px; color: #464255; font-weight: 750; }

.line-chart { width: 100%; }
.line-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 0 0 0.35rem;
  font-size: 12px;
  color: var(--sedap-muted);
  font-weight: 650;
}
.line-chart-legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.line-chart-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.line-chart-svg {
  width: 100%;
  height: auto;
  display: block;
}
.line-chart-grid {
  stroke: #e8e6ef;
  stroke-width: 1;
}
.line-chart-axis {
  fill: var(--sedap-muted);
  font-size: 10px;
  font-weight: 650;
}
.line-chart-label {
  fill: var(--sedap-muted);
  font-size: 11px;
  font-weight: 650;
}
.line-chart-dot { stroke: #fff; stroke-width: 1.5; }

.table.clean { border: none; box-shadow: none; }
.sedap-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.85rem; }
.sedap-tile-form { margin: 0; }
.sedap-pick-card {
  width: 100%;
  text-align: left;
  background: #fff;
  border: none;
  border-radius: 16px;
  padding: 1.15rem;
  box-shadow: 0 4px 18px rgba(70,66,85,0.05);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.sedap-pick-card strong { font-size: 1.05rem; color: #464255; }
.sedap-pick-card span { color: var(--sedap-muted); font-size: 13px; }
.sedap-pick-card:hover { outline: 2px solid var(--sedap-green-soft); }

.sedap .page-head h1 { color: #464255; }
.sedap .btn-primary { background: var(--sedap-green); border-color: var(--sedap-green-dark); }
.sedap .btn-primary:hover { background: var(--sedap-green-dark); }

@media (max-width: 1100px) {
  .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sedap-grid { grid-template-columns: 1fr; }
  .sedap-card.span-2 { grid-column: span 1; }
}
@media (max-width: 860px) {
  .sedap { flex-direction: column; }
  .sedap .sidebar { width: 100%; height: auto; position: static; }
  .sedap .sidebar-nav { flex-direction: row; flex-wrap: wrap; }
  .kpi-row { grid-template-columns: 1fr; }
}

.kpi-glyph{font-size:12px;font-weight:800;letter-spacing:0.04em;color:#009460}
.kpi-red .kpi-glyph{color:#ff5b5b}

.prop-hero {
  background: #fff;
  border-radius: 18px;
  padding: 1.35rem 1.4rem 1.2rem;
  box-shadow: 0 4px 18px rgba(70,66,85,0.05);
  margin-bottom: 1rem;
}
.prop-hero-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--sedap-muted);
}
.prop-hero h1 { margin: 0.2rem 0 0.15rem; font-size: 1.55rem; color: #464255; }
.prop-hero p { margin: 0; color: var(--sedap-muted); }
.prop-badges { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.75rem; }
.prop-toc {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin: 0 0 1rem;
  font-size: 13px;
  font-weight: 650;
}
.prop-toc a { color: #009460; text-decoration: none; }
.prop-tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin: 0 0 0.85rem;
  padding: 0.45rem 0.5rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(70,66,85,0.06);
}
.prop-tab {
  border: 0;
  background: transparent;
  color: #6b6678;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  cursor: pointer;
}
.prop-tab:hover { background: #f4f2f7; color: #464255; }
.prop-tab.on { background: #e8f8f0; color: #009460; }
.prop-panel { display: none; }
.prop-panel.on { display: block; }
.prop-panel.form-grid.on { display: grid; }
.prop-save-bar {
  position: sticky;
  bottom: 0.75rem;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 -4px 18px rgba(70,66,85,0.08);
}
.prop-section {
  background: #fff;
  border-radius: 16px;
  padding: 1.1rem 1.2rem 1.25rem;
  box-shadow: 0 4px 18px rgba(70,66,85,0.05);
  margin-bottom: 1rem;
}
.prop-section h2 { margin: 0 0 0.75rem; font-size: 1.05rem; color: #464255; }
.prop-section h3 { margin: 1rem 0 0.45rem; font-size: 0.95rem; }
.prop-dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.65rem 1rem;
  margin: 0;
}
.prop-dl dt { font-size: 12px; font-weight: 700; color: var(--sedap-muted); }
.prop-dl dd { margin: 0.1rem 0 0; font-weight: 650; color: #464255; }
.prop-nearby, .prop-checks, .prop-stages { list-style: none; padding: 0; margin: 0; }
.prop-nearby li, .prop-checks li, .prop-stages li {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  flex-wrap: wrap;
  padding: 0.45rem 0;
  border-bottom: 1px solid #f1f0f4;
}
.prop-add-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.85rem;
}
.prop-add-row input, .prop-add-row select { min-width: 8rem; }
.inline-form { display: inline; margin-left: auto; }
.prop-bar {
  flex: 1;
  min-width: 80px;
  height: 8px;
  background: #eee;
  border-radius: 99px;
  overflow: hidden;
}
.prop-bar i {
  display: block;
  height: 100%;
  background: #00b074;
}
.prop-form h2 { margin: 0.4rem 0 0; font-size: 1rem; color: #464255; }
.prop-form .span-2 { grid-column: span 2; }
.prop-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 0.75rem;
}
.prop-media-card {
  margin: 0;
  background: #f7f6f9;
  border-radius: 12px;
  overflow: hidden;
}
.prop-media-card img,
.prop-media-card video {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: #eceaf0;
}
.prop-media-link {
  display: block;
  padding: 1.1rem 0.75rem 0.4rem;
  font-size: 12px;
  word-break: break-all;
}
.prop-media-card figcaption {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.55rem;
  font-size: 12px;
  color: #464255;
}
.prop-media-card .inline-form { margin-left: auto; }
@media (max-width: 860px) {
  .prop-form .span-2 { grid-column: span 1; }
}

/* ---- LalQila Karachi dashboard ---- */
.lq-hero {
  --lq-ink: #2a1410;
  --lq-maroon: #7a1f18;
  --lq-gold: #c9a227;
  --lq-sand: #f6efe2;
  --lq-stone: #efe4d2;
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 1rem;
  margin: 0 0 1.15rem;
  padding: 1.45rem 1.5rem 1.35rem;
  border-radius: 20px;
  color: #fff8ee;
  background:
    radial-gradient(1200px 420px at 10% -20%, rgba(201, 162, 39, 0.28), transparent 55%),
    linear-gradient(135deg, #3d1612 0%, #7a1f18 48%, #24100d 100%);
  box-shadow: 0 14px 36px rgba(42, 20, 16, 0.18);
  overflow: hidden;
  position: relative;
}
.lq-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 12px,
      rgba(255, 248, 238, 0.02) 12px,
      rgba(255, 248, 238, 0.02) 13px
    );
  pointer-events: none;
}
.lq-hero-compact {
  grid-template-columns: 1fr;
  padding: 1.1rem 1.25rem;
}
.lq-hero-copy,
.lq-hero-aside {
  position: relative;
  z-index: 1;
}
.lq-kicker {
  margin: 0 0 0.35rem;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lq-gold);
}
.lq-hero h1 {
  margin: 0;
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff8ee;
}
.lq-tagline {
  margin: 0.65rem 0 0;
  max-width: 46rem;
  font-size: 0.98rem;
  line-height: 1.45;
  color: rgba(255, 248, 238, 0.88);
}
.lq-welcome {
  margin: 0.55rem 0 0;
  max-width: 46rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255, 248, 238, 0.72);
}
.lq-cuisine {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
}
.lq-cuisine span {
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 39, 0.45);
  background: rgba(255, 248, 238, 0.06);
  color: #f3e2a8;
  font-size: 12px;
  font-weight: 650;
}
.lq-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
}
.lq-hero-actions .btn {
  background: rgba(255, 248, 238, 0.08);
  border-color: rgba(255, 248, 238, 0.18);
  color: #fff8ee;
}
.lq-hero-actions .btn-primary {
  background: var(--lq-gold);
  border-color: var(--lq-gold);
  color: #2a1410;
}
.lq-hero-aside {
  align-self: stretch;
  padding: 1rem 1.05rem;
  border-radius: 16px;
  background: rgba(255, 248, 238, 0.08);
  border: 1px solid rgba(201, 162, 39, 0.28);
  backdrop-filter: blur(4px);
}
.lq-fort-mark {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.55rem;
  border-radius: 10px;
  background: rgba(201, 162, 39, 0.18);
  border: 1px solid rgba(201, 162, 39, 0.5);
  color: var(--lq-gold);
  font-weight: 800;
  letter-spacing: 0.04em;
}
.lq-hero-aside h2 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: #fff8ee;
}
.lq-hero-aside p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(255, 248, 238, 0.78);
}
.lq-phones {
  margin: 0.7rem 0 !important;
}
.lq-phones a {
  color: #f3e2a8;
  text-decoration: none;
  font-weight: 700;
}
.lq-hero-aside .muted {
  color: rgba(255, 248, 238, 0.55) !important;
}
.lq-section {
  margin: 1.35rem 0 0;
}
.lq-section-head h2 {
  margin: 0 0 0.25rem;
  font-size: 1.08rem;
  color: #464255;
}
.lq-section-head p {
  margin: 0 0 0.85rem;
  color: var(--sedap-muted);
  font-size: 0.92rem;
}
.lq-link-grid,
.lq-buffet-row,
.lq-feature-grid,
.lq-cat-grid {
  display: grid;
  gap: 0.75rem;
}
.lq-link-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.lq-buffet-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.lq-feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.lq-cat-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.lq-cat-grid-inline {
  margin: 0 0 0.9rem;
}
.lq-link-card,
.lq-buffet-card,
.lq-feature-card,
.lq-cat-chip,
.lq-feed-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(70, 66, 85, 0.05);
  text-decoration: none;
  color: inherit;
}
.lq-link-card,
.lq-buffet-card,
.lq-cat-chip {
  padding: 0.95rem 1rem;
  border: 1px solid #f0ebe3;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.lq-link-card:hover,
.lq-buffet-card:hover,
.lq-feature-card:hover,
.lq-cat-chip:hover {
  transform: translateY(-2px);
  border-color: #e2c97a;
}
.lq-link-card strong,
.lq-buffet-card strong,
.lq-feature-body strong,
.lq-cat-chip strong {
  display: block;
  color: #7a1f18;
  font-size: 0.98rem;
}
.lq-link-card span,
.lq-buffet-card span,
.lq-feature-meta,
.lq-cat-chip span {
  display: block;
  margin-top: 0.25rem;
  color: var(--sedap-muted);
  font-size: 0.84rem;
  line-height: 1.35;
}
.lq-feature-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  overflow: hidden;
  border: 1px solid #f0ebe3;
}
.lq-feature-card img,
.lq-feature-fallback {
  width: 88px;
  height: 100%;
  min-height: 96px;
  object-fit: cover;
  background: #efe4d2;
}
.lq-feature-fallback {
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #7a1f18;
  font-size: 1.4rem;
}
.lq-feature-body {
  padding: 0.75rem 0.85rem;
}
.lq-feature-body code {
  font-size: 11px;
  color: #9a6b12;
}
.lq-cat-chip.on {
  border-color: #7a1f18;
  background: #fff7ef;
}
.lq-feed-card {
  padding: 1rem 1.1rem;
  border: 1px solid #f0ebe3;
}
.lq-thumb-cell {
  width: 52px;
}
.lq-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  background: #efe4d2;
}
.lq-thumb-empty {
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #7a1f18;
}
@media (max-width: 900px) {
  .lq-hero {
    grid-template-columns: 1fr;
  }
  .lq-buffet-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .lq-buffet-row,
  .lq-feature-grid {
    grid-template-columns: 1fr;
  }
  .lq-feature-card {
    grid-template-columns: 72px 1fr;
  }
}
