/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── BRAND FONT (General Sans, from A&W's Webflow site) ── */
@font-face {
  font-family: 'General Sans';
  src: url('https://cdn.prod.website-files.com/67b7bdf270be5cad08855922/67b7bdf370be5cad088559c4_GeneralSans-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('https://cdn.prod.website-files.com/67b7bdf270be5cad08855922/67b7bdf370be5cad088559c5_GeneralSans-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('https://cdn.prod.website-files.com/67b7bdf270be5cad08855922/67b7bdf370be5cad088559c6_GeneralSans-Semibold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* A&W brand palette (matches their public site) */
  --maroon:        #9d3030;       /* primary */
  --maroon-dark:   #7c2424;
  --maroon-light:  #b14545;
  --maroon-pale:   #f3dcdc;
  --maroon-soft:   #fbf3f3;

  --white:         #ffffff;
  --bg:            #ffffff;
  --bg-soft:       #f8f8f8;       /* neutral-200 */
  --bg-muted:      #f0eeee;

  --text:          #0a0a0a;        /* near-black, headings + primary */
  --text-strong:   #0a0a0a;
  --text-body:     #1a1a1a;        /* body text — was medium gray, now near-black */
  --text-muted:    #555555;        /* secondary info — darker than before */
  --text-faint:    #888888;        /* placeholder, faint labels */
  --text-on-maroon:#ffffff;

  --border:        #dfdfdf;        /* neutral-300 */
  --border-strong: #b9b9b9;        /* neutral-400 */

  --shadow-sm: 0 1px 3px rgba(46, 46, 46, 0.04);
  --shadow-md: 0 5px 18px rgba(46, 46, 46, 0.08);
  --shadow-lg: 0 14px 39px rgba(37, 37, 37, 0.1), 0 0 0 1px rgba(157, 48, 48, 0.04);

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;

  --sidebar-w: 240px;

  --font: 'General Sans', 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html, body { height: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hidden { display: none !important; }
.muted  { color: var(--text-muted); }

h1, h2, h3, h4, h5, h6 { color: var(--text); font-weight: 600; }

/* ──────────────────────────────────────
   BRAND — image logo
   ────────────────────────────────────── */
.brand-mark {
  width: 56px; height: 56px;
  background: var(--white);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }

.brand-mark.sm { width: 40px; height: 40px; }

.brand-stack { display: flex; flex-direction: column; }
.brand-name {
  font-size: 16px; font-weight: 600; color: var(--text);
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.brand-tag {
  font-size: 10px; font-weight: 500;
  color: var(--maroon);
  text-transform: uppercase; letter-spacing: 0.22em;
  margin-top: 4px;
}

/* ──────────────────────────────────────
   AUTH SCREEN
   ────────────────────────────────────── */
.auth-body {
  background:
    radial-gradient(ellipse at top, var(--maroon-pale) 0%, var(--bg) 60%) no-repeat,
    var(--bg);
  min-height: 100vh;
  overflow-y: auto;
}

.auth-shell {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 32px 16px;
}

.auth-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 420px;
  padding: 44px 40px 36px;
  box-shadow: var(--shadow-lg);
}

.auth-brand {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 32px;
}

.auth-title {
  font-size: 26px; font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 4px;
}
.auth-sub {
  font-size: 14px; color: var(--text-muted);
  margin-bottom: 28px;
}

.auth-form {
  display: flex; flex-direction: column; gap: 16px;
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field-label {
  font-size: 11px; font-weight: 600;
  color: var(--text);
  letter-spacing: 0.14em; text-transform: uppercase;
}

.auth-form input[type="text"],
.auth-form input[type="password"] {
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 15px;
  color: var(--text);
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-form input:focus {
  border-color: var(--maroon);
  box-shadow: 0 0 0 3px var(--maroon-pale);
}
.auth-form input::placeholder { color: var(--text-faint); }

.check {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text-body);
  cursor: pointer;
  margin-top: 2px;
  user-select: none;
}
.check input[type="checkbox"] {
  appearance: none;
  width: 18px; height: 18px;
  border: 1.5px solid var(--border-strong);
  border-radius: 4px;
  background: var(--white);
  cursor: pointer;
  position: relative;
  transition: background 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.check input[type="checkbox"]:checked {
  background: var(--maroon);
  border-color: var(--maroon);
}
.check input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.primary-btn {
  background: var(--maroon);
  border: 1px solid var(--maroon);
  color: var(--text-on-maroon);
  font-family: inherit;
  font-size: 15px; font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  padding: 15px 18px;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s, color 0.2s, transform 0.05s;
  box-shadow: 0 2px 6px rgba(157, 48, 48, 0.2);
}
.primary-btn:hover  {
  background: var(--white);
  color: var(--maroon);
}
.primary-btn:active { transform: translateY(1px); }
.primary-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.auth-error {
  margin-top: 14px;
  font-size: 13px;
  color: var(--maroon);
  min-height: 18px;
  text-align: center;
}

.auth-foot {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-faint);
}

/* ──────────────────────────────────────
   APP LAYOUT — sidebar + main
   ────────────────────────────────────── */
#app {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}

/* ── SIDEBAR ── */
#sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--white);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 24px 0;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sb-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 0 20px 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.sb-nav {
  flex: 1;
  display: flex; flex-direction: column;
  gap: 2px;
  padding: 0 12px;
  overflow-y: auto;
}

.sb-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.12s, color 0.12s;
}
.sb-link:hover {
  background: var(--bg-soft);
  color: var(--text);
}
.sb-link.active {
  background: var(--maroon-soft);
  color: var(--maroon);
  font-weight: 600;
  position: relative;
}
.sb-link.active::before {
  content: '';
  position: absolute;
  left: -12px; top: 8px; bottom: 8px;
  width: 3px;
  background: var(--maroon);
  border-radius: 0 3px 3px 0;
}
.sb-ico {
  flex-shrink: 0;
  opacity: 0.8;
}
.sb-link.active .sb-ico { opacity: 1; }

.sb-foot {
  padding: 16px 16px 0;
  border-top: 1px solid var(--border);
  margin-top: 16px;
}

.sb-user {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.sb-avatar {
  width: 36px; height: 36px;
  background: var(--maroon);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 13px;
  flex-shrink: 0;
}
.sb-user-info { display: flex; flex-direction: column; min-width: 0; }
.sb-user-name {
  font-size: 13px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sb-user-role {
  font-size: 10px; font-weight: 600;
  color: var(--maroon);
  letter-spacing: 0.16em;
  margin-top: 1px;
}

.ghost-btn {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.08em;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
}
.ghost-btn:hover {
  color: var(--maroon);
  border-color: var(--maroon);
  background: var(--maroon-soft);
}
.ghost-btn.full { width: 100%; }

/* ── MAIN ── */
#main {
  flex: 1;
  padding: 44px 48px;
  max-width: 1200px;
  width: 100%;
}

.page-head { margin-bottom: 32px; }
.page-title {
  font-size: 32px; font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.2;
}
.page-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 6px;
}

.placeholder-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.placeholder-mark {
  width: 80px; height: 80px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
  overflow: hidden;
}
.placeholder-mark img { width: 80%; height: 80%; object-fit: contain; }
.placeholder-card h2 {
  font-size: 22px; font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}
.placeholder-card p {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 560px; margin: 0 auto;
}

/* ──────────────────────────────────────
   CUSTOMERS PANEL
   ────────────────────────────────────── */
.row-between {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}

.search-wrap {
  flex: 0 0 320px;
  max-width: 100%;
}
.search-wrap input[type="search"] {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-wrap input[type="search"]:focus {
  border-color: var(--maroon);
  box-shadow: 0 0 0 3px var(--maroon-pale);
}

.card-pane {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-h {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--maroon);
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--maroon-soft);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.data-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  user-select: none;
}
.data-table th.sortable {
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
}
.data-table th.sortable:hover {
  background: var(--maroon-soft);
  color: var(--maroon);
}
.data-table th.sortable.active {
  color: var(--maroon);
}
.sort-arrow {
  display: inline-block;
  margin-left: 6px;
  font-size: 10px;
  color: var(--maroon);
}
.data-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text-body);
}
.data-table tbody tr {
  cursor: pointer;
  transition: background 0.1s;
}
.data-table tbody tr:hover { background: var(--maroon-soft); }
.data-table tbody tr:last-child td { border-bottom: none; }

.tbl-strong { color: var(--text); font-weight: 600; }
.tbl-muted  { color: var(--text-muted); font-size: 12px; margin-top: 2px; }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--maroon-soft);
  color: var(--maroon);
  font-size: 12px; font-weight: 600;
  padding: 3px 9px;
  border-radius: 100px;
}

