/* The look is Label Hub's, copied from holiday-sickness public/css/style.css as it was on 9 Oct 2026, itself Shop Performance's
   (simmons-estate#124: "same style as the other apps"). Not edited here: this app's own rules are css/cm.css. */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700&family=Barlow:wght@400;500;600&display=swap');

:root {
  --cream: #F2EFE9;
  --red: #B8272C;
  --red-dark: #9B1F23;
  --dark: #1a1a1a;
  --border: #D8D4CC;
  --grey-text: #888;
  --surface: #fff;
  --hover: #FDF5F5;
  --ok: #2E7D32;
  --ok-bg: #E8F5E9;
  --warn: #8A5A00;
  --warn-bg: #FFF8E1;
}
:root[data-theme="dark"] {
  --cream: #1c1c1c;
  --dark: #EDEDED;
  --border: #444;
  --grey-text: #aaa;
  --surface: #262626;
  --hover: #2f2525;
  --ok-bg: #1f3322;
  --warn-bg: #3a3220;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--cream); font-family: 'Barlow', sans-serif; color: var(--dark); min-height: 100vh; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ── TOPBAR ── */
.topbar { background: var(--cream); border-bottom: 1px solid var(--border); padding: 0 32px; height: 52px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 20; }
#themeToggleBtn { position: fixed; top: 60px; right: 8px; z-index: 90; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); font-size: 14px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; box-shadow: 0 1px 4px rgba(0,0,0,0.15); }
#themeToggleBtn:hover { border-color: var(--red); }
.menu-btn { background: none; border: none; cursor: pointer; padding: 4px; display: flex; flex-direction: column; gap: 4px; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--dark); transition: all 0.2s; }
.menu-btn.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.wordmark { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 20px; letter-spacing: 0.06em; color: var(--dark); text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.wordmark em { color: var(--red); font-style: normal; }
.topbar-right { font-size: 12px; color: var(--grey-text); min-width: 30px; text-align: right; }

/* ── NAV DRAWER ── */
.nav-overlay { position: fixed; top: 52px; left: 0; right: 0; bottom: 0; z-index: 15; background: rgba(242,239,233,0.5); display: none; }
.nav-overlay.open { display: block; }
.nav-drawer { position: absolute; top: 0; left: 0; bottom: 0; width: 260px; background: #1a1a1a; transform: translateX(-100%); transition: transform 0.22s ease; display: flex; flex-direction: column; }
.nav-overlay.open .nav-drawer { transform: translateX(0); }
.nav-header { padding: 20px 20px 14px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.nav-header-label { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 4px; }
.nav-header-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 22px; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; }
.nav-header-title em { color: var(--red); font-style: normal; }
.nav-links { flex: 1; padding: 12px 0; overflow-y: auto; }
.nav-section-label { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.35); padding: 12px 20px 6px; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 11px 20px; cursor: pointer; border-left: 3px solid transparent; transition: background 0.1s; }
.nav-link:hover { background: rgba(255,255,255,0.06); }
.nav-link.active { background: rgba(184,39,44,0.15); border-left-color: var(--red); }
.nav-link-icon { width: 28px; height: 28px; border-radius: 6px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.nav-link.active .nav-link-icon { background: rgba(184,39,44,0.3); }
.nav-link-text { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: 0.04em; color: rgba(255,255,255,0.8); }
.nav-link.active .nav-link-text { color: #fff; }
.nav-link-sub { font-size: 11px; color: rgba(255,255,255,0.35); margin-top: 1px; }
.nav-divider { border: none; border-top: 1px solid rgba(255,255,255,0.08); margin: 8px 0; }
.nav-footer { padding: 14px 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 11px; color: rgba(255,255,255,0.3); }

/* ── PAGE LAYOUT ── */
.page { display: none; }
.page.active { display: block; }
.wrap { max-width: 1440px; margin: 0 auto; }
.page-header { padding: 20px 32px 14px; border-bottom: 1px solid var(--border); display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 34px; letter-spacing: 0.04em; color: var(--dark); text-transform: uppercase; line-height: 1.1; }
.page-subtitle { font-size: 14px; color: var(--grey-text); margin-top: 2px; }
.content { padding: 24px 32px; }
.section-head-divider { display: flex; align-items: center; gap: 12px; margin: 8px 0 12px; }
.section-head-divider::after { content: ''; flex: 1; border-top: 1px solid var(--border); }
.section-head { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey-text); white-space: nowrap; }
.back-row { display: flex; align-items: center; gap: 10px; padding: 12px 32px; border-bottom: 1px solid var(--border); cursor: pointer; }
.back-row:hover { background: var(--hover); }
.back-row-label { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 16px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red); }
.lede { font-size: 15px; color: var(--grey-text); max-width: 760px; line-height: 1.5; margin-bottom: 18px; }

/* ── TILES ── */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-bottom: 24px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: 5px; padding: 22px 22px; cursor: pointer; position: relative; transition: border-color 0.12s, box-shadow 0.12s, transform 0.12s; min-height: 140px; display: flex; flex-direction: column; gap: 8px; }
.tile:hover { border-color: var(--red); box-shadow: 0 4px 14px rgba(184,39,44,0.1); transform: translateY(-1px); }
.tile:active { transform: scale(0.98); }
.tile-icon { width: 46px; height: 46px; border-radius: 10px; background: #FBEAEB; display: flex; align-items: center; justify-content: center; font-size: 23px; margin-bottom: 2px; line-height: 1; }
.tile-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 20px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--dark); line-height: 1.2; }
.tile-desc { font-size: 14px; color: var(--grey-text); line-height: 1.4; }
.tile-arrow { position: absolute; bottom: 14px; right: 16px; color: var(--red); font-size: 22px; font-weight: 700; }
.tile-counts { display: flex; gap: 18px; margin-top: auto; }
.tile-count strong { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 28px; font-weight: 700; line-height: 1; }
.tile-count span { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey-text); }
.tile-count.open strong { color: var(--red); }

