/* ===== CSS VARIABLES ===== */
:root {
  --gold: #B8860B;
  --gold-mid: #E8B84B;
  --gold-light: #FEF6DC;
  --walnut: #7D5730;
  --walnut-d: #5e3f22;
  --walnut-l: #a07548;
  --walnut-tint: #f0e8dc;
  --sage: #6B7C5C;
  --cream: #F5F0E8;
  --cream-d: #e8e0d0;
  --charcoal: #2C2C2C;
  --border: #ddd5c5;
  --white: #ffffff;
  --danger: #c0392b;
  --danger-l: #f8d7da;
  --success: #2e7d32;
  --terra: #C4553A;
  --terra-d: #a8412a;
  --terra-tint: #fdecea;
  --header-h: 78px;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(44,44,44,.09);
  --shadow-md: 0 4px 16px rgba(44,44,44,.14);
  --transition: 0.18s ease;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.5;
  min-height: 100vh;
  padding-top: var(--header-h);
}

img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: 16px; }

/* ===== TYPOGRAPHY ===== */
h1 { font-size: 1.5rem; font-weight: 700; }
h2 { font-size: 1.15rem; font-weight: 600; }
h3 { font-size: 1rem; font-weight: 600; }

.dancing { font-family: 'Dancing Script', cursive; font-weight: 600; }

/* ===== HEADER ===== */
.app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 100;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
}

.header-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.header-strap-img {
  height: 47px;
  width: auto;
  object-fit: contain;
  flex-shrink: 1;
  min-width: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.nav-btn {
  position: relative;
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  padding: 10px;
  border-radius: 8px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}

.nav-btn:hover {
  background: rgba(255,255,255,.15);
  color: var(--white);
}
.nav-btn.active {
  background: rgba(255,255,255,.25);
  color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.3);
}

.nav-badge {
  position: absolute;
  top: 4px; right: 4px;
  background: #e74c3c;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  pointer-events: none;
}

/* ===== MAIN & PAGES ===== */
.app-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px 120px;
}

.page { display: none; }
.page.active { display: block; }

.page-header {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.page-title {
  color: var(--walnut);
  font-size: 1.6rem;
  margin-bottom: 4px;
}

/* Numbered step titles — full-width green pill */
.page-title:has(.page-num) {
  display: flex;
  align-items: center;
  background: var(--sage);
  color: white;
  border-radius: 10px;
  padding: 8px 18px 8px 10px;
  margin-bottom: 12px;
}

.page-sub {
  color: #666;
  font-size: 0.95rem;
}

#page-completion .page-header {
  padding-top: 6px;
  margin-bottom: 14px;
}
.completion-intro-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}
.completion-intro-text {
  color: var(--walnut);
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.card-title {
  color: var(--walnut);
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-grid-cust-name {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 8px;
  align-items: start;
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.bulk-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.bulk-counter {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: var(--walnut);
  padding: 4px 13px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ===== JOBS ADDED (Your Price List) CARD ===== */
.jobs-added-card {
  border: 2px solid var(--walnut);
  background: linear-gradient(160deg, #fff 0%, var(--walnut-tint) 100%);
  margin-top: 8px;
}
.jobs-added-card .card-header-row {
  padding-bottom: 14px;
  border-bottom: 1.5px solid var(--border);
  margin-bottom: 14px;
}
.jobs-added-card .card-title {
  font-size: 1.15rem;
}

.card-desc {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #555;
  margin-bottom: 5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="password"],
.form-group textarea,
.form-group select,
input[type="text"].search-input,
input[type="text"].sig-text-input {
  width: 100%;
  padding: 11px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
  background: var(--white);
  color: var(--charcoal);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
input[type="text"].search-input:focus,
input[type="text"].sig-text-input:focus {
  outline: none;
  border-color: var(--walnut);
  box-shadow: 0 0 0 3px rgba(125,87,48,.12);
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(192,57,43,.1);
}
.field-error {
  display: block;
  color: var(--danger);
  font-size: 0.78rem;
  margin-top: 4px;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237D5730' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 100px 80px;
  gap: 12px;
  align-items: end;
}

.fg-grow { grid-column: span 1; }

.required { color: var(--danger); }
.hint { color: #999; font-weight: 400; font-size: 0.85em; }

.ref-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--walnut);
  background: none;
  color: var(--walnut);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  vertical-align: middle;
  margin-left: 4px;
  font-family: inherit;
  line-height: 1;
  padding: 0;
}
.ref-info-btn:hover { background: var(--walnut-tint); }

.field-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--walnut);
  background: none;
  color: var(--walnut);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  vertical-align: middle;
  margin-left: 4px;
  font-family: inherit;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
}
.field-info-btn:hover { background: var(--walnut-tint); }

.ref-info-popup {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 600;
  background: rgba(44,44,44,.45);
  padding: 20px;
}
.ref-info-popup-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  max-width: 340px;
  width: 100%;
  box-shadow: var(--shadow-md);
}
.ref-info-popup-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--walnut);
  margin-bottom: 10px;
}
.ref-info-popup-card p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--charcoal);
  margin-bottom: 8px;
}
.ref-info-popup-card .ref-example {
  background: var(--walnut-tint);
  border-left: 3px solid var(--walnut);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--walnut);
  margin: 10px 0;
}

@media (max-width: 480px) {
  .form-grid-2 { grid-template-columns: 1fr; }
  .form-grid-3 { grid-template-columns: 1fr 1fr; }
  .form-grid-3 .fg-grow { grid-column: 1 / -1; }
}

/* ===== SHOW MORE TOGGLE ===== */
.show-more-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f0ebe3;
  border: 1px solid #d9d0c4;
  border-radius: 999px;
  padding: 4px 12px;
  margin: 6px 0 2px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 0.15s, border-color 0.15s;
}
.show-more-link:hover {
  background: #e8e0d4;
  border-color: #c5bbad;
}
#aboutYouExtra { margin-top: 10px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
  min-height: 44px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--walnut);
  color: var(--white);
  border-color: var(--walnut);
}
.btn-primary:hover { background: var(--walnut-d); border-color: var(--walnut-d); }
.btn-primary:active { transform: scale(0.98); }

.btn-outline {
  background: transparent;
  color: var(--sage);
  border-color: var(--sage);
}
.btn-outline:hover { background: rgba(107,124,92,.1); }

.btn-danger {
  background: var(--danger);
  color: var(--white);
  border-color: var(--danger);
}
.btn-danger:hover { background: #a93226; }

.btn-danger-outline {
  background: transparent;
  color: var(--danger);
  border-color: var(--danger);
}
.btn-danger-outline:hover { background: var(--danger-l); }

.btn-success {
  background: var(--success);
  color: var(--white);
  border-color: var(--success);
}
.btn-success:hover { background: #1e5c23; border-color: #1e5c23; }
.btn-success:active { transform: scale(0.98); }

.btn-sm {
  padding: 7px 14px;
  font-size: 0.85rem;
  min-height: 36px;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 1rem;
  min-height: 52px;
}

.btn-full { width: 100%; }

.btn-next { background: var(--sage); color: var(--white); }
.w-100 { width: 100%; }

/* ===== PAGE FOOTER ===== */
.page-footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  gap: 10px;
  z-index: 90;
  box-shadow: 0 -2px 8px rgba(44,44,44,.08);
}

.page-footer .btn { flex: 1; }

.quote-footer { flex-wrap: wrap; gap: 8px; }
.quote-footer .btn { flex: 1 1 calc(50% - 4px); min-width: 120px; }

@media (min-width: 540px) {
  .quote-footer { flex-wrap: nowrap; }
  .quote-footer .btn { flex: 1 1 auto; }
}

@media (min-width: 720px) {
  .page-footer { max-width: 720px; left: 50%; transform: translateX(-50%); border-radius: var(--radius) var(--radius) 0 0; }
}

/* ===== ONBOARDING MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44,44,44,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 16px;
  backdrop-filter: blur(3px);
}
.modal-overlay.modal-front {
  z-index: 500;
}

.modal-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-card-sm { max-width: 360px; }

.onboarding-card {
  padding: 32px 24px;
  text-align: center;
}

.ob-logo-img {
  max-height: 56px;
  margin: 0 auto 16px;
  object-fit: contain;
}

.ob-logo-text {
  font-family: 'Dancing Script', cursive;
  font-weight: 600;
  font-size: 1.8rem;
  color: var(--walnut);
  display: block;
  margin-bottom: 16px;
}

.onboarding-title {
  font-size: 1.4rem;
  color: var(--walnut);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.onboarding-title-logo {
  height: 44px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

.onboarding-sub {
  color: #666;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.onboarding-steps, .ob-steps {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 14px;
  background: var(--walnut-tint);
  border-radius: 10px;
  padding: 16px;
}

.ob-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ob-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.ob-step-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ob-step-text strong { font-size: 0.95rem; color: var(--charcoal); }
.ob-step-text span { font-size: 0.875rem; color: #666; }

.ob-referral {
  margin-bottom: 14px;
  text-align: left;
}

.ob-referral-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.ob-referral-select {
  width: 100%;
  padding: 11px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--white);
  color: var(--charcoal);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237D5730' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.ob-referral-select:focus {
  outline: none;
  border-color: var(--walnut);
  box-shadow: 0 0 0 3px rgba(125,87,48,.12);
}

.ob-referral-select.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(192,57,43,.1);
}

.ob-referral-error {
  color: var(--danger);
  font-size: 0.8rem;
  margin-top: 6px;
}

.ob-start-btn { margin-top: 0; }

/* ── Onboarding screen + card ──────────────────────────────── */
.ob-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  padding: 16px;
  box-sizing: border-box;
}

.ob-card {
  position: relative;
  width: 100%;
  max-width: 390px;
  height: min(844px, calc(100vh - 32px));
  background: #F5F0E8;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  padding: 28px 20px 28px;
  overflow: hidden;
}

@media (max-width: 420px) {
  .ob-screen {
    align-items: flex-start;
    padding: 10px 4px 4px;
  }
  .ob-card {
    border-radius: 24px;
    height: calc(100dvh - 14px);
    max-width: 390px;
    gap: 8px;
    padding: 18px 20px 16px;
  }
  .ob-wordmark {
    margin-bottom: 8px;
  }
  .ob-logo-pair {
    margin-bottom: 8px;
  }
  .ob-logo-pair .ob-logo-img {
    height: 32px;
  }
  .ob-logo-pair .ob-strap-img {
    height: 34px;
  }
  .ob-intro {
    font-size: 0.86rem;
    line-height: 1.45;
  }
  .ob-steps {
    gap: 10px;
    margin-bottom: 10px;
    padding: 14px;
  }
  .ob-step {
    gap: 10px;
  }
  .ob-step-text strong {
    font-size: 0.92rem;
  }
  .ob-step-text span {
    font-size: 0.84rem;
    line-height: 1.45;
  }
  .ob-referral {
    margin-bottom: 10px;
  }
  .ob-referral-select,
  .ob-start-btn {
    min-height: 42px;
  }
  .ob-portrait {
    top: 8px;
  }
}

.ob-left {
  min-width: 0;
  position: relative;
  z-index: 1;
}

