@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root,
:root[data-theme="light"] {
  --scheme: light;
  --accent: #BE1A1A;
  --accent-dark: #991515;
  --accent-soft: #f9e4e1;
  --ink: #111827;
  --muted: #1f2937;
  --line: #f3dcd9;
  --line-strong: #eebbb5;
  --surface: #ffffff;
  --canvas: #fdf8f8;
  --subtle: #f9e4e1;
  --danger: #BE1A1A;
  --accent-contrast: #ffffff;
  --header-bg: #ffffff;
  --link: #BE1A1A;
  --active-bg: #f9e4e1;
  --active-border: #BE1A1A;
  --active-text: #BE1A1A;
  --inactive-bg: #f3f4f6;
  --inactive-border: transparent;
  --inactive-text: #1f2937;
  --control-off: #cbd5e1;
  --control-knob: #ffffff;
  --placeholder: #374151;
  --row-hover: #fff4f1;
  --overlay: rgba(31, 41, 55, 0.45);
  --success: #16a34a;
  --success-text: #15803d;
  --warning: #d97706;
  --warning-text: #b45309;
  --danger-state: #BE1A1A;
  --danger-text: #991515;
  --status-muted: #1f2937;
  --danger-panel: #fae6e4;
  --danger-panel-border: transparent;
  --danger-panel-text: #991515;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 20px rgba(190, 26, 26, 0.08);
  --bs-body-font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --bs-font-sans-serif: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, body, button, input, select, textarea, table, th, td, .btn, .badge, .card, h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  color-scheme: var(--scheme);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
a,
label {
  -webkit-tap-highlight-color: transparent;
}

.mobile-wrapper {
  width: 100%;
  max-width: 460px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--canvas);
  border-inline: 1px solid var(--line);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 0 20px;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}

.stat-val,
.stat-detail,
.stat-label,
.data-table td,
.log-action-badge,
.table-status,
.badge {
  transition: color 0.3s ease, background-color 0.3s ease, opacity 0.3s ease;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-logo {
  display: block;
  height: auto;
  object-fit: contain;
}

.brand-logo-mitra {
  width: 140px;
  max-height: 30px;
}

.brand-logo-admin {
  width: 190px;
  max-height: 38px;
}

.brand-icon {
  display: block;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  flex: 0 0 auto;
}

.help-link,
.text-button {
  color: var(--link);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  min-height: 32px;
  padding: 6px 9px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--ink);
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
}

.theme-toggle:hover {
  background: var(--subtle);
}

.help-link:hover,
.text-button:hover {
  text-decoration: underline;
}

.customer-service-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 9px;
  height: 34px;
  border-radius: 50%;
  text-decoration: none !important;
}

.customer-service-link:hover {
  background: var(--subtle);
}

.customer-service-link span {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.customer-service-link svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.content-body {
  padding: 18px 16px 40px;
}

.dashboard-stack,
.outlet-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-intro {
  padding: 8px 4px 4px;
}

.eyebrow,
.step-indicator,
.stat-label {
  color: #111827;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.page-title {
  margin-top: 7px;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.page-description,
.card-subtitle {
  color: #1f2937;
  font-size: 12px;
  line-height: 1.6;
}

.page-description {
  margin-top: 6px;
}

.card-box,
.stat-card,
.table-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.card-box {
  padding: 18px;
  border-radius: var(--radius);
}

.subscription-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.subscription-card .card-title {
  font-size: 16px;
}

.card-title {
  margin: 5px 0 4px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.section-heading,
.card-heading,
.table-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-heading {
  padding: 8px 4px 0;
}

.section-heading h2,
.card-heading h2,
.table-heading h2 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-count {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.outlet-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.outlet-id {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.schedule-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #be1a1a;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.schedule-arrow {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #be1a1a;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  transition: transform 150ms ease;
}

.schedule-arrow.is-expanded {
  transform: rotate(180deg);
}

.outlet-schedule-panel {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--subtle);
}

.outlet-schedule-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.outlet-schedule-title span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.outlet-schedule-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
}

.outlet-schedule-row strong {
  flex: 0 0 70px;
  min-width: 0;
}

.outlet-schedule-row span {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.45;
  text-align: right;
  font-weight: 700;
}

.outlet-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-right: 86px;
}

.outlet-shopee-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 10px;
  border-radius: 50px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.outlet-shopee-status.is-open {
  background: #198754;
}

.outlet-shopee-status.is-closed {
  background: #d99a00;
}

.outlet-shopee-status.is-unknown {
  background: #4b5563;
}

.outlet-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0 12px;
  padding: 13px 14px;
  background: var(--subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.control-title {
  font-size: 12px;
  font-weight: 700;
}

.control-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.pause-info-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.pause-open-pill,
.pause-remaining-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 10px;
  border-radius: 50px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}

.pause-open-pill {
  background: #d99a00;
}

.pause-remaining-pill {
  background: #198754;
}

.control-detail {
  margin-top: 3px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  background: var(--subtle);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.badge-open {
  background: var(--accent-soft);
  border-color: var(--active-border);
  color: var(--active-text);
}

.subscription-card #subBadge.badge-open {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
}

.badge-closed,
.badge-suspend {
  background: var(--inactive-bg);
  border-color: var(--inactive-border);
  color: var(--inactive-text);
}

.btn-primary,
.btn-danger,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.btn-primary,
.btn-danger,
.btn-outline {
  width: 100%;
}

.btn-primary {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--accent-contrast);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-danger,
.btn-outline {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.btn-danger:hover,
.btn-outline:hover {
  background: var(--subtle);
  border-color: var(--accent);
}

.btn-compact {
  width: auto;
  min-height: 36px;
  padding: 8px 13px;
}

.admin-actions a.btn-primary {
  text-decoration: none;
}

.switch-toggle {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 40px;
  height: 22px;
}

.switch-toggle input {
  width: 0;
  height: 0;
  opacity: 0;
}

.switch-toggle.is-schedule-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.switch-toggle.is-schedule-disabled .slider {
  cursor: not-allowed;
}

.slider {
  position: absolute;
  inset: 0;
  background: var(--control-off);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 150ms ease;
}

.slider::before {
  position: absolute;
  bottom: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: var(--control-knob);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.32);
  content: '';
  transition: transform 150ms ease;
}

input:checked + .slider {
  background: var(--accent);
}

input:checked + .slider::before {
  transform: translateX(18px);
}

.history-list,
.admin-log-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 10px;
}

