@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

/* ==========================================================
   Labada ERP — Light blue theme
   Token names mirror DESIGN.md; change colors here only.
   ========================================================== */
:root {
  --primary: #1a6fb0;
  /* buttons, links, active states */
  --primary-strong: #12578d;
  /* hover, pressed */
  --ink: #0f3350;
  /* headings, key figures */
  --sky: #4cb2ec;
  /* accent rule, highlights */
  --sky-200: #bfe2f8;
  --sky-100: #e2f2fd;
  --sky-50: #f3f9fe;
  --bg: #edf5fc;
  --card: #fff;
  --border: #d5e5f2;
  --border-strong: #b5d0e6;
  --text: #1b3044;
  --muted: #566d84;
  --subtle: #586e88;
  --danger: #b3372f;
  --danger-soft: #fdeceb;
  --success: #1f7547;
  --success-soft: #e3f4ea;
  --warning: #85570a;
  --warning-soft: #fff2d4;
  --radius: 12px;
  --shadow: 0 6px 22px rgba(18, 87, 141, .07);
  --focus: 0 0 0 3px rgba(76, 178, 236, .45);
  /* legacy names kept for any custom pages */
  --navy: var(--ink);
  --navy-2: var(--primary);
  --accent: var(--sky);
  --accent-soft: var(--sky-100);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scrollbar-color: #a9c8e0 #e6f0f8;
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

::-webkit-scrollbar-track {
  background: #e6f0f8;
}

::-webkit-scrollbar-thumb {
  background: #a9c8e0;
  border: 3px solid #e6f0f8;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #6f9cc0;
}

@media (forced-colors: active) {
  ::-webkit-scrollbar-thumb {
    background: CanvasText;
    border-color: Canvas;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

/* ---------- Page shells ---------- */
.auth-screen {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background-color: #2a6e9f;
  background-image: linear-gradient(120deg, rgba(10, 64, 108, .66), rgba(60, 155, 220, .34)), url('../images/auth-laundry.png');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.auth-screen .topbar {
  /* solid, same as every other page, so the logo blends cleanly */
  background: linear-gradient(90deg, #e6f4fe 0%, #cfe9fb 100%);
}

.auth-screen main.container {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 28px 18px;
}

.auth-screen main.container>.alert {
  width: min(100%, 420px);
  margin: 0 auto 12px;
}

.auth-screen main.container>.card {
  width: min(100%, 420px);
  margin: 0 auto;
}

.auth-screen .footer {
  flex: 0 0 auto;
  margin-top: auto;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}

@media (min-width: 761px) {
  .auth-screen {
    background-attachment: fixed;
  }
}

.authenticated-screen {
  min-height: 100vh;
  min-height: 100svh;
  background-color: var(--bg);
  background-image: linear-gradient(rgba(237, 245, 252, .93), rgba(237, 245, 252, .93)), url('../images/auth-laundry.png');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.authenticated-screen .footer {
  text-shadow: 0 1px 2px rgba(255, 255, 255, .8);
}

@media (max-width: 760px) {
  .authenticated-screen {
    background-attachment: scroll;
  }
}

a {
  color: var(--primary);
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

/* Form fields: no glow or colour change when the cursor is on them (only a plain border while typing). */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: none;
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 76px;
  background: linear-gradient(90deg, #e6f4fe 0%, #cfe9fb 100%);
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 10px clamp(18px, 4vw, 56px);
  border-bottom: 3px solid var(--sky);
  box-shadow: 0 2px 14px rgba(18, 87, 141, .08);
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  font: 800 19px/1 'Manrope', sans-serif;
  letter-spacing: -.04em;
}

.brand img {
  display: block;
  width: 168px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  /* Blend the logo into the top bar: any white in the image takes the bar's colour. */
  mix-blend-mode: multiply;
}

.topbar nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  flex-wrap: wrap;
}

.topbar nav a {
  color: #174a72;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background .16s ease, color .16s ease;
}

.topbar nav a:hover {
  background: rgba(255, 255, 255, .7);
  color: var(--primary-strong);
  text-decoration: none;
}

.topbar nav a[aria-current="page"] {
  background: #fff;
  color: var(--primary-strong);
  box-shadow: inset 0 -2px 0 var(--sky);
  text-decoration: none;
}

.topbar nav a.logout {
  color: var(--danger);
  margin-left: 4px;
}

.who {
  color: var(--muted);
  font-size: 12px;
  padding: 0 10px;
  white-space: nowrap;
  text-transform: capitalize;
}

@media (min-width: 761px) and (max-width: 1440px) {
  .who.who-compact {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 6px;
  }

  .brand img {
    width: 150px;
  }
}

.who-branch {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff;
  color: var(--primary-strong);
  font-weight: 700;
  text-transform: none;
  border: 1px solid var(--sky-200);
}

.container {
  width: min(1180px, 100% - 48px);
  margin: 30px auto 52px;
}

h1,
h2,
h3 {
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  color: var(--ink);
  letter-spacing: -.03em;
}

h1 {
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.2;
  margin: 0 0 8px;
}

h2 {
  font-size: 19px;
  line-height: 1.3;
  margin: 0 0 16px;
}

h3 {
  font-size: 16px;
  margin: 0 0 10px;
}

p {
  margin-top: 0;
}

.subtitle {
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 72ch;
}

/* ---------- Cards & stats ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 26px);
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 14px;
}

.stat {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

.stat:before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sky), #8fd2f6);
}

.stat .num {
  font: 800 30px/1.15 'Manrope', sans-serif;
  letter-spacing: -.04em;
  color: var(--ink);
  margin-top: 6px;
}

.stat .label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-top: 4px;
}

.stat-sub {
  display: block;
  margin-top: 8px;
  color: var(--subtle);
  font-size: 12px;
}

.stat-compact {
  max-width: 240px;
  margin-bottom: 20px;
}

.stat .num .btn {
  font: 600 14px 'DM Sans', sans-serif;
  letter-spacing: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  padding: 9px 16px;
  border-radius: 8px;
  font: 700 14px 'DM Sans', sans-serif;
  cursor: pointer;
  transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
  text-decoration: none;
}

.btn:hover {
  background: var(--primary-strong);
  border-color: var(--primary-strong);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(18, 87, 141, .18);
}

.btn.secondary {
  background: #fff;
  color: var(--primary-strong);
  border-color: var(--border-strong);
}

.btn.secondary:hover {
  background: var(--sky-50);
  border-color: var(--sky);
  box-shadow: none;
}

.btn.small {
  min-height: 34px;
  padding: 6px 11px;
  font-size: 12px;
}

.btn.danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.btn:disabled,
button:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.link-button {
  border: 0;
  background: none;
  padding: 4px 0;
  color: var(--danger);
  font: 600 12px 'DM Sans', sans-serif;
  cursor: pointer;
}

.link-button:hover {
  text-decoration: underline;
}

@media (forced-colors: active) {

  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  select:focus-visible,
  textarea:focus-visible {
    outline: 2px solid Highlight;
    outline-offset: 3px;
    box-shadow: none;
  }
}

/* ---------- Tabs (status filters + branch switcher) ---------- */
.tabs {
  display: flex;
  gap: 7px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 14px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.tabs a:hover {
  border-color: var(--sky);
  text-decoration: none;
}

.tabs a.active,
.tabs a[aria-current="page"] {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.branch-tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 18px;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow-x: auto;
  box-shadow: var(--shadow);
}

.branch-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  min-height: 38px;
  padding: 7px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.branch-tabs a:hover {
  background: var(--sky-50);
  color: var(--primary-strong);
  text-decoration: none;
}

.branch-tabs a[aria-current="page"] {
  background: var(--sky-100);
  color: var(--primary-strong);
  box-shadow: inset 0 -2px 0 var(--primary);
}

.tab-tag {
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 9px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.tab-tag.muted {
  background: #c5d3df;
  color: #33475a;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: #e7eef4;
  color: #3d5469;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pill-main {
  background: var(--primary);
  color: #fff;
}

.pill-row {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ---------- Tables ---------- */
.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  min-width: 620px;
}

.card:has(> table),
.card:has(> .table-wrap) {
  overflow-x: auto;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

th {
  background: var(--sky-50);
  color: #3f5b75;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td {
  background: #f7fbfe;
}

tfoot th,
tfoot td {
  background: var(--sky-50);
  font-weight: 800;
  color: var(--ink);
  border-top: 2px solid var(--border-strong);
  border-bottom: 0;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
}

.num-col {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.compact-table {
  min-width: 420px;
}

.compact-table th,
.compact-table td {
  padding: 9px 12px;
}

td form {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 190px;
}

td form select {
  min-width: 112px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
  white-space: nowrap;
}

.badge.pending {
  background: #fff4e0;
  color: #9a5b00;
}

.badge.received {
  background: #e6eef6;
  color: #34506b;
}

.badge.in_process {
  background: var(--warning-soft);
  color: var(--warning);
}

.badge.ready_for_pickup {
  background: var(--sky-100);
  color: #0f5d93;
}

.badge.completed,
.badge.ok {
  background: var(--success-soft);
  color: var(--success);
}

.badge.cancelled,
.badge.low {
  background: var(--danger-soft);
  color: #9a2f28;
}

/* ---------- Forms ---------- */
form.stacked label,
.booking-form label,
.form-row-2 label {
  display: block;
  margin: 15px 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: #2c4660;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #c4d7e7;
  border-radius: 8px;
  font: 14px 'DM Sans', sans-serif;
  color: var(--text);
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: none;
  border-color: #c4d7e7;
}

/* No up/down arrows on number fields (weight, pieces...) */
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

input[type="radio"],
input[type="checkbox"] {
  width: auto;
  min-height: 0;
}

input::placeholder,
textarea::placeholder {
  color: #8ea2b5;
}

textarea {
  resize: none;
  min-height: 72px;
}

.input-narrow {
  max-width: 120px;
}

form.stacked .btn {
  margin-top: 18px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.form-actions .field-hint {
  margin: 0 auto 0 0;
}

form.stacked .form-actions .btn {
  margin-top: 0;
}

.alert {
  padding: 13px 16px;
  border-radius: 9px;
  margin-bottom: 18px;
  font-size: 14px;
  border: 1px solid transparent;
}

.alert-error {
  background: var(--danger-soft);
  color: #8e2a24;
  border-color: #f2c4c0;
}

.alert-success {
  background: var(--success-soft);
  color: #1d6a41;
  border-color: #bfe3cd;
}

.footer {
  text-align: center;
  color: var(--subtle);
  font-size: 12px;
  padding: 16px 20px 28px;
}

.text-right {
  text-align: right;
}

.text-danger {
  color: var(--danger);
  font-weight: 700;
}

.mt-16 {
  margin-top: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

.empty-state {
  padding: 32px 18px;
  text-align: center;
  color: var(--muted);
}

.forbidden-page {
  max-width: 580px;
  margin: 8vh auto;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.forbidden-page h1 {
  max-width: 15ch;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.two-col>.card {
  margin-bottom: 0;
}

/* ---------- Headings ---------- */
.page-heading {
  margin: 0 0 22px;
}

.page-heading-row,
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.page-heading .subtitle {
  margin-bottom: 0;
}

.page-heading .eyebrow,
.section-heading .eyebrow {
  margin-bottom: 8px;
}

.heading-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 14px;
}

.section-title-row h2 {
  margin: 0;
}

.list-note {
  color: var(--muted);
  font-size: 12px;
}

/* ---------- Dashboards ---------- */
.customer-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 23px;
}

.customer-summary .stat {
  padding: 19px 23px;
}

.operations-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 23px;
}

.operations-summary .stat {
  padding: 18px 19px 17px;
}

.operations-summary .stat .num {
  margin-top: 12px;
  font-size: clamp(25px, 2.6vw, 33px);
}

.operations-summary .stat .money {
  font-size: clamp(21px, 2.1vw, 28px);
}

.stat-note {
  color: var(--subtle);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .09em;
  margin-left: auto;
  text-align: right;
}

.stat-alert:before {
  background: var(--danger);
}

.stat-alert .num {
  color: var(--danger);
}

.branch-performance {
  margin-bottom: 22px;
}

.branch-performance table {
  min-width: 560px;
}

.workflow-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.workflow-links>a {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 132px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: border-color .16s ease, transform .16s ease;
}

.workflow-links>a:hover {
  border-color: var(--sky);
  text-decoration: none;
  transform: translateY(-2px);
}

.workflow-kicker {
  color: var(--primary);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}

.workflow-links strong {
  margin: 8px 0 4px;
  color: var(--ink);
  font: 700 17px 'Manrope', sans-serif;
}

.workflow-links span:not(.workflow-kicker) {
  max-width: 34ch;
  color: var(--muted);
  font-size: 12px;
}

.workflow-links b {
  position: absolute;
  top: 16px;
  right: 18px;
  color: var(--sky);
  font-size: 15px;
}

.stat-heading {
  display: flex;
  align-items: center;
  gap: 9px;
}

.stat-heading .label {
  margin: 0;
}

.stat-symbol {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--sky-100);
  color: var(--primary);
  font-size: 15px;
}

.stat-reward:before {
  background: linear-gradient(90deg, #2fb58a, #8fe0c2);
}

.stat-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.section-card {
  padding: 0;
  overflow: hidden;
}

.section-heading {
  padding: 22px 24px 14px;
  align-items: center;
}

.section-heading h2 {
  margin: 0;
}

.section-card .table-wrap {
  border: 0;
  border-radius: 0;
}

.section-card table {
  min-width: 680px;
}

.section-card th:first-child,
.section-card td:first-child {
  padding-left: 24px;
}

.section-card th:last-child,
.section-card td:last-child {
  padding-right: 24px;
}

.order-number {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.empty-first-order {
  padding: 36px 20px 42px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.empty-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--sky-100);
  color: var(--primary);
  font-size: 20px;
}

.empty-first-order h3 {
  margin: 13px 0 5px;
}

.empty-first-order p {
  font-size: 13px;
  margin-bottom: 17px;
}

/* ---------- Branch cards ---------- */
.branch-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 14px;
}

.branch-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 4px solid var(--sky-200);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.branch-card.is-main {
  border-top-color: var(--primary);
  background: linear-gradient(180deg, var(--sky-50), #fff 60%);
}

.branch-card.is-inactive,
.branch-admin-card.is-inactive {
  opacity: .72;
}

.branch-card header,
.branch-admin-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.branch-card h3 {
  margin: 0 0 2px;
  font-size: 17px;
}

.branch-card header p,
.branch-admin-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.branch-card dl,
.mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
}

.branch-card dl div,
.mini-stats div {
  padding: 8px 10px;
  background: var(--sky-50);
  border: 1px solid #e3eef7;
  border-radius: 8px;
  min-width: 0;
}

.branch-card dt,
.mini-stats dt {
  color: var(--subtle);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.branch-card dd,
.mini-stats dd {
  margin: 2px 0 0;
  color: var(--ink);
  font: 800 15px 'Manrope', sans-serif;
  overflow-wrap: anywhere;
}

.branch-card-meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.branch-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.branch-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 16px;
}

.branch-admin-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  border-top: 4px solid var(--sky-200);
}

.branch-admin-card.is-main {
  border-top-color: var(--primary);
}

.branch-admin-head h2 {
  margin: 0 0 2px;
}

.mini-stats {
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
}

.mini-stats dd {
  font-size: 13px;
}

.branch-edit summary,
.service-admin summary {
  cursor: pointer;
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
}

.branch-edit form {
  margin-top: 4px;
}

.branch-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.branch-admin-actions form {
  display: contents;
}

/* ---------- Booking ---------- */
.booking-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr);
  gap: 20px;
  align-items: start;
}

.booking-main>.card {
  margin-bottom: 16px;
}

.booking-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
}

.booking-side>.card {
  margin: 0;
}

.step-no {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  vertical-align: 2px;
}

.section-hint {
  margin: -8px 0 12px;
  font-size: 12px;
}

.branch-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
  gap: 10px;
}

.branch-option {
  position: relative;
  display: block;
  margin: 0 !important;
  cursor: pointer;
}

.branch-option input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.branch-option-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  height: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
  transition: border-color .15s ease, background .15s ease;
}

.branch-option-body strong {
  color: var(--ink);
  font-size: 14px;
}

.branch-option-body small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.branch-option-body .pill {
  align-self: flex-start;
}

.branch-option:hover .branch-option-body {
  border-color: var(--sky);
}

.branch-option input:checked+.branch-option-body {
  border-color: var(--primary);
  background: var(--sky-100);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.branch-option input:focus-visible+.branch-option-body {
  box-shadow: var(--focus);
}

.line-item {
  margin: 0 0 12px;
  padding: 14px 16px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--sky-50);
}

.line-title {
  padding: 0 6px;
  margin-left: -6px;
  color: var(--primary-strong);
  font: 800 11px 'DM Sans', sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.line-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 12px;
}

.line-grid label {
  margin-top: 6px !important;
}

.line-note {
  grid-column: 1 / -1;
}

.line-service .field-hint {
  min-height: 14px;
}

.line-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-strong);
  font-size: 12px;
  color: var(--muted);
}

.line-amount strong {
  color: var(--ink);
  font-size: 14px;
}

.estimate-card h2 {
  margin-bottom: 10px;
}

.estimate-lines {
  margin: 0;
}

.estimate-lines div {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.estimate-lines dt {
  color: var(--muted);
}

.estimate-lines dd {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
}

.estimate-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--sky-100);
  border: 1px solid var(--sky-200);
  border-radius: 10px;
  color: #2c4f6d;
  font-size: 12px;
}

.estimate-panel strong {
  color: var(--ink);
  font: 800 23px 'Manrope', sans-serif;
}

.booking-submit {
  width: 100%;
  margin-top: 14px;
  min-height: 48px;
}

.rate-card {
  padding: 20px;
}

.rate-cat {
  margin: 14px 0 6px;
  color: var(--primary);
  font: 800 10px 'DM Sans', sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.rate-cat:first-of-type {
  margin-top: 0;
}

.rate-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rate-list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}

.rate-list li:last-child {
  border-bottom: 0;
}

.rate-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.rate-head strong {
  color: var(--ink);
  font-size: 13px;
}

.rate-price {
  color: var(--primary-strong);
  font: 800 15px 'Manrope', sans-serif;
  white-space: nowrap;
}

.rate-price small,
.service-price small {
  color: var(--muted);
  font: 600 11px 'DM Sans', sans-serif;
}

.rate-list p {
  margin: 2px 0 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.rate-meta,
.service-meta {
  color: var(--subtle);
  font-size: 11px;
}

/* legacy booking blocks still used by feedback page */
.booking-layout,
.feedback-layout {
  display: grid;
  grid-template-columns: minmax(230px, .75fr) minmax(420px, 1.1fr);
  align-items: start;
  gap: clamp(28px, 7vw, 80px);
  max-width: 1040px;
  margin: 18px auto 28px;
}

.feedback-intro,
.booking-intro {
  padding-top: 27px;
}

.feedback-intro h1 {
  font-size: clamp(32px, 4.2vw, 48px);
}

.feedback-forms {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.feedback-card {
  margin: 0;
  padding: clamp(20px, 3vw, 30px);
}

.feedback-card h2 {
  margin-bottom: 8px;
}

.feedback-inquiries {
  width: min(100%, 1040px);
  margin: 0 auto 42px;
}

.booking-note {
  display: flex;
  gap: 12px;
  max-width: 340px;
  margin-top: 30px;
  padding: 16px;
  background: var(--sky-100);
  border-radius: 10px;
  color: #3a5875;
}

.booking-note>span {
  color: var(--primary);
}

.booking-note p {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
}

.booking-note strong {
  color: var(--ink);
}

.booking-card {
  padding: clamp(20px, 3vw, 32px);
}

.inquiry-item {
  min-width: 0;
  margin: 0 0 12px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--sky-50);
}

.inquiry-item:last-child {
  margin-bottom: 0;
}

.inquiry-message,
.inquiry-response {
  max-width: 72ch;
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  line-height: 1.65;
}

.inquiry-status {
  display: flex;
  width: fit-content;
  margin-top: 12px;
}

.inquiry-response {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
}

.booking-card .stacked label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.required-mark {
  color: var(--subtle);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-left: 6px;
}

.field-hint {
  display: block;
  color: var(--subtle);
  font-size: 11px;
  margin-top: 5px;
}

.input-unit {
  position: relative;
}

.input-unit input {
  padding-right: 46px;
}

.input-unit>span {
  position: absolute;
  top: 50%;
  right: 12px;
  color: var(--subtle);
  font-size: 12px;
  transform: translateY(-50%);
  pointer-events: none;
}

.form-footnote {
  margin: 10px 0 0;
  color: var(--subtle);
  font-size: 11px;
  text-align: center;
}

.field-error {
  display: block;
  color: #9a2f28;
  font-size: 11px;
  margin-top: 5px;
}

input.field-invalid,
select.field-invalid,
textarea.field-invalid {
  border-color: var(--danger);
}

.form-error-summary {
  margin: 0 0 15px;
  padding: 12px 14px;
  border: 1px solid #f2c4c0;
  border-radius: 8px;
  background: var(--danger-soft);
  color: #8e2a24;
  font-size: 12px;
}

.btn[aria-busy="true"] {
  position: relative;
  color: transparent;
}

.btn[aria-busy="true"]::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin .7s linear infinite;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Service catalog ---------- */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 12px;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: border-color .15s ease, transform .15s ease;
}

a.service-card:hover {
  border-color: var(--sky);
  transform: translateY(-2px);
  text-decoration: none;
}

.service-cat {
  color: var(--primary);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.service-card strong {
  color: var(--ink);
  font: 700 16px 'Manrope', sans-serif;
}

.service-desc {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.service-price {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--border-strong);
  color: var(--primary-strong);
  font: 800 20px 'Manrope', sans-serif;
}

.service-admin-list {
  display: grid;
  gap: 10px;
}

.service-admin {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.service-admin[open] {
  border-color: var(--sky);
  box-shadow: var(--shadow);
}

.service-admin.is-inactive summary {
  opacity: .7;
}

.service-admin summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  list-style: none;
  color: var(--text);
  font-weight: 400;
}

.service-admin summary::-webkit-details-marker {
  display: none;
}

.service-admin form {
  padding: 0 16px 16px;
  border-top: 1px solid var(--border);
}

.svc-sum-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.svc-sum-main strong {
  color: var(--ink);
}

.svc-sum-main small {
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.svc-sum-price {
  color: var(--primary-strong);
  font: 800 17px 'Manrope', sans-serif;
  white-space: nowrap;
}

.svc-sum-price small {
  color: var(--muted);
  font: 600 11px 'DM Sans', sans-serif;
}

.service-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 14px;
}

.service-form-grid .span-all {
  grid-column: 1 / -1;
}

/* ---------- Orders ---------- */
.order-card {
  padding: 22px 24px;
}

.order-card-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.order-card-heading .eyebrow {
  margin-bottom: 5px;
}

.order-card-heading h2 {
  margin: 0;
}

.order-sub {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.order-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.order-facts div {
  min-width: 0;
}

.order-facts dt {
  color: var(--subtle);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.order-facts dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.order-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.order-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.order-progress li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--subtle);
  font-size: 11px;
  font-weight: 600;
}

.order-progress li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 26px;
  right: -6px;
  height: 2px;
  background: #dbe7f1;
  z-index: 0;
}

.order-progress li.is-complete::after {
  background: var(--sky);
}

.progress-mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border: 1px solid #c9dbea;
  border-radius: 50%;
  background: #fff;
  font-size: 10px;
}

