:root {
  --ivory: #f7f1e7;
  --panel: #fffdf8;
  --panel-soft: #fdf8ef;
  --text: #24211d;
  --muted: #6f675b;
  --border: #e5d9c9;
  --gold: #b7934a;
  --sage: #7d9371;
  --rose: #bd7f8c;
  --shadow: 0 18px 48px rgba(71, 55, 31, 0.12);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--ivory);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.75), rgba(247, 241, 231, 0.95)),
    var(--ivory);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  border-right: 1px solid var(--border);
  background: rgba(255, 253, 248, 0.78);
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand h1,
.brand p,
.topbar h2,
.topbar p,
.panel h3,
.profile-hero h3 {
  margin: 0;
}

.brand h1 {
  font-size: 1.08rem;
}

.brand p,
.muted,
.panel-heading span,
.identity-panel span,
small {
  color: var(--muted);
}

.nav {
  display: grid;
  gap: 8px;
}

.nav button,
.branch-filter button,
.form-tabs button,
.pipeline-stage button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 13px;
  border-radius: 6px;
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #a98a55;
}

.nav-label {
  min-width: 0;
}

.nav button.active,
.nav button:hover {
  background: #f2e7d5;
  border-color: #dfcfb6;
}

.nav button.active .nav-icon,
.nav button:hover .nav-icon {
  color: var(--gold);
}

.identity-panel {
  margin-top: auto;
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--border);
  background: var(--panel-soft);
  border-radius: 8px;
  font-size: 0.9rem;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(100%, 420px);
  display: grid;
  gap: 18px;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.auth-card h2 {
  margin: 0;
  font-size: 1.35rem;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 7px;
  font-size: 0.9rem;
  font-weight: 700;
}

.auth-form input {
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
}

.auth-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #d8a1a1;
  border-radius: 6px;
  background: #fff1f1;
  color: #8a2424;
  font-size: 0.9rem;
}

.document-notice {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--gold);
  background: #fff8ed;
  color: #4f473d;
  font-size: 0.88rem;
}

.language-toggle {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fffdf8;
}

.language-toggle button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 9px 10px;
  font-weight: 800;
}

.language-toggle button.active {
  background: #f2e7d5;
  color: var(--text);
}

.main {
  padding: 28px;
  min-width: 0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  position: sticky;
  top: 0;
  z-index: 10;
  margin: -28px -28px 24px;
  padding: 22px 28px 16px;
  background: var(--ivory);
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.76rem;
  font-weight: 800;
}

.topbar h2 {
  font-size: 1.55rem;
  line-height: 1.2;
  font-weight: 750;
}

.branch-filter,
.form-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.branch-filter button,
.form-tabs button {
  border-color: var(--border);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 253, 248, 0.84);
  white-space: nowrap;
}

.branch-filter button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.branch-filter .nav-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--accent);
}

.branch-filter button.active {
  border-color: var(--accent);
  color: var(--accent);
  background: #fffaf0;
}

