:root {
  --theme: #2e7d5b;
  --theme-soft: #e8f5ee;
  --bg: #f0f2f5;
  --card: #ffffff;
  --text: #1a1a1a;
  --muted: #6b7280;
  --border: #e5e7eb;
  --danger: #dc2626;
  --warn: #d97706;
  --info: #2563eb;
  --ok: #059669;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --radius: 16px;
  --sidebar-width: 280px;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body { line-height: 1.45; }
button, input, select, textarea { font: inherit; }
a { color: var(--theme); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }

#app { min-height: 100vh; }

/* Buttons */
.btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .12s ease, opacity .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--theme); color: #fff; }
.btn-secondary { background: var(--theme-soft); color: var(--theme); }
.btn-ghost { background: #f3f4f6; color: #374151; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--theme);
  border: 1px solid var(--theme);
}
.btn-sm { padding: 8px 12px; border-radius: 10px; font-size: 14px; }
.btn-block { width: 100%; }
.icon-btn {
  width: 40px; height: 40px; border: 0; border-radius: 20px;
  background: #f3f4f6; color: #6b7280; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Forms */
.field { display: grid; gap: 8px; }
.field-label { font-weight: 700; font-size: 14px; color: #374151; }
.field-hint { font-size: 12px; color: var(--muted); }
.input, .textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: #fafafa;
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}
.input:focus, .textarea:focus {
  border-color: var(--theme);
  background: #fff;
  box-shadow: 0 0 0 3px var(--theme-soft);
}
.textarea { min-height: 120px; resize: vertical; }
.checkbox-row {
  display: flex; align-items: center; gap: 10px; color: #374151; font-size: 14px;
}
.signup-agree {
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.45;
}
.signup-agree input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}
.signup-agree-text a {
  font-weight: 700;
  text-decoration: underline;
}

/* Auth — matches mobile Login/Signup headers and form cards */
.auth-layout { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; background: #f0f2f5; }
.auth-header {
  background: var(--theme);
  color: #fff;
  text-align: center;
  padding: 28px 20px 24px;
}
.auth-logo { width: 72px; height: 72px; margin: 0 auto 10px; border-radius: 16px; background: #fff; }
.auth-header h1 { margin: 0; font-size: 24px; font-weight: 800; }
.auth-header p { margin: 8px 0 0; opacity: .9; font-size: 13px; }
.auth-main {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px 40px;
}
.auth-main h2 { margin: 0 0 4px; font-size: 26px; font-weight: 800; color: #1a1a1a; }
.auth-main .lead { margin: 0 0 20px; color: #6b7280; font-size: 14px; }
.auth-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
  display: grid;
  gap: 18px;
  box-shadow: var(--shadow);
}
.auth-links {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 16px; font-size: 14px;
}
.auth-links a { font-weight: 600; }
.auth-footer-card {
  margin-top: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px 16px;
  text-align: center;
  font-size: 14px;
  color: #374151;
}
.auth-footer-card a { font-weight: 700; }

.auth-main:has(.signup-card) {
  max-width: 920px;
}
.signup-card {
  gap: 16px;
}
.signup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.signup-grid .section-card {
  gap: 12px;
  padding: 16px;
}
.signup-grid .section-card-body {
  gap: 12px;
}
@media (max-width: 768px) {
  .signup-grid {
    grid-template-columns: 1fr;
  }
}

.store-download-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
}
.store-download-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}
.store-download-hint {
  font-size: 12px;
  color: #6b7280;
  margin-top: -4px;
}
.store-download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.store-download-card {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 10px;
}
.store-download-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}
.store-qr {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  background: #fff;
}
.store-qr canvas,
.store-qr img {
  width: 112px;
  height: 112px;
  display: block;
}
.store-download-btn {
  width: 100%;
  font-size: 12px;
  padding: 10px 8px;
  text-decoration: none;
}
.store-download-btn:hover { text-decoration: none; }

.subscribe-modal-body {
  display: grid;
  gap: 14px;
}
.subscribe-modal .modal-body {
  max-height: min(70vh, 640px);
  overflow: auto;
}

.web-pay-panel {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid #d1fae5;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
  border-radius: 14px;
}
.web-pay-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--theme);
}
.web-pay-hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}
.web-pay-panel .btn i {
  margin-right: 8px;
}
.web-pay-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.web-pay-divider::before,
.web-pay-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

/* Mobile-style icon inputs */
.icon-control {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid #e5e7eb;
  background: #fafafa;
  border-radius: 12px;
  padding: 4px 14px;
  min-height: 52px;
}
.icon-control:focus-within {
  border-color: var(--theme);
  background: #fff;
  box-shadow: 0 0 0 3px var(--theme-soft);
}
.icon-control > i { color: var(--theme); width: 18px; text-align: center; }
.icon-control-input, .icon-control .input {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 10px 0 !important;
  flex: 1;
  min-width: 0;
}
.icon-control .timezone-field {
  flex: 1;
  min-width: 0;
}
.icon-control .timezone-picker-input {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 10px 0 !important;
  padding-right: 36px !important;
}
.icon-control-toggle {
  border: 0; background: transparent; color: #9ca3af; cursor: pointer;
  width: 40px; height: 40px; display: grid; place-items: center;
}