.order-progress li.is-complete,
.order-progress li.is-current {
  color: var(--ink);
}

.order-progress li.is-complete .progress-mark {
  color: #fff;
  background: #2577b5;
  border-color: #2577b5;
}

.order-progress li.is-current .progress-mark {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--sky-100);
}

.order-cancelled-note {
  padding: 12px;
  color: #8e2a24;
  background: var(--danger-soft);
  border-radius: 8px;
  font-size: 12px;
}

.password-control {
  position: relative;
}

.password-control input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  /* centred on the input itself, so an error message below it does not move the icon */
  top: calc(var(--pw-input-h, 42px) / 2);
  right: 6px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background .16s ease, color .16s ease;
}

.password-toggle:hover {
  background: var(--sky-100);
  color: var(--primary-strong);
}

.password-toggle[aria-pressed="true"] {
  color: var(--primary);
}

.password-toggle .eye-closed,
.password-toggle[aria-pressed="true"] .eye-open {
  display: none;
}

.password-toggle[aria-pressed="true"] .eye-closed {
  display: block;
}

.order-filters {
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-gutter: stable;
}

.order-list-card {
  padding: 0;
  overflow: hidden;
}

.card:has(> .list-toolbar) {
  overflow: hidden;
}

.card>.list-toolbar+.table-wrap {
  border: 0;
  border-radius: 0;
}

.list-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 52px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
}

.list-toolbar p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

.order-list-card table {
  min-width: 1180px;
}

.order-list-card th:first-child,
.order-list-card td:first-child {
  padding-left: 18px;
}

.order-list-card .table-wrap {
  border: 0;
  border-radius: 0;
}

.inline-update {
  min-width: 210px;
}

.inline-update select {
  min-width: 136px;
  min-height: 34px;
  padding: 5px 27px 5px 8px;
  font-size: 12px;
}

.inline-update input {
  min-height: 34px;
  max-width: 110px;
}

.inline-update .btn {
  flex: 0 0 auto;
}

.pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 13px;
  min-height: 58px;
  padding: 0 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}

.pagination-control {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--primary-strong);
  font-weight: 700;
}

.pagination-control:hover {
  background: var(--sky-50);
  text-decoration: none;
}

.pagination-control.is-disabled {
  color: #9fb0bf;
  background: #f4f7fa;
  cursor: default;
}

/* ---------- Dialog ---------- */
.confirm-dialog {
  width: min(460px, calc(100% - 28px));
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  box-shadow: 0 24px 70px rgba(12, 58, 96, .25);
}

.confirm-dialog::backdrop {
  background: rgba(14, 48, 78, .45);
}

.confirm-dialog-content {
  padding: 25px;
}

.confirm-dialog-content .eyebrow {
  margin-bottom: 8px;
}

.confirm-dialog-content h2 {
  margin: 0 0 9px;
}

.confirm-dialog-content>p:not(.eyebrow) {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 23px;
}

.confirm-actions .danger-action {
  background: var(--danger);
  border-color: var(--danger);
}

.confirm-actions .warning-action {
  background: var(--warning-soft);
  border-color: #e6c67a;
  color: #5a3d06;
}

.compact-form {
  max-width: 420px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.compact-form h3 {
  margin-bottom: 2px;
}

/* ---------- Reports ---------- */
.report-filters {
  display: grid;
  grid-template-columns: minmax(140px, .7fr) minmax(140px, .7fr) minmax(120px, .6fr) minmax(200px, 1.4fr) auto;
  gap: 12px;
  align-items: end;
}

.report-filters label {
  display: block;
  margin: 0 0 6px;
  color: #2c4660;
  font-size: 12px;
  font-weight: 700;
}

.report-search {
  min-width: 0;
}

.search-control {
  position: relative;
  display: block;
}

.search-control input {
  padding-right: 42px;
}

.clear-search {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 19px;
  cursor: pointer;
  transform: translateY(-50%);
}

.clear-search:hover {
  background: var(--sky-100);
}

.search-control input[type="search"]::-webkit-search-cancel-button {
  display: none;
}

.report-history-heading {
  align-items: center;
  padding: 0 0 12px;
}

.report-history-heading h2 {
  margin: 0;
}

.report-filters .btn {
  min-width: 122px;
}

.quick-ranges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.quick-ranges a {
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.quick-ranges a:hover {
  border-color: var(--sky);
  text-decoration: none;
}

.quick-ranges a[aria-current="true"] {
  background: var(--sky-100);
  border-color: var(--sky);
  color: var(--primary-strong);
}

.report-kpis {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.report-kpis .num {
  font-size: clamp(20px, 2.1vw, 27px);
}

.share {
  display: inline-block;
  width: 90px;
  height: 8px;
  border-radius: 999px;
  background: var(--sky-100);
  vertical-align: middle;
  overflow: hidden;
  margin-right: 6px;
}

.share-bar {
  display: block;
  height: 100%;
  background: var(--primary);
  border-radius: 999px;
}

/* ---------- Receipt ---------- */
.receipt-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 860px;
  margin: 0 auto 14px;
}

.receipt-actions>div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.receipt {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 40px);
  background: #fff;
  border: 1px solid var(--border);
  border-top: 6px solid var(--primary);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.receipt-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 2px dashed var(--border-strong);
}

.receipt-brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.receipt-brand img {
  width: 120px;
  height: auto;
  border-radius: 8px;
}

.receipt-brand div {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  color: var(--muted);
}

.receipt-brand strong {
  color: var(--ink);
  font: 800 17px 'Manrope', sans-serif;
}

.receipt-id {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
}

.receipt-id h1 {
  margin: 0;
  font-size: 22px;
}

.receipt-no {
  font: 700 14px ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--primary-strong);
  background: var(--sky-100);
  padding: 3px 9px;
  border-radius: 6px;
}

.receipt-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 18px 0;
}

.receipt-meta dt {
  color: var(--subtle);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.receipt-meta dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.receipt-table table {
  min-width: 560px;
}

.receipt-cat {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--sky-100);
  color: var(--primary-strong);
  font-size: 10px;
  font-weight: 700;
}

.receipt-desc {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.receipt-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 24px;
  margin-top: 18px;
}

.receipt-notes p {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--text);
}

.receipt-totals {
  margin: 0;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--sky-50);
}

.receipt-totals div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  font-size: 13px;
}

.receipt-totals dt {
  color: var(--muted);
}

.receipt-totals dd {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.receipt-totals .grand {
  margin-top: 4px;
  padding-top: 9px;
  border-top: 1px solid var(--border-strong);
}

.receipt-totals .grand dt,
.receipt-totals .grand dd {
  color: var(--ink);
  font: 800 18px 'Manrope', sans-serif;
}

.receipt-totals .balance dd {
  color: var(--primary-strong);
}

.receipt-foot {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 2px dashed var(--border-strong);
  color: var(--subtle);
  font-size: 11px;
  text-align: center;
}

.receipt-foot p {
  margin: 0 0 4px;
}

/* ---------- Updates & promos carousel ---------- */
.promo {
  margin: 0 0 20px;
}

.promo-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.promo-head h2 {
  margin: 0;
}

.promo-nav {
  display: flex;
  gap: 6px;
}

.promo-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: #fff;
  color: var(--primary-strong);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.promo-btn:hover {
  background: var(--sky-50);
  border-color: var(--sky);
}

.promo-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(18, 87, 141, .16);
}