.pad-lg { padding: 64px 24px; }
.center { text-align: center; }

/* ── PAGER ── */
.pager {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  margin: 12px 0 16px;
  flex-wrap: wrap;
}
.pager:empty { display: none; }
.pager-left, .pager-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pager-label { font-size: 12px; color: var(--text-muted); letter-spacing: 0.04em; }

.size-group {
  display: inline-flex;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.size-btn {
  background: var(--white);
  border: none;
  border-right: 1px solid var(--border);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px; font-weight: 500;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.size-btn:last-child { border-right: none; }
.size-btn:hover { background: var(--bg-soft); color: var(--text); }
.size-btn.active {
  background: var(--maroon);
  color: var(--white);
}

.junk-btn {
  background: var(--white);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12.5px; font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-left: 8px;
  transition: all 0.12s;
}
.junk-btn:hover {
  color: var(--maroon);
  border-color: var(--maroon);
}
.junk-btn.active {
  background: var(--maroon);
  border-color: var(--maroon);
  color: var(--white);
}

.junk-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--bg-muted);
  color: var(--text-muted);
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}
.junk-row { opacity: 0.55; }
.junk-row:hover { opacity: 1; }

.page-btn {
  background: var(--white);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12.5px; font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.12s;
}
.page-btn:hover:not([disabled]) {
  color: var(--maroon);
  border-color: var(--maroon);
  background: var(--maroon-soft);
}
.page-btn[disabled] { opacity: 0.4; cursor: not-allowed; }