/* ── FORMS ── */
.field { margin-bottom: 12px; }
.field label { display: block; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--grey-text); margin-bottom: 4px; }
.field input, .field select, .field textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 3px; background: var(--surface); font-size: 16px; color: var(--dark); min-height: 40px; }
.field textarea { min-height: 110px; resize: vertical; line-height: 1.4; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--red); outline-offset: -1px; border-color: var(--red); }
.check { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 4px 16px 4px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--red); }
.check-row { display: flex; flex-wrap: wrap; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 18px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 5px; padding: 18px 20px; margin-bottom: 18px; }
.panel-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 18px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 12px; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--red); color: #fff; border: none; border-radius: 3px; padding: 11px 20px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 16px; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; min-height: 44px; }
.btn:hover { background: var(--red-dark); }
.btn:disabled { background: #ccc; color: #888; cursor: default; }
.btn-ghost { background: var(--surface); color: var(--dark); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--surface); border-color: var(--red); color: var(--red); }
.btn-sm { padding: 6px 12px; font-size: 13px; min-height: 34px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ── STATUS ── */
.status { border-radius: 3px; padding: 9px 11px; font-size: 14px; margin: 10px 0; border: 1px solid; display: none; line-height: 1.4; }
.status.visible { display: block; }
.st-ok { background: var(--ok-bg); border-color: #A5D6A7; color: var(--ok); }
.st-err { background: #FFEBEE; border-color: #FFCDD2; color: #B71C1C; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; background: var(--cream); color: var(--grey-text); border: 1px solid var(--border); }
.badge-ok { background: var(--ok-bg); color: var(--ok); border-color: #A5D6A7; }
.badge-off { background: var(--warn-bg); color: var(--warn); border-color: #FFE08A; }
.empty-state { text-align: center; padding: 40px 24px; color: var(--grey-text); font-size: 14px; }

/* ── TABLES ── */
.data-table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: 3px; background: var(--surface); }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.data-table th { position: sticky; top: 0; background: var(--cream); text-align: left; padding: 9px 12px; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey-text); border-bottom: 1px solid var(--border); white-space: nowrap; }
.data-table td { padding: 10px 12px; color: var(--dark); border-bottom: 1px solid var(--cream); vertical-align: top; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--hover); }
.data-table td.data-table-empty { color: var(--grey-text); text-align: center; padding: 16px 10px; }

/* ── ADMIN > LISTS ── */
.lists-layout { display: grid; grid-template-columns: 320px 1fr; gap: 18px; align-items: start; }
.list-picker { background: var(--surface); border: 1px solid var(--border); border-radius: 5px; overflow: hidden; }
.list-picker-group { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey-text); padding: 10px 14px 4px; background: var(--cream); }
.list-picker-item { display: flex; justify-content: space-between; gap: 8px; padding: 10px 14px; cursor: pointer; border-left: 3px solid transparent; font-size: 15px; border-top: 1px solid var(--cream); }
.list-picker-item:hover { background: var(--hover); }
.list-picker-item.active { border-left-color: var(--red); background: var(--hover); font-weight: 600; }
.list-picker-item .n { color: var(--grey-text); font-size: 13px; }

/* ── WIDESCREEN AND PHONE (this app's own) ── */
@media (min-width: 1700px) {
  .wrap { max-width: 1640px; }
}
@media (max-width: 900px) {
  .lists-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .topbar { padding: 0 14px; }
  .wordmark { font-size: 17px; }
  .page-header { padding: 16px 16px 12px; }
  .page-title { font-size: 26px; }
  .content { padding: 16px; }
  .back-row { padding: 12px 16px; }
  .tile-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { padding: 14px; min-height: 120px; }
  .tile-icon { width: 36px; height: 36px; font-size: 18px; }
  .tile-name { font-size: 16px; }
  .tile-desc { display: none; }
  .tile-arrow { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1; }
  /* Tables become one card per row: the header is hidden and each cell carries its own label. */
  .data-table.stack thead { display: none; }
  .data-table.stack, .data-table.stack tbody, .data-table.stack tr, .data-table.stack td { display: block; width: 100%; }
  .data-table.stack tr { border-bottom: 1px solid var(--border); padding: 8px 0; }
  .data-table.stack td { border: none; padding: 4px 12px; }
  .data-table.stack td[data-label]::before { content: attr(data-label); display: block; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey-text); }
}