/* ── Price list onboarding — single column ─────────────────── */
.pl-card {
  display: flex !important;
  flex-direction: column !important;
  height: auto;
  max-height: calc(100dvh - 32px);
  overflow: hidden;
}

/* Mobile: Lexi portrait sits at the BOTTOM, content above */
@media (max-width: 600px) {
  .pl-card {
    flex-direction: column !important;
    height: 100dvh !important;
    height: 100vh !important;
    max-height: 100dvh;
    max-height: 100vh;
    overflow: hidden;
  }
  /* Content takes only what it needs — no extra bottom space */
  .pl-content {
    flex: 0 0 auto !important;
    overflow-y: auto;
    padding: 12px 16px 8px !important;
    min-height: 0;
  }
  /* Portrait fills all remaining space after content — head always at top */
  .pl-portrait-wrap {
    order: unset;
    flex: 1 1 auto !important;
    min-height: 120px;
    max-height: 260px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
    padding-top: 0;
  }
  .pl-portrait {
    width: auto;
    max-width: 100%;
    height: 100%;
    max-height: 260px;
    object-fit: contain;
    object-position: top center;
  }
}

.pl-content {
  padding: 24px 24px 16px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.pl-tagline {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--walnut);
  text-align: center;
  margin: 6px 0 10px;
  opacity: 0.8;
}

.pl-portrait-wrap {
  flex: 0 0 220px;
  height: 220px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
}

.pl-portrait {
  display: block;
  width: auto;
  max-width: 100%;
  height: 220px;
  object-fit: contain;
  object-position: top center;
}

.ob-header,
.ob-footer {
  position: relative;
  z-index: 2;
}

.ob-middle {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(0, 0.42fr);
  align-items: stretch;
  min-height: 0;
  position: relative;
}

.ob-right {
  position: relative;
  min-width: 0;
  overflow: visible;
}

.ob-portrait {
  position: absolute;
  top: 24px;
  right: -92px;
  width: calc(100% + 190px);
  max-width: none;
  height: auto;
  object-fit: contain;
  object-position: center top;
  display: block;
}

.ob-wordmark {
  height: 72px;
  width: auto;
  object-fit: contain;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.ob-logo-pair {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  flex-shrink: 0;
}
.ob-logo-pair .ob-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.ob-logo-pair .ob-strap-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.ob-intro {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--charcoal);
  margin-bottom: 0;
}

/* ===== LOGO UPLOAD ===== */
.logo-upload-area {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  background: var(--cream);
}

.logo-upload-area:hover,
.logo-upload-area:focus {
  border-color: var(--walnut);
  background: var(--walnut-tint);
  outline: none;
}

.logo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #888;
}

.logo-placeholder svg { color: var(--walnut); opacity: 0.5; }
.logo-placeholder span { font-size: 0.95rem; font-weight: 500; }
.logo-placeholder small { font-size: 0.8rem; }

.logo-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.logo-preview img {
  max-height: 100px;
  max-width: 240px;
  object-fit: contain;
  border-radius: 6px;
}

.logo-actions { display: flex; gap: 8px; }

/* ===== PAYMENT METHODS ===== */
.pay-methods { display: flex; flex-direction: column; gap: 2px; }

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 0.95rem;
  cursor: pointer;
  min-height: 44px;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--walnut);
  cursor: pointer;
}

.checkbox-label.compact { padding: 2px 0; min-height: 0; font-size: 0.85rem; line-height: 1.3; }

.expand-panel {
  margin-left: 28px;
  padding: 12px 0 4px;
  border-left: 3px solid var(--walnut-tint);
  padding-left: 16px;
  margin-bottom: 8px;
}

/* ===== COLOUR PICKERS ===== */
.logo-colour-row {
  margin-bottom: 14px;
}

.colour-layout {
  display: grid;
  grid-template-columns: minmax(72px, 0.36fr) minmax(0, 1fr);
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.colour-pickers {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.colour-preview-col {
  min-width: 0;
}

@media (max-width: 600px) {
  .colour-layout {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
  }
  .colour-pickers {
    width: auto;
    gap: 14px;
  }
  .colour-preview-col {
    width: auto;
  }
  .colour-picker-group label { margin-bottom: 6px; }
  .colour-swatch { width: 44px; height: 44px; }
  .colour-preview { font-size: 0.78rem; }
  .cp-header { padding: 9px 10px; }
  .cp-body { padding: 10px; }
  .cp-row { gap: 8px; }
  .cp-example-tag { display: none; }
  .colour-reset-row .btn { min-height: 36px; padding: 7px 10px; font-size: 0.82rem; }
}

.colour-picker-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #555;
  display: block;
  margin-bottom: 8px;
}

.colour-input-row {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
}

.colour-swatch {
  width: 48px;
  height: 48px;
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 2px;
  cursor: pointer;
  flex-shrink: 0;
  background: var(--white);
  -webkit-appearance: none;
  appearance: none;
}

.colour-swatch::-webkit-color-swatch-wrapper { padding: 3px; }
.colour-swatch::-webkit-color-swatch {
  border: none;
  border-radius: 4px;
}
.colour-swatch::-moz-color-swatch {
  border: none;
  border-radius: 4px;
}

.mobile-rgb-picker {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(44,44,44,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.mobile-rgb-panel {
  width: min(360px, 100%);
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 16px;
}
.mobile-rgb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--walnut);
  margin-bottom: 12px;
}
.mobile-rgb-close {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 6px;
  background: var(--cream);
  font-size: 1.2rem;
  color: var(--charcoal);
}
.mobile-rgb-native {
  width: 100%;
  height: 150px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0;
  background: var(--white);
}
.mobile-rgb-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 12px 0;
}
.mobile-rgb-fields label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: var(--charcoal);
}
.mobile-rgb-fields input {
  width: 100%;
  text-align: center;
}
.mobile-rgb-preview {
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 12px;
}


/* ===== COLOUR PREVIEW ===== */
.colour-preview {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  font-size: 0.875rem;
}

.cp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  color: white;
  font-weight: 600;
  background: var(--walnut);
}

.cp-body {
  padding: 12px 14px;
  background: var(--cream);
}

.cp-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}

.cp-label { font-weight: 700; }

.cp-example-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.75;
  vertical-align: middle;
}

.cp-col-header {
  padding: 4px 0 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.cp-total {
  text-align: right;
  padding-top: 8px;
  font-size: 1rem;
}

.cp-example-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #aaa;
  margin-bottom: 6px;
}

.colour-reset-row {
  position: relative;
  display: inline-block;
  margin-top: 8px;
}

.dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  z-index: 50;
  min-width: 160px;
  overflow: hidden;
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 11px 16px;
  text-align: left;
  background: none;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--charcoal);
  transition: background var(--transition);
}

.dropdown-item:hover { background: var(--cream-d); }

/* ===== TOOLTIP ===== */
.tooltip-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--walnut);
  background: none;
  color: var(--walnut);
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.tooltip-box {
  background: var(--walnut-tint);
  border-left: 3px solid var(--walnut);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.875rem;
  color: #555;
  margin-bottom: 16px;
}

/* ===== BACKUP ===== */
.backup-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.backup-modal-card {
  max-width: 400px;
  width: 100%;
}
.backup-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.backup-modal-actions .btn {
  width: 100%;
  justify-content: center;
}

/* ===== UPLOAD ZONE ===== */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  background: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  color: #888;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--walnut);
  background: var(--walnut-tint);
  color: var(--walnut);
}

.upload-zone svg { color: var(--walnut); opacity: 0.5; width: 22px; height: 22px; }
.upload-zone span { font-size: 0.85rem; font-weight: 500; }
.upload-zone small { font-size: 0.75rem; }

/* ===== ADD JOBS TWO-COLUMN ===== */
.add-jobs-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 8px;
}
.add-jobs-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.add-jobs-col .upload-zone {
  flex: 1 1 auto;
  height: 100%;
  box-sizing: border-box;
}
.add-jobs-col .paste-zone {
  flex: 1 1 auto;
  height: 100%;
}
.add-jobs-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.paste-zone {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  color: #888;
  box-sizing: border-box;
  cursor: text;
  position: relative;
  transition: border-color var(--transition), background var(--transition);
}
.paste-zone:focus-within {
  border-color: var(--sage);
  background: #f0f3ee;
  color: var(--sage);
}
.paste-zone svg { color: var(--walnut); opacity: 0.5; width: 22px; height: 22px; margin-top: 6px; }
.paste-zone-label { font-size: 0.85rem; font-weight: 500; }
.paste-zone small { font-size: 0.75rem; text-align: center; }
.paste-zone-textarea {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  resize: none;
  font-family: inherit;
  font-size: 0.88rem;
  color: transparent;
  caret-color: var(--charcoal);
  padding: 0;
  outline: none;
  box-sizing: border-box;
  border-radius: 10px;
  cursor: text;
  z-index: 1;
}
.paste-zone-textarea:focus {
  background: rgba(255,255,255,0.6);
  color: var(--charcoal);
}
.paste-img-preview {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: var(--cream);
  border-radius: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.paste-img-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
}
.paste-img-clear {
  position: absolute;
  top: 5px;
  right: 6px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal);
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.paste-img-clear:hover { background: var(--cream); }

/* ===== PRICE LIST ===== */
.price-list-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  align-items: center;
}

.search-input {
  flex: 1;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
  background: var(--white);
  transition: border-color var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--walnut);
  box-shadow: 0 0 0 3px rgba(125,87,48,.12);
}

.price-list-header {
  padding: 4px 0 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sort-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sort-label {
  font-size: 0.8rem;
  color: var(--charcoal);
  white-space: nowrap;
}
.sort-select {
  font-size: 0.8rem;
  padding: 3px 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--charcoal);
}