.page-indicator {
  font-size: 13px;
  color: var(--text-body);
  padding: 0 6px;
  white-space: nowrap;
}
.page-indicator strong { color: var(--maroon); }

/* ──────────────────────────────────────
   CUSTOMER DETAIL
   ────────────────────────────────────── */
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--maroon);
  text-decoration: none;
  font-size: 13px; font-weight: 500;
  margin-bottom: 12px;
}
.back-link:hover { color: var(--maroon-dark); }
.back-link .sb-ico { opacity: 1; }

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.detail-grid .attachments-pane { grid-column: 1 / -1; }

.kv {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.kv:last-child { border-bottom: none; }
.kv-k {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-top: 2px;
}
.kv-v {
  color: var(--text);
  font-weight: 500;
}
.kv-v.history {
  font-weight: 400;
  white-space: pre-wrap;
  color: var(--text-body);
}

.source-line {
  margin-top: 20px;
  font-size: 12px;
  text-align: right;
}
.source-line code {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

/* ── ATTACHMENTS ── */
.att-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  padding: 20px;
}
.att-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 14px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.12s, box-shadow 0.12s, transform 0.05s;
}
.att-card:hover {
  border-color: var(--maroon);
  box-shadow: var(--shadow-md);
}
.att-card:active { transform: translateY(1px); }