.history-item,
.admin-log-item {
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.history-item strong,
.admin-log-item strong {
  display: block;
  font-size: 12px;
}

.history-item span,
.admin-log-item span {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.history-item strong .bot-history-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-right: 4px;
  padding: 3px 10px;
  border-radius: 30px;
  background: #2563eb;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  vertical-align: middle;
}

.bot-history-details {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.bot-action-time-pill,
.bot-action-info-pill {
  display: inline-flex !important;
  align-items: center;
  min-height: 22px;
  padding: 3px 9px;
  border-radius: 30px;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

.bot-action-time-pill {
  background: #d99a00;
}

.bot-action-info-pill {
  background: #be1a1a;
}

.bot-log-time {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.form-input {
  width: 100%;
  min-height: 42px;
  margin-top: 6px;
  padding: 10px 12px;
  background: var(--subtle);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  font-size: 12px;
  outline: none;
}

.renew-preview {
  margin-top: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  background: var(--subtle);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.form-input::placeholder {
  color: var(--placeholder);
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}

.field-label {
  display: block;
  margin-top: 13px;
  font-size: 11px;
  font-weight: 700;
}

.form-actions {
  display: flex;
  gap: 9px;
  margin-top: 20px;
}

.confirm-modal-card .form-actions .btn-outline {
  border-color: #be1a1a;
  background: #ffffff;
  color: #be1a1a;
}

.confirm-modal-card .form-actions .btn-outline:hover {
  background: #fff1f1;
  border-color: #991515;
  color: #991515;
}

.confirm-continue-btn {
  background: #be1a1a !important;
  border-color: #be1a1a !important;
  color: #ffffff !important;
}

.confirm-continue-btn:hover {
  background: #991515 !important;
  border-color: #991515 !important;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.radio-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 11px 13px;
  background: var(--subtle);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.radio-card:has(input:checked),
.radio-card.active {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.radio-card-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
}

.radio-meta {
  color: var(--muted);
  font-size: 11px;
}

.pause-modal-card .radio-meta,
.modal-card .radio-meta {
  display: none !important;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: var(--overlay);
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

#loginSection[hidden],
#dashboardSection[hidden],
.modal-overlay[hidden],
#customDateTimePicker[hidden] {
  display: none !important;
}

.modal-overlay:has(.pause-modal-card),
.modal-overlay:has(.confirm-modal-card) {
  align-items: center;
}

.modal-card {
  width: 100%;
  max-width: 440px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.pause-end-preview {
  margin: 10px 0 14px;
  padding: 9px 11px;
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.custom-datetime-fields {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) auto minmax(0, 1.15fr);
  align-items: end;
  gap: 8px;
}

.custom-datetime-fields label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.custom-datetime-fields input {
  margin-top: 4px;
}

.custom-datetime-fields input:disabled {
  background: #e5e7eb;
  border-color: #d1d5db;
  color: #6b7280;
  cursor: not-allowed;
  opacity: 1;
}

.custom-picker-anchor {
  position: relative;
}

.modal-card.pause-modal-card {
  overflow: visible;
}

.custom-picker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 40px;
  margin-top: 4px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
}

.custom-picker-trigger svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.custom-picker-trigger:hover,
.custom-picker-trigger:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.custom-picker-popover {
  position: absolute;
  z-index: 20;
  top: auto;
  bottom: calc(100% + 8px);
  right: 0;
  width: min(310px, 100vw - 48px);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 16px 36px rgba(35, 24, 19, 0.2);
}

.custom-picker-popover[hidden] {
  display: none;
}

.custom-picker-header,
.custom-picker-time,
.custom-picker-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.custom-picker-header strong {
  color: var(--ink);
  font-size: 12px;
}

.custom-picker-nav {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 7px;
  background: var(--surface-muted);
  color: var(--ink);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.custom-picker-weekdays,
.custom-picker-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}

.custom-picker-weekdays {
  margin: 10px 0 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-align: center;
}

.custom-picker-calendar button,
.custom-picker-calendar span {
  display: grid;
  place-items: center;
  min-height: 26px;
}

.custom-picker-calendar button {
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
}

.custom-picker-calendar button:hover,
.custom-picker-calendar button:focus-visible,
.custom-picker-calendar button.is-selected {
  background: var(--accent);
  color: #fff;
  outline: none;
}

.custom-picker-calendar button.is-today:not(.is-selected) {
  box-shadow: inset 0 0 0 1px var(--accent);
  color: var(--accent-dark);
}

.custom-picker-calendar button:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.45;
}

.custom-picker-time {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.custom-picker-time-fields {
  display: flex;
  align-items: center;
  gap: 4px;
}

.custom-picker-time select {
  min-width: 54px;
  padding: 6px 5px;
  font-size: 12px;
}

.custom-picker-time b {
  color: var(--ink);
  font-size: 10px;
}

.custom-picker-actions {
  justify-content: flex-end;
  margin-top: 12px;
}

.custom-picker-actions button {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 11px;
}

@media (max-width: 520px) {
  .modal-overlay:has(.pause-modal-card) {
    align-items: center;
    padding: 12px;
  }

  .custom-datetime-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }

  .custom-datetime-arrow {
    display: none;
  }

  .custom-picker-popover {
    width: min(310px, calc(100vw - 32px));
  }

}

.custom-datetime-arrow {
  padding-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}

/* Admin */
.desktop-wrapper {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 24px;
}

.admin-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: 15px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.admin-brand-title {
  font-size: 15px;
  font-weight: 700;
}

.admin-brand-subtitle {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 2px;
}

.admin-intro .page-title {
  font-size: 28px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.stat-card {
  padding: 17px 18px;
  border-radius: 12px;
  box-shadow: none;
}

.stat-card-primary {
  border-top: 3px solid var(--accent);
}

.stat-val {
  margin-top: 10px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.stat-detail {
  margin-top: 3px;
  color: #111827;
  font-size: 11px;
  font-weight: 600;
}

.table-card {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: none;
}

.table-heading {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.table-search {
  width: min(300px, 100%);
  margin: 0;
}

.table-scroll {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  padding: 11px 14px;
  background: var(--subtle);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.4;
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: var(--row-hover);
}

.data-table code {
  padding: 3px 5px;
  background: var(--subtle);
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.table-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.table-status::before {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  background: var(--status-muted);
  border-radius: 50%;
  content: '';
  box-shadow: 0 0 0 3px rgba(156, 154, 146, 0.1);
}

.table-status.is-success::before {
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(122, 185, 72, 0.13);
}

.table-status.is-success {
  color: var(--success-text);
}

.table-status.is-warning::before {
  background: var(--warning);
  box-shadow: 0 0 0 3px rgba(209, 160, 65, 0.13);
}

.table-status.is-warning {
  color: var(--warning-text);
}

.table-status.is-info::before {
  background: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.13);
}

.table-status.is-info {
  color: #1e3a8a;
}

.table-status.is-danger::before {
  background: var(--danger-state);
  box-shadow: 0 0 0 3px rgba(238, 136, 132, 0.13);
}

.table-status.is-danger {
  color: var(--danger-text);
}

.table-cell-note {
  display: block;
  max-width: 180px;
  margin-top: 4px;
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-link,
.mobile-dashboard-link {
  color: var(--link);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}

.table-link:hover,
.mobile-dashboard-link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.dashboard-link-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.dashboard-link-button {
  color: var(--link);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.dashboard-link-button:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.copy-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.copy-link-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.copy-link-button:hover,
.copy-link-button.is-copied {
  border-color: var(--link);
  color: var(--link);
}

.table-loading-state {
  padding: 28px 18px !important;
  color: var(--muted);
  text-align: center;
}

.row-actions {
  display: flex;
  gap: 6px;
}

.btn-detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: #e8e3df;
  color: #302a27;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
}

.btn-detail:hover {
  background: #dcd4cf;
}

.detail-modal-card {
  max-width: 720px;
}

.detail-row {
  display: table-row;
}

.detail-row > td {
  padding: 0 !important;
  border: 0 !important;
  background: #f8f4f1;
}

.detail-shell {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: max-height 300ms ease, opacity 220ms ease, transform 300ms ease;
}

.detail-row.is-open .detail-shell {
  max-height: 720px;
  opacity: 1;
  transform: translateY(0);
}

.detail-layout {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 0;
  overflow: hidden;
  border-radius: 12px;
  background: transparent;
}

.detail-row.is-open .detail-layout {
  margin-top: 18px;
}

.detail-grid {
  display: contents;
}

.detail-item {
  min-width: 0;
  padding: 12px 14px;
  background: var(--surface);
  border: 0;
}

.detail-actions {
  grid-column: 4;
  grid-row: 1 / span 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  background: var(--surface);
  border: 0;
}

.detail-actions .btn-primary,
.detail-actions .btn-outline {
  padding: 8px 10px;
  font-size: 12px;
  white-space: nowrap;
}

.admin-schedule-detail {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
  margin-top: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.admin-schedule-detail[hidden] {
  display: none;
}

.admin-schedule-heading {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  padding-bottom: 8px;
  color: var(--ink);
  font-size: 12px;
}

.admin-schedule-heading span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.admin-schedule-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
}

.admin-schedule-row span {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.45;
  text-align: right;
  font-weight: 700;
}

@media (max-width: 767.98px) {
  .mobile-outlet-card .step-indicator,
  .mobile-outlet-card .mobile-store-id,
  .mobile-outlet-card .mobile-detail-list dt {
    color: #374151;
    font-size: 11px;
    font-weight: 700;
  }

  .mobile-outlet-card .mobile-outlet-head h3 {
    color: #111827;
    font-size: 18px;
    font-weight: 800;
  }

  .mobile-outlet-card .mobile-detail-list dd,
  .mobile-outlet-card .mobile-dashboard-link {
    color: #111827;
    font-size: 13px;
    font-weight: 700;
  }

  .mobile-outlet-card .table-status,
  .mobile-outlet-card .status-text {
    font-size: 12px;
    font-weight: 800;
  }

  .mobile-outlet-card .table-cell-note {
    color: #374151;
    font-size: 11px;
    font-weight: 700;
  }

  .mobile-card-actions > .btn-primary {
    min-width: 0;
  }
}

.detail-item dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.detail-item dd {
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

:root[data-theme="dark"] .btn-detail {
  background: #403634;
  color: #fff8f5;
}

:root[data-theme="dark"] .btn-detail:hover { background: #514441; }

:root[data-theme="dark"] .detail-row > td {
  background: #332a29;
}

:root[data-theme="dark"] .detail-actions {
  background: #332a29;
}

#adminTable thead th,
#adminTable tbody td {
  border-bottom: 0 !important;
}

#adminTable thead tr {
  border-bottom: 0;
}

@media (max-width: 767.98px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .detail-actions {
    grid-column: 1;
    grid-row: auto;
    flex-direction: column;
  }
}

/* Keep the desktop accordion informative without creating a tall second table. */
.detail-row.is-open .detail-layout { margin-top: 8px; }
.detail-item { padding: 10px 12px; }
.detail-item dt { font-size: 11px; line-height: 1.25; }
.detail-item dd { margin-top: 4px; font-size: 13px; line-height: 1.4; }
.detail-actions { gap: 6px; padding: 10px; }

.detail-actions .btn-outline,
.detail-actions .btn-primary {
  min-height: 40px;
  padding: 9px 12px;
  font-size: 12px;
}

.row-actions .btn-outline,
.row-actions .btn-primary {
  width: auto;
  min-height: 32px;
  padding: 7px 10px;
  font-size: 10px;
}

.audit-card {
  margin-top: 16px;
}

.audit-scroll {
  max-height: 260px;
  overflow-y: auto;
  padding: 0 18px 8px;
}

.result-box {
  display: none;
  margin-top: 16px;
  padding: 12px;
  background: var(--subtle);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mobile-outlet-list {
  display: none;
}

.mobile-outlet-card {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.mobile-outlet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.mobile-outlet-head h3 {
  margin: 5px 0 3px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.mobile-store-id {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.mobile-detail-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 12px;
  padding: 16px 0;
}

.mobile-detail-list dt {
  margin-bottom: 4px;
  color: var(--status-muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.35;
}

.mobile-detail-list dd {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.mobile-detail-wide {
  grid-column: 1 / -1;
}

.mobile-dashboard-link {
  font-size: 12px;
}

.status-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-text::before {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  content: '';
}

.status-text.is-active::before {
  background: var(--success);
}

.suspension-note {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0 0 14px;
  padding: 11px 12px;
  background: var(--danger-panel);
  border: 1px solid var(--danger-panel-border);
  border-radius: 8px;
}

.suspension-note strong {
  color: var(--danger-panel-text);
  font-size: 10px;
  font-weight: 600;
}

.suspension-note span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.mobile-card-actions {
  grid-template-columns: 1fr 1fr;
}

.mobile-card-actions button {
  min-height: 44px;
}

.mobile-empty-state {
  padding: 28px 18px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
}

@media (min-width: 640px) {
  .modal-overlay {
    align-items: center;
  }
}

@media (max-width: 900px) {
  .admin-intro,
  .table-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-actions {
    width: 100%;
  }

  .admin-actions button {
    flex: 1;
  }

  .table-search {
    width: 100%;
  }

  .table-heading-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .table-heading-actions .btn-primary {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .outlet-section {
    overflow: visible;
    background: transparent;
    border: 0;
  }

  .outlet-section .table-heading {
    padding: 8px 0 12px;
    border: 0;
  }

  .outlet-section .table-heading h2 {
    font-size: 16px;
  }

  .mobile-outlet-list {
    display: grid;
    gap: 10px;
  }
}

/* Keep the admin table readable without horizontal scrolling on laptop/tablet widths. */
@media (min-width: 768px) and (max-width: 1399px) {
  .desktop-wrapper {
    padding-inline: 16px;
  }

  .table-scroll {
    overflow-x: auto;
  }

  .data-table {
    width: 100%;
    min-width: 1120px;
    table-layout: fixed;
  }

  .data-table th,
  .data-table td {
    padding: 12px 9px !important;
    font-size: 12px !important;
    overflow-wrap: anywhere;
  }

  #adminTable .detail-row > td {
    padding: 0 !important;
  }

  .data-table th:nth-child(1),
  .data-table td:nth-child(1) { width: 12%; }
  .data-table th:nth-child(2),
  .data-table td:nth-child(2) { width: 13%; }
  .data-table th:nth-child(3),
  .data-table td:nth-child(3) { width: 9%; }
  .data-table th:nth-child(4),
  .data-table td:nth-child(4) { width: 18%; }
  .data-table th:nth-child(5),
  .data-table td:nth-child(5) { width: 14%; }
  .data-table th:nth-child(6),
  .data-table td:nth-child(6) { width: 13%; }
  .data-table th:nth-child(7),
  .data-table td:nth-child(7) { width: 14%; }
  .data-table th:nth-child(8),
  .data-table td:nth-child(8) {
    width: 7%;
    display: table-cell !important;
    text-align: center !important;
  }

  .data-table th:nth-child(7),
  .data-table th:nth-child(8) {
    white-space: nowrap;
    font-size: 10px !important;
  }

  .table-cell-note {
    max-width: none;
    white-space: normal;
  }

  .row-actions {
    flex-direction: column;
    gap: 3px !important;
    padding-right: 6px;
  }

  .data-table th:nth-child(9),
  .data-table td:nth-child(9) {
    padding-right: 16px !important;
  }

  .row-actions .btn-outline,
  .row-actions .btn-primary,
  .row-actions .btn-detail {
    width: 100%;
    min-height: 30px !important;
    padding: 4px 7px !important;
    font-size: 11px !important;
    white-space: nowrap;
  }

  .compact-meta {
    margin-top: 2px;
    font-size: 10px;
    line-height: 1.2;
  }

  .data-table .table-status {
    font-size: 13px !important;
  }

  .table-cell-note {
    margin-top: 2px;
    line-height: 1.2;
  }
}

/* Make operational statuses scanable at a glance. */
.data-table .table-status {
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
}

.data-table .table-status::before {
  width: 9px;
  height: 9px;
}

.data-table .table-status.is-success {
  color: #2f7a49;
}

.data-table .table-status.is-success::before {
  background: #3f9b5d;
  box-shadow: 0 0 0 4px rgba(63, 155, 93, 0.16);
}

.data-table .table-status.is-warning {
  color: #a35c0d;
}

.data-table .table-status.is-warning::before {
  background: #d1871b;
  box-shadow: 0 0 0 4px rgba(209, 135, 27, 0.17);
}

:root[data-theme="dark"] .data-table .table-status.is-success { color: #a8d6b1; }
:root[data-theme="dark"] .data-table .table-status.is-warning { color: #f0bf75; }

@media (min-width: 768px) and (max-width: 1399px) {
  #adminTable {
    width: 100%;
    min-width: 1120px;
    table-layout: fixed;
  }

  #adminTable th,
  #adminTable td {
    vertical-align: middle;
  }

  #adminTable thead th {
    color: #5f5753;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: 0.045em;
    line-height: 1.2;
    white-space: nowrap;
  }

  #adminTable th:nth-child(1),
  #adminTable td:nth-child(1) { width: 12%; }
  #adminTable th:nth-child(2),
  #adminTable td:nth-child(2) { width: 13%; }
  #adminTable th:nth-child(3),
  #adminTable td:nth-child(3) { width: 9%; }
  #adminTable th:nth-child(4),
  #adminTable td:nth-child(4) { width: 18%; }
  #adminTable th:nth-child(5),
  #adminTable td:nth-child(5) { width: 14%; }
  #adminTable th:nth-child(6),
  #adminTable td:nth-child(6) { width: 13%; }
  #adminTable th:nth-child(7),
  #adminTable td:nth-child(7) { width: 14%; }
  #adminTable th:nth-child(8),
  #adminTable td:nth-child(8) {
    width: 7%;
    padding-right: 16px !important;
  }

}

:root[data-theme="dark"] #adminTable thead th {
  color: #e4d7d0;
}

.compact-meta {
  display: none;
}

@media (min-width: 768px) and (max-width: 1399px) {
  .compact-meta {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 500;
    line-height: 1.35;
  }

  .compact-meta-link {
    color: var(--link);
    font-weight: 700;
    text-decoration: none;
  }

  .compact-meta-link:hover {
    text-decoration: underline;
  }

  .compact-meta-link,
  .compact-meta-expiry,
  .compact-meta-merchant {
    display: none;
  }
}

@media (max-width: 520px) {
  .desktop-wrapper {
    padding: 12px;
  }

  .admin-nav {
    gap: 14px;
    margin-bottom: 12px;
    padding: 14px;
  }

  .admin-brand-title {
    font-size: 14px;
  }

  .admin-actions {
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }

  .admin-actions .btn-compact {
    width: auto;
    min-height: 42px;
    padding-inline: 10px;
  }

  .admin-intro {
    padding: 8px 3px 16px;
  }

  .admin-intro .page-title {
    font-size: 25px;
  }

  .stat-card {
    min-height: 118px;
    padding: 14px;
  }

  .stat-label {
    max-width: 110px;
    font-size: 9px;
  }

  .stat-val {
    margin-top: 12px;
    font-size: 22px;
  }

  .audit-card {
    margin-top: 14px;
  }

  .audit-scroll {
    max-height: 320px;
  }

  .form-actions {
    flex-direction: column;
  }
}

@media (max-width: 360px) {
  .mobile-card-actions,
  .mobile-detail-list {
    grid-template-columns: 1fr;
  }

  .admin-actions {
    grid-template-columns: 1fr 1fr;
  }

  .admin-actions .btn-primary {
    grid-column: 1 / -1;
  }

  .subscription-card {
    flex-direction: column;
  }
}

/* Admin console layout */
.admin-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
  background: #f4f5f7;
}
.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 16px;
  background: #17191d;
  color: #fff;
}
.admin-sidebar-brand { display: flex; flex-direction: column; gap: 11px; padding: 0 12px 32px; color: #aeb4bd; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.admin-sidebar-brand .brand-logo-admin { width: 164px; filter: brightness(0) invert(1); }
.admin-sidebar-nav { display: grid; gap: 5px; }
.admin-sidebar-nav .tab-btn { width: 100%; justify-content: flex-start; padding: 12px 13px; border: 0 !important; border-radius: 8px; color: #aeb4bd; background: transparent; text-align: left; }
.admin-sidebar-nav .tab-btn:hover, .admin-sidebar-nav .tab-btn:focus { color: #fff; background: #25282e; }
.admin-sidebar-nav .tab-btn.active { color: #fff !important; background: #be1a1a !important; }
.admin-sidebar-nav .tab-badge { margin-left: auto; background: rgba(255,255,255,.14); color: #fff; }
.sidebar-icon { display: inline-grid; width: 20px; place-items: center; color: currentColor; font-size: 19px; line-height: 1; }
.admin-main { min-width: 0; padding: 36px 42px 48px; }
.admin-page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; max-width: 1400px; margin: 0 auto 28px; }
.admin-page-header .page-title { margin: 6px 0 0; font-size: clamp(25px, 3vw, 36px); }
.admin-main > .desktop-wrapper { max-width: 1400px; margin: 0 auto; padding: 0; }
.admin-main .admin-nav, .admin-main .admin-tab-nav { display: none; }
.admin-main .stats-grid { margin-bottom: 22px; }
.admin-main .stat-card { border: 0 !important; border-radius: 10px !important; color: #fff; box-shadow: none !important; }
.admin-main .stat-card:nth-child(1) { background: #20242b !important; }
.admin-main .stat-card:nth-child(2) { background: #176b52 !important; }
.admin-main .stat-card:nth-child(3) { background: #9b2c2c !important; }
.admin-main .stat-card:nth-child(4) { background: #3d3475 !important; }
.admin-main .stat-card .stat-label, .admin-main .stat-card .stat-val, .admin-main .stat-card .stat-detail { color: #fff !important; }
.admin-main .stat-card .stat-detail { opacity: .72; }
.outlet-filter-toolbar { display: grid; grid-template-columns: minmax(220px, 1.5fr) repeat(6, minmax(120px, 1fr)) auto; gap: 8px; width: 100%; }
.outlet-filter-toolbar .table-search { width: 100%; }
.filter-select { min-width: 0; width: 100%; }
.admin-main .table-card { border: 0 !important; border-radius: 10px; background: #fff !important; }
.admin-main .table-heading { border: 0; padding: 18px; }
.admin-main .data-table th { background: #f0f1f3; border-bottom: 0; color: #565d68; }
.admin-main .data-table td { border-bottom-color: #eceef0; }

@media (max-width: 1100px) {
  .admin-main { padding-inline: 24px; }
  .outlet-filter-toolbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .outlet-filter-toolbar .table-search { grid-column: span 2; }
}
@media (max-width: 700px) {
  .admin-shell { display: block; }
  .admin-sidebar { position: static; height: auto; padding: 16px; }
  .admin-sidebar-brand { flex-direction: row; align-items: center; padding: 0 4px 16px; }
  .admin-sidebar-brand .brand-logo-admin { width: 140px; }
  .admin-sidebar-nav { display: flex; gap: 4px; overflow-x: auto; }
  .admin-sidebar-nav .tab-btn { flex: 0 0 auto; width: auto; padding: 10px; }
  .admin-sidebar-nav .tab-btn span:not(.sidebar-icon):not(.tab-badge) { display: none; }
  .admin-main { padding: 22px 16px 36px; }
  .admin-page-header { align-items: flex-start; margin-bottom: 22px; }
  .admin-page-header .admin-actions { display: none; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .admin-main .stat-card { padding: 15px; }
  .outlet-filter-toolbar { grid-template-columns: 1fr 1fr; }
  .outlet-filter-toolbar .table-search { grid-column: 1 / -1; }
  .outlet-filter-toolbar .btn-compact { grid-column: 1 / -1; }
}

/* Keep the console treatment solid and borderless after legacy theme rules. */
.admin-shell .admin-sidebar { background: #17191d; border: 0; }
.admin-shell .admin-main .stat-card,
.admin-shell .admin-main .stat-card:nth-child(1),
.admin-shell .admin-main .stat-card:nth-child(2),
.admin-shell .admin-main .stat-card:nth-child(3),
.admin-shell .admin-main .stat-card:nth-child(4) { border: 0 !important; box-shadow: none !important; }
.admin-shell .admin-main .stat-card:nth-child(1) { background: #20242b !important; }
.admin-shell .admin-main .stat-card:nth-child(2) { background: #176b52 !important; }
.admin-shell .admin-main .stat-card:nth-child(3) { background: #9b2c2c !important; }
.admin-shell .admin-main .stat-card:nth-child(4) { background: #3d3475 !important; }
.admin-shell .admin-main .stat-card .stat-label,
.admin-shell .admin-main .stat-card .stat-val,
.admin-shell .admin-main .stat-card .stat-detail { color: #17191d !important; }
.admin-shell .admin-main .stat-card { min-height: 108px; padding: 17px 20px 16px 76px; }
.admin-shell .admin-main .stat-card-top .stat-icon { left: 20px; width: 38px; height: 38px; }
.admin-shell .admin-main .stat-card .stat-label { font-size: 10px !important; line-height: 1.25; letter-spacing: .055em !important; }
.admin-shell .admin-main .stat-card .stat-val { margin: 6px 0 3px; font-size: 32px !important; line-height: 1 !important; }
.admin-shell .admin-main .stat-card .stat-detail { font-size: 11px !important; line-height: 1.3; }
@media (max-width: 700px) { .admin-shell .admin-main .stat-card { min-height: 104px; padding: 15px 12px 14px 56px; } .admin-shell .admin-main .stat-card-top .stat-icon { left: 13px; width: 30px; height: 30px; } .admin-shell .admin-main .stat-card .stat-val { font-size: 28px !important; } }
.admin-shell .admin-main .stat-card { min-height: 108px; padding: 17px 20px 16px 76px; }
.admin-shell .admin-main .stat-card-top .stat-icon { left: 20px; width: 38px; height: 38px; }
.admin-shell .admin-main .stat-card .stat-label { font-size: 10px !important; line-height: 1.25; letter-spacing: .055em !important; }
.admin-shell .admin-main .stat-card .stat-val { margin: 6px 0 3px; font-size: 32px !important; line-height: 1 !important; }
.admin-shell .admin-main .stat-card .stat-detail { font-size: 11px !important; line-height: 1.3; }
@media (max-width: 700px) { .admin-shell .admin-main .stat-card { min-height: 104px; padding: 15px 12px 14px 56px; } .admin-shell .admin-main .stat-card-top .stat-icon { left: 13px; width: 30px; height: 30px; } .admin-shell .admin-main .stat-card .stat-val { font-size: 28px !important; } }

/* Final reference treatment: white surfaces with restrained red accents. */
.admin-shell { background: #fff; }
.admin-shell .admin-sidebar { background: #fff; color: #17191d; border-right: 1px solid #ececee; }
.admin-shell .admin-sidebar-brand { color: #727780; }
.admin-shell .admin-sidebar-brand .brand-logo-admin { filter: none; }
.admin-shell .admin-sidebar-nav .tab-btn { color: #4f555e; }
.admin-shell .admin-sidebar-nav .tab-btn:hover,
.admin-shell .admin-sidebar-nav .tab-btn:focus { color: #be1a1a; background: #fff5f4; }
.admin-shell .admin-sidebar-nav .tab-btn.active { color: #be1a1a !important; background: #fff1f0 !important; }
.admin-shell .admin-sidebar-nav .tab-btn.active .tab-badge { background: #be1a1a; color: #fff; }
.admin-shell .admin-sidebar-nav .tab-badge { background: #f1f2f3; color: #515761; }
.admin-shell .admin-main { background: #fff; }
.admin-shell .admin-main .stat-card,
.admin-shell .admin-main .stat-card:nth-child(1),
.admin-shell .admin-main .stat-card:nth-child(2),
.admin-shell .admin-main .stat-card:nth-child(3),
.admin-shell .admin-main .stat-card:nth-child(4) {
  min-height: 126px;
  background: #fff !important;
  color: #17191d;
  border: 1px solid #ececee !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(23, 25, 29, .03) !important;
}
.admin-shell .admin-main .stat-card .stat-label { color: #3f444c !important; }
.admin-shell .admin-main .stat-card .stat-val { color: #17191d !important; }
.admin-shell .admin-main .stat-card .stat-detail { color: #777d86 !important; opacity: 1; }
.admin-shell .admin-main .stat-card:nth-child(2) .stat-val { color: #16834f !important; }
.admin-shell .admin-main .stat-card:nth-child(3) .stat-val { color: #be1a1a !important; }
.admin-shell .admin-main .stat-card:nth-child(4) .stat-val { color: #b87900 !important; }
.admin-shell .admin-main .table-card { border: 1px solid #ececee !important; box-shadow: none; }
.admin-shell .admin-main .data-table th { background: #fff !important; color: #555b64; border-bottom: 1px solid #ececee; }
.admin-shell .admin-main .data-table td { border-bottom-color: #f0f1f2; }
.admin-shell .admin-main .form-input { border-color: #dedfe2; background: #fff; }
.admin-shell .admin-main .btn-outline { border: 1px solid #be1a1a; background: #fff; color: #be1a1a; }
.admin-shell .admin-main .btn-outline:hover { background: #fff5f4; color: #991515; }

/* Reference direction: white workspace, restrained FoodMaster red accents. */
.admin-shell { background: #fff; }
.admin-shell .admin-sidebar { background: #fff; color: #17191d; border-right: 1px solid #ececee; }
.admin-shell .admin-sidebar-brand { color: #727780; }
.admin-shell .admin-sidebar-brand .brand-logo-admin { filter: none; }
.admin-shell .admin-sidebar-nav .tab-btn { color: #4f555e; }
.admin-shell .admin-sidebar-nav .tab-btn:hover,
.admin-shell .admin-sidebar-nav .tab-btn:focus { color: #be1a1a; background: #fff5f4; }
.admin-shell .admin-sidebar-nav .tab-btn.active { color: #be1a1a !important; background: #fff1f0 !important; }
.admin-shell .admin-sidebar-nav .tab-btn.active .tab-badge { background: #be1a1a; color: #fff; }
.admin-shell .admin-sidebar-nav .tab-badge { background: #f1f2f3; color: #515761; }
.admin-shell .admin-main { background: #fff; }
.admin-shell .admin-main .stat-card,
.admin-shell .admin-main .stat-card:nth-child(1),
.admin-shell .admin-main .stat-card:nth-child(2),
.admin-shell .admin-main .stat-card:nth-child(3),
.admin-shell .admin-main .stat-card:nth-child(4) {
  min-height: 126px;
  background: #fff !important;
  color: #17191d;
  border: 1px solid #ececee !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(23, 25, 29, .03) !important;
}
.admin-shell .admin-main .stat-card .stat-label { color: #3f444c !important; }
.admin-shell .admin-main .stat-card .stat-val { color: #17191d !important; }
.admin-shell .admin-main .stat-card .stat-detail { color: #777d86 !important; opacity: 1; }
.admin-shell .admin-main .stat-card:nth-child(2) .stat-val { color: #16834f !important; }
.admin-shell .admin-main .stat-card:nth-child(3) .stat-val { color: #be1a1a !important; }
.admin-shell .admin-main .stat-card:nth-child(4) .stat-val { color: #b87900 !important; }
.admin-shell .admin-main .table-card { border: 1px solid #ececee !important; box-shadow: none; }
.admin-shell .admin-main .data-table th { background: #fff !important; color: #555b64; border-bottom: 1px solid #ececee; }
.admin-shell .admin-main .data-table td { border-bottom-color: #f0f1f2; }
.admin-shell .admin-main .form-input { border-color: #dedfe2; background: #fff; }
.admin-shell .admin-main .btn-outline { border: 1px solid #be1a1a; background: #fff; color: #be1a1a; }
.admin-shell .admin-main .btn-outline:hover { background: #fff5f4; color: #991515; }

@media (max-width: 700px) {
  .admin-shell .admin-sidebar-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; }
  .admin-shell .admin-sidebar-nav .tab-btn { width: 100%; justify-content: center; padding: 9px 3px; font-size: 10px; }
  .admin-shell .admin-sidebar-nav .tab-btn .tab-badge { margin-left: 0; padding: 1px 5px; font-size: 9px; }
  .admin-shell .admin-sidebar-nav .tab-btn .sidebar-icon { font-size: 16px; }
}

/* Refined dashboard hierarchy: keep each KPI readable at every width. */
.admin-shell .admin-main .stat-card {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 19px 20px;
}
.admin-shell .admin-main .stat-card .stat-label { order: 1; font-size: 10px !important; letter-spacing: .07em !important; }
.admin-shell .admin-main .stat-card .stat-val { order: 2; margin: 0; font-size: 34px !important; line-height: 1 !important; }
.admin-shell .admin-main .stat-card .stat-detail { order: 3; margin: 0; font-size: 11px !important; line-height: 1.3; }
.admin-shell .admin-main .stat-card:nth-child(1) { background: #24282e !important; }
.admin-shell .admin-main .stat-card:nth-child(2) { background: #176b52 !important; }
.admin-shell .admin-main .stat-card:nth-child(3) { background: #8f3030 !important; }
.admin-shell .admin-main .stat-card:nth-child(4) { background: #403a70 !important; }
.admin-shell .admin-main .outlet-filter-toolbar {
  grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(130px, 1fr));
}
.admin-shell .admin-main .outlet-filter-toolbar .table-search { grid-column: span 2; }
.admin-shell .admin-main .outlet-filter-toolbar .btn-compact { min-width: 112px; }
.admin-shell .admin-main .data-table th { background: #24282e; color: #fff; }

@media (min-width: 1200px) {
  .admin-shell .admin-main .outlet-filter-toolbar { grid-template-columns: minmax(230px, 2fr) repeat(6, minmax(105px, 1fr)) auto; }
  .admin-shell .admin-main .outlet-filter-toolbar .table-search { grid-column: auto; }
}
@media (max-width: 700px) {
  .admin-shell .admin-main .stat-card { min-height: 104px; padding: 15px; }
  .admin-shell .admin-main .stat-card .stat-val { font-size: 28px !important; }
  .admin-shell .admin-main .outlet-filter-toolbar { grid-template-columns: 1fr 1fr; }
  .admin-shell .admin-main .outlet-filter-toolbar .table-search { grid-column: 1 / -1; }
  .admin-sidebar-nav .tab-btn span:not(.sidebar-icon):not(.tab-badge) { display: inline; }
  .admin-sidebar-nav .tab-btn { gap: 7px; }
}

/* ── TAB NAVIGATION SYSTEM ── */
.admin-tab-nav {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  padding-bottom: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-tab-nav a,
.admin-tab-nav button,
.admin-tab-nav .tab-btn,
.admin-tab-nav a *,
.admin-tab-nav button *,
.admin-tab-nav .tab-btn * {
  text-decoration: none !important;
  font-family: inherit;
  box-shadow: none;
}

a.tab-btn, button.tab-btn, .tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--muted);
  background: transparent;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none !important;
  transition: all 0.15s ease;
}

a.tab-btn:hover, button.tab-btn:hover, .tab-btn:hover,
a.tab-btn:focus, button.tab-btn:focus, .tab-btn:focus,
a.tab-btn:active, button.tab-btn:active, .tab-btn:active {
  color: var(--ink);
  background: var(--subtle);
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  text-decoration: none !important;
  outline: none;
}

.tab-btn.active, a.tab-btn.active, button.tab-btn.active {
  color: var(--ink);
  background: var(--surface);
  border-bottom: 3px solid var(--accent) !important;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  text-decoration: none !important;
}


.tab-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  background: var(--subtle);
  color: var(--muted);
}

.tab-btn.active .tab-badge {
  background: var(--active-bg);
  color: var(--active-text);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Desktop admin density: use the available canvas for readable controls. */
@media (min-width: 901px) {
  .desktop-wrapper {
    padding: 32px;
  }

  .admin-brand-title {
    font-size: 16px;
  }

  .admin-brand-subtitle,
  .stat-detail {
    font-size: 12px;
  }

  .admin-actions .btn-compact {
    min-height: 40px;
    padding: 9px 16px;
    font-size: 13px;
  }

  .admin-intro .page-title {
    font-size: 32px;
  }

  .stat-card {
    padding: 20px 22px;
  }

  .stat-label {
    font-size: 11px;
  }

  .stat-val {
    font-size: 28px;
  }

  .table-heading {
    padding: 18px 22px;
  }

  .table-heading h2 {
    font-size: 17px;
  }

  .data-table th {
    padding: 13px 16px;
    font-size: 11px;
  }

  .data-table td {
    padding: 16px;
    font-size: 13px;
  }

  .table-status {
    font-size: 12px;
  }

  .table-link {
    font-size: 12px;
  }

  .row-actions {
    gap: 8px;
  }

  .row-actions .btn-outline,
  .row-actions .btn-primary,
  .row-actions .btn-detail {
    min-height: 40px;
    padding: 9px 12px;
    font-size: 12px;
  }

  .tab-btn {
    min-height: 44px;
    padding: 11px 20px;
    font-size: 14px;
  }
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 65%, white);
  outline-offset: 2px;
}

/* ── BOT LOG MONITOR VIEW ── */
.bot-monitor-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
}

.bot-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.bot-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: var(--subtle);
  border: 1px solid var(--line);
}

.status-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}

.status-indicator-dot.syncing {
  background: var(--warning);
}

.log-filter-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.log-action-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.badge-action-open {
  background: var(--active-bg);
  color: var(--active-text);
  border: 1px solid var(--active-border);
}

.badge-action-close {
  background: var(--inactive-bg);
  color: var(--inactive-text);
  border: 1px solid var(--inactive-border);
}

.badge-action-suspend {
  background: var(--danger-panel);
  color: var(--danger-panel-text);
  border: 1px solid var(--danger-panel-border);
}

.badge-action-user {
  background: var(--subtle);
  color: var(--ink);
  border: 1px solid var(--line);
}

.badge-action-sync {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--line);
}

/* ── Clean modern dashboard skin ── */
:root,
:root[data-theme="light"] {
  --scheme: light;
  --accent: #c95757;
  --accent-dark: #a94245;
  --accent-soft: #f9e4e1;
  --ink: #241f1e;
  --muted: #786d6a;
  --line: #eee2de;
  --line-strong: #ddcfca;
  --surface: #fffaf8;
  --canvas: #f8f2ef;
  --subtle: #f5e9e5;
  --danger: #b33d43;
  --accent-contrast: #fffaf8;
  --header-bg: rgba(255, 250, 248, 0.94);
  --link: #a94245;
  --active-bg: #f9e4e1;
  --active-border: #c95757;
  --active-text: #943b40;
  --inactive-bg: #eee9e6;
  --inactive-border: transparent;
  --inactive-text: #625956;
  --control-off: #cdbfba;
  --control-knob: #fffaf8;
  --placeholder: #a69791;
  --row-hover: #fff4f1;
  --overlay: rgba(45, 27, 25, 0.46);
  --success: #4e8061;
  --success-text: #376549;
  --warning: #b87935;
  --warning-text: #8e5d2e;
  --danger-state: #b33d43;
  --danger-text: #963d42;
  --status-muted: #91847f;
  --danger-panel: #fae6e4;
  --danger-panel-border: transparent;
  --danger-panel-text: #963d42;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

body {
  background: var(--canvas);
}

.mobile-wrapper {
  background: var(--canvas);
  border-color: transparent;
}

.app-header {
  min-height: 68px;
  padding-inline: 22px;
  box-shadow: 0 1px 0 var(--line);
}

.brand-icon { width: 27px; height: 27px; border-radius: 8px; }

.card-box,
.stat-card,
.table-card,
.bot-monitor-card,
.admin-nav {
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.card-box,
.stat-card,
.table-card,
.bot-monitor-card,
.admin-nav,
.mobile-outlet-card {
  border-radius: 16px;
}

.content-body {
  padding-top: 26px;
}

.page-title {
  font-size: 28px;
  letter-spacing: -0.035em;
}

.card-title,
.section-heading h2,
.card-heading h2,
.table-heading h2 {
  letter-spacing: -0.025em;
}

.btn-primary {
  box-shadow: 0 5px 12px rgba(37, 99, 235, 0.18);
}

.form-input {
  background: #fff;
  border-color: var(--line-strong);
  min-height: 44px;
}

.outlet-control,
.radio-card,
.data-table th,
.bot-status-pill {
  background: var(--subtle);
}

.stat-card-primary {
  border-top: 0;
  border-left: 3px solid var(--accent);
}

.admin-nav {
  padding: 18px 20px;
}

.admin-tab-nav {
  border-bottom-color: var(--line);
}

.tab-btn.active {
  color: var(--accent);
  background: transparent;
  border-bottom-color: var(--accent);
}

.tab-btn.active .tab-badge {
  background: var(--accent-soft);
  color: var(--active-text);
}

.data-table th {
  color: #64748b;
}

.data-table td {
  border-bottom-color: var(--line);
}

@media (min-width: 901px) {
  .desktop-wrapper {
    max-width: 1440px;
    padding: 36px 40px;
  }

  .admin-nav {
    margin-bottom: 22px;
  }
}

:root[data-theme="dark"] {
  --scheme: dark;
  --accent: #e27a76;
  --accent-dark: #c75c61;
  --accent-soft: #482c2e;
  --ink: #fff8f5;
  --muted: #c0aaa5;
  --line: #493537;
  --line-strong: #65484a;
  --surface: #2b2021;
  --canvas: #1c1516;
  --subtle: #38282a;
  --accent-contrast: #fff8f5;
  --header-bg: rgba(39, 28, 29, 0.95);
  --link: #f19a91;
  --active-bg: #482c2e;
  --active-border: #e27a76;
  --active-text: #f2aaa2;
  --inactive-bg: #3a3030;
  --inactive-border: transparent;
  --inactive-text: #d1bebb;
  --control-off: #6d5959;
  --control-knob: #fff8f5;
  --placeholder: #a88e8a;
  --row-hover: #332526;
  --overlay: rgba(12, 7, 8, 0.72);
  --success: #83bc91;
  --success-text: #a7d3ae;
  --warning: #e0ac64;
  --warning-text: #e8bd82;
  --status-muted: #ad9893;
  --danger-panel: #482a2d;
  --danger-panel-border: transparent;
  --danger-panel-text: #f1aaa3;
}

/* ── FoodMaster visual system ──
   Soft red accents, quiet surfaces and solid controls keep the UI intentional.
   These tokens deliberately replace the older blue/outlined treatment above. */
:root,
:root[data-theme="light"] {
  --scheme: light;
  --accent: #c95757;
  --accent-dark: #a94245;
  --accent-soft: #f9e4e1;
  --ink: #241f1e;
  --muted: #786d6a;
  --line: #eee2de;
  --line-strong: #ddcfca;
  --surface: #fffaf8;
  --canvas: #f8f2ef;
  --subtle: #f5e9e5;
  --danger: #b33d43;
  --accent-contrast: #fffaf8;
  --header-bg: rgba(255, 250, 248, 0.94);
  --link: #a94245;
  --active-bg: #f9e4e1;
  --active-border: transparent;
  --active-text: #943b40;
  --inactive-bg: #eee9e6;
  --inactive-border: transparent;
  --inactive-text: #625956;
  --control-off: #cdbfba;
  --control-knob: #fffaf8;
  --placeholder: #a69791;
  --row-hover: #fff4f1;
  --overlay: rgba(45, 27, 25, 0.46);
  --success: #4e8061;
  --success-text: #376549;
  --warning: #b87935;
  --warning-text: #8e5d2e;
  --status-muted: #91847f;
  --danger-panel: #fae6e4;
  --danger-panel-border: transparent;
  --danger-panel-text: #963d42;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

:root[data-theme="dark"] {
  --scheme: dark;
  --accent: #e27a76;
  --accent-dark: #c75c61;
  --accent-soft: #482c2e;
  --ink: #fff8f5;
  --muted: #c0aaa5;
  --line: #493537;
  --line-strong: #65484a;
  --surface: #2b2021;
  --canvas: #1c1516;
  --subtle: #38282a;
  --accent-contrast: #fff8f5;
  --header-bg: rgba(39, 28, 29, 0.95);
  --link: #f19a91;
  --active-bg: #482c2e;
  --active-border: transparent;
  --active-text: #f2aaa2;
  --inactive-bg: #3a3030;
  --inactive-border: transparent;
  --inactive-text: #d1bebb;
  --control-off: #6d5959;
  --control-knob: #fff8f5;
  --placeholder: #a88e8a;
  --row-hover: #332526;
  --overlay: rgba(12, 7, 8, 0.72);
  --success: #83bc91;
  --success-text: #a7d3ae;
  --warning: #e0ac64;
  --warning-text: #e8bd82;
  --status-muted: #ad9893;
  --danger-panel: #482a2d;
  --danger-panel-border: transparent;
  --danger-panel-text: #f1aaa3;
}

body {
  letter-spacing: -0.01em;
}

.card-box,
.stat-card,
.table-card,
.bot-monitor-card,
.admin-nav,
.modal-card,
.mobile-outlet-card {
  border: 0;
  box-shadow: var(--shadow);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.card-box,
.stat-card,
.table-card,
.bot-monitor-card,
.admin-nav,
.mobile-outlet-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(201, 87, 87, 0.16), transparent 31%),
    linear-gradient(135deg, #fff4f0 0%, var(--surface) 58%, #f8e9e5 100%);
}

.stat-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(201, 87, 87, 0.2), transparent 36%),
    linear-gradient(145deg, #fae5e1 0%, #fff6f2 68%, #f4deda 100%);
}

.stat-card:nth-child(2) {
  background:
    radial-gradient(circle at 100% 0%, rgba(78, 128, 97, 0.17), transparent 36%),
    linear-gradient(145deg, #e9f1e9 0%, #fff8f4 70%, #e2ece3 100%);
}

.stat-card:nth-child(3) {
  background:
    radial-gradient(circle at 100% 0%, rgba(184, 121, 53, 0.16), transparent 36%),
    linear-gradient(145deg, #f8ecdc 0%, #fff8f4 70%, #f1e3d0 100%);
}

.stat-card:nth-child(4) {
  background:
    radial-gradient(circle at 100% 0%, rgba(111, 95, 132, 0.15), transparent 36%),
    linear-gradient(145deg, #eee8f3 0%, #fff8f4 70%, #e7deed 100%);
}

.subscription-card {
  background:
    radial-gradient(circle at 92% 15%, rgba(201, 87, 87, 0.23), transparent 27%),
    linear-gradient(120deg, #f7deda 0%, #fff5f1 55%, #f4e5e0 100%);
}

.outlet-list .card-box,
.mobile-outlet-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(201, 87, 87, 0.13), transparent 29%),
    linear-gradient(135deg, #fff7f3 0%, #f8ebe7 100%);
}

/* A rotating pastel palette keeps repeated cards easy to scan. */
.outlet-list .card-box:nth-child(4n + 1),
.mobile-outlet-card:nth-child(4n + 1) {
  background:
    radial-gradient(circle at 100% 0%, rgba(211, 133, 66, 0.2), transparent 30%),
    linear-gradient(135deg, #fff1df 0%, #fff9f2 100%);
}

.outlet-list .card-box:nth-child(4n + 2),
.mobile-outlet-card:nth-child(4n + 2) {
  background:
    radial-gradient(circle at 100% 0%, rgba(87, 145, 105, 0.18), transparent 30%),
    linear-gradient(135deg, #eaf4e9 0%, #f9fcf7 100%);
}

.outlet-list .card-box:nth-child(4n + 3),
.mobile-outlet-card:nth-child(4n + 3) {
  background:
    radial-gradient(circle at 100% 0%, rgba(135, 111, 171, 0.16), transparent 30%),
    linear-gradient(135deg, #f0ebf8 0%, #fbf9fd 100%);
}

.outlet-list .card-box:nth-child(4n + 4),
.mobile-outlet-card:nth-child(4n + 4) {
  background:
    radial-gradient(circle at 100% 0%, rgba(201, 87, 87, 0.16), transparent 30%),
    linear-gradient(135deg, #f9e4e1 0%, #fff8f5 100%);
}

.dashboard-stack > .card-box:last-child {
  background:
    radial-gradient(circle at 100% 0%, rgba(87, 145, 105, 0.17), transparent 28%),
    linear-gradient(135deg, #eaf4e9 0%, #fbfcf8 100%);
}

.desktop-wrapper > .admin-nav {
  background:
    radial-gradient(circle at 100% 0%, rgba(135, 111, 171, 0.16), transparent 24%),
    linear-gradient(135deg, #f0ebf8 0%, #fff9f7 100%);
}

#paneOutlets > .table-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(211, 133, 66, 0.16), transparent 24%),
    linear-gradient(135deg, #fff1df 0%, #fffaf4 100%);
}

#paneLogs > .bot-monitor-card,
#paneLogs > .table-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(87, 145, 105, 0.16), transparent 24%),
    linear-gradient(135deg, #eaf4e9 0%, #fbfcf8 100%);
}

.table-card,
.bot-monitor-card,
.admin-nav,
.modal-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(201, 87, 87, 0.12), transparent 24%),
    linear-gradient(135deg, #fff8f5 0%, #f5e9e5 100%);
}

.brand-icon {
  border-radius: 10px;
  box-shadow: 0 5px 12px rgba(169, 66, 69, 0.18);
}

.theme-toggle,
.btn-outline {
  background: var(--subtle);
  border: 0;
  color: var(--ink);
}

.theme-toggle:hover,
.btn-outline:hover {
  background: var(--inactive-bg);
  border: 0;
}

.btn-primary {
  background: var(--accent) !important;
  color: var(--accent-contrast) !important;
  border: 0 !important;
  box-shadow: none !important;
}

.btn-primary:hover {
  background: var(--accent-dark) !important;
  border: 0 !important;
  box-shadow: none !important;
}

.btn-danger {
  background: #b33d43 !important;
  color: #fffaf8 !important;
  border: 0 !important;
  box-shadow: none !important;
}

.btn-danger:hover {
  background: #963d42 !important;
  border: 0 !important;
  box-shadow: none !important;
}

.badge,
.tab-badge,
.bot-status-pill,
.log-action-badge {
  border: 0;
}

.badge-open,
.tab-btn.active .tab-badge,
.badge-action-open {
  background: var(--accent-soft);
  color: var(--active-text);
}

.badge-closed,
.badge-suspend,
.badge-action-close {
  background: var(--inactive-bg);
  color: var(--inactive-text);
}

.outlet-control,
.radio-card,
.bot-status-pill,
.data-table th {
  border: 0;
  background: var(--subtle);
}

.radio-card:has(input:checked),
.radio-card.active {
  border: 0;
  background: var(--accent-soft);
}

.stat-card-primary {
  border: 0;
  background: linear-gradient(135deg, var(--accent-soft), var(--surface) 68%);
}

.form-input {
  background: var(--surface);
  border: 1px solid var(--line-strong);
}

.form-input:focus {
  border-color: var(--accent) !important;
}

.tab-btn.active {
  color: var(--accent) !important;
  background: transparent !important;
  border-bottom: 3px solid var(--accent) !important;
}

.table-status.is-success { color: var(--success-text); }
.table-status.is-warning { color: var(--warning-text); }
.table-status.is-danger { color: var(--danger-text); }

/* Virtual Brand tab */
.vb-page-shell {
  min-height: 0;
}

.vb-panel {
  display: grid;
  gap: 14px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.vb-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.vb-heading h2 {
  margin: 6px 0 0;
  color: #111317;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.vb-heading .card-subtitle {
  max-width: 680px;
  color: #626770;
  font-size: 14px;
  line-height: 1.6;
}

.vb-import-summary {
  min-height: 0;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
}

.vb-mobile-toolbar {
  display: none;
}

.vb-inline-search-wrap {
  display: none;
}

.vb-filter-disclosure {
  border: 1px solid #eceef0;
  border-radius: 14px;
  background: #fbfbfc;
}

.vb-filter-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 0 16px;
  color: #292d33;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.vb-filter-disclosure > summary::-webkit-details-marker { display: none; }
.vb-filter-disclosure > summary::after { content: '+'; color: #be1a1a; font-size: 18px; font-weight: 400; }
.vb-filter-disclosure[open] > summary::after { content: '−'; }
.vb-filter-disclosure > summary small { margin-left: auto; color: #777d86; font-size: 11px; font-weight: 500; }
.vb-filter-disclosure .vb-filter-card { border: 0; border-top: 1px solid #eceef0; border-radius: 0 0 14px 14px; }

.vb-inline-search {
  width: 100%;
  max-width: none;
}

.vb-stat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.vb-stat-grid > .table-loading-state,
.vb-brand-list > .table-loading-state {
  grid-column: 1 / -1;
}

.vb-stat-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 92px;
  padding: 13px;
  border: 1px solid #eceef0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.03);
}

.vb-stat-icon {
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
}

.vb-stat-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.vb-stat-card.is-groups .vb-stat-icon {
  color: #db2727;
  background: #fff1f1;
}

.vb-stat-card.is-on .vb-stat-icon {
  color: #138448;
  background: #eaf8ef;
}

.vb-stat-card.is-off .vb-stat-icon {
  color: #d97706;
  background: #fff4e5;
}

.vb-stat-card.is-store .vb-stat-icon {
  color: #2178ff;
  background: #eef5ff;
}

.vb-stat-card.is-open .vb-stat-icon {
  color: #16a34a;
  background: #ecfdf3;
}

.vb-stat-card.is-closed .vb-stat-icon {
  color: #ef4444;
  background: #fff1f1;
}

.vb-stat-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.vb-stat-copy span {
  color: #30343a;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.vb-stat-copy strong {
  color: #111317;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.vb-stat-card.is-on .vb-stat-copy strong {
  color: #138448;
}

.vb-stat-card.is-off .vb-stat-copy strong {
  color: #d97706;
}

.vb-stat-card.is-store .vb-stat-copy strong {
  color: #2178ff;
}

.vb-stat-card.is-open .vb-stat-copy strong {
  color: #16a34a;
}

.vb-stat-card.is-closed .vb-stat-copy strong {
  color: #ef4444;
}

.vb-stat-copy small {
  color: #777d86;
  font-size: 10px;
  line-height: 1.3;
}

.vb-quick-actions {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #eceef0;
  border-radius: 12px;
  background: #fff;
}

.vb-quick-actions-head,
.vb-bulk-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vb-bulk-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid #f0f1f3;
}

.vb-quick-actions-head h3 {
  margin: 0;
  color: #292d33;
  font-size: 13px;
}

.vb-quick-actions-head p {
  margin: 3px 0 0;
  color: #777d86;
  font-size: 11px;
}

.vb-bulk-selection-summary {
  color: #777d86;
  font-size: 11px;
  font-weight: 700;
}

.vb-bulk-brand-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vb-bulk-brand-choice {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fbfbfc;
  color: #34383e;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.vb-bulk-brand-choice:has(input:checked) {
  border-color: #cfead9;
  background: #effaf3;
  color: #138448;
}

.vb-bulk-brand-choice input { accent-color: #22b56f; }
.vb-bulk-brand-choice small { color: #777d86; font-size: 10px; }
.vb-bulk-actions { justify-content: flex-start; }
.vb-bulk-actions button { width: auto; min-width: 132px; min-height: 34px; font-size: 11px; }
.vb-bulk-pause-button { color: #be1a1a !important; border-color: #f2cbc6 !important; }

.vb-bulk-mode-button { width: auto; min-width: 124px; min-height: 34px; }

.vb-group-identity:has(.vb-brand-select) {
  position: relative;
  padding-left: 30px;
}

.vb-brand-select {
  position: absolute;
  top: 50%;
  left: 0;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  transform: translateY(-50%);
}

.vb-brand-select input { width: 16px; height: 16px; accent-color: #be1a1a; }
.vb-brand-select input:focus-visible { outline: 2px solid #be1a1a; outline-offset: 2px; }

@media (min-width: 701px) {
  .vb-filter-disclosure > summary { display: none; }
  .vb-filter-disclosure .vb-filter-card { border-top: 0; }
}

.vb-filter-card {
  padding: 18px 16px;
  border: 1px solid #eceef0;
  border-radius: 18px;
  background: #fff;
}

.vb-filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.vb-reset-button {
  min-width: 134px;
  min-height: 40px;
}

.vb-results-summary {
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
}

.vb-brand-list {
  display: grid;
  gap: 16px;
}

.vb-empty-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 38px 20px;
  border: 1px dashed #d9dde2;
  border-radius: 16px;
  background: #fbfbfc;
  text-align: center;
}

.vb-empty-state strong { color: #292d33; font-size: 15px; }
.vb-empty-state span { color: #777d86; font-size: 12px; }
.vb-empty-state .btn-outline { margin-top: 6px; min-height: 36px; }

.vb-brand-card {
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #eceef0;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.03);
}

.vb-brand-card-head {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(0, 3.2fr) auto;
  gap: 12px;
  align-items: center;
}

.vb-group-identity {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.vb-group-eyebrow {
  color: #8b9199;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vb-brand-card h3 {
  margin: 0;
  color: #111317;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.vb-brand-card p {
  margin: 0;
  color: #737981;
  font-size: 12px;
  font-weight: 600;
}

.vb-group-note {
  display: inline-flex;
  align-items: flex-start;
  width: max-content;
  max-width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #f7f8fa;
  color: #667085;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
}

.vb-group-note.is-pending {
  background: #fff7ed;
  color: #9a5b00;
}

.vb-group-context {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.vb-group-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(48px, 0.75fr)) minmax(125px, 1.6fr);
  gap: 10px 12px;
  min-width: 0;
}

.vb-group-summary-item {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding-top: 4px;
}

.vb-group-summary-item span {
  color: #777d86;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.vb-group-summary-item strong {
  color: #111317;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.vb-group-summary-item small {
  color: #777d86;
  font-size: 10px;
  line-height: 1.45;
}

.vb-group-summary-item.is-activity strong {
  font-size: 13px;
}

.vb-summary-opened { color: #138448 !important; }
.vb-summary-failure { color: #d97706 !important; }
.vb-summary-close { color: #db2727 !important; }

.vb-bulk-selection-hint {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid #f0f1f3;
  color: #777d86;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
}

.vb-status-pill,
.vb-master-pill,
.vb-drawer-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.vb-status-pill.is-on {
  background: #eaf8ef;
  color: #138448;
}

.vb-status-pill.is-off {
  background: #fff4e5;
  color: #d97706;
}

.vb-master-pill {
  background: #eefaf0;
  color: #15803d;
}

.vb-brand-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 0;
}

.vb-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.vb-control .switch-toggle {
  width: 46px;
  height: 26px;
}

.vb-control .slider::before {
  bottom: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
}

.vb-control .switch-toggle input:checked + .slider {
  background: #22b56f;
}

.vb-control .switch-toggle input:checked + .slider::before {
  transform: translateX(20px);
}

.vb-control-label {
  min-width: 28px;
  color: #6b7280;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.vb-expand-button {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #eceef0;
  border-radius: 50%;
  background: #fff;
  color: #34383e;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.vb-expand-button:hover {
  border-color: #f2d1cd;
  background: #fff7f6;
  color: #be1a1a;
}

.vb-expand-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 180ms ease;
}

.vb-expand-button[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.vb-brand-detail {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f2f3f5;
}

.vb-store-table {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid #f0f1f3;
  border-radius: 16px;
  background: #fff;
}

.vb-store-table-head,
.vb-store-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(100px, 0.65fr) minmax(0, 1.2fr) minmax(150px, 1.1fr) minmax(116px, auto);
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
}

.vb-store-table-head {
  background: #fbfbfc;
  color: #717780;
  font-size: 11px;
  font-weight: 700;
}

.vb-store-table-head > span:first-child { padding-left: 28px; }

.vb-store-row {
  border-top: 1px solid #f2f3f5;
}

.vb-store-main,
.vb-store-id,
.vb-store-status,
.vb-store-hours,
.vb-store-actions {
  min-width: 0;
}

.vb-store-main {
  display: grid;
  gap: 6px;
}

.vb-store-id,
.vb-store-status,
.vb-store-hours,
.vb-store-actions {
  display: grid;
  gap: 6px;
}

.vb-store-status strong {
  display: block;
  font-size: 11px;
  line-height: 1.35;
}

.vb-store-status small {
  display: block;
  margin-top: 3px;
  color: #777d86;
  font-size: 10px;
  line-height: 1.45;
}

.vb-store-main-value {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.vb-store-field-label {
  display: none;
  color: #777d86;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.vb-store-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #cfd4dc;
}

.vb-store-dot.is-open {
  background: #16a34a;
}

.vb-store-dot.is-paused {
  background: #f59e0b;
}

.vb-store-dot.is-closed {
  background: #ef4444;
}

.vb-store-dot.is-unknown {
  background: #9ca3af;
}

.vb-store-copy {
  min-width: 0;
}

.vb-store-copy strong {
  display: block;
  color: #23272f;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.vb-store-row.vb-portal-0 .vb-store-dot { background: #087f5b; }
.vb-store-row.vb-portal-1 .vb-store-dot { background: #7c3aed; }
.vb-store-row.vb-portal-2 .vb-store-dot { background: #d97706; }
.vb-store-row.vb-portal-3 .vb-store-dot { background: #be1a1a; }

.vb-store-id code {
  padding: 0;
  background: transparent;
  color: #23272f;
  font-size: 12px;
  font-weight: 700;
}

.vb-store-hours .today-operating-hours {
  justify-items: start;
}

.vb-store-hours .today-operating-hours .operating-meta {
  justify-content: flex-start;
}

.vb-store-actions {
  display: flex;
  justify-content: flex-end;
}

.vb-schedule-button {
  min-height: 34px;
  padding: 0 12px;
  border-color: #ffd6d2 !important;
  background: #fff !important;
  color: #be1a1a !important;
  font-size: 11px;
  font-weight: 700;
}

.vb-schedule-button:hover {
  background: #fff5f4 !important;
}

.vb-store-empty {
  padding: 20px 16px;
  color: #777d86;
  font-size: 12px;
  font-weight: 600;
}

.vb-mobile-bulk-bar {
  display: none;
}

.vb-mobile-bulk-bar[hidden] {
  display: none !important;
}

.vb-schedule-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.vb-schedule-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.vb-schedule-drawer {
  background: #fff;
}

.vb-schedule-drawer[hidden] {
  display: none;
}

.vb-schedule-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f1f3;
}

.vb-schedule-drawer-copy {
  min-width: 0;
}

.vb-schedule-drawer-copy h3 {
  margin: 6px 0 4px;
  color: #111317;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.vb-schedule-drawer-copy p {
  margin: 0;
  color: #737981;
  font-size: 12px;
  font-weight: 600;
}

.vb-schedule-close {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #eceef0;
  border-radius: 50%;
  background: #fff;
  color: #252930;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}

.vb-schedule-close:hover {
  border-color: #f2d1cd;
  background: #fff7f6;
  color: #be1a1a;
}

.vb-schedule-drawer-content {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.vb-schedule-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vb-drawer-chip {
  background: #f6f7f8;
  color: #515760;
}

.vb-schedule-focus-grid {
  display: grid;
  gap: 12px;
}

.vb-schedule-focus-card {
  padding: 14px;
  border: 1px solid #eceef0;
  border-radius: 16px;
  background: #fff;
}

.vb-schedule-focus-card > span {
  display: block;
  margin-bottom: 8px;
  color: #777d86;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.vb-schedule-focus-card strong {
  display: block;
  color: #111317;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.vb-schedule-focus-card small {
  display: block;
  margin-top: 5px;
  color: #777d86;
  font-size: 11px;
  line-height: 1.45;
}

.vb-schedule-panel {
  padding: 16px;
  border: 1px solid #eceef0;
  border-radius: 18px;
  background: #fff;
}

.vb-schedule-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.vb-schedule-panel-head strong {
  color: #111317;
  font-size: 13px;
  font-weight: 700;
}

.vb-schedule-panel-head span {
  color: #777d86;
  font-size: 11px;
  font-weight: 600;
}

.vb-schedule-rows {
  display: grid;
  gap: 0;
}

.vb-schedule-rows .admin-schedule-row {
  padding: 10px 0;
  border-bottom: 1px solid #f2f3f5;
}

.vb-schedule-rows .admin-schedule-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.vb-schedule-empty {
  padding: 14px 12px;
  border-radius: 12px;
  background: #f9fafb;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

body.vb-schedule-open {
  overflow: hidden;
}

@media (min-width: 701px) {
  #paneVB.active {
    height: 100%;
    min-height: 0;
  }

  .vb-page-shell {
    height: 100%;
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
  }

  .vb-schedule-backdrop {
    position: fixed;
    z-index: 130;
    inset: 0;
    background: rgba(17, 24, 39, 0.22);
  }

  .vb-schedule-drawer {
    position: fixed;
    z-index: 140;
    top: 0;
    right: 0;
    width: min(400px, 92vw);
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px 22px;
    border-left: 1px solid #eceef0;
    box-shadow: -14px 0 36px rgba(17, 24, 39, 0.12);
    transform: translateX(calc(100% + 24px));
    transition: transform 240ms cubic-bezier(.22, 1, .36, 1), opacity 240ms ease;
  }

  .vb-schedule-drawer.is-open {
    transform: translateX(0);
  }
}

@media (max-width: 900px) and (min-width: 701px) {
  .vb-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vb-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vb-brand-card-head {
    grid-template-columns: 1fr;
  }

  .vb-group-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vb-group-summary-item.is-activity {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .admin-shell .admin-page-header .admin-actions {
    display: flex;
    flex: 0 0 auto;
  }

  .admin-shell .admin-page-header .admin-header-search {
    display: flex;
    flex: 0 0 44px;
    min-width: 0;
    max-width: none;
    height: 44px;
  }

  .admin-shell .admin-page-header .fetch-sheet-button,
  .admin-shell .admin-page-header .admin-user-avatar {
    display: none;
  }

  #paneVB.active,
  .vb-page-shell {
    height: auto;
    overflow: visible;
    padding-bottom: 92px;
  }

  .vb-panel {
    gap: 16px;
    padding: 0;
    border-radius: 0;
  }

  .vb-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .vb-stat-card {
    min-height: 96px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 11px;
  }

  .vb-stat-icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .vb-stat-icon svg { width: 17px; height: 17px; }

  .vb-stat-copy strong {
    font-size: 22px;
  }

  .vb-stat-copy small { display: none; }

  .vb-filter-disclosure > summary { min-height: 44px; padding: 0 13px; }
  .vb-filter-disclosure > summary small { display: none; }

  .vb-quick-actions { padding: 12px; }
  .vb-quick-actions-head { align-items: flex-start; }
  .vb-bulk-toolbar { align-items: stretch; flex-direction: column; }
  .vb-bulk-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .vb-bulk-actions button { width: 100%; }

  .vb-filter-card {
    padding: 14px;
    border-radius: 16px;
  }

  .vb-filter-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .vb-reset-button {
    width: 100%;
  }

  .vb-brand-list {
    gap: 12px;
  }

  .vb-brand-card {
    padding: 16px;
    border-radius: 16px;
  }

  .vb-brand-card-head {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .vb-group-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vb-group-summary-item.is-activity {
    grid-column: 1 / -1;
  }

  .vb-brand-toggle {
    display: grid;
    justify-items: stretch;
  }

  .vb-control {
    justify-content: space-between;
    width: 100%;
  }

  .vb-expand-button {
    justify-self: end;
  }

  .vb-store-table {
    border-radius: 14px;
  }

  .vb-store-table-head {
    display: none;
  }

  .vb-store-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .vb-store-field-label {
    display: block;
  }

  .vb-store-actions {
    display: grid;
    justify-content: stretch;
  }

  .vb-store-actions .vb-schedule-button {
    width: 100%;
  }

  .vb-schedule-backdrop {
    position: fixed;
    z-index: 130;
    inset: 0;
    background: rgba(17, 24, 39, 0.26);
  }

  .vb-schedule-drawer {
    position: fixed;
    z-index: 140;
    top: auto;
    right: 0;
    bottom: 0;
    width: min(380px, 100vw);
    height: min(78vh, 680px);
    max-height: calc(100vh - 34px);
    overflow-y: auto;
    padding: 18px 16px 24px;
    border-radius: 20px 20px 0 0;
    transform: translateY(calc(100% + 20px));
    transition: transform 240ms cubic-bezier(.22, 1, .36, 1), opacity 240ms ease;
  }

  .vb-schedule-drawer.is-open {
    transform: translateX(0);
    transform: translateY(0);
  }
}

/* Unified bot logs */
.logs-page-shell {
  min-height: 0;
}

@media (min-width: 701px) {
  #paneLogs.active {
    height: 100%;
    min-height: 0;
  }

  .logs-page-shell {
    height: 100%;
    overflow-y: auto;
    padding-right: 8px;
    padding-bottom: 24px;
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
  }
}

.logs-intro,
.logs-section-head,
.logs-bot-card-head,
.logs-event-topline,
.logs-error-target {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.logs-intro {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.logs-intro h2 { margin: 5px 0 4px; }
.logs-intro p, .logs-section-head p, .logs-bot-card p { margin: 0; color: var(--muted); font-size: 11px; }

.logs-filter-controls { display: flex; gap: 8px; }
.logs-filter-controls input { width: 240px; }

.logs-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.logs-bot-card, .logs-section {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.logs-bot-card-vb { background: var(--subtle); }
.logs-bot-card h3, .logs-section h3 { margin: 0; color: var(--ink); font-size: 14px; }
.logs-bot-badge, .logs-mode-chip, .logs-section-count {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--subtle);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
}

.logs-mode-chip.is-vb { background: #eee8f7; color: #68458c; }
.logs-bot-stat { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 5px; }
.logs-bot-stat strong { color: var(--ink); font-size: 28px; line-height: 1; }
.logs-bot-stat span { color: var(--muted); font-size: 11px; }
.logs-section { margin-top: 12px; }
.logs-section-head { margin-bottom: 14px; }
.logs-section-count { background: var(--danger-panel); color: var(--danger-panel-text); }
.logs-error-list, .logs-event-list { display: grid; gap: 8px; }
.logs-error-card, .logs-event-card { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.logs-error-card { border-left: 3px solid var(--danger, #dc2626); }
.logs-event-topline time { color: var(--muted); font-size: 10px; }
.logs-error-target { justify-content: flex-start; margin-top: 10px; }
.logs-error-target strong, .logs-event-main strong { color: var(--ink); font-size: 12px; }
.logs-error-target span, .logs-event-main span { color: var(--muted); font-size: 11px; }
.logs-error-message { margin: 8px 0 5px; color: var(--danger-text, #991b1b); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.logs-error-meta, .logs-event-meta { color: var(--muted); font-size: 10px; }
.logs-event-main { display: flex; align-items: baseline; gap: 10px; margin: 9px 0 5px; }
.logs-empty-state { padding: 18px; color: var(--muted); font-size: 11px; text-align: center; }

@media (max-width: 720px) {
  .logs-intro { align-items: stretch; flex-direction: column; }
  .logs-filter-controls { flex-direction: column; }
  .logs-filter-controls input { width: 100%; }
  .logs-summary-grid { grid-template-columns: 1fr; }
  .logs-event-main { align-items: flex-start; flex-direction: column; gap: 3px; }
}

.text-button {
  padding: 8px 12px;
  border: 0;
  border-radius: 9px;
  background: var(--subtle) !important;
  color: var(--ink);
  text-decoration: none;
}

.text-button:hover {
  background: var(--accent-soft) !important;
  color: var(--active-text);
  text-decoration: none;
}

:root[data-theme="dark"] .card-box,
:root[data-theme="dark"] .stat-card,
:root[data-theme="dark"] .table-card,
:root[data-theme="dark"] .bot-monitor-card,
:root[data-theme="dark"] .admin-nav,
:root[data-theme="dark"] .modal-card,
:root[data-theme="dark"] .mobile-outlet-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(226, 122, 118, 0.17), transparent 30%),
    linear-gradient(135deg, #342526 0%, var(--surface) 62%, #2a2021 100%);
}

:root[data-theme="dark"] .stat-card:nth-child(2) {
  background:
    radial-gradient(circle at 100% 0%, rgba(131, 188, 145, 0.15), transparent 34%),
    linear-gradient(135deg, #29352d 0%, var(--surface) 68%, #252b26 100%);
}

:root[data-theme="dark"] .stat-card:nth-child(3) {
  background:
    radial-gradient(circle at 100% 0%, rgba(224, 172, 100, 0.14), transparent 34%),
    linear-gradient(135deg, #383027 0%, var(--surface) 68%, #2c2522 100%);
}

:root[data-theme="dark"] .stat-card:nth-child(4) {
  background:
    radial-gradient(circle at 100% 0%, rgba(173, 145, 198, 0.14), transparent 34%),
    linear-gradient(135deg, #302a38 0%, var(--surface) 68%, #28222d 100%);
}

:root[data-theme="dark"] .stat-card.stat-card-primary {
  background: linear-gradient(135deg, var(--accent-soft), var(--surface) 68%);
}

:root[data-theme="dark"] .outlet-list .card-box:nth-child(4n + 1),
:root[data-theme="dark"] .mobile-outlet-card:nth-child(4n + 1) {
  background: linear-gradient(135deg, #443326 0%, #302525 100%);
}

:root[data-theme="dark"] .outlet-list .card-box:nth-child(4n + 2),
:root[data-theme="dark"] .mobile-outlet-card:nth-child(4n + 2) {
  background: linear-gradient(135deg, #2d3b30 0%, #282526 100%);
}

:root[data-theme="dark"] .outlet-list .card-box:nth-child(4n + 3),
:root[data-theme="dark"] .mobile-outlet-card:nth-child(4n + 3) {
  background: linear-gradient(135deg, #393148 0%, #2d2528 100%);
}

:root[data-theme="dark"] .outlet-list .card-box:nth-child(4n + 4),
:root[data-theme="dark"] .mobile-outlet-card:nth-child(4n + 4) {
  background: linear-gradient(135deg, #482c2e 0%, #302526 100%);
}

:root[data-theme="dark"] .desktop-wrapper > .admin-nav,
:root[data-theme="dark"] #paneOutlets > .table-card,
:root[data-theme="dark"] #paneLogs > .bot-monitor-card,
:root[data-theme="dark"] #paneLogs > .table-card,
:root[data-theme="dark"] .dashboard-stack > .card-box:last-child {
  background: linear-gradient(135deg, #343044 0%, #2d2528 100%);
}

/* Final card palette: clear pastel surfaces, no blobs or decorative overlays. */
.outlet-list .card-box:nth-child(4n + 1),
.mobile-outlet-card:nth-child(4n + 1) {
  background: #ffead2;
}

.outlet-list .card-box:nth-child(4n + 2),
.mobile-outlet-card:nth-child(4n + 2) {
  background: #e4f1e4;
}

.outlet-list .card-box:nth-child(4n + 3),
.mobile-outlet-card:nth-child(4n + 3) {
  background: #eee8f7;
}

.outlet-list .card-box:nth-child(4n + 4),
.mobile-outlet-card:nth-child(4n + 4) {
  background: #FDE8E8;
}

.subscription-card {
  background: #FDE8E8;
}

.dashboard-stack > .card-box:last-child {
  background: #e4f1e4;
}

.stat-card:nth-child(1) { background: #FDE8E8; }
.stat-card:nth-child(2) { background: #e4f1e4; }
.stat-card:nth-child(3) { background: #ffead2; }
.stat-card:nth-child(4) { background: #eee8f7; }

#paneOutlets > .table-card { background: #ffead2; }
#paneLogs > .bot-monitor-card { background: #e4f1e4; }
#paneLogs > .table-card { background: #eee8f7; }

:root[data-theme="dark"] .outlet-list .card-box:nth-child(4n + 1),
:root[data-theme="dark"] .mobile-outlet-card:nth-child(4n + 1) {
  background: #493625;
}

:root[data-theme="dark"] .outlet-list .card-box:nth-child(4n + 2),
:root[data-theme="dark"] .mobile-outlet-card:nth-child(4n + 2) {
  background: #2e4132;
}

:root[data-theme="dark"] .outlet-list .card-box:nth-child(4n + 3),
:root[data-theme="dark"] .mobile-outlet-card:nth-child(4n + 3) {
  background: #3b334d;
}

:root[data-theme="dark"] .outlet-list .card-box:nth-child(4n + 4),
:root[data-theme="dark"] .mobile-outlet-card:nth-child(4n + 4) {
  background: #4A0D0D;
}

:root[data-theme="dark"] .subscription-card { background: #4A0D0D; }
:root[data-theme="dark"] .dashboard-stack > .card-box:last-child { background: #2e4132; }
:root[data-theme="dark"] .stat-card:nth-child(1) { background: #4A0D0D; }
:root[data-theme="dark"] .stat-card:nth-child(2) { background: #2e4132; }
:root[data-theme="dark"] .stat-card:nth-child(3) { background: #493625; }
:root[data-theme="dark"] .stat-card:nth-child(4) { background: #3b334d; }

/* Final cascade: only KPI cards use pastel color. */
.card-box,
.table-card,
.bot-monitor-card,
.admin-nav,
.modal-card,
.mobile-outlet-card,
.outlet-list .card-box,
.dashboard-stack > .card-box:last-child,
#paneOutlets > .table-card,
#paneLogs > .bot-monitor-card,
#paneLogs > .table-card {
  background: #fffaf8;
}

.stat-card:nth-child(1) { background: #FDE8E8; }
.stat-card:nth-child(2) { background: #e3f0e5; }
.stat-card:nth-child(3) { background: #fff0cf; }
.stat-card:nth-child(4) { background: #fffaf8; }

:root[data-theme="dark"] .card-box,
:root[data-theme="dark"] .table-card,
:root[data-theme="dark"] .bot-monitor-card,
:root[data-theme="dark"] .admin-nav,
:root[data-theme="dark"] .modal-card,
:root[data-theme="dark"] .mobile-outlet-card,
:root[data-theme="dark"] .outlet-list .card-box,
:root[data-theme="dark"] .dashboard-stack > .card-box:last-child,
:root[data-theme="dark"] #paneOutlets > .table-card,
:root[data-theme="dark"] #paneLogs > .bot-monitor-card,
:root[data-theme="dark"] #paneLogs > .table-card {
  background: #221212;
}

:root[data-theme="dark"] .stat-card:nth-child(1) { background: #4A0D0D; }
:root[data-theme="dark"] .stat-card:nth-child(2) { background: #2e4132; }
:root[data-theme="dark"] .stat-card:nth-child(3) { background: #493c27; }
/* Admin Settings */
.settings-page-shell {
  min-height: 0;
}

@media (min-width: 701px) {
  #paneSettings.active {
    height: 100%;
    min-height: 0;
  }

  .settings-page-shell {
    height: 100%;
    overflow-y: auto;
    padding-right: 8px;
    padding-bottom: 40px;
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
  }
}

.settings-card {
  max-width: 680px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.settings-card .step-indicator {
  display: inline-block;
  color: #991515;
  background: #fae6e4;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.settings-card h2 { margin: 4px 0 6px; color: #111827; font-size: 22px; font-weight: 800; }
.settings-card .card-subtitle { color: #4b5563; font-size: 13px; margin: 0 0 20px; }
.settings-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0 24px;
  padding: 14px 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.settings-account-row strong { display: block; margin-top: 2px; color: #111827; font-size: 15px; font-weight: 800; }
.settings-label { display: block; color: #4b5563; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.settings-role { padding: 6px 12px; border-radius: 6px; background: #111827; color: #ffffff; font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.admin-login-page { min-height: 100vh; background: var(--canvas); }
.admin-login-page,
.admin-login-page * {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}
.admin-login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.admin-login-card { width: min(100%, 420px); padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.admin-login-card h1 { margin: 10px 0 6px; color: var(--ink); font-size: clamp(26px, 5vw, 34px); }
.admin-login-card .step-indicator { font-size: 12px; }
.admin-login-card .card-subtitle { font-size: 14px; }
.admin-login-card label { display: block; margin: 18px 0 7px; color: var(--ink); font-size: 13px; font-weight: 700; }
.admin-login-card .form-input { font-size: 14px; }
.admin-login-submit { width: 100%; margin-top: 20px; }
.admin-login-error { min-height: 18px; margin: 12px 0 0; color: #b45309; font-size: 13px; }
#loginSection.mitra-login-panel {
  padding: 8px 2px 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  width: 100%;
  font-family: 'Nunito', 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
#loginSection .mitra-login-stack {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
#loginSection .mitra-login-hero {
  display: block;
  margin-bottom: 18px;
}
#loginSection .mitra-login-copy,
#loginSection .mitra-login-copy .step-indicator,
#loginSection .mitra-login-copy .card-title,
#loginSection .mitra-login-copy .card-subtitle {
  font-family: 'Nunito', 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}
#loginSection .mitra-login-copy .step-indicator {
  color: #111827;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.35;
  text-transform: none;
}
#loginSection .mitra-login-copy .card-title {
  margin: 6px 0 0;
  color: #111827;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
#loginSection .mitra-login-copy .card-subtitle {
  max-width: 100%;
  margin-top: 12px;
  color: #4b5563;
  font-size: clamp(12px, 3.4vw, 14px);
  font-weight: 600;
  line-height: 1.55;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
#loginSection .mitra-login-form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 18px;
}
#loginSection .mitra-login-form-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#loginSection .mitra-login-field {
  display: grid;
  gap: 10px;
}
#loginSection .mitra-login-field-label {
  color: #1f2937;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.35;
}
#loginSection .mitra-login-error {
  min-height: 20px;
  margin: 0;
  color: #be1a1a;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
}
.auth-highlights {
  display: grid;
  gap: 14px;
  margin-top: 40px;
}
.auth-highlight {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.auth-highlight-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  flex: 0 0 auto;
  background: linear-gradient(180deg, #fff3f0 0%, #fff8f7 100%);
}
.auth-highlight-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.auth-highlight-icon.is-shield img {
  filter: brightness(0) saturate(100%) invert(62%) sepia(84%) saturate(3478%) hue-rotate(350deg) brightness(100%) contrast(98%);
}
.auth-highlight-icon.is-shopeefood img {
  width: 30px;
  height: 30px;
}
.auth-highlight-copy {
  min-width: 0;
}
.auth-highlight-copy strong {
  display: block;
  color: #ff5722;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}
.auth-highlight-copy p {
  margin: 4px 0 0;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.5;
}
#loginSection .password-input-wrapper {
  position: relative;
  min-height: 56px;
  border: 1px solid #d8dee7;
  border-radius: 14px;
  background: #ffffff;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
#loginSection .password-input-wrapper:focus-within {
  border-color: #be1a1a;
  box-shadow: 0 0 0 4px rgba(190, 26, 26, .08);
  background: #ffffff;
}
#loginSection .password-input-wrapper.has-error {
  border-color: #be1a1a;
  box-shadow: 0 0 0 3px rgba(190, 26, 26, .08);
}
#loginSection .password-field-icon {
  position: absolute;
  top: calc(50% + 1px);
  left: 14px;
  display: inline-grid;
  place-items: center;
  color: #ff5a43;
  transform: translateY(-50%);
  pointer-events: none;
}
#loginSection .password-field-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
#loginSection .password-input-wrapper .form-input {
  min-height: 56px;
  margin-top: 0;
  padding-left: 46px;
  padding-right: 48px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #111827;
  font-size: 15px;
  font-weight: 600;
}
#loginSection .password-input-wrapper .form-input::placeholder {
  color: #9ca3af;
  font-weight: 500;
}
#loginSection .password-input-wrapper .form-input:focus {
  border-color: transparent !important;
}
#loginSection .password-toggle-btn {
  right: 11px;
  width: 36px;
  height: 36px;
  color: #6b7280;
}
#loginSection .password-toggle-btn:hover {
  background: rgba(255, 90, 67, .08);
  color: #1f2937;
}
#loginSection .password-toggle-btn:disabled {
  opacity: .5;
  cursor: wait;
}
#loginSection .mitra-login-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 0;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(190, 26, 26, .18);
  font-size: 15px;
  font-weight: 800;
}
#loginSection .mitra-login-submit:disabled {
  box-shadow: none;
  cursor: wait;
  opacity: .78;
}
#loginSection .google-auth-option {
  margin-top: 8px;
}
#loginSection .mitra-login-copyright {
  margin: auto 0 0;
  padding-top: 28px;
  color: #9ca3af;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}
.auth-trust-note {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding-top: 2px;
}
.auth-trust-note-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff3f0 0%, #fff8f7 100%);
}
.auth-trust-note-icon img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(62%) sepia(84%) saturate(3478%) hue-rotate(350deg) brightness(100%) contrast(98%);
}
.auth-trust-note-copy {
  min-width: 0;
}
.auth-trust-note-copy strong {
  display: block;
  color: #111827;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}
.auth-trust-note-copy p {
  margin: 4px 0 0;
  color: #4b5563;
  font-size: 12.5px;
  line-height: 1.55;
}
.password-field { position: relative; }
.password-field .form-input { padding-right: 48px; }
.password-visibility-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.password-visibility-toggle:hover { background: var(--subtle); color: var(--ink); }
.password-visibility-toggle:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 65%, white); outline-offset: 1px; }
.password-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.password-icon.is-hidden { display: none !important; }
.bot-log-eyebrow { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.bot-log-title { margin-top: 3px; color: var(--ink); font-size: 18px; font-weight: 800; }
.bot-log-meta { margin-top: 3px; color: var(--muted); font-size: 12px; }
.bot-refresh-control { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); cursor: pointer; font-size: 12px; font-weight: 700; user-select: none; }
.log-timestamp { color: var(--muted); font-size: 11px; white-space: normal; }
@media (min-width: 768px) {
  #paneLogs .table-heading { align-items: center; }
  #paneLogs .log-filter-controls { flex: 1 1 auto; flex-wrap: nowrap; justify-content: flex-end; min-width: 0; }
  #paneLogs .log-filter-controls select { flex: 0 0 150px; }
  #paneLogs #logSearchInput { flex: 1 1 300px; width: min(300px, 100%); min-width: 180px; }
  #paneLogs .log-filter-controls button { flex: 0 0 auto; white-space: nowrap; }
}
@media (max-width: 767.98px) {
  #logsTable { width: 100%; min-width: 0; table-layout: fixed; }
  #logsTable th, #logsTable td { padding: 10px 8px; font-size: 11px; vertical-align: middle; }
  #logsTable th:nth-child(1), #logsTable td:nth-child(1) { width: 25% !important; }
  #logsTable th:nth-child(2), #logsTable td:nth-child(2) { width: 18% !important; }
  #logsTable th:nth-child(3), #logsTable td:nth-child(3) { width: 35% !important; }
  #logsTable th:nth-child(4), #logsTable td:nth-child(4) { width: 27% !important; }
  #logsTable th:nth-child(5), #logsTable td:nth-child(5) { display: none; }
  #logsTable td:nth-child(1) small { white-space: normal; overflow-wrap: anywhere; font-size: 10px !important; }
  #logsTable td:nth-child(3) strong { display: block; overflow-wrap: anywhere; }
  #logsTable .log-action-badge { white-space: normal; }
}
.settings-section { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.settings-section-title { margin-bottom: 14px; color: #111827; font-size: 14px; font-weight: 800; }
.settings-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.settings-form-grid label { display: block; color: #1f2937 !important; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.settings-form-grid .form-input { width: 100%; margin-top: 0; text-transform: none; letter-spacing: normal; }
.settings-message { min-height: 18px; margin: 10px 0 0; color: #16a34a; font-size: 12px; font-weight: 600; }
.admin-account-list { display: flex; flex-direction: column; gap: 8px; }
.admin-account-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; color: #111827; }
.admin-account-info strong { display: block; color: #111827; font-size: 13.5px; font-weight: 700; }
.admin-account-email { margin-top: 2px; font-size: 11.5px; color: #4b5563; }
.admin-status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.admin-status-badge.is-active { background: #dcfce7; color: #15803d; }
.admin-status-badge.is-inactive { background: #f1f5f9; color: #64748b; }
.btn-logout-action { margin-top: 24px; }
@media (max-width: 640px) {
  .settings-form-grid { grid-template-columns: 1fr; }
  .settings-card { padding: 22px; }
  .admin-login-card { padding: 24px 20px; }
  #loginSection .mitra-login-copy {
    text-align: center;
  }
  #loginSection .mitra-login-copy .step-indicator,
  #loginSection .mitra-login-copy .card-title,
  #loginSection .mitra-login-copy .card-subtitle {
    margin-inline: auto;
  }
  #loginSection .mitra-login-copy .step-indicator { font-size: 14px; letter-spacing: .02em; }
  #loginSection .mitra-login-copy .card-title { font-size: 24px; }
  #loginSection .mitra-login-copy .card-subtitle { max-width: 100%; font-size: clamp(12px, 3.4vw, 14px); white-space: nowrap; }
  #loginSection .mitra-login-field-label { font-size: 12.5px; }
  .auth-highlight { grid-template-columns: 42px minmax(0, 1fr); gap: 10px; padding: 4px 0; }
  .auth-highlight-icon { width: 42px; height: 42px; border-radius: 12px; }
  .auth-highlight-icon img {
    width: 24px;
    height: 24px;
  }
  .auth-highlight-icon.is-shopeefood img { width: 26px; height: 26px; }
  .auth-highlight-copy strong { font-size: 12px; }
  .auth-highlight-copy p { font-size: 11px; }
  #loginSection .mitra-login-error { font-size: 12.5px; }
  .auth-trust-note { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; }
  .auth-trust-note-icon { width: 40px; height: 40px; border-radius: 12px; }
  .auth-trust-note-icon img { width: 24px; height: 24px; }
  .auth-trust-note-copy strong { font-size: 12.5px; }
  .auth-trust-note-copy p { font-size: 12px; }
  #loginSection .password-input-wrapper { min-height: 54px; }
  #loginSection .password-field-icon { top: calc(50% + 1px); left: 13px; }
  #loginSection .password-field-icon svg { width: 19px; height: 19px; }
  #loginSection .password-input-wrapper .form-input { min-height: 54px; margin-top: 0; padding-left: 42px; font-size: 16px; }
  #loginSection .mitra-login-submit { min-height: 50px; font-size: 15px; }
}

.skeleton {
  display: block;
  background: linear-gradient(100deg, color-mix(in srgb, var(--subtle) 84%, transparent) 30%, color-mix(in srgb, var(--surface) 88%, white) 50%, color-mix(in srgb, var(--subtle) 84%, transparent) 70%);
  background-size: 220% 100%;
  animation: skeleton-shimmer 1.35s ease-in-out infinite;
  border-radius: 6px;
}
.skeleton-cell { width: 76%; height: 13px; }
.skeleton-table-row td { height: 50px; }
.skeleton-title { width: 52%; height: 17px; margin-bottom: 14px; }
.skeleton-line { width: 88%; height: 11px; margin-top: 10px; }
.skeleton-line-short { width: 62%; }
.skeleton-mobile-card { min-height: 116px; }
.stat-val.is-skeleton-loading { width: 58px; height: 30px; color: transparent; }
.stat-detail.is-skeleton-loading { width: 116px; height: 12px; color: transparent; }
@keyframes skeleton-shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }

/* Outlet cards stay neutral; pastel emphasis belongs to the KPI row only. */
.mobile-outlet-card { background: #fffaf8 !important; }
:root[data-theme="dark"] .mobile-outlet-card { background: #2d2324 !important; }
.admin-tab-nav { scrollbar-width: none; }
.admin-tab-nav::-webkit-scrollbar { display: none; }

/* Clean White KPI card treatment: no background tint or geometric shapes */
#paneOutlets > .row > .col-6 .stat-card,
#paneOutlets > .row > .col-lg-3 .stat-card {
  background: #ffffff !important;
  border: 1px solid #f3dcd9 !important;
}

#paneOutlets > .row > .col-6 .stat-card::before,
#paneOutlets > .row > .col-lg-3 .stat-card::before,
#paneOutlets > .row > .col-6 .stat-card::after,
#paneOutlets > .row > .col-lg-3 .stat-card::after {
  display: none !important;
  content: none !important;
}

#paneOutlets > .row > .col-6:nth-child(4) .stat-card::after,
#paneOutlets > .row > .col-lg-3:nth-child(4) .stat-card::after {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 40px;
  height: 4px;
  background: #7d746e;
  box-shadow: 0 -9px 0 #aaa19b, 0 -18px 0 #c3bbb5;
  content: '';
}

.table-card .data-table thead th,
.data-table thead th {
  background: #BE1A1A !important;
  color: #ffffff !important;
  border-bottom: 0 !important;
  font-weight: 700 !important;
}

/* Center the outlet list columns while keeping the expanded detail layout intact. */
#adminTable > thead th,
#adminTable > tbody > tr:not(.detail-row) > td {
  text-align: center;
}

#adminTable > tbody > tr:not(.detail-row) .row-actions {
  justify-content: center;
}

.btn-primary {
  background: #BE1A1A !important;
  color: #ffffff !important;
  border: 0 !important;
  box-shadow: none !important;
  font-weight: 700 !important;
}

.btn-primary:hover {
  background: #991515 !important;
  color: #ffffff !important;
}

.btn-danger {
  background: #BE1A1A !important;
  color: #ffffff !important;
  border: 0 !important;
  box-shadow: none !important;
}

.btn-danger:hover {
  background: #991515 !important;
}

.btn-outline {
  background: #ffffff !important;
  color: #BE1A1A !important;
  border: 1.5px solid #BE1A1A !important;
  font-weight: 600 !important;
}

.btn-outline:hover {
  background: #f9e4e1 !important;
  color: #991515 !important;
}

.tab-btn.active {
  color: #BE1A1A !important;
  border-bottom: 3px solid #BE1A1A !important;
  font-weight: 700 !important;
}

.tab-btn.active .tab-badge {
  background: #BE1A1A !important;
  color: #ffffff !important;
}

.tab-badge {
  background: #f9e4e1 !important;
  color: #BE1A1A !important;
}

.table-heading-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-heading-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bot-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #52705a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.bot-status-badge::before {
  width: 7px;
  height: 7px;
  background: #6d9a76;
  border-radius: 50%;
  content: '';
}

.bot-status-badge.is-offline {
  color: #87615d;
}

.bot-status-badge.is-offline::before {
  background: #a9827c;
}

/* Final cascade: Red & White styling */
.card-box,
.table-card,
.bot-monitor-card,
.admin-nav,
.modal-card,
.mobile-outlet-card,
.outlet-list .card-box,
.dashboard-stack > .card-box:last-child,
#paneOutlets > .table-card,
#paneLogs > .bot-monitor-card,
#paneLogs > .table-card {
  background: #ffffff;
  border: 1px solid #f3dcd9;
}

.stat-card,
.stat-card:nth-child(1),
.stat-card:nth-child(2),
.stat-card:nth-child(3),
.stat-card:nth-child(4) {
  background: #ffffff !important;
  border: 1px solid #f3dcd9 !important;
  border-left: 1px solid #f3dcd9 !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}

.stat-card::before,
.stat-card::after,
.stat-card:nth-child(1)::before,
.stat-card:nth-child(1)::after,
.stat-card:nth-child(2)::before,
.stat-card:nth-child(2)::after,
.stat-card:nth-child(3)::before,
.stat-card:nth-child(3)::after,
.stat-card:nth-child(4)::before,
.stat-card:nth-child(4)::after {
  display: none !important;
  content: none !important;
}

.stat-card .stat-label {
  color: #111827 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.stat-card .stat-val {
  color: #111827 !important;
  font-size: 26px !important;
  font-weight: 800 !important;
}

.stat-card .stat-detail {
  color: #4B5563 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

/* Toast Notification & Error Modal Styling */
.toast-container-custom {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-custom {
  pointer-events: auto;
  min-width: 280px;
  max-width: 420px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: slideUpToast 0.3s ease-out;
}

@keyframes slideUpToast {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.toast-custom.toast-success {
  border-left: 4px solid #16a34a;
  color: #14532d;
}

.toast-custom.toast-error {
  border-left: 4px solid #BE1A1A;
  color: #7f1d1d;
}

.toast-custom.toast-info {
  border-left: 4px solid #2563eb;
  color: #1e3a8a;
}

.toast-container-custom {
  top: 24px;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translateX(-50%);
  align-items: center;
}

.toast-custom {
  min-width: 0;
  max-width: min(420px, calc(100vw - 32px));
  border: 1px solid #198754;
  border-left: 1px solid #198754;
  border-radius: 30px;
  background: #198754;
  color: #ffffff;
  font-weight: 800;
  animation: admin-toast-slide-in 220ms ease-out;
}

.toast-custom.toast-error {
  border-color: #be1a1a;
  border-left-color: #be1a1a;
  background: #be1a1a;
  color: #ffffff;
}

.toast-custom.toast-info {
  border-color: #2563eb;
  border-left-color: #2563eb;
  background: #2563eb;
  color: #ffffff;
}

.toast-custom.toast-dark {
  border-color: #18181b;
  border-left-color: #18181b;
  background: #18181b;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.toast-custom.toast-success,
.toast-custom.toast-error,
.toast-custom.toast-info,
.toast-custom.toast-dark {
  color: #ffffff;
}

.toast-custom.is-hiding {
  animation: admin-toast-slide-out 220ms ease-in forwards;
}

.toast-custom .toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

@keyframes admin-toast-slide-in {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes admin-toast-slide-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-12px); }
}

.user-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  z-index: 9999;
  max-width: min(360px, calc(100vw - 40px));
  padding: 12px 14px;
  border: 1px solid #198754;
  border-radius: 30px;
  background: #198754;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  animation: toast-slide-in 220ms ease-out;
}

.user-toast.is-error {
  border-color: #be1a1a;
  background: #be1a1a;
}

.user-toast.is-hiding {
  animation: toast-slide-out 220ms ease-in forwards;
}

.toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  animation: toast-check-pop 350ms ease-out;
}

.toast-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toast-icon-error {
  font-size: 15px;
  line-height: 1;
  animation: toast-check-pop 350ms ease-out;
}

@keyframes toast-slide-in {
  from { opacity: 0; transform: translate(-50%, -12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes toast-check-pop {
  0% { transform: scale(0.4); opacity: 0; }
  70% { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); }
}

@keyframes toast-slide-out {
  from { opacity: 1; transform: translate(-50%, 0); }
  to { opacity: 0; transform: translate(-50%, -12px); }
}

.user-toast[hidden] {
  display: none;
}

/* Mitra dashboard: keep repeated outlet cards neutral; color communicates state only. */
.mobile-wrapper .card-box {
  background: #ffffff !important;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 16px rgba(17, 24, 39, 0.06);
}

.mobile-wrapper .outlet-list .card-box {
  background: #ffffff !important;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 16px rgba(17, 24, 39, 0.06);
}

.mobile-wrapper .outlet-control {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}

.mobile-wrapper .subscription-card,
.mobile-wrapper .dashboard-stack > .card-box:last-child {
  background: #ffffff !important;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 16px rgba(17, 24, 39, 0.06);
}

.mobile-wrapper .outlet-list .btn-danger {
  background: #BE1A1A !important;
  border: 1px solid #BE1A1A !important;
  color: #ffffff !important;
}

.mobile-wrapper .outlet-list .btn-danger:hover {
  background: #991515 !important;
  border-color: #991515 !important;
}

.modal-card.modal-card-error {
  border-top: 4px solid #BE1A1A;
}

.error-modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.error-modal-title {
  color: #BE1A1A;
  font-size: 18px;
  font-weight: 800;
  margin: 0;
}

.error-modal-body {
  background: #fef2f2;
  border: 1px solid #fee2e2;
  border-radius: 8px;
  padding: 12px 14px;
  color: #991b1b;
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 18px;
  word-break: break-word;
}

/* ── Bot Activity Evidence Panel ─────────────────────────────────────── */
.bot-activity-panel {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 12px;
  padding: 0 0 16px 0;
}

@media (max-width: 768px) {
  .bot-activity-panel {
    grid-template-columns: 1fr 1fr;
  }
  .bot-act-card--wide {
    grid-column: 1 / -1;
  }
}

.bot-act-card {
  background: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  min-height: 90px;
}

.bot-act-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}

.bot-act-value {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  line-height: 1.2;
}

.bot-act-sub {
  font-size: 11.5px;
  font-weight: 500;
  color: #6b7280;
  margin-top: 2px;
}

.bot-act-empty {
  font-size: 12.5px;
  color: #9ca3af;
  font-style: italic;
}

.bot-act-actions-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
  max-height: 140px;
  overflow-y: auto;
}

.act-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.4;
  flex-wrap: wrap;
}

.act-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.act-open {
  background: #d1fae5;
  color: #065f46;
}

.act-close {
  background: #fee2e2;
  color: #991b1b;
}

.act-other {
  background: #f3f4f6;
  color: #374151;
}

.act-store-name {
  font-weight: 600;
  color: #111827;
}

.act-reason {
  color: #6b7280;
  flex: 1;
  font-size: 11.5px;
}

.act-time {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 500;
  white-space: nowrap;
}

/* ── Password Field Show/Hide Toggle Button ────────────────────────────── */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-input-wrapper .form-input {
  padding-right: 42px;
  width: 100%;
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.1s ease;
  border-radius: 6px;
}

.password-toggle-btn:hover {
  color: #1e293b;
  background: rgba(0, 0, 0, 0.04);
}

.password-toggle-btn:active {
  transform: scale(0.94);
}

/* Google Sign-In Button & Login Divider Styling */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #ffffff !important;
  color: #1f2937 !important;
  border: 1px solid #d1d5db !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 10px 16px !important;
  border-radius: 8px !important;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
}

.btn-google:hover {
  background: #f9fafb !important;
  border-color: #9ca3af !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-google svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.login-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 500;
  margin: 16px 0;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e5e7eb;
}

.login-divider:not(:empty)::before {
  margin-right: .5em;
}

.login-divider:not(:empty)::after {
  margin-left: .5em;
}

/* Add merchant page */
.admin-add-merchant-page .btn-primary,
.admin-add-merchant-page .btn-outline,
.admin-add-merchant-page .btn-primary:hover,
.admin-add-merchant-page .btn-outline:hover {
  text-decoration: none;
}

.add-merchant-shell {
  padding: 8px 4px 40px;
}

.add-merchant-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  margin-bottom: 18px;
  color: var(--link);
  font-weight: 700;
  text-decoration: none;
}

.add-merchant-back svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.add-merchant-back:hover {
  color: var(--accent-dark);
}

.add-merchant-intro {
  margin-bottom: 22px;
}

.add-merchant-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  align-items: start;
  gap: 18px;
}

.add-merchant-form-column {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.add-merchant-card,
.add-merchant-review-inner {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.add-merchant-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.add-merchant-section-heading .step-indicator {
  flex: 0 0 auto;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  padding: 0;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 11px;
  text-align: center;
}

.add-merchant-section-heading h2,
.add-merchant-review h2 {
  margin: 2px 0 3px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.add-merchant-section-heading p,
.add-merchant-review-copy {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.add-merchant-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.add-merchant-field {
  min-width: 0;
}

.add-merchant-field-full {
  grid-column: 1 / -1;
}

.add-merchant-field label {
  display: block;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.add-merchant-field label span {
  color: var(--accent);
}

.add-merchant-field-hint {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.custom-select {
  position: relative;
  margin-top: 6px;
}

.custom-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--subtle);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  text-align: left;
}

.custom-select-trigger:focus-visible,
.custom-select-menu button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent);
  outline-offset: 2px;
}

.custom-select-trigger[aria-expanded="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}

.custom-select-chevron {
  color: var(--muted);
  font-size: 17px;
  line-height: .7;
  transform: translateY(-2px);
}

.custom-select-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 5px);
  right: 0;
  left: 0;
  display: grid;
  gap: 3px;
  max-height: 210px;
  overflow-y: auto;
  padding: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(36, 31, 30, .14);
}

.custom-select-menu[hidden] {
  display: none;
}

.custom-select-menu button {
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  text-align: left;
}

.custom-select-menu button:hover,
.custom-select-menu button[aria-selected="true"] {
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
}

.add-merchant-password,
.add-merchant-result-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.add-merchant-password {
  position: relative;
  display: block;
}

.add-merchant-password .form-input {
  min-width: 0;
}

.add-merchant-result-row .form-input {
  min-width: 0;
}

.add-merchant-copy-button {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: currentColor;
  cursor: pointer;
}

.add-merchant-copy-button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.add-merchant-copy-button:hover,
.add-merchant-copy-button:focus-visible {
  color: var(--accent-dark);
}

.add-merchant-copy-button.is-copied {
  color: var(--accent-dark);
}

.add-merchant-copy-toast {
  position: fixed;
  z-index: 1200;
  right: 20px;
  bottom: 20px;
  max-width: min(320px, calc(100vw - 40px));
  padding: 10px 14px;
  border: 1px solid #171717;
  border-radius: 10px;
  background: #171717;
  box-shadow: var(--shadow);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.add-merchant-copy-toast[hidden] {
  display: none;
}

.add-merchant-review {
  position: sticky;
  top: 20px;
}

.add-merchant-review-copy {
  margin-top: 8px;
}

.add-merchant-summary {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.add-merchant-summary div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.add-merchant-summary dt {
  color: var(--muted);
  font-size: 11px;
}

.add-merchant-summary dd {
  max-width: 62%;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  text-align: right;
}

.add-merchant-form-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
}

.add-merchant-form-actions .btn-primary,
.add-merchant-form-actions .btn-outline {
  min-height: 42px;
  padding-inline: 12px;
  text-align: center;
}

.add-merchant-feedback {
  padding: 14px;
  border-radius: 10px;
  font-size: 12px;
}

.add-merchant-review .add-merchant-feedback {
  margin-top: 14px;
}

.add-merchant-feedback p {
  margin: 7px 0 0;
  line-height: 1.5;
}

.add-merchant-feedback.is-error {
  background: var(--danger-panel);
  border: 1px solid var(--danger-panel-border);
  color: var(--danger-panel-text);
}

.add-merchant-feedback.is-success {
  background: var(--active-bg);
  border: 1px solid var(--active-border);
  color: var(--active-text);
}

.add-merchant-result-row {
  margin-top: 8px;
}

.add-merchant-result-row .form-input {
  margin-top: 0;
  background: var(--surface);
  font-size: 11px;
}


.leave-confirm-overlay[hidden] {
  display: none;
}

.leave-confirm-overlay {
  position: fixed;
  z-index: 1100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: var(--overlay);
}

.leave-confirm-card {
  width: min(100%, 420px);
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}

.leave-confirm-card h2 {
  margin: 8px 0 6px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}

.leave-confirm-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.leave-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 20px;
}

.leave-confirm-actions button {
  min-height: 42px;
}

@media (max-width: 767.98px) {
  .add-merchant-shell {
    padding-inline: 0;
  }

  .add-merchant-layout,
  .add-merchant-fields {
    grid-template-columns: 1fr;
  }

  .add-merchant-review {
    position: static;
  }

  .add-merchant-field-full {
    grid-column: auto;
  }

  .add-merchant-form-actions {
    grid-template-columns: 1fr;
  }

  .add-merchant-copy-toast {
    right: 16px;
    bottom: 16px;
    left: 16px;
    max-width: none;
    text-align: center;
  }

  .user-toast {
    top: 16px;
    right: 16px;
    bottom: auto;
    left: 16px;
    transform: none;
    max-width: none;
    justify-content: center;
    animation-name: toast-slide-in-mobile;
  }

  .user-toast.is-hiding {
    animation-name: toast-slide-out-mobile;
  }
}

@keyframes toast-slide-in-mobile {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-slide-out-mobile {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-12px); }
}

/* Mobile outlet list: keep one clear surface per outlet card. */
@media (max-width: 767.98px) {
  #paneOutlets > .table-card.outlet-section {
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .outlet-section .table-heading {
    align-items: center;
    padding: 10px 0 14px !important;
  }

  .outlet-section .table-heading h2 {
    font-size: 19px !important;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.25;
  }

  .mobile-outlet-list {
    gap: 12px;
    padding: 0;
    background: transparent;
  }

  .mobile-outlet-card {
    background: #fff !important;
    border: 1px solid #eadfdb !important;
    border-radius: 14px !important;
    box-shadow: none !important;
  }
}

/* Final admin console surface rules. */
.admin-shell { grid-template-columns: 208px minmax(0, 1fr); }
.admin-shell .admin-main { padding: 28px 34px 40px; min-width: 0; overflow: hidden; }
.admin-shell .admin-main > .desktop-wrapper { width: 100%; max-width: none; min-width: 0; overflow: hidden; }
.admin-shell .admin-main .stats-grid { gap: 12px; margin-bottom: 18px; }
.admin-shell .admin-main .stat-card { min-height: 102px; padding: 16px 18px 14px 68px; }
.admin-shell .admin-main .stat-card-top .stat-icon { left: 18px; width: 34px; height: 34px; }
.admin-shell .admin-main .stat-card .stat-val { margin: 3px 0 0; font-size: 27px !important; }
.admin-shell .admin-main .stat-card .stat-label { font-size: 9px !important; }
.admin-shell .admin-main .stat-card .stat-detail { font-size: 10px !important; }
.admin-shell .admin-main .outlet-filter-card { margin-bottom: 12px; padding: 14px 16px 16px; background: #fff; border: 1px solid #ececee; border-radius: 10px; }
.admin-shell .admin-main .outlet-filter-card .table-heading { padding: 0; }
.admin-shell .admin-main .outlet-filter-toolbar { grid-template-columns: minmax(190px, 1.4fr) repeat(3, minmax(120px, 1fr)); gap: 10px; }
.admin-shell .admin-main .filter-field { gap: 5px; font-size: 10px; }
.admin-shell .admin-main .filter-field .form-input { height: 36px; font-size: 11px; }
.admin-shell .admin-main .outlet-filter-card .reset-filter-button { height: 36px; }
.admin-shell .admin-main .outlet-section { margin: 0; }
.admin-shell .admin-main .data-table { width: 100%; min-width: 0 !important; table-layout: fixed; }
.admin-shell .admin-main .data-table th, .admin-shell .admin-main .data-table td { padding: 10px 8px !important; font-size: 10px !important; overflow-wrap: anywhere; }
.admin-shell .admin-main .data-table th { white-space: normal; line-height: 1.25; }
.admin-shell .admin-main .data-table th:nth-child(1), .admin-shell .admin-main .data-table td:nth-child(1) { width: 12%; }
.admin-shell .admin-main .data-table th:nth-child(2), .admin-shell .admin-main .data-table td:nth-child(2) { width: 13%; }
.admin-shell .admin-main .data-table th:nth-child(3), .admin-shell .admin-main .data-table td:nth-child(3) { width: 9%; }
.admin-shell .admin-main .data-table th:nth-child(4), .admin-shell .admin-main .data-table td:nth-child(4) { width: 18%; }
.admin-shell .admin-main .data-table th:nth-child(5), .admin-shell .admin-main .data-table td:nth-child(5) { width: 14%; }
.admin-shell .admin-main .data-table th:nth-child(6), .admin-shell .admin-main .data-table td:nth-child(6) { width: 13%; }
.admin-shell .admin-main .data-table th:nth-child(7), .admin-shell .admin-main .data-table td:nth-child(7) { width: 14%; }
.admin-shell .admin-main .data-table th:nth-child(8), .admin-shell .admin-main .data-table td:nth-child(8) { width: 7%; }
.admin-shell .admin-main .table-scroll { overflow-x: hidden; }
.admin-shell .admin-main .stat-card { min-height: 108px; padding: 17px 20px 16px 76px; }
.admin-shell .admin-main .stat-card-top .stat-icon { left: 20px; width: 38px; height: 38px; }
.admin-shell .admin-main .stat-card .stat-label { font-size: 10px !important; line-height: 1.25; }
.admin-shell .admin-main .stat-card .stat-val { margin: 6px 0 3px; font-size: 32px !important; line-height: 1 !important; }
.admin-shell .admin-main .stat-card .stat-detail { font-size: 11px !important; line-height: 1.3; }
@media (max-width: 700px) { .admin-shell .admin-main .stat-card { min-height: 104px; padding: 15px 12px 14px 56px; } .admin-shell .admin-main .stat-card-top .stat-icon { left: 13px; width: 30px; height: 30px; } .admin-shell .admin-main .stat-card .stat-val { font-size: 28px !important; } }
@media (min-width: 1200px) { .admin-shell .admin-main .outlet-filter-toolbar { grid-template-columns: minmax(210px, 1.5fr) repeat(6, minmax(100px, 1fr)) auto; } }
@media (max-width: 700px) { .admin-shell .admin-main { padding: 20px 15px 32px; overflow: visible; } .admin-shell .admin-main .stat-card { min-height: 100px; padding: 14px 12px 12px 52px; } .admin-shell .admin-main .stat-card-top .stat-icon { left: 12px; width: 28px; height: 28px; } .admin-shell .admin-main .outlet-filter-card { padding: 12px; } .admin-shell .admin-main .data-table { min-width: 0 !important; } }
.admin-shell .admin-main .stat-card { display: block; padding: 22px 24px 18px 82px; }
.admin-shell .admin-main .stat-card-top { display: block; }
.admin-shell .admin-main .stat-card-top .stat-icon { position: absolute; top: 50%; left: 24px; width: 42px; height: 42px; transform: translateY(-50%); }
.admin-shell .admin-main .stat-card .stat-label,
.admin-shell .admin-main .stat-card .stat-val,
.admin-shell .admin-main .stat-card .stat-detail { display: block; }
@media (max-width: 700px) { .admin-shell .admin-main .stat-card { padding: 15px 15px 15px 58px; } .admin-shell .admin-main .stat-card-top .stat-icon { left: 15px; width: 32px; height: 32px; } }
.admin-shell .admin-main { min-width: 0; overflow: hidden; }
.admin-shell .admin-main > .desktop-wrapper { width: 100%; max-width: none; min-width: 0; overflow: hidden; }
.admin-shell .admin-main .stats-grid { width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.admin-shell .admin-main .stat-card { position: relative; display: grid; min-width: 0; min-height: 128px; grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 16px; align-content: center; padding: 22px 24px; }
.admin-shell .admin-main .stat-card-top { display: contents; }
.admin-shell .admin-main .stat-card-top .stat-icon { grid-column: 1; grid-row: 1 / 4; align-self: center; width: 40px; height: 40px; padding: 7px; }
.admin-shell .admin-main .stat-card-top .stat-label { grid-column: 2; grid-row: 1; align-self: end; }
.admin-shell .admin-main .stat-card .stat-val { grid-column: 2; grid-row: 2; align-self: center; margin: 5px 0 1px; }
.admin-shell .admin-main .stat-card .stat-detail { grid-column: 2; grid-row: 3; }
.admin-shell .admin-main .outlet-filter-toolbar { grid-template-columns: minmax(230px, 1.5fr) repeat(3, minmax(145px, 1fr)); gap: 16px 12px; align-items: end; }
.admin-shell .admin-main .filter-field { display: grid; min-width: 0; gap: 7px; margin: 0; color: #3f444c; font-size: 11px; font-weight: 700; }
.admin-shell .admin-main .filter-field .form-input { min-width: 0; height: 42px; }
.admin-shell .admin-main .filter-search-field { grid-column: span 2; }
.admin-shell .admin-main .reset-filter-button { height: 42px; white-space: nowrap; }
.admin-shell .admin-main .table-scroll { overflow-x: auto; }
.admin-shell .admin-main .data-table { min-width: 1120px; }
@media (min-width: 1200px) { .admin-shell .admin-main .outlet-filter-toolbar { grid-template-columns: minmax(220px, 1.4fr) repeat(6, minmax(112px, 1fr)) auto; gap: 12px; } .admin-shell .admin-main .filter-search-field { grid-column: auto; } }
@media (max-width: 1100px) { .admin-shell .admin-main .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .admin-shell .admin-main { overflow: visible; } .admin-shell .admin-main .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .admin-shell .admin-main .stat-card { min-height: 112px; grid-template-columns: 34px minmax(0, 1fr); column-gap: 10px; padding: 15px; } .admin-shell .admin-main .stat-card-top .stat-icon { width: 30px; height: 30px; padding: 5px; } .admin-shell .admin-main .outlet-filter-toolbar { grid-template-columns: 1fr 1fr; gap: 12px 8px; } .admin-shell .admin-main .filter-search-field, .admin-shell .admin-main .reset-filter-button { grid-column: 1 / -1; } }
.admin-shell .admin-sidebar-nav .tab-btn.active { border: 0 !important; }
.admin-shell .sidebar-icon,
.admin-shell .stat-icon,
.admin-shell .fetch-sheet-button svg,
.admin-shell .reset-filter-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.admin-shell .stat-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-shell .stat-card-top .stat-label { order: 0; }
.admin-shell .stat-card-top .stat-icon { order: 1; }
.admin-shell .stat-icon { flex: 0 0 auto; width: 28px; height: 28px; padding: 5px; border-radius: 0; }
.admin-shell .stat-icon-neutral { color: #17191d; }
.admin-shell .stat-icon-open { color: #16834f; }
.admin-shell .stat-icon-closed { color: #be1a1a; }
.admin-shell .stat-icon-subscription { color: #b87900; }
.admin-shell .fetch-sheet-button { display: inline-flex; align-items: center; gap: 6px; background: #be1a1a !important; color: #fff !important; border: 0 !important; }
.admin-shell .fetch-sheet-button:hover { background: #991515 !important; color: #fff !important; }
.admin-shell .reset-filter-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: #fff !important; color: #17191d !important; border: 1px solid #dedfe2 !important; }
.admin-shell .reset-filter-button:hover { background: #f5f5f6 !important; color: #17191d !important; }
.admin-shell .admin-main .table-card .data-table thead th,
.admin-shell .admin-main .data-table thead th { background: #fff !important; color: #555b64 !important; border-bottom: 1px solid #ececee !important; }
.admin-shell .admin-sidebar { background: #fff; color: #17191d; border-right: 1px solid #ececee; }
.admin-shell .admin-main .stat-card,
.admin-shell .admin-main .stat-card:nth-child(1),
.admin-shell .admin-main .stat-card:nth-child(2),
.admin-shell .admin-main .stat-card:nth-child(3),
.admin-shell .admin-main .stat-card:nth-child(4) { border: 0 !important; box-shadow: none !important; }
.admin-shell .admin-main .stat-card:nth-child(1),
.admin-shell .admin-main .stat-card:nth-child(2),
.admin-shell .admin-main .stat-card:nth-child(3),
.admin-shell .admin-main .stat-card:nth-child(4) { background: #fff !important; border: 1px solid #ececee !important; box-shadow: 0 2px 8px rgba(23, 25, 29, .03) !important; }
.admin-shell .admin-main .stat-card { min-height: 108px; padding: 17px 20px 16px 76px; }
.admin-shell .admin-main .stat-card-top .stat-icon { left: 20px; width: 38px; height: 38px; }
.admin-shell .admin-main .stat-card .stat-label { font-size: 10px !important; line-height: 1.25; letter-spacing: .055em !important; }
.admin-shell .admin-main .stat-card .stat-val { margin: 6px 0 3px; font-size: 32px !important; line-height: 1 !important; }
.admin-shell .admin-main .stat-card .stat-detail { font-size: 11px !important; line-height: 1.3; }
@media (max-width: 700px) { .admin-shell .admin-main .stat-card { min-height: 104px; padding: 15px 12px 14px 56px; } .admin-shell .admin-main .stat-card-top .stat-icon { left: 13px; width: 30px; height: 30px; } .admin-shell .admin-main .stat-card .stat-val { font-size: 28px !important; } }
.admin-shell .admin-main .stat-card .stat-label,
.admin-shell .admin-main .stat-card .stat-val,
.admin-shell .admin-main .stat-card .stat-detail { color: #17191d !important; }
.admin-shell { grid-template-columns: 208px minmax(0, 1fr); }
.admin-shell .admin-main { min-width: 0; overflow: hidden; padding: 28px 34px 40px; }
.admin-shell .admin-main > .desktop-wrapper { width: 100%; max-width: none; min-width: 0; overflow: hidden; }
.admin-shell .admin-main .stats-grid { width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.admin-shell .admin-main .stat-card { position: relative; display: block; min-width: 0; min-height: 102px; padding: 16px 18px 14px 68px; }
.admin-shell .admin-main .stat-card-top { display: block; }
.admin-shell .admin-main .stat-card-top .stat-icon { position: absolute; top: 50%; left: 18px; width: 34px; height: 34px; transform: translateY(-50%); }
.admin-shell .admin-main .stat-card .stat-label, .admin-shell .admin-main .stat-card .stat-val, .admin-shell .admin-main .stat-card .stat-detail { display: block; }
.admin-shell .admin-main .stat-card .stat-val { margin: 3px 0 0; font-size: 27px !important; }
.admin-shell .admin-main .stat-card .stat-label { font-size: 9px !important; }
.admin-shell .admin-main .stat-card .stat-detail { font-size: 10px !important; }
.admin-shell .admin-main .outlet-filter-card { margin-bottom: 12px; padding: 14px 16px 16px; background: #fff; border: 1px solid #ececee; border-radius: 10px; }
.admin-shell .admin-main .outlet-filter-card .table-heading { padding: 0; }
.admin-shell .admin-main .outlet-filter-toolbar { grid-template-columns: minmax(190px, 1.4fr) repeat(6, minmax(100px, 1fr)) auto; gap: 10px; align-items: end; }
.admin-shell .admin-main .filter-field { gap: 5px; font-size: 10px; }
.admin-shell .admin-main .filter-field .form-input { height: 36px; font-size: 11px; }
.admin-shell .admin-main .outlet-filter-card .reset-filter-button { height: 36px; }
.admin-shell .admin-main .outlet-section { margin: 0; }
.admin-shell .admin-main .data-table { width: 100%; min-width: 0 !important; table-layout: fixed; }
.admin-shell .admin-main .data-table th, .admin-shell .admin-main .data-table td { padding: 10px 8px !important; font-size: 10px !important; overflow-wrap: anywhere; }
.admin-shell .admin-main .data-table th { white-space: normal; line-height: 1.25; }
.admin-shell .admin-main .table-scroll { overflow-x: hidden; }
@media (max-width: 1100px) { .admin-shell .admin-main .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .admin-shell .admin-main { padding: 20px 15px 32px; overflow: visible; } .admin-shell .admin-main .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .admin-shell .admin-main .stat-card { min-height: 100px; padding: 14px 12px 12px 52px; } .admin-shell .admin-main .stat-card-top .stat-icon { left: 12px; width: 28px; height: 28px; } .admin-shell .admin-main .outlet-filter-card { padding: 12px; } .admin-shell .admin-main .outlet-filter-toolbar { grid-template-columns: 1fr 1fr; gap: 12px 8px; } .admin-shell .admin-main .filter-search-field, .admin-shell .admin-main .reset-filter-button { grid-column: 1 / -1; } }
/* KPI proportion correction */
.admin-shell .admin-main .stat-card { min-height: 108px; padding: 17px 20px 16px 76px; }
.admin-shell .admin-main .stat-card-top .stat-icon { left: 20px; width: 38px; height: 38px; }
.admin-shell .admin-main .stat-card .stat-label { font-size: 10px !important; line-height: 1.25; }
.admin-shell .admin-main .stat-card .stat-val { margin: 6px 0 3px; font-size: 32px !important; line-height: 1 !important; }
.admin-shell .admin-main .stat-card .stat-detail { font-size: 11px !important; line-height: 1.3; }
/* KPI cards: compact horizontal composition based on the supplied reference. */
.admin-shell .admin-main .stat-card { display: grid; grid-template-columns: 42px minmax(0, 1fr); grid-template-rows: auto auto auto; align-content: center; column-gap: 12px; min-height: 86px; padding: 12px 16px; }
.admin-shell .admin-main .stat-card-top { display: contents; }
.admin-shell .admin-main .stat-card-top .stat-icon { position: static; grid-column: 1; grid-row: 1 / 4; align-self: center; width: 38px; height: 38px; padding: 9px; border-radius: 50%; transform: none; }
.admin-shell .admin-main .stat-icon-neutral { background: #fff0ee; }
.admin-shell .admin-main .stat-icon-open { background: #edf8f1; }
.admin-shell .admin-main .stat-icon-closed { background: #fff3e8; }
.admin-shell .admin-main .stat-icon-subscription { background: #fff7df; }
.admin-shell .admin-main .stat-card-top .stat-label { grid-column: 2; grid-row: 1; align-self: end; margin: 0; font-size: 9px !important; letter-spacing: 0 !important; }
.admin-shell .admin-main .stat-card .stat-val { grid-column: 2; grid-row: 2; margin: 3px 0 1px; font-size: 26px !important; line-height: 1 !important; }
.admin-shell .admin-main .stat-card .stat-detail { grid-column: 2; grid-row: 3; margin: 0; font-size: 9px !important; line-height: 1.2; white-space: nowrap; }
@media (max-width: 700px) { .admin-shell .admin-main .stat-card { min-height: 90px; grid-template-columns: 34px minmax(0, 1fr); column-gap: 8px; padding: 12px; } .admin-shell .admin-main .stat-card-top .stat-icon { width: 30px; height: 30px; padding: 7px; } .admin-shell .admin-main .stat-card .stat-val { font-size: 24px !important; } .admin-shell .admin-main .stat-card .stat-detail { white-space: normal; } }
/* Final KPI sizing: compact width, stronger icon presence. */
.admin-shell .admin-main .stats-grid { grid-template-columns: repeat(4, minmax(0, 240px)); justify-content: space-between; }
.admin-shell .admin-main .stat-card { min-height: 96px; padding: 14px 16px 13px 78px; }
.admin-shell .admin-main .stat-card-top .stat-icon { left: 18px; width: 46px; height: 46px; padding: 10px; }
@media (max-width: 1100px) { .admin-shell .admin-main .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .admin-shell .admin-main .stat-card { min-height: 98px; padding-left: 58px; } .admin-shell .admin-main .stat-card-top .stat-icon { left: 13px; width: 34px; height: 34px; padding: 8px; } }

/* Agency console: visual alignment with the supplied FoodMaster reference. */
.admin-shell {
  grid-template-columns: 208px minmax(0, 1fr);
  background: #fff;
}
.admin-sidebar {
  display: flex;
  flex-direction: column;
  padding: 27px 14px 18px;
  border-right: 1px solid #eceef0 !important;
}
.admin-sidebar-brand {
  align-items: center;
  gap: 5px;
  padding: 0 12px 32px;
  color: #6b7078;
  letter-spacing: 0;
  text-transform: none;
  font-size: 10px;
  font-weight: 500;
}
.admin-sidebar-brand .brand-logo-admin { width: 165px; max-height: 42px; }
.admin-sidebar-nav { gap: 5px; }
.admin-sidebar-nav .tab-btn {
  min-height: 45px;
  padding: 11px 14px;
  gap: 13px;
  border-radius: 9px;
  color: #272b31;
  font-size: 14px;
  font-weight: 600;
}
.admin-sidebar-nav .tab-btn.active { background: #fff0f0 !important; color: #be1a1a !important; }
.admin-sidebar-nav .tab-btn:hover, .admin-sidebar-nav .tab-btn:focus { background: #fff7f6; color: #be1a1a; }
.admin-sidebar-nav .sidebar-icon { width: 22px; height: 22px; }
.admin-sidebar-note {
  margin: auto 3px 18px;
  padding: 17px 14px;
  border: 1px solid #f5e5bd;
  border-radius: 11px;
  background: #fffaf0;
  color: #514b41;
}
.admin-sidebar-note-icon { display: block; margin-bottom: 8px; color: #efa916; font-size: 24px; }
.admin-sidebar-note p { margin: 0 0 8px; font-size: 11px; line-height: 1.55; }
.admin-sidebar-note small { display: block; font-size: 10px; line-height: 1.55; }
.admin-main { padding: 28px 34px 36px; background: #fff; }
.admin-page-header { align-items: center; max-width: none; margin: 0 0 25px; }
.admin-page-header .page-title { margin: 0; color: #111317; font-size: 25px; font-weight: 700; letter-spacing: -.035em; }
.admin-breadcrumb { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; color: #6d727a; font-size: 12px; }
.admin-breadcrumb span:first-child { color: #2c3036; }
.admin-heading-copy { min-width: 0; }
.admin-actions { gap: 16px; }
.admin-header-search { display: flex; align-items: center; flex: 1 1 340px; gap: 9px; width: auto; max-width: 392px; min-width: 260px; height: 44px; padding: 0 13px; border: 1px solid #dedfe2; border-radius: 9px; background: #fff; }
.admin-header-search svg { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: #34383e; stroke-linecap: round; stroke-width: 1.8; }
.admin-header-search input { min-width: 0; width: 100%; border: 0; outline: 0; color: #292d33; font-size: 12px; }
.admin-header-search input::placeholder { color: #777c84; }
.fetch-sheet-button { min-height: 40px; padding: 0 14px; border-radius: 9px !important; font-size: 11px; font-weight: 700; }
.admin-main .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; margin-bottom: 20px; }
.admin-main .stat-card { min-height: 126px; padding: 22px 20px 20px 88px; border: 1px solid #eceef0 !important; border-radius: 11px !important; box-shadow: 0 2px 7px rgba(20, 23, 28, .025) !important; }
.admin-main .stat-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto auto; align-content: center; column-gap: 14px; }
.admin-main .stat-card-top { display: contents; }
.admin-main .stat-card-top .stat-icon { position: static; grid-column: 1; grid-row: 1 / 4; align-self: center; width: 46px; height: 46px; padding: 11px; border-radius: 50%; transform: none; }
.admin-main .stat-card-top .stat-label { grid-column: 2; grid-row: 1; align-self: end; margin: 0; }
.admin-main .stat-card .stat-val { grid-column: 2; grid-row: 2; margin: 6px 0 2px; }
.admin-main .stat-card .stat-detail { grid-column: 2; grid-row: 3; margin: 0; white-space: nowrap; }
.admin-main .stat-icon-neutral { color: #d52d2d; background: #ffeded; }
.admin-main .stat-icon-open { color: #159447; background: #eaf8ef; }
.admin-main .stat-icon-closed { color: #f08b00; background: #fff4e2; }
.admin-main .stat-icon-subscription { color: #e9a400; background: #fff8df; }
.admin-main .stat-card .stat-label { font-size: 9px !important; font-weight: 700; letter-spacing: 0 !important; text-transform: uppercase; }
.admin-main .stat-card .stat-val { margin: 7px 0 3px; font-size: 29px !important; }
.admin-main .stat-card .stat-detail { font-size: 10px !important; }
.admin-main .outlet-filter-card { margin-bottom: 18px; padding: 17px 16px; border: 1px solid #eceef0; border-radius: 11px; }
.admin-main .outlet-filter-toolbar { grid-template-columns: repeat(6, minmax(0, 1fr)) auto; gap: 8px; align-items: end; width: 100%; }
.admin-main .filter-field { display: flex; flex-direction: column; min-width: 0; width: 100%; gap: 4px; color: #292d33; font-size: 10px; font-weight: 600; box-sizing: border-box; }
.admin-main .filter-field > span { display: block; min-width: 0; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-main .filter-field .form-input, .admin-main .reset-filter-button { height: 36px; font-size: 11px; min-width: 0; box-sizing: border-box; }
.admin-main .outlet-section { border-radius: 11px; }
.outlet-content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 242px; gap: 12px; align-items: stretch; }
.outlet-detail-panel {
  min-width: 0;
  padding: 16px 14px;
  border: 1px solid #eceef0;
  border-radius: 11px;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.outlet-detail-panel[hidden] { display: none; }
.outlet-detail-panel.is-open {
  opacity: 1;
  pointer-events: auto;
}
.outlet-detail-content {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.outlet-detail-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #f0f1f2; }
.outlet-detail-panel-head h2 { margin: 0; font-size: 13px; font-weight: 700; flex: 1 1 auto; }
.outlet-detail-back {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #20242a;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.outlet-detail-back svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
.outlet-detail-panel-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.outlet-detail-close { padding: 0 2px; border: 0; background: transparent; color: #20242a; cursor: pointer; font-size: 20px; line-height: 1; }
.outlet-detail-status { margin-top: 16px; }
.outlet-detail-status-note {
  margin: 10px 0 0;
  color: #667085;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
}
.outlet-detail-identity {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.outlet-detail-identity-copy {
  min-width: 0;
  flex: 1 1 auto;
}
.outlet-detail-eyebrow {
  color: #69717b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.outlet-detail-panel h3 { margin: 0 0 3px; font-size: 15px; }
.outlet-detail-store-id {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #767b83;
  font-size: 11px;
}
.store-id-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-copy-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
  line-height: 1;
  vertical-align: middle;
  border-radius: 4px;
}
.btn-copy-icon:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #1f242b;
  transform: scale(1.1);
}
.btn-copy-icon:active {
  transform: scale(0.95);
}
.btn-copy-icon svg {
  display: block;
}
.outlet-detail-store-id .btn-copy-icon {
  width: 18px;
  height: 18px;
}
.admin-mobile-store-chip .btn-copy-icon.is-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  opacity: 0.7;
  cursor: pointer;
}
.admin-mobile-store-chip .btn-copy-icon.is-chip:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.06);
}
.outlet-detail-context {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.outlet-detail-context span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff3f1;
  color: #8a4a45;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}
.outlet-detail-store-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  object-fit: contain;
}
.outlet-detail-mitra-action {
  margin-top: 14px;
  margin-bottom: 6px;
}
.outlet-detail-mitra-full-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #be1a1a;
  border: 1px solid #be1a1a;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  line-height: 1.2;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 3px rgba(190, 26, 26, 0.2);
}
.outlet-detail-mitra-full-btn:hover {
  background: #a31616;
  border-color: #a31616;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(190, 26, 26, 0.28);
}
.outlet-detail-mitra-full-btn:active {
  transform: translateY(0);
}
.outlet-detail-mitra-full-btn svg {
  flex-shrink: 0;
}
.outlet-detail-list { display: grid; gap: 6px; margin: 14px 0 10px; flex-shrink: 0; }
.outlet-detail-list div { min-width: 0; }
.outlet-detail-list dt { margin-bottom: 4px; color: #777c84; font-size: 10px; }
.outlet-detail-list dd { margin: 0; color: #292d33; font-size: 11px; font-weight: 600; line-height: 1.45; }
.outlet-detail-list small { display: none; }
.detail-active-pill { display: inline-block; padding: 3px 7px; border-radius: 999px; background: #e7f6ed; color: #16834f; font-size: 10px; }
.outlet-detail-section { flex-shrink: 0; margin-top: 14px; padding-top: 14px; border-top: 1px solid #f0f1f2; }
.outlet-detail-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  flex-shrink: 0;
}
.outlet-detail-section-heading h4 {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #1f242b;
}
.outlet-detail-schedule-meta {
  color: #777c84;
  font-size: 11px;
  font-weight: 600;
}
.outlet-detail-accordion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1f242b;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.outlet-detail-chevron {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 180ms ease;
}
.outlet-detail-accordion[aria-expanded="true"] .outlet-detail-chevron { transform: rotate(180deg); }
.outlet-detail-schedule-panel { margin-top: 4px; flex-shrink: 0; }
.outlet-detail-schedule-panel .admin-schedule-row {
  padding: 5px 0;
  font-size: 11px;
}
.outlet-detail-schedule-panel .admin-schedule-row:first-child {
  border-top: 0;
}
.outlet-detail-history-section {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f0f1f2;
}
.outlet-detail-history-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  flex-shrink: 0;
}
.outlet-detail-history-heading h4 {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #1f242b;
}
.outlet-detail-history-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.4) transparent;
}
.outlet-detail-history-list::-webkit-scrollbar {
  width: 5px;
}
.outlet-detail-history-list::-webkit-scrollbar-track {
  background: transparent;
}
.outlet-detail-history-list::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 999px;
}
.outlet-detail-history-list::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.6);
}
.outlet-detail-history-list .history-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "role body"
    ". time";
  align-items: start;
  column-gap: 10px;
  row-gap: 3px;
  padding: 9px 0;
  border-top: 1px solid #edf2f7;
}
.outlet-detail-history-list .history-item:first-child {
  border-top: 0;
  padding-top: 0;
}
.outlet-detail-history-list .history-item.is-empty {
  display: block;
  padding: 14px 0;
}
.outlet-detail-history-list .history-item.is-empty span {
  display: block;
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}
.outlet-detail-history-list .history-item > .history-role-pill {
  grid-area: role;
  display: inline-flex;
  justify-self: start;
  margin-top: 0;
  min-width: 50px;
  min-height: 24px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.outlet-detail-history-list .history-item > .history-time {
  grid-area: time;
  display: block;
  min-width: 0;
  margin-top: 0;
  font-size: 10px;
  line-height: 1.4;
  white-space: normal;
}
.outlet-detail-history-list .history-item > .mitra-history-body {
  grid-area: body;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-top: 0;
}
.outlet-detail-history-list .mitra-history-body strong {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}
.outlet-detail-history-list .mitra-history-body span {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}
.outlet-detail-actions { display: grid; gap: 8px; margin-top: 18px; }
.outlet-detail-actions .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 35px;
  padding: 7px 9px;
  font-size: 10px;
}
.outlet-data-row { cursor: pointer; }
.outlet-data-row:hover, .outlet-data-row.is-selected { background: #fff8f7 !important; }
.outlet-data-row:focus-visible,
.admin-mobile-outlet-card:focus-visible {
  outline: 3px solid rgba(190, 26, 26, 0.18);
  outline-offset: 3px;
}
.admin-mobile-outlet-card.is-selected {
  border-color: #f2cbc6 !important;
  box-shadow: 0 0 0 2px rgba(190, 26, 26, 0.08), 0 8px 18px rgba(20, 23, 28, 0.06) !important;
}
.outlet-detail-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}
.outlet-detail-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
.row-more { color: #34383e; font-size: 20px; line-height: 1; }
.admin-main .data-table th { padding: 13px 10px !important; color: #3f444b !important; font-size: 10px !important; font-weight: 700; }
.admin-main .data-table td { padding: 13px 10px !important; font-size: 10px !important; }

@media (max-width: 1200px) {
  .admin-main .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-main .outlet-filter-toolbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .admin-sidebar { padding: 16px; }
  .admin-sidebar-note { display: none; }
  .admin-sidebar-brand { align-items: flex-start; padding-bottom: 16px; }
  .admin-main { padding: 21px 15px 32px; }
  .admin-page-header { align-items: stretch; flex-direction: column; margin-bottom: 20px; }
  .admin-page-header .page-title { font-size: 21px; }
  .admin-breadcrumb { font-size: 11px; }
  .admin-actions { width: 100%; flex-direction: column; align-items: stretch; gap: 10px; }
  .admin-header-search { width: 100%; }
  .fetch-sheet-button { width: 100%; }
  .admin-main .outlet-filter-toolbar { grid-template-columns: 1fr 1fr; }
  .outlet-content-layout { display: block; }
  .outlet-detail-panel { margin-top: 12px; }
  .admin-main .stat-card { min-height: 108px; grid-template-columns: 34px minmax(0, 1fr); column-gap: 10px; padding: 15px 12px; }
  .admin-main .stat-card-top .stat-icon { width: 34px; height: 34px; padding: 8px; }
  .admin-main .stat-card .stat-val { font-size: 27px !important; }
  .admin-main .stat-card .stat-detail { white-space: normal; }
}

/* Compact desktop viewport: keep the outlet workspace visible without page scroll. */
@media (min-width: 701px) {
  html:has(.admin-shell), body:has(.admin-shell) { overflow: hidden; }
  .admin-shell { height: 100vh; min-height: 0; }
  .admin-main { min-height: 0; height: 100vh; padding: 23px 34px 18px; overflow: hidden; }
  .admin-page-header { margin-bottom: 15px; }
  .admin-page-header .page-title { font-size: 24px; }
  .admin-breadcrumb { margin-top: 4px; }
  .admin-main .stats-grid { gap: 14px; margin-bottom: 15px; }
  .admin-main .stat-card { min-height: 96px; padding: 15px 16px 14px 73px; }
  .admin-main .stat-card-top .stat-icon { width: 44px; height: 44px; padding: 10px; }
  .admin-main .stat-card .stat-val { margin: 4px 0 2px; font-size: 27px !important; }
  .admin-main .stat-card .stat-detail { font-size: 9px !important; }
  .admin-main .outlet-filter-card { margin-bottom: 12px; padding: 12px 16px; }
  .admin-main .filter-field { gap: 4px; }
  .admin-main .filter-field .form-input, .admin-main .reset-filter-button { height: 34px; }
  .outlet-content-layout { display: block; height: calc(100vh - 355px); min-height: 260px; }
  .outlet-content-layout .outlet-section { min-height: 0; height: 100%; }
  .outlet-detail-panel { position: fixed; z-index: 120; top: 0; right: 0; width: min(360px, 92vw); height: 100vh; max-height: none; display: flex; flex-direction: column; overflow: hidden; padding: 22px 20px; border: 0; border-left: 1px solid #eceef0; border-radius: 0; box-shadow: -12px 0 30px rgba(20, 23, 28, .12); transform: translateX(calc(100% + 20px)); transition: transform 240ms cubic-bezier(.22, 1, .36, 1), opacity 240ms ease; }
  .outlet-detail-panel.is-open { transform: translateX(0); }
  .outlet-detail-backdrop { position: fixed; z-index: 110; inset: 0; background: rgba(20, 23, 28, .22); }
  .outlet-detail-backdrop[hidden] { display: none; }
  .outlet-detail-open .outlet-detail-panel { overscroll-behavior: contain; }
  .outlet-detail-list { gap: 6px; margin: 14px 0 10px; flex-shrink: 0; }
  .outlet-detail-actions { margin-top: 10px; }
  .admin-main .data-table th { padding: 10px 7px !important; font-size: 9px !important; }
  .admin-main .data-table td { padding: 10px 7px !important; font-size: 9px !important; }
  .outlet-detail-panel-head { padding-bottom: 18px; }
  .outlet-detail-panel-head h2 { font-size: 15px; }
  .outlet-detail-panel-actions { gap: 10px; }
  .outlet-detail-identity { margin-top: 15px; gap: 14px; }
  .outlet-detail-store-logo { width: 48px; height: 48px; }
  .outlet-detail-panel h3 { margin: 0 0 3px; font-size: 19px; }
  .outlet-detail-store-id { font-size: 12px; }
  .outlet-detail-status { margin-top: 20px; }
  .outlet-detail-list { gap: 6px; margin: 14px 0 10px; flex-shrink: 0; }
  .outlet-detail-list dt { margin-bottom: 4px; font-size: 11px; }
  .outlet-detail-list dd { font-size: 12px; }
  .outlet-detail-list small { display: none; }
  .detail-active-pill { padding: 4px 9px; font-size: 11px; }
  .outlet-detail-section { margin-top: 14px; padding-top: 14px; flex-shrink: 0; }
  .outlet-detail-accordion { font-size: 13px; }
  .outlet-detail-chevron { width: 20px; height: 20px; }
  .outlet-detail-schedule-panel { margin-top: 14px; }
  .outlet-detail-actions { gap: 10px; margin-top: 20px; }
  .outlet-detail-actions .btn-primary { min-height: 40px; font-size: 12px; }
}

.admin-shell .admin-main .stat-card .stat-detail { display: block !important; }

/* Compact KPI treatment matching the latest reference sample. */
@media (min-width: 1101px) {
  .admin-shell .admin-main .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; justify-content: stretch; }
  .admin-shell .admin-main .stat-card { min-height: 86px; height: 86px; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 10px; padding: 11px 12px; }
  .admin-shell .admin-main .stat-card-top .stat-icon { width: 44px; height: 44px; padding: 10px; }
  .admin-shell .admin-main .stat-card .stat-label { grid-row: 1; align-self: end; font-size: 9px !important; font-weight: 600; line-height: 1.2; text-transform: none; }
  .admin-shell .admin-main .stat-card .stat-val { grid-row: 2; margin: 2px 0 1px; font-size: 24px !important; line-height: 1; }
  .admin-shell .admin-main .stat-card .stat-detail { display: block !important; grid-row: 3; max-width: none; font-size: 8px !important; line-height: 1.15; white-space: nowrap; }
}

/* KPI cards: consistent proportions and readable content at the compact desktop width. */
@media (min-width: 701px) {
  .admin-shell .admin-main .stats-grid { grid-template-columns: repeat(4, 240px); justify-content: start; gap: 14px; align-items: stretch; }
  .admin-shell .admin-main .stat-card { min-height: 126px; height: 126px; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; padding: 20px 16px 20px 68px; }
  .admin-shell .admin-main .stat-card-top .stat-icon { width: 52px; height: 52px; padding: 12px; }
  .admin-shell .admin-main .stat-card .stat-label { grid-row: 1; font-size: 10px !important; line-height: 1.15; }
  .admin-shell .admin-main .stat-card .stat-val { grid-row: 2; margin: 6px 0 0; font-size: 30px !important; line-height: 1; }
  .admin-shell .admin-main .stat-card .stat-detail { display: none !important; }
}

@media (min-width: 701px) and (max-width: 1100px) {
  .admin-shell .admin-main .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .outlet-detail-panel { position: fixed; z-index: 120; top: 0; right: 0; width: min(340px, 94vw); height: 100vh; display: flex; flex-direction: column; overflow: hidden; border-radius: 0; transform: translateX(calc(100% + 20px)); transition: transform 240ms cubic-bezier(.22, 1, .36, 1), opacity 240ms ease; }
  .outlet-detail-panel.is-open { transform: translateX(0); }
  .outlet-detail-backdrop { position: fixed; z-index: 110; inset: 0; background: rgba(20, 23, 28, .22); }
  .outlet-detail-backdrop[hidden] { display: none; }
}

/* Agency reference layout — keep this block last so legacy console themes cannot
   change the proportions of the supplied desktop design. */
@media (min-width: 701px) {
  html:has(.admin-shell), body:has(.admin-shell) { overflow: hidden; }
  .admin-shell { grid-template-columns: 245px minmax(0, 1fr); min-height: 100vh; background: #fff; }
  .admin-sidebar { height: 100vh; padding: 29px 14px 17px; background: #fff; border-right: 1px solid #eceef0 !important; }
  .admin-sidebar-brand { padding: 0 12px 31px; gap: 4px; align-items: center; color: #646970; font-size: 10px; font-weight: 500; letter-spacing: 0; text-transform: none; }
  .admin-sidebar-brand .brand-logo-admin { width: 190px; max-height: 45px; }
  .admin-sidebar-nav { gap: 5px; }
  .admin-sidebar-nav .tab-btn { min-height: 45px; padding: 11px 14px; gap: 14px; border-radius: 9px; color: #252930; font-size: 14px; font-weight: 600; }
  .admin-sidebar-nav .tab-btn.active { color: #be1a1a !important; background: #fff0f0 !important; }
  .admin-sidebar-nav .tab-btn:hover { color: #be1a1a; background: #fff7f6; }
  .admin-sidebar-nav .sidebar-icon { width: 22px; height: 22px; }
  .admin-sidebar-note { margin: auto 3px 18px; padding: 17px 14px; border: 1px solid #f5e5bd; border-radius: 11px; background: #fffaf0; color: #514b41; }
  .admin-main { height: 100vh; min-width: 0; overflow: hidden; padding: 25px 23px 25px 24px; background: #fff; }
  .admin-page-header { margin: 0 0 20px; align-items: center; justify-content: flex-start; gap: 24px; }
  .admin-heading-copy { flex: 0 1 360px; }
  .admin-page-header .page-title { color: #111317; font-size: 25px; font-weight: 700; letter-spacing: -.035em; }
  .admin-breadcrumb { margin-top: 5px; font-size: 12px; }
  .admin-actions { flex: 1 1 auto; min-width: 0; justify-content: flex-end; gap: 20px; }
  .admin-header-search { width: auto; max-width: 392px; min-width: 260px; height: 45px; border-color: #dedfe2; border-radius: 9px; }
  .fetch-sheet-button { height: 40px; padding: 0 14px; border-radius: 9px !important; font-size: 11px; }
  .admin-user-avatar {
    position: relative;
    display: inline-grid;
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    flex: 0 0 52px;
    aspect-ratio: 1 / 1;
    place-items: center;
    border-radius: 999px;
    overflow: hidden;
    background: #d8dadd;
    color: #252930;
    font-size: 14px;
    font-weight: 700;
  }
  .admin-main .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; margin-bottom: 20px; }
  .admin-main .stat-card { min-height: 126px; padding: 22px 20px 20px 88px; border: 1px solid #eceef0 !important; border-radius: 11px !important; box-shadow: 0 2px 7px rgba(20,23,28,.025) !important; }
  .admin-main .stat-card-top .stat-icon { width: 46px; height: 46px; padding: 11px; }
  .admin-main .stat-card .stat-label { font-size: 10px !important; font-weight: 600; text-transform: none; }
  .admin-main .stat-card .stat-val { margin: 6px 0 2px; font-size: 29px !important; }
  .admin-main .stat-card .stat-detail { font-size: 10px !important; }
  .admin-main .outlet-filter-card { margin-bottom: 19px; padding: 14px 14px; border: 1px solid #eceef0; border-radius: 11px; }
  .desktop-outlet-filter-heading { width: 100%; }
  .desktop-outlet-filter-heading .table-heading-actions { width: 100%; min-width: 0; flex: 1 1 auto; }
  .admin-main .outlet-filter-toolbar {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr)) auto;
    gap: 8px;
    align-items: end;
    width: 100%;
    box-sizing: border-box;
  }
  .admin-main .outlet-filter-toolbar .filter-field {
    grid-column: auto;
  }
  .admin-main .outlet-filter-toolbar .reset-filter-button {
    grid-column: auto;
    width: auto;
    height: 36px;
    padding: 0 10px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    justify-content: center;
    box-sizing: border-box;
    flex-shrink: 0;
  }
  .admin-main .filter-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    box-sizing: border-box;
  }
  .admin-main .filter-field > span {
    display: block;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .admin-main .filter-field .form-input { height: 36px; font-size: 11px; min-width: 0; width: 100%; box-sizing: border-box; }
  .outlet-content-layout { display: block; height: calc(100vh - 363px); min-height: 300px; }
  .outlet-section { height: 100%; }
  .admin-main .data-table th { padding: 13px 10px !important; font-size: 10px !important; }
  .admin-main .data-table td { padding: 13px 10px !important; font-size: 10px !important; }
}

@media (max-width: 700px) {
  .admin-user-avatar { display: none; }
}

/* Rebuilt KPI cards: independent layout, no legacy stat-card alignment rules. */
.admin-main .stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.admin-main .metric-card { display: flex; align-items: center; min-width: 0; min-height: 96px; height: 96px; padding: 16px 18px; gap: 14px; border: 1px solid #eceef0; border-radius: 12px; background: #fff; box-shadow: 0 2px 7px rgba(20,23,28,.025); }
.metric-card-icon { display: grid; flex: 0 0 48px; width: 48px; height: 48px; place-items: center; border-radius: 50%; }
.metric-card-icon img { width: 30px; height: 30px; object-fit: contain; }
.metric-card-total .metric-card-icon { color: #d52d2d; background: #ffeded; }
.metric-card-open .metric-card-icon { color: #159447; background: #eaf8ef; }
.metric-card-closed .metric-card-icon { color: #f08b00; background: #fff4e2; }
.metric-card-subscription .metric-card-icon { color: #e9a400; background: #fff8df; }
.metric-card-total .metric-card-icon img { filter: brightness(0) saturate(100%) invert(24%) sepia(94%) saturate(2916%) hue-rotate(343deg) brightness(88%) contrast(91%); }
.metric-card-open .metric-card-icon img { filter: brightness(0) saturate(100%) invert(39%) sepia(72%) saturate(1045%) hue-rotate(112deg) brightness(88%) contrast(85%); }
.metric-card-closed .metric-card-icon img { filter: brightness(0) saturate(100%) invert(56%) sepia(97%) saturate(1670%) hue-rotate(3deg) brightness(101%) contrast(102%); }
.metric-card-subscription .metric-card-icon img { filter: brightness(0) saturate(100%) invert(67%) sepia(90%) saturate(1037%) hue-rotate(4deg) brightness(95%) contrast(94%); }
.admin-main .outlet-filter-card .filter-select,
.admin-main .vb-filter-card .filter-select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 0 24px 0 9px !important;
  border: 1px solid #dedfe2 !important;
  border-radius: 8px !important;
  background-color: #fff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23777d86' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-position: right 8px center !important;
  background-repeat: no-repeat !important;
  background-size: 12px !important;
  color: #737981 !important;
  font-weight: 600;
  text-overflow: ellipsis !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}
.admin-main .outlet-filter-card .filter-select:hover,
.admin-main .vb-filter-card .filter-select:hover { border-color: #c7c9cd !important; color: #5f666f !important; }
.admin-main .outlet-filter-card .filter-select:focus,
.admin-main .vb-filter-card .filter-select:focus { border-color: #c9a2a2 !important; box-shadow: 0 0 0 3px rgba(190,26,26,.08) !important; outline: none; }
.admin-main .outlet-filter-card .filter-select option,
.admin-main .vb-filter-card .filter-select option { background: #fff; color: #737981; font-weight: 500; }
.custom-filter { position: relative; width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
.native-filter-select { display: none !important; }
.custom-filter-trigger {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 36px;
  line-height: 34px;
  padding: 0 24px 0 9px;
  border: 1px solid #dedfe2;
  border-radius: 8px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23777d86' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 8px center;
  background-repeat: no-repeat;
  background-size: 12px;
  color: #737981;
  font-size: 11px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}
.custom-filter-trigger:hover { border-color: #c7c9cd; color: #5f666f; }
.custom-filter.is-open .custom-filter-trigger { border-color: #c9a2a2; box-shadow: 0 0 0 3px rgba(190,26,26,.08); }
.custom-filter-list { position: absolute; z-index: 100; top: calc(100% + 5px); left: 0; display: none; min-width: 100%; width: max-content; min-width: 220px; max-width: 320px; padding: 6px; border: 1px solid #e3e4e7; border-radius: 9px; background: #fff; box-shadow: 0 10px 24px rgba(25,28,32,.14); box-sizing: border-box; }
.custom-filter.is-open .custom-filter-list { display: flex; flex-direction: column; gap: 4px; }
.custom-filter-search-box { position: relative; display: flex; align-items: center; flex-shrink: 0; width: 100%; padding: 2px 2px 6px; border-bottom: 1px solid #edf0f2; box-sizing: border-box; }
.custom-filter-search-icon { position: absolute; left: 8px; width: 13px; height: 13px; fill: none; stroke: #8c939e; stroke-width: 2; pointer-events: none; }
.custom-filter-search { width: 100%; height: 30px; padding: 0 8px 0 26px; border: 1px solid #e1e3e7; border-radius: 6px; background: #f8f9fa; color: #292d33; font-family: 'Nunito', sans-serif !important; font-size: 11px; font-weight: 500; outline: none; box-sizing: border-box; }
.custom-filter-search:focus { border-color: #be1a1a; background: #fff; box-shadow: 0 0 0 2px rgba(190,26,26,.08); }
.custom-filter-search::placeholder { color: #9da3ad; font-size: 11px; }
.custom-filter-options-scroll { display: flex; flex-direction: column; gap: 2px; max-height: 200px; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #cbd0d6 transparent; box-sizing: border-box; }
.custom-filter-options-scroll::-webkit-scrollbar { width: 5px; }
.custom-filter-options-scroll::-webkit-scrollbar-track { background: transparent; }
.custom-filter-options-scroll::-webkit-scrollbar-thumb { background: #cbd0d6; border-radius: 4px; }
.custom-filter-option { display: flex; align-items: center; flex-shrink: 0; width: 100%; min-height: 30px; height: auto; padding: 6px 9px; border: 0; border-radius: 6px; background: transparent; color: #555b64; font-family: 'Nunito', sans-serif !important; font-size: 11px; font-weight: 500; line-height: 1.4; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; box-sizing: border-box; }
.custom-filter-option:hover, .custom-filter-option.is-selected { background: #fff2f1; color: #be1a1a; font-weight: 600; }
.custom-filter-empty { padding: 10px 8px; font-size: 11px; color: #9da3ad; text-align: center; font-style: italic; flex-shrink: 0; }

.admin-quick-actions {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid #eceef0;
  border-radius: 11px;
  background: #fff;
}

.admin-quick-actions-head,
.admin-bulk-toolbar,
.admin-bulk-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-quick-actions h3 { margin: 0; color: #292d33; font-size: 13px; }
.admin-quick-actions p { margin: 3px 0 0; color: #777d86; font-size: 11px; }
.admin-bulk-selection-summary { color: #777d86; font-size: 11px; font-weight: 700; }
.admin-bulk-actions { justify-content: flex-end; }
.admin-bulk-actions button { min-width: 126px; min-height: 34px; font-size: 11px; }
.admin-bulk-mode-button { width: auto; min-width: 124px; min-height: 34px; }
.admin-bulk-pause-button { color: #be1a1a !important; border-color: #f2cbc6 !important; }
.admin-store-select { display: inline-grid; width: 20px; height: 20px; place-items: center; flex: 0 0 20px; cursor: pointer; }
.admin-store-select input { width: 16px; height: 16px; accent-color: #be1a1a; }
.admin-store-select input:focus-visible { outline: 2px solid #be1a1a; outline-offset: 2px; }
.admin-table-owner-cell { display: flex; align-items: center; gap: 8px; min-width: 0; }

@media (max-width: 700px) {
  .admin-quick-actions { padding: 12px; }
  .admin-quick-actions-head { align-items: flex-start; }
  .admin-bulk-toolbar { align-items: stretch; flex-direction: column; }
  .admin-bulk-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .admin-bulk-actions button { width: 100%; min-width: 0; }
}
.metric-card-content { display: flex; min-width: 0; flex: 1; flex-direction: column; align-items: flex-start; align-self: flex-start; padding-top: 2px; text-align: left; }
.metric-card-label { color: #30343a; font-size: 12px; font-weight: 600; line-height: 1.3; }
.metric-card-content strong { margin-top: 5px; color: #17191d; font-size: 32px; font-weight: 700; line-height: 1; }
.metric-card-open .metric-card-content strong { color: #16834f; }
.metric-card-closed .metric-card-content strong { color: #be1a1a; }
.metric-card-subscription .metric-card-content strong { color: #b87900; }
.metric-card-content > span:last-child { margin-top: 5px; color: #777d86; font-size: 10px; line-height: 1.25; }
@media (max-width: 1100px) and (min-width: 701px) { .admin-main .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .admin-main .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .admin-main .metric-card { min-height: 112px; padding: 14px; gap: 10px; } .metric-card-icon { flex-basis: 38px; width: 38px; height: 38px; } .metric-card-icon img { width: 22px; height: 22px; } .metric-card-label { font-size: 10px; } .metric-card-content strong { margin-top: 6px; font-size: 28px; } .metric-card-content > span:last-child { margin-top: 5px; font-size: 10px; } }

/* Table typography and two-line current-day schedule. */
.admin-main .data-table,
.admin-main .data-table th,
.admin-main .data-table td,
.admin-main .data-table button,
.admin-main .data-table label,
.admin-main .data-table span,
.admin-main .data-table strong,
.admin-main .data-table code { font-family: 'Nunito', sans-serif !important; }
.today-operating-hours { display: inline-grid; gap: 2px; line-height: 1.2; justify-items: start; }
.today-operating-hours .operating-time { color: #292d33; font-weight: 600; white-space: normal; }
.today-operating-hours .operating-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: #777d86;
  font-size: 10px;
  font-weight: 600;
}
.today-operating-hours .operating-day,
.today-operating-hours .operating-timezone { color: inherit; font-size: inherit; font-weight: inherit; }

/* Center the complete outlet table grid under its headers. */
@media (min-width: 701px) {
  #adminTable thead th,
  #adminTable tbody td { text-align: center !important; vertical-align: middle !important; }
  #adminTable tbody td > strong,
  #adminTable tbody td > small,
  #adminTable tbody td > span:not(.table-status):not(.today-operating-hours) { margin-inline: auto; }
  #adminTable .today-operating-hours { justify-items: center; }
  #adminTable .today-operating-hours .operating-meta { justify-content: center; }
  #adminTable .service-period {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    font-family: 'Nunito', sans-serif !important;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    text-align: left;
  }
  #adminTable .service-period strong {
    display: block;
    color: #737981 !important;
    font-size: 11px !important;
    font-weight: 700;
    white-space: nowrap;
  }
  #adminTable .service-period small {
    display: block;
    align-self: flex-start;
    color: #777d86 !important;
    font-size: 10px !important;
    font-weight: 600;
    white-space: nowrap;
    text-align: left !important;
  }
  #adminTable .admin-action-summary {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  font-family: 'Nunito', sans-serif !important;
  line-height: 1.25;
  text-align: left;
}
#adminTable .admin-action-summary strong {
  display: block;
  color: #555b64 !important;
  font-size: 11px !important;
  font-weight: 700;
  white-space: nowrap;
}
#adminTable .admin-action-summary small {
  display: block;
  color: #777d86 !important;
  font-size: 10px !important;
  font-weight: 600;
  line-height: 1.35;
  white-space: normal;
}
#adminTable tbody td > .service-period,
#adminTable tbody td > .admin-action-summary { margin-inline: 0 !important; }
  #adminTable tbody td:nth-child(1),
  #adminTable tbody td:nth-child(3),
  #adminTable tbody td:nth-child(1) strong,
  #adminTable tbody td:nth-child(3) code { font-size: 11px !important; }
  #adminTable tbody td:nth-child(2),
  #adminTable tbody td:nth-child(4) {
    color: #737981 !important;
    font-size: 12px !important;
    font-weight: 600;
    line-height: 1.35;
  }
  #adminTable tbody td:nth-child(1),
  #adminTable tbody td:nth-child(3),
  #adminTable tbody td:nth-child(5),
  #adminTable tbody td:nth-child(1) strong,
  #adminTable tbody td:nth-child(3) code,
  #adminTable tbody td:nth-child(5) .operating-time { color: #111317 !important; }
  #adminTable .admin-table-toggle { margin-inline: auto; }
}

/* Compact outlet table with today's hours and the shared outlet toggle. */
@media (min-width: 701px) {
  .admin-main .table-scroll { width: 100%; overflow-x: hidden; }
  .admin-main .data-table { width: max-content !important; min-width: 0 !important; max-width: none !important; table-layout: auto !important; }
  .admin-main .data-table th, .admin-main .data-table td { padding: 10px 9px !important; text-align: left !important; white-space: nowrap; }
  #adminTable th:nth-child(1), #adminTable td:nth-child(1) { width: 12% !important; }
  #adminTable th:nth-child(2), #adminTable td:nth-child(2) { width: 13% !important; }
  #adminTable th:nth-child(3), #adminTable td:nth-child(3) { width: 9% !important; }
  #adminTable th:nth-child(4), #adminTable td:nth-child(4) { width: 18% !important; }
  #adminTable th:nth-child(5), #adminTable td:nth-child(5) { width: 14% !important; }
  #adminTable th:nth-child(6), #adminTable td:nth-child(6) { width: 13% !important; }
  #adminTable th:nth-child(7), #adminTable td:nth-child(7) { width: 14% !important; }
  #adminTable th:nth-child(8), #adminTable td:nth-child(8) { width: 7% !important; }
  .admin-main .data-table th:last-child, .admin-main .data-table td:last-child { text-align: center !important; }
  .admin-table-toggle { display: inline-flex !important; }
  .admin-table-toggle .slider { width: 36px; height: 20px; }
  .admin-table-toggle .slider::before { width: 16px; height: 16px; }
}

/* 3-State Outlet Toggle (Open = Right/Green, Paused = Left/Red, Closed = Left/Disabled Gray) */
.switch-toggle.admin-table-toggle {
  display: inline-flex !important;
  position: relative;
  width: 36px;
  height: 20px;
  flex: 0 0 auto;
  vertical-align: middle;
  margin-inline: auto;
}

.switch-toggle.admin-table-toggle .slider {
  position: absolute;
  inset: 0;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  transition: background-color 200ms ease, box-shadow 200ms ease;
}

.switch-toggle.admin-table-toggle .slider::before {
  position: absolute;
  bottom: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  content: '';
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
  transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1), background-color 200ms ease;
}

/* State 1: OPEN -> Right (checked), Green */
.switch-toggle.admin-table-toggle.state-open .slider,
.switch-toggle.admin-table-toggle.state-open input:checked + .slider {
  background: #16a34a !important;
  box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.25);
  cursor: pointer;
}

.switch-toggle.admin-table-toggle.state-open .slider::before,
.switch-toggle.admin-table-toggle.state-open input:checked + .slider::before {
  transform: translateX(16px) !important;
  background: #ffffff !important;
}

.switch-toggle.admin-table-toggle.state-open:hover .slider {
  background: #15803d !important;
}

/* State 2: PAUSED -> Left (unchecked), Red */
.switch-toggle.admin-table-toggle.state-paused .slider,
.switch-toggle.admin-table-toggle.state-paused input:not(:checked) + .slider {
  background: #dc2626 !important;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.25);
  cursor: pointer;
}

.switch-toggle.admin-table-toggle.state-paused .slider::before,
.switch-toggle.admin-table-toggle.state-paused input:not(:checked) + .slider::before {
  transform: translateX(0) !important;
  background: #ffffff !important;
}

.switch-toggle.admin-table-toggle.state-paused:hover .slider {
  background: #b91c1c !important;
}

/* State 3: CLOSED -> Left (unchecked), Disabled Gray */
.switch-toggle.admin-table-toggle.state-closed,
.switch-toggle.admin-table-toggle.state-closed input:disabled + .slider {
  opacity: 0.55;
  cursor: not-allowed !important;
}

.switch-toggle.admin-table-toggle.state-closed .slider {
  background: #cbd5e1 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}

.switch-toggle.admin-table-toggle.state-closed .slider::before,
.switch-toggle.admin-table-toggle.state-closed input:disabled + .slider::before {
  transform: translateX(0) !important;
  background: #f8fafc !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

:root[data-theme="dark"] .switch-toggle.admin-table-toggle.state-closed .slider {
  background: #4b5563 !important;
}

:root[data-theme="dark"] .switch-toggle.admin-table-toggle.state-closed .slider::before {
  background: #9ca3af !important;
}

.switch-toggle.admin-table-toggle.is-toggle-pending {
  opacity: 0.7;
  cursor: wait !important;
}

.switch-toggle.admin-table-toggle.is-toggle-pending .slider {
  cursor: wait !important;
}

/* ShopeeFood Link styling for admin table */
.admin-table-shopeefood-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 8px;
  border-radius: 8px;
  color: #ea580c;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  transition: color 150ms ease, background-color 150ms ease;
}

.admin-table-shopeefood-link img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 auto;
}

.admin-table-shopeefood-link:hover {
  color: #c2410c;
  background: rgba(234, 88, 12, 0.08);
}

.admin-table-shopeefood-link:focus-visible {
  outline: 2px solid rgba(234, 88, 12, 0.4);
  outline-offset: 2px;
}

:root[data-theme="dark"] .admin-table-shopeefood-link {
  color: #fb923c;
}

:root[data-theme="dark"] .admin-table-shopeefood-link:hover {
  color: #fdba74;
  background: rgba(251, 146, 60, 0.12);
}

/* Link Bot (Mitra Dashboard) styling for admin table */
.admin-table-mitra-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 8px;
  color: #be1a1a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  transition: color 150ms ease, background-color 150ms ease;
}

.admin-table-mitra-link svg {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
}

.admin-table-mitra-link:hover {
  color: #991414;
  background: rgba(190, 26, 26, 0.08);
}

.admin-table-mitra-link:focus-visible {
  outline: 2px solid rgba(190, 26, 26, 0.4);
  outline-offset: 2px;
}

:root[data-theme="dark"] .admin-table-mitra-link {
  color: #f87171;
}

:root[data-theme="dark"] .admin-table-mitra-link:hover {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
}

.admin-mobile-shopeefood-action {
  padding: 10px 14px;
  border-top: 1px solid var(--line, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* KPI cards: use the available height and establish a clear reading order. */
@media (min-width: 701px) {
  .admin-main .stat-card {
    min-height: 126px;
    height: 126px;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-rows: 20px 44px minmax(20px, auto);
    column-gap: 16px;
    align-content: start;
    padding: 20px 22px;
  }

  .admin-main .stat-card-top { display: contents; }
  .admin-main .stat-card-top .stat-icon {
    grid-column: 1;
    grid-row: 1 / 4;
    align-self: start;
    width: 56px;
    height: 56px;
    padding: 13px;
  }
  .admin-main .stat-card .stat-label {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    margin: 0;
    color: #30343a !important;
    font-size: 12px !important;
    font-weight: 600;
    line-height: 1.3;
    text-transform: none;
  }
  .admin-main .stat-card .stat-val {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    margin: 2px 0 0;
    color: #17191d !important;
    font-size: 34px !important;
    font-weight: 700;
    line-height: 1.05;
  }
  .admin-main .stat-card .stat-detail {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
    margin: 0;
    color: #777d86 !important;
    font-size: 11px !important;
    line-height: 1.35;
    white-space: normal;
  }
  .admin-main .stat-card:nth-child(2) .stat-val { color: #16834f !important; }
  .admin-main .stat-card:nth-child(3) .stat-val { color: #be1a1a !important; }
  .admin-main .stat-card:nth-child(4) .stat-val { color: #b87900 !important; }
}

@media (max-width: 700px) {
  .admin-main .stat-card {
    min-height: 112px;
    height: auto;
    grid-template-rows: 18px 34px minmax(18px, auto);
    align-content: start;
    padding: 15px;
  }
  .admin-main .stat-card-top .stat-icon { width: 38px; height: 38px; padding: 9px; }
  .admin-main .stat-card .stat-label { font-size: 10px !important; }
  .admin-main .stat-card .stat-val { margin-top: 2px; font-size: 28px !important; }
  .admin-main .stat-card .stat-detail { font-size: 10px !important; white-space: normal; }
}

/* Hard override for KPI alignment (must remain last). */
.admin-shell .admin-main .stats-grid .stat-card {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 56px minmax(0, 1fr) !important;
  grid-template-rows: 20px 44px minmax(20px, auto) !important;
  align-content: start !important;
  justify-content: start !important;
  justify-items: start !important;
  text-align: left !important;
}
.admin-shell .admin-main .stats-grid .stat-card .stat-card-top { display: contents !important; }
.admin-shell .admin-main .stats-grid .stat-card .stat-icon {
  position: static !important;
  grid-column: 1 !important;
  grid-row: 1 / 4 !important;
  margin: 0 !important;
  transform: none !important;
}
.admin-shell .admin-main .stats-grid .stat-card .stat-label,
.admin-shell .admin-main .stats-grid .stat-card .stat-val,
.admin-shell .admin-main .stats-grid .stat-card .stat-detail {
  align-self: start !important;
  justify-self: start !important;
  text-align: left !important;
}

/* Let the outlet table use the full width of its card. */
@media (min-width: 701px) {
  .admin-shell .admin-main #adminTable.data-table {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
  }
  .admin-shell .admin-main #adminTable th,
  .admin-shell .admin-main #adminTable td {
    box-sizing: border-box;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .admin-shell .admin-main #adminTable th { white-space: normal; line-height: 1.2; }
  .admin-shell .admin-main #adminTable tbody td:nth-child(6),
  .admin-shell .admin-main #adminTable tbody td:nth-child(7) {
    vertical-align: middle !important;
  }
  .admin-shell .admin-main #adminTable tbody td:nth-child(8) {
    vertical-align: middle !important;
    text-align: center !important;
  }
  .admin-shell .admin-main #adminTable .admin-status-summary {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 4px;
    text-align: left;
  }
  .admin-shell .admin-main #adminTable .admin-status-summary .table-status {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr);
    align-items: start;
    width: 100%;
    min-width: 0;
    column-gap: 8px;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.3;
  }
  .admin-shell .admin-main #adminTable .admin-status-summary .table-status::before {
    width: 9px;
    height: 9px;
    margin-top: 3px;
  }
  .admin-shell .admin-main #adminTable .admin-status-summary .table-cell-note {
    max-width: none;
    margin-top: 0;
    overflow: visible;
    color: #777d86;
    line-height: 1.35;
    text-overflow: clip;
    white-space: normal;
  }
  .admin-shell .admin-main #adminTable tbody td:nth-child(1) .admin-table-owner-cell {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .admin-shell .admin-main #adminTable th:nth-child(1),
  .admin-shell .admin-main #adminTable td:nth-child(1) { width: 12% !important; }
  .admin-shell .admin-main #adminTable th:nth-child(2),
  .admin-shell .admin-main #adminTable td:nth-child(2) { width: 13% !important; }
  .admin-shell .admin-main #adminTable th:nth-child(3),
  .admin-shell .admin-main #adminTable td:nth-child(3) { width: 9% !important; }
  .admin-shell .admin-main #adminTable th:nth-child(4),
  .admin-shell .admin-main #adminTable td:nth-child(4) { width: 18% !important; }
  .admin-shell .admin-main #adminTable th:nth-child(5),
  .admin-shell .admin-main #adminTable td:nth-child(5) { width: 14% !important; }
  .admin-shell .admin-main #adminTable th:nth-child(6),
  .admin-shell .admin-main #adminTable td:nth-child(6) { width: 13% !important; }
  .admin-shell .admin-main #adminTable th:nth-child(7),
  .admin-shell .admin-main #adminTable td:nth-child(7) { width: 14% !important; }
  .admin-shell .admin-main #adminTable th:nth-child(8),
  .admin-shell .admin-main #adminTable td:nth-child(8) { width: 7% !important; text-align: center !important; vertical-align: middle !important; display: table-cell !important; }
}

/* Keep the mitra toggle aligned and locked while its request is in flight. */
.mobile-wrapper .outlet-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}
.mobile-wrapper .outlet-control > :first-child { min-width: 0; }
.mobile-wrapper .outlet-control .switch-toggle {
  align-self: center;
  justify-self: end;
  margin: 0;
}
.mobile-wrapper .outlet-control .control-detail { overflow-wrap: anywhere; }
.mobile-wrapper .switch-toggle.is-toggle-pending {
  cursor: wait;
  opacity: .55;
  pointer-events: none;
}
.mobile-wrapper .switch-toggle.is-toggle-pending .slider { cursor: wait; }

/* Compact desktop sidebar while keeping the navigation readable. */
@media (min-width: 701px) {
  .admin-shell { grid-template-columns: 215px minmax(0, 1fr); }
  .admin-shell .admin-sidebar { padding-inline: 10px; }
  .admin-shell .admin-sidebar-brand { padding-inline: 6px; }
  .admin-shell .admin-sidebar-brand .brand-logo-admin { width: 174px; }
  .admin-shell .admin-sidebar-nav .tab-btn { gap: 10px; padding-inline: 10px; font-size: 13px; }
  .admin-shell .admin-sidebar-nav .sidebar-icon { width: 20px; height: 20px; }
}

@media (min-width: 701px) and (max-width: 1100px) {
  .admin-shell { grid-template-columns: 200px minmax(0, 1fr); }
  .admin-shell .admin-sidebar-brand .brand-logo-admin { width: 160px; }
}

/* Final admin interaction adjustments. */
.admin-user-avatar {
  border: 0;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  font-family: inherit;
  transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.admin-user-avatar:hover {
  background: #cfd3d8;
  transform: translateY(-1px);
}
.admin-user-avatar:focus-visible {
  outline: 3px solid rgba(190, 26, 26, 0.14);
  outline-offset: 2px;
}

@media (min-width: 701px) {
  .admin-shell .admin-main {
    display: flex;
    flex-direction: column;
  }
  .admin-shell .admin-main > .desktop-wrapper {
    flex: 1 1 auto;
    min-height: 0;
  }
  .admin-shell .admin-main > .desktop-wrapper.is-global-scroll-active {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-right: 10px;
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
  }
}

/* Mitra login screen: keep the auth experience flat on white so it does not
   read as stacked cards before the user enters the dashboard. */
body:has(.mobile-wrapper.is-auth-view) {
  background: #ffffff;
}
.mobile-wrapper.is-auth-view {
  background: #ffffff;
  border-inline-color: transparent;
  box-shadow: none;
}
.mobile-wrapper.is-auth-view .app-header {
  background: #ffffff;
  border-bottom-color: #f3e7e3;
  box-shadow: none;
}
.mobile-wrapper.is-auth-view .content-body {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 68px);
  min-height: calc(100dvh - 68px);
  padding: 20px 18px 18px;
  background: #ffffff;
}
.mobile-wrapper.is-auth-view #loginSection.mitra-login-panel {
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: column;
}
.mobile-wrapper.is-auth-view #loginSection .mitra-login-stack {
  flex: 1 1 auto;
  min-height: 0;
  justify-content: space-between;
}
.mobile-wrapper.is-auth-view .brand-badge,
.mobile-wrapper.is-auth-view .customer-service-link,
.mobile-wrapper.is-auth-view #loginSection .mitra-login-copy .step-indicator,
.mobile-wrapper.is-auth-view #loginSection .mitra-login-copy .card-title {
  color: #111827;
}
.mobile-wrapper.is-auth-view .customer-service-link {
  min-height: 40px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid #f3ddd9;
  border-radius: 999px;
  background: #fff8f7;
}
.mobile-wrapper.is-auth-view .customer-service-link span {
  font-size: 13px;
}
.mobile-wrapper.is-auth-view .customer-service-link svg {
  width: 18px;
  height: 18px;
}
.mobile-wrapper.is-auth-view .customer-service-link:hover {
  background: #fff5f2;
}
.mobile-wrapper.is-auth-view #loginSection .auth-highlight {
  background: transparent;
}
.mobile-wrapper.is-auth-view #loginSection .auth-highlight-icon {
  background: #fff7f5;
}
.mobile-wrapper.is-auth-view #loginSection .auth-trust-note-icon {
  background: #fff7f5;
}
.mobile-wrapper.is-auth-view #loginSection .mitra-login-copyright {
  color: #b3b9c4;
}

/* Mitra dashboard refresh: follow the mobile reference more closely with
   one clean canvas, stronger hierarchy, and calmer card chrome. */
body:has(.mobile-wrapper.is-dashboard-view) {
  background: #ffffff;
}

.mobile-wrapper.is-dashboard-view {
  background: #ffffff;
  border-inline-color: #f4e7e3;
  box-shadow: none;
}

.mobile-wrapper.is-dashboard-view .app-header {
  min-height: 68px;
  padding: 0 18px;
  background: #ffffff;
  border-bottom-color: #f2e7e4;
}

.mobile-wrapper.is-dashboard-view .brand-logo-mitra {
  width: 152px;
  max-height: 34px;
}

.mobile-wrapper.is-dashboard-view .content-body {
  padding: 0 0 26px;
  background: #ffffff;
}

.mobile-wrapper.is-dashboard-view #dashboardSection,
.mobile-wrapper.is-dashboard-view #dashboardSection * {
  font-family: 'Nunito', 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.mobile-wrapper.is-dashboard-view #dashboardSection {
  gap: 14px;
}

.mobile-wrapper.is-dashboard-view .page-intro.mitra-dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  align-items: center;
  gap: 12px;
  padding: 18px 16px 0;
  overflow: hidden;
}

.mitra-hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.mitra-hero-label {
  color: #111827;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.mobile-wrapper.is-dashboard-view .page-title {
  max-width: 300px;
  margin-top: 4px;
  color: #111827;
  font-size: clamp(31px, 7.6vw, 40px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.mobile-wrapper.is-dashboard-view .page-description {
  max-width: 320px;
  margin-top: 8px;
  color: #4b5563;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  text-wrap: pretty;
}

.mitra-hero-art {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 84px;
}

.mitra-hero-shop {
  width: 84px;
  height: 84px;
  opacity: 0.18;
}

.dashboard-content-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 16px;
}

.mobile-wrapper.is-dashboard-view .mitra-account-summary,
.mobile-wrapper.is-dashboard-view .mitra-outlet-card,
.mobile-wrapper.is-dashboard-view .mitra-activity-card,
.mobile-wrapper.is-dashboard-view .mitra-empty-state {
  background: #ffffff !important;
  border: 1px solid #e7edf3;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.06);
}

.mobile-wrapper.is-dashboard-view .mitra-account-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
}

.mitra-account-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mitra-account-summary-body {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.mitra-account-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff1ef 0%, #fff8f7 100%);
  color: #e05b59;
}

.mitra-account-avatar svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.mitra-account-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.mitra-account-label {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.mitra-account-summary #mitraName {
  display: block;
  margin: 0;
  color: #111827;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
}

.mobile-wrapper.is-dashboard-view .mitra-account-summary #subBadge,
.mobile-wrapper.is-dashboard-view .mitra-account-summary #subBadge.badge-open {
  min-height: 30px;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: #16a34a;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.mobile-wrapper.is-dashboard-view .mitra-account-summary #subBadge.badge-closed {
  background: #eef2f7;
  color: #475569;
}

.mitra-account-summary #subDetails {
  display: block;
  margin: 0;
  color: #4b5563;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.mitra-account-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding-top: 10px;
  border-top: 1px solid #edf2f7;
}

.mitra-account-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 700;
}

.mitra-account-meta-item svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.mitra-account-meta-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.mitra-account-password-label {
  color: #64748b;
}

.mitra-account-password-value {
  color: #111827;
  font-family: 'SFMono-Regular', 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.mitra-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
}

.mitra-section-heading-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.mitra-section-heading h2 {
  color: #111827;
  font-size: 19px;
  font-weight: 800;
}

.mitra-section-caption {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.mitra-section-heading .section-count {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  flex: 0 0 auto;
}

.mobile-wrapper.is-dashboard-view .outlet-list {
  gap: 14px;
}

.mobile-wrapper.is-dashboard-view .mitra-empty-state {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border-radius: 20px;
}

.mitra-empty-state strong {
  color: #111827;
  font-size: 16px;
  font-weight: 800;
}

.mitra-empty-state span {
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.mobile-wrapper.is-dashboard-view .mitra-outlet-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
}

.mitra-outlet-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.mitra-outlet-copy {
  min-width: 0;
}

.mitra-outlet-merchant {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: uppercase;
}

.mitra-outlet-title {
  margin: 8px 0 0;
  color: #111827;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

.mitra-outlet-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.mitra-outlet-store-id {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.mitra-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.mitra-status-pill.is-open {
  background: #ebf9ee;
  color: #2a8d42;
}

.mitra-status-pill.is-paused {
  background: #fff6e8;
  color: #b76b11;
}

.mitra-status-pill.is-closed {
  background: #fff1f1;
  color: #df3d34;
}

.mitra-status-pill.is-pending {
  background: #eef4ff;
  color: #295db4;
}

.mitra-outlet-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid #edf2f7;
}

.mitra-outlet-toggle-copy {
  min-width: 0;
}

.mitra-outlet-toggle-copy strong {
  display: block;
  color: #1f2937;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.mitra-outlet-toggle-copy span {
  display: block;
  margin-top: 4px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.mobile-wrapper.is-dashboard-view .switch-toggle {
  width: 52px;
  height: 30px;
}

.mobile-wrapper.is-dashboard-view .slider {
  background: #d6dbe4;
  transition: background-color 200ms ease, box-shadow 200ms ease;
}

.mobile-wrapper.is-dashboard-view .slider::before {
  bottom: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
  transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1), background-color 200ms ease;
}

/* State 1: OPEN -> Right (checked), Green */
.mobile-wrapper.is-dashboard-view .switch-toggle.state-open .slider,
.mobile-wrapper.is-dashboard-view .switch-toggle.state-open input:checked + .slider {
  background: #16a34a !important;
  box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.25);
  cursor: pointer;
}

.mobile-wrapper.is-dashboard-view .switch-toggle.state-open .slider::before,
.mobile-wrapper.is-dashboard-view .switch-toggle.state-open input:checked + .slider::before {
  transform: translateX(22px) !important;
  background: #ffffff !important;
}

.mobile-wrapper.is-dashboard-view .switch-toggle.state-open:hover .slider {
  background: #15803d !important;
}

/* State 2: PAUSED -> Left (unchecked), Red */
.mobile-wrapper.is-dashboard-view .switch-toggle.state-paused .slider,
.mobile-wrapper.is-dashboard-view .switch-toggle.state-paused input:not(:checked) + .slider {
  background: #dc2626 !important;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.25);
  cursor: pointer;
}

.mobile-wrapper.is-dashboard-view .switch-toggle.state-paused .slider::before,
.mobile-wrapper.is-dashboard-view .switch-toggle.state-paused input:not(:checked) + .slider::before {
  transform: translateX(0) !important;
  background: #ffffff !important;
}

.mobile-wrapper.is-dashboard-view .switch-toggle.state-paused:hover .slider {
  background: #b91c1c !important;
}

/* State 3: CLOSED -> Left (unchecked), Disabled Gray */
.mobile-wrapper.is-dashboard-view .switch-toggle.state-closed,
.mobile-wrapper.is-dashboard-view .switch-toggle.state-closed input:disabled + .slider {
  opacity: 0.55;
  cursor: not-allowed !important;
}

.mobile-wrapper.is-dashboard-view .switch-toggle.state-closed .slider {
  background: #cbd5e1 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}

.mobile-wrapper.is-dashboard-view .switch-toggle.state-closed .slider::before,
.mobile-wrapper.is-dashboard-view .switch-toggle.state-closed input:disabled + .slider::before {
  transform: translateX(0) !important;
  background: #f8fafc !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

:root[data-theme="dark"] .mobile-wrapper.is-dashboard-view .switch-toggle.state-closed .slider {
  background: #4b5563 !important;
}

:root[data-theme="dark"] .mobile-wrapper.is-dashboard-view .switch-toggle.state-closed .slider::before {
  background: #9ca3af !important;
}

.mobile-wrapper.is-dashboard-view .switch-toggle.is-toggle-pending {
  opacity: 0.7;
  cursor: wait !important;
}

.mobile-wrapper.is-dashboard-view .switch-toggle.is-toggle-pending .slider {
  cursor: wait !important;
}

.mitra-outlet-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid #edf2f7;
}

.mitra-outlet-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.mitra-outlet-meta-row svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  fill: none;
  stroke: #94a3b8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.mitra-outlet-meta-row strong {
  color: #475569;
  font-weight: 700;
}

.mitra-outlet-alert {
  padding: 12px 14px;
  border: 1px solid #fecaca;
  border-radius: 14px;
  background: #fff6f6;
  color: #c2410c;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.mitra-outlet-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid #edf2f7;
}

.mitra-outlet-integration {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ff5722;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  min-width: 0;
  text-align: left;
  cursor: pointer;
}

.mitra-outlet-integration img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex: 0 0 auto;
}

.mitra-outlet-integration:hover {
  color: #e6491b;
}

.mitra-outlet-integration:focus-visible {
  outline: 3px solid rgba(255, 87, 34, 0.16);
  outline-offset: 4px;
  border-radius: 10px;
}

.mobile-wrapper.is-dashboard-view .schedule-toggle {
  margin-top: 0;
  color: #dc2626;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  flex: 0 0 auto;
}

.mobile-wrapper.is-dashboard-view .schedule-toggle span {
  white-space: nowrap;
}

.mobile-wrapper.is-dashboard-view .schedule-arrow {
  width: 16px;
  height: 16px;
  stroke: #dc2626;
  stroke-width: 2.6;
}

.outlet-schedule-drawer {
  padding-top: 2px;
}

.mobile-wrapper.is-dashboard-view .outlet-schedule-panel {
  margin-top: 0;
  padding: 14px 14px 6px;
  border: 1px solid #f0d8d3;
  border-radius: 16px;
  background: linear-gradient(180deg, #fffaf8 0%, #fff5f1 100%);
}

.mobile-wrapper.is-dashboard-view .outlet-schedule-title {
  margin-bottom: 6px;
  color: #111827;
  font-size: 13px;
  font-weight: 800;
}

.mobile-wrapper.is-dashboard-view .outlet-schedule-title span {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
}

.mobile-wrapper.is-dashboard-view .outlet-schedule-row {
  padding: 9px 0;
  border-top: 1px solid #f1e4df;
  color: #1f2937;
  font-size: 13px;
}

.mobile-wrapper.is-dashboard-view .outlet-schedule-row strong {
  flex-basis: 74px;
}

.mobile-wrapper.is-dashboard-view .outlet-schedule-row span {
  min-width: 0;
  color: #475569;
  font-weight: 700;
  line-height: 1.45;
  text-align: right;
}

.mobile-wrapper.is-dashboard-view .mitra-activity-card {
  padding: 18px 18px 12px;
  border-radius: 20px;
}

.mobile-wrapper.is-dashboard-view .mitra-activity-card .card-heading h2 {
  color: #111827;
  font-size: 19px;
  font-weight: 800;
}

.mobile-wrapper.is-dashboard-view .history-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 12px;
  max-height: 380px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.4) transparent;
}

.mobile-wrapper.is-dashboard-view .history-list::-webkit-scrollbar {
  width: 5px;
}

.mobile-wrapper.is-dashboard-view .history-list::-webkit-scrollbar-track {
  background: transparent;
}

.mobile-wrapper.is-dashboard-view .history-list::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 999px;
}

.mobile-wrapper.is-dashboard-view .history-list::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.6);
}

.mobile-wrapper.is-dashboard-view .history-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "role body"
    ". time";
  align-items: start;
  column-gap: 12px;
  row-gap: 4px;
  padding: 14px 0;
  border-top: 1px solid #edf2f7;
}

.mobile-wrapper.is-dashboard-view .history-item.is-empty {
  display: block;
  padding: 16px 0 14px;
}

.mobile-wrapper.is-dashboard-view .history-item.is-empty span {
  display: block;
  margin: 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
}

.history-role-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.history-role-pill.is-bot {
  background: #e9f9e8;
  color: #2f8a42;
}

.history-role-pill.is-admin {
  background: #fff2d9;
  color: #a16207;
}

.history-role-pill.is-merchant {
  background: #e9f1ff;
  color: #2563eb;
}

.history-role-pill.is-neutral {
  background: #eef2f7;
  color: #475569;
}

.history-time {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.mitra-history-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mitra-history-body strong {
  display: block;
  color: #111827;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.mitra-history-body span {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.mobile-wrapper.is-dashboard-view .history-item > .history-role-pill {
  grid-area: role;
  display: inline-flex;
  justify-self: start;
  margin-top: 0;
  white-space: nowrap;
}

.mobile-wrapper.is-dashboard-view .history-item > .history-time {
  grid-area: time;
  display: block;
  min-width: 0;
  margin-top: 0;
  line-height: 1.4;
  white-space: normal;
}

.mobile-wrapper.is-dashboard-view .history-item > .mitra-history-body {
  grid-area: body;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-top: 0;
}

.mitra-security-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 16px;
  border: 1px solid #fecaca;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff9f8 0%, #ffffff 100%);
}

.mitra-security-note-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  flex: 0 0 auto;
  border: 1px solid #fecaca;
  background: #ffffff;
  color: #ef4444;
}

.mitra-security-note-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.mitra-security-note p {
  margin: 0;
  color: #111827;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}

.mitra-dashboard-copyright {
  margin: 2px 0 0;
  color: #b0b7c3;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 420px) {
  .mobile-wrapper.is-dashboard-view .page-intro.mitra-dashboard-hero {
    grid-template-columns: minmax(0, 1fr) 84px;
    padding: 16px 16px 0;
  }

  .mobile-wrapper.is-dashboard-view .page-title {
    max-width: 250px;
    font-size: 30px;
  }

  .mobile-wrapper.is-dashboard-view .page-description {
    max-width: 240px;
    font-size: 13px;
  }

  .mobile-wrapper.is-dashboard-view .mitra-account-summary {
    padding: 13px 14px;
  }

  .mitra-account-summary-body {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
  }

  .mitra-account-avatar {
    width: 44px;
    height: 44px;
  }

  .mitra-account-avatar svg {
    width: 22px;
    height: 22px;
  }

  .mitra-outlet-title {
    font-size: 21px;
  }

  .mobile-wrapper.is-dashboard-view .history-item {
    gap: 10px;
  }

  .history-role-pill {
    min-width: 58px;
  }

  .history-time {
    font-size: 12px;
  }

  .mitra-history-body strong {
    font-size: 14px;
  }

  .mitra-history-body span {
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  .mobile-wrapper.is-dashboard-view .page-intro.mitra-dashboard-hero {
    grid-template-columns: minmax(0, 1fr) 72px;
    gap: 10px;
  }

  .mobile-wrapper.is-dashboard-view .page-title,
  .mobile-wrapper.is-dashboard-view .page-description {
    max-width: none;
  }

  .mitra-hero-art {
    min-height: 72px;
  }

  .mitra-hero-shop {
    width: 64px;
    height: 64px;
  }

  .mobile-wrapper.is-dashboard-view .history-item {
    row-gap: 6px;
  }
}

/* Final admin mobile outlet cards: keep the same information hierarchy as the
   latest desktop table/detail panel while remaining touch-friendly. */
.outlet-detail-actions .outlet-detail-delete-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 35px;
  padding: 7px 9px;
  border-color: #ebc7c7;
  color: #be1a1a;
  font-size: 10px;
  font-weight: 700;
}

.outlet-detail-actions .outlet-detail-delete-button:hover {
  background: #fff5f4;
  border-color: #ddb2b2;
  color: #991515;
}

@media (min-width: 701px) {
  .outlet-detail-actions .outlet-detail-delete-button {
    min-height: 40px;
    font-size: 12px;
  }
}

@media (max-width: 767.98px) {
  body.outlet-detail-open {
    overflow: hidden;
  }

  .admin-shell .admin-sidebar-nav {
    transition: transform 180ms ease, opacity 180ms ease;
  }

  body.outlet-detail-open .admin-shell .admin-sidebar-nav {
    opacity: 0;
    pointer-events: none;
    transform: translateY(28px);
  }

  .outlet-detail-panel {
    position: fixed;
    z-index: 320;
    inset: 0;
    width: 100vw;
    max-width: none;
    height: 100dvh;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
    transform: translateX(100%);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .outlet-detail-panel-head {
    position: sticky;
    top: 0;
    z-index: 2;
    min-height: 68px;
    padding: calc(12px + env(safe-area-inset-top)) 18px 14px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(18px);
  }

  .outlet-detail-panel-head h2 {
    font-size: 20px;
    letter-spacing: -0.02em;
  }

  .outlet-detail-back {
    display: inline-flex;
  }

  .outlet-detail-panel-actions {
    display: none;
  }

  #outletDetailContent {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 18px 18px calc(24px + env(safe-area-inset-bottom));
  }

  .outlet-detail-status {
    margin-top: 0;
  }

  .outlet-detail-identity {
    align-items: center;
    margin-top: 18px;
  }

  .outlet-detail-eyebrow {
    font-size: 11px;
  }

  .outlet-detail-panel h3 {
    margin-bottom: 4px;
    font-size: 28px;
    line-height: 1.15;
  }

  .outlet-detail-store-id {
    font-size: 13px;
  }

  .outlet-detail-context span {
    min-height: 28px;
    padding: 6px 12px;
    font-size: 11px;
  }

  .outlet-detail-store-logo {
    width: 48px;
    height: 48px;
  }

  .outlet-detail-list {
    gap: 6px;
    margin: 14px 0 10px;
    flex-shrink: 0;
  }

  .outlet-detail-list dt {
    margin-bottom: 4px;
    font-size: 11px;
  }

  .outlet-detail-list dd {
    font-size: 13px;
  }

  .outlet-detail-list small {
    display: none;
  }

  .outlet-detail-section {
    margin-top: 14px;
    padding-top: 14px;
    flex-shrink: 0;
  }

  .outlet-detail-accordion {
    font-size: 15px;
  }

  .outlet-detail-actions {
    gap: 10px;
    margin-top: 20px;
  }

  .outlet-detail-actions .btn-primary,
  .outlet-detail-actions .outlet-detail-delete-button {
    width: 100%;
    min-height: 48px;
    font-size: 13px;
  }

  .outlet-detail-backdrop {
    background: rgba(17, 24, 39, 0.18);
  }

  .admin-shell .admin-main .mobile-outlet-list {
    gap: 12px;
  }

  .admin-shell .admin-main .admin-mobile-outlet-card {
    position: relative;
    padding: 16px 15px;
    background: #fff !important;
    border: 1px solid #eceef0 !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 10px rgba(20, 23, 28, .04) !important;
  }

  .admin-shell .admin-main .admin-mobile-outlet-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f1f2;
  }

  .admin-shell .admin-main .admin-mobile-outlet-copy {
    display: grid;
    min-width: 0;
    gap: 6px;
  }

  .admin-shell .admin-main .admin-mobile-outlet-owner {
    color: #646b74;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .035em;
    text-transform: uppercase;
  }

  .admin-shell .admin-main .admin-mobile-outlet-card h3 {
    margin: 0;
    color: #111317;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.02em;
  }

  .admin-shell .admin-main .admin-mobile-outlet-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }

  .admin-shell .admin-main .admin-mobile-outlet-merchant {
    min-width: 0;
    color: #555b64;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
  }

  .admin-shell .admin-main .admin-mobile-store-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: #f6ece8;
    color: #7c5252;
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }

  .admin-shell .admin-main .admin-mobile-outlet-side {
    display: grid;
    flex: 0 0 auto;
    max-width: 132px;
    justify-items: end;
    gap: 8px;
  }

  .admin-shell .admin-main .admin-status-summary-mobile {
    display: grid;
    max-width: 100%;
    min-width: 0;
    justify-items: end;
    gap: 4px;
  }

  .admin-shell .admin-main .admin-mobile-outlet-side .table-status {
    max-width: 100%;
    font-size: 12px;
    font-weight: 700;
    justify-content: flex-end;
    white-space: normal;
    text-align: right;
    line-height: 1.25;
  }

  .admin-shell .admin-main .admin-mobile-status-note {
    max-width: 100%;
    color: #777d86;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.3;
    text-align: right;
  }

  .admin-shell .admin-main .admin-mobile-card-disclosure,
  .admin-shell .admin-main .admin-mobile-card-hint {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #868c95;
  }

  .admin-shell .admin-main .admin-mobile-card-disclosure svg,
  .admin-shell .admin-main .admin-mobile-card-hint svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
  }

  .admin-shell .admin-main .admin-mobile-outlet-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding-top: 14px;
  }

  .admin-shell .admin-main .admin-mobile-data-block {
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid #eceef0;
    border-radius: 12px;
    background: #fafafb;
  }

  .admin-shell .admin-main .admin-mobile-data-block.is-wide {
    grid-column: 1 / -1;
  }

  .admin-shell .admin-main .admin-mobile-data-block dt {
    margin: 0 0 6px;
    color: #777d86;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
  }

  .admin-shell .admin-main .admin-mobile-data-block dd {
    margin: 0;
    color: #1f242b;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
  }

  .admin-shell .admin-main .admin-mobile-data-block .today-operating-hours,
  .admin-shell .admin-main .admin-mobile-data-block .service-period,
  .admin-shell .admin-main .admin-mobile-data-block .admin-action-summary {
    display: grid;
    gap: 4px;
    width: 100%;
  }

  .admin-shell .admin-main .admin-mobile-data-block .today-operating-hours .operating-time,
  .admin-shell .admin-main .admin-mobile-data-block .service-period strong,
  .admin-shell .admin-main .admin-mobile-data-block .admin-action-summary strong {
    color: #111317;
    font-size: 13px !important;
    font-weight: 700;
    line-height: 1.35;
    white-space: normal;
  }

  .admin-shell .admin-main .admin-mobile-data-block .today-operating-hours .operating-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .admin-shell .admin-main .admin-mobile-data-block .today-operating-hours .operating-day,
  .admin-shell .admin-main .admin-mobile-data-block .today-operating-hours .operating-timezone,
  .admin-shell .admin-main .admin-mobile-data-block .service-period small,
  .admin-shell .admin-main .admin-mobile-data-block .admin-action-summary small {
    color: #777d86 !important;
    font-size: 11px !important;
    font-weight: 600;
    line-height: 1.4;
    white-space: normal;
  }

  .admin-shell .admin-main .admin-mobile-data-block .outlet-shopee-status {
    display: inline-flex;
    max-width: 100%;
  }

  .admin-shell .admin-main .admin-mobile-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f0f1f2;
  }

  .admin-shell .admin-main .admin-mobile-toggle-copy {
    display: grid;
    min-width: 0;
    gap: 4px;
  }

  .admin-shell .admin-main .admin-mobile-toggle-copy strong {
    color: #111317;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
  }

  .admin-shell .admin-main .admin-mobile-toggle-copy span {
    color: #777d86;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
  }

  .admin-shell .admin-main .admin-mobile-outlet-card .admin-table-toggle {
    flex: 0 0 auto;
  }

  .admin-shell .admin-main .admin-mobile-outlet-card .admin-table-toggle .slider {
    width: 40px;
    height: 24px;
  }

  .admin-shell .admin-main .admin-mobile-outlet-card .admin-table-toggle .slider::before {
    width: 18px;
    height: 18px;
  }

  .admin-shell .admin-main .admin-mobile-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
  }

  .admin-shell .admin-main .admin-mobile-pause-summary {
    min-width: 0;
    color: #7a8089;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
  }

  .admin-shell .admin-main .admin-mobile-card-hint {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
  }

  .admin-shell .admin-main .skeleton-mobile-card {
    min-height: 246px;
  }

  .admin-shell .admin-main .skeleton-chip {
    width: 94px;
    height: 12px;
    border-radius: 999px;
  }

  .admin-shell .admin-main .skeleton-pill {
    width: 74px;
    height: 26px;
    border-radius: 999px;
  }

  .admin-shell .admin-main .admin-mobile-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
  }

  .admin-shell .admin-main .skeleton-block {
    display: block;
    width: 100%;
    height: 64px;
    border-radius: 12px;
  }

  .admin-shell .admin-main .skeleton-block-wide {
    grid-column: 1 / -1;
    height: 72px;
  }
}

@media (max-width: 420px) {
  .admin-shell .admin-main .admin-mobile-outlet-grid,
  .admin-shell .admin-main .admin-mobile-skeleton-grid {
    grid-template-columns: 1fr;
  }

  .admin-shell .admin-main .admin-mobile-data-block.is-wide,
  .admin-shell .admin-main .skeleton-block-wide {
    grid-column: auto;
  }

  .admin-shell .admin-main .admin-mobile-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .admin-shell .admin-sidebar {
    padding: 16px 15px 12px;
  }

  .admin-shell .admin-sidebar-brand {
    align-items: center;
    gap: 6px;
    padding-bottom: 14px;
  }

  .admin-shell .admin-sidebar-brand .brand-logo-admin {
    width: 162px;
    max-height: 38px;
  }

  .admin-shell .admin-sidebar-brand > span {
    color: #7a8088;
    font-size: 9px;
    line-height: 1.2;
    text-align: left;
  }

  .admin-shell .admin-sidebar-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
  }

  .admin-shell .admin-sidebar-nav .tab-btn {
    display: grid;
    min-height: 62px;
    padding: 9px 6px 8px;
    justify-items: center;
    align-content: start;
    gap: 5px;
    border-radius: 12px;
    text-align: center;
  }

  .admin-shell .admin-sidebar-nav .tab-btn .sidebar-icon {
    width: 18px;
    height: 18px;
    margin-top: 1px;
  }

  .admin-shell .admin-sidebar-nav .tab-btn > span:last-child {
    display: block;
    max-width: 100%;
    color: inherit;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.15;
    white-space: normal;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  .admin-shell .admin-sidebar-nav .tab-btn.active > span:last-child {
    color: #be1a1a;
  }

  .admin-shell .admin-sidebar-nav .tab-btn:hover > span:last-child,
  .admin-shell .admin-sidebar-nav .tab-btn:focus > span:last-child {
    color: #be1a1a;
  }
}

@media (max-width: 360px) {
  .admin-shell .admin-sidebar-brand .brand-logo-admin {
    width: 150px;
  }

  .admin-shell .admin-sidebar-nav {
    gap: 4px;
  }

  .admin-shell .admin-sidebar-nav .tab-btn {
    min-height: 60px;
    padding-inline: 4px;
  }

  .admin-shell .admin-sidebar-nav .tab-btn > span:last-child {
    font-size: 9px;
    line-height: 1.12;
  }
}

/* Mobile admin outlet refresh: compact top area, quick-summary strip, filter sheet,
   and thumb-friendly bottom navigation. */
@media (max-width: 767.98px) {
  body.mobile-filter-sheet-open {
    overflow: hidden;
  }

  .admin-shell {
    background:
      radial-gradient(circle at top left, rgba(190, 26, 26, 0.05), transparent 34%),
      linear-gradient(180deg, #fffaf9 0%, #f7f7f8 100%);
  }

  .admin-shell .admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 90;
    padding: 12px 16px 6px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #efe3df;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.04);
  }

  .admin-shell .admin-sidebar-brand {
    align-items: flex-start;
    gap: 5px;
    padding: 0;
  }

  .admin-shell .admin-sidebar-brand .brand-logo-admin {
    width: 156px;
    max-height: 34px;
  }

  .admin-shell .admin-sidebar-brand > span {
    color: #8a9098;
    font-size: 9px;
    line-height: 1.2;
  }

  .admin-shell .admin-sidebar-note,
  .admin-shell .admin-breadcrumb,
  .admin-shell .admin-main .stats-grid,
  .admin-shell .admin-main .desktop-outlet-filter-heading {
    display: none !important;
  }

  #paneVB.active,
  .vb-page-shell,
  #paneLogs.active,
  .logs-page-shell,
  #paneSettings.active,
  .settings-page-shell {
    height: auto;
    overflow: visible;
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
  }

  body.vb-mobile-bulk-open #paneVB.active,
  body.vb-mobile-bulk-open .vb-page-shell {
    padding-bottom: calc(214px + env(safe-area-inset-bottom));
  }

  .admin-shell .admin-sidebar-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 105;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    align-items: end;
    padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid #eadfdb;
    box-shadow: 0 -14px 32px rgba(17, 24, 39, 0.08);
    backdrop-filter: blur(18px);
  }

  .admin-shell .admin-sidebar-nav .tab-btn {
    display: grid;
    min-height: 58px;
    padding: 8px 4px 7px;
    align-content: center;
    justify-items: center;
    gap: 4px;
    border-radius: 16px;
    text-align: center;
  }

  .admin-shell .admin-sidebar-nav .tab-btn .sidebar-icon {
    width: 20px;
    height: 20px;
    margin: 0;
  }

  .admin-shell .admin-sidebar-nav .tab-btn > span:last-child {
    display: block;
    color: inherit;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.15;
    white-space: normal;
    text-wrap: balance;
  }

  .admin-shell .admin-sidebar-nav .tab-btn.active {
    background: #fff1ef !important;
    color: #be1a1a !important;
    box-shadow: inset 0 0 0 1px #f3cfca;
  }

  .admin-shell .admin-sidebar-nav .mobile-fetch-nav {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: end;
    gap: 4px;
    min-height: 58px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    font: inherit;
    text-align: center;
    transform: translateY(-8px);
  }

  .admin-shell .admin-sidebar-nav .mobile-fetch-nav:disabled {
    cursor: wait;
  }

  .admin-shell .admin-sidebar-nav .mobile-fetch-nav.is-inactive {
    opacity: 0.48;
  }

  .admin-shell .admin-sidebar-nav .mobile-fetch-nav-core {
    display: grid;
    width: 60px;
    height: 60px;
    margin-top: -34px;
    place-items: center;
    border-radius: 999px;
    background: #be1a1a;
    color: #ffffff;
    box-shadow: 0 18px 30px rgba(190, 26, 26, 0.3), 0 0 0 8px rgba(255, 255, 255, 0.98);
  }

  .admin-shell .admin-sidebar-nav .mobile-fetch-nav-core svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
  }

  .admin-shell .admin-sidebar-nav .mobile-fetch-nav-label {
    display: block;
    color: #4b5563;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
  }

  .admin-shell .admin-sidebar-nav .mobile-fetch-nav.is-loading .mobile-fetch-nav-core svg {
    animation: mobile-fetch-spin 900ms linear infinite;
  }

  .admin-shell .admin-main {
    padding: 14px 16px calc(112px + env(safe-area-inset-bottom));
    overflow: visible;
  }

  .admin-shell .admin-main > .desktop-wrapper {
    padding: 0;
    overflow: visible;
  }

  .admin-shell .admin-page-header {
    margin: 0 0 14px;
  }

  .admin-shell .admin-page-header .page-title {
    font-size: 24px;
    line-height: 1.15;
  }

  .admin-shell .admin-main #paneOutlets .table-card.outlet-section {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .admin-shell .admin-main .mobile-summary-strip {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-bottom: 12px;
    overflow-x: auto;
    padding: 4px;
    border: 1px solid #ebe0dc;
    border-radius: 18px;
    background: linear-gradient(180deg, #fffefe 0%, #fff6f4 100%);
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
    scrollbar-width: none;
  }

  .admin-shell .admin-main .mobile-summary-strip::-webkit-scrollbar {
    display: none;
  }

  .admin-shell .admin-main .mobile-summary-segment {
    position: relative;
    display: inline-flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: max-content;
    padding: 10px 12px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
  }

  .admin-shell .admin-main .mobile-summary-segment + .mobile-summary-segment::before {
    position: absolute;
    top: 11px;
    bottom: 11px;
    left: 0;
    width: 1px;
    background: #efe5e1;
    content: '';
  }

  .admin-shell .admin-main .mobile-summary-segment strong {
    color: #111317;
    font-size: 13px;
    font-weight: 800;
  }

  .admin-shell .admin-main .mobile-summary-segment.is-active {
    background: #be1a1a;
    color: #ffffff;
    box-shadow: 0 12px 20px rgba(190, 26, 26, 0.22);
  }

  .admin-shell .admin-main .mobile-summary-segment.is-active::before,
  .admin-shell .admin-main .mobile-summary-segment.is-active + .mobile-summary-segment::before {
    opacity: 0;
  }

  .admin-shell .admin-main .mobile-summary-segment.is-active strong {
    color: #ffffff;
  }

  .admin-shell .admin-main .outlet-filter-card {
    margin-bottom: 14px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .admin-shell .admin-main .mobile-outlet-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
  }

  .admin-shell .admin-main .mobile-outlet-search {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid #e8dcda;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(17, 24, 39, 0.05);
  }

  .admin-shell .admin-main .mobile-outlet-search svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: none;
    stroke: #60656d;
    stroke-linecap: round;
    stroke-width: 1.8;
  }

  .admin-shell .admin-main .mobile-outlet-search input {
    width: 100%;
    min-height: 46px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #111317;
    font-size: 13px;
    font-weight: 600;
  }

  .admin-shell .admin-main .mobile-outlet-search input::placeholder {
    color: #8a9098;
    font-weight: 500;
  }

  .admin-shell .admin-main .mobile-filter-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 112px;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid #e8dcda;
    border-radius: 16px;
    background: #ffffff;
    color: #232a31;
    box-shadow: 0 10px 26px rgba(17, 24, 39, 0.05);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
  }

  .admin-shell .admin-main .mobile-filter-trigger svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
  }

  .admin-shell .admin-main .mobile-filter-trigger.has-active-filters {
    border-color: #be1a1a;
    background: #fff5f4;
    color: #be1a1a;
  }

  .admin-shell .admin-main .mobile-filter-badge {
    display: inline-grid;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    place-items: center;
    border-radius: 999px;
    background: #be1a1a;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
  }

  .admin-shell .admin-main .mobile-filter-badge[hidden] {
    display: none !important;
  }

  body[data-admin-tab="outlets"] .admin-shell .admin-page-header .admin-header-search,
  body[data-admin-tab="vb"] .admin-shell .admin-page-header .admin-header-search {
    display: none;
  }

  .vb-mobile-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
  }

  .vb-mobile-search {
    min-width: 0;
  }

  .vb-mobile-filter-trigger {
    width: auto;
    justify-content: center;
  }

  .vb-filter-disclosure {
    display: none;
  }

  .vb-stat-grid {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: minmax(136px, 44vw);
    gap: 10px;
    overflow-x: auto;
    padding: 0 2px 4px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
  }

  .vb-stat-grid::-webkit-scrollbar {
    display: none;
  }

  .vb-stat-card {
    min-height: 88px;
    scroll-snap-align: start;
  }

  .vb-mobile-bulk-bar {
    position: fixed;
    right: 12px;
    bottom: calc(92px + env(safe-area-inset-bottom));
    left: 12px;
    z-index: 104;
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid #eadfdb;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.12);
    backdrop-filter: blur(18px);
  }

  .vb-mobile-bulk-bar .vb-bulk-selection-summary {
    color: #40454d;
    font-size: 12px;
  }

  .vb-mobile-bulk-bar .vb-bulk-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .vb-mobile-bulk-bar .vb-bulk-actions button {
    width: 100%;
    min-height: 46px;
  }

  .vb-mobile-filter-sheet .vb-mobile-sheet-input {
    min-height: 48px;
    margin-top: 0;
    padding: 11px 14px;
    border: 1px solid #eadfdb;
    border-radius: 14px;
    background: #ffffff;
    color: #111317;
    font-size: 13px;
    font-weight: 600;
  }

  .vb-mobile-filter-sheet .vb-mobile-sheet-input::placeholder {
    color: #8a9098;
    font-weight: 500;
  }

  .vb-mobile-filter-sheet .vb-mobile-sheet-input:focus {
    border-color: #be1a1a;
    box-shadow: 0 0 0 3px rgba(190, 26, 26, 0.08);
  }

  .admin-shell .admin-main .mobile-filter-sheet-overlay {
    align-items: flex-end;
    padding: 0;
    background: rgba(17, 24, 39, 0.26);
    z-index: 320;
  }

  .admin-shell .admin-main .mobile-filter-sheet {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: min(84vh, 720px);
    padding: 10px 18px calc(18px + env(safe-area-inset-bottom));
    background: #ffffff;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -18px 48px rgba(15, 23, 42, 0.18);
    transform: translateY(18px);
    transition: transform 180ms ease;
  }

  .admin-shell .admin-main .mobile-filter-sheet-overlay.active .mobile-filter-sheet {
    transform: translateY(0);
  }

  .admin-shell .admin-main .mobile-filter-sheet-handle {
    width: 44px;
    height: 5px;
    margin: 0 auto 14px;
    border-radius: 999px;
    background: #ddd2ce;
  }

  .admin-shell .admin-main .mobile-filter-sheet-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
  }

  .admin-shell .admin-main .mobile-filter-sheet-header .step-indicator {
    color: #7c858f;
    font-size: 10px;
  }

  .admin-shell .admin-main .mobile-filter-sheet-header h2 {
    margin: 4px 0 0;
    color: #111317;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
  }

  .admin-shell .admin-main .mobile-filter-sheet-close {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: #f4f5f6;
    color: #454b53;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
  }

  .admin-shell .admin-main .mobile-filter-sheet-body {
    display: grid;
    flex: 1 1 auto;
    gap: 14px;
    overflow-y: auto;
    padding-right: 2px;
    overscroll-behavior: contain;
  }

  .admin-shell .admin-main .mobile-filter-sheet-body .filter-field {
    display: grid;
    gap: 6px;
    color: #40454d;
    font-size: 11px;
    font-weight: 700;
  }

  .admin-shell .admin-main .mobile-filter-sheet-body .mobile-sheet-select {
    min-height: 48px;
    margin-top: 0;
    padding: 11px 14px;
    border: 1px solid #eadfdb;
    border-radius: 14px;
    background: #ffffff;
    color: #111317;
    font-size: 13px;
    font-weight: 600;
  }

  .admin-shell .admin-main .mobile-filter-sheet-body .mobile-sheet-select:focus {
    border-color: #be1a1a;
    box-shadow: 0 0 0 3px rgba(190, 26, 26, 0.08);
  }

  .admin-shell .admin-main .mobile-filter-sheet-footer {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f1e6e2;
  }

  .admin-shell .admin-main .mobile-filter-sheet-footer .btn-outline,
  .admin-shell .admin-main .mobile-filter-sheet-footer .btn-primary {
    width: 100%;
    min-height: 48px;
    margin: 0;
  }

  .admin-shell .admin-main .mobile-outlet-list {
    gap: 12px;
  }
}

@media (max-width: 420px) {
  .admin-shell .admin-main .mobile-summary-segment {
    padding-inline: 10px;
  }

  .admin-shell .admin-main .mobile-filter-trigger {
    min-width: 100px;
    padding-inline: 12px;
  }

  .admin-shell .admin-sidebar-nav {
    gap: 4px;
    padding-inline: 8px;
  }

  .admin-shell .admin-sidebar-nav .mobile-fetch-nav-core {
    width: 54px;
    height: 54px;
    margin-top: -28px;
  }
}

@media (max-width: 360px) {
  .admin-shell .admin-main .mobile-filter-sheet-footer {
    grid-template-columns: 1fr;
  }

  .admin-shell .admin-sidebar-nav .mobile-fetch-nav-label {
    font-size: 9px;
  }
}

@keyframes mobile-fetch-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Desktop admin outlets: keep the table flowing naturally and scroll the page wrapper instead. */
@media (min-width: 701px) {
  .admin-shell .admin-main > .desktop-wrapper.is-global-scroll-active #paneOutlets.active {
    min-height: max-content;
  }

  .admin-shell .admin-main > .desktop-wrapper.is-global-scroll-active #paneOutlets.active .outlet-content-layout {
    height: auto;
    min-height: 0;
  }

  .admin-shell .admin-main > .desktop-wrapper.is-global-scroll-active #paneOutlets .table-card.outlet-section {
    display: block;
    height: auto;
    min-height: 0;
  }

  .admin-shell .admin-main > .desktop-wrapper.is-global-scroll-active #paneOutlets .table-card.outlet-section .table-scroll {
    max-height: none;
    overflow-x: hidden;
    overflow-y: visible;
  }
}