.form-tabs button.active {
  border-color: var(--gold);
  background: #fffaf0;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric-card,
.panel,
.profile-hero,
.contract-preview,
.calendar-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric-card {
  padding: 18px;
  display: grid;
  gap: 10px;
  color: var(--text);
  text-align: left;
}

.metric-card:hover,
.metric-card:focus-visible,
.metric-card.active {
  border-color: var(--gold);
  background: #fffaf0;
  outline: none;
}

.metric-card span {
  color: var(--muted);
  font-size: 0.86rem;
}

.metric-card strong {
  font-size: 1.55rem;
}

.dashboard-grid,
.detail-grid,
.backend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.panel {
  padding: 18px;
  min-width: 0;
}

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

.panel-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-heading h3 {
  font-size: 1.05rem;
  line-height: 1.25;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 10px;
  overflow-x: auto;
}

.pipeline-stage {
  min-height: 160px;
  border: 1px solid var(--border);
  background: #fcf6ec;
  border-radius: 8px;
  padding: 12px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.pipeline-stage span {
  color: var(--gold);
  font-weight: 800;
}

.pipeline-stage button {
  padding: 8px;
  border-color: #eadcca;
  background: #fffdf8;
  border-radius: 6px;
  font-size: 0.8rem;
  line-height: 1.25;
}

.pipeline-stage p {
  color: var(--muted);
  margin: 0;
}

.client-directory-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.contract-layout,
.invoice-layout,
.proposal-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 18px;
  align-items: start;
}

.contract-layout .form-actions {
  margin-top: 18px;
}

.client-list-panel {
  padding: 0;
  overflow: hidden;
}

.directory-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.directory-toolbar h3,
.directory-toolbar span {
  margin: 0;
}

.directory-toolbar span {
  color: var(--muted);
  font-size: 0.88rem;
}

.directory-actions,
.profile-actions,
.form-actions {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.quote-save-status {
  margin-right: auto;
  align-self: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.client-search {
  width: min(420px, 100%);
}

.client-table-wrap {
  overflow: auto;
  max-height: 480px;
}

.client-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
}

.client-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fbf7ef;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0;
  border-bottom: 1px solid var(--border);
  padding: 10px 12px;
  white-space: nowrap;
}

.client-table td {
  border-bottom: 1px solid #eee4d6;
  padding: 11px 12px;
  vertical-align: middle;
  color: #3f3931;
  white-space: nowrap;
}

.client-table tbody tr {
  cursor: pointer;
}

.client-table tbody tr:hover,
.client-table tbody tr:focus {
  background: #fffaf0;
  outline: none;
}

.client-table tbody tr.active {
  background: #f6ead7;
  box-shadow: inset 4px 0 0 var(--gold);
}

.client-table td strong,
.client-table td span,
.client-table td small {
  display: block;
}

.client-table td small {
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-pills {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.service-pills span,
.status-pill {
  display: inline-flex;
  width: max-content;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1e3bd;
  color: #5f4921;
  font-size: 0.76rem;
  font-weight: 800;
}

.service-pills .branch-decorations {
  background: #dfead9;
  color: #4d6544;
}

.service-pills .branch-boutique {
  background: #f5dfe5;
  color: #8a5360;
}

.service-pills .branch-all {
  background: #efe3c3;
  color: #5f4921;
}

.status-pill {
  background: #f4f0e9;
  color: #4f473d;
}

.empty-table {
  height: 90px;
  text-align: center;
  color: var(--muted);
}

.profile-stack {
  display: grid;
  gap: 14px;
}

.profile-hero {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.profile-hero h3 {
  font-size: 1.35rem;
  line-height: 1.2;
}

.profile-hero p:last-child {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.contract-preview h3 {
  font-size: 1.7rem;
}

.primary-button {
  border: 1px solid #9f7b35;
  background: var(--gold);
  color: #fff;
  border-radius: 6px;
  padding: 11px 14px;
  font-weight: 700;
  white-space: nowrap;
}

.secondary-button {
  border: 1px solid var(--border);
  background: #fffdf8;
  color: var(--text);
  border-radius: 6px;
  padding: 11px 14px;
  font-weight: 700;
  white-space: nowrap;
}

.profile-actions .primary-button,
.profile-actions .secondary-button {
  padding: 9px 12px;
  font-size: 0.9rem;
}

.client-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.client-form .panel-heading,
.client-form .full,
.service-checkboxes,
.form-actions {
  grid-column: 1 / -1;
}

.service-checkboxes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px 14px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fffdf8;
}

.service-checkboxes legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.service-checkboxes label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.service-checkboxes input {
  width: auto;
}

.form-actions {
  justify-content: end;
}

.detail-list {
  display: grid;
  gap: 9px;
  margin: 0;
}

.detail-list div {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) 1fr;
  gap: 12px;
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  font-weight: 650;
}

.notes {
  line-height: 1.55;
  color: #4f473d;
}

.service-row,
.timeline-row,
.appointment-row,
.payment-row,
.contract-row,
.file-row,
.task-row,
.role-grid article {
  border-top: 1px solid var(--border);
  padding: 12px 0;
  display: grid;
  gap: 5px;
}

.client-action-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.client-action-form label {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
}

.client-action-form input,
.client-action-form select,
.client-action-form textarea {
  width: 100%;
  min-height: 36px;
  padding: 8px 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
}

.client-action-form textarea {
  min-height: 72px;
  resize: vertical;
}

.client-action-form .full {
  grid-column: 1 / -1;
}

.client-action-form .primary-button,
.client-action-form .secondary-button {
  width: max-content;
}

.file-row,
.task-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.file-row > div,
.task-row > div {
  display: grid;
  gap: 4px;
}

.service-row:first-of-type,
.timeline-row:first-of-type,
.appointment-row:first-of-type,
.payment-row:first-of-type,
.contract-row:first-of-type,
.file-row:first-of-type,
.task-row:first-of-type {
  border-top: 0;
}

.service-row {
  border-left: 4px solid var(--gold);
  padding-left: 12px;
}

.branch-decorations {
  border-left-color: var(--sage);
}

.branch-boutique {
  border-left-color: var(--rose);
}

.branch-all {
  border-left-color: var(--gold);
}

.payment-row.overdue span {
  color: #9a3e32;
  font-weight: 800;
}

.clickable-row {
  width: 100%;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.clickable-row:hover,
.clickable-row:focus-visible {
  background: #fffaf0;
  outline: 2px solid rgba(183, 147, 74, 0.22);
  outline-offset: -2px;
}

.dashboard-detail-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) 1fr;
  gap: 18px;
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.dashboard-metric-list {
  display: grid;
  gap: 8px;
}

.metric-list-row {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--text);
  text-align: left;
}

.metric-list-row:hover,
.metric-list-row:focus-visible {
  border-color: var(--gold);
  background: #fffaf0;
  outline: none;
}

.metric-list-row span,
.metric-list-row small {
  color: var(--muted);
}

.payments-shell {
  display: grid;
  gap: 18px;
}

.payment-metrics {
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  margin-bottom: 0;
}

.payment-workspace {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 18px;
  align-items: start;
}

.payment-form {
  display: grid;
  gap: 13px;
}

.payment-form .full {
  grid-column: 1 / -1;
}

.compact-table,
.invoice-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.compact-table th,
.compact-table td,
.invoice-table th,
.invoice-table td {
  border-bottom: 1px solid var(--border);
  padding: 11px 10px;
  text-align: left;
  vertical-align: top;
}

.compact-table th,
.invoice-table th {
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.payment-ledger {
  overflow: auto;
}

.invoice-preview,
.proposal-preview {
  min-height: 640px;
  padding: 34px;
  background: #fffefa;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.invoice-head,
.proposal-head,
.invoice-parties,
.invoice-totals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.invoice-head,
.proposal-head {
  align-items: start;
  padding-bottom: 24px;
  border-bottom: 2px solid #dcc8a6;
}

.invoice-head h3,
.proposal-head h3 {
  margin: 0;
}

.invoice-head h3 {
  font-size: 1.7rem;
  line-height: 1.2;
}

.proposal-head h3 {
  font-size: 1.7rem;
  line-height: 1.2;
}

.invoice-head div:last-child,
.proposal-head div:last-child {
  display: grid;
  gap: 8px;
  justify-items: end;
  color: var(--muted);
}

.proposal-intro {
  margin: 24px 0;
  display: grid;
  gap: 8px;
}

.proposal-intro span,
.proposal-next-steps strong {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.proposal-intro p {
  margin: 0;
  color: #4f473d;
  line-height: 1.55;
}

.proposal-event-strip,
.proposal-next-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.proposal-event-strip span,
.proposal-next-steps span {
  border: 1px solid var(--border);
  background: #fcf6ec;
  border-radius: 8px;
  padding: 11px;
  font-weight: 750;
}

.proposal-preview h4 {
  margin: 26px 0 8px;
  font-size: 1rem;
}

.invoice-parties {
  margin: 24px 0;
}

.invoice-parties div {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  background: #fcf6ec;
}

.invoice-parties span {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 800;
}

.invoice-parties p {
  margin: 8px 0 0;
  color: #4f473d;
  line-height: 1.5;
}

.invoice-table small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

.invoice-totals {
  margin-top: 24px;
  justify-items: end;
  grid-template-columns: 1fr;
}

.invoice-totals span {
  display: flex;
  justify-content: space-between;
  width: min(340px, 100%);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 11px 12px;
  background: #fffdf8;
  color: var(--text);
}

textarea {
  min-height: 108px;
  resize: vertical;
}

.google-calendar-shell {
  overflow: hidden;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(60, 64, 67, 0.08);
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid #e0e3e7;
  background: #fff;
}

.calendar-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.calendar-title-group h3 {
  margin: 0 0 0 8px;
  font-size: 1.35rem;
  font-weight: 500;
  color: #3c4043;
}

.today-button,
.icon-button,
.calendar-view-switch button,
.mini-grid button,
.year-month,
.week-day-head,
.month-cell {
  border: 1px solid #dadce0;
  background: #fff;
  color: #3c4043;
}

.today-button {
  min-height: 36px;
  padding: 0 15px;
  border-radius: 4px;
  font-weight: 600;
}

.icon-button {
  width: 34px;
  height: 34px;
  border-color: transparent;
  border-radius: 50%;
  font-size: 1.35rem;
  line-height: 1;
  text-align: center;
}

.icon-button:hover,
.mini-grid button:hover,
.month-cell:hover,
.week-day-head:hover {
  background: #f1f3f4;
}

.calendar-view-switch {
  display: flex;
  overflow: hidden;
  border: 1px solid #dadce0;
  border-radius: 6px;
}

.calendar-view-switch button {
  border: 0;
  border-right: 1px solid #dadce0;
  padding: 9px 13px;
  text-transform: capitalize;
}

.calendar-view-switch button:last-child {
  border-right: 0;
}

.calendar-view-switch button.active {
  background: #e8f0fe;
  color: #1967d2;
}

.calendar-workspace {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 660px;
}

.calendar-side-panel {
  padding: 18px;
  border-right: 1px solid #e0e3e7;
  background: #fff;
  overflow: auto;
}

.create-event-button {
  width: 136px;
  height: 48px;
  border: 1px solid #dadce0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(60, 64, 67, 0.2);
  color: #3c4043;
  font-weight: 700;
  text-align: center;
}

.calendar-form {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #dadce0;
  border-radius: 8px;
  background: #fffdf8;
}

.calendar-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.calendar-form-head button {
  width: 28px;
  height: 28px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: #5f6368;
  font-size: 1.1rem;
  line-height: 1;
}

.calendar-form-head button:hover {
  background: #f1f3f4;
}

.calendar-form label {
  gap: 5px;
  font-size: 0.78rem;
}

.calendar-form input,
.calendar-form select,
.calendar-form textarea {
  padding: 8px 9px;
  border-color: #dadce0;
  background: #fff;
  font-size: 0.86rem;
}

.calendar-form textarea {
  min-height: 74px;
}

.calendar-form .form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.mini-month {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.mini-month strong {
  color: #3c4043;
  font-size: 0.92rem;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  align-items: center;
}

.mini-grid span {
  color: #70757a;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
}

.mini-grid button {
  border-color: transparent;
  border-radius: 50%;
  aspect-ratio: 1;
  padding: 0;
  font-size: 0.78rem;
}

.mini-grid button.active {
  background: #1a73e8;
  color: #fff;
}

.mini-grid button.muted {
  color: #bdc1c6;
}

.panel-lite.filters-panel {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.calendar-main-view {
  min-width: 0;
  overflow: auto;
  background: #fff;
}

.month-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(112px, 1fr));
  grid-template-rows: 38px repeat(6, minmax(104px, 1fr));
  min-width: 820px;
  min-height: 660px;
}

.calendar-day-name {
  display: grid;
  place-items: center;
  border-right: 1px solid #e0e3e7;
  border-bottom: 1px solid #e0e3e7;
  color: #70757a;
  font-size: 0.78rem;
  font-weight: 700;
}

.month-cell {
  display: block;
  min-width: 0;
  padding: 8px 6px;
  border-width: 0 1px 1px 0;
  border-color: #e0e3e7;
  border-radius: 0;
  text-align: left;
  overflow: hidden;
}

.month-cell.outside {
  background: #fafafa;
  color: #9aa0a6;
}

.month-cell.selected .date-number {
  background: #1a73e8;
  color: #fff;
}

.date-number {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 0.82rem;
}

.calendar-chip {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 3px 7px;
  border-radius: 4px;
  background: #f1e3bd;
  color: #3c4043;
  font-size: 0.76rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 0;
  text-align: left;
}

.calendar-chip:hover:not(:disabled),
.calendar-chip:focus-visible {
  outline: 2px solid rgba(26, 115, 232, 0.24);
  outline-offset: 1px;
}

.calendar-chip:disabled {
  cursor: default;
  opacity: 0.82;
}

.calendar-chip.branch-decorations {
  background: #dfead9;
}

.calendar-chip.branch-boutique {
  background: #f5dfe5;
}

.calendar-chip.branch-all {
  background: #e8f0fe;
}

.calendar-chip b {
  font-weight: 800;
}

/* Inquiry party dates: wished-for, not reserved. */
.calendar-chip.is-unbooked,
.schedule-item.is-unbooked {
  background: transparent;
  border: 1px dashed #c9b27a;
  color: #6b6f73;
}

.calendar-chip.is-unbooked b {
  font-weight: 700;
}

.week-calendar {
  display: grid;
  grid-template-columns: 72px repeat(7, minmax(128px, 1fr));
  grid-auto-rows: minmax(74px, auto);
  min-width: 980px;
}

.time-gutter,
.week-day-head,
.week-cell,
.day-time,
.day-slot,
.day-head {
  border-right: 1px solid #e0e3e7;
  border-bottom: 1px solid #e0e3e7;
}

.time-gutter,
.day-time {
  padding: 8px;
  color: #70757a;
  font-size: 0.76rem;
  text-align: right;
}

.week-day-head {
  display: grid;
  place-items: center;
  gap: 3px;
  padding: 8px;
  border-top: 0;
  border-left: 0;
}

.week-day-head span,
.day-head span {
  color: #70757a;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.week-day-head strong,
.day-head strong {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 500;
}

.week-day-head.active strong,
.day-head strong {
  background: #1a73e8;
  color: #fff;
}

.week-cell,
.day-slot {
  min-height: 74px;
  padding: 5px;
}

.day-calendar {
  display: grid;
  grid-template-columns: 82px 1fr;
  grid-auto-rows: minmax(66px, auto);
  min-height: 660px;
}

.day-head {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 12px;
}

.empty-calendar {
  grid-column: 2;
  color: #70757a;
  margin: 18px;
}

.year-calendar {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 18px;
  padding: 22px;
}

.year-month {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 8px;
  text-align: left;
}

.year-month span {
  color: #70757a;
  font-size: 0.8rem;
}

.year-month div {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.year-month i {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #70757a;
  font-style: normal;
  font-size: 0.68rem;
}

.year-month i.has-item {
  background: #e8f0fe;
  color: #1967d2;
  font-weight: 800;
}

.schedule-calendar {
  display: grid;
  align-content: start;
  min-height: 660px;
  min-width: 720px;
  background: #fff;
}

.schedule-day {
  display: grid;
  grid-template-columns: 116px 1fr;
  border-bottom: 1px solid #e0e3e7;
}

.schedule-date {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 4px;
  padding: 18px 12px;
  border: 0;
  border-right: 1px solid #e0e3e7;
  background: #fff;
  color: #3c4043;
  text-align: center;
}

.schedule-date:hover {
  background: #f8fafd;
}

.schedule-date span,
.schedule-date small,
.schedule-time,
.schedule-item small {
  color: #70757a;
}

.schedule-date span {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.schedule-date strong {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.28rem;
  font-weight: 500;
}

.schedule-day.active .schedule-date strong {
  background: #1a73e8;
  color: #fff;
}

.schedule-date small {
  font-size: 0.72rem;
}

.schedule-items {
  display: grid;
  min-width: 0;
  align-content: start;
  padding: 8px 0;
}

.schedule-item {
  display: grid;
  grid-template-columns: 88px 16px 1fr;
  align-items: start;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 10px 18px 10px 0;
  border: 0;
  background: transparent;
  color: #3c4043;
  text-align: left;
}

button.schedule-item:hover,
button.schedule-item:focus-visible {
  background: #f8fafd;
  outline: none;
}

.schedule-time {
  padding-top: 2px;
  text-align: right;
  font-size: 0.8rem;
  white-space: nowrap;
}

.schedule-marker {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: #b7934a;
}

.schedule-item.branch-decorations .schedule-marker {
  background: #7d9371;
}

.schedule-item.branch-boutique .schedule-marker {
  background: #bd7f8c;
}

.schedule-item.branch-all .schedule-marker {
  background: #1a73e8;
}

.schedule-item.source-payment .schedule-marker {
  border-radius: 3px;
}

.schedule-summary {
  display: grid;
  gap: 4px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.schedule-summary strong,
.schedule-summary small {
  overflow: hidden;
  text-overflow: ellipsis;
}

.schedule-summary strong {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
}

.schedule-summary small {
  font-size: 0.8rem;
  line-height: 1.35;
}

.quote-builder { background: #fff; padding: 24px; min-width: 0; }
.quote-toolbar, .quote-section-heading, .quote-document-title { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.quote-toolbar h3, .quote-section-heading h4 { margin: 0; }
.quote-notice { color: #426b54; min-height: 22px; font-size: .88rem; }
.quote-columns { display: grid; grid-template-columns: minmax(300px, .95fr) minmax(320px, 1.2fr); gap: 32px; }
.quote-editor, .quote-preview { min-width: 0; }
.quote-editor label { display: grid; gap: 7px; margin-bottom: 14px; }
.quote-editor fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.quote-editor fieldset:disabled { opacity: .65; }
.quote-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: center; }
.quote-schedule { margin-bottom: 16px; }
.quote-schedule summary { cursor: pointer; padding: 10px 0; font-size: .85rem; }
.quote-schedule summary span { color: #687167; display: block; margin-top: 5px; }
.quote-schedule[open] .quote-fields { margin-top: 12px; }
.quote-section-heading { padding: 18px 0 8px; border-top: 1px solid #e1dfd6; }
.quote-service { display: grid; grid-template-columns: minmax(0,1fr) 116px; align-items: center; gap: 8px 16px; padding: 12px 0; border-bottom: 1px solid #e5e5df; }
.quote-service .quote-check { display: flex; align-items: center; gap: 12px; margin: 0; cursor: pointer; }
.quote-check input { width: 20px; height: 20px; flex: 0 0 20px; accent-color: #9a7b36; }
.quote-check span { overflow-wrap: anywhere; }
.quote-service small, .quote-line small { display: block; font-size: .75rem; color: #6c726c; margin-top: 5px; }
.quote-price { margin: 0 !important; }
.quote-price input { text-align: right; padding: 9px; font-variant-numeric: tabular-nums; }
.quote-price small { text-align: right; }
.quote-link { border: 0; padding: 6px 0; color: #426b54; background: transparent; cursor: pointer; text-align: left; }
.quote-service > .quote-link { grid-column: 1 / -1; justify-self: end; font-size: .8rem; }
.quote-extra { display: grid; grid-template-columns: minmax(0,1fr) 105px auto; gap: 10px; align-items: end; padding: 20px 0; }
.quote-extra label { margin: 0; }
.quote-extra button { margin-bottom: 1px; }
.quote-preview { border-left: 1px solid #e3dfd5; padding: 20px 0 20px 32px; align-self: start; }
.quote-preview h2 { font-size: 30px; margin: 12px 0; }
.quote-document-title > span { color: #8a702f; font-size: .85rem; }
.quote-recipient { border-top: 2px solid #cbb981; padding-top: 22px; margin-top: 20px; }
.quote-recipient h3 { font-size: 1.12rem; overflow-wrap: anywhere; }
.quote-recipient p { color: #646a63; }
.quote-line, .quote-total { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid #e4e3dd; }
.quote-line span { min-width: 0; overflow-wrap: anywhere; }
.quote-line strong, .quote-total strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
.quote-total { font-size: 1.18rem; margin-top: 20px; }
.quote-booking { border-top: 1px solid #d7ddd7; margin-top: 24px; padding-top: 8px; }
.quote-warning { color: #904720; font-size: .85rem; }
.price-matrix { border-block: 1px solid #dedfd6; padding: 12px 0 22px; margin-bottom: 24px; }
.matrix-scroll { overflow-x: auto; }
.price-matrix table { width: 100%; border-collapse: collapse; min-width: 800px; }
.price-matrix th, .price-matrix td { padding: 8px; text-align: left; }
.price-matrix input { min-width: 85px; padding: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.venue-calendar { min-width: 680px; background: white; }
.venue-calendar-head, .venue-calendar-row { display: grid; grid-template-columns: 60px repeat(var(--venue-count), minmax(0,1fr)); }
.venue-calendar-head { border-bottom: 1px solid #dfe3de; }
.venue-calendar-head > strong { padding: 16px 6px; font-size: .8rem; }
.venue-heading { border-top: 4px solid var(--venue-color); padding: 14px 12px; border-left: 1px solid #e0e4df; }
.venue-heading strong { display: block; font-size: .86rem; }
.venue-heading small { display: block; margin-top: 8px; font-size: .72rem; color: #626a64; }
.venue-color-0 { --venue-color: #417d9b; }
.venue-color-1 { --venue-color: #6a895a; }
.venue-color-2 { --venue-color: #ae6383; }
.venue-calendar-row { border-bottom: 1px solid #e2e5e1; min-height: 68px; }
.venue-date { padding: 10px; display: grid; align-content: start; gap: 3px; }
.venue-date small { color: #6b726d; font-size: .72rem; }
.venue-slot { padding: 5px; border-left: 1px solid #e2e5e1; }
.venue-booking { display: grid; gap: 5px; width: 100%; border: 1px solid #d8e0dc; border-left: 4px solid var(--venue-color); border-radius: 4px; padding: 9px; margin-bottom: 4px; background: #f2f6f3; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.venue-booking span, .venue-booking small { font-size: .72rem; }
.venue-booking strong { font-size: .81rem; }
.venue-booking.booking-hold { border-style: dashed; background: #fff; }
.calendar-view-switch { flex-wrap: wrap; }
@media (max-width: 1100px) { .quote-columns { grid-template-columns: 1fr; } .quote-preview { border-left: 0; border-top: 1px solid #dedfd6; padding: 24px 0 0; } }
@media (max-width: 600px) { .quote-builder { padding: 16px; } .quote-fields { grid-template-columns: 1fr; } .quote-extra { grid-template-columns: minmax(0,1fr) 90px; } .quote-extra button { grid-column: 1 / -1; } .quote-service { gap: 8px; grid-template-columns: minmax(0,1fr) 100px; } }

.contract-preview {
  padding: 28px;
  min-height: 520px;
  line-height: 1.7;
  background: #fffefa;
}

.contract-summary {
  min-height: 0;
}

.contract-summary .detail-list div {
  grid-template-columns: minmax(120px, 190px) 1fr;
}

.contract-preview-page {
  display: grid;
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
}

.preview-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.generated-contract {
  color: #171717;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
  line-height: 1.45;
}

.contract-doc-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 2px solid #222;
}

.contract-doc-header h3 {
  margin: 0;
  font-size: 1.5rem;
}

.contract-doc-header p {
  margin: 0;
  text-align: right;
}

.contract-section {
  break-inside: avoid;
  margin-top: 14px;
}

.contract-section h4,
.contract-office h4 {
  margin: 0 0 6px;
  font-size: 0.98rem;
  text-transform: uppercase;
}

.contract-section p,
.contract-section ol {
  margin: 0 0 8px;
}

.initials-line {
  display: block;
  margin-top: 8px;
  font-weight: 700;
}

.contract-office {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid #222;
  break-inside: avoid;
}

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

.contract-template-note {
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

.contract-financials,
.signature-line {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px 0;
}

.contract-financials span,
.signature-line span,
.table-cloud span {
  border: 1px solid var(--border);
  background: #fcf6ec;
  border-radius: 6px;
  padding: 10px;
  font-weight: 700;
}

.signature-line {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 40px;
}

@media print {
  body {
    background: #fff;
  }

  body * {
    visibility: hidden;
  }

  #generated-contract,
  #generated-contract * {
    visibility: visible;
  }

  #generated-contract {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    min-height: auto;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: #fff;
  }

  @page {
    margin: 0.55in;
  }
}

.intake-shell {
  display: grid;
  gap: 16px;
}

.intake-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.intake-form .full {
  grid-column: 1 / -1;
}

.intake-form .primary-button {
  width: max-content;
}

.intake-services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.intake-services legend {
  padding: 0 5px;
  font-size: 0.86rem;
  font-weight: 700;
}

.intake-services label {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 7px;
  font-size: 0.86rem;
}

.intake-services small {
  white-space: nowrap;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-links button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.team-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.4fr);
  gap: 18px;
  align-items: start;
}

.staff-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.staff-form .full {
  grid-column: 1 / -1;
}

.team-table-wrap {
  overflow-x: auto;
}

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

  .client-action-form {
    grid-template-columns: 1fr;
  }
}

.table-cloud,
.role-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.relationship-list {
  margin: 0;
  padding-left: 22px;
  line-height: 2;
  font-weight: 700;
}

.role-grid article {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px;
  background: #fffdf8;
}

.role-grid span {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .nav {
    grid-template-columns: repeat(3, 1fr);
  }

  .identity-panel {
    margin-top: 0;
  }

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

  .calendar-workspace {
    grid-template-columns: 220px 1fr;
  }

  .year-calendar {
    grid-template-columns: repeat(2, minmax(170px, 1fr));
  }

  .contract-layout,
  .invoice-layout,
  .proposal-layout,
  .payment-workspace,
  .team-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .main,
  .sidebar {
    padding: 18px;
  }

  .topbar,
  .profile-hero,
  .directory-toolbar,
  .directory-actions,
  .profile-actions,
  .preview-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar {
    margin: -18px -18px 18px;
    padding: 16px 18px 14px;
  }

  .nav,
  .metric-grid,
  .payment-metrics,
  .dashboard-grid,
  .dashboard-detail-grid,
  .detail-grid,
  .intake-form,
  .staff-form,
  .table-cloud,
  .role-grid,
  .contract-financials,
  .client-form,
  .service-checkboxes,
  .signature-line,
  .invoice-head,
  .proposal-head,
  .invoice-parties,
  .proposal-event-strip,
  .proposal-next-steps {
    grid-template-columns: 1fr;
  }

  .invoice-head div:last-child,
  .proposal-head div:last-child {
    justify-items: start;
  }

  .calendar-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .calendar-title-group {
    flex-wrap: wrap;
  }

  .calendar-workspace {
    grid-template-columns: 1fr;
  }

  .calendar-side-panel {
    border-right: 0;
    border-bottom: 1px solid #e0e3e7;
  }

  .calendar-view-switch button {
    flex: 1;
    text-align: center;
  }

  .schedule-calendar {
    min-width: 0;
  }

  .schedule-day {
    grid-template-columns: 76px 1fr;
  }

  .schedule-date {
    padding: 14px 8px;
  }

  .schedule-date strong {
    width: 32px;
    height: 32px;
    font-size: 1.05rem;
  }

  .schedule-item {
    grid-template-columns: 68px 12px 1fr;
    gap: 8px;
    padding-right: 10px;
  }

  .schedule-time {
    font-size: 0.72rem;
  }

  .year-calendar {
    grid-template-columns: 1fr;
  }

  .pipeline {
    grid-template-columns: repeat(5, 210px);
  }

  .detail-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .primary-button,
  .secondary-button,
  .intake-form .primary-button {
    width: 100%;
  }
}

/* Scheduling availability editor (Phase 3b) */
.scheduling-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 14px 0 20px; }
.scheduling-form > label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.scheduling-form input, .scheduling-form select { padding: 8px 10px; border: 1px solid var(--line, rgba(23,21,18,0.16)); border-radius: 8px; font: inherit; }
.scheduling-form .weekday-set { display: flex; gap: 10px; border: none; padding: 0; margin: 0; flex-wrap: wrap; }
.scheduling-form .weekday-set label { display: flex; flex-direction: row; align-items: center; gap: 4px; font-weight: 500; font-size: 13px; }
.inactive-row { opacity: 0.5; }


/* ─── Boutique Catalog ─────────────────────────────────────────────────────── */
.catalog-thumb { width: 44px; height: 58px; object-fit: cover; border-radius: 4px; display: block; background: #f1ece4; }
.catalog-thumb.empty { border: 1px dashed #d8cfc2; }
.status-pill.muted { opacity: 0.6; }
.catalog-editor { border: 1px solid #e6dfd3; border-radius: 8px; padding: 18px; margin: 0 0 20px; background: #fffdf9; }
.catalog-editor h4 { margin: 0 0 14px; }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px 16px; align-items: start; }
.catalog-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.catalog-field.wide { grid-column: span 2; }
.catalog-field small { font-weight: 400; opacity: 0.7; }
.catalog-check { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding-top: 22px; }
.catalog-photos { margin-top: 18px; }
.catalog-photos h5 { margin: 0 0 10px; font-size: 13px; }
.catalog-photo-list { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.catalog-photo-list figure { margin: 0; width: 110px; }
.catalog-photo-list img { width: 110px; height: 146px; object-fit: cover; border-radius: 6px; display: block; }
.catalog-photo-list figcaption { display: flex; justify-content: space-between; gap: 4px; margin-top: 4px; }
.catalog-upload { width: 110px; height: 146px; border: 1px dashed #c9b999; border-radius: 6px; display: grid; place-items: center; text-align: center; font-size: 13px; cursor: pointer; }
.catalog-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.catalog-upload.busy { cursor: wait; opacity: 0.7; }
.catalog-delete { margin-right: auto; color: #9b2c2c; }
@media (max-width: 700px) { .catalog-field.wide { grid-column: auto; } }


/* ─── Dress Orders ─────────────────────────────────────────────────────────── */
.orders-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.orders-column { background: #faf7f2; border: 1px solid #ece4d7; border-radius: 8px; padding: 12px; min-height: 120px; }
.orders-column h4 { margin: 0 0 10px; font-size: 13px; display: flex; justify-content: space-between; }
.orders-empty { font-size: 12px; opacity: 0.6; margin: 0; }
.order-card { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; background: #fff; border: 1px solid #e6dfd3; border-radius: 6px; padding: 10px; margin-bottom: 8px; cursor: pointer; font: inherit; }
.order-card:hover { border-color: var(--gold); }
.order-card small { opacity: 0.75; }
.order-card.soon { border-left: 3px solid #d59b2f; }
.order-card.overdue { border-left: 3px solid #b23b3b; }
.order-card.overdue .order-due { color: #b23b3b; opacity: 1; font-weight: 600; }
.order-subhead { margin: 18px 0 8px; font-size: 13px; }
.order-fieldset { border: 0; padding: 0; margin: 0; }
.order-history { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.7; }
.client-orders-panel .secondary-button { margin-top: 10px; }
@media (max-width: 900px) { .orders-board { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .orders-board { grid-template-columns: 1fr; } }

/* Dress order money */
.order-money { margin-top: 18px; border-top: 1px solid #ece4d7; padding-top: 6px; }
.order-money-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.order-money-grid span { display: flex; flex-direction: column; font-size: 12px; background: #faf7f2; border-radius: 6px; padding: 8px 10px; }
.order-money-grid strong { font-size: 16px; margin-top: 2px; }
.order-money-grid .owed strong { color: #b23b3b; }
.order-money-grid .clear strong { color: #2f6135; }
.order-money-actions { justify-content: flex-start; }
@media (max-width: 700px) { .order-money-grid { grid-template-columns: 1fr 1fr; } }

/* Dress order fittings & alterations */
.order-suggestion { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #f0f6ed; border: 1px solid #cfe3c6; border-radius: 8px; padding: 10px 14px; margin: 0 0 12px; }
.order-sections { display: grid; gap: 14px; margin: -8px 0 20px; }
.order-section { border: 1px solid #e6dfd3; border-radius: 8px; padding: 4px 16px 14px; background: #fffdf9; }
.order-section .order-subhead small { font-weight: 400; opacity: 0.7; margin-left: 6px; }
.order-list { margin: 0 0 10px; padding-left: 18px; font-size: 13px; line-height: 1.7; }
.order-list small { display: block; opacity: 0.75; }
.order-list.alterations { list-style: none; padding-left: 0; }
.order-list.alterations li { display: flex; align-items: center; gap: 12px; border-bottom: 1px dashed #ece4d7; padding: 4px 0; }
.order-list.alterations li label { flex: 1; }
.order-list.alterations li.done label { text-decoration: line-through; opacity: 0.65; }
.order-inline { font-size: 13px; margin: 0 0 10px; }
.order-inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.order-inline-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; }
.order-inline-form label.grow { flex: 1 1 220px; }
.order-inline-form label.check, .order-list label.check { flex-direction: row; align-items: center; gap: 6px; font-weight: 400; }
.order-inline-form input[size] { width: 84px; }


/* Pickup link */
.pickup-link { background: #f5faf2; border-color: #cfe3c6; }
.pickup-url { display: inline-block; max-width: 100%; overflow-wrap: anywhere; background: #fff; border: 1px solid #e6dfd3; border-radius: 4px; padding: 4px 8px; font-size: 12px; }

.order-email-check { grid-column: 1 / -1; padding-top: 0; font-weight: 500; }

/* Website request details (message + attachments) */
.request-details-row td { background: #faf8f4; }
.request-message { white-space: pre-line; margin: 0 0 12px; max-width: 72ch; }
.request-attachments { display: grid; gap: 8px; max-width: 560px; }