.dup-prompt {
  margin-top: 10px;
  padding: 10px 12px;
  background: #fff8e6;
  border: 1px solid #e8c84a;
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--charcoal);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.dup-prompt-btns {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.price-list-container {
  max-height: 400px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.price-list-card {
  border: 2px solid var(--sage);
  background: linear-gradient(180deg, #fff 0%, var(--cream) 100%);
}
.price-list-card .card-header-row {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.price-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--cream-d);
  transition: background var(--transition);
}

.price-item:last-child { border-bottom: none; }

.price-item-check { flex-shrink: 0; }
.price-item-check input { width: 18px; height: 18px; accent-color: var(--walnut); }

.price-item-info { flex: 1; min-width: 0; }
.price-item-name { font-weight: 500; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price-item-meta { font-size: 0.8rem; color: #888; }

.price-item-price { font-weight: 600; color: var(--walnut); flex-shrink: 0; }

.price-item-actions { display: flex; gap: 4px; flex-shrink: 0; }

.icon-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 6px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #888;
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}

.icon-btn:hover { background: var(--cream-d); }
.icon-btn.edit:hover { color: var(--walnut); }
.icon-btn.delete:hover { color: var(--danger); background: var(--danger-l); }

.price-item-edit-row {
  display: grid;
  grid-template-columns: 1fr 72px 60px auto auto;
  gap: 6px;
  align-items: center;
  width: 100%;
  padding: 8px 0;
  border-bottom: 1px solid var(--cream-d);
}

.price-item-edit-row input {
  min-width: 0;          /* allows grid inputs to shrink below content width */
  width: 100%;
  padding: 7px 8px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 0.88rem;
  box-sizing: border-box;
}

.price-item-edit-row input:focus {
  outline: none;
  border-color: var(--walnut);
}

.price-item-edit-row .btn-sm {
  padding: 6px 10px;
  flex-shrink: 0;
}

.badge {
  background: var(--walnut);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

.individual-add {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--cream-d);
}

/* One by One 2-column grid */
.obo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: end;
}
.obo-grid .form-group { margin-bottom: 0; }
.obo-name  { grid-column: 1; grid-row: 1; }
.obo-price { grid-column: 2; grid-row: 1; }
.obo-unit  { grid-column: 1; grid-row: 2; }
.obo-add   { grid-column: 2; grid-row: 2; display: flex; align-items: flex-end; padding-bottom: 0; }
.obo-add .btn { width: 100%; justify-content: center; margin-bottom: 0; min-height: 44px; padding: 11px 14px; }

.section-sub {
  font-size: 0.9rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 10px;
}

/* ===== QUOTE BUILDER ===== */
.doc-type-chooser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.dtc-option {
  display: block;
  cursor: pointer;
}
.dtc-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.dtc-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  background: var(--cream);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  width: 100%;
  box-sizing: border-box;
}
.dtc-option input[type="radio"]:checked + .dtc-card {
  border-color: var(--terra);
  background: var(--terra-tint);
  color: var(--terra);
}
.dtc-icon {
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.15s;
}
.dtc-option input[type="radio"]:checked + .dtc-card .dtc-icon {
  opacity: 1;
}
.dtc-tick {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
  background: white;
  transition: border-color 0.15s, background 0.15s;
}
.dtc-option input[type="radio"]:checked + .dtc-card .dtc-tick {
  background: var(--terra);
  border-color: var(--terra);
}
.dtc-option input[type="radio"]:checked + .dtc-card .dtc-tick::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 8px;
  height: 5px;
  border-left: 2.5px solid white;
  border-bottom: 2.5px solid white;
  transform: rotate(-45deg);
}

.doc-type-btn {
  padding: 10px 24px;
  border: none;
  background: transparent;
  color: var(--walnut);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  min-height: 44px;
}

.doc-type-btn.active {
  background: var(--walnut);
  color: var(--white);
}

/* ===== JOB PICKER ===== */
.picker-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 2px;
  margin-top: 10px;
  margin-bottom: 16px;
}
.picker-list::-webkit-scrollbar { width: 4px; }
.picker-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.pick-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  user-select: none;
}
.pick-item:hover,
.pick-item.added {
  background: rgba(107,124,92,0.08);
  border-color: var(--sage);
}
.pick-name {
  flex: 1;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--charcoal);
}
.pick-unit {
  font-size: 0.74rem;
  color: #888;
  margin-left: 4px;
}
.pick-price {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--sage);
  white-space: nowrap;
}
.pick-add-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--sage);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  pointer-events: none;
  transition: background 0.15s;
}
.pick-item.added .pick-add-btn {
  font-size: 0.8rem;
}

/* Pick-item qty counter (for Edit Jobs picker) */
.pick-counter {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}
.pick-qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: var(--sage);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
  line-height: 1;
}
.pick-qty-btn:hover { background: #5a6b4c; }
.pick-qty-num {
  min-width: 20px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--sage);
}

/* ===== QUOTE ITEMS ===== */
.quote-items-container {
  border-top: 1px solid var(--cream-d);
  padding-top: 12px;
  margin-bottom: 16px;
}

.quote-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--cream-d);
}

.quote-item:last-child { border-bottom: none; }

.quote-item-info { flex: 1; min-width: 0; }
.quote-item-name { font-weight: 500; font-size: 0.9rem; }
.quote-item-unit-price { font-size: 0.8rem; color: #888; }

.qty-stepper {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--walnut);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}

.qty-btn:hover { background: var(--walnut-tint); }

.qty-value {
  min-width: 24px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.quote-item-total {
  font-weight: 600;
  color: var(--walnut);
  min-width: 60px;
  text-align: right;
  font-size: 0.9rem;
}

/* ===== STEP 2 TWO-COLUMN ===== */
.step2-columns {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  align-items: start;
}
.step2-left {
  min-width: 0;
}
.step2-right {
  min-width: 0;
  padding: 14px;
  background: var(--cream);
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.step2-right .form-group {
  margin-bottom: 0;
}
.step2-right .section-sub {
  margin-bottom: 0;
}
.step2-right .btn {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

.custom-item-add {
  padding-top: 16px;
  border-top: 1px solid var(--cream-d);
}
.custom-item-add .input-pfx,
.custom-item-add .form-group input {
  width: 100%;
  min-width: 0;
}

/* ===== PAGE-JOBS LAYOUT ===== */
.picker-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.picker-search-row .search-input {
  flex: 1;
  min-width: 0;
}
.btn-mic {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--terra);
  color: var(--white);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}
.btn-mic:hover { background: var(--terra-d); }
.btn-mic.recording {
  background: var(--terra-d);
  animation: mic-pulse 1.4s infinite;
}
@keyframes mic-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(196,85,58,.5); }
  70%  { box-shadow: 0 0 0 10px rgba(196,85,58,0); }
  100% { box-shadow: 0 0 0 0   rgba(196,85,58,0); }
}
.voice-box {
  background: var(--terra-tint);
  border: 1.5px solid rgba(196,85,58,.25);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.83rem;
  color: var(--charcoal);
  margin-bottom: 8px;
}
.voice-box.hidden { display: none; }

.vnf-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.vpick-modal-card {
  max-width: 400px;
  width: calc(100% - 48px);
  padding: 24px;
}
.vpick-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vpick-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  text-align: left;
  gap: 12px;
}
.vpick-btn:hover {
  background: rgba(107,124,92,0.08);
  border-color: var(--sage);
}
.vpick-btn-price {
  color: var(--sage);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.pj-selected-header {
  display: flex;
  align-items: center;
  padding: 12px 0 6px;
  border-top: 1px solid var(--cream-d);
  margin-top: 4px;
}
.pj-footer-btns {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--cream-d);
}
.pj-footer-btns .btn {
  flex: 1;
}

/* ===== TOTALS ===== */
.totals-block {
  background: var(--cream);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.totals-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.95rem;
}

.totals-total {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--walnut);
  padding-top: 8px;
  border-top: 1.5px solid var(--border);
  margin-top: 4px;
}

.totals-discount {
  color: var(--success);
  font-size: 0.9rem;
}

.totals-vat {
  font-size: 0.9rem;
  opacity: 0.8;
}

.vat-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vat-select {
  padding: 6px 10px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  background: var(--white);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%237D5730' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 28px;
}

.vat-custom {
  width: 60px;
  padding: 6px 8px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
}

.discount-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.discount-input {
  width: 60px;
  padding: 6px 8px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
}

/* ===== DISCOUNT / VAT / VALID-FOR THREE-COLUMN GRID ===== */
.dvv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin: 12px 0 6px;
}
.dvv-grid .vat-select,
.dvv-grid select {
  width: 100%;
}
.dvv-amount {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--walnut);
  margin-top: 4px;
  min-height: 1.1em;
}

/* ===== TERMS ===== */
/* ===== TERMS TWO-COLUMN ===== */
.terms-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.terms-col-left label,
.terms-col-right label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 6px;
}
.terms-col-right textarea {
  width: 100%;
  box-sizing: border-box;
  height: 100%;
  min-height: 120px;
}
.sig-hint-text {
  font-size: 0.78rem;
  color: #999;
  margin-top: 6px;
  font-style: italic;
}

/* ===== STEP 3 TWO-COLUMN ===== */
.step3-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}
.step3-left { min-width: 0; }
.step3-right {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step3-right .form-group { margin-bottom: 0; }

.terms-options {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--cream);
  border-radius: 8px;
  padding: 6px 12px;
}

/* ===== SIGNATURE ===== */
.sig-text-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-family: 'Dancing Script', cursive;
  font-size: 1.5rem;
  color: var(--charcoal);
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
}

/* ===== £ PREFIX INPUTS ===== */
.input-pfx {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
}
.pfx-symbol {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 600;
  color: var(--charcoal);
  pointer-events: none;
  z-index: 1;
  line-height: 1;
}
.input-pfx input,
.form-group .input-pfx input[type="number"],
.form-group .input-pfx input[type="text"],
.jde-item-row .input-pfx input[type="number"] {
  padding-left: 34px;
  width: 100%;
}

/* ===== SAVED DOCS ===== */
.page4-sticky-top {
  position: sticky;
  top: var(--header-h);
  background: var(--cream);
  z-index: 10;
  padding-bottom: 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

.saved-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 12px;
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
}
.filter-group-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #999;
  white-space: nowrap;
}
.export-select {
  border-color: var(--walnut);
  color: var(--walnut);
}
.saved-filter-select {
  padding: 4px 8px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--charcoal);
  font-size: 0.78rem;
  font-family: inherit;
  cursor: pointer;
  min-height: 0;
  width: auto;
}

