:root {
  --bg: #f1f5f9;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --soft: #94a3b8;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --dark: #0f172a;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
}

.sidebar {
  background: var(--card);
  border-right: 1px solid var(--line);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
}

.brand-block { margin-bottom: 30px; }
.brand-eyebrow,
.eyebrow {
  display: block;
  color: var(--soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.brand-title {
  margin-top: 8px;
  color: var(--text);
  font-size: 24px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.02em;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.side-link {
  display: block;
  border-radius: 12px;
  padding: 10px 12px;
  color: #475569;
  font-size: 14px;
  font-weight: 500;
  transition: background .15s ease, color .15s ease;
}
.side-link:hover { background: #f1f5f9; color: var(--text); }
.side-link.active { background: var(--dark); color: #fff; }
.sidebar-footer {
  margin-top: auto;
  padding-top: 24px;
  color: var(--muted);
  font-size: 12px;
}
.admin-email { margin-bottom: 8px; word-break: break-word; }
.logout-link { color: var(--text); font-weight: 700; }

.main {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 28px;
}

.page-header-card,
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.page-header-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px;
  margin-bottom: 24px;
}
.page-header-card h1,
.split-header h1 {
  margin: 4px 0 0;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.03em;
}
.page-header-card p,
.split-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.card {
  padding: 20px;
  margin-bottom: 24px;
}
.card h2,
.card h3 {
  margin: 0 0 16px;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.015em;
}

.split-header,
.top-actions,
.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.card-header-row { margin-bottom: 16px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  min-height: 40px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
.btn.primary { background: var(--dark); color: #fff; }
.btn.outline { background: #fff; color: #334155; border: 1px solid var(--line-strong); }
.btn.disabled,
.btn:disabled { background: #e2e8f0; color: #94a3b8; cursor: not-allowed; }
.muted-link { color: var(--muted); font-size: 14px; font-weight: 600; }

.alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
}
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

.appointment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.appointment-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: #fff;
}
.appointment-card .meta {
  color: var(--soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.appointment-card h3 {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}
.appointment-card p { margin: 8px 0 0; color: #334155; font-size: 14px; }
.appointment-card .muted { margin-top: 4px; color: var(--muted); font-size: 13px; }

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
thead { background: #f8fafc; color: var(--muted); }
th, td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
.click-row { cursor: pointer; }
.click-row:hover { background: #f8fafc; }
.strong { font-weight: 700; }

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.badge-slate { background: #f1f5f9; color: #334155; border-color: #e2e8f0; }
.badge-green { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.badge-amber { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.badge-blue { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
.badge-indigo { background: #e0e7ff; color: #3730a3; border-color: #c7d2fe; }
.badge-violet { background: #ede9fe; color: #5b21b6; border-color: #ddd6fe; }
.badge-red { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.badge-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

.two-col { display: grid; grid-template-columns: .85fr 1.35fr; gap: 24px; align-items: start; }
.two-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; margin-bottom: 24px; }
.stack-section,
.stack-list,
.task-list { display: flex; flex-direction: column; gap: 12px; }

.list-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: #fff;
  transition: border-color .15s ease, background .15s ease;
}
.list-card:hover { background: #f8fafc; }
.list-card.selected { border-color: var(--dark); background: #f8fafc; }
.list-card strong { display: block; color: var(--text); font-size: 14px; }
.list-card span,
.list-card small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }

.search-form { margin-bottom: 16px; }
input, select, textarea {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  outline: none;
}
.search-form input,
.form-card input,
.form-card select,
.form-card textarea,
.note-form textarea,
.settings-layout input,
.settings-layout textarea,
.settings-layout select {
  width: 100%;
  padding: 11px 12px;
}
.form-card textarea,
.settings-layout textarea { min-height: 110px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid label span {
  display: block;
  margin-bottom: 6px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}
.form-grid .wide { grid-column: 1 / -1; }
.form-card .btn { margin-top: 16px; }

.empty-state {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: #f8fafc;
  color: var(--muted);
}
.muted { color: var(--muted); font-size: 14px; }

.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.detail-grid p,
.clickable p { margin: 6px 0; color: #475569; font-size: 14px; }
.clickable { text-align: left; }

.task-card { border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.task-card.complete { background: #fff; }
.task-card.incomplete { background: #fffbeb; border-color: #fde68a; }
.task-card-header { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.task-body { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.task-body p { margin: 0; color: #475569; font-size: 14px; }

.note { background: #f8fafc; border: 1px solid var(--line); border-radius: 18px; padding: 14px; margin-bottom: 12px; }
.note small { color: var(--muted); }
.note p { margin: 6px 0 0; }
.note-form { display: flex; flex-direction: column; gap: 12px; }
.settings-layout { display: flex; flex-direction: column; gap: 20px; }

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--bg);
  padding: 24px;
}
.login-card {
  width: min(440px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.login-card h1 { margin: 8px 0 6px; font-size: 30px; letter-spacing: -.03em; }
.login-card p { margin: 0 0 24px; color: var(--muted); }
.form-stack { display: flex; flex-direction: column; gap: 16px; }
.form-stack label span { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.form-stack input { width: 100%; padding: 12px; }
.form-stack .btn { width: 100%; }

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .main { padding: 18px; }
  .page-header-card,
  .split-header,
  .top-actions,
  .card-header-row { flex-direction: column; align-items: flex-start; }
  .two-col,
  .two-cards,
  .appointment-grid,
  .form-grid,
  .detail-grid,
  .task-body { grid-template-columns: 1fr; }
  .badge-row { justify-content: flex-start; }
}

/* Clients Module v1.0 */
.clients-module .card h2 {
  margin-bottom: 16px;
}
.client-list-heading {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}
.client-list-heading h2 {
  margin-bottom: 0;
}
.client-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.stat-card span {
  display: block;
  color: var(--soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.stat-card strong {
  display: block;
  margin-top: 6px;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -.03em;
}
.stat-card strong.stat-card-small {
  margin-top: 10px;
  font-size: 14px;
  letter-spacing: 0;
}
.client-detail-header {
  margin-bottom: 0;
}
.additional-email-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.additional-email-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}
.additional-email-row input,
.notes-textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  outline: none;
}
.notes-textarea {
  min-height: 120px;
}
@media (max-width: 980px) {
  .client-stats-grid,
  .additional-email-row {
    grid-template-columns: 1fr;
  }
}

/* Clients Module v1.1 */
.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}
.btn.danger {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.inline-delete-form {
  margin: 0;
}
@media (max-width: 980px) {
  .search-form {
    grid-template-columns: 1fr;
  }
}


/* Clients Module v1.3 */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: #64748b;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.icon-btn:hover {
  background: #f8fafc;
  color: #0f172a;
}
.icon-btn.danger:hover {
  background: #fee2e2;
  border-color: #fecaca;
  color: #991b1b;
}


/* Services v1.0 */
.services-module .form-card .service-help-text {
  margin-top: 12px;
}
.parent-service-panel {
  margin-top: 18px;
}
.parent-service-title {
  margin-bottom: 10px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}
.parent-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.checkbox-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}
.checkbox-card span {
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}
.tier-table input,
.tier-table select {
  width: 100%;
  min-width: 110px;
  padding: 9px 10px;
}
.tier-table .tier-remove-btn {
  min-height: 36px;
  padding: 8px 10px;
}
@media (max-width: 980px) {
  .parent-service-grid { grid-template-columns: 1fr; }
}


/* Services v1.1 visual alignment */
.services-module {
  grid-template-columns: 0.8fr 1.4fr;
}
.services-module .list-card {
  min-height: 74px;
}
.services-module .list-card > div:first-child {
  min-width: 0;
}
.services-module .list-card strong {
  overflow-wrap: anywhere;
}
.services-module .list-card small {
  display: none;
}
.service-detail-header p {
  margin: 6px 0 0;
}
.parent-service-panel {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.parent-service-title {
  margin-bottom: 4px;
}
.parent-service-help {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}
.parent-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.checkbox-card {
  min-height: 44px;
  align-items: center;
}
.checkbox-card input {
  flex: 0 0 auto;
}
.checkbox-card span {
  min-width: 0;
  line-height: 1.3;
}
.tier-table {
  table-layout: fixed;
}
.tier-table th,
.tier-table td {
  padding: 12px;
}
.tier-table input,
.tier-table select {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.tier-col-min,
.tier-col-max { width: 14%; }
.tier-col-pricing { width: 22%; }
.tier-col-rate { width: 16%; }
.tier-col-duration { width: 20%; }
.tier-col-action { width: 14%; }
.tier-table .tier-remove-btn {
  width: 100%;
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .tier-table {
    min-width: 760px;
  }
}
@media (max-width: 980px) {
  .services-module {
    grid-template-columns: 1fr;
  }
  .parent-service-grid {
    grid-template-columns: 1fr;
  }
}

/* Services v1.2 visual alignment: parent services bottom card */
.parent-service-card {
  margin-top: 0;
}
.parent-service-card .parent-service-help {
  margin: 6px 0 16px;
}
.parent-service-list {
  display: grid;
  gap: 10px;
}
.parent-service-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}
.parent-service-option input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
}
.parent-service-option span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}


/* Services v1.3 parent services card final alignment */
.parent-service-card {
  margin-top: 0;
}

.parent-service-card h2 {
  margin-bottom: 6px;
}

.parent-service-card .parent-service-help {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.parent-service-card .parent-service-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.parent-service-card .parent-service-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.parent-service-card .parent-service-option input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
}

.parent-service-card .parent-service-option span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}


/* ============================================================
   Services v1.5.1 restore + header action alignment
   Restores full stylesheet and keeps Save Service + trash icon inline.
   ============================================================ */

.service-detail-header {
  align-items: flex-start;
}

.service-detail-header .detail-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: nowrap;
  flex: 0 0 auto;
}

.service-detail-header .detail-actions .btn,
.service-detail-header .detail-actions .inline-delete-form,
.service-detail-header .detail-actions .icon-btn {
  flex: 0 0 auto;
}

.service-detail-header .inline-delete-form {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.service-detail-header .icon-btn {
  width: 48px;
  height: 48px;
  min-width: 48px;
  padding: 0;
}

@media (max-width: 760px) {
  .service-detail-header {
    flex-direction: column;
  }

  .service-detail-header .detail-actions {
    width: 100%;
    justify-content: flex-start;
  }
}


/* Products Module v1.0 */
.products-module .card h2 {
  margin-bottom: 16px;
}

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

.form-card-header h2 {
  margin-bottom: 0;
}

.form-card-header .btn {
  margin-top: 0;
  flex: 0 0 auto;
}

.detail-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: nowrap;
}

.hidden-form {
  display: none;
}

.fulfillment-save-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.fulfillment-save-form .btn {
  margin-top: 0;
}

.fulfillment-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 760px) {
  .form-card-header {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* ============================================================
   Settings Categories v1.0
   Clean category management rows for Service + Product Categories.
   ============================================================ */

.settings-layout-grid {
  align-items: start;
}

.settings-category-card .card-header-row {
  align-items: flex-start;
}

.settings-category-list {
  display: grid;
  gap: 10px;
}

.settings-category-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 150px auto;
  gap: 12px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 14px;
}

.settings-category-delete-form {
  display: flex;
  justify-content: flex-start;
  margin: -2px 0 14px 14px;
}

.settings-category-row label span {
  display: block;
  margin-bottom: 6px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.settings-category-row input,
.settings-category-row select {
  width: 100%;
  padding: 11px 12px;
}

.settings-category-row .btn {
  margin: 0;
  white-space: nowrap;
}

.new-category-row {
  background: #f8fafc;
  border-style: dashed;
}

@media (max-width: 980px) {
  .settings-category-row {
    grid-template-columns: 1fr;
  }

  .settings-category-delete-form {
    margin-left: 0;
  }
}


/* ============================================================
   Settings Categories v1.1
   Keeps Save and Delete controls inside the same category row.
   ============================================================ */

.settings-category-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.settings-category-save-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 150px auto;
  gap: 12px;
  align-items: end;
  min-width: 0;
}

.settings-category-save-form label {
  min-width: 0;
}

.settings-category-save-form .btn {
  margin: 0;
  white-space: nowrap;
}

.settings-category-delete-form {
  display: inline-flex;
  align-items: end;
  justify-content: center;
  margin: 0;
  align-self: end;
}

.settings-category-delete-form .icon-btn {
  width: 44px;
  height: 44px;
}

@media (max-width: 980px) {
  .settings-category-row,
  .settings-category-save-form {
    grid-template-columns: 1fr;
  }

  .settings-category-delete-form {
    justify-content: flex-start;
  }
}


/* ============================================================
   Settings Categories v1.2
   Category status uses a checkbox: checked = active.
   ============================================================ */

.settings-category-save-form {
  grid-template-columns: minmax(260px, 1fr) 130px auto;
}

.settings-active-checkbox {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.settings-active-checkbox .checkbox-line {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
}

.settings-active-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  padding: 0;
}

.settings-active-checkbox strong {
  color: #334155;
  font-size: 14px;
  line-height: 1;
}


/* ============================================================
   Settings Categories v1.3 RESTORE + Alignment Fix
   IMPORTANT: This is appended to the full stylesheet.
   Keeps Category Name, Active checkbox, Save, and Delete aligned.
   ============================================================ */

.settings-category-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px auto 52px;
  gap: 12px;
  align-items: end;
}

.settings-category-save-form {
  display: contents;
}

.settings-category-save-form label {
  min-width: 0;
}

.settings-category-save-form label > span,
.settings-active-checkbox > span:first-child {
  display: block;
  margin-bottom: 6px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.settings-category-row input[type="text"],
.settings-category-row input[name="name"],
.settings-category-row select {
  height: 48px;
}

.settings-active-checkbox {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.settings-active-checkbox .checkbox-line {
  height: 48px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  padding: 0 12px;
}

.settings-active-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  padding: 0;
  margin: 0;
}

.settings-category-row .btn {
  height: 48px;
  min-height: 48px;
  margin: 0;
  white-space: nowrap;
}

.settings-category-delete-form {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  margin: 0;
  align-self: end;
}

.settings-category-delete-form .icon-btn {
  width: 48px;
  height: 48px;
  min-width: 48px;
}

@media (max-width: 980px) {
  .settings-category-row {
    grid-template-columns: 1fr;
  }

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

  .settings-category-delete-form {
    justify-content: flex-start;
  }
}


/* ============================================================
   Settings Categories v1.4
   Fine-tunes vertical alignment of the Active checkbox control.
   Keeps the checkbox box aligned with the text input, Save, and Delete controls.
   ============================================================ */

.settings-active-checkbox .checkbox-line {
  margin-top: 6px;
}

@media (max-width: 980px) {
  .settings-active-checkbox .checkbox-line {
    margin-top: 0;
  }
}


/* ============================================================
   Booking Wizard v1.0
   Admin project creation flow.
   ============================================================ */

.booking-header-card { align-items: flex-start; }

.booking-summary-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 12px;
  min-width: 340px;
}

.summary-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fafc;
  padding: 14px 16px;
}

.summary-card span {
  display: block;
  color: var(--soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.summary-card strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
  line-height: 1.1;
}

.booking-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.booking-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
}

.booking-steps span.active {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}

.booking-choice-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.booking-choice-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 16px;
}

.booking-choice-card input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.booking-choice-card strong {
  display: block;
  color: var(--text);
  font-size: 14px;
}

.booking-choice-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.booking-choice-card em {
  color: #334155;
  font-style: normal;
  font-weight: 700;
}

.booking-product-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 12px;
  align-items: center;
}

.product-qty-input {
  width: 92px;
  min-height: 48px;
  padding: 11px 12px;
  text-align: center;
}

.booking-review-box {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fafc;
  padding: 16px;
  color: var(--muted);
}

.booking-review-box p { margin: 0; }

.booking-total-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--dark);
  border-radius: 18px;
  background: #f8fafc;
  padding: 16px;
  margin: 16px 0;
  font-size: 16px;
}

@media (max-width: 980px) {
  .booking-summary-cards {
    min-width: 0;
    width: 100%;
  }

  .booking-product-row {
    grid-template-columns: 1fr;
  }

  .product-qty-input {
    width: 100%;
  }
}


/* ============================================================
   Products v2 Exact React Milestone Reset
   Source: approved ProductsModuleMockup.
   Scoped to .react-products-module.
   ============================================================ */

.react-products-module {
  display: grid;
  gap: 24px;
}

.react-products-module .react-products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.react-products-module h1,
.react-products-module h2,
.react-products-module h3,
.react-products-module p {
  margin: 0;
}

.react-products-module h1 {
  color: #0f172a;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 650;
}

.react-products-module .react-products-header p {
  margin-top: 4px;
  color: #64748b;
  font-size: 14px;
}

.react-products-module .react-products-layout {
  display: grid;
  gap: 24px;
}

.react-products-module .react-product-card,
.react-products-module .react-product-detail-header {
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}

.react-products-module .react-product-card {
  padding: 20px;
}

.react-products-module .react-product-detail-header {
  padding: 24px;
}

.react-products-module h2 {
  color: #0f172a;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -.02em;
}

.react-products-module h3 {
  margin-bottom: 16px;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -.02em;
}

.react-products-module .react-product-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.react-products-module .react-product-list-item {
  display: block;
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  padding: 16px;
  color: inherit;
  text-align: left;
  text-decoration: none;
}

.react-products-module .react-product-list-item:hover {
  background: #f8fafc;
}

.react-products-module .react-product-list-item.active {
  border-color: #0f172a;
  background: #f8fafc;
}

.react-products-module .react-product-list-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.react-products-module .react-product-name {
  color: #0f172a;
  font-size: 14px;
  font-weight: 650;
}

.react-products-module .react-product-category {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
}

.react-products-module .react-product-status {
  display: inline-flex;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.react-products-module .react-product-status.active {
  border-color: #a7f3d0;
  background: #d1fae5;
  color: #065f46;
}

.react-products-module .react-product-status.inactive {
  border-color: #e2e8f0;
  background: #f1f5f9;
  color: #334155;
}

.react-products-module .react-product-detail-stack {
  display: grid;
  gap: 24px;
}

.react-products-module .react-product-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.react-products-module .react-product-muted {
  color: #64748b;
  font-size: 14px;
}

.react-products-module .react-product-detail-header h2 {
  margin-top: 4px;
  font-size: 24px;
}

.react-products-module .react-product-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.react-products-module .react-product-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  color: #334155;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.4;
}

.react-products-module .react-product-btn.primary {
  border-color: #0f172a;
  background: #0f172a;
  color: #fff;
}

.react-products-module .react-product-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fff;
  color: #991b1b;
  font-size: 15px;
}

.react-products-module .react-product-form-grid {
  display: grid;
  gap: 16px;
}

.react-products-module .react-product-form-grid .wide {
  grid-column: 1 / -1;
}

.react-products-module label > span {
  display: block;
  margin-bottom: 6px;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
}

.react-products-module .react-product-field {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  outline: none;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
}

.react-products-module .react-product-field.tall {
  min-height: 110px;
  resize: vertical;
}

.react-products-module .react-fulfillment-box {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
}

.react-products-module .react-fulfillment-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.react-products-module .react-fulfillment-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 4px 0 0;
  flex: 0 0 auto;
}

.react-products-module .react-fulfillment-title {
  color: #1e293b;
  font-size: 14px;
  font-weight: 500;
}

.react-products-module .react-fulfillment-box p {
  margin-top: 4px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

@media (min-width: 1024px) {
  .react-products-module .react-products-layout {
    grid-template-columns: .8fr 1.4fr;
  }

  .react-products-module .react-product-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .react-products-module .react-products-header,
  .react-products-module .react-product-detail-header {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* ============================================================
   Project Detail v3 Exact React Milestone Reset
   Source: approved AdminUIMockupV2 ProjectDetail.
   Scoped to .react-project-detail.
   ============================================================ */

.react-project-detail {
  display: grid;
  gap: 24px;
}

.react-project-detail .react-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.react-project-detail .react-back-link {
  color: #64748b;
  font-size: 14px;
  text-decoration: none;
}

.react-project-detail .react-top-actions {
  display: flex;
  gap: 8px;
}

.react-project-detail .react-btn {
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  color: #334155;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
}

.react-project-detail .react-btn.primary {
  border-color: #0f172a;
  background: #0f172a;
  color: #fff;
}

.react-project-detail .react-btn.disabled {
  border-color: #e2e8f0;
  background: #e2e8f0;
  color: #94a3b8;
}

.react-project-detail .react-card {
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
  padding: 20px;
}

.react-project-detail .react-header-card {
  padding: 24px;
}

.react-project-detail .react-header-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.react-project-detail h1,
.react-project-detail h2 {
  margin: 0;
  color: #0f172a;
  letter-spacing: -.02em;
}

.react-project-detail h1 {
  margin-top: 4px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 650;
}

.react-project-detail h2 {
  margin-bottom: 16px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 650;
}

.react-project-detail .react-muted {
  color: #64748b;
  font-size: 14px;
}

.react-project-detail .react-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.react-project-detail .react-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid transparent;
}

.react-project-detail .workflow-scheduled { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.react-project-detail .workflow-production { background: #e0f2fe; color: #075985; border-color: #bae6fd; }
.react-project-detail .workflow-ready { background: #e0e7ff; color: #3730a3; border-color: #c7d2fe; }
.react-project-detail .workflow-delivered { background: #ede9fe; color: #5b21b6; border-color: #ddd6fe; }
.react-project-detail .workflow-completed { background: #d1fae5; color: #065f46; border-color: #a7f3d0; }
.react-project-detail .invoice-not-created { background: #f1f5f9; color: #334155; border-color: #e2e8f0; }
.react-project-detail .invoice-draft { background: #fef9c3; color: #854d0e; border-color: #fef08a; }
.react-project-detail .invoice-sent { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
.react-project-detail .invoice-paid { background: #d1fae5; color: #065f46; border-color: #a7f3d0; }
.react-project-detail .invoice-overdue { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.react-project-detail .task-complete { background: #d1fae5; color: #065f46; border-color: #a7f3d0; }
.react-project-detail .task-incomplete { background: #fef3c7; color: #92400e; border-color: #fde68a; }

.react-project-detail .react-grid-2 {
  display: grid;
  gap: 24px;
  align-items: start;
}

.react-project-detail .react-info-card {
  text-align: left;
  width: 100%;
  cursor: pointer;
}

.react-project-detail .react-info-card:hover {
  background: #f8fafc;
}

.react-project-detail .react-detail-stack {
  display: grid;
  gap: 8px;
  color: #334155;
  font-size: 14px;
}

.react-project-detail .react-detail-stack span,
.react-project-detail .react-invoice-grid span {
  font-weight: 500;
  color: #334155;
}

.react-project-detail .react-form-grid {
  display: grid;
  gap: 16px;
}

.react-project-detail .react-form-grid .wide {
  grid-column: 1 / -1;
}

.react-project-detail .react-form-grid label > span,
.react-project-detail .react-label {
  display: block;
  margin-bottom: 6px;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
}

.react-project-detail .react-field {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  outline: none;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
}

.react-project-detail .react-field.tall {
  min-height: 110px;
  resize: vertical;
}

.react-project-detail .react-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.react-project-detail .react-section-heading h2 {
  margin-bottom: 0;
}

.react-project-detail .react-section-heading p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 14px;
}

.react-project-detail .react-add-row {
  display: none;
}

.react-project-detail .react-task-stack {
  display: grid;
  gap: 16px;
}

.react-project-detail .react-task-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  padding: 16px;
}

.react-project-detail .react-task-card.incomplete {
  border-color: #fde68a;
  background: #fffbeb;
}

.react-project-detail .react-task-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.react-project-detail .react-task-title {
  color: #0f172a;
  font-size: 14px;
  font-weight: 650;
}

.react-project-detail .react-task-grid {
  display: grid;
  gap: 16px;
}

.react-project-detail .react-production-box {
  min-width: 170px;
}

.react-project-detail .react-check {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.react-project-detail .react-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.react-project-detail .react-check span {
  color: #475569;
  font-size: 14px;
}

.react-project-detail .react-note-stack {
  display: grid;
  gap: 16px;
}

.react-project-detail .react-note-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
  padding: 16px;
  color: #1e293b;
  font-size: 14px;
}

.react-project-detail .react-note-date {
  color: #64748b;
  font-size: 12px;
  margin-bottom: 4px;
}

.react-project-detail .react-note-form {
  margin-top: 16px;
}

.react-project-detail .react-invoice-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  color: #334155;
  font-size: 14px;
}

@media (min-width: 768px) {
  .react-project-detail .react-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .react-project-detail .react-invoice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .react-project-detail .react-header-inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

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

  .react-project-detail .react-task-grid {
    grid-template-columns: 1.2fr auto;
    align-items: end;
  }
}

@media (max-width: 760px) {
  .react-project-detail .react-topbar,
  .react-project-detail .react-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* ============================================================
   Booking Wizard v2 Exact Mockup Reset
   Source: approved React BookingWizardMockup.
   Scoped to .booking-v2.
   ============================================================ */

.booking-v2 {
  max-width: 1024px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.booking-v2 * {
  box-sizing: border-box;
}

.booking-v2 .booking-header-card,
.booking-v2 .booking-panel,
.booking-v2 .booking-confirmed {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}

.booking-v2 .booking-header-card {
  padding: 24px;
}

.booking-v2 .booking-header-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.booking-v2 .booking-eyebrow {
  color: #64748b;
  font-size: 14px;
}

.booking-v2 h1,
.booking-v2 h2,
.booking-v2 h3 {
  margin: 0;
  letter-spacing: -.02em;
}

.booking-v2 h1 {
  margin-top: 4px;
  color: #0f172a;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 650;
}

.booking-v2 h2 {
  margin-bottom: 16px;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 650;
}

.booking-v2 h3 {
  color: #0f172a;
  font-size: 15px;
  font-weight: 650;
}

.booking-v2 .booking-summary-grid {
  display: grid;
  gap: 12px;
}

.booking-v2 .booking-summary-box {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
  padding: 12px 16px;
}

.booking-v2 .booking-summary-label {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.booking-v2 .booking-summary-value {
  margin-top: 4px;
  color: #0f172a;
  font-size: 18px;
  font-weight: 650;
}

.booking-v2 .booking-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0 8px;
  color: #64748b;
  font-size: 12px;
}

.booking-v2 .booking-progress {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #e2e8f0;
}

.booking-v2 .booking-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: #0f172a;
  transition: width .18s ease;
}

.booking-v2 .booking-step-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.booking-v2 .booking-step-pill {
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #64748b;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
}

.booking-v2 .booking-step-pill.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

.booking-v2 .booking-step-pill.done {
  background: #d1fae5;
  border-color: #d1fae5;
  color: #065f46;
}

.booking-v2 .booking-panel {
  display: none;
  padding: 20px;
}

.booking-v2 .booking-panel.active {
  display: block;
}

.booking-v2 .booking-field-grid {
  display: grid;
  gap: 16px;
}

.booking-v2 .booking-field-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.booking-v2 .booking-field-grid .wide {
  grid-column: 1 / -1;
}

.booking-v2 label {
  display: block;
}

.booking-v2 .booking-label {
  display: block;
  margin-bottom: 6px;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
}

.booking-v2 .booking-input,
.booking-v2 select,
.booking-v2 textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  outline: none;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
}

.booking-v2 textarea {
  min-height: 100px;
  resize: vertical;
}

.booking-v2 .booking-alert {
  border: 1px solid #fde68a;
  border-radius: 16px;
  background: #fffbeb;
  color: #92400e;
  padding: 16px;
}

.booking-v2 .booking-alert strong {
  display: block;
  color: #78350f;
  font-size: 14px;
  font-weight: 650;
}

.booking-v2 .booking-alert p {
  margin: 4px 0 0;
  color: #92400e;
  font-size: 14px;
  line-height: 1.45;
}

.booking-v2 .booking-info {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
  padding: 16px;
}

.booking-v2 .booking-info strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 650;
}

.booking-v2 .booking-info p {
  margin: 4px 0 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.45;
}

.booking-v2 .booking-muted {
  margin: -4px 0 16px;
  color: #64748b;
  font-size: 14px;
}

.booking-v2 .booking-option-list {
  display: grid;
  gap: 12px;
}

.booking-v2 .booking-option {
  display: block;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  padding: 16px;
  cursor: pointer;
}

.booking-v2 .booking-option.selected {
  border-color: #0f172a;
  background: #f8fafc;
}

.booking-v2 .booking-option-inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.booking-v2 .booking-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 4px 0 0;
  flex: 0 0 auto;
}

.booking-v2 .booking-option-content {
  flex: 1 1 auto;
  min-width: 0;
}

.booking-v2 .booking-option-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.booking-v2 .booking-option-title {
  color: #0f172a;
  font-size: 14px;
  font-weight: 650;
}

.booking-v2 .booking-option-price {
  color: #334155;
  font-size: 14px;
  font-weight: 500;
}

.booking-v2 .booking-option-category {
  margin-top: 4px;
  color: #64748b;
  font-size: 14px;
}

.booking-v2 .booking-product-option .booking-option-inner {
  align-items: center;
  justify-content: space-between;
}

.booking-v2 .booking-product-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.booking-v2 .booking-calendar-layout {
  display: grid;
  gap: 24px;
}

.booking-v2 .booking-calendar-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
}

.booking-v2 .booking-calendar-title {
  margin-bottom: 12px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 650;
}

.booking-v2 .booking-month {
  margin-bottom: 20px;
}

.booking-v2 .booking-month-name {
  margin-bottom: 8px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #334155;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 650;
}

.booking-v2 .booking-weekdays,
.booking-v2 .booking-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.booking-v2 .booking-weekdays {
  margin-bottom: 8px;
  color: #64748b;
  text-align: center;
  font-size: 12px;
}

.booking-v2 .booking-day {
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: #ecfdf5;
  color: #065f46;
  font-size: 14px;
}

.booking-v2 .booking-day.empty {
  background: transparent;
  pointer-events: none;
}

.booking-v2 .booking-day.unavailable {
  background: #f1f5f9;
  color: #cbd5e1;
}

.booking-v2 .booking-day.selected {
  background: #0f172a;
  color: #fff;
}

.booking-v2 .booking-time-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.booking-v2 .booking-time-subtitle {
  margin-top: 2px;
  color: #64748b;
  font-size: 14px;
}

.booking-v2 .booking-duration-pill {
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
}

.booking-v2 .booking-time-grid {
  display: grid;
  gap: 8px;
}

.booking-v2 .booking-time {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #334155;
  padding: 12px;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
}

.booking-v2 .booking-time.selected {
  border-color: #0f172a;
  background: #f8fafc;
  color: #0f172a;
}

.booking-v2 .booking-review-stack {
  display: grid;
  gap: 20px;
  color: #334155;
  font-size: 14px;
}

.booking-v2 .booking-review-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
}

.booking-v2 .booking-review-card.amber {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.booking-v2 .booking-review-card.total {
  border-color: #0f172a;
  background: #f8fafc;
}

.booking-v2 .booking-review-title {
  color: #0f172a;
  font-size: 14px;
  font-weight: 650;
}

.booking-v2 .booking-review-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
}

.booking-v2 .booking-review-line strong,
.booking-v2 .booking-review-card.total strong {
  color: #0f172a;
  font-weight: 650;
}

.booking-v2 .booking-confirmed {
  padding: 32px;
  text-align: center;
}

.booking-v2 .booking-check {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 999px;
  background: #d1fae5;
  color: #065f46;
  display: grid;
  place-items: center;
  font-size: 28px;
}

.booking-v2 .booking-confirmed p {
  max-width: 640px;
  margin: 12px auto 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
}

.booking-v2 .booking-confirmed-summary {
  max-width: 640px;
  margin: 24px auto 0;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
  padding: 16px;
  text-align: left;
  color: #334155;
  font-size: 14px;
}

.booking-v2 .booking-confirmed-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.booking-v2 .booking-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.booking-v2 .booking-button {
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  color: #334155;
  padding: 10px 16px;
  font-size: 14px;
}

.booking-v2 .booking-button.primary {
  border-color: #0f172a;
  background: #0f172a;
  color: #fff;
}

.booking-v2 .booking-button:disabled {
  color: #cbd5e1;
}

@media (min-width: 640px) {
  .booking-v2 .booking-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 1024px) {
  .booking-v2 .booking-header-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .booking-v2 .booking-summary-grid {
    min-width: 430px;
  }

  .booking-v2 .booking-calendar-layout {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .booking-v2 .booking-field-grid.two {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   Booking Wizard v2.1
   Keeps Back / Continue / Confirm actions inside each milestone card.
   ============================================================ */

.booking-v2 .booking-panel .booking-actions {
  margin-top: 24px;
}

.booking-v2 .booking-confirmed .booking-actions {
  display: none;
}


/* Appointments v1 Exact React Milestone */
.react-appointments-module{display:grid;gap:24px}.react-appointments-module .react-appointments-header{display:flex;align-items:center;justify-content:space-between;gap:16px}.react-appointments-module h1,.react-appointments-module h2,.react-appointments-module h3,.react-appointments-module p{margin:0}.react-appointments-module h1{color:#0f172a;font-size:24px;line-height:1.2;font-weight:650}.react-appointments-module .react-appointments-header p{margin-top:4px;color:#64748b;font-size:14px}.react-appointments-module .react-appointments-layout{display:grid;gap:24px}.react-appointments-module .react-appointment-card,.react-appointments-module .react-appointment-detail-header{border:1px solid #e2e8f0;border-radius:24px;background:#fff;box-shadow:0 1px 2px rgba(15,23,42,.06)}.react-appointments-module .react-appointment-card{padding:20px}.react-appointments-module .react-appointment-detail-header{padding:24px}.react-appointments-module h2,.react-appointments-module h3{color:#0f172a;font-size:18px;line-height:1.3;font-weight:650;letter-spacing:-.02em}.react-appointments-module .react-appointment-list{display:grid;gap:8px;margin-top:16px}.react-appointments-module .react-appointment-list-item{display:block;width:100%;border:1px solid #e2e8f0;border-radius:16px;background:#fff;padding:16px;color:inherit;text-align:left;text-decoration:none}.react-appointments-module .react-appointment-list-item:hover{background:#f8fafc}.react-appointments-module .react-appointment-list-item.active{border-color:#0f172a;background:#f8fafc}.react-appointments-module .react-appointment-list-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.react-appointments-module .react-appointment-address{color:#0f172a;font-size:14px;font-weight:650}.react-appointments-module .react-appointment-agent{margin-top:4px;color:#64748b;font-size:12px}.react-appointments-module .react-appointment-list-time{margin-top:12px;color:#475569;font-size:14px}.react-appointments-module .react-appointment-status{display:inline-flex;border:1px solid #e2e8f0;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:500;white-space:nowrap}.react-appointments-module .react-appointment-status.scheduled{border-color:#fde68a;background:#fef3c7;color:#92400e}.react-appointments-module .react-appointment-status.completed{border-color:#a7f3d0;background:#d1fae5;color:#065f46}.react-appointments-module .react-appointment-status.cancelled{border-color:#e2e8f0;background:#f1f5f9;color:#334155}.react-appointments-module .react-appointment-detail-stack{display:grid;gap:24px}.react-appointments-module .react-appointment-detail-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.react-appointments-module .react-appointment-muted{color:#64748b;font-size:14px}.react-appointments-module .react-appointment-detail-header h2{margin-top:4px;font-size:24px}.react-appointments-module .react-appointment-actions{display:flex;align-items:center;gap:8px}.react-appointments-module .react-appointment-btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid #cbd5e1;border-radius:12px;background:#fff;color:#334155;padding:8px 16px;font-size:14px;font-weight:500;text-decoration:none;line-height:1.4}.react-appointments-module .react-appointment-btn.primary{border-color:#0f172a;background:#0f172a;color:#fff}.react-appointments-module .react-appointment-form-grid{display:grid;gap:16px}.react-appointments-module .react-appointment-form-grid .wide{grid-column:1/-1}.react-appointments-module label>span,.react-appointments-module .react-appointment-label{display:block;margin-bottom:6px;color:#334155;font-size:14px;font-weight:500}.react-appointments-module .react-appointment-field{width:100%;border:1px solid #cbd5e1;border-radius:12px;background:#fff;color:#0f172a;outline:none;padding:10px 12px;font-family:inherit;font-size:14px}.react-appointments-module .react-appointment-field.tall{min-height:100px;resize:vertical}.react-appointments-module .react-workorder-box{border:1px solid #e2e8f0;border-radius:16px;background:#f8fafc;padding:16px;color:#334155;font-size:14px;line-height:1.5}.react-appointments-module .react-workorder-box.stack{display:grid;gap:12px}.react-appointments-module .react-workorder-box span,.react-appointments-module .react-note-date{font-weight:500}.react-appointments-module .react-appointment-check{display:flex;align-items:center;gap:8px}.react-appointments-module .react-appointment-check input[type=checkbox]{width:16px;height:16px;margin:0}.react-appointments-module .react-appointment-check span{margin:0;color:#475569;font-size:14px;font-weight:400}.react-appointments-module .react-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.react-appointments-module .react-section-heading h3{margin-bottom:0}.react-appointments-module .react-note-stack{display:grid;gap:16px}.react-appointments-module .react-note-card{border:1px solid #e2e8f0;border-radius:16px;background:#f8fafc;padding:16px;color:#1e293b;font-size:14px}.react-appointments-module .react-note-date{color:#64748b;font-size:12px;margin-bottom:4px}.react-appointments-module .react-note-form{margin-top:16px}@media (min-width:768px){.react-appointments-module .react-appointment-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width:1024px){.react-appointments-module .react-appointments-layout{grid-template-columns:.8fr 1.4fr}}@media (max-width:760px){.react-appointments-module .react-appointments-header,.react-appointments-module .react-appointment-detail-header,.react-appointments-module .react-section-heading{align-items:flex-start;flex-direction:column}}


/* ============================================================
   Appointments v1.1 Card Spacing Fix
   Restores approved milestone vertical spacing between right-side detail cards.
   ============================================================ */

.react-appointments-module .react-appointment-detail-stack {
  display: grid;
  gap: 24px;
}

.react-appointments-module #appointment-main-form {
  display: grid;
  gap: 24px;
}

.react-appointments-module .react-workorder-box.stack {
  gap: 12px;
}

.react-appointments-module .react-appointment-card {
  margin: 0;
}


/* ============================================================
   Upcoming Appointments v1.2
   Read-only upcoming appointment list created from Booking Wizard.
   ============================================================ */

.react-appointments-module .react-appointments-header .react-appointment-btn.primary {
  display: none;
}

.react-appointments-module .react-appointment-actions {
  display: none;
}

.react-appointments-module .react-appointment-detail-header {
  align-items: flex-start;
}

.react-appointments-module .react-appointment-readonly-grid {
  display: grid;
  gap: 16px;
}

.react-appointments-module .react-readonly-value {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
  padding: 16px;
  color: #334155;
  font-size: 14px;
  line-height: 1.5;
}

.react-appointments-module .react-readonly-value span {
  font-weight: 500;
  color: #334155;
}