.promo-track::-webkit-scrollbar {
  display: none;
}

.promo-track:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.promo-slide {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: 18px;
  min-height: 300px;
  padding: clamp(22px, 3.4vw, 40px);
  scroll-snap-align: start;
  color: #fff;
}

.promo-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, .22) 0 46px, transparent 47px),
    radial-gradient(circle at 70% 92%, rgba(255, 255, 255, .14) 0 70px, transparent 71px),
    radial-gradient(circle at 6% 88%, rgba(255, 255, 255, .12) 0 28px, transparent 29px),
    radial-gradient(circle at 46% 8%, rgba(255, 255, 255, .10) 0 14px, transparent 15px);
}

.theme-sky {
  background: linear-gradient(135deg, #5cc0f2 0%, #2b8ad0 55%, #1a6fb0 100%);
}

.theme-navy {
  background: linear-gradient(135deg, #12406a 0%, #0f3350 60%, #0b2740 100%);
}

.theme-green {
  background: linear-gradient(135deg, #56b98a 0%, #2a8c5e 60%, #1f7547 100%);
}

.theme-sunset {
  background: linear-gradient(135deg, #f6a04d 0%, #e46a3a 55%, #c9452d 100%);
}

.promo-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.promo-eyebrow {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .35);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}

.promo-title {
  margin: 0;
  color: #fff;
  font: 800 clamp(38px, 6vw, 68px)/.95 'Manrope', sans-serif;
  letter-spacing: -.045em;
  text-transform: uppercase;
  text-shadow: 0 3px 0 rgba(0, 0, 0, .12);
  overflow-wrap: anywhere;
}

.promo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .14);
}

.promo-chip {
  padding: 7px 16px;
  background: #fff;
  color: var(--ink);
  font: 800 clamp(13px, 1.6vw, 17px) 'Manrope', sans-serif;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.promo-chip-hot {
  background: #e5483d;
  color: #fff;
}

.promo-body {
  max-width: 46ch;
  margin: 0;
  color: rgba(255, 255, 255, .92);
  font-size: 14px;
  line-height: 1.6;
}

.promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--primary-strong);
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
}

.promo-cta:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.promo-art {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-width: 0;
  color: #0f3350;
}

.promo-svg {
  width: min(100%, 330px);
  height: auto;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .18));
}

.promo-image {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .22);
}

.promo-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 22px 26px 20px;
  background: #fff;
  border-radius: 18px;
  color: var(--ink);
  text-align: center;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .22);
  transform: rotate(2deg);
}

.promo-person img,
.promo-avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--sky-100);
}

.promo-avatar {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--sky), var(--primary));
  color: #fff;
  font: 800 44px 'Manrope', sans-serif;
}

.promo-person figcaption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  color: var(--muted);
}

.promo-person strong {
  color: var(--ink);
  font: 800 19px 'Manrope', sans-serif;
}

.promo-star {
  color: #f2b230;
  font-size: 18px;
}

.promo-branch {
  margin-top: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--sky-100);
  color: var(--primary-strong);
  font-weight: 700;
  font-size: 11px;
}

.promo-team {
  position: relative;
  width: 250px;
  height: 220px;
}

.promo-team-dot {
  position: absolute;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  border: 4px solid rgba(255, 255, 255, .5);
  background-clip: padding-box;
  font: 800 15px 'Manrope', sans-serif;
  letter-spacing: .04em;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .22);
}

.promo-team-dot.t0 {
  left: 86px;
  top: 0;
  background-color: #fff;
}

.promo-team-dot.t1 {
  left: 0;
  top: 58px;
  background-color: #e2f2fd;
}

.promo-team-dot.t2 {
  right: 0;
  top: 58px;
  background-color: #e2f2fd;
}

.promo-team-dot.t3 {
  left: 30px;
  bottom: 0;
  background-color: #fff;
}

.promo-team-dot.t4 {
  right: 30px;
  bottom: 0;
  background-color: #fff;
}

.promo-team-heart {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  color: #e5483d;
  font-size: 44px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}

.promo-burst {
  color: rgba(255, 255, 255, .9);
  font-size: 140px;
  line-height: 1;
}

.promo-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
}

.promo-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #b9cfe2;
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}

.promo-dot[aria-selected="true"] {
  width: 26px;
  background: var(--primary);
}

.promo-dot:focus-visible {
  box-shadow: var(--focus);
}

.promo-pause {
  margin-left: 8px;
  padding: 3px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font: 700 11px 'DM Sans', sans-serif;
  cursor: pointer;
}

.promo-pause:hover {
  color: var(--primary-strong);
  border-color: var(--sky);
}

@media (max-width: 760px) {
  .promo-slide {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 8px;
    text-align: left;
  }

  .promo-art {
    order: -1;
  }

  .promo-svg {
    width: 210px;
  }

  .promo-team {
    transform: scale(.75);
    height: 170px;
    margin: -10px 0;
  }

  .promo-person {
    flex-direction: row;
    text-align: left;
    padding: 14px 16px;
    transform: none;
  }

  .promo-person img,
  .promo-avatar {
    width: 76px;
    height: 76px;
    font-size: 26px;
  }

  .promo-person figcaption {
    align-items: flex-start;
  }
}

form.stacked label.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-weight: 600;
}

.promo-admin-list {
  display: grid;
  gap: 12px;
}

.promo-admin-item {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.promo-thumb {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 96px;
  padding: 12px;
  border-radius: 12px;
  color: #fff;
  overflow: hidden;
}

.promo-thumb strong {
  font: 800 18px/1 'Manrope', sans-serif;
  text-transform: uppercase;
  letter-spacing: -.03em;
  overflow-wrap: anywhere;
}

.promo-thumb small {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  opacity: .9;
}

.promo-admin-item.is-hidden .promo-thumb {
  filter: grayscale(.8);
  opacity: .6;
}

@media (max-width: 760px) {
  .promo-admin-item {
    grid-template-columns: 1fr;
  }
}

/* ---------- Unanswered message reminders ---------- */
.nav-with-badge {
  position: relative;
  display: inline-flex;
}

.nav-badge {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(35%, -30%);
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e5483d;
  color: #fff;
  font: 800 11px/19px 'DM Sans', sans-serif;
  text-align: center;
  box-shadow: 0 0 0 2px #e6f4fe;
  pointer-events: none;
}

.nav-badge[hidden] {
  display: none;
}

.inq-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  width: min(380px, calc(100vw - 32px));
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 5px solid #e5483d;
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(12, 58, 96, .25);
  color: var(--text);
}

.inq-toast[hidden] {
  display: none;
}

.inq-toast.is-new {
  animation: inq-in .35s ease-out;
}

@keyframes inq-in {
  from {
    transform: translateY(16px);
    opacity: 0;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

.inq-toast-head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
}

.inq-pulse {
  position: relative;
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e5483d;
}

.inq-pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #e5483d;
  animation: inq-ping 1.4s ease-out infinite;
}

@keyframes inq-ping {
  from {
    transform: scale(.6);
    opacity: .9;
  }

  to {
    transform: scale(1.6);
    opacity: 0;
  }
}

.inq-toast-sub {
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.inq-toast-list {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.inq-toast-list li {
  padding: 8px 10px;
  background: var(--sky-50);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.45;
}

.inq-toast-list span {
  color: #b3372f;
  font-weight: 700;
}

.inq-toast-list small {
  color: var(--muted);
}

.inq-toast-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.inq-enable {
  color: var(--primary);
}

.inquiry-waiting {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #fdeceb;
  color: #9a2f28;
  font-size: 11px;
  font-weight: 800;
}

@media print {
  .inq-toast {
    display: none !important;
  }
}

/* ---------- Order activity ---------- */
.order-activity {
  padding: 0;
  overflow: hidden;
}

.activity-today {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 24px 16px;
}

.activity-today span {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sky-50);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}

.activity-today b {
  color: var(--ink);
  font-size: 14px;
  margin-right: 2px;
}

.order-activity-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  border-top: 1px solid var(--border);
}

.oa-orders {
  padding: 16px 20px 20px 24px;
  border-right: 1px solid var(--border);
  min-width: 0;
}

.oa-feed {
  padding: 16px 24px 20px 20px;
  min-width: 0;
}

.oa-sub {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.oa-sub h3 {
  margin: 0;
  font-size: 15px;
}

.oa-orders table {
  min-width: 460px;
}

.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.activity-item {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0 12px;
}

.activity-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 42px;
  bottom: -4px;
  width: 2px;
  background: var(--border);
}

.activity-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sky-100);
  color: var(--primary-strong);
  font-size: 15px;
  font-weight: 800;
}

.type-booked .activity-icon {
  background: #e3f4ea;
  color: var(--success);
}

.type-status .activity-icon {
  background: var(--sky-100);
  color: var(--primary-strong);
}

.type-weighed .activity-icon {
  background: #fff2d4;
  color: var(--warning);
}

.type-feedback .activity-icon {
  background: #fff2d4;
  color: #b7791f;
}

.type-inquiry .activity-icon {
  background: #fdeceb;
  color: #b3372f;
}

.type-reply .activity-icon {
  background: #ece9fb;
  color: #5b3fb3;
}

.activity-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  font-size: 13px;
  color: var(--ink);
}

.activity-order {
  font-weight: 700;
  font-size: 12px;
}

.activity-top time {
  margin-left: auto;
  color: var(--subtle);
  font-size: 11px;
  white-space: nowrap;
}

.activity-body p {
  margin: 2px 0 2px;
  color: var(--text);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.activity-body small {
  color: var(--muted);
  font-size: 11px;
}

section.card>.activity-list {
  padding: 4px 6px;
}

.activity-filters {
  grid-template-columns: minmax(150px, .8fr) minmax(130px, .7fr) minmax(130px, .7fr) minmax(200px, 1.4fr) auto;
}

@media (max-width: 1020px) {
  .order-activity-grid {
    grid-template-columns: 1fr;
  }

  .oa-orders {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 760px) {
  .activity-filters {
    grid-template-columns: 1fr 1fr;
  }

  .activity-today {
    padding: 0 17px 14px;
  }

  .oa-orders,
  .oa-feed {
    padding: 14px 17px;
  }
}

/* Activity timeline rows */
.act-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}

.act-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font: 700 12px 'DM Sans', sans-serif;
  cursor: pointer;
}

.act-tabs button span {
  min-width: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--sky-100);
  color: var(--primary-strong);
  font-size: 11px;
  text-align: center;
}

.act-tabs button:hover {
  border-color: var(--sky);
}

.act-tabs button[aria-selected="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.act-tabs button[aria-selected="true"] span {
  background: rgba(255, 255, 255, .25);
  color: #fff;
}

.act-day {
  margin: 14px 0 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
  color: var(--subtle);
  font: 800 10px 'DM Sans', sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.act-day:first-of-type,
.act-tabs+.act-day {
  margin-top: 0;
}

.act-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.act-row {
  display: grid;
  grid-template-columns: 62px 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 9px 0;
  border-bottom: 1px dashed #e3edf6;
}

.act-row:last-child {
  border-bottom: 0;
}

.act-row.is-extra,
.act-row[hidden],
.act-list[hidden],
.act-day[hidden] {
  display: none;
}

.act-time {
  padding-top: 6px;
  color: var(--subtle);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.act-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--sky-100);
  color: var(--primary-strong);
  font-size: 14px;
  font-weight: 800;
}

.type-booked .act-icon {
  background: #e3f4ea;
  color: var(--success);
}

.type-weighed .act-icon {
  background: #fff2d4;
  color: var(--warning);
}

.type-feedback .act-icon {
  background: #fff2d4;
  color: #b7791f;
}

.type-inquiry .act-icon {
  background: #fdeceb;
  color: #b3372f;
}

.type-reply .act-icon {
  background: #ece9fb;
  color: #5b3fb3;
}

.act-main {
  min-width: 0;
}

.act-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
}

.act-order {
  padding: 0 7px;
  border-radius: 6px;
  background: var(--sky-50);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 800;
}

.act-order:hover {
  text-decoration: none;
  border-color: var(--sky);
}

.act-detail {
  margin-top: 3px;
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.act-detail .badge {
  padding: 2px 8px;
  font-size: 10px;
}

.act-detail q {
  color: var(--muted);
  font-style: italic;
}

.act-arrow {
  color: var(--subtle);
  margin: 0 2px;
}

.act-paid {
  margin-left: 6px;
  color: var(--success);
  font-weight: 800;
  font-size: 12px;
}

.act-stars {
  color: #f2b230;
  letter-spacing: 1px;
}

.act-stars span {
  color: #d5e1ec;
}

.act-meta {
  margin-top: 3px;
  color: var(--subtle);
  font-size: 11px;
}

.act-empty {
  margin: 12px 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.oa-more {
  margin-top: 12px;
}

section.card>.activity {
  padding: 14px 18px 6px;
}

@media (max-width: 430px) {
  .act-row {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .act-time {
    grid-column: 2;
    grid-row: 2;
    padding: 0;
  }
}

/* ---------- Users & roles ---------- */
.role-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.role-chip {
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
}

.role-chip b {
  color: var(--ink);
  margin-right: 3px;
}

.role-chip:hover {
  border-color: var(--sky);
  text-decoration: none;
}

.role-chip.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.role-chip.is-active b {
  color: #fff;
}

.user-filters {
  grid-template-columns: minmax(220px, 1.5fr) minmax(150px, .8fr) minmax(170px, .9fr) auto;
}

.user-list {
  padding: 0;
  overflow: hidden;
}

.user-row {
  border-bottom: 1px solid var(--border);
}

.user-row:last-of-type {
  border-bottom: 0;
}

.user-row[open] {
  background: var(--sky-50);
}

.user-row summary {
  display: grid;
  grid-template-columns: 38px minmax(0, 1.6fr) 130px minmax(0, 1fr) 80px 70px;
  gap: 12px;
  align-items: center;
  padding: 12px 18px;
  cursor: pointer;
  list-style: none;
}

.user-row summary::-webkit-details-marker {
  display: none;
}

.user-row summary:hover {
  background: #f7fbfe;
}

.user-row.is-disabled summary {
  opacity: .65;
}

.user-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--sky-100);
  color: var(--primary-strong);
  font: 800 15px 'Manrope', sans-serif;
}

.user-id {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.user-id strong {
  color: var(--ink);
  font-size: 14px;
}

.user-id small {
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-branch {
  font-size: 13px;
  color: var(--text);
}

.user-row summary .badge {
  justify-self: start;
}

.user-manage {
  justify-self: end;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.user-row[open] .user-manage {
  color: var(--muted);
}

.role-badge {
  justify-self: start;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.role-customer {
  background: #e6eef6;
  color: #34506b;
}

.role-branch_admin {
  background: var(--sky-100);
  color: #0f5d93;
}

.role-super_admin {
  background: #ece9fb;
  color: #4b2fa0;
}

.user-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 0 14px;
  align-items: end;
  padding: 4px 18px 16px 68px;
}

.user-form label {
  display: block;
  margin: 8px 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: #2c4660;
}

.user-form [hidden] {
  display: none;
}

.user-form-actions {
  padding-bottom: 1px;
}

.user-note {
  grid-column: 1 / -1;
  margin-top: 10px;
}

.roles-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
}

.roles-sub {
  margin: 0 0 8px;
  font-size: 14px;
}

.assign-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.assign-list li {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.assign-list li:last-child {
  border-bottom: 0;
}

.assign-branch {
  font-size: 13px;
  color: var(--ink);
}

.assign-admins {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.assign-person {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--sky-100);
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 700;
}

.assign-person.is-off {
  background: #fdeceb;
  color: #9a2f28;
}

.assign-none {
  color: #9a2f28;
  font-size: 12px;
  font-weight: 700;
}

.assign-warning {
  background: #fff8f7;
}

.quick-assign {
  padding: 14px 16px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--sky-50);
}

.quick-assign label:first-of-type {
  margin-top: 0;
}

.quick-assign [hidden] {
  display: none;
}

@media (max-width: 1020px) {
  .roles-grid {
    grid-template-columns: 1fr;
  }

  .user-row summary {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }

  .user-row summary .user-branch,
  .user-row summary .badge {
    display: none;
  }

  .user-manage {
    display: none;
  }

  .user-form {
    grid-template-columns: 1fr 1fr;
    padding-left: 18px;
  }
}

@media (max-width: 760px) {
  .user-filters {
    grid-template-columns: 1fr 1fr;
  }

  .user-form {
    grid-template-columns: 1fr;
  }

  .assign-list li {
    grid-template-columns: 1fr;
  }
}

/* ---------- Requirements pass: notifications, menu, delivery, GCash, chatbot ---------- */
.nav-bell {
  position: relative;
  display: inline-grid !important;
  place-items: center;
  width: 38px;
  height: 36px;
  padding: 0 !important;
}

.nav-bell .nav-badge {
  top: 2px;
  right: 2px;
  transform: translate(30%, -20%);
}

.nav-menu {
  position: relative;
}

.nav-menu summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #174a72;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.nav-menu summary::-webkit-details-marker {
  display: none;
}

.nav-menu summary:hover,
.nav-menu[open] summary {
  background: rgba(255, 255, 255, .7);
}

.nav-menu summary[aria-current="page"] {
  background: #fff;
  color: var(--primary-strong);
  box-shadow: inset 0 -2px 0 var(--sky);
}

.nav-menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  display: flex;
  flex-direction: column;
  min-width: 190px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(12, 58, 96, .18);
}

.topbar .nav-menu-list a {
  padding: 9px 12px;
  border-radius: 7px;
}

.notif-list {
  padding: 0;
  overflow: hidden;
}

.notif-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.notif-row:last-of-type {
  border-bottom: 0;
}

.notif-row.is-unread {
  background: var(--sky-50);
  box-shadow: inset 4px 0 0 var(--primary);
}

.notif-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--sky-100);
  color: var(--primary-strong);
  font-weight: 800;
}