.saved-doc-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  border-left: 4px solid var(--sage);
  padding: 16px;
  margin-bottom: 12px;
}
.saved-doc-card.status-estimate { border-left-color: #c8bfb0; }
.saved-doc-card.status-quote    { border-left-color: var(--gold-mid); }
.saved-doc-card.status-invoiced { border-left-color: var(--walnut); }
.saved-doc-card.status-paid     { border-left-color: var(--success); }
.saved-doc-card.status-overdue  { border-left-color: var(--danger); }

.saved-doc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.saved-doc-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--walnut);
  line-height: 1.3;
  display: block;
}
.saved-doc-ref { font-size: 0.8rem; color: #888; }
.saved-doc-date { font-size: 0.85rem; color: #888; }
.saved-doc-total { font-weight: 700; color: var(--walnut); font-size: 1.05rem; }

.type-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: opacity 0.15s;
}
.type-badge:hover { opacity: 0.8; }

.type-badge.estimate { background: #f5f0e8; color: #6b6057; border-color: #c8bfb0; }
.type-badge.quote    { background: var(--gold-light); color: var(--gold); border-color: var(--gold-mid); }
.type-badge.invoiced { background: var(--walnut-tint); color: var(--walnut); border-color: var(--walnut); }
.type-badge.invoice  { background: var(--walnut-tint); color: var(--walnut); border-color: var(--walnut); }
.type-badge.paid     { background: #dcfce7; color: #166534; border-color: #86efac; }
.type-badge.overdue  { background: var(--danger-l); color: var(--danger); border-color: var(--danger); }

/* Journey dropdown — replaces A/B/C buttons on View Jobs cards */
.journey-select-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.journey-select {
  flex: 1;
  padding: 4px 10px;
  border: 1.5px solid var(--walnut);
  border-radius: 8px;
  background: var(--white);
  color: var(--walnut);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  appearance: auto;
}
.journey-select:focus { outline: 2px solid var(--walnut); outline-offset: 2px; }

.saved-doc-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--cream-d);
}
.saved-doc-actions-left {
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.partial-paid-label {
  font-size: 0.78rem;
  color: var(--walnut);
  font-weight: 600;
  white-space: nowrap;
}

.saved-doc-payment-tally {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0 2px;
  border-top: 1px solid var(--cream-d);
  font-size: 0.78rem;
  font-weight: 600;
}
.sdpt-payment-info { display: flex; align-items: center; gap: 6px; flex: 1; }
.sdpt-paid { color: var(--success); }
.sdpt-outstanding { color: var(--gold); font-weight: 600; }
.sdpt-full { color: var(--success); font-weight: 500; }
.btn-view-customer {
  flex-shrink: 0;
  background: var(--walnut-tint);
  color: var(--walnut);
  border: 1.5px solid var(--walnut);
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.btn-view-customer:hover {
  background: var(--walnut);
  color: var(--white);
}

/* ===== EDIT-PAYMENT PENCIL BUTTON ===== */
.btn-edit-payment {
  background: none;
  border: none;
  padding: 2px 7px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--walnut);
  opacity: 0.65;
  line-height: 1;
  border-radius: 4px;
  transition: opacity 0.15s;
  flex-shrink: 0;
  font-weight: 500;
}
.btn-edit-payment:hover { opacity: 1; background: rgba(125,87,48,.08); }
.saved-doc-actions .btn-edit-payment {
  display: none;
}
.btn-photo-doc {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--walnut);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.btn-photo-doc:hover {
  background: var(--walnut-tint);
}
.photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.photo-preview-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.photo-empty {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  color: #888;
}
.stacked-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.share-textarea {
  width: 100%;
  resize: vertical;
}

/* ===== DESCRIPTION HELP BUTTON & POPUP ===== */
.help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1.5px solid var(--sage);
  background: transparent;
  color: var(--sage);
  font-size: 0.68rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.help-btn:hover { background: var(--sage); color: #fff; }

.help-popup {
  position: absolute;
  z-index: 200;
  background: var(--charcoal);
  color: #fff;
  font-size: 0.82rem;
  line-height: 1.5;
  padding: 10px 34px 10px 12px;
  border-radius: 9px;
  max-width: 260px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
  margin-top: 4px;
}
.help-popup-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.help-popup-close:hover { color: #fff; }

/* ===== SEND MY BUSINESS INFO MODAL ===== */
.biz-info-intro {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 10px;
}

.biz-info-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.biz-info-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--cream);
  border: 1px solid var(--border);
  font-size: 0.83rem;
  line-height: 1.35;
  cursor: pointer;
  transition: background 0.12s;
}
.biz-info-check:hover { background: #ece8e0; }
.biz-info-check input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--sage);
  width: 15px;
  height: 15px;
}

.biz-info-preview-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 5px;
}

.biz-info-preview {
  background: #f9f9f7;
  color: #444;
  font-size: 0.82rem;
  line-height: 1.55;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}
.customer-dashboard-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
  background: var(--cream);
}
.customer-selector-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.customer-selector-row {
  display: grid;
  grid-template-columns: minmax(120px, 1.2fr) minmax(90px, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  padding: 10px 12px;
  color: var(--charcoal);
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.customer-selector-row:hover {
  background: var(--cream);
}
.customer-selector-name,
.customer-selector-ref,
.customer-selector-paid,
.customer-selector-outstanding {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.customer-selector-name {
  font-weight: 700;
  color: var(--walnut);
}
.customer-selector-ref {
  font-size: 0.84rem;
  color: #777;
}
.customer-selector-paid,
.customer-selector-outstanding {
  font-size: 0.84rem;
  font-weight: 600;
}
.customer-dashboard-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-bottom: 12px;
  /* kept for any legacy references */
  flex-wrap: wrap;
}

/* Walnut (brand brown) button for Edit */
.btn-walnut {
  background: var(--walnut);
  color: var(--white);
  border-color: var(--walnut);
}
.btn-walnut:hover  { background: var(--walnut-d); border-color: var(--walnut-d); }
.btn-walnut:active { transform: scale(0.98); }

/* Customer Edit Choice modal */
.cec-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 16px;
}
.cec-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 14px 8px;
  flex: 1;
  text-align: center;
  line-height: 1.2;
}

/* ===== JOB STATUS PROGRESSION ===== */
/* ===== TUBE-MAP JOB STATUS ===== */
.cdv-tube-map {
  margin: 10px 0 4px;
  padding: 12px 12px 10px;
  background: #faf8f4;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.cdv-prog-label {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #999;
  margin-bottom: 10px;
}
/* The horizontal track row */
.cdv-tube-row {
  display: flex;
  align-items: flex-start;
}
/* Track segment between stations */
.cdv-tube-seg {
  flex: 1;
  height: 3px;
  background: #e0d8cc;
  border-radius: 2px;
  margin-top: 13px;        /* vertically centres on the 28px circle */
  transition: background 0.2s;
}
.cdv-tube-seg.done { background: var(--gold-mid); }
/* Station = circle + label stacked */
.cdv-tube-station {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
/* Circle dot */
.cdv-tube-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2.5px solid #ccc;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.68rem; font-weight: 800;
  color: #ccc;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  flex-shrink: 0;
  line-height: 1;
}
.cdv-tube-dot:hover { border-color: var(--sage); color: var(--sage); background: #eef4ea; }
/* Done stage: gold tint */
.cdv-tube-dot.done {
  background: var(--gold-light);
  border-color: var(--gold-mid);
  color: var(--gold);
}
.cdv-tube-dot.done:hover { background: #fdefc0; border-color: var(--gold); }
/* Active stage: solid colour per stage */
.cdv-tube-dot.active {
  box-shadow: 0 0 0 3px rgba(125,87,48,0.12);
  color: #fff;
}
.cdv-tube-dot.active.stage-estimate { background: #6b6057; border-color: #6b6057; }
.cdv-tube-dot.active.stage-estimate:hover { background: #554b43; border-color: #554b43; }
.cdv-tube-dot.active.stage-quote { background: var(--gold); border-color: var(--gold); }
.cdv-tube-dot.active.stage-quote:hover { background: #9a710a; border-color: #9a710a; }
.cdv-tube-dot.active.stage-invoice { background: var(--walnut); border-color: var(--walnut); }
.cdv-tube-dot.active.stage-invoice:hover { background: var(--walnut-d); border-color: var(--walnut-d); }
.cdv-tube-dot.active.stage-receipt { background: var(--success); border-color: var(--success); }
.cdv-tube-dot.active.stage-receipt:hover { background: #1e5c23; border-color: #1e5c23; }
/* Label under circle */
.cdv-tube-lbl {
  font-size: 0.62rem;
  font-weight: 600;
  color: #ccc;
  text-align: center;
  line-height: 1;
  white-space: nowrap;
  transition: color 0.15s;
}
.cdv-tube-lbl.lit { color: var(--charcoal); }
/* Arrow at track end */
.cdv-tube-arrow-end {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ccc;
  margin-top: 7px;
  margin-left: 2px;
  flex-shrink: 0;
  line-height: 1;
}

/* ===== JOB TERMS EDIT MODAL ===== */
.jte-type-row {
  display: flex;
  gap: 20px;
  margin-top: 4px;
}
.jte-type-opt {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}
.jte-totals {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 12px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.jte-totals-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--charcoal);
}
.jte-grand {
  font-weight: 700;
  font-size: 0.95rem;
  border-top: 1px solid var(--border);
  padding-top: 6px;
  margin-top: 2px;
}
.jte-discount-row { color: var(--terra); }
.jte-vat-row      { color: #666; }

/* Delete button — spans full width, terracotta */
.cec-btn-delete {
  background: var(--terra);
  color: #fff;
  border-color: var(--terra);
}
.cec-btn-delete:hover  { background: #b84a3a; border-color: #b84a3a; }
.cec-btn-delete:active { transform: scale(0.98); }

/* Job picker inside edit choice modal */
.cec-pick-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--walnut);
  margin-bottom: 8px;
}
.cec-job-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color var(--transition);
}
.cec-job-option:hover { border-color: var(--walnut); }
.cec-job-ref  { font-weight: 700; color: var(--walnut); min-width: 90px; }
.cec-job-desc { flex: 1; color: var(--charcoal); }
.cec-job-total { font-weight: 600; white-space: nowrap; }
.customer-dashboard-card h3 {
  color: var(--walnut);
  margin-bottom: 6px;
}
.customer-dashboard-card p {
  white-space: pre-wrap;
  font-size: 0.88rem;
  color: var(--charcoal);
  opacity: 0.8;
}
.customer-dashboard-totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin: 12px 0;
  font-size: 0.85rem;
}
.customer-dashboard-jobs .cp-row {
  background: var(--white);
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 6px;
}

/* ===== CUSTOMER DETAIL VIEW (cdv) ===== */
.cdv-header {
  border-bottom: 1.5px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 14px;
}
/* Contact action buttons row (Email / WhatsApp / Phone) */
.cdv-contact-btns {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
/* Brand SVG icons used in contact lines and section labels */
.cdv-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  color: var(--sage);
}
.cdv-icon-label {
  color: var(--walnut);
  margin-right: 4px;
  vertical-align: -2px;
}

/* Per-job action bar inside customer dashboard */
.cdv-job-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--border);
  background: var(--cream);
}
.cdv-job-actions .btn {
  font-size: 0.82rem;
}
.cdv-btn-camera,
.cdv-btn-download {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 4px 10px;
  color: var(--charcoal);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cdv-btn-camera:hover,
.cdv-btn-download:hover { background: var(--cream-d); }

/* ===== JOB DETAILS EDIT MODAL ===== */
.jde-section-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.jde-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}
.jde-item-row {
  display: grid;
  grid-template-columns: 1fr 120px 32px;
  gap: 8px;
  align-items: center;
}
.jde-item-row input[type="text"],
.jde-item-row input[type="number"] {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  background: var(--white);
  color: var(--charcoal);
  -webkit-appearance: none;
  appearance: none;
}
.jde-item-row input:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(var(--sage-rgb), .15);
}
.jde-item-row .input-pfx input[type="number"] {
  padding-left: 28px;
}
.jde-item-remove {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  line-height: 1;
  transition: color var(--transition), background var(--transition);
}
.jde-item-remove:hover { color: var(--danger); background: rgba(200,60,60,.08); }
.jde-picker-list {
  max-height: 180px;
  overflow-y: auto;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  margin-bottom: 4px;
}
.jde-picker-list .pick-item {
  padding: 9px 12px;
}
.jde-divider {
  border: none;
  border-top: 1.5px solid var(--border);
  margin: 16px 0 12px;
}
.jde-total-hint {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-transform: none;
  letter-spacing: 0;
}
.jde-item-headers {
  display: grid;
  grid-template-columns: 1fr 120px 32px;
  gap: 8px;
  margin-bottom: 4px;
}
.jde-item-headers span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.jde-empty-hint {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: center;
  padding: 12px 0;
}