.section-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
  display: grid;
  gap: 16px;
}
.section-card-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--theme);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.section-card-body { display: grid; gap: 16px; }

/* Bottom sheet dialogs (Add User / Department) */
#modal-root:has(.sheet-dialog) {
  align-items: end;
  place-items: end center;
}
.sheet-dialog {
  position: relative;
  width: min(560px, 100vw);
  max-height: min(92vh, 900px);
  overflow: auto;
  background: #fff;
  border-radius: 24px 24px 0 0;
  box-shadow: var(--shadow);
  transform: translateY(24px);
  opacity: 0;
  transition: .25s ease;
}
.sheet-dialog.open { transform: none; opacity: 1; }
.sheet-handle {
  width: 40px; height: 4px; border-radius: 2px; background: #e5e7eb;
  margin: 12px auto 0;
}
.sheet-header {
  display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
  padding: 16px 24px 0;
}
.sheet-header h3 { margin: 0; font-size: 22px; font-weight: 800; color: #1a1a1a; }
.sheet-header p { margin: 4px 0 0; color: #6b7280; font-size: 14px; }
.sheet-body { padding: 20px 24px; display: grid; gap: 16px; }
.sheet-body .section-card { box-shadow: none; }
.sheet-footer { padding: 0 24px 28px; }

.role-screen { min-height: 100vh; background: #f0f2f5; }
.role-avatar-ring {
  width: 52px; height: 52px; border-radius: 50%; border: 2px solid #fff;
  padding: 2px; overflow: hidden; flex-shrink: 0;
}
.role-avatar-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.role-header-text { min-width: 0; }
.role-header-line {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px;
}
.role-header-role { color: #fff; opacity: .95; font-size: 13px; }
.role-header-badge {
  display: inline-flex;
  background: rgba(255,255,255,.2); color: #fff;
  border-radius: 8px; padding: 3px 8px; font-size: 12px; font-weight: 700;
}
.role-header-meta { margin: 2px 0 0; color: #fff; opacity: .9; font-size: 12px; }
.role-header-actions .btn {
  background: rgba(255,255,255,.2); color: #fff; border: 0;
}
.role-header-actions .btn:hover { background: rgba(255,255,255,.3); }
.role-header-actions .icon-btn-light {
  width: 40px; height: 40px; border-radius: 20px; border: 0;
  background: rgba(255,255,255,.2); color: #fff; cursor: pointer;
  display: grid; place-items: center;
}
.role-header-actions .caller-issue-btn {
  background: #fff;
  color: var(--theme);
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.role-header-actions .caller-issue-btn:hover {
  background: #f9fafb;
}
.role-header .identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.role-header .identity img { display: block; }

/* Caller page */
.caller-page { display: grid; gap: 16px; max-width: 900px; margin: 0 auto; }
.caller-serving-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 16px;
}
.caller-serving-card.has-token {
  display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center;
}
.caller-serving-empty { text-align: center; padding: 18px 12px; color: #9ca3af; }
.caller-serving-empty i { font-size: 32px; color: #d1d5db; margin-bottom: 8px; }
.caller-serving-empty h3 { margin: 0 0 6px; color: #1f2937; font-size: 16px; }
.caller-serving-empty p { margin: 0; font-size: 13px; }
.caller-serving-label {
  font-size: 13px; font-weight: 700; color: #6b7280; letter-spacing: .04em;
}
.caller-serving-token {
  margin-top: 8px; background: var(--theme-soft); color: var(--theme);
  border-radius: 12px; padding: 12px 16px; font-size: 36px; font-weight: 800;
  text-align: center;
}
.caller-serving-meta { margin-top: 8px; color: #6b7280; font-size: 13px; }
.caller-serving-actions {
  display: grid; grid-template-columns: auto auto; gap: 8px;
}
.caller-action {
  width: 52px; height: 52px; border: 0; border-radius: 14px; cursor: pointer;
  display: grid; place-items: center; font-size: 18px;
}
.caller-action:disabled { opacity: .45; cursor: not-allowed; }
.caller-action.recall { background: #fff7ed; color: #ea580c; }
.caller-action.complete { background: #ecfdf5; color: #16a34a; }
.caller-action.transfer { background: #eff6ff; color: #2563eb; }
.caller-action.noshow { background: #fef2f2; color: #dc2626; }
.caller-overview h2 { margin: 0 0 4px; font-size: 20px; color: #1a1a1a; }
.caller-overview p { margin: 0 0 4px; color: #6b7280; font-size: 13px; }
.caller-accordion {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; overflow: hidden;
}
.caller-acc-header {
  width: 100%; border: 0; background: #fff; padding: 14px 16px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  cursor: pointer; text-align: left;
}
.caller-acc-header strong { display: block; color: #1f2937; font-size: 15px; }
.caller-acc-header span { color: #9ca3af; font-size: 12px; }
.caller-acc-icon {
  width: 36px; height: 36px; border-radius: 18px; background: var(--theme-soft);
  color: var(--theme); display: grid; place-items: center;
}
.caller-acc-body { padding: 0 12px 12px; display: grid; gap: 10px; }
.caller-empty-panel {
  border: 1px solid #e5e7eb; border-radius: 14px; padding: 28px 16px;
  text-align: center; color: #9ca3af;
}
.caller-empty-panel i { font-size: 28px; color: #d1d5db; margin-bottom: 8px; }
.caller-token-card {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  border: 1px solid #e5e7eb; border-radius: 14px; padding: 14px 16px; background: #fff;
}
.caller-token-card .token-display { font-size: 18px; font-weight: 800; color: #111827; }
.caller-token-card .token-time {
  display: flex; align-items: center; gap: 6px; color: #9ca3af; font-size: 12px; margin: 4px 0;
}

/* Printer page */
.printer-page { display: grid; gap: 14px; max-width: 720px; margin: 0 auto; }
.printer-status-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px 14px;
}
.printer-status-card strong { display: block; font-size: 12px; color: #374151; }
.printer-status-card span { font-size: 12px; color: #6b7280; }
.status-dot {
  width: 10px; height: 10px; border-radius: 5px; background: #9ca3af;
}
.status-dot.ok { background: #16a34a; }
.step-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 18px;
  display: grid; gap: 12px;
}
.step-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.step-badge {
  width: 28px; height: 28px; border-radius: 14px; background: var(--theme-soft);
  color: var(--theme); display: grid; place-items: center; font-size: 13px; font-weight: 800;
}
.step-head .optional { color: #9ca3af; font-size: 12px; display: block; }
.country-picker {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-width: 108px; height: 52px; padding: 0 12px;
  border: 1px solid #e5e7eb; background: #fafafa; border-radius: 12px; cursor: pointer;
}
.country-picker i { color: #9ca3af; font-size: 11px; }
.icon-control.grow { flex: 1; }
.dept-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.dept-tile {
  border: 1px solid #e5e7eb; background: #fff; border-radius: 14px;
  padding: 16px 12px; cursor: pointer; text-align: left;
  display: grid; gap: 4px;
}
.dept-tile strong { color: #111827; font-size: 15px; }
.dept-tile span {
  display: inline-flex; width: fit-content;
  background: var(--theme-soft); color: var(--theme);
  border-radius: 6px; padding: 2px 8px; font-size: 11px; font-weight: 700;
}
.dept-tile.active {
  border-color: var(--theme); background: var(--theme-soft);
  box-shadow: 0 0 0 1px var(--theme);
}

/* Announcer / TV display — light theme like mobile */
.announcer-screen {
  min-height: 100vh; background: #f0f2f5; padding: 12px;
}
.announcer-split {
  display: grid;
  grid-template-columns: minmax(280px, 2fr) minmax(320px, 3fr);
  gap: 12px;
  min-height: calc(100vh - 24px);
}
.announcer-queue-panel,
.announcer-media-panel,
.announcer-company-card,
.announcer-ads-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
}
.announcer-queue-panel {
  display: grid; grid-template-rows: auto 1fr; min-height: 0;
}
.announcer-queue-head {
  display: flex; align-items: center; gap: 12px;
  background: var(--theme); color: #fff; padding: 14px 16px;
}
.announcer-queue-head i { font-size: 20px; }
.announcer-queue-head h2 { margin: 0; font-size: 20px; }
.announcer-queue-head p { margin: 2px 0 0; color: #d1fae5; font-size: 12px; }
.announcer-table-wrap { overflow: auto; }
.announcer-table {
  width: 100%; border-collapse: collapse; font-size: 18px;
}
.announcer-table th {
  background: #f9fafb; color: #374151; text-align: left;
  padding: 12px 14px; font-size: 13px; border-bottom: 1px solid #e5e7eb;
}
.announcer-table td {
  padding: 14px; border-bottom: 1px solid #f3f4f6; color: #1a1a1a; font-weight: 600;
}
.announcer-table tr.tv-row-current td {
  background: var(--theme-soft); color: var(--theme); font-size: 22px; font-weight: 800;
}
.tv-empty-cell {
  text-align: center !important; color: #9ca3af !important; font-weight: 500 !important;
  padding: 40px 16px !important;
}
.announcer-media-panel {
  display: grid; grid-template-rows: auto 1fr; gap: 12px;
  background: transparent; border: 0; overflow: visible;
}
.announcer-company-card {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 14px; align-items: center; padding: 14px 16px;
}
.announcer-company-logo {
  width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--theme);
  padding: 3px; overflow: hidden;
}
.announcer-company-logo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.announcer-company-text h1 { margin: 0; font-size: 22px; color: #1a1a1a; }
.announcer-company-text p { margin: 2px 0 0; color: #6b7280; font-size: 13px; }
.announcer-clock { text-align: right; }
.tv-time { font-size: 26px; font-weight: 800; color: #1a1a1a; }
.tv-date { font-size: 12px; font-weight: 700; color: #6b7280; }
.announcer-logout {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid #fecaca; background: #fef2f2; color: #dc2626;
  border-radius: 12px; padding: 10px 12px; font-weight: 700; cursor: pointer;
}
.announcer-ads-card {
  min-height: 0;
  display: grid;
  place-items: center;
  position: relative;
  background: #f9fafb;
}
.announcer-ads-card .protected-media,
.announcer-ads-card img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.announcer-ads-card img,
.announcer-ads-card .protected-media-img {
  object-fit: contain;
  object-position: center;
  background: #f9fafb;
}
.announcer-ad-empty { text-align: center; color: #9ca3af; padding: 40px; }
.announcer-ad-empty i { font-size: 32px; color: #d1d5db; margin-bottom: 8px; }

@media (max-width: 960px) {
  .caller-serving-card.has-token { grid-template-columns: 1fr; }
  .caller-serving-actions { justify-content: center; }
  .dept-grid { grid-template-columns: 1fr; }
  .announcer-split { grid-template-columns: 1fr; }
  .announcer-company-card {
    grid-template-columns: auto 1fr;
  }
  .announcer-clock, .announcer-logout { grid-column: 1 / -1; }
  .announcer-logout { justify-self: start; }
}

/* Reports list like mobile */
.report-list-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  margin-bottom: 10px;
}
.report-list-item:hover { border-color: var(--theme); }
.report-list-item h3 { margin: 0 0 4px; font-size: 15px; color: #111827; }
.report-list-item p { margin: 0; color: #6b7280; font-size: 13px; }
.report-list-item .chevron { color: #d1d5db; }

.report-chart-card { margin-bottom: 20px; }
.report-chart-card h2 { margin: 0 0 12px; font-size: 16px; color: #111827; }
.report-chart-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #6b7280;
  font-size: 14px;
}
.report-table-title {
  margin: 0 0 12px;
  font-size: 16px;
  color: #111827;
  padding-top: 4px;
  border-top: 1px solid #e5e7eb;
}

/* Ads manager */
.ads-preview-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; overflow: hidden;
}
.ads-preview-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px;
}
.ads-preview-head h3 { margin: 0; font-size: 15px; }
.ads-preview-head p { margin: 2px 0 0; color: #9ca3af; font-size: 12px; }
.ads-preview-stage {
  min-height: 220px; background: #f9fafb; display: grid; place-items: center;
  margin: 0 12px 12px; border-radius: 12px; border: 1px solid #e5e7eb; overflow: hidden;
}
.ads-preview-stage img,
.ads-preview-stage .protected-media-img { width: 100%; height: 260px; object-fit: contain; background: #f9fafb; }
.legal-links {
  display: flex; flex-wrap: wrap; gap: 12px 16px; justify-content: center;
  margin-top: 24px; font-size: 13px;
}
.legal-links a { color: var(--muted); }

/* Admin shell */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar-width) 1fr; }
.sidebar {
  background: #fff;
  color: #111827;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid #e5e7eb;
}
.sidebar-brand {
  padding: 20px 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
}
.sidebar-brand img {
  width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: #f3f4f6;
}
.sidebar-brand strong { display: block; font-size: 15px; color: #111827; }
.sidebar-brand span { display: block; font-size: 12px; color: #6b7280; }
.sidebar-nav { padding: 12px; display: grid; gap: 4px; overflow: auto; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px; color: #111827;
  cursor: pointer; border: 0; background: transparent; text-align: left; width: 100%;
  font-weight: 600;
}
.nav-item:hover { background: #f3f4f6; color: #111827; text-decoration: none; }
.nav-item.active {
  background: var(--theme-soft);
  color: var(--theme);
}
.sidebar-subscription-host {
  flex-shrink: 0;
}
.sidebar-subscription {
  margin: 12px 12px 0;
  padding: 12px 14px;
  background: var(--theme-soft);
  border: 1px solid #cfe8da;
  border-radius: 12px;
  display: grid;
  gap: 8px;
}
.sidebar-subscription-days {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
}
.sidebar-subscription-hint {
  font-size: 11px;
  color: #6b7280;
  line-height: 1.4;
}
.sidebar-subscription-btn {
  width: 100%;
  justify-content: center;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 10px;
}
.sidebar-footer {
  padding: 14px 18px 18px;
  border-top: 1px solid #e5e7eb;
  font-size: 12px;
  color: #6b7280;
}
.sidebar-footer .legal-links a { color: #6b7280; }
.sidebar-footer .legal-links a:hover { color: #111827; }
.content {
  min-width: 0;
  padding: 20px;
}
.topbar-mobile {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.page-header {
  display: flex; justify-content: space-between; gap: 16px; align-items: flex-start;
  margin-bottom: 16px; flex-wrap: wrap;
}
.page-header h1 { margin: 0; font-size: 22px; }
.page-header p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-header {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
}
.card-header h2 { margin: 0; font-size: 16px; }
.card-body { padding: 16px; }
.grid { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stat-tile {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  display: grid;
  gap: 6px;
}
.stat-tile .label { color: var(--muted); font-size: 12px; font-weight: 600; }
.stat-tile .value { font-size: 24px; font-weight: 800; }
.stat-tile .meta { font-size: 12px; color: var(--muted); }

.table-wrap { overflow: auto; }
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table.data-table th, table.data-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}
table.data-table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
table.data-table tr:hover td { background: #fafafa; }

.badge {
  display: inline-flex; align-items: center; padding: 4px 10px;
  border-radius: 999px; font-size: 12px; font-weight: 700;
}
.badge-ok { background: #d1fae5; color: #065f46; }
.badge-warn { background: #fef3c7; color: #92400e; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-neutral { background: #f3f4f6; color: #374151; }

.empty-state {
  text-align: center; padding: 40px 16px; color: var(--muted);
}
.empty-state i { font-size: 28px; margin-bottom: 10px; color: #9ca3af; }
.empty-state h3 { margin: 0 0 6px; color: #374151; }
.empty-state p { margin: 0; }

.toolbar {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; align-items: center;
}
.toolbar .input { max-width: 280px; }
.switch {
  position: relative; width: 44px; height: 24px; display: inline-block;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch span {
  position: absolute; inset: 0; background: #d1d5db; border-radius: 999px; cursor: pointer;
  transition: .2s;
}
.switch span::before {
  content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: .2s;
}
.switch input:checked + span { background: var(--theme); }
.switch input:checked + span::before { transform: translateX(20px); }

.list-item {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.list-item:last-child { border-bottom: 0; }
.list-item h4 { margin: 0 0 4px; font-size: 15px; }
.list-item p { margin: 0; color: var(--muted); font-size: 13px; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.ad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.ad-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  position: relative;
}
.ad-card img,
.ad-card .protected-media,
.ad-card .protected-media-img { width: 100%; height: 140px; object-fit: contain; background: #f9fafb; }
.ad-card .protected-media { position: relative; }
.ad-card .row-actions { padding: 8px; }

.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.report-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease;
}
.report-card:hover { border-color: var(--theme); transform: translateY(-2px); }
.report-card h3 { margin: 0 0 6px; font-size: 15px; }
.report-card p { margin: 0; color: var(--muted); font-size: 13px; }
.report-card .cat { color: var(--theme); font-size: 12px; font-weight: 700; margin-bottom: 8px; }

/* Role pages */
.role-header {
  background: var(--theme);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.role-header h1 { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.2; }
.role-body { padding: 16px 20px 28px; }

.caller-layout { display: grid; gap: 16px; }
.now-serving {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.now-serving .token {
  font-size: 48px; font-weight: 800; color: var(--theme); letter-spacing: 1px;
}
.token-list { display: grid; gap: 8px; }
.token-row {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px;
}
.token-row strong { font-size: 18px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tab {
  border: 1px solid var(--border); background: #fff; border-radius: 999px;
  padding: 8px 14px; cursor: pointer; font-weight: 600; color: #374151;
}
.tab.active { background: var(--theme); color: #fff; border-color: var(--theme); }

/* Announcer / TV */
.announcer-page {
  min-height: 100vh;
  background: #0b1220;
  color: #fff;
  display: grid;
  grid-template-rows: auto 1fr;
}
.announcer-top {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 24px; background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.08);
}
.announcer-main {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  padding: 16px;
  min-height: 0;
}
.announcer-tokens, .announcer-ads {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  overflow: hidden;
  min-height: 0;
}
.announcer-tokens { padding: 12px; overflow: auto; }
.announcer-ads { display: grid; place-items: center; position: relative; background: #f9fafb; }
.announcer-ads img,
.announcer-ads .protected-media-img { width: 100%; height: 100%; object-fit: contain; }
.tv-token {
  display: grid;
  grid-template-columns: 1.2fr 1fr .8fr;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 22px;
  font-weight: 700;
}
.tv-token:first-child {
  background: var(--theme);
  border-radius: 14px;
  margin-bottom: 8px;
  font-size: 28px;
}

/* Printer */
.printer-layout {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}
.phone-row { display: grid; grid-template-columns: 140px 1fr; gap: 10px; }
.dept-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dept-chip {
  border: 1px solid var(--border); background: #fff; border-radius: 999px;
  padding: 10px 14px; cursor: pointer; font-weight: 600;
}
.dept-chip.active { background: var(--theme); color: #fff; border-color: var(--theme); }
.dept-assign-list {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  padding: 4px 0;
}
.dept-assign-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fafafa;
  cursor: pointer;
}
.dept-assign-row input { margin-top: 3px; flex-shrink: 0; }
.dept-assign-meta { display: grid; gap: 2px; min-width: 0; }
.dept-assign-meta strong {
  font-size: 13px;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dept-assign-meta span { font-size: 12px; color: #6b7280; }
.quick-dept-form {
  padding: 12px;
  border: 1px solid #cfe8da;
  background: #f0fdf4;
  border-radius: 12px;
}
.quick-dept-form .row-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.quick-dept-form .row-actions .btn { flex: 1; min-width: 120px; }
.add-dept-from-user-btn {
  border: 1px solid var(--theme);
  background: #f0fdf4;
  color: var(--theme);
}
.dept-empty-overlay {
  display: grid;
  gap: 6px;
  place-items: center;
  text-align: center;
  padding: 20px 12px;
  border: 1px dashed #e5e7eb;
  border-radius: 12px;
  background: #fafafa;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 600;
}
.dept-empty-overlay i { font-size: 20px; color: #d1d5db; }

/* Modal / toast / loading */
#modal-root, #loading-overlay, #toast-host { position: fixed; z-index: 1000; }
#modal-root { inset: 0; display: grid; place-items: center; }
#modal-root.hidden { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.45); }
.modal-dialog {
  position: relative;
  width: min(520px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.modal-wide { width: min(760px, calc(100vw - 24px)); }
.modal-header, .modal-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px;
}
.modal-header { border-bottom: 1px solid var(--border); }
.modal-footer {
  border-top: 1px solid var(--border);
  justify-content: flex-end;
}
.modal-header h3 { margin: 0; }
.modal-body { padding: 18px; display: grid; gap: 14px; }
.modal-message { margin: 0; white-space: pre-wrap; color: #374151; }

#loading-overlay {
  inset: 0; display: grid; place-items: center;
  background: rgba(15,23,42,.35);
}
#loading-overlay.hidden { display: none; }
.loading-box {
  background: #fff; border-radius: 16px; padding: 22px 28px;
  display: grid; gap: 12px; place-items: center; min-width: 180px;
  box-shadow: var(--shadow);
}
.spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--theme-soft); border-top-color: var(--theme);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

#toast-host {
  right: 16px; bottom: 16px; display: grid; gap: 8px; width: min(360px, calc(100vw - 32px));
}
.toast {
  background: #111827; color: #fff; padding: 12px 14px; border-radius: 12px;
  opacity: 0; transform: translateY(8px); transition: .2s ease; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: none; }
.toast-ok { background: #065f46; }
.toast-danger { background: #991b1b; }
.toast-warn { background: #92400e; }

.chart-wrap { position: relative; height: 280px; }
.color-swatch {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border);
}

.theme-color-picker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
}
.theme-color-swatch {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  flex-shrink: 0;
  cursor: pointer;
  padding: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.theme-color-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.theme-color-hex {
  font-size: 15px;
  font-weight: 800;
  color: #111827;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.02em;
}
.theme-color-action {
  font-size: 12px;
  color: #6b7280;
}
.theme-color-native {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 56px;
  height: 56px;
  opacity: 0;
  cursor: pointer;
  border: 0;
  padding: 0;
  margin: 0;
}
.inline-form { display: grid; gap: 14px; }
.muted { color: var(--muted); }
.section-title {
  margin: 18px 0 8px; font-size: 13px; font-weight: 800; color: var(--theme);
  text-transform: uppercase; letter-spacing: .04em;
}

/* Admin info banner (mobile AdminInfoView) */
.admin-info-banner {
  display: flex; align-items: center; gap: 14px;
  background: var(--theme-soft);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.admin-info-banner img {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: #fff;
}
.admin-info-banner .meta { color: #6b7280; font-size: 13px; }
.admin-info-banner .name { color: #111827; font-size: 15px; font-weight: 700; }

/* Dashboard tiles like mobile */
.dash-group { margin-bottom: 14px; }
.dash-group-title {
  font-size: 14px; font-weight: 800; color: #111827; margin: 0 0 6px;
}
.dash-group-line { height: 1px; background: #e5e7eb; margin-bottom: 10px; }
.dash-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.dash-tile {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 6px 8px;
  align-items: center;
  cursor: default;
}
.dash-tile.clickable { cursor: pointer; }
.dash-tile.clickable:hover { border-color: var(--theme); box-shadow: var(--shadow); }
.dash-tile-icon {
  width: 36px; height: 36px; border-radius: 8px; background: #f3f4f6;
  display: grid; place-items: center; grid-row: span 2;
}
.dash-tile-icon i { color: var(--theme); font-size: 15px; }
.dash-tile-count { font-size: 20px; font-weight: 800; line-height: 1.1; }
.dash-tile-title { font-size: 12px; color: #374151; grid-column: 2; }
.dash-tile-chevron { grid-row: span 2; color: #d1d5db; font-size: 12px; }
.chart-mini-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.chart-mini-tile {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}
.chart-mini-tile .count { font-size: 18px; font-weight: 800; }
.chart-mini-tile .label { font-size: 12px; color: #6b7280; margin-top: 2px; }
.chart-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.chart-card-head h2 { margin: 0 0 2px; font-size: 16px; }
.chart-card-head .date { font-size: 13px; font-weight: 700; color: #374151; }
.chart-card-head .sub { font-size: 12px; color: #6b7280; margin: 0; }

/* Admin list pages */
.admin-page { display: grid; gap: 12px; }
.admin-page-header h1 { margin: 0; font-size: 22px; }
.admin-page-header p { margin: 4px 0 0; color: #6b7280; font-size: 13px; }
.admin-page-header-actions {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.admin-page-header-actions > .btn {
  flex-shrink: 0;
  margin-top: 2px;
}
.filter-panel, .search-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  box-shadow: none;
}
.filter-panel-head, .search-panel-head {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  margin-bottom: 10px;
}
.filter-panel-head h3, .search-panel-head h3 {
  margin: 0; font-size: 15px; font-weight: 800; color: #111827;
}
.btn-clear {
  background: transparent; color: var(--theme); border: 1px solid #e5e7eb;
  border-radius: 8px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.filter-grid .field-label { color: #6b7280; font-size: 12px; }
.filter-divider { height: 1px; background: #f3f4f6; margin: 4px 0 12px; }
.search-input-wrap {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid #e5e7eb;
  background: #fafafa;
  border-radius: 12px;
  padding: 0 12px;
}
.search-input-wrap i { color: #9ca3af; }
.search-input-wrap .input {
  border: 0; background: transparent; box-shadow: none; padding-left: 0;
}
.search-input-wrap .input:focus { box-shadow: none; }
.total-count {
  text-align: right; color: #9ca3af; font-size: 12px; margin: 0 0 8px;
}
.admin-list { display: grid; gap: 10px; }
.admin-list-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: start;
}
.admin-avatar {
  width: 44px; height: 44px; border-radius: 22px;
  background: var(--theme-soft);
  color: var(--theme);
  display: grid; place-items: center;
  font-size: 18px;
}
.admin-list-card h4 { margin: 0 0 4px; font-size: 15px; color: #111827; }
.admin-list-card .meta-row {
  display: flex; align-items: center; gap: 6px; color: #6b7280; font-size: 13px; margin-bottom: 6px;
}
.admin-list-card .meta-row i { color: #9ca3af; font-size: 12px; }
.prefix-pill, .role-pill {
  display: inline-flex; align-items: center;
  background: var(--theme-soft); color: var(--theme);
  border-radius: 6px; padding: 3px 8px; font-size: 11px; font-weight: 700;
}
.prefix-row { display: flex; align-items: center; gap: 6px; color: #9ca3af; font-size: 13px; }
.admin-card-actions {
  display: grid; gap: 8px; justify-items: end; align-content: center;
}
.icon-action {
  width: 36px; height: 36px; border: 0; border-radius: 18px;
  background: var(--theme-soft); color: var(--theme); cursor: pointer;
  display: grid; place-items: center;
}
.active-row {
  display: flex; align-items: center; gap: 4px; color: #9ca3af; font-size: 11px;
}
.btn-block-lg {
  width: 100%; height: 52px; border-radius: 14px; font-size: 16px;
}

/* TV login admin */
.tv-login-page { display: grid; gap: 16px; }
.tv-user-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 14px;
  padding: 16px; display: grid; grid-template-columns: auto 1fr; gap: 14px;
  cursor: pointer; transition: .15s ease;
}
.tv-user-card.selected {
  border-color: var(--theme);
  background: var(--theme-soft);
  border-width: 2px;
}
.tv-selected-panel {
  background: #fff;
  border: 1.5px solid var(--theme);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  gap: 14px;
}
.tv-selected-panel .top {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.tv-selected-panel .label { font-size: 12px; color: #9ca3af; }
.tv-selected-panel .email { font-size: 16px; font-weight: 700; color: #111827; }
.ready-pill {
  background: var(--theme-soft); color: var(--theme);
  border-radius: 8px; padding: 6px 10px; font-size: 11px; font-weight: 700;
}
.session-code-input {
  display: grid; gap: 8px;
}

/* Profile mobile-like */
.profile-page { display: grid; gap: 12px; max-width: 720px; }
.profile-logo-card, .profile-card, .profile-danger-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 20px 16px;
}
.profile-logo-card { text-align: center; }
.profile-logo-ring {
  width: 128px; height: 128px; border-radius: 64px; border: 2px solid var(--theme);
  padding: 3px; margin: 0 auto 14px; overflow: hidden;
}
.profile-logo-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.profile-card h3, .profile-logo-card h3, .profile-danger-card h3 {
  margin: 0 0 12px; font-size: 15px; font-weight: 800; color: #111827;
}
.profile-danger-card { border-color: #fecaca; }
.profile-danger-card h3 { color: #b91c1c; }
.profile-field { display: grid; gap: 6px; margin-bottom: 14px; }
.profile-field label { font-size: 12px; font-weight: 700; color: #6b7280; }
.profile-field .hint, .profile-logo-card .hint, .profile-card .hint, .profile-danger-card .hint {
  font-size: 12px; color: #9ca3af; margin: 0 0 10px;
}
.profile-field .input, .profile-field .search-input-wrap, .profile-field > div .input {
  width: 100%;
}

/* Protected ad photos — block save / drag */
.protected-media {
  position: relative;
  display: block;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.protected-media-img {
  display: block;
  width: 100%;
  height: 100%;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.protected-media-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
}

/* Timezone picker */
.timezone-field {
  position: relative;
  display: flex;
  align-items: stretch;
}
.timezone-picker-input {
  flex: 1;
  cursor: pointer;
  padding-right: 40px;
}
.timezone-picker-btn {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40px;
  border: 0;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
}
.timezone-picker-list {
  max-height: min(420px, 50vh);
  overflow: auto;
  display: grid;
  gap: 4px;
  margin-top: 4px;
}
.timezone-picker-item {
  text-align: left;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
}
.timezone-picker-item:hover,
.timezone-picker-item.active {
  border-color: var(--theme);
  background: var(--theme-soft);
  color: var(--theme);
}
.timezone-picker-empty,
.timezone-picker-more {
  margin: 8px 0;
  text-align: center;
  font-size: 13px;
}
.profile-readonly {
  display: flex; align-items: center; gap: 10px;
  background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px;
  color: #6b7280;
}
.profile-divider { height: 1px; background: #f3f4f6; margin: 4px 0 14px; }

/* Report header with back on left */
.page-header.report-header { align-items: center; }
.page-header.report-header .left {
  display: flex; align-items: flex-start; gap: 12px;
}
.page-header.report-header .left .btn { flex-shrink: 0; margin-top: 2px; }

/* Logout dialog */
.logout-modal .modal-body { text-align: center; }
.logout-body { display: grid; gap: 14px; justify-items: center; }
.logout-body h3 { margin: 0; font-size: 22px; }
.logout-icon {
  width: 64px; height: 64px; border-radius: 32px; background: #fef2f2;
  color: #dc2626; display: grid; place-items: center; font-size: 26px;
}
.logout-account {
  width: 100%; text-align: left; background: #f9fafb; border: 1px solid #e5e7eb;
  border-radius: 12px; padding: 12px 14px; display: grid; gap: 4px;
}
.logout-account strong { color: #374151; font-size: 14px; }
.logout-account span { color: #9ca3af; font-size: 12px; }
.center { text-align: center; }
.modal-footer-split { display: grid !important; grid-template-columns: 1fr 1fr; }
.modal-footer-split .btn { width: 100%; }

@media (max-width: 960px) {
  .dash-tiles, .chart-mini-tiles, .filter-grid { grid-template-columns: 1fr; }
  .admin-list-card { grid-template-columns: auto 1fr; }
  .admin-card-actions { grid-column: 1 / -1; justify-items: start; grid-auto-flow: column; gap: 12px; }
}

@media (max-width: 960px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; inset: 0 auto 0 0; width: min(86vw, 300px);
    transform: translateX(-105%); transition: transform .2s ease; z-index: 50;
  }
  .sidebar.open { transform: none; }
  .sidebar-backdrop {
    position: fixed; inset: 0; background: rgba(15,23,42,.4); z-index: 40;
  }
  .topbar-mobile { display: flex; }
  .admin-page-header-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-page-header-actions > .btn {
    width: 100%;
    margin-top: 0;
  }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .announcer-main { grid-template-columns: 1fr; }
  .phone-row { grid-template-columns: 1fr; }
  .tv-token { grid-template-columns: 1fr; font-size: 18px; }
}

/* Token receipt — matches mobile TokenGeneratedDialog */
.token-receipt {
  width: 260px;
  margin: 0 auto;
  background: #fffdf5;
  border: 1px solid #d9d2c3;
  border-radius: 2px;
  padding: 18px 18px 24px;
  color: #111827;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  text-align: left;
}
.token-receipt-dialog { display: grid; gap: 14px; justify-items: center; }
.token-receipt-printer-bar {
  width: min(300px, 100%);
  display: flex; align-items: center; gap: 10px;
  background: #2b2b2b; color: #f3f4f6;
  border-radius: 14px 14px 0 0; padding: 14px 16px;
}
.token-receipt-printer-bar i {
  width: 36px; height: 36px; border-radius: 8px; background: #404040;
  display: grid; place-items: center; color: #e5e7eb;
}
.token-receipt-printer-bar strong { display: block; font-size: 13px; }
.token-receipt-printer-bar span { display: block; font-size: 11px; color: #9ca3af; }
.token-receipt-modal .modal-dialog { width: min(340px, calc(100vw - 24px)); }
.token-receipt-modal .modal-body { padding-top: 8px; }
.receipt-company {
  text-align: center; font-size: 16px; font-weight: 800; color: #111827;
}
.receipt-title {
  text-align: center; font-size: 14px; font-weight: 800; color: #111827; margin-top: 2px;
}
.receipt-divider {
  text-align: center; color: #9ca3af; font-size: 11px; margin: 6px 0 4px;
  letter-spacing: -1px;
}
.receipt-line { font-size: 13px; color: #374151; margin-top: 4px; }
.receipt-wait { margin-bottom: 6px; }
.receipt-token {
  text-align: center;
  font-size: 44px;
  font-weight: 800;
  color: var(--theme);
  margin: 10px 0;
  line-height: 1.1;
}
.receipt-qr-hint {
  text-align: center; font-size: 11px; color: #6b7280; margin-top: 4px;
}
.receipt-qr {
  display: grid; place-items: center; margin: 8px 0 4px;
}
.receipt-qr-img,
.receipt-qr canvas,
.receipt-qr img {
  width: 108px !important;
  height: 108px !important;
  display: block;
  background: #fffdf5;
}
.receipt-thanks {
  text-align: center; font-size: 14px; font-weight: 800; color: #111827; margin-top: 8px;
}
.token-result-card {
  background: transparent; border: 0; padding: 0; box-shadow: none;
  display: grid; gap: 12px; justify-items: center;
}
.token-result-card .token-receipt { margin-bottom: 4px; }

@media print {
  body > *:not(#print-frame):not(#print-host) {
    display: none !important;
  }
  #print-host {
    display: block !important;
    position: static !important;
    width: 72mm !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }
  .token-receipt.print-area,
  .print-area.token-receipt {
    width: 72mm !important;
    max-width: 72mm !important;
    margin: 0 !important;
    box-shadow: none;
    border: 0;
    page-break-inside: avoid;
    page-break-after: avoid;
  }
}