.att-thumb {
  width: 48px; height: 48px;
  flex-shrink: 0;
  background: var(--maroon-soft);
  color: var(--maroon);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.att-meta { min-width: 0; flex: 1; }
.att-kind {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--maroon);
}
.att-filename {
  font-size: 13px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 3px;
}
.att-size {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ──────────────────────────────────────
   QUICKBOOKS PANEL
   ────────────────────────────────────── */
.qb-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.qb-help {
  padding: 20px;
}
.qb-help p {
  color: var(--text-body);
  margin-bottom: 14px;
  font-size: 14px;
}
.qb-help p:last-child { margin-bottom: 0; }
.qb-help code {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
}

.qb-actions {
  margin-top: 24px;
  display: flex; justify-content: flex-end;
}

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 100px;
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.badge.badge-prod {
  background: var(--maroon-soft);
  color: var(--maroon);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 20px;
}
.stat {
  text-align: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 12px;
}
.stat-n {
  font-size: 36px;
  font-weight: 600;
  color: var(--maroon);
  line-height: 1;
}
.stat-l {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .qb-grid { grid-template-columns: 1fr; }
}

/* ──────────────────────────────────────
   DISPATCH MODULE — VAR OVERRIDES + POSITIONING FIXES
   ────────────────────────────────────── */
/* The dispatch module was designed for mjbot's dark theme. Many of its rules use
   `var(--X, fallback)` — overriding the CSS custom properties below handles those.
   But several rules ALSO hardcode blue/orange/dark values directly (no var). Those
   are handled with the !important overrides further down. */
.dispatch-body,
#disp-flyout-host,
#dispatch-toast,
.job-flyout,
.dispatch-toast {
  --bg:           #ffffff;
  --bg2:          #fbf9f9;
  --bg3:          #f0eeee;
  --glass:        rgba(157, 48, 48, 0.06);
  --glass-border: #ebe5e5;
  --text:         #151515;
  --text-muted:   #7a7a7a;
  --blue:         #9d3030;
  --blue-light:   #b14545;
  --orange:       #9d3030;
}

/* Flyout must cover the viewport, not be trapped inside #main. */
#disp-flyout-host .job-flyout {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2100;
}
#disp-flyout-host .flyout-panel {
  background: #ffffff;
  color: var(--text);
}
#disp-flyout-host .flyout-header,
#disp-flyout-host .flyout-body,
#disp-flyout-host .flyout-section {
  color: var(--text);
}
#disp-flyout-host .flyout-label {
  color: #7a7a7a;
}
#disp-flyout-host .flyout-value {
  color: #151515;
}
#disp-flyout-host .flyout-notes,
#disp-flyout-host .flyout-select,
#disp-flyout-host .flyout-tag-add-select {
  background: #ffffff;
  color: #151515;
  border-color: #d8cfcf;
}
#disp-flyout-host .flyout-save-btn {
  background: var(--maroon);
  color: #ffffff;
}
#disp-flyout-host .flyout-save-btn:hover {
  background: var(--maroon-dark);
}
#disp-flyout-host .flyout-actions {
  display: flex; gap: 8px; align-items: center;
  margin-top: auto;
}
#disp-flyout-host .flyout-actions .map-btn {
  background: #ffffff;
  white-space: nowrap;
  flex: 0 0 auto;
}
/* Override the dispatch module's width:100% so the map button can sit next to it */
#disp-flyout-host .flyout-save-btn {
  width: auto;
  flex: 1 1 auto;
}
#disp-flyout-host .flyout-close-btn {
  color: #7a7a7a;
}

#dispatch-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #151515;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 10px;
  z-index: 2200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  font-size: 14px;
}

/* Filter pills + view toggle — make readable on white */
.dispatch-body .route-filter-btn {
  background: #ffffff;
  border: 1px solid #d8cfcf;
  color: #1a1a1a;
  font-weight: 600;
}
.dispatch-body .route-filter-btn:hover {
  border-color: #9d3030;
  color: #9d3030;
  background: #fbf3f3;
}
.dispatch-body .route-filter-btn.active {
  background: #9d3030;
  border-color: #9d3030;
  color: #ffffff;
}
.dispatch-body .view-toggle-btn {
  background: #ffffff;
  border: 1px solid #d8cfcf;
  color: #1a1a1a;
}
.dispatch-body .view-toggle-btn:hover {
  color: #9d3030;
  border-color: #9d3030;
}
.dispatch-body .view-toggle-btn.active {
  background: #9d3030;
  color: #ffffff;
  border-color: #9d3030;
}
.dispatch-body .optimize-route-btn {
  background: #9d3030;
  border-color: #9d3030;
  color: #ffffff;
  font-weight: 600;
}
.dispatch-body .optimize-route-btn:hover {
  background: #7c2424;
}