.ntype-booking .notif-icon {
  background: #e3f4ea;
  color: var(--success);
}

.ntype-inquiry .notif-icon {
  background: #fdeceb;
  color: #b3372f;
}

.ntype-system .notif-icon {
  background: #fff2d4;
  color: var(--warning);
}

.notif-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
}

.notif-top time {
  margin-left: auto;
  color: var(--subtle);
  font-size: 11px;
  white-space: nowrap;
}

.notif-new {
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.notif-main p {
  margin: 3px 0 0;
  font-size: 13.5px;
  overflow-wrap: anywhere;
}

.notif-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.notif-read {
  color: var(--muted);
}

.mode-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 4px 0 6px;
}

.mode-option {
  position: relative;
  display: block !important;
  margin: 0 !important;
  cursor: pointer;
}

.mode-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.mode-option span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.mode-option strong {
  color: var(--ink);
  font-size: 14px;
}

.mode-option small {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
}

.mode-option input:checked+span {
  border-color: var(--primary);
  background: var(--sky-100);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.mode-option input:focus-visible+span {
  box-shadow: var(--focus);
}

[data-delivery-fields][hidden] {
  display: none;
}

.mode-tag {
  display: inline-block;
  margin-top: 3px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #ece9fb;
  color: #4b2fa0;
  font-size: 10px;
  font-weight: 800;
}

.pay-cell .badge {
  text-decoration: none;
}

a.badge:hover {
  text-decoration: none;
  filter: brightness(.96);
}

.remind-form {
  display: block !important;
  min-width: 0 !important;
  margin-top: 4px;
}

.remind-btn {
  color: var(--primary);
  font-size: 11px;
}

.meta-wide {
  grid-column: span 2;
}

.gcash-panel {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid #b9dcf3;
  border-radius: 12px;
  background: linear-gradient(135deg, #f1f8fe, #e6f3fd);
}

.gcash-panel h2 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #0b5ea8;
}

.gcash-steps {
  margin: 0 0 10px;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.7;
}

.gcash-status {
  margin: 6px 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
}

.gcash-status.is-bad {
  background: var(--danger-soft);
  color: #8e2a24;
}

.gcash-form label {
  display: block;
  margin: 6px 0;
  font-size: 12px;
  font-weight: 700;
}

.gcash-row {
  display: flex;
  gap: 8px;
}

.gcash-row input {
  max-width: 260px;
}

.gcash-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.text-good {
  color: var(--success);
  font-weight: 700;
}

.inv-settings {
  margin-top: 3px;
}

.inv-settings summary {
  cursor: pointer;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  display: inline;
}

.inv-settings-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 6px 10px;
  margin: 8px 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--sky-50);
  min-width: 260px;
}

.inv-settings-form label {
  font-size: 11px;
  font-weight: 700;
  color: #2c4660;
}

.inv-settings-form input {
  min-height: 32px;
  padding: 4px 8px;
  margin-top: 2px;
}

.inv-settings-form .btn {
  grid-column: 1 / -1;
  justify-self: start;
}

.inv-history-link {
  margin-left: 8px;
  font-size: 11px;
  font-weight: 700;
}

.inv-usage {
  font-size: 12px;
}

.stock-form {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 300px;
}

.stock-form select {
  min-height: 34px;
  padding: 4px 8px;
  font-size: 12px;
  max-width: 140px;
}

.stock-form input {
  min-height: 34px;
  max-width: 90px;
  padding: 4px 8px;
}

.inv-table {
  min-width: 1060px;
}

.inline-search {
  display: flex;
  gap: 6px;
}

.inline-search input {
  min-height: 34px;
  padding: 5px 10px;
  width: 220px;
}

.reward-row {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}

.reward-row.is-hidden {
  opacity: .6;
}

.reward-form {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.reward-form input {
  min-height: 34px;
  padding: 5px 9px;
}

.reward-form input:first-of-type {
  flex: 1 1 180px;
}

.reward-add {
  margin-top: 12px;
}

.reward-view {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.period-tabs {
  margin: 0;
}

.period-tabs a {
  min-height: 32px;
  padding: 5px 12px;
  font-size: 12px;
}

.type-payment .act-icon {
  background: #e3f4ea;
  color: var(--success);
}

.type-reminder .act-icon {
  background: #fff2d4;
  color: var(--warning);
}

/* Chatbot */
.chatbot {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 45;
}

.chatbot-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #2b8ad0, #12578d);
  color: #fff;
  font: 800 14px 'DM Sans', sans-serif;
  box-shadow: 0 12px 28px rgba(18, 87, 141, .35);
  cursor: pointer;
}

.chatbot-toggle:hover {
  filter: brightness(1.06);
}

.chatbot.is-open .chatbot-toggle {
  display: none;
}

.chatbot-panel {
  display: flex;
  flex-direction: column;
  width: min(370px, calc(100vw - 24px));
  height: min(560px, calc(100vh - 110px));
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(12, 58, 96, .3);
  overflow: hidden;
}

.chatbot-panel[hidden] {
  display: none;
}

.chatbot-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: linear-gradient(135deg, #2b8ad0, #12578d);
  color: #fff;
}

.chatbot-head strong {
  display: block;
  font: 800 15px 'Manrope', sans-serif;
}

.chatbot-head small {
  opacity: .85;
  font-size: 11px;
}

.chatbot-close {
  border: 0;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
}

.chatbot-log {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  background: var(--sky-50);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-msg {
  max-width: 88%;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
}

.chat-msg p {
  margin: 0;
  white-space: pre-wrap;
}

.chat-msg p+p {
  margin-top: 4px;
}

.chat-bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  color: var(--text);
}

.chat-me {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-typing {
  color: var(--subtle);
  letter-spacing: 2px;
}

.chat-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.chatbot-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px 12px 0;
}

.chatbot-chips:empty {
  display: none;
}

.chatbot-chips button {
  padding: 5px 10px;
  border: 1px solid var(--sky-200);
  border-radius: 999px;
  background: #fff;
  color: var(--primary-strong);
  font: 700 11.5px 'DM Sans', sans-serif;
  cursor: pointer;
}

.chatbot-chips button:hover {
  background: var(--sky-100);
}

.chatbot-staff {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px 0;
  font-size: 12px;
}

.chatbot-staff[hidden] {
  display: none;
}

.chatbot-staff label {
  font-weight: 700;
  white-space: nowrap;
}

.chatbot-staff select {
  min-height: 32px;
  padding: 3px 6px;
  font-size: 12px;
}

.chatbot-input {
  display: flex;
  gap: 6px;
  padding: 10px 12px 12px;
}

.chatbot-input input {
  min-height: 38px;
}

@media (max-width: 760px) {
  .mode-picker {
    grid-template-columns: 1fr;
  }

  .meta-wide {
    grid-column: auto;
  }

  .nav-menu-list {
    right: auto;
    left: 0;
  }

  .chatbot {
    right: 12px;
    bottom: 12px;
  }

  .chatbot-toggle span {
    display: none;
  }

  .notif-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .notif-actions {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
  }

  .gcash-row {
    flex-direction: column;
  }
}

@media print {

  .chatbot,
  .gcash-panel {
    display: none !important;
  }
}

/* ---------- Landing ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  margin: 0 0 22px;
}

.text-link {
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================
   Landing page (index.php) — prefix lp-
   ========================================================== */
.landing-screen main.container {
  width: 100%;
  max-width: none;
  margin: 0;
}

.landing-screen main.container>.alert {
  width: min(1180px, 100% - 48px);
  margin: 18px auto 0;
}

.lp-wrap {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}

.lp-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.lp-kicker span {
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--sky);
}

/* Hero */
.lp-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(900px 420px at 85% 10%, #1d5f93 0%, transparent 60%), linear-gradient(160deg, #0f3350 0%, #123f63 55%, #0f3350 100%);
  color: #dbeaf6;
  padding: clamp(44px, 7vw, 92px) 0 clamp(52px, 7vw, 96px);
}

.lp-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--sky) 0 18px, transparent 18px 28px);
  opacity: .55;
}

.lp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.lp-hero .lp-kicker {
  color: #8fcff5;
}

.lp-hero h1 {
  color: #fff;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -.055em;
  margin: 0 0 22px;
}

.lp-hero h1 em {
  font-style: normal;
  color: var(--sky);
}

.lp-lead {
  max-width: 500px;
  margin: 0 0 30px;
  color: #bcd5e9;
  font-size: 17px;
  line-height: 1.7;
}

.lp-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
}

.lp-btn-main {
  min-height: 52px;
  padding: 0 24px;
  font-size: 15px;
  background: var(--sky);
  border-color: var(--sky);
  color: #06263f;
}

.lp-btn-main:hover {
  background: #7cc8f2;
  border-color: #7cc8f2;
  color: #06263f;
  box-shadow: 0 8px 22px rgba(76, 178, 236, .35);
}

.lp-btn-ghost {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  transition: background .16s ease, border-color .16s ease;
}

.lp-btn-ghost:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .55);
  text-decoration: none;
}

.lp-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 38px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.lp-facts div {
  padding: 0 26px;
}

.lp-facts div:first-child {
  padding-left: 0;
}

.lp-facts div+div {
  border-left: 1px solid rgba(255, 255, 255, .14);
}

.lp-facts dt {
  color: #8eaecb;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lp-facts dd {
  margin: 4px 0 0;
  color: #fff;
  font: 800 24px/1.1 'Manrope', sans-serif;
  letter-spacing: -.03em;
}

.lp-facts dd small {
  margin-left: 3px;
  color: #8eaecb;
  font: 600 13px 'DM Sans', sans-serif;
  letter-spacing: 0;
}

.lp-hero-visual {
  position: relative;
  padding: 0 0 46px 34px;
}

.lp-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(3, 20, 36, .45);
  aspect-ratio: 515 / 388;
  border: 6px solid rgba(255, 255, 255, .08);
}

.lp-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lp-tracker {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(270px, 78%);
  padding: 18px 18px 14px;
  background: #fff;
  color: var(--text);
  border-radius: 14px;
  box-shadow: 0 20px 44px rgba(3, 20, 36, .35);
}

.lp-tracker header {
  display: grid;
  gap: 2px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--border-strong);
}

.lp-tracker-tag {
  justify-self: start;
  margin-bottom: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--sky-100);
  color: var(--primary-strong);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lp-tracker strong {
  color: var(--ink);
  font: 800 15px 'Manrope', sans-serif;
}

.lp-tracker small {
  color: var(--muted);
  font-size: 12px;
}

.lp-tracker ol {
  position: relative;
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-tracker ol::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}

.lp-tracker li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.lp-dot {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border: 2px solid var(--border-strong);
  border-radius: 50%;
  background: #fff;
}

.lp-tracker li.is-done {
  color: var(--text);
}

.lp-tracker li.is-done .lp-dot {
  border-color: var(--success);
  background: var(--success);
  box-shadow: inset 0 0 0 2px #fff;
}

.lp-tracker li.is-now {
  color: var(--ink);
  font-weight: 800;
}

.lp-tracker li.is-now .lp-dot {
  border-color: var(--primary);
  background: var(--sky);
  box-shadow: 0 0 0 4px var(--sky-100);
}

.lp-tracker li b {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* Sections */
.lp-section {
  padding: clamp(52px, 7vw, 84px) 0 0;
}

.lp-head {
  margin-bottom: 28px;
}

.lp-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -.04em;
}

.lp-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 40px;
}

.lp-head-note {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.lp-empty {
  padding: 22px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
}

/* Steps */
.lp-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.lp-steps li {
  position: relative;
  padding: 26px 24px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.lp-step-no {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
  font: 800 16px 'Manrope', sans-serif;
}

.lp-steps li:nth-child(2) .lp-step-no {
  background: var(--primary);
}

.lp-steps li:nth-child(3) .lp-step-no {
  background: var(--sky);
  color: #06263f;
}

.lp-steps h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.lp-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

/* Rates */
.lp-rates {
  columns: 2;
  column-gap: 18px;
}

.lp-rates>.lp-rate-group {
  break-inside: avoid;
  margin-bottom: 18px;
}

.lp-rate-group {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.lp-rate-group h3 {
  margin: 0;
  padding: 14px 22px;
  background: var(--sky-50);
  border-bottom: 1px solid var(--border);
  color: var(--primary-strong);
  font: 800 12px 'DM Sans', sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.lp-rate-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-rate-group li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 22px;
}

.lp-rate-group li+li {
  border-top: 1px dashed var(--border);
}

.lp-rate-main {
  min-width: 0;
}

.lp-rate-main strong {
  display: block;
  color: var(--ink);
  font: 800 16px 'Manrope', sans-serif;
  letter-spacing: -.02em;
}

.lp-rate-main p {
  margin: 4px 0 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.lp-rate-meta {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 600;
}

.lp-price {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  color: var(--ink);
  font: 800 22px/1.1 'Manrope', sans-serif;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

.lp-price small {
  color: var(--muted);
  font: 600 11px 'DM Sans', sans-serif;
  letter-spacing: 0;
}

/* Branches */
.lp-branches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-branches li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.lp-branches li.is-main {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary) inset, var(--shadow);
}

.lp-pin {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--sky-100);
  color: var(--primary);
}

.lp-branches li.is-main .lp-pin {
  background: var(--primary);
  color: #fff;
}

.lp-branches h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 3px;
  font-size: 15px;
}

.lp-branches p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.lp-branches .lp-branch-phone {
  margin-top: 4px;
  color: var(--text);
  font-weight: 600;
}

/* Closing CTA */
.lp-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px 40px;
  margin: clamp(56px, 7vw, 88px) 0 clamp(40px, 5vw, 64px);
  padding: clamp(28px, 4vw, 44px);
  border-radius: 20px;
  background: linear-gradient(120deg, #0f3350, #1a6fb0);
  color: #cfe3f3;
}

.lp-cta h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -.035em;
}

.lp-cta p {
  margin: 0;
}

.lp-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex: 0 0 auto;
}

