﻿:root {
  --crm-bg: #f7f7f9;
  --crm-surface: #ffffff;
  --crm-dark: #111111;
  --crm-yellow: #FFC107;
  --crm-border: #e9e9ee;
  --crm-muted: #68707d;
  --crm-success: #198754;
  --crm-danger: #dc3545;
  --crm-info: #0d6efd;
  --crm-warning: #ffc107;
}

* { box-sizing: border-box; }
.d-none { display: none !important; }

/* Login */
.auth-page { margin: 0; min-height: 100vh; font-family: 'Plus Jakarta Sans', sans-serif; color: #151515; background: #f6f6f3; }
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, .9fr) minmax(480px, 1.1fr); }
.auth-showcase { position: relative; overflow: hidden; padding: 42px 48px; color: #fff; background: #10100f; display: flex; flex-direction: column; }
.auth-showcase::before { content: ''; position: absolute; width: 520px; height: 520px; right: -230px; bottom: -180px; border-radius: 50%; background: #ffc107; opacity: .94; }
.auth-showcase::after { content: ''; position: absolute; width: 280px; height: 280px; right: -60px; bottom: 80px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.auth-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.auth-brand-mark { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 13px; background: #ffc107; color: #111; font-weight: 800; letter-spacing: -.03em; }
.auth-brand strong, .auth-brand small { display: block; }
.auth-brand small { color: #aaa; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; margin-top: 2px; }
.auth-showcase-copy { position: relative; z-index: 1; margin: auto 0; max-width: 540px; }
.auth-eyebrow { display: inline-block; color: #a77c00; font-size: .75rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 14px; }
.auth-showcase .auth-eyebrow { color: #ffc107; }
.auth-showcase h1 { font-size: clamp(2.6rem, 4.5vw, 4.8rem); line-height: 1.02; letter-spacing: -.055em; margin: 0 0 22px; }
.auth-showcase-copy p { max-width: 440px; margin: 0; color: #bdbdb7; font-size: 1.06rem; line-height: 1.75; }
.auth-showcase-footer { position: relative; z-index: 1; color: #73736f; font-size: .78rem; }
.auth-panel { padding: 48px; display: flex; align-items: center; justify-content: center; }
.auth-box { width: 100%; max-width: 440px; }
.auth-box h2 { margin: 0 0 10px; font-size: 2rem; letter-spacing: -.035em; }
.auth-description { color: #6f716e; margin: 0 0 30px; line-height: 1.6; }
.auth-mobile-brand { display: none; align-items: center; gap: 10px; font-weight: 800; margin-bottom: 42px; }
.auth-mobile-brand .auth-brand-mark { width: 38px; height: 38px; border-radius: 10px; }
.auth-alert { margin-bottom: 20px; padding: 13px 15px; border: 1px solid #f1b8b8; border-radius: 12px; background: #fff0f0; color: #9c2626; font-size: .9rem; }
.auth-form { display: grid; gap: 19px; }
.auth-field label { display: block; margin-bottom: 8px; font-size: .86rem; font-weight: 700; }
.auth-field input { width: 100%; min-height: 54px; padding: 0 16px; border: 1px solid #deded9; border-radius: 13px; background: #fff; color: #151515; font: inherit; outline: none; transition: border-color .15s, box-shadow .15s; }
.auth-field input:focus { border-color: #d1a100; box-shadow: 0 0 0 4px rgba(255,193,7,.14); }
.auth-field input::placeholder { color: #aaa; }
.auth-submit { min-height: 54px; margin-top: 5px; padding: 0 18px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 13px; background: #151515; color: #fff; font: inherit; font-weight: 800; cursor: pointer; transition: transform .15s, background .15s; }
.auth-submit:hover { background: #292929; transform: translateY(-1px); }
.auth-submit span { color: #ffc107; font-size: 1.2rem; }
.auth-help { margin: 24px 0 0; color: #91918c; text-align: center; font-size: .78rem; }
.barber-action-stat { background: #111; color: #fff; }
.barber-action-stat .label { color: #aaa; }
.barber-action-stat .value { color: #ffc107; font-size: 1.2rem; }
.barber-empty-state { padding: 60px 20px; text-align: center; border: 1px dashed #dedee3; border-radius: 14px; background: #fafafa; }
.barber-empty-state span { width: 48px; height: 48px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; background: #e8f6ed; color: #198754; font-size: 1.3rem; font-weight: 800; }
.barber-empty-state h4 { margin: 0 0 7px; font-size: 1.05rem; }
.barber-empty-state p { margin: 0; color: var(--crm-muted); }
.barber-time { display: inline-block; min-width: 62px; padding: 7px 9px; border-radius: 9px; background: #fff6d8; color: #755900; text-align: center; }
.barber-detail-item { height: 100%; padding: .85rem; border: 1px solid var(--crm-border); border-radius: 12px; background: #fafafa; }
.barber-detail-item span { display: block; margin-bottom: .25rem; color: var(--crm-muted); font-size: .78rem; }
.barber-detail-item strong { display: block; font-size: .94rem; overflow-wrap: anywhere; }
.barber-record-count { display: flex; justify-content: space-between; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--crm-border); }
.barber-record-count:last-child { border-bottom: 0; }
.barber-record-count strong { min-width: 32px; padding: .2rem .5rem; border-radius: 999px; background: #f1f1f3; text-align: center; }
.barber-danger-zone { border-color: #f2c2c7; background: #fffafb; }
body.crm-body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #f5f6f8;
  color: var(--crm-dark);
  overflow-x: hidden;
}

.crm-shell { display: flex; width: 100%; min-width: 0; min-height: 100vh; }
.crm-sidebar {
  flex: 0 0 264px;
  width: 264px;
  background: #fff;
  border-right: 1px solid var(--crm-border);
  padding: 1rem .9rem;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  z-index: 50;
  transition: width .24s ease, flex-basis .24s ease, padding .24s ease, transform .24s ease;
}
.crm-brand { min-width: 0; display:flex; gap:.7rem; align-items:center; padding: .2rem .25rem .75rem; border-bottom: 1px solid #f0f0f2; color: #111; text-decoration: none; }
.crm-logo {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 13px;
  background: #111; color: #ffd13d;
  display:flex; align-items:center; justify-content:center; overflow: hidden; font-weight:800; letter-spacing: -.03em;
  box-shadow: 0 7px 16px rgba(17,17,17,.14), inset 0 0 0 1px rgba(255,255,255,.08);
}
.crm-logo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.settings-logo-preview { width: 112px; height: 112px; display: grid; place-items: center; overflow: hidden; border: 1px solid #e1e2e5; border-radius: 20px; background: #111; color: #ffd13d; font-size: 1.65rem; font-weight: 800; box-shadow: 0 10px 24px rgba(17,17,17,.12); }
.settings-logo-preview img { width: 100%; height: 100%; display: block; object-fit: contain; background: #fff; }
.settings-page { display: grid; gap: 1rem; }
.settings-page-intro { padding: .1rem .15rem .35rem; }
.settings-page-intro > div { max-width: 720px; }
.settings-page-intro span,
.settings-section-head > span { display: block; margin-bottom: .3rem; color: #947000; font-size: .68rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.settings-page-intro h2 { margin: 0; font-size: 1.28rem; font-weight: 800; letter-spacing: -.025em; }
.settings-page-intro p { margin: .3rem 0 0; color: var(--crm-muted); font-size: .82rem; line-height: 1.55; }
.settings-overview-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .75fr); gap: 1rem; align-items: start; }
.settings-main-column { display: grid; gap: 1rem; min-width: 0; }
.settings-card { min-width: 0; padding: 1.2rem; }
.settings-section-head { margin-bottom: 1rem; padding-bottom: .9rem; border-bottom: 1px solid #ececf0; }
.settings-section-head h3 { margin: 0; font-size: 1.03rem; font-weight: 800; letter-spacing: -.018em; }
.settings-section-head p { max-width: 760px; margin: .3rem 0 0; color: var(--crm-muted); font-size: .78rem; line-height: 1.55; }
.settings-card .form-label { margin-bottom: .38rem; color: #30343a; font-size: .78rem; font-weight: 750; }
.settings-card .form-text { color: #858b95; font-size: .7rem; line-height: 1.5; }
.settings-card .btn { min-height: 40px; padding-inline: .95rem; border-radius: 10px; font-size: .8rem; font-weight: 750; }
.settings-logo-card { align-self: start; }
.settings-logo-area { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; padding: .85rem; border: 1px solid #ececf0; border-radius: 14px; background: #fafafa; }
.settings-logo-area .settings-logo-preview { flex: 0 0 92px; width: 92px; height: 92px; border-radius: 16px; box-shadow: 0 7px 18px rgba(17,17,17,.09); }
.settings-logo-note { min-width: 0; }
.settings-logo-note strong { display: block; font-size: .82rem; }
.settings-logo-note small { display: block; margin-top: .3rem; color: var(--crm-muted); font-size: .72rem; line-height: 1.5; }
.settings-whatsapp-card { padding: 1.25rem; }
.settings-section-head-wide { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.settings-field-block { height: 100%; padding: .9rem; border: 1px solid #ececf0; border-radius: 13px; background: #fafafa; }
.settings-subsection-title { display: flex; align-items: baseline; gap: .7rem; margin-top: .2rem; padding-top: .95rem; border-top: 1px solid #ececf0; }
.settings-subsection-title strong { font-size: .94rem; }
.settings-subsection-title span { color: var(--crm-muted); font-size: .74rem; }
.settings-message-field { height: 100%; padding: .9rem; border: 1px solid #ececf0; border-radius: 13px; background: #fafafa; }
.settings-message-field .form-label { display: block; margin-bottom: .15rem; font-size: .84rem; }
.settings-message-field .form-text { min-height: 2.1em; margin: 0 0 .55rem; }
.settings-message-field textarea { min-height: 166px; resize: vertical; background: #fff; font-size: .8rem; line-height: 1.55; }
.settings-save-row { padding-top: .2rem; }
@media (max-width: 1199.98px) {
  .settings-overview-grid { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
  .settings-card, .settings-whatsapp-card { padding: 1rem; }
  .settings-page-intro { padding-inline: 0; }
  .settings-logo-area { align-items: flex-start; }
  .settings-logo-area .settings-logo-preview { flex-basis: 76px; width: 76px; height: 76px; }
  .settings-subsection-title { display: block; }
  .settings-subsection-title span { display: block; margin-top: .2rem; }
  .settings-save-row .btn { width: 100%; }
}
.crm-brand-copy { min-width: 0; display: block; white-space: nowrap; transition: opacity .15s ease, width .2s ease; }
.crm-brand-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; font-size: .88rem; font-weight: 800; }
.crm-brand-copy small { display: block; margin-top: .1rem; color: var(--crm-muted); font-size: .7rem; }
.crm-menu { display:flex; flex-direction:column; gap:.2rem; }
.crm-menu-link {
  position: relative;
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: .72rem;
  text-decoration: none;
  color: #3e4249;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: .58rem .72rem;
  font-size: .84rem;
  font-weight: 650;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.crm-menu-link:hover { background: #f7f7f8; color: #111; }
.crm-menu-link.active {
  background: #fff9e8;
  border-color: #f3e1a6;
  color: #111;
  font-weight: 750;
}
.crm-menu-link.active::before { content: ''; position: absolute; left: -1px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 4px 4px 0; background: #d7a514; }
.crm-menu-icon { flex: 0 0 21px; width: 21px; height: 21px; display: inline-grid; place-items: center; color: #60656d; }
.crm-menu-icon svg { width: 20px; height: 20px; }
.crm-menu-link.active .crm-menu-icon { color: #9b7300; }
.crm-menu-label { min-width: 0; white-space: nowrap; transition: opacity .15s ease; }
.crm-logout-link { position: relative; min-height: 44px; margin-top: auto; display: flex; align-items: center; justify-content: center; gap: .65rem; padding: .6rem .75rem; border-radius: 11px; background: #202328; color: #fff; font-size: .82rem; font-weight: 700; text-decoration: none; transition: background .16s ease; }
.crm-logout-link:hover { background: #111; color: #fff; }
.crm-logout-link .crm-menu-icon { color: #ffd13d; }

.crm-main { flex: 1 1 auto; width: calc(100% - 264px); min-width: 0; transition: width .24s ease; }
.crm-topbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height: 72px;
  gap: 1rem;
  padding: .8rem 1.25rem;
  border-bottom: 1px solid var(--crm-border);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 30;
}
.crm-topbar-left { min-width: 0; display: flex; align-items: center; gap: .8rem; }
.crm-sidebar-toggle { flex: 0 0 40px; width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid #dedfe3; border-radius: 11px; background: #fff; color: #25282d; cursor: pointer; transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.crm-sidebar-toggle:hover { background: #fff9e8; border-color: #e7cf7f; }
.crm-sidebar-toggle svg { width: 20px; height: 20px; }
.crm-page-heading { min-width: 0; }
.crm-title { margin:0; font-size: 1.08rem; font-weight: 800; letter-spacing: -.02em; }
.crm-subtitle { margin: .08rem 0 0; color: var(--crm-muted); font-size: .76rem; }
.crm-user-pill {
  max-width: 240px;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: #f6f6f7;
  border: 1px solid #e6e6e9;
  color: #30343a;
  border-radius: 999px;
  padding: .38rem .65rem .38rem .42rem;
  font-weight: 700;
  font-size: .76rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.crm-user-icon { flex: 0 0 28px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #111; color: #ffd13d; }
.crm-user-icon svg { width: 15px; height: 15px; }
.crm-content { width: 100%; min-width: 0; padding: 1rem 1.25rem 1.7rem; }
.crm-content-inner { width: 100%; max-width: 1600px; margin: 0 auto; }
.crm-sidebar-overlay { display: none; }

@media (min-width: 992px) {
  .crm-shell.sidebar-collapsed .crm-sidebar { flex-basis: 78px; width: 78px; padding-inline: .65rem; }
  .crm-shell.sidebar-collapsed .crm-main { width: calc(100% - 78px); }
  .crm-shell.sidebar-collapsed .crm-brand { justify-content: center; padding-inline: 0; }
  .crm-shell.sidebar-collapsed .crm-brand-copy,
  .crm-shell.sidebar-collapsed .crm-menu-label { width: 0; opacity: 0; overflow: hidden; pointer-events: none; }
  .crm-shell.sidebar-collapsed .crm-menu-link,
  .crm-shell.sidebar-collapsed .crm-logout-link { justify-content: center; gap: 0; padding-inline: 0; }
  .crm-shell.sidebar-collapsed .crm-menu-link::after,
  .crm-shell.sidebar-collapsed .crm-logout-link::after { content: attr(data-tooltip); position: absolute; left: calc(100% + 12px); top: 50%; padding: .42rem .6rem; border-radius: 7px; background: #17191c; color: #fff; font-size: .72rem; font-weight: 650; white-space: nowrap; opacity: 0; visibility: hidden; transform: translate(4px,-50%); transition: opacity .14s ease, transform .14s ease; pointer-events: none; z-index: 1200; box-shadow: 0 8px 18px rgba(0,0,0,.16); }
  .crm-shell.sidebar-collapsed .crm-menu-link:hover::after,
  .crm-shell.sidebar-collapsed .crm-logout-link:hover::after { opacity: 1; visibility: visible; transform: translate(0,-50%); }
}

.crm-card {
  background: var(--crm-surface);
  border: 1px solid var(--crm-border);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(19,19,25,.06);
}
.crm-stat {
  display:block;
  text-decoration:none;
  padding: 1rem;
  color: inherit;
}
.crm-stat .label { color: var(--crm-muted); font-size: .85rem; }
.crm-stat .value { font-size: 1.45rem; font-weight: 800; }
.dashboard-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: .15rem 0 1rem; }
.dashboard-section-heading h3 { margin: 0 0 .2rem; font-size: 1.05rem; font-weight: 800; }
.dashboard-section-heading p { margin: 0; color: var(--crm-muted); font-size: .82rem; }
.dashboard-section-heading > span { color: var(--crm-muted); font-size: .8rem; font-weight: 600; }
.dashboard-stat-grid > div { display: flex; }
.dashboard-stat-card { position: relative; width: 100%; min-height: 144px; height: 100%; display: flex; align-items: flex-start; gap: .9rem; padding: 1.1rem; overflow: hidden; border: 1px solid #e5e6e9; border-radius: 16px; background: #fff; color: #111; text-decoration: none; box-shadow: 0 8px 22px rgba(22,24,29,.048); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.dashboard-stat-card::after { content: ''; position: absolute; right: -22px; bottom: -25px; width: 62px; height: 62px; border-radius: 50%; background: rgba(255,193,7,.045); }
.dashboard-stat-card:hover { color: #111; transform: translateY(-2px); border-color: #e5d18b; box-shadow: 0 13px 28px rgba(22,24,29,.082); }
.dashboard-stat-icon { flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: #f6f6f7; color: #202124; }
.dashboard-stat-icon svg { width: 22px; height: 22px; }
.dashboard-stat-copy { display: flex; min-width: 0; flex-direction: column; }
.dashboard-stat-label { color: #666d78; font-size: .78rem; font-weight: 700; }
.dashboard-stat-value { margin-top: .3rem; font-size: clamp(1.45rem, 2vw, 1.85rem); line-height: 1.1; letter-spacing: -.035em; overflow-wrap: anywhere; }
.dashboard-stat-meta { margin-top: .45rem; color: #9398a1; font-size: .72rem; font-weight: 600; }
.dashboard-stat-arrow { position: absolute; right: 1rem; top: 1rem; color: #babdc3; font-size: 1.05rem; transition: transform .18s ease, color .18s ease; }
.dashboard-stat-card:hover .dashboard-stat-arrow { color: #a77d00; transform: translateX(3px); }
.dashboard-stat-highlight .dashboard-stat-icon { background: #fff4c8; color: #8a6900; }
.dashboard-stat-highlight::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: #f1be21; }
.dashboard-detail-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.dashboard-detail-summary .crm-card { padding: .9rem 1rem; }
.dashboard-detail-summary span { display: block; color: var(--crm-muted); font-size: .76rem; }
.dashboard-detail-summary strong { display: block; margin-top: .2rem; font-size: 1.25rem; }
.dashboard-back-link { display: inline-flex; align-items: center; gap: .35rem; margin-bottom: .8rem; color: #45484e; font-size: .84rem; font-weight: 700; text-decoration: none; }
.dashboard-back-link:hover { color: #9a7300; }
.dashboard-empty { padding: 2.5rem 1rem; color: var(--crm-muted); text-align: center; }
.dashboard-view-tabs { display: inline-flex; gap: .25rem; padding: .25rem; border: 1px solid var(--crm-border); border-radius: 12px; background: #fff; }
.dashboard-view-tabs a { padding: .5rem .9rem; border-radius: 9px; color: #626873; font-size: .82rem; font-weight: 700; text-decoration: none; }
.dashboard-view-tabs a.active { background: #111; color: #fff; }
.dashboard-period-list { display: grid; gap: 0; max-height: 360px; overflow-y: auto; }
.dashboard-period-list > div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .58rem 0; border-bottom: 1px solid var(--crm-border); font-size: .86rem; }
.dashboard-period-list > div:last-child { border-bottom: 0; }
.admin-program-header { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:.85rem; padding:.15rem; }
.admin-program-header h2 { margin:0 0 .18rem; color:#17191c; font-size:1.05rem; font-weight:800; }
.admin-program-header p { margin:0; color:#777d86; font-size:.75rem; }
.admin-date-nav { display:flex; align-items:center; gap:.35rem; }
.admin-date-nav a { min-height:38px; padding:.5rem .7rem; display:inline-flex; align-items:center; justify-content:center; border:1px solid #dedfe2; border-radius:9px; background:#fff; color:#30343a; font-size:.72rem; font-weight:750; text-decoration:none; }
.admin-date-nav a:hover { border-color:#d8bd5c; color:#17191c; }
.admin-date-nav a.today { border-color:#d9b83d; background:#fffaeb; }
.admin-appointment-panel { padding:.85rem; }
.admin-appointment-panel-head { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.15rem .1rem .8rem; }
.admin-appointment-panel-head h3 { margin:0 0 .15rem; font-size:.95rem; font-weight:800; }
.admin-appointment-panel-head p { margin:0; color:#858a93; font-size:.7rem; }
.admin-appointment-list { display:grid; gap:.55rem; }
.admin-appointment-card { position:relative; min-width:0; display:grid; grid-template-columns:105px minmax(180px,1.05fr) minmax(210px,1.35fr) auto; align-items:center; gap:1rem; padding:.85rem .9rem; border:1px solid #e7e7e9; border-left:3px solid #e2b32a; border-radius:12px; background:#fff; color:#17191c; text-decoration:none; transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease; }
.admin-appointment-card:hover { border-color:#dbc66f; color:#17191c; transform:translateY(-1px); box-shadow:0 8px 18px rgba(20,23,28,.06); }
.admin-appointment-card.status-completed { border-left-color:#64a77d; background:#fbfefc; }
.admin-appointment-card.status-cancelled { border-left-color:#dc7777; background:#fffafa; }
.admin-appointment-card.status-past { border-left-color:#aeb2b8; background:#fafafa; }
.admin-appointment-card.status-unpaid { border-left-color:#dc8d36; background:#fffaf5; }
.admin-appointment-card.status-progress { border-left-color:#7892c5; }
.admin-appointment-time { min-width:0; padding-right:.9rem; border-right:1px solid #e8e8ea; }
.admin-appointment-time > span { display:block; margin-bottom:.3rem; color:#8a8f97; font-size:.64rem; font-weight:700; white-space:nowrap; }
.admin-appointment-time strong { display:block; font-size:1.45rem; line-height:1; letter-spacing:-.035em; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.admin-appointment-time strong.is-unscheduled { font-size:.95rem; letter-spacing:-.015em; }
.admin-appointment-time small { display:block; margin-top:.35rem; color:#777d86; font-size:.7rem; }
.admin-appointment-customer, .admin-appointment-service { min-width:0; }
.admin-appointment-customer strong { display:block; overflow:hidden; font-size:.9rem; text-overflow:ellipsis; white-space:nowrap; }
.admin-appointment-customer small { display:block; margin-top:.15rem; color:#777d86; font-size:.7rem; }
.admin-appointment-service strong { display:block; overflow:hidden; color:#34373c; font-size:.82rem; text-overflow:ellipsis; white-space:nowrap; }
.admin-appointment-service small { display:block; margin-top:.22rem; color:#777d86; font-size:.69rem; }
.admin-appointment-service small b { color:#b48708; }
.admin-appointment-service em { display:block; margin-top:.15rem; color:#969ba3; font-size:.64rem; font-style:normal; }
.admin-appointment-state { display:flex; align-items:center; justify-content:flex-end; gap:.55rem; }
.admin-appointment-state > span { padding:.36rem .58rem; border-radius:999px; background:#fff0c1; color:#765800; font-size:.67rem; font-weight:800; white-space:nowrap; }
.admin-appointment-state > i { color:#999da3; font-size:1.35rem; font-style:normal; line-height:1; }
.status-completed .admin-appointment-state > span { background:#e8f5ed; color:#277047; }
.status-cancelled .admin-appointment-state > span { background:#fdeaea; color:#a33636; }
.status-past .admin-appointment-state > span { background:#eceef0; color:#666c73; }
.status-progress .admin-appointment-state > span { background:#e9eef9; color:#405b93; }
.status-unpaid .admin-appointment-state > span { background:#fff0dc; color:#9a571d; }
.admin-appointment-empty { padding:2.5rem 1rem; color:#858a93; text-align:center; }
.admin-appointment-empty strong { display:block; color:#4a4f57; font-size:.88rem; }
.admin-appointment-empty p { margin:.25rem 0 0; font-size:.72rem; }
.admin-appointment-pagination { padding:.9rem .1rem .1rem; }
.cash-page-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:1rem; margin:.15rem 0 1rem; }
.cash-page-heading span { color:#9b7707; font-size:.68rem; font-weight:800; letter-spacing:.075em; text-transform:uppercase; }
.cash-page-heading h3 { margin:.18rem 0 0; color:#17191c; font-size:1.12rem; font-weight:800; }
.cash-page-heading small { color:#777d86; font-size:.74rem; }
.cash-summary-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.8rem; margin-bottom:1rem; }
.cash-summary-grid.is-single { grid-template-columns:minmax(0,1fr); }
.cash-summary-card { position:relative; display:block; min-width:0; padding:1.15rem 1.2rem; overflow:hidden; border:1px solid #e5e6e9; border-radius:15px; background:#fff; color:inherit; text-decoration:none; box-shadow:0 8px 22px rgba(22,24,29,.045); transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.cash-summary-card:hover { border-color:#d8bd62; color:inherit; box-shadow:0 11px 28px rgba(22,24,29,.075); transform:translateY(-1px); }
.cash-summary-card:focus-visible { outline:3px solid rgba(224,179,41,.25); outline-offset:2px; }
.cash-summary-card::before { content:''; position:absolute; inset:0 auto 0 0; width:3px; background:#e0b329; }
.cash-summary-card > span { display:block; color:#656b75; font-size:.77rem; font-weight:700; }
.cash-summary-card > strong { display:block; margin:.4rem 0 .3rem; color:#17191c; font-size:clamp(1.45rem,2.4vw,1.9rem); line-height:1.1; letter-spacing:-.04em; overflow-wrap:anywhere; }
.cash-summary-card > small { color:#969ba3; font-size:.7rem; }
.cash-summary-card.is-unpaid::before { background:#202226; }
.cash-summary-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:1rem; margin:0 0 .55rem; padding:0 .15rem; }
.cash-summary-heading strong { color:#24272b; font-size:.86rem; }
.cash-summary-heading small { color:#8e939b; font-size:.7rem; }
.cash-summary-card.is-income::before { background:#7fa58c; }
.cash-summary-card.is-expense::before { background:#c08a8a; }
.cash-summary-card.is-balance::before { background:#d4ad35; }
.cash-filter-form { padding:.8rem; }
.cash-filter-main { display:grid; grid-template-columns:minmax(230px,1.8fr) repeat(2,minmax(145px,1fr)) 105px; gap:.65rem; align-items:end; }
.cash-filter-main > div, .cash-custom-dates > div { min-width:0; }
.cash-filter-form .form-label { margin-bottom:.3rem; color:#646a73; font-size:.68rem; font-weight:700; }
.cash-filter-form .form-control, .cash-filter-form .form-select, .cash-filter-form .btn { min-height:42px; border-radius:10px; font-size:.8rem; }
.cash-filter-submit { align-self:end; }
.cash-custom-dates { display:grid; grid-template-columns:repeat(2,minmax(180px,260px)); gap:.65rem; margin-top:.7rem; padding-top:.7rem; border-top:1px solid #ececef; }
.cash-custom-dates.is-hidden { display:none; }
.cash-entry-card { margin-bottom:1rem; padding:1rem; }
.cash-entry-head { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; margin-bottom:.8rem; }
.cash-entry-head span { color:#9b7707; font-size:.65rem; font-weight:800; letter-spacing:.07em; text-transform:uppercase; }
.cash-entry-head h6 { margin:.15rem 0 .12rem; font-weight:800; }
.cash-entry-head p { margin:0; color:#8a9098; font-size:.72rem; }
.cash-entry-form { display:grid; grid-template-columns:minmax(105px,.65fr) minmax(240px,1.8fr) minmax(135px,.8fr) minmax(155px,1fr) 120px; gap:.65rem; align-items:end; }
.cash-entry-form > div { min-width:0; }
.cash-entry-form .form-label { margin-bottom:.3rem; color:#646a73; font-size:.68rem; font-weight:700; }
.cash-entry-form .form-control, .cash-entry-form .form-select, .cash-entry-form .btn, .cash-entry-form .input-group-text { min-height:42px; border-radius:10px; font-size:.8rem; }
.cash-entry-form .input-group .form-control { border-radius:10px 0 0 10px; }
.cash-entry-form .input-group-text { border-radius:0 10px 10px 0; }
.cash-movements-table { margin-top:1rem; border:1px solid #ececef; border-radius:12px; }
.cash-movements-table th, .cash-movements-table td { padding:.7rem .75rem; font-size:.76rem; vertical-align:middle; }
.cash-movement-status { display:inline-flex; align-items:center; min-height:24px; padding:.24rem .55rem; border-radius:999px; font-size:.68rem; font-weight:750; }
.cash-movement-status.is-income { background:#edf6f0; color:#356e4d; }
.cash-movement-status.is-expense { background:#f9eeee; color:#955050; }
.cash-income-amount { color:#356e4d; }
.cash-expense-amount { color:#955050; }
.barber-cash-entry { margin-bottom:1rem; }
.barber-cash-entry-form { display:grid; grid-template-columns:minmax(110px,.65fr) minmax(240px,1.8fr) minmax(140px,.8fr) 130px; gap:.7rem; align-items:end; }
.barber-cash-entry-form label { display:grid; gap:.35rem; min-width:0; color:#5f646c; font-size:.72rem; font-weight:750; }
.barber-cash-entry-form input, .barber-cash-entry-form select { width:100%; min-height:46px; padding:.72rem .85rem; border:1px solid #dde0e4; border-radius:11px; background:#fff; color:#202226; font:inherit; font-size:.82rem; outline:none; }
.barber-cash-entry-form input:focus, .barber-cash-entry-form select:focus { border-color:#d4ad35; box-shadow:0 0 0 3px rgba(212,173,53,.12); }
.barber-cash-entry-form .barber-primary-button { min-height:46px; }
.barber-amount-input { display:flex; align-items:stretch; }
.barber-amount-input input { border-radius:11px 0 0 11px; }
.barber-amount-input span { display:grid; place-items:center; min-width:42px; border:1px solid #dde0e4; border-left:0; border-radius:0 11px 11px 0; background:#f7f7f8; color:#8b6900; font-weight:800; }
.barber-cash-movements { margin-top:1rem; border:1px solid #ececef; border-radius:12px; }
.barber-cash-type { display:inline-flex; min-height:24px; align-items:center; padding:.24rem .55rem; border-radius:999px; font-size:.68rem; font-weight:750; }
.barber-cash-type.income { background:#edf6f0; color:#356e4d; }
.barber-cash-type.expense { background:#f9eeee; color:#955050; }
.cash-records-card { overflow:hidden; padding:0; }
.cash-records-head { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1rem 1.1rem .65rem; }
.cash-records-head h6 { margin:0 0 .15rem; font-weight:800; }
.cash-records-head p { margin:0; color:#8a9099; font-size:.72rem; }
.cash-desktop-table { display:block; }
.cash-table thead th { padding:.75rem .8rem; font-size:.69rem; white-space:nowrap; }
.cash-table td { padding:.8rem; font-size:.79rem; }
.cash-date { display:block; color:#464b53; font-size:.78rem; font-weight:700; white-space:nowrap; }
.cash-time { display:block; margin-top:.15rem; color:#969ba3; font-size:.68rem; font-weight:600; }
.cash-customer-link { color:#202226; font-weight:750; text-decoration:none; }
.cash-customer-link:hover { color:#8b6900; text-decoration:underline; }
.cash-receipt-link { color:#202226; text-decoration:none; }
.cash-receipt-link:hover { color:#8b6900; text-decoration:underline; }
.cash-status { display:inline-flex; align-items:center; min-height:25px; padding:.26rem .55rem; border-radius:999px; background:#f0f1f3; color:#626871; font-size:.66rem; font-weight:750; white-space:nowrap; }
.cash-status.is-paid { background:#eaf5ee; color:#2c7048; }
.cash-status.is-unpaid { background:#f9ecec; color:#985050; }
.payment-status-badge { display:inline-flex; align-items:center; justify-content:center; min-height:24px; padding:.24rem .58rem; border:1px solid transparent; border-radius:999px; background:#f1f2f4; color:#656b73; font-size:.72rem; font-weight:700; line-height:1; white-space:nowrap; }
.payment-status-badge.is-paid { border-color:#d8eadf; background:#edf6f0; color:#356e4d; }
.payment-status-badge.is-unpaid { border-color:#eddada; background:#f9eeee; color:#955050; }
.appointment-status-text { white-space:nowrap; }
.status-separator { margin:0 .35rem; color:#a3a7ad; }
.cash-pagination { padding:.9rem 1rem 1rem; }
.cash-mobile-list { display:none; gap:.7rem; padding:0 .85rem .85rem; }
.cash-mobile-card { padding:.9rem; border:1px solid #e7e8eb; border-radius:13px; background:#fcfcfd; }
.cash-mobile-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:.75rem; padding-bottom:.65rem; border-bottom:1px solid #ececef; }
.cash-mobile-card-head > div { min-width:0; }
.cash-mobile-card-head .cash-customer-link { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cash-mobile-card-head small { display:block; margin-top:.22rem; color:#8a9098; font-size:.68rem; }
.cash-mobile-card dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.55rem 1rem; margin:.75rem 0 0; }
.cash-mobile-card dl > div { min-width:0; }
.cash-mobile-card dt { margin-bottom:.12rem; color:#8b9098; font-size:.64rem; font-weight:650; }
.cash-mobile-card dd { margin:0; color:#25282c; font-size:.75rem; font-weight:700; overflow-wrap:anywhere; }
.dashboard-welcome { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.25rem; padding: .35rem .15rem; }
.dashboard-welcome h2 { margin: 0 0 .3rem; color: #15171a; font-size: clamp(1.25rem, 2vw, 1.65rem); font-weight: 800; letter-spacing: -.025em; }
.dashboard-welcome p { margin: 0; color: var(--crm-muted); font-size: .88rem; }
.dashboard-welcome time { flex: 0 0 auto; padding: .65rem .85rem; border: 1px solid var(--crm-border); border-radius: 11px; background: #fff; color: #555b65; font-size: .8rem; font-weight: 700; box-shadow: 0 6px 16px rgba(22,24,29,.035); }
.dashboard-panel { margin-bottom: 1rem; padding: 1.25rem; border: 1px solid #e5e6e9; border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(22,24,29,.045); }
.dashboard-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.dashboard-panel-head h3 { margin: .15rem 0 0; color: #17191c; font-size: 1.05rem; font-weight: 800; letter-spacing: -.015em; }
.dashboard-eyebrow { color: #9b7707; font-size: .68rem; font-weight: 800; letter-spacing: .075em; text-transform: uppercase; }
.dashboard-primary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.dashboard-primary-card { min-width: 0; padding: 1.15rem; border: 1px solid #e7e8eb; border-radius: 14px; background: #fbfbfc; color: #17191c; text-decoration: none; transition: border-color .18s ease, box-shadow .18s ease; }
.dashboard-primary-card:hover { border-color: #d6bc65; color: #17191c; box-shadow: 0 8px 20px rgba(22,24,29,.055); }
.dashboard-primary-card > span, .dashboard-finance-card > span, .dashboard-secondary-grid a > span { display: block; color: #656b75; font-size: .78rem; font-weight: 700; }
.dashboard-primary-card > strong { display: block; margin: .55rem 0 .35rem; font-size: clamp(2rem, 3.2vw, 2.75rem); line-height: 1; letter-spacing: -.055em; }
.dashboard-primary-card > small, .dashboard-finance-card > small, .dashboard-secondary-grid a > small { color: #9297a0; font-size: .72rem; font-weight: 600; }
.dashboard-primary-total { border-color: #22252a; background: #202226; color: #fff; }
.dashboard-primary-total:hover { border-color: #202226; color: #fff; box-shadow: 0 10px 24px rgba(17,18,20,.14); }
.dashboard-primary-total > span { color: #d7d8da; }
.dashboard-primary-total > small { color: #b4b7bc; }
.dashboard-progress-block { margin-top: .9rem; padding: 1rem 1.1rem; border: 1px solid #ececef; border-radius: 14px; background: #fff; }
.dashboard-progress-title, .dashboard-progress-label { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.dashboard-progress-title { margin-bottom: .9rem; }
.dashboard-progress-title h4 { margin: 0; color: #202226; font-size: .86rem; font-weight: 800; }
.dashboard-progress-title > span { color: #969ba4; font-size: .7rem; font-weight: 600; }
.dashboard-progress-row + .dashboard-progress-row { margin-top: .8rem; }
.dashboard-progress-label { margin-bottom: .35rem; color: #676d76; font-size: .73rem; font-weight: 700; }
.dashboard-progress-label strong { color: #24272b; }
.dashboard-progress-track { height: 7px; overflow: hidden; border-radius: 99px; background: #eceef0; }
.dashboard-progress-track span { display: block; height: 100%; border-radius: inherit; }
.dashboard-progress-track .is-completed { background: #202226; }
.dashboard-progress-track .is-pending { background: #e6b82d; }
.dashboard-progress-track .is-unpaid { background: #a97818; }
.dashboard-finance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.dashboard-finance-card { position: relative; min-width: 0; padding: 1.2rem 1.25rem 1.15rem 1.45rem; overflow: hidden; border: 1px solid #e7e8eb; border-radius: 14px; background: #fbfbfc; color: #17191c; text-decoration: none; }
.dashboard-finance-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: #e2b528; }
.dashboard-finance-card:hover { color: #17191c; border-color: #d6bc65; }
.dashboard-finance-card > strong { display: block; margin: .45rem 0 .3rem; font-size: clamp(1.55rem, 2.5vw, 2rem); line-height: 1.1; letter-spacing: -.04em; overflow-wrap: anywhere; }
.dashboard-annual-panel { padding:1.35rem; }
.dashboard-annual-head { display:flex; align-items:center; justify-content:space-between; gap:1.25rem; padding-bottom:1.1rem; border-bottom:1px solid #ececef; }
.dashboard-annual-head h3 { margin:.18rem 0 .25rem; color:#17191c; font-size:1.15rem; font-weight:800; letter-spacing:-.02em; }
.dashboard-annual-head p { margin:0; color:#858b94; font-size:.76rem; }
.dashboard-annual-total { display:grid; grid-template-columns:auto auto; align-items:baseline; gap:.1rem .5rem; min-width:150px; padding:.75rem 1rem; border:1px solid #dedfe2; border-radius:13px; background:#f8f8f9; }
.dashboard-annual-total span { grid-column:1 / -1; color:#777d86; font-size:.67rem; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }
.dashboard-annual-total strong { color:#181a1d; font-size:1.75rem; line-height:1; letter-spacing:-.05em; }
.dashboard-annual-total small { color:#92979f; font-size:.69rem; font-weight:650; }
.dashboard-annual-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.8rem; margin-top:1rem; }
.dashboard-annual-card { position:relative; display:grid; grid-template-columns:44px minmax(0,1fr) auto; align-items:center; gap:.85rem; min-width:0; padding:1rem; overflow:hidden; border:1px solid #e4e5e8; border-radius:14px; background:#fbfbfc; color:#1b1d20; text-decoration:none; transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.dashboard-annual-card::before { content:''; position:absolute; inset:0 auto 0 0; width:3px; background:#202226; }
.dashboard-annual-card:hover { border-color:#d3bd70; color:#1b1d20; box-shadow:0 10px 24px rgba(22,24,29,.065); transform:translateY(-1px); }
.dashboard-annual-card:focus-visible { outline:3px solid rgba(224,179,41,.25); outline-offset:2px; }
.dashboard-annual-card.is-completed { border-color:#dce4de; background:#fbfdfb; color:#1b1d20; box-shadow:0 8px 20px rgba(31,67,43,.04); }
.dashboard-annual-card.is-completed::before { background:#6f927b; }
.dashboard-annual-card.is-completed:hover { border-color:#a9c0af; color:#1b1d20; box-shadow:0 11px 25px rgba(31,67,43,.08); }
.dashboard-annual-card.is-pending::before { background:#e2b629; }
.dashboard-annual-card.is-unpaid::before { background:#a77a21; }
.dashboard-annual-icon { display:grid; place-items:center; width:44px; height:44px; border-radius:12px; background:#f0f1f3; color:#34373c; }
.dashboard-annual-icon svg { width:22px; height:22px; }
.dashboard-annual-card.is-completed .dashboard-annual-icon { background:#edf5ef; color:#427154; }
.dashboard-annual-copy { min-width:0; }
.dashboard-annual-copy > span { display:block; color:#6f757e; font-size:.72rem; font-weight:750; }
.dashboard-annual-copy > strong { display:block; margin:.22rem 0 .18rem; font-size:1.7rem; line-height:1; letter-spacing:-.045em; }
.dashboard-annual-copy > small { display:block; color:#999ea6; font-size:.65rem; font-weight:600; }
.dashboard-annual-card.is-completed .dashboard-annual-copy > span { color:#63736a; }
.dashboard-annual-card.is-completed .dashboard-annual-copy > small { color:#929b95; }
.dashboard-annual-rate { align-self:start; padding:.3rem .5rem; border-radius:999px; background:#f0f1f3; color:#5e646c; font-size:.67rem; font-weight:800; }
.dashboard-annual-card.is-completed .dashboard-annual-rate { background:#eaf4ed; color:#3f6d50; }
.dashboard-annual-card.is-pending .dashboard-annual-rate { background:#fff4cf; color:#765900; }
.dashboard-annual-card.is-unpaid .dashboard-annual-rate { background:#f6edda; color:#7c5a18; }
.dashboard-annual-distribution { margin-top:1rem; padding:1rem; border:1px solid #e9eaec; border-radius:14px; background:#fff; }
.dashboard-annual-distribution-head { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:.75rem; }
.dashboard-annual-distribution-head strong { color:#292c30; font-size:.79rem; }
.dashboard-annual-distribution-head span { color:#969ba3; font-size:.68rem; font-weight:600; }
.dashboard-annual-track { display:flex; width:100%; height:9px; overflow:hidden; border-radius:999px; background:#edeef0; }
.dashboard-annual-track span { display:block; height:100%; }
.dashboard-annual-track .is-completed, .dashboard-annual-legend i.is-completed { background:#6f927b; }
.dashboard-annual-track .is-pending, .dashboard-annual-legend i.is-pending { background:#e2b629; }
.dashboard-annual-track .is-unpaid, .dashboard-annual-legend i.is-unpaid { background:#a77a21; }
.dashboard-annual-legend { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.7rem; margin-top:.8rem; }
.dashboard-annual-legend > span { display:flex; align-items:center; gap:.4rem; min-width:0; color:#737983; font-size:.68rem; font-weight:650; }
.dashboard-annual-legend i { flex:0 0 auto; width:8px; height:8px; border-radius:50%; }
.dashboard-annual-legend strong { margin-left:auto; color:#282b2f; font-size:.7rem; }
.dashboard-secondary-panel { padding-bottom: 1.1rem; }
.dashboard-secondary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.dashboard-secondary-grid a { padding: .85rem 1rem; border: 1px solid #ececef; border-radius: 12px; background: #fcfcfd; color: #202226; text-decoration: none; }
.dashboard-secondary-grid a:hover { color: #202226; border-color: #d9dadd; }
.dashboard-secondary-grid a > strong { display: block; margin: .35rem 0 .2rem; font-size: 1.3rem; line-height: 1; }
.crm-time-badge, .barber-time { display: inline-flex; align-items: center; justify-content: center; min-width: 58px; padding: .35rem .55rem; border: 1px solid #2a2a2a; border-radius: 9px; background: #151515; color: #ffd24a; font-size: .84rem; font-weight: 800; line-height: 1; letter-spacing: .035em; font-variant-numeric: tabular-nums; white-space: nowrap; box-shadow: 0 3px 8px rgba(0,0,0,.1); }
.crm-time-separator { margin: 0 .25rem; color: #9a9da4; font-weight: 700; }
.crm-date-text { display: inline-block; margin-right: .4rem; color: #4f545d; font-size: .83rem; font-weight: 650; white-space: nowrap; }
.crm-body input[type='time'], .public-booking-page input[type='time'] { font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .035em; }
.crm-body input[type='time']:focus { border-color: #c79a10; box-shadow: 0 0 0 .2rem rgba(255,193,7,.14); }
.leave-list-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.leave-list-info { display: flex; align-items: center; flex-wrap: wrap; gap: .15rem; }
.leave-list-actions { display: flex; align-items: center; gap: .4rem; }
.crm-alert { border-radius: 12px; }

.table.crm-table thead th {
  border-bottom: 1px solid var(--crm-border);
  color: var(--crm-muted);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.table.crm-table td, .table.crm-table th { vertical-align: middle; }

.crm-filter {
  background: var(--crm-surface);
  border: 1px solid var(--crm-border);
  border-radius: 14px;
  padding: .85rem;
  margin-bottom: .9rem;
}

.form-control, .form-select, .btn {
  min-height: 46px;
  border-radius: 12px;
}
.btn-warning { background: var(--crm-yellow); border-color: var(--crm-yellow); color: #111; font-weight: 700; }
.btn-warning:hover { background: #ffca2f; border-color: #ffca2f; color: #111; }

.badge.crm-badge { border-radius: 999px; padding: .45rem .7rem; font-size: .72rem; }
.crm-clickable { text-decoration: none; color: inherit; }
.crm-clickable:hover { transform: translateY(-1px); }
.crm-clickable .crm-card { transition: transform .15s ease, box-shadow .15s ease; }
.crm-clickable:hover .crm-card { box-shadow: 0 14px 30px rgba(17,17,17,.12); }

.crm-pagination .page-link { border-radius: 10px; margin-right: .35rem; border-color: var(--crm-border); color: #111; }
.crm-pagination .page-item.active .page-link { background: #111; border-color: #111; color: #fff; }

.chart-wrap { padding: 1rem; }

.appointment-create { position: relative; }
.appointment-simple-shell {
  background: linear-gradient(180deg, #fffdf7 0%, #fff 100%);
  border: 1px solid #eee2bf;
  max-width: 760px;
  margin: 0 auto;
}
.appointment-simple-header h1,
.appointment-simple-header h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: #111;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.appointment-simple-header p {
  color: #4f4a35;
  font-weight: 600;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.appointment-simple-header p::after {
  content: '';
  display: block;
  width: 92px;
  height: 4px;
  border-radius: 999px;
  background: #c6a432;
  margin-top: .45rem;
}
.booking-confirm-wrap {
  border: 1px solid #f0e4ba;
  background: #fff9e8;
  border-radius: 12px;
  padding: .8rem .9rem;
}
.customer-match-card {
  margin-top: .35rem;
  border: 1px solid #a7d6b3;
  border-radius: 10px;
  background: #e9f7ef;
  padding: .5rem .65rem;
  display: flex;
  flex-direction: column;
  gap: .05rem;
}
.customer-match-card strong {
  color: #1f6f46;
  font-size: .78rem;
  line-height: 1.35;
}
.customer-match-card span {
  color: #215f3f;
  font-size: .94rem;
  font-weight: 700;
}
#customerLookupInfo {
  font-size: .74rem;
  color: #6c685b !important;
}

.booking-total-card {
  border: 1px solid #e4d8b2;
  border-radius: 12px;
  background: #fff9e8;
  padding: .75rem .85rem;
}

.booking-total-row {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .4rem;
  color: #1f1f1f;
}

.booking-total-row:last-child {
  margin-bottom: 0;
}

.booking-total-row span {
  color: #3a3627;
}

.booking-total-row strong {
  color: #111;
  text-align: right;
}

.booking-total-amount strong {
  font-size: 1.1rem;
  font-weight: 800;
}
.customer-search-results {
  position: absolute;
  z-index: 40;
  width: calc(100% - 2rem);
  background: #fff;
  border: 1px solid var(--crm-border);
  border-radius: 12px;
  box-shadow: 0 12px 22px rgba(17,17,17,.08);
  max-height: 260px;
  overflow-y: auto;
}
.customer-search-item {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .7rem .85rem;
  text-align: left;
}
.customer-search-item:hover { background: #fff9e9; }
.customer-search-item small { color: var(--crm-muted); }

.service-modal-item {
  border: 1px solid var(--crm-border);
  border-radius: 12px;
  padding: .7rem;
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  cursor: pointer;
}
.service-modal-item small { display: block; color: var(--crm-muted); }

.service-modal-card {
  border: 1px solid var(--crm-border);
  border-radius: 12px;
  padding: .65rem;
  display: grid;
  grid-template-columns: auto 56px 1fr;
  gap: .65rem;
  align-items: center;
  cursor: pointer;
}
.service-modal-card input { margin-top: 2px; }
.service-modal-card img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  border: 1px solid var(--crm-border);
  object-fit: cover;
}
.service-modal-card small { display: block; color: var(--crm-muted); }

.personnel-card {
  width: 100%;
  border: 1px solid var(--crm-border);
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .65rem;
  text-align: left;
}
.personnel-card:hover { background: #fff9e9; }
.personnel-card img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--crm-border);
  object-fit: cover;
}
.personnel-card small { display: block; color: var(--crm-muted); }
.personnel-card.inactive { opacity: .6; }
.personnel-card.selected,
.inline-personnel-card.selected {
  border-color: #ffd447;
  background: #111;
  color: #ffd447;
}
.personnel-card.selected small,
.inline-personnel-card.selected small { color: #ffe7a3; }

.stacked-card-list {
  display: grid;
  gap: .55rem;
}

.service-inline-card {
  border: 1px solid var(--crm-border);
  border-radius: 12px;
  padding: .65rem;
  display: grid;
  grid-template-columns: auto 64px 1fr;
  gap: .65rem;
  align-items: center;
  cursor: pointer;
  background: #fff;
}
.service-inline-card input { margin-top: 2px; }
.service-inline-card img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  border: 1px solid var(--crm-border);
  object-fit: cover;
}
.service-inline-card small {
  display: block;
  color: var(--crm-muted);
}
.service-inline-card.selected {
  border-color: #ffd447;
  background: #fff8de;
}

.appointment-simple-shell .form-control,
.appointment-simple-shell .form-select,
.public-booking-wrap .form-control,
.public-booking-wrap .form-select {
  border-radius: 14px;
  border-color: #e9dfbf;
  background: #fffdf7;
}

.appointment-simple-shell .btn-warning,
.public-booking-wrap .btn-warning {
  min-height: 50px;
  font-weight: 800;
  border-radius: 12px;
}

.selected-personnel-card {
  border: 1px dashed var(--crm-border);
  border-radius: 12px;
  min-height: 72px;
  padding: .55rem;
  background: #fff;
}
.selected-personnel-inner {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.selected-personnel-inner img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--crm-border);
  object-fit: cover;
}
.selected-personnel-inner small { display: block; color: var(--crm-muted); }
.barber-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid #222;
  background: #111;
  color: #ffc107;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 52px;
  overflow: hidden;
}
.barber-avatar img {
  display: none;
  width: 52px;
  height: 52px;
  object-fit: cover;
}
.barber-avatar.has-photo {
  border-color: var(--crm-border);
  background: #fff;
  color: #111;
}
.barber-avatar.has-photo img {
  display: block;
}
.barber-avatar.has-photo .barber-avatar-fallback {
  display: none;
}
.barber-avatar-fallback {
  font-size: 1.15rem;
  line-height: 1;
}

.appointment-summary-card {
  position: sticky;
  top: 88px;
}
.summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: .45rem;
  gap: .5rem;
}
.summary-row span { color: var(--crm-muted); font-size: .86rem; }
.summary-service-list {
  min-height: 36px;
  color: #343a40;
  font-size: .9rem;
}
.summary-personnel-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .65rem;
}
.summary-personnel-item img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--crm-border);
  object-fit: cover;
}
.summary-personnel-item small { display: block; color: var(--crm-muted); }

.selected-services-summary {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  min-height: 32px;
}
.service-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ffe3a2;
  background: #fff9e9;
  border-radius: 999px;
  padding: .3rem .7rem;
  font-size: .84rem;
}

.slot-legend { display: flex; flex-wrap: wrap; gap: .45rem; }
.slot-pill {
  border-radius: 999px;
  padding: .22rem .65rem;
  font-size: .76rem;
  font-weight: 700;
}
.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .4rem;
}
.slot-btn {
  border: 1px solid var(--crm-border);
  border-radius: 10px;
  background: #fff;
  min-height: 52px;
  font-weight: 700;
  padding: .28rem .32rem;
  font-size: .88rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .08rem;
  line-height: 1.05;
}
.slot-time {
  font-size: .96rem;
  font-weight: 800;
}
.slot-state {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.slot-free { background: #e9f7ef; border-color: #9dcfaf; color: #1f6f46; }
.slot-busy { background: #fdecef; border-color: #e8a9b2; color: #8a2f3c; }
.slot-leave { background: #f1f2f5; border-color: #d9dde3; color: #7a808a; }
.slot-off { background: #f3f4f6; border-color: #dde1e6; color: #8a9099; }
.slot-past { background: #f3f4f6; border-color: #dde1e6; color: #8a9099; }
.slot-reserved { background: #fff4c9; border-color: #efd27a; color: #6f5a1b; }
.slot-selected,
.slot-btn.slot-selected {
  outline: 0;
  background: #f6d979;
  border: 2px solid #8a6f1f;
  color: #111;
}
.slot-pill.slot-free { background: #e8fff1; color: #135a34; }
.slot-pill.slot-busy { background: #fff0f0; color: #8b1f1f; }
.slot-pill.slot-leave { background: #fff8e1; color: #7d5a00; }
.slot-pill.slot-off { background: #f3f5f7; color: #6a7480; }
.slot-pill.slot-selected { background: #111; color: #fff; }

.slots-collapsed #timeSection {
  display: none;
}

.public-booking-page {
  position: relative;
  min-height: 100vh;
  background-color: #fbfaf5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='230' height='230' viewBox='0 0 230 230'%3E%3Cg fill='none' stroke='%23111111' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' opacity='.055'%3E%3Cg transform='translate(30 28) rotate(-18 42 42)'%3E%3Ccircle cx='22' cy='64' r='10'/%3E%3Ccircle cx='48' cy='64' r='10'/%3E%3Cpath d='M29 57L68 18M41 57L14 28M14 28L8 18M68 18L76 10'/%3E%3Ccircle cx='35' cy='52' r='3'/%3E%3C/g%3E%3Cg transform='translate(122 128) rotate(14 42 25)'%3E%3Cpath d='M4 10H78V20H4Z'/%3E%3Cpath d='M10 20V43M20 20V49M30 20V43M40 20V49M50 20V43M60 20V49M70 20V43'/%3E%3C/g%3E%3C/g%3E%3Cg fill='none' stroke='%23c69a12' stroke-width='2.5' stroke-linecap='round' opacity='.075'%3E%3Cg transform='translate(142 28) rotate(20 30 30)'%3E%3Ccircle cx='14' cy='45' r='7'/%3E%3Ccircle cx='34' cy='45' r='7'/%3E%3Cpath d='M19 40L52 9M29 40L8 18'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
  color: #1b1b1b;
}
.public-booking-wrap {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.public-booking-main,
.public-booking-summary {
  width: 100%;
}

.public-booking-page .row {
  display: grid;
  grid-template-columns: 1fr;
  gap: .65rem;
}

.public-booking-page .row > [class*='col-'] {
  width: 100%;
}

.public-booking-page .form-label,
.appointment-simple-shell .form-label {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  margin-bottom: .25rem;
}

.public-booking-page .form-control,
.public-booking-page .form-select,
.appointment-simple-shell .form-control,
.appointment-simple-shell .form-select {
  width: 100%;
  display: block;
  min-height: 44px;
  padding: .55rem .75rem;
  font-size: .92rem;
  border: 1px solid #e5d8ab;
  border-radius: 14px;
  background: #fffdf7;
  color: #222;
  outline: none;
}

.public-booking-page .form-control:focus,
.public-booking-page .form-select:focus,
.appointment-simple-shell .form-control:focus,
.appointment-simple-shell .form-select:focus {
  border-color: #c7a328;
  box-shadow: 0 0 0 3px rgba(199,163,40,.15);
}

.public-booking-page .btn,
.appointment-simple-shell .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid #d7d0be;
  padding: .58rem .95rem;
  cursor: pointer;
  font-weight: 700;
  font-size: .96rem;
  text-decoration: none;
}

.public-booking-page .btn-outline-dark,
.appointment-simple-shell .btn-outline-dark {
  background: #fff;
  color: #222;
}

.public-booking-page .text-muted,
.appointment-simple-shell .text-muted {
  color: #66604d !important;
}

.public-booking-page .d-flex {
  display: flex;
}

.public-booking-page .flex-wrap {
  flex-wrap: wrap;
}

.public-booking-page .gap-2 { gap: .45rem; }
.public-booking-page .gap-3 { gap: .75rem; }
.public-booking-page .mt-1 { margin-top: .25rem; }
.public-booking-page .mt-2 { margin-top: .5rem; }
.public-booking-page .mb-2 { margin-bottom: .5rem; }
.public-booking-page .mb-3 { margin-bottom: .75rem; }

.public-booking-page .d-grid {
  display: grid;
}

.public-booking-page .w-100 {
  width: 100%;
}

.public-booking-page .form-check {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.public-booking-page .form-check-input {
  width: 20px;
  height: 20px;
}

#selectedTimeDisplay {
  background: #fff;
  font-weight: 700;
  border-width: 2px;
  border-color: #d9b83f;
  color: #111;
  font-variant-numeric: tabular-nums;
}

/* Compact public appointment form */
.public-compact-header { padding: .8rem 1rem; margin-bottom: .55rem; border: 1px solid #eee6ce; border-radius: 14px; background: rgba(255,255,255,.94); box-shadow: 0 8px 24px rgba(43,36,14,.04); }
.public-compact-header h1 { margin: 0; font-size: 1.3rem; letter-spacing: -.02em; text-transform: none; }
.public-compact-header p { margin: .15rem 0 0; font-size: .76rem; letter-spacing: .1em; }
.public-compact-header p::after { display: none; }
.public-booking-page #appointmentCreateForm { padding: 1rem; border: 1px solid #eee6ce; border-radius: 16px; background: #fff; box-shadow: 0 10px 28px rgba(43,36,14,.055); }
.public-booking-notice { margin-bottom: .8rem; padding: .8rem .95rem; border: 1px solid #ead99d; border-radius: 12px; background: #fffbef; color: #5d4a0c; font-size: .82rem; font-weight: 700; line-height: 1.5; }
.public-booking-page .selected-personnel-card { min-height: 50px; padding: .4rem; }
.public-booking-page .booking-total-card { padding: .55rem .7rem; }
.public-booking-page .booking-total-row { margin-bottom: .25rem; font-size: .86rem; }
.public-booking-page .btn { min-height: 40px; padding: .45rem .75rem; font-size: .86rem; }
.public-booking-page #submitBtn { min-height: 46px; }
.public-booking-page .time-slots-grid { gap: .3rem; }
.public-booking-page .slot-btn { min-height: 43px; }
.public-booking-page .text-muted { font-size: .78rem; }

@media (min-width: 768px) and (max-width: 991.98px) {
  .admin-appointment-card { grid-template-columns:88px minmax(150px,1fr) minmax(180px,1.15fr) auto; gap:.75rem; padding:.78rem; }
  .admin-appointment-time { padding-right:.65rem; }
  .admin-appointment-time strong { font-size:1.3rem; }
}

@media (max-width: 767.98px) {
  .admin-program-header { align-items:flex-start; flex-direction:column; }
  .admin-date-nav { width:100%; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
  .admin-date-nav a { padding:.45rem .25rem; }
  .admin-appointment-panel { padding:.7rem; }
  .admin-appointment-card { grid-template-columns:76px minmax(0,1fr); align-items:start; gap:.6rem .7rem; padding:.75rem; }
  .admin-appointment-time { grid-row:1 / span 3; padding-right:.65rem; }
  .admin-appointment-time strong { font-size:1.25rem; }
  .admin-appointment-customer strong, .admin-appointment-service strong { white-space:normal; }
  .admin-appointment-state { grid-column:2; justify-content:space-between; }
  .admin-appointment-state > i { display:none; }
  .dashboard-primary-grid { grid-template-columns: 1fr; }
  .dashboard-finance-grid { grid-template-columns: 1fr; }
  .dashboard-annual-grid { grid-template-columns:1fr; }
  .dashboard-secondary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
  .public-booking-wrap { padding: .65rem; }
  .public-booking-page #appointmentCreateForm { padding: .8rem; }
  .public-compact-header h1 { font-size: 1.08rem; }
}

@media (max-width: 991.98px) {
  .cash-desktop-table { display:none; }
  .cash-mobile-list { display:grid; }
  .cash-filter-main { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .cash-filter-search { grid-column:1 / -1; }
  .cash-filter-submit { grid-column:auto; }
  .cash-entry-form { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .cash-entry-description { grid-column:1 / -1; }
  .cash-entry-submit { align-self:end; }
  .barber-cash-entry-form { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .barber-cash-entry-form .wide { grid-column:1 / -1; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-showcase { display: none; }
  .auth-panel { min-height: 100vh; padding: 32px 22px; }
  .auth-mobile-brand { display: flex; }
  .crm-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    max-width: calc(100vw - 52px);
    height: 100dvh;
    padding: 1rem .9rem;
    transform: translateX(-105%);
    z-index: 1050;
    box-shadow: 18px 0 42px rgba(15,18,22,.16);
  }
  .crm-sidebar.open { transform: translateX(0); }
  .crm-main { width: 100%; }
  .crm-sidebar-overlay { position: fixed; inset: 0; z-index: 1040; display: block; border: 0; background: rgba(18,20,24,.34); opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease; }
  .mobile-sidebar-open .crm-sidebar-overlay { opacity: 1; visibility: visible; }
  .mobile-sidebar-open { overflow: hidden; }
  .crm-topbar { min-height: 64px; padding: .7rem .9rem; }
  .crm-content { padding: .9rem; }
  .appointment-summary-card {
    position: static;
    top: auto;
  }
  .personnel-card,
  .service-inline-card {
    min-height: 84px;
  }
  .slot-btn {
    min-height: 50px;
    font-size: .86rem;
  }
  .service-inline-card {
    grid-template-columns: auto 56px 1fr;
  }
}

@media (max-width: 575.98px) {
  .cash-page-heading { align-items:flex-start; flex-direction:column; gap:.35rem; }
  .cash-summary-grid,
  .cash-filter-main,
  .cash-custom-dates,
  .cash-entry-form { grid-template-columns:1fr; }
  .cash-summary-heading { align-items:flex-start; flex-direction:column; gap:.2rem; }
  .cash-filter-search { grid-column:auto; }
  .cash-entry-description { grid-column:auto; }
  .barber-cash-entry-form { grid-template-columns:1fr; }
  .barber-cash-entry-form .wide { grid-column:auto; }
  .cash-custom-dates { margin-top:.65rem; }
  .cash-summary-card { padding:1rem; }
  .cash-records-head { padding:.9rem .85rem .6rem; }
  .cash-mobile-card dl { grid-template-columns:1fr 1fr; }
  .dashboard-welcome { align-items: flex-start; flex-direction: column; gap: .8rem; margin-bottom: 1rem; }
  .dashboard-welcome time { width: 100%; }
  .dashboard-panel { padding: .95rem; border-radius: 15px; }
  .dashboard-annual-panel { padding:.9rem; }
  .dashboard-annual-head { align-items:flex-start; flex-direction:column; gap:.85rem; }
  .dashboard-annual-total { width:100%; }
  .dashboard-annual-card { padding:.9rem; }
  .dashboard-annual-legend { grid-template-columns:1fr; gap:.5rem; }
  .dashboard-primary-grid,
  .dashboard-finance-grid,
  .dashboard-secondary-grid { grid-template-columns: 1fr; }
  .dashboard-primary-card { padding: 1rem; }
  .dashboard-primary-card > strong { font-size: 2rem; }
  .dashboard-progress-block { padding: .9rem; }
  .dashboard-finance-card > strong { font-size: 1.45rem; }
  .dashboard-stat-card { min-height: 124px; padding: .95rem; gap: .7rem; border-radius: 15px; }
  .dashboard-stat-icon { flex-basis: 38px; width: 38px; height: 38px; }
  .dashboard-stat-icon svg { width: 20px; height: 20px; }
  .dashboard-stat-value { font-size: 1.4rem; }
  .dashboard-section-heading { align-items: flex-start; }
  .crm-user-pill { width: 34px; height: 34px; padding: 2px; justify-content: center; }
  .crm-user-pill > span:last-child { display: none; }
  .crm-user-icon { flex-basis: 28px; }
  .crm-title { font-size: .98rem; }
  .crm-subtitle { font-size: .69rem; }
  .crm-topbar-left { gap: .55rem; }
  .crm-sidebar-toggle { flex-basis: 38px; width: 38px; height: 38px; }
}

@media (min-width: 992px) {
  .time-slots-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #appointmentCreateApp > [class*='col-xl-8'],
  #appointmentCreateApp > [class*='col-xl-4'] {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (min-width: 600px) and (max-width: 991.98px) {
  .time-slots-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .time-slots-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 1600px) {
  .time-slots-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* Public booking: phone, tablet and desktop */
.public-booking-page {
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.public-booking-page .public-booking-wrap,
.public-booking-page .public-booking-main,
.public-booking-page #appointmentCreateForm,
.public-booking-page .form-control,
.public-booking-page .form-select {
  min-width: 0;
}

.public-booking-page #appointmentCreateForm {
  width: 100%;
}

.public-booking-page .time-slots-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (min-width: 1024px) {
  .public-booking-page .public-booking-wrap {
    width: min(100% - 48px, 720px);
    max-width: 720px;
    padding-top: 1.5rem;
  }

  .public-booking-page #appointmentCreateForm {
    padding: 1.15rem;
  }
}

@media (min-width: 600px) and (max-width: 1023.98px) {
  .public-booking-page {
    background-size: 205px 205px;
  }

  .public-booking-page .public-booking-wrap {
    width: min(100% - 32px, 700px);
    max-width: 700px;
    padding: 1.25rem 0 2rem;
  }

  .public-booking-page #appointmentCreateForm {
    padding: 1rem;
  }

  .public-booking-page .time-slots-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 599.98px) {
  .public-booking-page {
    background-size: 170px 170px;
  }

  .public-booking-page .public-booking-wrap {
    width: 100%;
    max-width: none;
    padding: .65rem;
    gap: .55rem;
  }

  .public-booking-page .public-compact-header {
    padding: .75rem .85rem;
    margin-bottom: 0;
    border-radius: 12px;
  }

  .public-booking-page .public-compact-header h1 {
    font-size: 1.05rem;
  }

  .public-booking-page .public-compact-header p {
    font-size: .68rem;
  }

  .public-booking-page #appointmentCreateForm {
    padding: .8rem;
    gap: .65rem;
    border-radius: 12px;
  }

  .public-booking-page .form-control,
  .public-booking-page .form-select {
    min-height: 48px;
    padding: .6rem .7rem;
    font-size: 16px;
  }

  .public-booking-page .btn {
    min-height: 44px;
  }

  .public-booking-page #todayBtn,
  .public-booking-page #nextDayBtn {
    flex: 1 1 0;
  }

  .public-booking-page .time-slots-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .public-booking-page .slot-btn {
    min-height: 46px;
    padding-inline: .2rem;
  }

  .public-booking-page .selected-personnel-inner img,
  .public-booking-page .barber-avatar,
  .public-booking-page .barber-avatar img {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }
}

@media (max-width: 359.98px) {
  .public-booking-page .public-booking-wrap {
    padding: .4rem;
  }

  .public-booking-page #appointmentCreateForm {
    padding: .65rem;
  }

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