/* Job cards on white background */
.dispatch-body .job-card {
  background: #ffffff;
  border: 1px solid #ebe5e5;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.dispatch-body .job-card:hover {
  border-color: #9d3030;
  box-shadow: 0 4px 16px rgba(157, 48, 48, 0.08);
}
.dispatch-body .job-customer { color: #0a0a0a; font-weight: 600; }
.dispatch-body .job-type     { color: #0a0a0a; font-weight: 700; }
.dispatch-body .job-address  { color: #1a1a1a; }
.dispatch-body .job-meta     { color: #555555; }
.dispatch-body .job-tech     { color: #1a1a1a; font-weight: 600; }
.dispatch-body .job-time     { color: #555555; }
.dispatch-body .skill-pill,
.dispatch-body .tag-pill {
  background: #fbf3f3;
  color: #9d3030;
  border: 1px solid #f3dcdc;
}
.dispatch-body .copy-addr-btn {
  background: #ffffff;
  border: 1px solid #d8cfcf;
  color: #555555;
}
.dispatch-body .copy-addr-btn:hover {
  color: #9d3030;
  border-color: #9d3030;
}

/* Bigger map preview — show more "neighborhood" */
.dispatch-body .job-card .job-map {
  min-height: 160px;
  background: #ede8df;
}
.dispatch-body .job-card .job-map svg {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

/* KPI stat strip — filter buttons wrap onto a new line, left-aligned */
.dispatch-body .routing-stats {
  background: #ffffff;
  border: 1px solid #ebe5e5;
  flex-wrap: wrap;
}
.dispatch-body .routing-stat-actions {
  flex-basis: 100%;
  justify-content: flex-start;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.dispatch-body .routing-stat-val   { color: #0a0a0a; }
.dispatch-body .routing-stat-val.orange { color: #9d3030; }
.dispatch-body .routing-stat-val.green  { color: #2e7c4f; }
.dispatch-body .routing-stat-val.red    { color: #a04040; }
.dispatch-body .routing-stat-label { color: #555555; }

/* Status badges in jobs */
.dispatch-body .job-badge.scheduled  { background: #eef0f6; color: #4a5380; }
.dispatch-body .job-badge.en-route   { background: #fff1e0; color: #b85c20; }
.dispatch-body .job-badge.completed  { background: #e6efe6; color: #4a7a4a; }
.dispatch-body .job-badge.on-hold    { background: #f0e6e6; color: #7a5050; }
.dispatch-body .job-badge.urgent     { background: #f7e6e6; color: #a04040; }

/* Board/timeline view colors */
.dispatch-body .tech-board { background: #ffffff; }
.dispatch-body .tech-board-header,
.dispatch-body .tech-row { background: #ffffff; border-color: #ebe5e5; }
.dispatch-body .tech-info-col,
.dispatch-body .tech-info { color: #0a0a0a; }
.dispatch-body .tech-name { color: #0a0a0a; font-weight: 700; }
.dispatch-body .tech-ruler-tick { color: #555555; }
.dispatch-body .tech-cap-bar { background: #ebe5e5; }
.dispatch-body .tech-cap-bar-fill { background: #9d3030; }
.dispatch-body .tech-cap-label { color: #555555; }
.dispatch-body .job-block.status-scheduled { background: #4a5380; color: #ffffff; }
.dispatch-body .job-block.status-en-route  { background: #b85c20; color: #ffffff; }
.dispatch-body .job-block.status-completed { background: #4a7a4a; color: #ffffff; }
.dispatch-body .job-block.status-urgent    { background: #a04040; color: #ffffff; }
.dispatch-body .job-block.status-on-hold   { background: #7a5050; color: #ffffff; }
.dispatch-body .event-block { background: #888; color: #ffffff; }

/* Hardcoded blue/orange colors in dispatch.css that don't go through vars — force-override */
.dispatch-body .view-toggle-btn.active {
  background: #9d3030 !important;
  color: #ffffff !important;
}
.dispatch-body .optimize-route-btn {
  background: linear-gradient(120deg, #9d3030, #b14545) !important;
  box-shadow: 0 4px 18px rgba(157, 48, 48, 0.25) !important;
}
.dispatch-body .optimize-route-btn:hover {
  box-shadow: 0 6px 24px rgba(157, 48, 48, 0.4) !important;
}
.dispatch-body .route-filter-btn.active {
  background: #9d3030 !important;
  border-color: #9d3030 !important;
  color: #ffffff !important;
}
.dispatch-body .routing-stat-val,
.dispatch-body .routing-stat-val.orange {
  color: #0a0a0a !important;
}
.dispatch-body .routing-stat-val.green { color: #2e7c4f !important; }
.dispatch-body .routing-stat-val.red   { color: #a04040 !important; }
.dispatch-body .routing-stat-label     { color: #555555 !important; }

/* Unscheduled KPI tile — red background, black text, demands attention */
.dispatch-body .unscheduled-stat {
  background: #f4c8c8 !important;
  border: 1px solid #d88a8a;
  border-radius: 10px;
  padding: 10px 18px !important;
  margin-right: 8px;
}
.dispatch-body .unscheduled-stat .routing-stat-val,
.dispatch-body .unscheduled-stat .routing-stat-label {
  color: #0a0a0a !important;
}
.dispatch-body .unscheduled-stat .routing-stat-label {
  font-weight: 700;
}

/* Unscheduled status badge in jobs list */
.job-status-unscheduled {
  background: #f4c8c8 !important;
  color: #0a0a0a !important;
  font-weight: 700;
}

#disp-flyout-host .flyout-save-btn {
  background: linear-gradient(120deg, #9d3030, #b14545) !important;
  color: #ffffff !important;
}
#disp-flyout-host .flyout-save-btn:hover { filter: brightness(1.08); }

#disp-flyout-host .flyout-pills .skill-pill,
#disp-flyout-host .flyout-pills .tag-pill,
#disp-flyout-host .flyout-tag-pill {
  background: #fbf3f3 !important;
  color: #9d3030 !important;
  border: 1px solid #f3dcdc !important;
}

/* Modal heights — cap at 90vh with scroll on the body */
.sched-panel {
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
.sched-header { flex-shrink: 0; }
.sched-body   { overflow-y: auto; flex: 1 1 auto; }
.sched-footer { flex-shrink: 0; }

/* ──────────────────────────────────────
   DISPATCH PANEL + SCHEDULE MODAL
   ────────────────────────────────────── */
.dispatch-actions { display: flex; gap: 8px; }
.primary-btn.small {
  padding: 10px 16px;
  font-size: 13px;
}

/* Users & Technicians panel */
.up-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.up-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 16px;
  cursor: pointer;
  transition: color 0.12s, border-color 0.12s;
  margin-bottom: -1px;
}
.up-tab:hover { color: var(--text); }
.up-tab.active {
  color: var(--maroon);
  border-bottom-color: var(--maroon);
  font-weight: 600;
}
.color-swatch {
  display: inline-block;
  width: 16px; height: 16px;
  border-radius: 4px;
  border: 1px solid var(--border);
  vertical-align: middle;
  margin-right: 4px;
}

/* Skill picker chips */
.skill-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 0;
}
.skill-chip {
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  color: var(--text-body);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.12s;
}
.skill-chip:hover {
  border-color: var(--maroon);
  color: var(--maroon);
}
.skill-chip.active {
  background: var(--maroon);
  border-color: var(--maroon);
  color: #ffffff;
}

/* Real map embeds — dispatch card + schedule modal */
.dispatch-body .job-card .job-map {
  position: relative;
  min-height: 160px;
  overflow: hidden;
}
.dispatch-body .job-card .job-map-iframe {
  display: block;
  width: 100%;
  height: 160px;
  border: 0;
  background: #ede8df;
}
.dispatch-body .job-card .job-map-addr {
  z-index: 2;
}
.dispatch-body .job-card .job-map-attrib {
  position: absolute;
  bottom: 2px; right: 6px;
  font-size: 9px;
  color: rgba(0,0,0,0.55);
  background: rgba(255,255,255,0.65);
  padding: 0 4px;
  border-radius: 3px;
  pointer-events: none;
  z-index: 2;
}

.sched-map-wrap {
  margin-top: 12px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  background: #ede8df;
}
.sched-map-loading,
.sched-map-fallback {
  padding: 32px 12px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
.sched-map-iframe {
  display: block;
  width: 100%;
  height: 220px;
  border: 0;
}
.sched-map-attrib {
  position: absolute;
  bottom: 2px; right: 6px;
  font-size: 10px;
  color: rgba(0,0,0,0.6);
  background: rgba(255,255,255,0.7);
  padding: 0 5px;
  border-radius: 3px;
}

/* Attachments inside modal/flyout — compact card style */
.sched-att-section { margin-top: 8px; }
.flyout-attachments,
.sched-att-section #sched-attachments {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  margin-top: 6px;
}
.att-card.sm {
  display: flex; align-items: center; gap: 10px;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 10px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.att-card.sm:hover {
  border-color: var(--maroon);
  box-shadow: 0 2px 8px rgba(157, 48, 48, 0.08);
}
.att-card.sm .att-thumb.sm {
  width: 32px; height: 32px;
  background: var(--maroon-soft);
  color: var(--maroon);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.att-card.sm .att-meta { flex: 1; min-width: 0; }
.att-card.sm .att-kind {
  font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--maroon);
}
.att-card.sm .att-filename {
  font-size: 12px; font-weight: 500; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 1px;
}
#disp-flyout-host .flyout-attachments { padding-top: 4px; }
#disp-flyout-host .att-card.sm {
  background: #ffffff;
  border-color: #d8cfcf;
}
#disp-flyout-host .att-card.sm .att-filename { color: #0a0a0a; }

/* Tech availability box */
.tech-avail {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin-top: -4px;
}
.avail-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.avail-warn {
  color: #a04040;
  font-weight: 600;
}
.avail-slot {
  font-size: 12px;
  color: var(--text-body);
  padding: 4px 8px;
  border-radius: 4px;
  margin-top: 3px;
}
.avail-slot.conflict {
  background: #f7e6e6;
  color: #a04040;
  font-weight: 600;
}
.avail-empty {
  font-size: 12px;
  color: #2e7c4f;
  padding: 4px 0;
}

/* Customers header — add button + search */
.cust-header-actions {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}

/* Attachments inside customer edit/create dialog */
.c-att-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.c-att-row {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #ffffff;
}
.c-att-open {
  flex: 1; display: flex; align-items: center; gap: 10px;
  background: transparent; border: none;
  padding: 10px 12px;
  font-family: inherit; cursor: pointer;
  text-align: left;
  color: var(--text);
  border-radius: var(--radius);
  min-width: 0;
}
.c-att-open:hover { background: var(--maroon-soft); color: var(--maroon); }
.c-att-open .c-att-kind {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--maroon);
  flex-shrink: 0;
}
.c-att-open .c-att-filename {
  font-size: 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0; flex: 1;
}
.c-att-del {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px; line-height: 1;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  margin-right: 6px;
}
.c-att-del:hover { background: #f7e6e6; color: #a04040; }

/* File picker / queue */
.c-upload {
  background: var(--bg-soft);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.c-upload-pick {
  display: inline-flex;
  cursor: pointer;
}
.c-upload-pick input[type="file"] { display: none; }
.c-upload-pick .ghost-btn { display: inline-block; }
.c-upload-kind {
  width: auto !important;
  align-self: flex-start;
}
.c-files-list:empty { display: none; }
.c-files-h {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 4px;
}
.c-file-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 8px 4px 12px;
  font-size: 12px;
  margin-right: 6px; margin-bottom: 4px;
}
.c-file-remove {
  background: transparent; border: none;
  color: var(--text-muted);
  font-size: 16px; line-height: 1;
  width: 20px; height: 20px;
  border-radius: 50%;
  cursor: pointer;
}
.c-file-remove:hover { background: #f7e6e6; color: #a04040; }

/* Customer view/edit dialog */
.cust-section-h {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--maroon);
  padding: 12px 0 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.cust-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.sched-sel-row {
  display: flex; align-items: flex-start; gap: 12px;
  justify-content: space-between;
}
.sched-sel-row > div:first-child { flex: 1; min-width: 0; }

/* Open Map button */
.map-btn {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--maroon);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.12s;
}
.map-btn:hover {
  background: var(--maroon-soft);
  border-color: var(--maroon);
}

.jobs-filters {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.jobs-filters input,
.jobs-filters select {
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 9px 12px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.jobs-filters input { flex: 1; min-width: 240px; }
.jobs-filters select { min-width: 160px; }
.jobs-filters input:focus,
.jobs-filters select:focus {
  border-color: var(--maroon);
  box-shadow: 0 0 0 3px var(--maroon-pale);
}

.job-status, .job-badge-type {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 100px;
}
.job-status-scheduled  { background: #eef0f6; color: #4a5380; }
.job-status-en_route   { background: #fff1e0; color: #b85c20; }
.job-status-in_progress{ background: #e6f4ec; color: #2e7c4f; }
.job-status-complete   { background: #e6efe6; color: #4a7a4a; }
.job-status-cancelled  { background: #f0e6e6; color: #7a5050; }
.job-status-no_show    { background: #f7e6e6; color: #a04040; }

.job-badge-type {
  background: var(--maroon-soft);
  color: var(--maroon);
}

.sched-modal {
  position: fixed; inset: 0; z-index: 1900;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
}
.sched-backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 15, 15, 0.55);
}
.sched-panel {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%; max-width: 600px;
  display: flex; flex-direction: column;
}
.sched-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.sched-header h3 { font-size: 18px; font-weight: 600; }
.sched-close {
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  width: 36px; height: 36px;
  border-radius: 50%;
  transition: background 0.12s, color 0.12s;
}
.sched-close:hover { background: var(--bg-soft); color: var(--text); }
.sched-body {
  padding: 20px 24px;
  display: flex; flex-direction: column; gap: 16px;
}
.sched-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.sched-body input[type="search"],
.sched-body input[type="text"],
.sched-body input[type="date"],
.sched-body input[type="time"],
.sched-body select,
.sched-body textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.sched-body input:focus,
.sched-body select:focus,
.sched-body textarea:focus {
  border-color: var(--maroon);
  box-shadow: 0 0 0 3px var(--maroon-pale);
}
.sched-results {
  margin-top: 4px;
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  max-height: 220px;
  overflow-y: auto;
  box-shadow: var(--shadow-md);
}
.sched-results:empty { display: none; }
.sched-result {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}
.sched-result:hover { background: var(--maroon-soft); }
.sched-result:last-child { border-bottom: none; }
.sched-result-name { font-weight: 600; color: var(--text); }
.sched-result-addr { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.sched-selected {
  margin-top: 8px;
  background: var(--maroon-soft);
  border: 1px solid var(--maroon-pale);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.sched-sel-name { font-weight: 600; color: var(--maroon-dark); }
.sched-sel-detail { font-size: 12.5px; color: var(--text-body); margin-top: 4px; }

.sched-footer {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

@media (max-width: 600px) {
  .sched-row { grid-template-columns: 1fr; }
}

/* ──────────────────────────────────────
   LIGHTBOX
   ────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(15, 15, 15, 0.88);
  z-index: 2000;
  display: flex; flex-direction: column;
  padding: 24px;
}
.lightbox.hidden { display: none; }

.lb-toolbar {
  display: flex; align-items: center; gap: 14px;
  padding: 4px 8px 14px;
  color: var(--white);
}
.lb-title {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lb-action, .lb-close {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  font-family: inherit;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
}
.lb-action { font-size: 16px; }
.lb-action:hover, .lb-close:hover {
  background: var(--maroon);
  border-color: var(--maroon);
  color: var(--white);
}
.lb-close:active, .lb-action:active { transform: translateY(1px); }

.lb-stage {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.lb-stage iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.lb-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

/* ──────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────── */
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  #app { flex-direction: column; }
  #sidebar {
    width: 100%;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
  }
  .sb-nav { flex-direction: row; flex-wrap: wrap; }
  .sb-foot { border-top: 1px solid var(--border); }
  #main { padding: 24px 20px; }
  .auth-card { padding: 32px 24px; }
  .data-table th:nth-child(3),
  .data-table td:nth-child(3) { display: none; }
  .row-between { flex-direction: column; align-items: stretch; }
  .search-wrap { flex: 1; }
}