/* Customer button on saved doc card */
.btn-customer-dash {
  width: 100%;
  justify-content: center;
}
.cdv-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--walnut);
  margin-bottom: 6px;
}
.cdv-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cdv-contact-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--charcoal);
  line-height: 1.4;
}
.cdv-contact-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: flex-start;
  padding-top: 2px;
}
.cdv-summary-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: var(--walnut-tint);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 16px;
}
.cdv-summary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.cdv-summary-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--walnut);
  opacity: 0.75;
  margin-bottom: 2px;
}
.cdv-summary-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
}
.cdv-paid { color: var(--success); }
.cdv-outstanding { color: var(--danger); }

.cdv-jobs-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Individual job card */
.cdv-job-card {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.cdv-job-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: var(--cream-d);
  border-bottom: 1px solid var(--border);
}
.cdv-job-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
/* Dedicated action toolbar row beneath the modal title */
.cdv-action-toolbar {
  display: flex;
  gap: 8px;
  padding: 10px 16px 10px;
  border-bottom: 1px solid var(--border);
  background: var(--cream);
}
.cdv-action-toolbar > button {
  flex: 1;
  justify-content: center;
}
/* Add Photo / Download / Edit / Delete outline buttons */
.cdv-hdr-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  color: var(--walnut);
  border: 1.5px solid var(--walnut);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.cdv-hdr-action-btn:hover {
  background: var(--walnut-tint);
}
.cdv-hdr-delete-btn {
  color: var(--terra);
  border-color: var(--terra);
}
.cdv-hdr-delete-btn:hover {
  border-color: var(--terra);
  color: var(--terra);
  background: var(--terra-tint);
}
/* Edit — outline sage (brand green) */
.cdv-header-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--sage);
  color: #fff;
  border: 1.5px solid var(--sage);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.cdv-header-edit-btn:hover,
.cdv-header-edit-btn:focus-visible {
  background: #5a6b4c;
  border-color: #5a6b4c;
  outline: none;
}
.cdv-job-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cdv-job-ref {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--walnut);
}
.cdv-job-num {
  font-weight: 700;
  color: var(--sage);
  font-size: 0.88rem;
}
.cdv-status-btn {
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, transform 0.1s;
}
.cdv-status-btn:hover { opacity: 0.8; transform: scale(1.05); }
.cdv-status-btn:active { transform: scale(0.97); }
.cdv-job-date {
  font-size: 0.82rem;
  color: #888;
}

/* Line items */
.cdv-items {
  padding: 10px 14px 6px;
}
.cdv-item-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.cdv-item-row:last-child { border-bottom: none; }
.cdv-item-name { flex: 1; color: var(--charcoal); }
.cdv-item-qty  { font-size: 0.78rem; color: #999; margin-left: 4px; }
.cdv-item-price { font-weight: 600; white-space: nowrap; }

/* Totals */
.cdv-totals {
  padding: 8px 14px 10px;
  border-top: 1px solid var(--border);
  background: var(--cream);
}
.cdv-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.87rem;
  padding: 3px 0;
  color: var(--charcoal);
}
.cdv-discount-row { color: var(--success); }
.cdv-vat-row { opacity: 0.75; }
.cdv-grand-total {
  font-weight: 700;
  font-size: 1rem;
  color: var(--walnut);
  border-top: 1.5px solid var(--border);
  margin-top: 6px;
  padding-top: 6px;
}

/* Payments */
.cdv-section {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
}
.cdv-section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  color: var(--walnut);
  margin-bottom: 6px;
}
/* Payments row — label on left, status badge on right */
.cdv-section-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cdv-pay-status {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: none;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}
.cdv-pay-status-due {
  background: #fdf4ed;
  color: var(--walnut);
  border: 1px solid #e8c9a8;
}
.cdv-pay-status-overdue {
  background: #fdecea;
  color: var(--danger);
  border: 1px solid #f5b8b5;
}
.cdv-pay-status-paid {
  background: #eef6f1;
  color: var(--success);
  border: 1px solid #a8d5b8;
}
.cdv-payment-row {
  display: flex;
  align-items: center;
  font-size: 0.88rem;
  padding: 4px 0;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}
.cdv-payment-row:last-child { border-bottom: none; }
.cdv-pay-num   { min-width: 82px; color: #888; font-size: 0.82rem; flex-shrink: 0; }
.cdv-pay-date  { flex: 1; color: var(--charcoal); }
.cdv-pay-amount { font-weight: 700; white-space: nowrap; }
.cdv-outstanding-row .cdv-pay-amount { color: var(--danger); }
.cdv-paid-stamp {
  font-size: 0.82rem;
  color: var(--success);
  font-weight: 600;
  padding-top: 4px;
}

/* Notes */
.cdv-note-text {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--charcoal);
  white-space: pre-wrap;
}
.cdv-private {
  background: #fffbf0;
  border-left: 3px solid #e6b800;
}

/* Photos */
.cdv-photo-group { margin-bottom: 8px; }
.cdv-photo-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.cdv-photo-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cdv-photo-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.cdv-empty {
  font-size: 0.85rem;
  color: #aaa;
  font-style: italic;
}

@media (max-width: 480px) {
  .cdv-summary-bar { grid-template-columns: repeat(2, 1fr); }
  .cdv-photo-thumb { width: 68px; height: 68px; }
}

/* ===== PAYMENT HISTORY ON CARD ===== */
.payment-history {
  border-top: 1px solid var(--border);
  padding: 8px 0 4px;
  margin: 0 0 2px;
}
.payment-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  padding: 2px 0;
  color: var(--charcoal);
}
.payment-row-num {
  opacity: 0.5;
  min-width: 52px;
  flex-shrink: 0;
  font-size: 0.75rem;
}
.payment-row-amount {
  font-weight: 600;
  color: var(--walnut);
  min-width: 56px;
}
.payment-row-date {
  flex: 1;
  opacity: 0.65;
}
.payment-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  margin-top: 5px;
  padding-top: 5px;
  font-size: 0.8rem;
}
.payment-summary-row span { opacity: 0.65; }
.payment-summary-row strong { color: var(--charcoal); }
.payment-outstanding strong { color: var(--walnut); }

/* ===== CLIENT PICKER MODAL ===== */
.cp-list {
  display: flex;
  flex-direction: column;
  max-height: 55vh;
  overflow-y: auto;
}
.cp-empty {
  text-align: center;
  opacity: 0.5;
  padding: 28px 0;
  font-size: 0.9rem;
}
.cp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 4px;
  border: none;
  border-bottom: 1px solid var(--border);
  background: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background 0.15s;
  border-radius: 0;
}
.cp-row:first-child { border-top: 1px solid var(--border); }
.cp-row:hover { background: var(--cream); }
.cp-row-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.cp-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--charcoal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cp-job {
  font-size: 0.78rem;
  opacity: 0.55;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cp-row-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.cp-total {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--charcoal);
}
.cp-warning {
  background: #fff8e6;
  border: 1px solid #f0c040;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
  font-size: 0.88rem;
}
.cp-warning-msg {
  margin: 0 0 10px;
  color: var(--charcoal);
  line-height: 1.5;
}
.cp-warning-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* ===== EDIT PAYMENTS MODAL ===== */
.edit-payment-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.ep-amount {
  font-weight: 600;
  color: var(--walnut);
  min-width: 72px;
}
.ep-date {
  flex: 1;
  font-size: 0.88rem;
  opacity: 0.7;
}
.btn-delete-payment {
  background: none;
  border: none;
  color: #c0392b;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 3px 7px;
  border-radius: 4px;
  opacity: 0.55;
  transition: opacity 0.15s;
  flex-shrink: 0;
}
.btn-delete-payment:hover { opacity: 1; background: rgba(192,57,43,0.08); }
.ep-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0 2px;
  font-size: 0.88rem;
}
.ep-summary-row span { opacity: 0.65; }
.ep-outstanding strong { color: var(--walnut); }
#editPaymentsList:empty::after {
  content: 'No payments recorded.';
  display: block;
  text-align: center;
  opacity: 0.5;
  padding: 20px 0;
  font-size: 0.9rem;
}

.add-payment-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1.5px solid var(--border);
}

/* ===== MONEY IN MODAL PREV-INFO ===== */
.inv-pay-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 8px;
}
.mp-prev-info {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 0.85rem;
}
.mp-prev-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 0;
  color: var(--charcoal);
}
.mp-prev-row span:first-child { opacity: 0.7; }
.mp-prev-row strong { color: var(--walnut); }
.mp-totals-divider {
  border-top: 1px solid var(--border);
  margin-top: 6px;
  padding-top: 6px;
}
.mp-edit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}
.mp-edit-row:last-of-type { border-bottom: none; }
.mp-edit-label {
  font-size: 0.8rem;
  opacity: 0.7;
  white-space: nowrap;
  flex-shrink: 0;
}
.mp-edit-fields {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: flex-end;
}
.mp-edit-pfx {
  max-width: 100px;
  margin: 0;
  position: relative;
}
.mp-edit-pfx input {
  font-size: 0.85rem;
  padding: 4px 6px 4px 28px;
  height: auto;
  min-width: 0;
}
.mp-edit-date {
  font-size: 0.82rem;
  padding: 4px 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--charcoal);
  max-width: 130px;
}
.mp-delete-btn {
  background: none;
  border: none;
  color: var(--terra);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  flex-shrink: 0;
}
.mp-delete-btn:hover { background: var(--terra-tint); }

.mp-add-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  margin: 14px 0 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ===== MODAL ===== */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.modal-title { font-size: 1.1rem; color: var(--walnut); }


.modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--cream);
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: background var(--transition);
}

.modal-close:hover { background: var(--cream-d); }

.modal-body {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-footer {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--cream);
  border-radius: 0 0 var(--radius) var(--radius);
}

.modal-footer .btn { flex: 1; }

.preview-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.preview-modal-card {
  max-width: 700px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.preview-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px;
}

@media (max-width: 600px) {
  .modal-card {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
    margin: 0;
  }
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-card { border-radius: var(--radius) var(--radius) 0 0; max-height: 92vh; }
  #customerDashboardModal .modal-card { max-height: 96vh; }
  #jobDetailsEditModal .modal-card { max-height: 96vh; }
  .cal-icon-btn.cdv-labeled span { display: none; }
  .cal-icon-btn.cdv-labeled { padding: 0 10px; }
  .onboarding-card { border-radius: var(--radius); margin: 0 0 env(safe-area-inset-bottom); }
  .modal-overlay.for-onboarding { align-items: center; padding: 16px; }

  /* Preview modal — full screen on mobile so the document is readable */
  #previewModal { align-items: flex-start; }
  #previewModal .modal-card {
    border-radius: 0;
    max-height: 100vh;
    height: 100vh;
  }
  .preview-content { padding: 0; background: #fff; }
  .preview-footer { padding: 10px 12px; gap: 6px; }
}

