:root {
  color-scheme: light;
  --ink: #111827;
  --gold: #b38a2e;
  --gold-soft: #f7ebcf;
  --bg: #f7f2ea;
  --card: #ffffff;
  --border: #efe2bc;
  --muted: #6b7280;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #d97706;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: 'Inter', sans-serif; background: var(--bg); color: var(--ink); }
a { text-decoration: none; color: inherit; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 260px; background: #ffffff; color: var(--ink); padding: 24px 16px; border-right: 1px solid #e5e7eb; }
.muted { color: #6b7280; }
.small { font-size: .95rem; }
.brand { display: flex; align-items: center; justify-content: center; gap: 12px; font-family: 'Playfair Display', serif; font-size: 1.35rem; margin-bottom: 24px; padding-bottom: 22px; border-bottom: 1px solid #e5e7eb; }
.brand-logo { height: 72px; width: auto; object-fit: contain; }
.brand-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--gold); display: grid; place-items: center; font-size: 20px; }
.nav-link { display: block; padding: 12px 14px; border-radius: 14px; color: var(--ink); margin-bottom: 8px; transition: background .2s ease, color .2s ease, transform .2s ease; }
.nav-link:hover { background: #f3f4f6; color: var(--ink); transform: translateX(1px); }
.nav-link.active {
  background: rgba(255, 206, 120, 0.25);
  color: var(--ink);
  border-left: 4px solid var(--gold);
  box-shadow: 0 16px 35px rgba(0, 0, 0, .1);
}
.nav-group {
  margin-bottom: 16px;
}
.nav-group-title {
  padding: 12px 14px 6px;
  color: var(--muted);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nav-sublink {
  margin-left: 12px;
  border-radius: 14px;
  font-size: 0.95rem;
}
.nav-sublink:hover {
  background: #f5f5f8;
}
.main-panel { flex: 1; padding: 24px; }
.mobile-sidebar-toggle {
  display: inline-flex !important;
  position: fixed !important;
  right: 18px !important;
  bottom: 18px !important;
  top: auto !important;
  left: auto !important;
  width: 52px !important;
  height: 52px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: var(--gold) !important;
  color: white !important;
  border: none !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.4rem !important;
  box-shadow: 0 16px 30px rgba(0,0,0,.2) !important;
  z-index: 1500 !important;
  cursor: pointer !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

@media (min-width: 900px) {
  .mobile-sidebar-toggle {
    display: none !important;
  }
}
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.topbar-title { font-weight: 700; color: var(--ink); }
.topbar-subtitle { color: var(--muted); font-size: .95rem; }
.topbar-meta { color: var(--muted); font-size: .95rem; margin: 8px 0 6px; }
.topbar-actions a { color: var(--ink); font-weight: 600; }
.page-content { max-width: 1200px; margin: 0 auto; }
.card, .panel { background: var(--card); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 8px 24px rgba(0,0,0,.04); padding: 24px; }

/* Booking cards and section spacing */
.booking-card {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  gap: 18px;
  padding: 22px;
  border-radius: 14px;
}
.booking-left {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  width: 100%;
}
.booking-left > div {
  min-width: 0;
}
.booking-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--gold-soft);
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--gold);
}
.card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
  grid-column: 1 / -1;
}
.history-card {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.empty-state { text-align: center; padding: 28px; border-radius: 16px; }
.section-title { font-size: 1.5rem; margin: 18px 0 10px; padding-top: 20px; }
.page-header .section-title { font-size: 1.6rem; }
.booking-card .badge { margin-left: 12px; }

/* Small spacing between a section title and its list of items (e.g., History) */
.section-title + .space-y-3 { margin-top: 14px; }
.page-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-header-copy { flex: 1 1 280px; min-width: 0; }
.dashboard-date-control { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-left: auto; }
.dashboard-date-control label { display: inline-block; }
.dashboard-date-control input {
  min-width: 160px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: var(--ink);
}
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.page-title, .section-title { font-family: 'Playfair Display', serif; font-size: 1.7rem; margin: 0; }
.page-subtitle { margin-top: 6px; color: var(--muted); font-size: .95rem; }

@media (max-width: 640px) {
  .page-header { align-items: flex-start; }
  .dashboard-date-control { width: 100%; margin-left: 0; }
  .dashboard-date-control input { width: 100%; }
}
.profile-card { padding: 24px; }
.profile-intro { display: flex; align-items: center; gap: 18px; }
.profile-intro .avatar-circle { background: #f3f3f3; color: #8b8b8b; }
.avatar-circle { width: 110px; height: 110px; border-radius: 999px; background: var(--gold); color: white; display: grid; place-items: center; font-size: 2.4rem; font-weight: 700; }
.avatar-circle img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px; }
.avatar-circle.customer-dashboard-avatar { width: 110px; height: 110px; flex: 0 0 110px; background: #f3f3f3; color: #8b8b8b; font-size: 2.4rem; }
.avatar-circle.customer-dashboard-avatar > img { width: 100%; height: 100%; object-fit: contain; }
.btn, button, .button { border: none; border-radius: 10px; padding: 10px 14px; font-weight: 600; cursor: pointer; }
button.is-saving, input.is-saving { cursor: wait !important; }
.btn-primary { background: var(--gold); color: white; }
.btn-outline { background: white; color: var(--gold); border: 1px solid var(--gold); }
.btn-danger { background: var(--danger); color: white; }
.btn-dark { background: var(--ink); color: white; }
.input, select, textarea { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font: inherit; background: white; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { padding: 22px; position: relative; overflow: hidden; }
.dashboard-stat-card { cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.dashboard-stat-card:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0,0,0,.08); }
.stat-icon { width: 44px; height: 44px; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.stat-icon svg { width: 18px; height: 18px; }
.icon-gold { background: #fef3c7; color: #92400e; }
.icon-blue { background: #dbeafe; color: #1d4ed8; }
.icon-amber { background: #fef3c7; color: #92400e; }
.icon-green { background: #dcfce7; color: #166534; }
.icon-purple { background: #ede9fe; color: #6d28d9; }
.icon-indigo { background: #e0e7ff; color: #4338ca; }
.icon-teal { background: #ccfbf5; color: #0f766e; }
.icon-rose { background: #ffe4e8; color: #be123c; }
.icon-cyan { background: #cffafe; color: #0c4a6e; }
.stat-value { font-size: 2rem; font-weight: 700; margin: 10px 0 6px; }
.stat-label { color: #6b7280; font-size: .95rem; letter-spacing: .01em; }
.badge { display: inline-block; padding: 5px 8px; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-confirmed { background: #dbeafe; color: #1d4ed8; }
.badge-checked_in { background: #ccfbf5; color: #0f766e; }
.badge-in_progress { background: #fef3c7; color: #92400e; }
.badge-completed { background: #dcfce7; color: #166534; }
.badge-cancelled { background: #e5e7eb; color: #374151; }
.badge-no_show { background: #f3f4f6; color: #374151; }
.badge-active { background: #dcfce7; color: #166534; }
.hero-panel { background: linear-gradient(135deg, var(--ink), #2a2a2a); color: white; border-radius: 24px; padding: 32px; margin-bottom: 24px; }
.hero-panel h1 { font-family: 'Playfair Display', serif; font-size: 2rem; margin: 0 0 8px; }
.hero-panel p { color: rgba(255,255,255,.8); }
.auth-body { margin: 0; min-height: 100vh; background: #f5efe6; font-family: 'Inter', sans-serif; }
.auth-page { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-hero { background: radial-gradient(circle at 25% 20%, rgba(179,138,46,.18), transparent 26%), radial-gradient(circle at 80% 80%, rgba(179,138,46,.16), transparent 25%), #111111; color: #f5eee0; display: flex; align-items: center; justify-content: center; padding: 60px; position: relative; overflow: hidden; }
.auth-hero-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.auth-hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(8, 2, 2, 0.45); z-index: 2; }
.auth-hero-inner { display: flex; flex-direction: column; justify-content: space-between; height: 100%; max-width: 520px; position: relative; z-index: 3; }
.brand-panel { display: flex; align-items: center; gap: 14px; }
.brand-logo-large { height: 60px; width: auto; object-fit: contain; }
.brand-icon-large { width: 56px; height: 56px; border-radius: 18px; background: var(--gold); display: grid; place-items: center; font-size: 22px; color: #fff; }
.brand-title { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; letter-spacing: .02em; }
.hero-copy h1 { font-family: 'Playfair Display', serif; font-size: 3.1rem; line-height: 1.1; text-wrap: balance; margin: 0 0 18px; color: #f5efe0; }
.hero-copy p { max-width: 420px; color: rgba(245,238,224,.78); line-height: 1.8; margin: 0 0 28px; font-size: 1rem; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 12px; color: rgba(245,238,224,.72); font-size: .95rem; }
.hero-tags span { display: inline-flex; align-items: center; gap: 8px; }
.service-icon { font-size: 1.2rem; }
.hero-footer { color: rgba(245,238,224,.5); font-size: .92rem; margin-top: 28px; }
.auth-form-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 60px; }
.auth-form-panel-full { grid-column: 1 / -1; min-height: 100vh; }
.auth-form-card { width: 100%; max-width: 460px; background: #fff; border-radius: 28px; box-shadow: 0 28px 80px rgba(17,17,17,.12); padding: 44px; }
.auth-flash-list { width: 100%; max-width: 460px; }
.auth-flash-list .flash-message { padding: 12px 16px; border: 1px solid #bbf7d0; border-radius: 12px; background: #f0fdf4; color: #166534; text-align: center; font-weight: 600; }
.auth-form-header { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 26px; }
.brand-logo-small { height: 90px; width: auto; object-fit: contain; }
.brand-icon-small { width: 42px; height: 42px; border-radius: 16px; background: var(--gold); display: grid; place-items: center; font-size: 18px; color: #fff; }
.brand-title-small { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 700; }
.auth-mode-toggle { display: flex; gap: 8px; margin-bottom: 24px; }
.mode-button, .role-button { flex: 1; border: 1px solid transparent; border-radius: 14px; padding: 12px 14px; background: #f7f2ea; color: var(--ink); cursor: pointer; font-weight: 600; transition: all .2s ease; }
.mode-button.active, .role-button.active { background: white; border-color: var(--gold); box-shadow: 0 8px 20px rgba(179,138,46,.12); }
.role-toggle-group { display: flex; gap: 8px; margin-bottom: 24px; }
.two-column-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.auth-form-card h2 { margin: 0 0 8px; font-family: 'Playfair Display', serif; font-size: 2.1rem; line-height: 1.05; color: var(--ink); }
.auth-form-card .subtitle { color: var(--muted); margin-bottom: 24px; }
.form-stack { display: grid; gap: 18px; }
.form-stack label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--ink); }
.form-stack input { width: 100%; border: 1px solid #e2d7bc; border-radius: 14px; padding: 14px 16px; background: #fbf5ec; font-size: 1rem; color: var(--ink); }
.form-stack input:focus { outline: 2px solid rgba(179,138,46,.4); border-color: rgba(179,138,46,.45); }
.btn-block { width: 100%; }
.btn-primary { background: var(--gold); color: white; padding: 14px 16px; border-radius: 14px; font-weight: 700; transition: transform .15s ease, box-shadow .15s ease; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(179,138,46,.25); }
.switch-text { margin-top: 22px; text-align: center; color: var(--muted); }
.switch-text a { color: var(--gold); font-weight: 700; }
.info-text { color: rgba(81,81,81,.7); text-align: center; margin-top: 10px; font-size: .92rem; line-height: 1.6; }

@media (max-width: 1100px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-hero, .auth-form-panel { min-height: auto; padding: 36px; }
  .auth-form-card { padding: 32px; }
  .hero-copy h1 { font-size: 2.6rem; }
}

@media (max-width: 700px) {
  .auth-page { min-height: auto; }
  .auth-hero { min-height: auto; padding: 24px 16px; }
  .auth-form-panel { padding: 24px; }
  .hero-copy h1 { font-size: 2rem; }
}

/* Ensure global modal centers consistently above all layout elements */
#globalModal.modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  display: none; /* will be shown with .active */
  align-items: center !important;
  justify-content: center !important;
  padding: 24px !important;
  z-index: 9999 !important;
}
#globalModal.modal-backdrop.active { display: flex !important; }
#globalModal.modal-backdrop .modal-dialog { max-width: 760px; width: 100%; }

.hero-actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}
.hero-actions .btn-lg {
  width: 100%;
  max-width: 520px;
  padding: 16px 26px;
  font-size: 1rem;
  border-radius: 16px;
  text-align: center;
}

.branches-discovery {
  padding: 40px 40px;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  grid-column: 1 / -1;
}
.branches-discovery-fullwidth {
  padding-left: 40px;
  padding-right: 40px;
}
.branches-discovery-header {
  max-width: 1400px;
  margin: 0 auto 32px;
  text-align: center;
}
.branches-discovery-header h1,
.branches-discovery-header .section-title {
  margin-bottom: 12px;
}
.branches-discovery-topbar {
  max-width: 1400px;
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 0 12px;
}
.branches-discovery-logo img {
  max-height: 70px;
  width: auto;
  display: block;
}
.branches-discovery-title {
  text-align: center;
}
.branches-discovery-links {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}
.social-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.social-link ion-icon {
  font-size: 1.1rem;
  line-height: 1;
}
.social-link:hover {
  text-decoration: underline;
}
.branches-discovery-footer {
  max-width: 1400px;
  margin: 40px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 12px;
  border-top: 1px solid var(--border);
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-links a {

/* Time change requests list: layout and responsive stacking */
#time-requests-list .time-change-request-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
#time-requests-list .time-change-request-item .approve-request,
#time-requests-list .time-change-request-item .reject-request {
  min-width: 96px;
}

@media (max-width: 1100px) {
  #time-requests-list .time-change-request-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 18px !important;
  }
  #time-requests-list .time-change-request-item .request-details {
    margin-bottom: 12px;
    width: 100% !important;
  }
  #time-requests-list .time-change-request-item .request-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
  }
  #time-requests-list .time-change-request-item .request-actions .btn {
    width: 100% !important;
    min-width: 0 !important;
  }
}
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.footer-links a:hover {
  text-decoration: underline;
}
.footer-separator {
  color: var(--muted);
}
.footer-copy {
  color: var(--muted);
  font-size: .95rem;
}
.branches-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(320px, 1fr));
}
.branch-discovery-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  background: white;
  display: flex;
  flex-direction: column;
  box-shadow: 0 14px 40px rgba(0,0,0,.05);
}
.branch-discovery-image,
.branch-discovery-image-placeholder {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.branch-discovery-image-placeholder {
  display: grid;
  place-items: center;
  background: #f7f2ea;
  font-size: 3rem;
}
.branch-discovery-body {
  padding: 32px 36px 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
.branch-discovery-body a {
  color: inherit;
}
.branch-discovery-body a:hover {
  color: var(--primary);
}
}
.branch-discovery-body p,
.branch-discovery-body .muted {
  margin: 0;
  line-height: 1.75;
}
.branch-discovery-body ion-icon,
.branch-discovery-links ion-icon {
  margin-right: 10px;
  font-size: 1rem;
  vertical-align: middle;
}
.branch-discovery-body h2 {
  margin: 0;
  font-size: 1.35rem;
}
.branch-discovery-actions {
  margin-top: auto;
}
.branch-detail-dialog {
  border-radius: 24px;
  overflow: hidden;
}
.branch-detail-content {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr 1fr;
  padding: 24px;
}
.branch-detail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}
.branch-detail-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.branch-detail-address-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--primary);
  text-underline-offset: 3px;
}
.branch-detail-address-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.branch-detail-contact span {
  display: block;
}
.branch-detail-contact a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--primary);
  text-underline-offset: 3px;
}
.branch-detail-contact a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.branch-detail-times {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.branch-detail-services ul {
  list-style: disc;
  padding-left: 20px;
}
@media (max-width: 900px) {
  .branch-detail-content {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1100px) {
  .branches-grid {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
  }
}

@media (max-width: 900px) {
  .branches-discovery-topbar {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .branches-discovery-logo {
    display: flex;
    justify-content: center;
  }
  .branches-discovery-links {
    justify-content: center;
  }
  .branches-discovery-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Modal overlay and dialog styles */
.modal-overlay { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,0.35); z-index: 1200; padding: 28px; }
.modal-overlay.show { display: flex; }
.modal-dialog { width: 100%; max-width: 680px; border-radius: 12px; padding: 20px; position: relative; transform: translateY(8px) scale(0.995); opacity: 0; transition: transform .18s ease, opacity .18s ease; }
.modal-overlay.show .modal-dialog { transform: translateY(0) scale(1); opacity: 1; }
body.modal-open { overflow: hidden; }

/* Improve button spacing inside dialog */
.modal-dialog .btn { min-width: 96px; padding: 12px 18px; border-radius: 12px; }
.modal-dialog .btn.btn-primary, .modal-dialog .btn.btn-danger, .modal-dialog .btn.btn-ghost { padding: 12px 18px; }


@media (max-width: 760px) {
  .sidebar {
    position: fixed;
    z-index: 1400;
    left: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    transform: translateX(-100%);
    transition: transform .22s ease;
    box-shadow: 2px 0 30px rgba(0,0,0,.15);
    background: white;
  }
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: 1fr; }
  .branches-grid { grid-template-columns: 1fr; }
  .branch-card-content { display: flex; flex-direction: column; }
  .branch-card-right { width: 100%; min-height: 220px; border-radius: 0 0 24px 24px; }
  .mobile-sidebar-toggle {
    display: inline-flex;
    position: fixed !important;
    right: 18px !important;
    bottom: 18px !important;
    top: auto !important;
    left: auto !important;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gold);
    color: white;
    border: none;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 16px 30px rgba(0,0,0,.2);
    z-index: 99999;
    cursor: pointer;
    pointer-events: auto;
  }
  .favorite-branch-card {
    padding: 20px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
  }
  .favorite-branch-card .section-title {
    font-size: 1.35rem;
    margin-bottom: 6px;
  }
  .favorite-branch-card .page-subtitle,
  .favorite-branch-card .muted.small {
    font-size: 0.92rem;
    color: #6b7280;
    line-height: 1.5;
  }
  .favorite-branch-card > div:first-child {
    flex-direction: column;
    align-items: flex-start;
  }
  .favorite-branch-card .favorite-branch-image {
    min-width: 96px;
    max-width: 96px;
    min-height: 96px;
    border-radius: 20px;
    overflow: hidden;
  }
  .favorite-branch-card .favorite-branch-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .favorite-branch-card .flex.items-start {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .favorite-branch-card .favorite-branch-image + div {
    width: 100%;
  }
  .favorite-branch-card .text-lg {
    font-size: 1.05rem;
    line-height: 1.3;
  }
  .favorite-branch-card .muted.small {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }
  .favorite-branch-card .muted.small ion-icon {
    font-size: 1rem;
  }
  .page-header {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .page-header > div:first-child {
    display: block;
    width: 100%;
  }
  .page-header > div:last-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    width: 100%;
  }
  .page-header .btn-primary {
    width: auto;
    min-width: 140px;
    white-space: nowrap;
  }
  .page-header > div {
    min-width: 0;
  }
  .page-subtitle {
    font-size: 0.95rem;
    margin-top: 4px;
  }
  .favorite-branch-card .btn-secondary {
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .favorite-branch-card .btn-secondary ion-icon {
    font-size: 1.05rem;
  }
  .favorite-branch-card .muted.small span {
    display: inline;
  }
  .favorite-branch-card .favorite-branch-image {
    margin-right: 0;
  }
  .favorite-branch-card .flex.items-start.gap-4 {
    gap: 12px;
  }
}
  .mobile-sidebar-close { display: none; }
  .mobile-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
    z-index: 1350;
    pointer-events: none;
  }
  .mobile-sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  body.mobile-sidebar-open .mobile-sidebar-toggle { display: none; }
  body.mobile-sidebar-open .main-panel { pointer-events: none; }
  .sidebar.mobile-open .mobile-sidebar-close {
    display: inline-flex;
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f3f3f3;
    color: var(--ink);
    border: none;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
  }
  .sidebar.mobile-open .brand { padding-top: 16px; }
  .main-panel { transition: filter .2s ease; }
  body.mobile-sidebar-open .main-panel { filter: blur(1px); }
}

.page-title,
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  margin: 0;
  color: #111827;
}
.page-subtitle {
  margin-top: 8px;
  color: #6b7280;
  font-size: .95rem;
}
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.page-header > div {
  min-width: 0;
}
.form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr minmax(240px, auto);
  align-items: end;
}
.profile-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}
.step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--gold-soft);
  color: var(--ink);
  min-width: 160px;
}
.step.current {
  background: var(--ink);
  color: white;
}
.step .dot {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: white;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--ink);
}
.step.current .dot {
  background: #fff;
  color: var(--ink);
}
.booking-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--border);
}
.booking-card.booking-card--stacked,
.dashboard-booking-card {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  gap: 18px;
  padding: 22px;
  border-radius: 14px;
}
.booking-card.booking-card--stacked .booking-left,
.dashboard-booking-card .booking-left {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  width: 100%;
  align-items: start;
}
.booking-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.booking-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: var(--gold-soft);
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 1.2rem;
}
.booking-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 220px;
}
.booking-card.booking-card--stacked .booking-right {
  min-width: 0;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.booking-select {
  width: 100%;
}
.card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
}
.staff-assignment-row.is-filtered {
  display: none !important;
}
#time-requests-list .time-change-request-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 12px !important;
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
}
#time-requests-list .time-change-request-item .request-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
}
#time-requests-list .time-change-request-item .approve-request,
#time-requests-list .time-change-request-item .reject-request {
  min-width: 96px !important;
}
@media (max-width: 1100px) {
  #time-requests-list .time-change-request-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 18px !important;
  }
  #time-requests-list .time-change-request-item .request-details {
    margin-bottom: 12px !important;
    width: 100% !important;
  }
  #time-requests-list .time-change-request-item .request-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
  }
  #time-requests-list .time-change-request-item .request-actions .btn {
    width: 100% !important;
    min-width: 0 !important;
  }
  #statDetailsModal .list-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 16px !important;
  }
  #statDetailsModal .list-item > div,
  #statDetailsModal .list-item > span {
    width: 100% !important;
  }
  #statDetailsModal .list-item .badge {
    margin-top: 8px !important;
    align-self: flex-start !important;
  }
  .grid.grid-2 .card .space-y-3 .list-item {
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 16px !important;
  }
  .grid.grid-2 .card .space-y-3 .list-item > div:first-child {
    width: 100% !important;
  }
  .grid.grid-2 .card .space-y-3 .list-item .flex {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .grid.grid-2 {
    grid-template-columns: 1fr !important;
  }
  .grid.grid-2 .card .space-y-3 .list-item .badge {
    margin-top: 8px !important;
    align-self: flex-start !important;
  }
  .grid.grid-2 .card .space-y-3 .list-item .btn {
    width: 100% !important;
  }
}
.staff-card {
  padding: 20px;
  border-radius: 20px;
}
.staff-search {
  display: block;
  max-width: 520px;
  margin-bottom: 28px;
}
.staff-search span {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}
.staff-branch-group + .staff-branch-group {
  margin-top: 32px;
}
.staff-branch-heading {
  margin: 0 0 14px;
  font-size: 1.2rem;
}
.staff-card[hidden],
.staff-branch-group[hidden],
#staffSearchEmpty[hidden] {
  display: none;
}
.staff-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.staff-card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 18px;
  background: var(--gold);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.staff-card-meta {
  min-width: 0;
}
.staff-card-meta strong {
  display: block;
}
.staff-card-meta .muted {
  margin-top: 4px;
}
.card-divider {
  margin: 20px 0 0;
  border-top: 1px solid var(--border);
}
.staff-card-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--ink);
  font-weight: 600;
}
.staff-card-action:hover {
  color: #8e6a21;
}
.action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #f8f5e6;
}
.role-card {
  padding: 24px;
}
.role-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.role-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.role-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: #f7ebcf;
  display: grid;
  place-items: center;
  color: #b38a2e;
  font-size: 1rem;
}
.role-card-meta strong {
  display: block;
  font-size: 1.05rem;
}
.role-card-edit {
  color: var(--ink);
  font-weight: 600;
}
.role-card-edit:hover {
  color: #8e6a21;
}
.empty-state {
  padding: 32px;
  text-align: center;
}
.branch-empty-state,
.terms-empty-state,
.service-empty-state {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 40px;
}
.empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #f7f2ea;
  color: #b38a2e;
  font-size: 1.4rem;
}
.empty-icon svg {
  width: 28px;
  height: 28px;
}
.staff-empty-card {
  padding: 48px 36px;
  text-align: center;
}
.branch-card {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: white;
  box-shadow: 0 25px 70px rgba(22, 35, 64, .08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.branch-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 88px rgba(22, 35, 64, .12);
}
.branch-card-content {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 24px;
  align-items: stretch;
  min-height: 240px;
}
.branch-card-left {
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.branch-card-right {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  min-height: 240px;
  border-radius: 0 24px 24px 0;
  overflow: hidden;
  background: #f9f7f3;
}
.branch-card-side-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.branch-card-image-placeholder-side {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 3rem;
  background: #fbf7f0;
}
.branch-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.branch-card-info {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.branch-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #fdf6e7;
  display: grid;
  place-items: center;
  color: #b38a2e;
  font-size: 1.35rem;
  flex-shrink: 0;
}
.branch-card-header h3,
.branch-card-header h3 + p {
  margin: 0;
}
.branch-card-header h3 {
  font-size: 1.35rem;
  line-height: 1.25;
}
.branch-card-meta {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}
.branch-card-meta p {
  margin: 0;
  color: #616161;
  line-height: 1.6;
}
.branch-card-actions {
  margin-top: auto;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.branch-status {
  background: rgba(218, 187, 117, .15);
  color: #7b5f0e;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.btn-ghost {
  border: 1px solid #e5e7eb;
  background: white;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 14px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.btn-ghost:hover {
  background: #f7f2ea;
  color: #8e6a21;
  transform: translateY(-1px);
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(30, 30, 30, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 50;
}
.modal-backdrop.active {
  display: flex;
}
.modal-backdrop.active .modal-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.modal-dialog {
  width: 100%;
  max-width: 760px;
  background: white;
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.18);
  position: relative;
  max-height: calc(90vh - 48px);
  overflow-y: auto;
}
.role-modal-dialog,
.branch-modal-dialog,
.service-modal-dialog,
.package-modal-dialog {
  width: 100%;
  max-width: 920px;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  position: relative;
}
.modal-header h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: #f4ede1;
  color: rgba(17, 24, 39, 0.7);
  border-radius: 999px;
  font-size: 1.2rem;
  line-height: normal;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.modal-close:hover {
  background: #eaddc9;
  transform: translateY(-1px);
}
.label,
.modal-form label {
  display: block;
  margin-bottom: 18px;
  font-weight: 700;
  color: #111827;
}
.modal-form label > span {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}
.modal-form label small {
  display: block;
  margin-top: 6px;
  color: #6b7280;
  font-size: .88rem;
  font-weight: 400;
}
.modal-form > div {
  margin-bottom: 18px;
}
.modal-form .input {
  width: 100%;
  border: 1px solid #e7dfd0;
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff;
  color: #111827;
}
.modal-form .input:focus {
  outline: none;
  border-color: #b38a2e;
  box-shadow: 0 0 0 4px rgba(179, 138, 46, 0.12);
}
.modal-form .input::placeholder {
  color: #9ca3af;
}
.service-textarea {
  min-height: 92px;
  resize: none;
}
.service-field-grid,
.package-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.service-field-grid > div,
.package-field-grid > div {
  min-width: 0;
}
.branch-time-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.5fr 1fr;
  gap: 14px;
}
.branch-time-grid > div {
  min-width: 0;
}
.branch-time-grid select.input {
  padding-right: 1rem;
}
.permissions-section {
  margin-top: 24px;
}
.permissions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 2px;
}
.permission-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  min-height: 52px;
  border: 1px solid #e9eddc;
  border-radius: 22px;
  background: #fff;
  color: #111827;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.permission-toggle:hover {
  border-color: rgba(179, 138, 46, 0.3);
  background: #fef8e9;
}
.permission-toggle input {
  width: 20px;
  height: 20px;
  accent-color: #b38a2e;
  margin: 0;
}
.permission-toggle input:checked {
  accent-color: #b38a2e;
}
.permission-toggle input:checked + span {
  color: #111827;
}
.permission-toggle input:checked {
  border-color: transparent;
}
.permission-toggle input:checked ~ span {
  font-weight: 700;
}
.permission-toggle span {
  block-size: min-content;
  font-weight: 600;
}
.btn-full {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  text-align: center;
}
.auth-modal-dialog { max-width: 520px; }
.auth-modal-content { padding: 4px 8px 8px; }
.auth-modal-content .subtitle { color: var(--muted); margin: 0 0 22px; }
.auth-modal-content .form-stack { gap: 14px; }
.auth-modal-content .switch-text { margin-bottom: 4px; }
.permissions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.permission-card {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 14px;
  padding: 18px 18px;
  min-height: 64px;
  border: 1px solid rgba(222, 232, 220, 0.9);
  border-radius: 22px;
  background: #fff;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.permission-card:hover {
  border-color: rgba(179, 138, 46, 0.35);
  background: #fdf8ef;
}
.permission-card input {
  width: 18px;
  height: 18px;
  accent-color: #b38a2e;
  margin: 0;
}
.permission-card span {
  display: block;
  color: #111827;
  font-weight: 600;
}
.branch-status {
  min-width: 100px;
  justify-content: flex-end;
}
.tabs-wrapper {
  display: inline-flex;
  background: #f6edde;
  border-radius: 999px;
  padding: 6px;
  gap: 6px;
  border: 1px solid rgba(179,138,46,.2);
}
.tab-button {
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.tab-button.active {
  background: white;
  box-shadow: 0 12px 24px rgba(0,0,0,.05);
}
.service-panel {
  padding: 28px;
}
.service-list {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  .service-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .service-list {
    grid-template-columns: 1fr;
  }
}
.service-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid #ede8dc;
  border-radius: 18px;
  background: white;
}
.service-item > div:first-child {
  min-width: 0;
}
.item-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.item-actions .inline-form {
  margin: 0;
}
.service-price-block {
  padding-top: 8px;
}
.service-empty-state {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 40px;
}
.empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #f7f2ea;
  color: #b38a2e;
  font-size: 1.4rem;
}
.space-y-3 > * + * {
  margin-top: 16px;
}
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.p-4 { padding: 16px; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.text-ink-900 { color: var(--ink); }
.text-ink-400 { color: rgba(21, 21, 21, .55); }
.text-gold-600 { color: #b38a2e; }
.text-gold-800 { color: #8e6a21; }
.text-blue-600 { color: #2563eb; }
.text-green-600 { color: #16a34a; }
.text-red-500 { color: #ef4444; }
.bg-gold-50 { background: #fffbeb; }
.bg-gold-100 { background: #fff7e6; }
.bg-gold-200 { background: #fff2d6; }
.bg-gold-500 { background: #b38a2e; color: white; }
.bg-ink-900 { background: #111111; }
.border-gold-200 { border-color: #f9e5b3; }
.border-gold-300 { border-color: #f2d59c; }
.shadow-soft { box-shadow: 0 10px 30px rgba(0, 0, 0, .06); }
.shadow-gold { box-shadow: 0 18px 45px rgba(179, 138, 46, .15); }
.font-display { font-family: 'Playfair Display', serif; }
.hidden { display: none; }
/* Section header styling with divider for Roles & Rights page */
.section-header {
  margin-bottom: 16px;
}

.section-header-divider {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.section-header-title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}

/* Table styling with increased vertical spacing */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table thead {
  background: #f9f7f3;
}

.table th {
  padding: 16px 12px;
  text-align: left;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}

.table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background .2s ease;
}

.table tbody tr:hover {
  background: #faf8f5;
}

.table td {
  padding: 18px 12px;
  color: var(--ink);
}

.table .text-right {
  text-align: right;
}

.table .btn {
  margin-left: 8px;
}

.overflow-x-auto {
  overflow-x: auto;
}

.booking-history-filters { margin-bottom: 24px; padding: 20px; }
.booking-history-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.booking-history-filter-grid label { min-width: 0; }
.booking-history-filter-grid .label { display: block; margin-bottom: 6px; }
.booking-history-filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}
.booking-history-results-heading { margin-bottom: 12px; }
.booking-history-results-heading .section-title { padding: 0; }
.booking-history-table-wrap { padding: 8px 16px; }
.booking-history-table { min-width: 900px; }
.booking-history-notes-row td { padding-top: 0; color: var(--muted); }
.booking-history-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}
.allocation-date-filter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px;
}
.allocation-date-filter .label { display: block; margin-bottom: 6px; }
.allocation-date-filter-actions { display: flex; align-items: center; gap: 8px; }

/* Image upload and preview styles */
.image-upload-container {
  position: relative;
}

.file-upload-area {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 32px 24px;
  background: #fafaf8;
  text-align: center;
  cursor: pointer;
  transition: all .2s ease;
}

.file-upload-area:hover {
  border-color: var(--gold);
  background: #fff9f0;
}

.file-upload-area.drag-over {
  border-color: var(--gold);
  background: #fff9f0;
  box-shadow: inset 0 0 12px rgba(179, 138, 46, 0.15);
}

.file-upload-content {
  pointer-events: none;
}

.file-upload-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.file-upload-title {
  margin: 12px 0 6px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}

.file-upload-area p {
  margin: 6px 0;
  color: var(--ink);
  font-weight: 500;
}

.file-upload-description {
  color: var(--ink);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.file-upload-hint {
  color: var(--muted);
  font-size: .85rem;
  margin-top: 8px !important;
}

.image-preview {
  position: relative;
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: white;
}

.image-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: #f9f7f3;
  border-bottom: 1px solid var(--border);
}

.preview-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.image-preview img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  display: block;
}

.remove-image-btn {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #fee2e2;
  color: var(--danger);
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all .2s ease;
  padding: 0;
  flex-shrink: 0;
}

.remove-image-btn:hover {
  background: #fecaca;
  transform: scale(1.05);
}

.remove-image-btn svg {
  width: 16px;
  height: 16px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
}

.mt-2 {
  margin-top: 8px;
}

.branch-card {
  overflow: hidden;
}

@media (max-width: 900px) {
  .form-grid { grid-template-columns: 1fr; }
  .booking-history-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .allocation-date-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .allocation-date-filter-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .profile-grid { grid-template-columns: 1fr; }
  .stepper { justify-content: center; }
  .branch-card-content {
    flex-direction: column;
  }
  .branch-card-right {
    width: 100%;
    height: 180px;
  }
  .branch-discovery-body {
    padding: 24px 24px 28px;
  }
  .branch-discovery-body h2 {
    font-size: 1.25rem;
  }
  .branch-discovery-body p,
  .branch-discovery-body .muted,
  .branch-card-meta p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  .branch-card-actions {
    gap: 8px;
  }
}

@media (max-width: 1100px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-booking-card {
    padding: 18px;
  }
}

@media (max-width: 720px) {
  .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .booking-history-filter-grid { grid-template-columns: 1fr; }
  .booking-history-filter-actions { flex-direction: column-reverse; }
  .booking-history-filter-actions > * { width: 100%; text-align: center; }
  .allocation-date-filter { grid-template-columns: 1fr; }
  .allocation-date-filter-actions { grid-column: auto; flex-direction: column-reverse; }
  .allocation-date-filter-actions > * { width: 100%; text-align: center; }
}