/* ── CASES (simmons-estate#70) ── */
.page-header .btn { margin-bottom: 4px; }
.list-controls { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 8px 16px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; min-height: 40px; }
.tab:hover { border-color: var(--red); }
.tab.active { background: var(--dark); color: var(--cream); border-color: var(--dark); }
.tab-n { opacity: 0.6; margin-left: 4px; }
.search { flex: 1; max-width: 420px; min-width: 200px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); font-size: 16px; min-height: 40px; }
.search:focus { outline: 2px solid var(--red); outline-offset: -1px; }
.data-table.clickable tbody tr { cursor: pointer; }
.cell-summary { max-width: 520px; color: var(--grey-text); }
.badge-open { background: #E3F2FD; color: #1565C0; border-color: #90CAF9; }
.badge-late { background: #FFEBEE; color: #B71C1C; border-color: #FFCDD2; }
.req { color: var(--red); }
.hint { font-size: 14px; color: var(--grey-text); line-height: 1.5; margin-bottom: 10px; }
.muted { color: var(--grey-text); }
.field-wide { grid-column: 1 / -1; }
.panel-accent { border-top: 3px solid var(--red); }
.case-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.details { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 22px; }
.detail dt { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--grey-text); margin-bottom: 3px; }
.detail dd { font-size: 16px; line-height: 1.45; word-break: break-word; }
.detail-wide { grid-column: 1 / -1; }
.prose { white-space: pre-wrap; }
.status-card { border-left: 5px solid #1565C0; }
.status-card.is-late { border-left-color: #B71C1C; }
.status-card.is-complete { border-left-color: var(--ok); }
.status-big { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 28px; text-transform: uppercase; letter-spacing: 0.04em; }
.status-card.is-open .status-big { color: #1565C0; }
.status-card.is-late .status-big { color: #B71C1C; }
.status-card.is-complete .status-big { color: var(--ok); }
.status-line { font-size: 14px; color: var(--grey-text); margin: 2px 0 6px; }
.status-card .btn { margin-top: 8px; }
.hse-flag { background: #FFEBEE; color: #B71C1C; border: 1px solid #FFCDD2; border-radius: 3px; padding: 6px 10px; font-weight: 600; font-size: 14px; margin: 8px 0; }
.assignee { font-size: 18px; font-weight: 600; }
.timeline { list-style: none; }
.timeline li { padding: 8px 0; border-top: 1px solid var(--cream); font-size: 14px; line-height: 1.4; }
.timeline li:first-child { border-top: none; }
.timeline .when { display: block; font-size: 12px; color: var(--grey-text); }
/* On a narrow screen the two columns become one list: the status first, then the details and the response, then
   who it is assigned to and its history. */
@media (max-width: 1000px) {
  .case-layout { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .case-main, .case-side { display: contents; }
  .status-card { order: -1; }
  .assign-panel { order: 1; }
  .history-panel { order: 2; }
}
@media (max-width: 640px) {
  .page-header .btn { width: 100%; }
  .search { max-width: none; }
  .details { grid-template-columns: 1fr; }
}

/* ── REPORTS AND DASHBOARD PANELS (simmons-estate#73) ── */
.filters { padding-bottom: 6px; }
.quick-ranges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--dark); border-radius: 3px; padding: 10px 14px; }
.stat strong { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 30px; font-weight: 700; line-height: 1.1; }
.stat span { font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--grey-text); }
.stat-open { border-top-color: #1565C0; } .stat-ok { border-top-color: var(--ok); } .stat-late { border-top-color: #B71C1C; }
.stat-late strong { color: #B71C1C; }
.dash-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 8px; }
.dash-wide { grid-column: 1 / -1; }
.rank { width: 100%; border-collapse: collapse; font-size: 15px; }
.rank td { padding: 6px 4px; border-top: 1px solid var(--cream); vertical-align: middle; }
.rank tr:first-child td { border-top: none; }
.rank .rk { width: 40%; }
.rank .rb div { height: 10px; background: var(--red); border-radius: 2px; opacity: 0.75; }
.rank .rn { width: 60px; text-align: right; font-weight: 600; white-space: nowrap; }
.rank .late { color: #B71C1C; }
.rank.overdue tr { cursor: pointer; }
.rank.overdue tr:hover td { background: var(--hover); }
.month-chart { display: flex; align-items: flex-end; gap: 6px; height: 190px; padding-top: 6px; }
.mc-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; min-width: 0; }
.mc-n { font-size: 12px; font-weight: 600; }
.mc-bar { flex: 1; width: 70%; max-width: 46px; display: flex; flex-direction: column-reverse; justify-content: flex-start; }
.mc-acc { background: #E0A100; }
.mc-com { background: var(--red); }
.mc-label { font-size: 11px; color: var(--grey-text); margin-top: 4px; white-space: nowrap; }
.legend { font-size: 13px; color: var(--grey-text); margin-top: 8px; display: flex; gap: 10px; align-items: center; }
.key { display: inline-block; width: 12px; height: 12px; border-radius: 2px; }
.key-com { background: var(--red); } .key-acc { background: #E0A100; }
a.btn { text-decoration: none; }
@media (max-width: 900px) { .dash-panels { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .mc-label { font-size: 9px; } .month-chart { gap: 2px; } }

/* ── THE CASE LINK AND THE OUTBOX (simmons-estate#71) ── */
.link-pin { max-width: 420px; margin: 40px auto; padding: 0 16px; }
.pin-input { width: 100%; font-size: 34px; letter-spacing: 18px; text-align: center; padding: 10px; border: 1px solid var(--border); border-radius: 3px; background: var(--surface); font-family: 'Barlow Condensed', sans-serif; }
.pin-input:focus { outline: 2px solid var(--red); outline-offset: -1px; }
.pin-show { font-family: 'Barlow Condensed', sans-serif; font-size: 26px; letter-spacing: 6px; font-weight: 700; }
.link-box { font-size: 12px; word-break: break-all; color: var(--grey-text); margin: 6px 0 10px; }
.mail-list { list-style: none; margin-top: 8px; }
.mail-list li { font-size: 13px; color: var(--grey-text); padding: 3px 0; }
.mail-preview { white-space: pre-wrap; font-family: inherit; font-size: 14px; background: var(--cream); border: 1px solid var(--border); border-radius: 3px; padding: 12px; max-height: 480px; overflow: auto; }
.badge-sent { background: var(--ok-bg); color: var(--ok); border-color: #A5D6A7; }
.badge-notsent { background: var(--warn-bg); color: var(--warn); border-color: #FFE08A; }
.badge-failed { background: #FFEBEE; color: #B71C1C; border-color: #FFCDD2; }
.cell-action { width: 1%; white-space: nowrap; text-align: right; }
@media (max-width: 640px) { .cell-action { text-align: left; } }
.mc-bar > div { width: 100%; }
.status-card.is-compliment { border-left-color: #E0A100; }
.status-card.is-compliment .status-big { color: #9A6B00; }
.stat-compliment { border-top-color: #E0A100; }
/* A serious case (simmons-estate#80). */
.badge-serious { background: #B71C1C; color: #fff; border-color: #B71C1C; }
.serious-flag { background: #B71C1C; color: #fff; border-radius: 3px; padding: 6px 10px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 16px; letter-spacing: 0.06em; text-transform: uppercase; margin: 8px 0; display: inline-block; }
/* Documents and photos (simmons-estate#82). */
.file-list { list-style: none; }
.file-list li { padding: 6px 0; border-top: 1px solid var(--cream); font-size: 15px; word-break: break-word; }
.file-list li:first-child { border-top: none; }
.file-list a { color: var(--red); font-weight: 600; }
.field input[type="file"] { padding: 8px; min-height: 44px; }
/* Google reviews (simmons-estate#84). */
.badge-new { background: #E3F2FD; color: #1565C0; border-color: #90CAF9; font-weight: 700; }
.stars { color: #E0A100; letter-spacing: 1px; }
.stars .stars-off { color: var(--border); }

/* Mystery shop visits (simmons-estate#86) */
.form-group-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 18px; letter-spacing: 0.04em; text-transform: uppercase; margin: 22px 0 10px; padding-top: 14px; border-top: 1px solid var(--border); }
.form-group-title:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.score-big { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 44px; line-height: 1; }
.score-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
.score-table td { padding: 5px 0; border-top: 1px solid var(--border); }
.score-table td.rn { text-align: right; padding-left: 8px; white-space: nowrap; }
.visit-intro { margin-bottom: 18px; }

/* The dashboard on a widescreen (Rupert, 3 Oct 2026): sections side by side, each as wide as its tiles; the
   shortcuts to log something new; the Google logo; the reviews and visits charts. */
#page-dashboard .wrap { max-width: 1900px; }
.dash-sections { display: flex; flex-wrap: wrap; column-gap: 36px; align-items: flex-start; }
.dash-section { flex: 0 1 calc(var(--n) * 180px + (var(--n) - 1) * 16px); min-width: 0; }
.dash-section .tile-grid { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.quick-log { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.quick-log-label { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 13px; color: var(--grey-text); margin-right: 2px; }
.quick-log-group { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: 12px; }
.g-logo { width: 26px; height: 26px; display: block; }
.nav-link-icon .g-logo { width: 16px; height: 16px; }
.mc-rev { background: #4285F4; }
.mc-ms { background: #6B4E9B; }
.mc-avg { font-size: 11px; font-weight: 700; color: var(--text, inherit); margin-top: 3px; white-space: nowrap; }
.chart-sum { margin: -4px 0 10px; font-size: 14px; color: var(--grey-text); }
.chart-sum strong { color: var(--text, inherit); }
.dash-panels { grid-template-columns: 1fr; }
.dash-lists .panel:last-child, .dash-charts .panel { margin-bottom: 0; }
.dash-lists { display: flex; flex-direction: column; gap: 18px; }
.dash-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; grid-auto-rows: 1fr; }
.dash-charts .panel { display: flex; flex-direction: column; min-height: 280px; }
.dash-charts .month-chart { flex: 1; height: auto; min-height: 190px; }
@media (min-width: 1300px) { .dash-panels { grid-template-columns: 1fr 2fr; align-items: stretch; } }
@media (max-width: 900px) { .dash-charts { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .dash-section { flex-basis: 100%; }
  .dash-section .tile-grid { grid-template-columns: 1fr 1fr; }
  .quick-log-group { margin-left: 0; }
}

/* Neater dashboard (Rupert, 3 Oct 2026: "a bit clunky"): every tile the same height, the sections in two rows,
   shorter bars, charts as tall as their content. */
.dash-break { flex-basis: 100%; height: 0; }
.dash-section .tile-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 19px; }
.dash-section .tile-counts { gap: 14px; }
.dash-panels { align-items: start; }
.dash-charts { grid-auto-rows: auto; }
.dash-charts .panel { min-height: 0; }
.dash-charts .month-chart { flex: none; height: 150px; min-height: 0; }
.rank.overdue td { padding: 7px 4px; }
.rank.overdue .od-what { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 0; width: 62%; }
.rank.overdue .od-who { color: var(--grey-text); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 0; width: 28%; }
.dash-section .tile { padding: 20px 16px; min-height: 207px; }

/* A Google review's response, ready to copy onto Google (5 Oct 2026). */
.reply-text { background: var(--surface-2, #fff); border: 1px solid var(--border); border-radius: 4px; padding: 12px 14px; margin: 8px 0 12px; white-space: pre-wrap; }