/* ===== BUSINESS DETAILS CHOICE MODAL ===== */
.biz-choice-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: var(--cream);
  margin-bottom: 6px;
}
.biz-choice-card:has(input:checked) {
  border-color: var(--sage);
  background: rgba(107,124,92,0.06);
}
.biz-choice-card input[type="radio"] {
  margin-top: 2px;
  accent-color: var(--sage);
  flex-shrink: 0;
}
.biz-choice-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 2px;
}
.biz-choice-sub {
  font-size: 0.82rem;
  color: #777;
}
.biz-choice-all-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #555;
  padding: 4px 14px 10px;
  cursor: pointer;
}
.biz-choice-all-wrap input[type="checkbox"] {
  accent-color: var(--walnut);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.biz-choice-divider {
  border: none;
  border-top: 1.5px dashed var(--border);
  margin: 10px 0;
}

/* ===== LEXI PRICE TOOL ===== */
.pt-input-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 12px;
}
.pt-generate-wrap {
  flex-shrink: 0;
  padding-bottom: 0;
  display: flex;
  align-items: flex-end;
}
.pt-generate-btn {
  white-space: nowrap;
  min-height: 44px;
  padding: 11px 18px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pt-api-notice {
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.82rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 10px;
}
.pt-api-link {
  display: block;
  margin-top: 4px;
  color: var(--walnut);
  font-weight: 600;
  text-decoration: underline;
}
.pt-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
  color: #888;
  font-size: 0.88rem;
  justify-content: center;
}
.pt-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid var(--border);
  border-top-color: var(--walnut);
  border-radius: 50%;
  animation: pt-spin 0.7s linear infinite;
}
@keyframes pt-spin { to { transform: rotate(360deg); } }
.pt-error {
  background: #fff0ee;
  border: 1.5px solid #f5c6c0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.83rem;
  color: var(--terra);
  margin-top: 8px;
  line-height: 1.5;
}
.pt-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}
.pt-results-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pt-results-scroll {
  max-height: 340px;
  overflow-y: auto;
  border: 1.5px solid var(--border);
  border-radius: 10px;
}
.pt-results-list {
  display: flex;
  flex-direction: column;
}
.pt-row {
  display: grid;
  grid-template-columns: 1fr 90px 80px 44px;
  gap: 6px;
  align-items: center;
  padding: 7px 10px;
  border-bottom: 1px solid var(--border);
}
.pt-row:last-child { border-bottom: none; }
.pt-row input[type="text"],
.pt-row input[type="number"] {
  width: 100%;
  padding: 6px 8px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 0.82rem;
  font-family: inherit;
  background: var(--cream);
  color: var(--charcoal);
  min-height: 36px;
}
.pt-row input[type="text"]:focus,
.pt-row input[type="number"]:focus {
  outline: none;
  border-color: var(--sage);
  background: #fff;
}
.pt-row-add {
  width: 44px;
  height: 36px;
  border: none;
  border-radius: 6px;
  background: var(--sage);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s;
}
.pt-row-add:hover { background: #5a6b4c; }
.pt-row-add.added {
  background: var(--walnut);
  pointer-events: none;
}
.pt-row.pt-row-done {
  opacity: 0.5;
}
.pt-link {
  color: var(--walnut);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
}
.pt-link:hover { color: var(--terra); }

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  width: calc(100% - 32px);
  max-width: 400px;
}

.toast {
  background: var(--charcoal);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  pointer-events: auto;
  animation: toastIn 0.25s ease;
  width: 100%;
  text-align: center;
}

.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.fade-out { animation: toastOut 0.3s ease forwards; }

/* ===== SAVED POPUP ===== */
.saved-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: toastIn 0.2s ease;
}
.saved-popup-overlay.fade-out {
  animation: toastOut 0.35s ease forwards;
}
.saved-popup-box {
  background: var(--white);
  border-radius: 20px;
  padding: 36px 48px;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
}
.saved-popup-tick {
  font-size: 3rem;
  color: var(--sage);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 10px;
}
.saved-popup-msg {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--walnut);
  letter-spacing: 0.02em;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(8px); }
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 32px 16px;
  color: #888;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.empty-state p { font-size: 0.95rem; }
.empty-state svg { opacity: 0.3; }

/* ===== UTILITY ===== */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--walnut-l); }

/* ===== PRINT ===== */
@media print {
  .app-header, .page-footer, .toast-container, .modal-overlay { display: none !important; }
  body { padding-top: 0; background: white; }
  .page { display: block !important; }
}

/* ===== SAGE BUTTONS ===== */
.btn-sage {
  background: var(--sage);
  color: var(--white);
  border-color: var(--sage);
}
.btn-sage:hover { background: #5a6a4c; border-color: #5a6a4c; }
.btn-sage:active { transform: scale(0.98); }

.btn-outline-sage {
  background: transparent;
  color: var(--sage);
  border-color: var(--sage);
}
.btn-outline-sage:hover { background: rgba(107,124,92,.1); }

/* ===== PAGE NUMBER BADGE ===== */
.page-num {
  display: inline;
  background: transparent;
  color: white;
  border-radius: 0;
  padding: 0;
  font-size: 1em;
  font-weight: 700;
  margin-right: 6px;
}

/* ===== HEADER AVATAR ===== */
.header-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
  margin-left: 6px;
}

/* ===== PAGE 1 HERO LOGO ===== */
.page-hero-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--walnut-tint);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
}
.hero-logo-img  { max-height: 52px; width: auto; }
.hero-strap-img { max-height: 24px; width: auto; }

/* ===== WHAT-NEXT BAR ===== */
.what-next-bar {
  background: var(--walnut-tint);
  border: 1.5px solid var(--walnut-l);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
  text-align: center;
}
.what-next-label {
  font-weight: 600;
  color: var(--walnut);
  margin-bottom: 12px;
  font-size: 1rem;
}
.what-next-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.what-next-btn { flex: 1; min-width: 120px; max-width: 180px; }

/* ===== NAV HINT POPUP ===== */
.nav-hint-popup {
  position: relative;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 12px rgba(44,44,44,.10);
}
.nav-hint-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--charcoal);
  cursor: pointer;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 4px;
  opacity: 0.55;
  transition: opacity 0.15s;
}
.nav-hint-close:hover { opacity: 1; }
.nav-hint-body {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-right: 22px;
  margin-bottom: 10px;
}
.nav-hint-avatar {
  flex: 0 0 33%;
  width: 33%;
  height: auto;
  border-radius: 6px;
  object-fit: contain;
  display: block;
}
.nav-hint-msg {
  font-size: 0.92rem;
  color: var(--charcoal);
  margin: 0;
  line-height: 1.45;
}
.nav-hint-suppress {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--charcoal);
  opacity: 0.7;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.nav-hint-suppress input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  accent-color: var(--sage);
  cursor: pointer;
  flex-shrink: 0;
}

/* ===== SAGE FOCUS (payment & price list cards) ===== */
.sage-focus input:focus,
.sage-focus textarea:focus,
.sage-focus select:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(107,124,92,.12);
}

/* ===== MENU BUTTON (vertical three-dot kebab) ===== */
.hamburger-btn {
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  border-radius: 8px;
  padding: 6px;
  transition: background var(--transition);
}
.hamburger-btn:hover { background: rgba(125,87,48,.1); }
.hamburger-btn .dot {
  display: block;
  width: 5px;
  height: 5px;
  background: var(--walnut);
  border-radius: 50%;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
/* When open: fade the outer dots and scale the middle one up slightly */
.hamburger-btn.open .dot:nth-child(1) { transform: translateY(10px); opacity: 0; }
.hamburger-btn.open .dot:nth-child(2) { transform: scale(1.4); }
.hamburger-btn.open .dot:nth-child(3) { transform: translateY(-10px); opacity: 0; }

/* ===== SLIDE-OUT NAV MENU ===== */
.nav-menu {
  position: fixed;
  top: var(--header-h);
  right: 0;
  width: 260px;
  background: var(--white);
  box-shadow: -4px 4px 20px rgba(44,44,44,.18);
  z-index: 95;
  border-radius: 0 0 0 var(--radius);
  transform: translateX(105%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}
.nav-menu.open { transform: translateX(0); }

.nav-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--cream-d);
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  text-align: left;
  transition: background var(--transition);
  min-height: 56px;
  font-family: inherit;
}
.nav-menu-item:last-child { border-bottom: none; }
.nav-menu-item:hover { background: var(--cream); color: var(--walnut); }
.nav-menu-item svg { color: var(--sage); flex-shrink: 0; }
.nav-menu-section-break {
  border-top: 2px solid var(--border);
}
.nav-menu-signout {
  margin-top: auto;
  border-top: 2px solid var(--border);
  color: #b94040;
}
.nav-menu-signout svg { color: #b94040; }
.nav-menu-signout:hover { background: #fff0f0; color: #922; }

.nav-menu-badge {
  margin-left: auto;
  background: var(--walnut);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

.nav-menu-overlay {
  position: fixed;
  inset: 0;
  top: var(--header-h);
  background: rgba(44,44,44,.3);
  z-index: 94;
  display: none;
  backdrop-filter: blur(1px);
}
.nav-menu-overlay.open { display: block; }

/* Nav submenu (New Document group) */
.nav-submenu-group { display: flex; flex-direction: column; }
.nav-submenu-trigger { justify-content: flex-start; }
.nav-submenu-trigger .nav-chevron {
  margin-left: auto;
  transition: transform 0.2s;
  color: #aaa;
  flex-shrink: 0;
}
.nav-submenu-trigger.open .nav-chevron { transform: rotate(180deg); }
.nav-submenu { display: none; }
.nav-submenu.open { display: flex; flex-direction: column; }
.nav-submenu-item {
  padding-left: 44px !important;
  font-size: 0.85rem !important;
  min-height: 48px !important;
  background: var(--cream);
  border-left: 3px solid var(--sage);
}
.nav-submenu-item:hover { background: var(--cream-d); }

/* ===== BUTTON STEP NUMBER ===== */
.btn-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sage);
  color: var(--white);
  border-radius: 6px;
  width: 22px;
  height: 22px;
  font-size: 0.85em;
  font-weight: 800;
  flex-shrink: 0;
}

/* ===== BETA BADGE ===== */
.nav-beta-badge {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--gold-mid);
  color: #5a3c00;
  padding: 2px 6px;
  border-radius: 20px;
  margin-left: 4px;
  flex-shrink: 0;
}

/* ===== CUSTOM COLOUR PICKER ===== */
.ccp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44, 44, 44, 0.55);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ccp-panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(44, 44, 44, 0.28);
  width: 100%;
  max-width: 296px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ccp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ccp-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--charcoal);
}

.ccp-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--charcoal);
  opacity: 0.55;
  padding: 2px 6px;
  border-radius: 6px;
  line-height: 1;
  cursor: pointer;
  transition: opacity var(--transition);
}
.ccp-close:hover { opacity: 1; }

/* Saturation–Value gradient square */
.ccp-sv-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  cursor: crosshair;
  touch-action: none;
}

.ccp-sv-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.ccp-sv-thumb {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  transform: translate(-50%, -50%);
  top: 0;
  left: 0;
}

/* Hue rainbow strip */
.ccp-hue-wrap {
  position: relative;
  width: 100%;
  height: 20px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  touch-action: none;
}

.ccp-hue-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.ccp-hue-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

/* Bottom row: swatch + # + hex input + Done */
.ccp-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ccp-swatch {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1.5px solid var(--border);
}