.lp-btn-light {
  min-height: 52px;
  padding: 0 24px;
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.lp-btn-light:hover {
  background: var(--sky-100);
  border-color: var(--sky-100);
  color: var(--ink);
}

@media (max-width: 1020px) {
  .lp-hero-grid {
    grid-template-columns: 1fr;
  }

  .lp-hero-visual {
    max-width: 560px;
  }

  .lp-rates {
    columns: 1;
  }
}

@media (max-width: 760px) {

  .lp-wrap,
  .landing-screen main.container>.alert {
    width: min(1180px, 100% - 32px);
  }

  .lp-hero-visual {
    padding-left: 18px;
  }

  .lp-facts div {
    padding: 0 16px;
  }

  .lp-facts dd {
    font-size: 20px;
  }

  .lp-steps {
    grid-template-columns: 1fr;
  }

  .lp-head-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .lp-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 430px) {
  .lp-actions>* {
    width: 100%;
    justify-content: center;
  }

  .lp-rate-group li {
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px;
  }

  .lp-price {
    justify-items: start;
    grid-auto-flow: column;
    align-items: baseline;
    gap: 6px;
  }

  .lp-tracker {
    position: relative;
    width: auto;
    margin: -36px 12px 0;
  }

  .lp-hero-visual {
    padding: 0;
  }
}

/* ==========================================================
   Login page (auth/login.php) — prefix login-
   ========================================================== */
.login-screen {
  background-image: radial-gradient(900px 500px at 80% 0%, rgba(29, 95, 147, .9), transparent 60%), linear-gradient(160deg, #0f3350 0%, #123f63 55%, #0f3350 100%);
}

.login-screen main.container>.alert {
  width: min(100%, 920px);
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  width: min(100%, 920px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 40px 80px rgba(3, 20, 36, .45);
}

.login-side {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 44px 40px;
  color: #cfe3f3;
  background: linear-gradient(rgba(15, 51, 80, .86), rgba(15, 51, 80, .94)), url('../images/auth-laundry.png') center / cover no-repeat;
}

.login-side::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--sky) 0 18px, transparent 18px 28px);
  opacity: .6;
}

.login-side .lp-kicker {
  color: #8fcff5;
}

.login-side h2 {
  margin: 0 0 28px;
  color: #fff;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -.045em;
}

.login-side h2 em {
  font-style: normal;
  color: var(--sky);
}

.login-perks {
  display: grid;
  gap: 14px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.5;
}

.login-perks li {
  display: flex;
  gap: 14px;
  align-items: baseline;
}

.login-perks b {
  flex: 0 0 auto;
  color: var(--sky);
  font: 800 12px 'Manrope', sans-serif;
  letter-spacing: .06em;
}

.login-status {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: auto;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(4px);
}

.login-status-dot {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #4ad08a;
  box-shadow: 0 0 0 5px rgba(74, 208, 138, .22);
}

.login-status strong {
  display: block;
  color: #fff;
  font-size: 13px;
}

.login-status small {
  color: #a9c4da;
  font-size: 12px;
}

.login-panel {
  padding: 48px 44px 40px;
}

.login-panel h1 {
  margin: 0 0 6px;
  font-size: clamp(28px, 3vw, 34px);
  letter-spacing: -.045em;
}

.login-sub {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 15px;
}

.login-form input {
  min-height: 48px;
  padding-inline: 14px;
  border-radius: 10px;
  background: var(--sky-50);
  border-color: var(--border);
  font-size: 15px;
}

.login-form input:focus {
  background: #fff;
}

.login-form .password-control input {
  padding-right: 50px;
}

.login-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 15px 0 6px;
}

form.stacked .login-label-row label {
  margin: 0;
}

.login-label-row a {
  font-size: 13px;
  font-weight: 700;
}

form.stacked .login-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 24px;
  border-radius: 10px;
  font-size: 15px;
}

.login-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 20px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--sky-50);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.login-note svg {
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--primary);
}