.ccp-hash {
  font-size: 0.95rem;
  color: var(--charcoal);
  opacity: 0.5;
  font-weight: 600;
  flex-shrink: 0;
}

.ccp-hex-input {
  flex: 1;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  background: var(--cream);
  color: var(--charcoal);
  text-transform: uppercase;
  outline: none;
  min-width: 0;
}
.ccp-hex-input:focus {
  border-color: var(--walnut);
  background: var(--white);
}

.ccp-done {
  flex-shrink: 0;
}

/* ===== CALENDAR ===== */
.cal-page-wrap { padding: 0 0 80px; }

/* Needs Attention panel */
.cal-attention {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 14px;
  overflow: hidden;
}
.cal-attention-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: var(--walnut-tint);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
}
.cal-attention-title { font-size: 0.85rem; font-weight: 700; color: var(--walnut); flex: 1; }
.cal-attention-badge {
  background: var(--danger);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
}
.cal-attention-body { padding: 6px 14px 10px; }
.cal-attention-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f0ebe2;
}
.cal-attention-item:last-child { border-bottom: none; }
.cal-attn-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.cal-attn-content { flex: 1; min-width: 0; }
.cal-attn-ref { font-size: 0.72rem; font-weight: 700; color: var(--walnut); }
.cal-attn-name { font-size: 0.82rem; font-weight: 600; color: var(--charcoal); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-attn-desc { font-size: 0.72rem; color: #888; margin-top: 1px; }
.cal-attn-actions { display: flex; gap: 4px; flex-shrink: 0; align-items: center; }

/* Month card */
.cal-month-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 14px;
}
.cal-month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.cal-month-title { font-size: 0.95rem; font-weight: 700; color: var(--charcoal); }
.cal-nav-btn {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--charcoal);
  transition: all var(--transition);
}
.cal-nav-btn:hover { border-color: var(--walnut); color: var(--walnut); }

.cal-grid-wrap { padding: 8px 8px 12px; }
.cal-day-headers { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 4px; }
.cal-day-header { text-align: center; font-size: 0.65rem; font-weight: 700; color: #bbb; letter-spacing: 0.04em; padding: 4px 0; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-cell {
  min-height: 46px;
  border-radius: 8px;
  padding: 4px 2px 5px;
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cal-cell:hover { background: var(--cream); }
.cal-cell.today .cal-day-num {
  background: var(--walnut);
  color: var(--white);
  border-radius: 50%;
  width: 24px; height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cal-cell.other-month .cal-day-num { color: #ccc; }
.cal-cell.selected { background: var(--walnut-tint); }
.cal-day-num { font-size: 0.78rem; font-weight: 600; color: var(--charcoal); line-height: 24px; min-width: 24px; text-align: center; flex-shrink: 0; }
.cal-dots { display: flex; flex-wrap: wrap; gap: 2px; justify-content: center; margin-top: 2px; }
.cal-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

/* Day panel */
.cal-day-panel {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 14px;
  overflow: hidden;
}
.cal-day-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.cal-day-panel-title { font-size: 0.88rem; font-weight: 700; color: var(--charcoal); flex: 1; }
.cal-day-panel-close { background: none; border: none; font-size: 1.2rem; color: #aaa; cursor: pointer; padding: 0 4px; line-height: 1; }
.cal-day-panel-close:hover { color: var(--charcoal); }
.cal-day-event {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid #f0ebe2;
}
.cal-day-event:last-child { border-bottom: none; }
.cal-event-stripe { width: 4px; border-radius: 4px; align-self: stretch; flex-shrink: 0; min-height: 42px; }
.cal-event-content { flex: 1; min-width: 0; }
.cal-event-type { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #bbb; margin-bottom: 2px; }
.cal-event-name { font-size: 0.85rem; font-weight: 700; color: var(--charcoal); }
.cal-event-name { font-size: 0.85rem; font-weight: 700; color: var(--charcoal); }
.cal-btn-disabled { opacity: 0.38; cursor: default; }
.cal-event-ref { font-size: 0.72rem; color: var(--walnut); font-weight: 600; }
.cal-event-desc { font-size: 0.75rem; color: #888; margin-top: 2px; }
.cal-event-btns { display: flex; flex-direction: column; gap: 5px; flex-shrink: 0; align-items: flex-end; }

/* Three-icon contact row */
.cal-icon-btns { display: flex; gap: 4px; }
.cal-icon-btn {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--charcoal);
  transition: all var(--transition);
  text-decoration: none;
  flex-shrink: 0;
}
.cal-icon-btn:hover { background: var(--cream); border-color: var(--walnut); color: var(--walnut); }
.cal-icon-btn.cal-icon-email { border-color: var(--sage); color: var(--sage); }
.cal-icon-btn.cal-icon-email:hover { background: #eef4ea; border-color: #4a6338; color: #4a6338; }
.cal-icon-btn.cal-icon-whatsapp { border-color: var(--sage); color: var(--sage); }
.cal-icon-btn.cal-icon-whatsapp:hover { background: #eef4ea; border-color: #4a6338; color: #4a6338; }
.cal-icon-btn.cal-icon-phone { border-color: var(--sage); color: var(--sage); }
.cal-icon-btn.cal-icon-phone:hover { background: #eef4ea; border-color: #4a6338; color: #4a6338; }
.cal-icon-btn.cal-icon-share { border-color: var(--sage); color: var(--sage); }
.cal-icon-btn.cal-icon-share:hover { background: #eef4ea; border-color: #4a6338; color: #4a6338; }

/* Labeled variant — used in customer dashboard only */
.cal-icon-btn.cdv-labeled {
  width: auto;
  padding: 0 12px;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* View Customer button in day panel */
.cal-view-cust-btn {
  padding: 4px 8px;
  border-radius: 7px;
  border: 1.5px solid var(--border);
  background: var(--cream);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  width: 100%;
}
.cal-view-cust-btn:hover { border-color: var(--walnut); color: var(--walnut); background: var(--walnut-tint); }
.cal-day-empty { padding: 20px 14px; text-align: center; font-size: 0.82rem; color: #aaa; }

/* Legend */
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 4px 0 0;
}
.cal-legend-item { display: flex; align-items: center; gap: 5px; font-size: 0.72rem; color: #666; font-weight: 600; }
.cal-legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* Email composer modal */
.cal-email-modal-card { max-width: 520px; }
.cal-template-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.cal-template-btn {
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition);
  width: 100%;
}
.cal-template-btn:hover, .cal-template-btn.selected { border-color: var(--walnut); background: var(--walnut-tint); }
.cal-template-btn-title { font-size: 0.82rem; font-weight: 700; color: var(--charcoal); }
.cal-template-btn-desc { font-size: 0.72rem; color: #888; margin-top: 2px; }
.cal-email-preview {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  font-size: 0.78rem;
  color: var(--charcoal);
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 14px;
}

/* Job schedule strip inside customer dashboard job card */
.cdv-job-schedule {
  padding: 10px 14px 4px;
  border-top: 1px solid #f0ebe2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cdv-schedule-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cdv-accepted-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--charcoal);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.cdv-accepted-label input[type="checkbox"] {
  accent-color: var(--sage);
  width: 16px; height: 16px;
  flex-shrink: 0;
}
.cdv-start-date-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

/* Job Completed date prompt */
.cdv-completed-prompt {
  background: var(--walnut-tint);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}
.cdv-prompt-msg {
  font-size: 0.78rem;
  color: var(--charcoal);
  line-height: 1.45;
  margin-bottom: 9px;
}
.cdv-prompt-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cdv-today-btn {
  background: var(--walnut);
  color: var(--white);
  border: none;
  border-radius: 7px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}
.cdv-today-btn:hover { background: var(--walnut-d); }
.cdv-prompt-or {
  font-size: 0.73rem;
  color: #999;
  white-space: nowrap;
}
.cdv-prompt-date {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 0.78rem;
  background: var(--white);
  color: var(--charcoal);
  min-width: 0;
}
.cdv-prompt-date:focus { border-color: var(--walnut); outline: none; }
.cdv-start-date-label { font-size: 0.72rem; color: #888; white-space: nowrap; font-weight: 600; }
.cdv-start-date-input,
.cdv-completed-date-input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 0.78rem;
  background: var(--cream);
  color: var(--charcoal);
  min-width: 0;
}
.cdv-start-date-input:focus,
.cdv-completed-date-input:focus { border-color: var(--walnut); outline: none; background: var(--white); }

/* ===== QR + QUALIFICATIONS TWO-COLUMN LAYOUT ===== */
.qr-quals-row {
  display: flex;
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.qr-quals-col {
  flex: 1 1 0;
  min-width: 0;
  padding: 16px 14px;
}
.qr-quals-divider {
  width: 1px;
  background: var(--border);
  flex-shrink: 0;
}
.quals-upload-area { cursor: pointer; }
.quals-file-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 0;
}
.quals-file-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  background: var(--cream-d);
  border-radius: 7px;
  padding: 6px 8px;
}
.quals-file-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--charcoal);
}
.quals-remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #c0392b;
  font-size: 0.9rem;
  padding: 0 2px;
  line-height: 1;
  flex-shrink: 0;
}
.quals-add-more-btn {
  display: block;
  width: 100%;
  margin-top: 8px;
}

/* ===== CALENDAR SYNC BUTTON & MODAL ===== */
.cal-sync-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 0.82rem;
  padding: 6px 12px;
  margin-top: 4px;
}
.cal-sync-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 0;
}
.cal-sync-step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--charcoal);
  line-height: 1.5;
}
.cal-sync-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ===== MY QUALIFICATIONS MODAL LIST ===== */
.quals-modal-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quals-modal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: var(--cream-d);
  border-radius: 10px;
}
.quals-modal-row-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--charcoal);
  min-width: 0;
  overflow: hidden;
}
.quals-modal-row-info span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quals-modal-row-btns {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* ===== CHASE PAYMENTS ===== */
.nav-chase-badge {
  background: #c0392b !important;
}
.chase-modal-card {
  max-width: 480px;
  max-height: 85dvh;
  display: flex;
  flex-direction: column;
}
.chase-modal-card .modal-body {
  overflow-y: auto;
  flex: 1;
}
.chase-row {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.chase-row:last-child { border-bottom: none; }
.chase-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.chase-row-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--charcoal);
}
.chase-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.chase-tag-gentle   { background: #e8f5e9; color: #2e7d32; }
.chase-tag-invoice  { background: #e3f2fd; color: #1565c0; }
.chase-tag-warning  { background: #fff3e0; color: #e65100; }
.chase-tag-critical { background: #fce4ec; color: #b71c1c; }
.chase-row-ref {
  font-size: 0.82rem;
  color: #888;
}
.chase-row-btns {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.chase-wa-btn, .chase-email-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1.5px solid;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.chase-wa-btn {
  background: var(--sage);
  border-color: var(--sage);
  color: #fff;
  flex: 1;
}
.chase-wa-btn:hover { background: #4a6338; border-color: #4a6338; }
.chase-email-btn {
  background: transparent;
  border-color: var(--sage);
  color: var(--sage);
}
.chase-email-btn:hover { background: #eef4ea; }
.chase-btn-disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

/* ===== SEASONAL BANNER ===== */
.seasonal-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: linear-gradient(135deg, #e8f4f8 0%, #dceefb 100%);
  border: 1.5px solid #b3d9f0;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  position: relative;
}
.seasonal-banner-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 1px; }
.seasonal-banner-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.seasonal-banner-text strong { font-size: 0.9rem; color: #1565c0; }
.seasonal-banner-text span   { font-size: 0.8rem; color: #444; }
.seasonal-banner-btn {
  background: #1565c0;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  align-self: center;
}
.seasonal-banner-btn:hover { background: #0d47a1; }
.seasonal-banner-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  font-size: 1rem;
  padding: 0 2px;
  flex-shrink: 0;
  line-height: 1;
  align-self: flex-start;
}

/* ===== WINTER PAUSE MODAL ===== */
.pause-stats-row {
  display: flex;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
}
.pause-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  border-right: 1px solid var(--border);
  background: var(--cream-d);
}
.pause-stat:last-child { border-right: none; }
.pause-stat-num {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--walnut);
}
.pause-stat-lbl {
  font-size: 0.72rem;
  color: #888;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.pause-explainer {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.5;
  margin: 0 0 12px;
}
.pause-price-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  background: #f0f8e8;
  border: 1px solid #c8e6a0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.8rem;
  color: #3a6b1a;
  line-height: 1.4;
  margin-bottom: 4px;
}
.chase-before-pause {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.82rem;
  color: #795548;
  margin-top: 12px;
}
.nav-menu-pause {
  color: var(--walnut) !important;
}
.nav-menu-pause svg { stroke: var(--walnut) !important; }

/* ===== QUIET SEASON STYLES ===== */
.qs-intro-subtitle {
  font-family: 'Dancing Script', cursive;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--walnut);
  margin: 0 0 16px;
}
.qs-free-text {
  font-family: 'Dancing Script', cursive;
  font-weight: 700;
  font-size: 1.1em;
  color: var(--walnut);
}

.qs-can-do-list {
  list-style: none;
  padding: 0;
  margin: 0 0 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.qs-can-do-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--charcoal);
}
.qs-can-do-list li::before {
  content: '✓';
  color: #2e7d32;
  font-weight: 700;
  flex-shrink: 0;
}

.qs-active-badge {
  display: inline-flex;
  align-items: center;
  background: #2e7d32;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  letter-spacing: 0.04em;
  margin-left: auto;
}

.qs-duration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
@media (max-width: 420px) {
  .qs-duration-grid { grid-template-columns: repeat(2, 1fr); }
}

.qs-duration-btn {
  padding: 11px 8px;
  border: 2px solid var(--border);
  border-radius: 99px;
  background: var(--cream);
  color: var(--charcoal);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  min-height: 44px;
}
.qs-duration-btn:hover {
  border-color: var(--walnut);
  background: var(--walnut-tint);
}
.qs-duration-btn.selected {
  background: var(--walnut);
  border-color: var(--walnut);
  color: #fff;
}

.qs-end-date {
  background: var(--walnut-tint);
  border: 1.5px solid var(--walnut);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--walnut);
  margin-bottom: 16px;
  text-align: center;
}

/* ===== PAUSED SCREEN ===== */
.paused-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(160deg, var(--walnut-tint) 0%, var(--cream) 60%, #f0ebe0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.paused-card {
  background: #fff;
  border-radius: 24px;
  padding: 32px 24px 28px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 40px rgba(125,87,48,.15);
}
.paused-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--walnut);
  margin: 0 0 10px;
}
.paused-sub {
  font-size: 0.9rem;
  color: #555;
  margin: 0 0 16px;
  line-height: 1.5;
}
.paused-stats {
  margin-bottom: 16px;
}
.paused-stat-note {
  background: var(--cream-d);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--charcoal);
  line-height: 1.4;
}
.paused-resume-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1rem;
  padding: 14px 20px;
  border-radius: 14px;
  width: 100%;
  margin-bottom: 12px;
}
.paused-chase-link {
  background: none;
  border: none;
  color: var(--walnut);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px 0;
}
.paused-chase-link:hover { color: var(--walnut-d); }

/* ===== SEARCH ===== */
.jobs-search-wrap {
  position: relative;
  margin-bottom: 10px;
}
.jobs-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  pointer-events: none;
}
.jobs-search-input {
  width: 100%;
  padding: 9px 12px 9px 34px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
  background: var(--white);
  color: var(--charcoal);
  outline: none;
  box-sizing: border-box;
}
.jobs-search-input:focus { border-color: var(--sage); }
.jobs-search-input::placeholder { color: #bbb; }

/* ===== CUSTOMER EXTRAS (sticky notes + recurring) ===== */
.cdv-extras-section {
  border-top: 1px solid var(--border);
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fdfcfa;
}
.cdv-extras-row { display: flex; flex-direction: column; gap: 5px; }
.cdv-extras-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.cdv-sticky-note {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.85rem;
  font-family: inherit;
  resize: vertical;
  background: var(--cream-d);
  color: var(--charcoal);
  outline: none;
  box-sizing: border-box;
}
.cdv-sticky-note:focus { border-color: var(--sage); background: var(--white); }
.cdv-recurring-select {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.85rem;
  background: var(--cream-d);
  color: var(--charcoal);
  outline: none;
}
.cdv-recurring-select:focus { border-color: var(--sage); }
.attn-recurring { background: #f3e8ff; color: #6b21a8; }
.attn-recurring:hover { background: #e9d5ff; }

/* ===== EARNINGS SUMMARY ===== */
.earnings-modal-card { max-width: 460px; }
.earn-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.earn-stat {
  background: var(--cream-d);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.earn-stat-num { font-size: 1.2rem; font-weight: 800; color: var(--charcoal); }
.earn-stat-lbl { font-size: 0.72rem; color: #888; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
.earn-paid { color: #2e7d32; }
.earn-owed { color: #c0392b; }
.earn-breakdown { margin-bottom: 14px; }
.earn-breakdown-title { font-size: 0.8rem; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: .3px; margin-bottom: 8px; }
.earn-month-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.earn-month-row:last-child { border-bottom: none; }
.earn-month-name { flex: 1; font-weight: 600; color: var(--charcoal); }
.earn-month-invoiced { color: #888; font-size: 0.8rem; }
.earn-month-paid { font-size: 0.8rem; }
.earn-full { color: #2e7d32; }
.earn-partial { color: #e67e22; }
.earn-tax-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  background: #f0f8e8;
  border: 1px solid #c8e6a0;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.78rem;
  color: #3a6b1a;
  line-height: 1.4;
}

/* ===== ATTENTION WIDGET ===== */
.attn-widget {
  border: 1.5px solid #f0c27a;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #fffbf3;
}
.attn-widget-header {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: none;
  border: none;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
  color: #8a5a00;
  text-align: left;
}
.attn-widget-header svg:first-child { color: #e67e22; flex-shrink: 0; }
.attn-widget-header span { flex: 1; }
.attn-chevron { transition: transform 0.2s; flex-shrink: 0; }
.attn-widget-body { border-top: 1px solid #f0e0b0; }
.attn-widget-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid #f8edcc;
}
.attn-widget-row:last-child { border-bottom: none; }
.attn-widget-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.attn-widget-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.attn-widget-name { font-weight: 700; font-size: 0.82rem; color: var(--charcoal); }
.attn-widget-msg  { font-size: 0.75rem; color: #888; }
.attn-action-btn {
  flex-shrink: 0;
  border: none;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.attn-chase { background: #fde8e8; color: #c0392b; }
.attn-chase:hover { background: #f5c6c6; }
.attn-send  { background: #fef3e2; color: #8a5a00; }
.attn-send:hover  { background: #fde8c0; }

/* ===== FILTER TOGGLE ===== */
.jobs-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.jobs-search-row .jobs-search-wrap {
  flex: 1;
  margin-bottom: 0;
}

.filter-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #aaa;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
}
.filter-toggle:hover { border-color: var(--sage); color: var(--sage); }
.filter-toggle svg { flex-shrink: 0; transition: transform 0.2s; }

/* ===== JOB CARD ACTIONS ===== */
.job-card-actions {
  display: flex;
  gap: 8px;
  padding: 8px 14px 12px;
}
.jca-open {
  flex-shrink: 0;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  transition: all 0.15s;
}
.jca-open:hover { border-color: var(--sage); color: var(--sage); background: #eef4ea; }
.jca-primary {
  flex: 1;
  border: none;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.jca-send    { background: var(--sage); color: #fff; }
.jca-send:hover    { background: #4a6338; }
.jca-invoice { background: var(--sage); color: #fff; }
.jca-invoice:hover { background: #4a6338; }
.jca-chase   { background: #fde8e8; color: #c0392b; border: 1.5px solid #f5b8b8; }
.jca-chase:hover   { background: #f5c6c6; }
.jca-paid    { background: var(--cream-d); color: var(--charcoal); border: 1.5px solid var(--border); }
.jca-paid:hover    { background: var(--cream); }

/* ===== QUICK QUOTE BANNER ===== */
.quick-quote-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  background: var(--sage);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, transform 0.1s;
  box-shadow: 0 3px 10px rgba(59,94,43,.25);
}
.quick-quote-banner:hover  { background: #4a6338; }
.quick-quote-banner:active { transform: scale(0.98); }
.qq-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.qq-left svg { flex-shrink: 0; opacity: 0.9; }
.qq-title {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
}
.qq-sub {
  display: block;
  font-size: 0.78rem;
  opacity: 0.82;
  margin-top: 2px;
}

/* ===== CUSTOMER FORM — EXPAND TOGGLE ===== */
.cust-more-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--sage);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0 4px;
  margin-top: 4px;
}
.cust-more-toggle:hover { color: #4a6338; }
.cust-more-toggle svg { transition: transform 0.2s; flex-shrink: 0; }
.cust-extra-fields { margin-top: 4px; }

/* ===== SEND CHOICE MODAL ===== */
/* Sit above the customer dashboard and other modals */
#sendChoiceModal,
#bizInfoModal { z-index: 400; }
.send-choice-card { max-width: 400px; }
.send-choice-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 20px 24px;
}
.send-choice-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 14px;
  background: var(--cream-d);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
  width: 100%;
}
.send-choice-btn:hover {
  background: var(--cream);
  border-color: var(--sage);
}
.send-choice-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--sage);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.send-choice-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.send-choice-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--charcoal);
}
.send-choice-desc {
  font-size: 0.78rem;
  color: #888;
}
.send-choice-arrow {
  color: #bbb;
  flex-shrink: 0;
}

/* ===== QUALIFICATIONS INSIDE SEND MY BUSINESS INFO ===== */
.biz-info-quals-section {
  margin-top: 2px;
}
.biz-info-quals-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}
.biz-info-qual-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.biz-info-qual-row:last-child { border-bottom: none; }
.biz-info-qual-name {
  flex: 1;
  font-size: 0.85rem;
  color: var(--charcoal);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.biz-info-qual-btns {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