.login-switch {
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.login-switch a {
  font-weight: 700;
}

@media (max-width: 820px) {
  .login-shell {
    grid-template-columns: 1fr;
    max-width: 460px;
  }

  .login-side {
    padding: 26px 26px 24px;
  }

  .login-side h2 {
    margin-bottom: 0;
    font-size: 26px;
  }

  .login-perks,
  .login-status {
    display: none;
  }

  .login-panel {
    padding: 30px 26px 28px;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .booking-grid {
    grid-template-columns: 1fr;
  }

  .booking-side {
    position: static;
  }

  .report-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .service-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px;
  }

  .brand img {
    width: 140px;
  }

  .topbar nav {
    justify-content: flex-start;
    gap: 2px;
    width: 100%;
  }

  .topbar nav a {
    padding: 8px 9px;
  }

  .who {
    order: -1;
    width: 100%;
    padding: 4px 9px 2px;
    white-space: normal;
  }

  .container {
    width: min(100% - 32px, 1180px);
    margin: 22px auto 38px;
  }

  .stat {
    padding: 17px 18px;
  }

  .page-heading-row,
  .section-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .report-filters {
    grid-template-columns: 1fr 1fr;
  }

  .report-search {
    grid-column: 1 / -1;
  }

  .report-filters .btn {
    grid-column: 1 / -1;
  }

  .report-kpis {
    grid-template-columns: 1fr 1fr;
  }

  .customer-summary {
    grid-template-columns: 1fr;
  }

  .operations-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-layout,
  .feedback-layout {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 0;
  }

  .booking-intro,
  .feedback-intro {
    padding-top: 0;
  }

  .feedback-inquiries {
    margin-bottom: 30px;
  }

  .booking-note {
    margin-top: 17px;
    max-width: 100%;
  }

  .order-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-links {
    grid-template-columns: 1fr;
  }

  .section-heading {
    padding: 19px 17px 13px;
    align-items: flex-start;
  }

  .section-card th:first-child,
  .section-card td:first-child {
    padding-left: 17px;
  }

  .section-card th:last-child,
  .section-card td:last-child {
    padding-right: 17px;
  }

  .line-grid {
    grid-template-columns: 1fr 1fr;
  }

  .line-service {
    grid-column: 1 / -1;
  }

  .form-row-2,
  .service-form-grid {
    grid-template-columns: 1fr;
  }

  .mini-stats {
    grid-template-columns: 1fr 1fr;
  }

  .receipt-head {
    flex-direction: column;
  }

  .receipt-id {
    align-items: flex-start;
    text-align: left;
  }

  .receipt-meta {
    grid-template-columns: 1fr 1fr;
  }

  .receipt-bottom {
    grid-template-columns: 1fr;
  }

  .service-admin summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .service-admin summary .badge {
    display: none;
  }
}

@media (max-width: 430px) {

  .operations-summary,
  .report-kpis {
    grid-template-columns: 1fr;
  }

  .order-card {
    padding: 18px 16px;
  }

  .order-progress {
    grid-template-columns: 1fr 1fr;
    row-gap: 12px;
  }

  .order-progress li:not(:last-child)::after {
    display: none;
  }

  .confirm-dialog-content {
    padding: 20px;
  }

  .confirm-actions {
    flex-direction: column-reverse;
  }

  .confirm-actions .btn {
    width: 100%;
  }

  .receipt-meta {
    grid-template-columns: 1fr;
  }

  .receipt-brand {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* ---------- Print (receipts & summary reports) ---------- */
@media print {
  @page {
    margin: 12mm;
  }

  body,
  .authenticated-screen {
    background: #fff !important;
    color: #000;
  }

  .topbar,
  .footer,
  .no-print,
  .alert,
  .branch-tabs,
  .receipt-actions,
  .report-filters {
    display: none !important;
  }

  .container {
    width: 100%;
    margin: 0;
  }

  .card,
  .stat,
  .receipt {
    box-shadow: none !important;
    border-color: #bbb;
    break-inside: avoid;
  }

  .receipt {
    border-top-width: 3px;
    max-width: none;
    padding: 0;
    border: 0;
  }

  .table-wrap {
    overflow: visible;
    border-color: #bbb;
  }

  table {
    min-width: 0 !important;
    font-size: 11px;
  }

  th {
    background: #eef4f9 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .badge,
  .pill,
  .share-bar,
  .receipt-no {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  a {
    color: #000;
  }

  .report-kpis {
    grid-template-columns: repeat(5, 1fr);
  }

  .two-col {
    grid-template-columns: 1fr 1fr;
  }
}
/* ---------- New-password checklist (register, reset) ---------- */
.pw-rules { display: grid; gap: 3px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 12px; color: var(--muted); }
.pw-rules li { display: flex; align-items: center; gap: 7px; }
.pw-rules li::before { content: ''; flex: 0 0 auto; width: 12px; height: 12px; border: 1.5px solid var(--border-strong); border-radius: 50%; background: #fff; }
.pw-rules li.is-met { color: var(--success); font-weight: 600; }
.pw-rules li.is-met::before { border-color: var(--success); background: var(--success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2 5 8l4-4.2' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat; }

.login-form .password-control { --pw-input-h: 48px; }

/* ---------- Login: "Back to home" link, top-left of the page ---------- */
.login-screen main.container {
  position: relative;
  padding-top: 84px;
}

.login-back {
  position: absolute;
  top: 24px;
  left: clamp(18px, 4vw, 56px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 8px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #e3f1fb;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.login-back svg {
  flex: 0 0 auto;
  transition: transform .16s ease;
}

.login-back:hover {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .4);
  color: #fff;
  text-decoration: none;
}

.login-back:hover svg {
  transform: translateX(-2px);
}

@media (max-width: 820px) {
  .login-screen main.container {
    padding-top: 20px;
  }

  .login-back {
    position: static;
    align-self: flex-start;
    margin: 0 0 14px;
  }
}
/* ---------- Customer "Cancel order" ---------- */
.btn.danger-outline {
  background: #fff;
  color: var(--danger);
  border-color: #e7b4b0;
}

.btn.danger-outline:hover {
  background: var(--danger-soft);
  border-color: var(--danger);
  color: var(--danger);
  box-shadow: none;
}

.cancel-hint {
  max-width: 860px;
  margin: -6px auto 14px;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.cancel-dialog label {
  display: block;
  margin: 14px 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: #2c4660;
}

.cancel-dialog .confirm-actions {
  margin-top: 20px;
}

/* ==========================================================
   Panel revisions (v8)
   Required marks · visible blue buttons · red delete · spacing ·
   centered headings & tables · darker table headers · pop-up forms ·
   pagination · search bar · invoice print · mobile menu · no sideways scroll
   ========================================================== */
:root {
  --navy-900: #0b2a44;
  --navy-800: #0f3350;
  --navy-700: #174a72;
  --space-1: 8px;
  --space-2: 14px;
  --space-3: 20px;
  --space-4: 28px;
}

html, body { overflow-x: hidden; }

/* Skip link (keyboard users) */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: var(--navy-800); color: #fff; font-weight: 700; }
.skip-link:focus { top: 10px; text-decoration: none; }

/* ---------- Required fields ---------- */
.req { color: var(--danger); font-weight: 800; margin-left: 3px; }
.req-note { margin: 0 0 6px; font-size: 12px; color: var(--muted); }
.required-mark { display: none; }   /* old "Optional" tags are no longer shown */
.field-error { display: block; margin-top: 5px; color: var(--danger); font-size: 12px; font-weight: 700; }
.field-error::before { content: '⚠ '; }

/* ---------- Buttons: clearly blue, delete clearly red ---------- */
.btn { letter-spacing: .01em; }
.btn.secondary {
  background: #e3f0fb;
  color: var(--primary-strong);
  border: 1.5px solid var(--primary);
}
.btn.secondary:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(18, 87, 141, .18);
}
.btn.danger,
.btn.danger-outline,
.confirm-actions .danger-action {
  background: var(--danger);
  border: 1.5px solid var(--danger);
  color: #fff;
}
.btn.danger:hover,
.btn.danger-outline:hover,
.confirm-actions .danger-action:hover {
  background: #8f241e;
  border-color: #8f241e;
  color: #fff;
}
.inv-settings summary,
.branch-edit summary,
.inv-history-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 6px 6px 0 0;
  padding: 4px 10px;
  border-radius: 6px;
  background: #e3f0fb;
  border: 1px solid var(--primary);
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.inv-history-link:hover,
.inv-settings summary:hover,
.branch-edit summary:hover { background: var(--primary); color: #fff; text-decoration: none; }
.notif-read, .remind-btn { color: var(--primary-strong); }

/* ---------- Spacing ---------- */
.container { margin-top: 34px; margin-bottom: 60px; }
.card { margin-bottom: var(--space-4); }
.page-heading { margin-bottom: var(--space-4); }
.grid { gap: 18px; }
.mt-16 { margin-top: 22px; }
form.stacked label, .form-row-2 label { margin-top: 16px; }
form.stacked > .btn, .reply-form .btn { margin-top: 16px; }
.branch-admin-actions, .order-actions, .heading-actions, .modal-actions, .form-actions, .notif-actions { gap: 10px; }
.branch-admin-grid { gap: 22px; }
.two-col { gap: 22px; }
.tabs, .branch-tabs { margin-bottom: 22px; }
.inquiry-item, .feedback-item { padding: 18px 0; border-bottom: 1px solid var(--border); }
.inquiry-item:last-of-type, .feedback-item:last-of-type { border-bottom: 0; }
.inquiry-item p, .feedback-item p { margin: 10px 0 0; }

/* ---------- Centered page headings ---------- */
.page-heading,
.page-heading-row { text-align: center; }
.page-heading-row { flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.page-heading .eyebrow, .page-heading-row .eyebrow { justify-content: center; }
.page-heading .subtitle, .page-heading-row .subtitle { margin-left: auto; margin-right: auto; }
.heading-actions { justify-content: center; }
.branch-tabs { justify-content: center; flex-wrap: wrap; overflow: visible; }
.tabs { justify-content: center; }
.role-summary, .quick-ranges { justify-content: center; }

/* ---------- Tables: darker header, centered cells, no sideways scrolling ---------- */
.table-wrap { overflow: visible; border-color: #c3d6e6; border-radius: 12px; }
.card:has(> table), .card:has(> .table-wrap) { overflow: visible; }
table { min-width: 0; }
th, td { text-align: center; }
th {
  background: var(--navy-800);
  color: #fff;
  white-space: normal;
  font-size: 10.5px;
  border-bottom: 0;
}
thead th:first-child { border-top-left-radius: 11px; }
thead th:last-child { border-top-right-radius: 11px; }
tbody tr:nth-child(even) td { background: #f3f8fc; }
tbody tr:hover td { background: #e6f1fa; }
td .stock-form, td .inline-update { justify-content: center; }
.num-col { text-align: center; }
tfoot th, tfoot td { background: #dbe9f5; color: var(--ink); }
.receipt-ref { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: 600; }

/* Inventory / supplies: darker panel so the table stands out */
.supplies-card { background: linear-gradient(180deg, #dcebf7 0%, #eaf3fa 100%); border-color: #b7cfe3; }
.supplies-card .table-wrap { background: #fff; box-shadow: 0 6px 18px rgba(15, 51, 80, .10); }
.supplies-title { margin-bottom: 14px; }

/* ---------- Pop-up (modal) forms ---------- */
body.modal-open { overflow: hidden; }
dialog.form-modal {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 24px 26px 22px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 30px 80px rgba(8, 32, 54, .35);
  text-align: left;
}
dialog.form-modal.form-modal-wide { width: min(860px, calc(100vw - 24px)); }
dialog.form-modal::backdrop { background: rgba(8, 32, 54, .55); backdrop-filter: blur(2px); }
.form-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -4px 0 6px; padding-bottom: 12px; border-bottom: 3px solid var(--sky); }
.form-modal-head h2 { margin: 0; }
.modal-close { width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.modal-close:hover { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.modal-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); }
.modal-actions .btn { margin-top: 0 !important; }
.password-control.has-generate { display: flex; gap: 8px; align-items: stretch; }
.password-control.has-generate input { flex: 1 1 auto; font-family: ui-monospace, Consolas, monospace; letter-spacing: .04em; }
.generate-btn { flex: 0 0 auto; min-height: 42px; }
[data-employee-field][hidden] { display: none !important; }

/* ---------- Pagination ---------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.pager-count { margin: 0; color: var(--muted); font-size: 13px; }
.pager-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pager-btn, .pager-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; min-height: 38px; padding: 6px 12px;
  border: 1.5px solid var(--primary); border-radius: 8px;
  background: #fff; color: var(--primary-strong); font-size: 13px; font-weight: 700;
}
.pager-btn:hover, .pager-num:hover { background: var(--primary); color: #fff; text-decoration: none; }
.pager-num.is-current { background: var(--primary); color: #fff; }
.pager-btn.is-disabled { border-color: var(--border); color: #9fb3c6; background: #f5f9fc; }
.pager-gap { color: var(--muted); padding: 0 2px; }
.pager-card { padding: 14px 20px; }
.pager-card .pager { margin-top: 0; padding-top: 0; border-top: 0; }

/* ---------- Search bar ---------- */
.search-bar { display: flex; gap: 10px; align-items: stretch; margin: 0 auto 22px; max-width: 760px; }
.search-bar .search-control { position: relative; flex: 1 1 auto; display: block; }
.search-bar input[type="search"] { min-height: 48px; padding-left: 42px; padding-right: 40px; border: 1.5px solid var(--primary); border-radius: 10px; box-shadow: var(--shadow); font-size: 15px; }
.search-bar .search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--primary); pointer-events: none; }
.search-bar .clear-search { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
.search-bar .btn { min-height: 48px; padding: 0 22px; }

/* ---------- Feedback & inquiries ---------- */
.feedback-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.feedback-item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.feedback-stars, .stat-stars { color: #e3a008; letter-spacing: 2px; }
.stat-stars { font-size: 15px; }
.star-field { border: 0; padding: 0; margin: 16px 0 0; }
.star-field legend { padding: 0; font-size: 13px; font-weight: 700; color: #2c4660; }
.star-rating { display: inline-flex; flex-direction: row-reverse; gap: 4px; margin-top: 6px; }
.star-rating input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-rating label { margin: 0 !important; font-size: 34px; line-height: 1; color: #c9d6e2; cursor: pointer; transition: color .12s ease, transform .12s ease; }
.star-rating label:hover, .star-rating label:hover ~ label,
.star-rating input:checked ~ label { color: #e3a008; }
.star-rating label:hover { transform: scale(1.1); }
.star-rating input:focus-visible + label { outline: 3px solid rgba(76, 178, 236, .5); border-radius: 6px; }
.anon-line { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border: 1px dashed var(--border-strong); border-radius: 10px; background: var(--sky-50); font-weight: 400; }
.anon-line input { width: 18px; min-height: 18px; margin-top: 2px; }
.anon-line small { display: block; color: var(--muted); font-size: 12px; }
.filter-card .report-filters { max-width: 640px; margin: 0 auto; }

/* ---------- Updates & promos: picture fits inside and sits a little lower ---------- */
.promo-art { align-self: stretch; align-content: end; padding-top: 22px; }
.promo-image {
  width: 100%;
  height: 230px;
  max-height: 230px;
  object-fit: contain;
  background: rgba(255, 255, 255, .14);
  padding: 8px;
  margin-top: 16px;
}
.promo-person { margin-top: 16px; }

/* ---------- Invoice ---------- */
.invoice .receipt-id h1 { text-transform: uppercase; letter-spacing: .14em; }
.invoice-parties { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; margin: 20px 0; padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--sky-50); }
.invoice-label { margin: 0 0 6px; font: 800 10px 'DM Sans', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); }
.invoice-parties p { margin: 0; line-height: 1.6; }
.invoice-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 0; }
.invoice-facts dt { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.invoice-facts dd { margin: 0; font-weight: 700; color: var(--ink); }
.invoice-due { font-size: 18px; color: var(--danger) !important; }
.invoice-table td:nth-child(2) { text-align: left; }
.invoice-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 34px 0 6px; }
.invoice-sign div { display: grid; gap: 6px; color: var(--muted); font-size: 12px; text-align: center; }
.invoice-sign span { display: block; height: 34px; border-bottom: 1.5px solid #6f879d; }

@media print {
  .invoice { font-size: 11.5px; }
  .invoice .receipt-head { border-bottom: 3px solid #0f3350; padding-bottom: 10px; }
  .invoice-parties { background: #f2f7fb !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .invoice th { background: #0f3350 !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .invoice-sign { display: grid !important; }
  .back-to-top, .idle-warning, .menu-toggle, .skip-link, .pager, .search-bar { display: none !important; }
  .stack-table td::before { content: none !important; }
  .invoice-parties { grid-template-columns: 1fr 1fr !important; margin: 12px 0; padding: 10px 12px; }
  .invoice .receipt-meta { margin: 8px 0; }
  .invoice .receipt-desc { display: none; }
  .invoice-sign { margin-top: 22px; }
  .invoice .receipt-bottom { break-inside: avoid; }
}

/* ---------- Back to top, inactivity warning ---------- */
.back-to-top {
  position: fixed; left: 18px; bottom: 18px; z-index: 30;
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--navy-800); color: #fff; font-size: 20px; font-weight: 800;
  box-shadow: 0 8px 20px rgba(8, 32, 54, .3);
}
.back-to-top:hover { background: var(--primary); text-decoration: none; }
.back-to-top[hidden] { display: none; }
.idle-warning {
  position: fixed; left: 50%; bottom: 20px; z-index: 200; transform: translateX(-50%);
  width: min(460px, calc(100vw - 24px)); padding: 16px 18px; border-radius: 14px;
  background: #fff; border: 2px solid var(--warning); box-shadow: 0 20px 50px rgba(8, 32, 54, .35);
}
.idle-warning p { margin: 0 0 12px; }
.idle-warning div { display: flex; gap: 10px; flex-wrap: wrap; }
.idle-warning[hidden] { display: none; }

/* ---------- Top bar: logo blends, hamburger on small screens ---------- */
.brand { text-decoration: none; }
.brand:hover { text-decoration: none; }
.menu-toggle { display: none; }
.topbar nav a.nav-cta { background: var(--primary); color: #fff; margin-left: 6px; }
.topbar nav a.nav-cta:hover, .topbar nav a.nav-cta[aria-current="page"] { background: var(--primary-strong); color: #fff; }

@media screen and (max-width: 1100px) {
  .topbar {
    position: sticky; top: 0;
    flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 0; padding: 8px 16px; min-height: 64px;
  }
  .brand img { width: 128px; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--primary); border-radius: 10px;
    background: #fff; color: var(--primary-strong); font: 700 14px 'DM Sans', sans-serif; cursor: pointer;
  }
  .menu-bars { display: grid; gap: 4px; width: 20px; }
  .menu-bars span { display: block; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
  body.menu-open .menu-bars span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  body.menu-open .menu-bars span:nth-child(2) { opacity: 0; }
  body.menu-open .menu-bars span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .topbar nav {
    display: none;
    flex: 1 0 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    width: 100%; margin-top: 10px; padding: 8px 0 6px;
    border-top: 1px solid rgba(23, 74, 114, .15);
    max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); overflow-y: auto;
  }
  body.menu-open .topbar nav { display: flex; }
  .topbar nav a, .nav-menu summary { padding: 12px 12px; font-size: 15px; border-radius: 8px; }
  .topbar nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--sky); }
  .topbar nav a.logout { margin-left: 0; }
  .topbar nav a.nav-cta { margin: 6px 0 0; text-align: center; }
  .who { order: -1; width: 100%; padding: 4px 12px 8px; white-space: normal; }
  .who.who-compact { max-width: none; }
  .nav-with-badge, .nav-bell { display: flex; align-items: center; }
  .nav-menu { width: 100%; }
  .nav-menu-list { position: static; display: grid; box-shadow: none; border: 0; padding: 0 0 0 14px; background: transparent; }
  .nav-bell { padding: 12px; }
  .nav-bell::after { content: 'Notifications'; margin-left: 8px; font-size: 15px; font-weight: 600; }
}

/* ---------- Phones & tablets: tables become cards (no sideways scroll) ---------- */
@media screen and (max-width: 960px) {
  .stack-table, .stack-table tbody, .stack-table tfoot, .stack-table tr, .stack-table td, .stack-table th[scope="row"] { display: block; width: 100%; }
  .stack-table { min-width: 0 !important; width: 100% !important; table-layout: auto; }
  .stack-table thead { display: none; }
  .stack-table td > * { max-width: 100%; min-width: 0; }
  .stack-table input, .stack-table select { max-width: 100%; }
  .stack-table tr { margin: 0 0 12px; padding: 6px 4px; border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
  .stack-table tbody tr:nth-child(even) td, .stack-table tbody tr:hover td { background: transparent; }
  .stack-table td { display: grid; grid-template-columns: minmax(96px, 38%) minmax(0, 1fr); gap: 10px; align-items: center; padding: 9px 12px; text-align: left; border-bottom: 1px dashed var(--border); }
  .stack-table td:last-child { border-bottom: 0; }
  .stack-table td::before { content: attr(data-label); color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
  .stack-table td:not([data-label])::before { content: none; }
  .stack-table td:not([data-label]) { grid-template-columns: 1fr; }
  .stack-table td .stock-form, .stack-table td .inline-update { justify-content: flex-start; flex-wrap: wrap; }
  .table-wrap { border: 0; background: transparent; }
  .supplies-card .table-wrap { box-shadow: none; background: transparent; }
  .feedback-page { grid-template-columns: 1fr; }
  .invoice-parties { grid-template-columns: 1fr; }
}

@media screen and (max-width: 760px) {
  .container { width: min(100% - 32px, 1180px); margin: 22px auto 40px; }
  .page-heading h1 { font-size: 26px; }
  .heading-actions { width: 100%; }
  .heading-actions .btn { flex: 1 1 auto; }
  .search-bar { flex-direction: column; }
  .search-bar .btn { width: 100%; }
  .pager { justify-content: center; text-align: center; }
  .pager-count { width: 100%; }
  .pager-links { justify-content: center; }
  .branch-tabs { justify-content: flex-start; }
  .branch-tabs a { flex: 1 1 auto; justify-content: center; }
  dialog.form-modal { padding: 18px 16px; border-radius: 14px; }
  .modal-actions .btn { flex: 1 1 auto; }
  .form-row-2, .service-form-grid { grid-template-columns: 1fr !important; }
  .invoice-sign { gap: 18px; }
  .promo-image { height: 180px; }
  .back-to-top { left: 12px; bottom: 12px; width: 40px; height: 40px; }
  .receipt-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .receipt-actions > div { display: flex; flex-wrap: wrap; gap: 8px; }
  .receipt-actions > div .btn { flex: 1 1 auto; }
}

/* Register uses the same split layout as Log in */
.register-screen .login-panel { max-height: none; }
.register-form .password-control { --pw-input-h: 48px; }
@media screen and (max-width: 960px) {
  .stack-table .cell-value { min-width: 0; overflow-wrap: anywhere; }
  .stack-table .cell-value .badge { display: inline-flex; }
  .stack-table .cell-value .inv-settings, .stack-table .cell-value .inv-history-link { display: inline-block; }
}
form.stacked .star-rating label, .star-rating label { margin: 0; font-size: 36px; line-height: 1; color: #c9d6e2; font-weight: 400; }
form.stacked .star-rating input:checked ~ label,
form.stacked .star-rating label:hover,
form.stacked .star-rating label:hover ~ label { color: #e3a008; }
@media screen and (max-width: 1100px) {
  .topbar nav .nav-bell { display: flex !important; flex-direction: row; justify-content: flex-start; align-items: center; gap: 10px; width: 100%; height: auto; padding: 12px !important; }
  .topbar nav .nav-bell::after { margin-left: 0; }
  .topbar nav .nav-bell .nav-badge { position: static; transform: none; order: 3; }
  .nav-with-badge { position: relative; gap: 8px; }
  .nav-with-badge .nav-badge { position: static; transform: none; }
}
@media screen and (max-width: 960px) {
  .stack-table .inline-update, .stack-table .stock-form { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
  .stack-table .inline-update select, .stack-table .stock-form select, .stack-table .stock-form input { flex: 1 1 100%; width: 100%; min-width: 0; }
}
@media screen and (max-width: 760px) {
  .inq-toast { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 12px 14px; }
  .inq-toast .inq-toast-list, .inq-toast .inq-toast-sub { display: none; }
}

/* ---------- Users & roles list (aligned columns) ---------- */
.user-list .list-toolbar { justify-content: center; }
.user-head,
.user-row summary {
  display: grid;
  grid-template-columns: 42px minmax(0, 2fr) minmax(110px, 1fr) minmax(120px, 1.2fr) 100px 110px;
  gap: 14px;
  align-items: center;
  padding: 14px 22px;
}
.user-head { padding-top: 10px; padding-bottom: 10px; background: var(--navy-800); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.user-head span:nth-child(n+3), .user-row summary > :nth-child(n+3) { justify-self: center; text-align: center; }
.user-row summary .badge, .role-badge { justify-self: center; }
.user-row:nth-of-type(even) summary { background: #f3f8fc; }
.user-row summary:hover { background: #e6f1fa; }
.user-manage {
  justify-self: center;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 84px; min-height: 34px; padding: 6px 12px;
  border: 1.5px solid var(--primary); border-radius: 8px;
  background: #e3f0fb; color: var(--primary-strong); font-size: 12px; font-weight: 700;
}
.user-row summary:hover .user-manage { background: var(--primary); color: #fff; }
.user-manage .when-open { display: none; }
.user-row[open] .user-manage { background: var(--primary); color: #fff; }
.user-row[open] .user-manage .when-open { display: inline; }
.user-row[open] .user-manage .when-closed { display: none; }
.user-list .pager { margin: 0; padding: 16px 22px; }
.user-form { padding: 6px 22px 18px 78px; }
@media screen and (max-width: 1020px) {
  .user-head { display: none; }
  .user-row summary { grid-template-columns: 42px minmax(0, 1fr) auto; }
  .user-row summary .user-branch, .user-row summary .badge, .user-row summary .role-badge { display: none; }
  .user-manage { display: inline-flex; min-width: 0; }
  .user-form { padding-left: 22px; }
}

/* ---------- Booking page ---------- */
.booking-form > .req-note { text-align: center; margin-bottom: 14px; }
.booking-form h2 .req { font-size: 18px; }
.line-item.is-over { border-color: var(--danger); background: #fff6f5; }
.line-warning { margin: 10px 0 0; padding: 8px 12px; border-radius: 8px; background: var(--danger-soft); color: var(--danger); font-size: 13px; font-weight: 700; }
.line-warning[hidden] { display: none; }
.booking-sticky { display: none; }
@media screen and (max-width: 760px) {
  .booking-form { padding-bottom: 76px; }
  .booking-sticky {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: #fff; border-top: 3px solid var(--sky); box-shadow: 0 -8px 24px rgba(8, 32, 54, .15);
  }
  .booking-sticky small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
  .booking-sticky strong { font: 800 22px 'Manrope', sans-serif; color: var(--ink); }
  .booking-sticky .btn { min-height: 46px; padding: 0 18px; }
  body:has(.booking-sticky) .chatbot { bottom: 84px; }
  body:has(.booking-sticky) .back-to-top { bottom: 84px; }
}

/* ---------- Payment choice: Cash or GCash (with QR code) ---------- */
.pay-field { border: 0; padding: 0; margin: 18px 0 0; }
.pay-field legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 700; color: #2c4660; }
.pay-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pay-option { position: relative; display: block; margin: 0 !important; cursor: pointer; }
.pay-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pay-option > span { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; height: 100%; padding: 14px 16px; border: 1.5px solid var(--border-strong); border-radius: 12px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.pay-option strong { color: var(--ink); font-size: 15px; }
.pay-option small { grid-column: 2; color: var(--muted); font-size: 12px; font-weight: 500; }
.pay-icon { grid-row: 1 / span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #e5f5ea; color: var(--success); font: 800 20px 'Manrope', sans-serif; }
.pay-icon-gcash { background: #0b5fd9; color: #fff; }
.pay-option:hover > span { border-color: var(--sky); }
.pay-option input:checked + span { border-color: var(--primary); background: var(--sky-50); box-shadow: 0 0 0 3px rgba(76, 178, 236, .25); }
.pay-option input:focus-visible + span { box-shadow: var(--focus); }
.pay-panel { margin-top: 14px; padding: 16px 18px; border-radius: 12px; }
.pay-panel[hidden] { display: none; }
.pay-cash { background: #eef8f1; border: 1px solid #bfe3cb; }
.pay-cash p { margin: 0; }
.pay-gcash { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; background: #eaf2ff; border: 1.5px solid #0b5fd9; }
.pay-gcash[hidden] { display: none; }
.gcash-qr-box { display: grid; gap: 10px; justify-items: center; }
.gcash-qr-box img { display: block; width: 100%; max-width: 220px; height: auto; border-radius: 14px; background: #0b5fd9; box-shadow: 0 10px 24px rgba(11, 95, 217, .25); }
.gcash-qr-steps h3 { margin: 0 0 8px; color: #0b4fb8; }
.gcash-qr-steps ol { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }
.receipt-qr { float: right; width: 200px; margin: 0 0 12px 20px; }
@media screen and (max-width: 760px) {
  .pay-picker { grid-template-columns: 1fr; }
  .pay-gcash { grid-template-columns: 1fr; justify-items: center; }
  .gcash-qr-steps { width: 100%; }
  .receipt-qr { float: none; width: 100%; margin: 0 0 12px; }
}
.gcash-panel { display: flow-root; }
.pay-gcash { grid-template-columns: 260px minmax(0, 1fr); }
.gcash-qr-box img { max-width: 260px; }
.receipt-qr { width: 230px; }
@media screen and (max-width: 760px) { .pay-gcash { grid-template-columns: 1fr; } .gcash-qr-box img { max-width: 280px; } .receipt-qr { width: 100%; } }

/* ---------- GCash settings page ---------- */
.gcash-settings { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 22px; align-items: start; }
.gcash-settings .gcash-qr-box img { max-width: 260px; }
.qr-preview { display: block; max-width: 200px; margin-top: 12px; border-radius: 12px; border: 2px dashed var(--primary); }
.qr-preview[hidden] { display: none; }
@media screen and (max-width: 860px) { .gcash-settings { grid-template-columns: 1fr; } }
@media screen and (min-width: 1101px) and (max-width: 1500px) {
  .topbar { gap: 14px; }
  .topbar nav a { padding: 7px 7px; font-size: 12.5px; }
  .who { max-width: 230px; overflow: hidden; text-overflow: ellipsis; padding: 0 6px; }
  .brand img { width: 140px; }
}
.invoice-sign .sign-name { display: block; min-height: 22px; color: var(--ink); font-size: 15px; font-weight: 700; }
.invoice-sign span { height: 4px !important; }
.invoice-sign small { display: block; font-size: 11px; }
.stat-symbol { width: 36px; height: 36px; border-radius: 10px; flex: 0 0 auto; font-family: 'DM Sans', sans-serif; }
.stat-symbol svg { display: block; }
.stat-symbol-orders { background: var(--sky-100); color: var(--primary); }
.stat-symbol-points { background: #fff4d6; color: #e3a008; }
.stat-heading { display: flex; align-items: center; gap: 12px; }

/* ---------- Profile (account) menu ---------- */
.profile-menu { position: relative; margin-left: 6px; }
.profile-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; padding: 3px; border-radius: 999px; cursor: pointer; }
.profile-menu summary::-webkit-details-marker { display: none; }
.profile-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #fff; box-shadow: 0 0 0 3px #fff, 0 2px 8px rgba(18, 87, 141, .25); }
.profile-menu summary:hover .profile-avatar, .profile-menu[open] .profile-avatar, .profile-menu summary[aria-current="page"] .profile-avatar { background: var(--primary-strong); box-shadow: 0 0 0 3px var(--sky), 0 2px 8px rgba(18, 87, 141, .25); }
.profile-label { display: none; }
.profile-list { position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; width: 270px; padding: 8px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 18px 40px rgba(12, 58, 96, .2); }
.profile-head { display: flex; gap: 12px; align-items: center; padding: 10px 10px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--border); }
.profile-head strong { display: block; color: var(--ink); font-size: 14px; }
.profile-head small { display: block; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.profile-initial { flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--sky-100); color: var(--primary-strong); font: 800 17px 'Manrope', sans-serif; }
.topbar .profile-list a { display: flex; align-items: center; gap: 10px; padding: 10px 10px; border-radius: 8px; color: #174a72; font-size: 14px; }
.topbar .profile-list a:hover { background: var(--sky-50); }
.topbar .profile-list a.logout { color: var(--danger); margin: 0; }
.topbar .profile-list a.logout:hover { background: var(--danger-soft); }
@media screen and (max-width: 1100px) {
  .profile-menu { width: 100%; margin: 6px 0 0; order: -1; }
  .profile-menu summary { width: 100%; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .6); }
  .profile-label { display: inline; font-size: 15px; font-weight: 700; color: #174a72; }
  .profile-list { position: static; width: auto; margin-top: 6px; box-shadow: none; }
}

/* ---------- Profile photos ---------- */
.profile-avatar.has-photo { background: #fff; overflow: hidden; }
.profile-avatar img, .profile-initial img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.profile-initial { overflow: hidden; }
.profile-page { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 22px; align-items: start; }
.profile-photo-big { display: grid; place-items: center; margin: 4px 0 8px; }
.profile-photo-big img, .profile-photo-empty { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; border: 5px solid var(--sky-100); box-shadow: 0 10px 26px rgba(18, 87, 141, .18); }
.profile-photo-big img[hidden], .profile-photo-empty[hidden] { display: none; }
.profile-photo-empty { display: grid; place-items: center; background: var(--primary); color: #fff; font: 800 58px 'Manrope', sans-serif; }
.profile-details { display: grid; gap: 0; margin: 0; }
.profile-details div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.profile-details dt { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.profile-details dd { margin: 0; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
@media screen and (max-width: 860px) { .profile-page { grid-template-columns: 1fr; } }

/* ---------- Order queue (cleaner table) ---------- */
.wide-screen .container { width: min(1440px, 100% - 48px); }
.order-list-card { padding: 0; }
.order-list-card table { min-width: 0; }
.order-list-card th, .order-list-card td { padding: 14px 12px; }
.order-list-card .pager { margin: 0; padding: 16px 20px; }
.order-list-card .list-toolbar { padding: 0 20px; }
.nowrap { white-space: nowrap; }
.order-number { display: block; font-size: 15px; color: var(--ink); }
.receipt-ref { white-space: nowrap; font-size: 10.5px; }
.cust-cell strong { display: block; color: var(--ink); font-weight: 700; }
.cust-cell .mode-tag { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.mode-tag.is-delivery { background: #efe9ff; color: #5b3cc4; }
.mode-tag.is-dropoff { background: #e6f1fa; color: #24618f; }
.total-cell { font-weight: 800; color: var(--ink); }
.order-list-card .inline-update { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; }
.order-list-card .inline-update select { width: 150px; min-height: 36px; font-size: 13px; }
.order-list-card .inline-update .btn { min-width: 74px; }
.order-list-card .inline-update .btn:disabled { opacity: 1; background: #eef3f8; border-color: #d3e0ec; color: #8aa0b5; box-shadow: none; }
.order-list-card .badge { white-space: nowrap; }

/* Invoice: plain Amount due; Amount paid & Balance due as large as Total amount */
.invoice-due { font-size: inherit !important; color: var(--ink) !important; }
.receipt-totals .money-row dt,
.receipt-totals .money-row dd { color: var(--ink); font: 800 18px 'Manrope', sans-serif; }
.receipt-totals .balance dd { color: var(--ink); }
@media print {
  .receipt-totals .money-row dt, .receipt-totals .money-row dd, .receipt-totals .grand dt, .receipt-totals .grand dd { font-size: 15px; }
}

/* Invoice items: no hover highlight / striping (printed-document look) */
.invoice-table tbody tr:hover td,
.invoice-table tbody tr:nth-child(even) td { background: transparent; }

/* ---------- Landing: sample order card ---------- */
.lp-hero-visual { padding: 0 0 110px 34px; }
.lp-tracker { width: min(300px, 82%); padding: 16px 18px 14px; border: 1px solid rgba(255, 255, 255, .6); }
.lp-tracker-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.lp-tracker-top .lp-tracker-tag { margin: 0; }
.lp-tracker-no { font: 700 11px ui-monospace, Consolas, monospace; color: var(--muted); letter-spacing: .02em; }
.lp-tracker-total { display: block; margin-top: 8px; color: var(--ink); font: 800 20px 'Manrope', sans-serif; }
.lp-tracker-total small { font: 600 11px 'DM Sans', sans-serif; color: var(--muted); }
.lp-tracker ol { gap: 0; }
.lp-tracker ol::before { content: none; }
.lp-tracker li { padding: 6px 0; }
.lp-tracker li > span:nth-child(2) { flex: 1 1 auto; }
.lp-tracker li time { color: var(--muted); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
/* connector between dots: green for finished steps, grey after */
.lp-tracker li:not(:last-child)::after { content: ''; position: absolute; left: 6px; top: 22px; height: calc(100% - 14px); width: 2px; background: var(--border); }
.lp-tracker li.is-done::after { background: var(--success) !important; }
.lp-tracker li b { margin-left: 0; }
.lp-tracker-note { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; padding-top: 10px; border-top: 1px dashed var(--border-strong); color: var(--primary-strong); font-size: 11.5px; font-weight: 600; }
@media screen and (max-width: 430px) { .lp-hero-visual { padding: 0; } .lp-tracker { width: auto; } }

/* ---------- Fees (delivery & GCash) ---------- */
.fee-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #fff4d6; color: #8a5a00; font-style: normal; font-size: 11px; font-weight: 800; vertical-align: middle; }
.estimate-fees { margin-top: 0; padding-top: 6px; border-top: 1px dashed var(--border-strong); }
.estimate-fees [hidden] { display: none; }
.estimate-fees dt small { color: var(--muted); font-size: 11px; }
.receipt-totals .fee-line dt, .receipt-totals .fee-line dd { color: var(--text); }
.schedule-row + .schedule-row { margin-top: 0; }
.schedule-hint { margin: 8px 0 0; }
.schedule-hint strong { color: var(--ink); }
.optional-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #eef3f8; color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .03em; vertical-align: middle; }
.topbar nav[hidden] { display: none !important; }
/* Sample order card removed: photo only */
.lp-hero-visual { padding: 0; }

/* ==========================================================
   Landing hero: decorative design around the photo
   ========================================================== */
.lp-hero-visual { position: relative; padding: 28px 34px 34px; isolation: isolate; }
.lp-hero-visual .lp-photo { position: relative; z-index: 1; border: 6px solid rgba(255, 255, 255, .12); }
.lp-deco-frame {
  position: absolute; z-index: 0; inset: 0 0 8px 62px;
  border: 2px dashed rgba(143, 207, 245, .45); border-radius: 26px;
  transform: rotate(3deg);
}
.lp-deco-dots {
  position: absolute; z-index: 0; left: 0; bottom: 0; width: 130px; height: 110px;
  background-image: radial-gradient(rgba(143, 207, 245, .55) 1.6px, transparent 1.8px);
  background-size: 14px 14px;
}
.lp-bubble {
  position: absolute; z-index: 2; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.95) 0 9%, rgba(191,226,248,.35) 10% 55%, rgba(76,178,236,.18) 70%, rgba(255,255,255,.45) 100%);
  border: 1px solid rgba(255, 255, 255, .45);
  box-shadow: inset -4px -6px 12px rgba(76, 178, 236, .25);
  animation: lp-float 7s ease-in-out infinite;
  pointer-events: none;
}
.lp-bubble.b1 { width: 54px; height: 54px; top: -6px; right: 6px; }
.lp-bubble.b2 { width: 26px; height: 26px; top: 46px; right: -8px; animation-delay: -2s; }
.lp-bubble.b3 { width: 36px; height: 36px; top: 34%; left: 6px; animation-delay: -4s; }
.lp-bubble.b4 { width: 18px; height: 18px; top: 8px; left: 42%; animation-delay: -1s; }
.lp-bubble.b5 { width: 30px; height: 30px; bottom: 2px; right: 30%; animation-delay: -3s; }
@keyframes lp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.lp-chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 10px; border-radius: 14px; background: #fff; color: var(--ink);
  box-shadow: 0 14px 30px rgba(3, 20, 36, .35); border: 1px solid var(--sky-100);
  animation: lp-float 8s ease-in-out infinite;
}
.lp-chip strong { display: block; font: 700 13px/1.25 'Poppins', 'DM Sans', sans-serif; color: var(--ink); }
.lp-chip small { display: block; font: 600 11.5px/1.3 'DM Sans', sans-serif; color: var(--muted); }
.lp-chip-icon {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--sky-100); color: var(--primary);
}
.lp-chip-a { top: 4px; left: -6px; animation-delay: -1.5s; }
.lp-chip-b { bottom: 4px; left: 8%; animation-delay: -4s; }
.lp-chip-c { top: 46%; right: -10px; animation-delay: -6s; }
.lp-chip-c .lp-chip-icon { background: #e3f4ea; color: var(--success); }
.lp-chip-b .lp-chip-icon { background: #fff2d4; color: var(--warning); }

@media (prefers-reduced-motion: reduce) { .lp-bubble, .lp-chip { animation: none; } }

@media screen and (max-width: 1020px) { .lp-hero-visual { margin: 0 auto; width: 100%; } }

/* Landing hero decorations: responsive layout */
@media screen and (min-width: 1021px) and (max-width: 1240px) {
  .lp-hero-visual { padding: 26px 20px 30px; }
  .lp-chip { gap: 8px; padding: 8px 12px 8px 8px; }
  .lp-chip strong { font-size: 12px; }
  .lp-chip small { font-size: 11px; }
  .lp-chip-icon { width: 30px; height: 30px; border-radius: 8px; }
  .lp-chip-icon svg { width: 17px; height: 17px; }
  .lp-chip-a { left: -4px; }
  .lp-chip-c { right: 0; top: 50%; }
}
@media screen and (max-width: 1020px) {
  .lp-hero-visual { max-width: 580px; margin: 8px auto 0; }
  .lp-chip-c { right: 0; }
}
/* Phones: photo on top, then one tidy info card with three rows */
@media screen and (max-width: 600px) {
  .lp-hero-visual { display: block; padding: 16px 4px 0; margin-top: 4px; }
  .lp-deco-frame { inset: 0 0 auto 26px; height: calc(100% - 196px); min-height: 150px; transform: rotate(2.5deg); }
  .lp-deco-dots { left: auto; right: -4px; top: 0; bottom: auto; width: 84px; height: 70px; }
  .lp-bubble.b1 { width: 40px; height: 40px; top: 2px; right: 0; }
  .lp-bubble.b2 { width: 20px; height: 20px; top: 46px; right: -4px; }
  .lp-bubble.b3 { display: block; width: 26px; height: 26px; top: 30%; left: -6px; }
  .lp-bubble.b4 { width: 14px; height: 14px; top: 4px; left: 38%; }
  .lp-bubble.b5 { display: none; }
  .lp-hero-visual .lp-photo { border-width: 4px; border-radius: 16px; }
  .lp-chip {
    position: relative; inset: auto; top: auto; right: auto; bottom: auto; left: auto;
    animation: none; margin: 0; border-radius: 0; box-shadow: none;
    border: 0; border-top: 1px solid var(--sky-100);
    padding: 12px 14px; gap: 12px; width: 100%;
  }
  .lp-chip-a { margin-top: 14px; border-top: 0; border-radius: 14px 14px 0 0; }
  .lp-chip-c { border-radius: 0 0 14px 14px; box-shadow: 0 14px 28px rgba(3, 20, 36, .35); }
  .lp-chip-a { box-shadow: 0 -2px 0 var(--sky) inset; box-shadow: none; }
  .lp-chip strong { font-size: 14px; }
  .lp-chip small { font-size: 12.5px; }
  .lp-chip-icon { width: 38px; height: 38px; }
}

/* ==========================================================
   Terms and Conditions (register checkbox, pop-up, /terms.php)
   ========================================================== */
.terms-agree {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 16px 0 4px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--sky-50);
  text-align: left;
}
.terms-agree input[type="checkbox"] { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--primary); cursor: pointer; }
form.stacked .terms-agree label { margin: 0; font-weight: 500; font-size: 13.5px; line-height: 1.5; color: var(--text); cursor: pointer; }
.terms-agree label .req { display: none; }
.terms-agree .field-error { flex-basis: 100%; }
.terms-agree:has(input[aria-invalid="true"]) { border-color: var(--danger); background: var(--danger-soft); }
.terms-agree { flex-wrap: wrap; }
.terms-agree label { flex: 1 1 0; min-width: 0; }
.terms-link {
  display: inline; padding: 0; margin: 0; border: 0; background: none;
  font: inherit; font-weight: 700; color: var(--primary); text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.terms-link:hover { color: var(--primary-strong); }
.terms-link:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }

dialog.terms-modal { width: min(680px, calc(100vw - 24px)); display: none; padding: 0; overflow: hidden; }
dialog.terms-modal[open] { display: flex; flex-direction: column; }
dialog.terms-modal .form-modal-head { padding: 20px 24px 12px; margin: 0; border-bottom: 1px solid var(--border); }
.terms-scroll { overflow-y: auto; padding: 4px 24px 12px; flex: 1 1 auto; min-height: 0; }
.terms-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 24px 18px; margin: 0; border-top: 1px solid var(--border); background: #fff; }

.terms-body { color: var(--text); font-size: 14px; line-height: 1.65; text-align: left; }
.terms-body h3 { margin: 20px 0 6px; font-size: 15.5px; color: var(--ink); }
.terms-body ul { margin: 0; padding-left: 20px; }
.terms-body li { margin: 4px 0; }
.terms-body p { margin: 8px 0; }
.terms-updated { display: inline-block; margin-top: 12px !important; padding: 3px 10px; border-radius: 999px; background: var(--sky-100); color: var(--primary-strong); font-size: 12px; font-weight: 700; }

.terms-page { max-width: 820px; margin: 0 auto; padding: 8px 32px 26px; }
.terms-back { max-width: 820px; margin: 18px auto 0; text-align: center; }
.footer a { color: inherit; font-weight: 700; }

@media screen and (max-width: 600px) {
  dialog.terms-modal .form-modal-head { padding: 16px 16px 10px; }
  .terms-scroll { padding: 2px 16px 10px; }
  .terms-actions { padding: 12px 16px 14px; }
  .terms-actions .btn { flex: 1 1 0; }
  .terms-page { padding: 4px 18px 20px; }
}
.terms-agree input[type="checkbox"] { order: 0; }
.terms-agree label { order: 1; }
.terms-agree .field-error { order: 2; margin: 2px 0 0 28px; }

/* Booking: "No. of pieces  Optional" stays on one line so the inputs line up */
.line-grid label.nowrap-label { white-space: nowrap; }
.line-grid label.nowrap-label .optional-tag { margin-left: 4px; padding: 1px 6px; font-size: 10px; }

/* Users & roles: customer role is fixed */
.user-form .field-label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 13px; color: var(--ink); }
.role-locked { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 0; }
.role-locked small { color: var(--muted); font-size: 12px; line-height: 1.4; }

/* Password eye: hidden password = crossed-out eye, visible password = open eye */
.password-toggle .eye-open { display: none; }
.password-toggle .eye-closed { display: block; }
.password-toggle[aria-pressed="true"] .eye-open { display: block; }
.password-toggle[aria-pressed="true"] .eye-closed { display: none; }

/* Receipt: no back link, buttons sit on the right */
.receipt-actions { justify-content: flex-end; }

/* Change password: code step actions */
.cp-otp-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cp-otp-actions form { margin: 0; }

/* Order status: To ship (pickup & delivery on the way) */
.badge.to_ship { background: #ede9fe; color: #5b3fb3; }
/* Progress tracker: 4 steps (drop-off) or 5 steps (pickup & delivery) */
@media screen and (min-width: 431px) {
  .order-progress { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
}
.order-progress li > span:last-child { position: relative; z-index: 1; background: #fff; padding: 0 8px; margin-left: -8px; }

/* Orders: Mark paid + locked completed orders */
.mark-paid-form { display: flex; justify-content: center; margin: 6px 0 0; }
.mark-paid-form .mark-paid-btn { min-height: 0; padding: 4px 12px; font-size: 12px; }
.status-locked {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px;
  background: var(--success-soft); color: var(--success); font-size: 12.5px; font-weight: 700; white-space: nowrap;
}
.inline-update select option:disabled { color: #9aa9b8; }
.status-locked.is-cancelled { background: var(--danger-soft); color: var(--danger); }

/* Booking: schedule rules box */
.schedule-info { margin: 12px 0 4px; padding: 12px 14px; border-radius: 12px; background: var(--sky-50); border: 1px solid var(--border); font-size: 12.5px; line-height: 1.55; color: var(--text); }
.schedule-info p { margin: 2px 0; }
.schedule-info p[hidden] { display: none; }
.day-full { display: block; margin-top: 6px; }
.day-full[hidden] { display: none; }
.schedule-info [hidden] { display: none; }
.batch-list { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; gap: 2px; }
.batch-list li { display: grid; grid-template-columns: 150px 1fr auto; gap: 8px; padding: 3px 0; border-bottom: 1px dashed var(--border); }
.batch-list li span:last-child { font-weight: 700; color: var(--primary-strong); }
@media screen and (max-width: 520px) { .batch-list li { grid-template-columns: 1fr auto; } .batch-list li span:nth-child(2) { display: none; } }

/* ==========================================================
   Order updates (weight / pieces / total) and laundry photos
   ========================================================== */
.badge.adjust-pending { display: inline-block; margin-top: 6px; background: var(--warning-soft); color: var(--warning); }
.receipt-cell { white-space: nowrap; }
.receipt-cell .btn + .btn { margin-left: 6px; }
.adjust-box {
  max-width: 860px; margin: 0 auto 16px; padding: 18px 20px; border-radius: 14px;
  background: var(--warning-soft); border: 1px solid #f0d9a6; color: var(--text);
}
.adjust-box h2 { margin: 0 0 10px; font-size: 18px; color: var(--ink); }
.adjust-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 10px; }
.adjust-compare div { padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--border); }
.adjust-compare .is-now { border-color: var(--primary); box-shadow: 0 0 0 2px var(--sky-100); }
.adjust-compare dt { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.adjust-compare dd { margin: 4px 0 0; font-weight: 800; color: var(--ink); }
.adjust-note { margin: 0 0 8px; }
.adjust-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.adjust-actions form { margin: 0; }
.adjust-alert { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--warning-soft); color: var(--warning); font-size: 13px; font-weight: 600; }
.adjust-alert a { color: inherit; font-weight: 800; }
.order-edit-extra { margin-top: 16px; }
.order-photos-admin { margin-top: 18px; }
.order-photos { margin-top: 18px; }
.photo-grid { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.photo-grid li { display: flex; flex-direction: column; gap: 4px; padding: 8px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.photo-grid img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; background: var(--sky-50); }
.photo-caption { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.photo-grid small { font-size: 11px; color: var(--muted); }
.photo-grid form { margin: 0; }
.danger-text { color: var(--danger); }
.photo-upload { margin-top: 16px; }
@media screen and (max-width: 600px) {
  .adjust-compare { grid-template-columns: 1fr; }
  .adjust-actions .btn { width: 100%; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Edit weight page: what the customer already paid vs. the new total */
.paid-note { margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--sky-50, #f0f7fd); font-size: 12px; color: #16324a; }

/* Refunds page */
.refund-form { display: grid; gap: 6px; min-width: 190px; }
.refund-form input { min-height: 34px; padding: 6px 9px; font-size: 13px; }
.badge.refund-pending { background: #fff4dc; color: #7a5300; }
.badge.refund-refunded { background: #e3f6ea; color: #1d6b3c; }
.badge.refund-cancelled { background: #eef1f4; color: #5a6b7c; }
.receipt-totals .refund-line dd { color: #1d6b3c; }

/* Edit weight page: computed total (read-only) */
.total-display { display: flex; align-items: center; min-height: 42px; padding: 9px 11px; border: 1px solid #c4d7e7; border-radius: 8px; background: #f4f8fb; font-size: 16px; font-weight: 700; color: var(--text); }

/* Edit order: no red highlight on required fields (the message under the field still explains what is missing). */
.no-invalid-highlight input.field-invalid,
.no-invalid-highlight select.field-invalid,
.no-invalid-highlight textarea.field-invalid { border-color: var(--border-strong); box-shadow: none; background: inherit; }
.no-invalid-highlight .field-error { color: var(--muted); }
.no-invalid-highlight .form-error-summary { border-color: var(--border); background: var(--sky-50); color: var(--text); }
.no-invalid-highlight .field-error::before { content: none; }
.order-edit-photo { margin-top: 14px; }
.optional-tag[hidden] { display: none; }
/* Booking estimate: list of chosen services with their price */
.estimate-lines .estimate-services-row { display: block; padding-top: 0; border-top: 0; }
.estimate-services { list-style: none; margin: 0 0 4px; padding: 8px 10px; border-radius: 10px; background: var(--sky-50); border: 1px solid var(--border); }
.estimate-services li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: 13px; color: var(--text); }
.estimate-services li + li { border-top: 1px dashed var(--border); }
.estimate-services li span { min-width: 0; }
.estimate-services li small { color: var(--muted); }
.estimate-services li strong { white-space: nowrap; color: var(--ink); }
.estimate-services li.is-empty { color: var(--muted); font-style: italic; justify-content: flex-start; }

/* Landing: mission & vision, features */
.lp-mv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lp-mv-card { padding: 28px 26px; background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: 16px; box-shadow: var(--shadow); }
.lp-mv-card.is-vision { border-left-color: var(--sky); }
.lp-mv-tag { display: inline-block; margin-bottom: 12px; padding: 4px 10px; border-radius: 999px; background: var(--sky-100); color: var(--primary-strong); font: 800 11px 'DM Sans', sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.lp-mv-card p { margin: 0; color: var(--text); font-size: 16px; line-height: 1.7; }
.lp-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.lp-features li { padding: 22px; background: #fff; border: 1px solid var(--border); border-radius: 16px; }
.lp-feat-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 14px; border-radius: 12px; background: var(--sky-100); color: var(--primary); }
.lp-features h3 { margin: 0 0 6px; font-size: 16px; }
.lp-features p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
@media screen and (max-width: 760px) { .lp-mv { grid-template-columns: 1fr; } }
@media screen and (max-width: 600px) { #main-nav a[href="#about"], #main-nav a[href="#features"] { display: none; } }

/* Landing: clickable branch cards */
.lp-branches li { padding: 0; transition: border-color .18s, box-shadow .18s, transform .18s, background .18s; }
.lp-branch-link { display: flex; gap: 12px; align-items: flex-start; height: 100%; padding: 18px; color: inherit; text-decoration: none; border-radius: inherit; }
.lp-branch-link:hover, .lp-branch-link:focus-visible { text-decoration: none; }
.lp-branch-link:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.lp-branches li:hover, .lp-branches li:focus-within { border-color: var(--primary); background: var(--sky-50); box-shadow: 0 0 0 1px var(--primary) inset, 0 12px 28px rgba(15, 51, 80, .14); transform: translateY(-3px); }
.lp-branches li:hover .lp-pin, .lp-branches li:focus-within .lp-pin { background: var(--primary); color: #fff; }
.lp-branches li:hover h3, .lp-branches li:focus-within h3 { color: var(--primary-strong); }
.lp-branch-go { display: inline-block; margin-top: 8px; color: var(--primary); font-size: 12.5px; font-weight: 700; }
.lp-branch-go span { display: inline-block; transition: transform .18s; }
.lp-branches li:hover .lp-branch-go span { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .lp-branches li, .lp-branch-go span { transition: none; } .lp-branches li:hover { transform: none; } }