/* [INPUT] Semantic POS page markup. [OUTPUT] Palmira visual system across desk and phone. [POS] Compact scheduling, checkout and owner views. [PROTOCOL] Preserve usable focus, contrast and touch targets at every breakpoint. */
:root {
  font-family:Inter,"Noto Sans Lao","Phetsarath OT","Noto Sans Thai","PingFang SC",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-size:14px; line-height:1.5; color:#1f2b27; background:#f4f5f1; font-synthesis:none; text-rendering:optimizeLegibility; --green:#153e38; --green-2:#22574e;
  --ink:#202a27; --muted:#5f7067; --line:#dde4db; --paper:#fff; --sand:#c3a66e; --red:#ad5149; --soft-green:#e8f0eb;
  --shadow:0 12px 34px rgba(28,45,38,.08)
}
* {
  box-sizing:border-box
}
body {
  margin:0; min-width:320px; background:#f4f5f1
}
button,input,select,textarea {
  font:inherit
}
button {
  cursor:pointer
}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline:3px solid #6aa596; outline-offset:2px
}
.app-frame {
  min-height:100vh
}
.sidebar {
  position:fixed; inset:0 auto 0 0; width:252px; background:#153b32; color:#fff; display:flex; flex-direction:column;
  padding:23px 15px 16px; z-index:10; overflow-y:auto
}
.sidebar > * { flex-shrink:0 }
.account-nav { border-top:1px solid #ffffff26; padding-top:18px }
.brand {
  display:flex; align-items:center; gap:12px; color:#fff; text-decoration:none; padding:2px 10px 32px
}
.brand-mark {
  height:40px; width:40px; border-radius:13px; background:#d0b982; color:#17352f; display:grid; place-items:center;
  font-family:Georgia,serif; font-size:25px; font-weight:700
}
.brand-logo{display:block;width:100%;height:100%;object-fit:contain;background:#fff;border-radius:8px}
.store-logo{display:block;max-width:160px;max-height:130px;object-fit:contain;margin:12px 0}
.brand b {
  display:block; font-size:16px; letter-spacing:.12em
}
.brand small {
  display:block; color:#aebdb7; font-size:13px; margin-top:4px
}
.nav-label,.eyebrow {
  font-size:12px; font-weight:700; letter-spacing:.13em; color:#95a9a0; text-transform:uppercase
}
.nav-label {
  padding:0 12px 10px
}
.sidebar nav {
  display:grid; gap:5px
}
.nav-item {
  display:flex; align-items:center; gap:12px; width:100%; min-height:48px; padding:11px 12px; border:0;
  border-radius:8px; color:#c8d3ce; background:transparent; text-align:left; font-size:14px; transition:.16s
}
a.nav-item {
  text-decoration:none
}
.nav-item:hover {
  background:#20423b; color:#fff
}
.nav-item.active {
  background:#e8eddf; color:#183f32; box-shadow:inset 3px 0 #c7ad73
}
.nav-icon {
  width:20px; text-align:center; color:#c4ac77; font-size:17px
}
.nav-count {
  font-style:normal; margin-left:auto; background:#cf9b68; color:#182e28; border-radius:12px; padding:2px 7px; font-size:12px
}
.sidebar-foot {
  display:flex; align-items:center; gap:9px; margin-top:auto; padding:14px 10px 4px; color:#aebdb7; font-size:13px;
  border-top:1px solid #315048
}
.status-dot {
  height:7px; width:7px; border-radius:50%; background:#8bc09a
}
.main-area {
  margin-left:252px; min-height:100vh
}
.topbar {
  height:78px; background:rgba(255,255,255,.88); border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; padding:0 36px;
  position:sticky; top:0; z-index:5; backdrop-filter:blur(12px)
}
.store-heading {
  display:flex; flex-direction:column; gap:4px
}
.store-heading .eyebrow {
  color:#62746a; font-size:11px
}
.store-heading strong {
  font-size:14px; color:var(--green)
}
.top-controls {
  display:flex; align-items:center; gap:13px
}
.date-control {
  display:flex; align-items:center; gap:9px; color:var(--muted); font-size:13px; white-space:nowrap; flex-shrink:0
}
.date-control input,.language-control select {
  border:1px solid var(--line); background:#fff; border-radius:7px; height:44px; color:var(--ink); padding:0 9px; font-size:14px
}
.language-control select {
  width:96px
}
.demo-badge {
  border:1px solid #eadfc8; background:#faf6eb; border-radius:12px; padding:5px 8px; color:#8c764c; font-size:11px; white-space:nowrap
}
.avatar,.therapist-avatar {
  display:grid; place-items:center; background:#e4e8e1; color:var(--green); border-radius:50%; height:34px; width:34px;
  font-weight:700; font-size:14px
}
.icon-button {
  border:1px solid var(--line); background:#fff; color:#617067; border-radius:8px; height:44px; min-width:44px; display:grid;
  place-items:center; font-size:16px
}
.mobile-menu {
  display:none
}
.view {
  padding:30px 36px 48px; max-width:1680px; margin:0 auto
}
.page-head {
  display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:24px
}
.page-head .eyebrow {
  color:#796344; font-size:11px; margin-bottom:8px
}
.page-head h1 {
  font-family:Georgia,"Times New Roman",serif; font-size:34px; line-height:1.2; font-weight:500; color:#1d302b; margin:0
}
.page-head p {
  margin:8px 0 0; color:var(--muted); font-size:14px
}
.head-actions {
  display:flex; align-items:center; gap:8px
}
.button {
  min-height:44px; padding:10px 16px; border:1px solid transparent; border-radius:7px; font-size:13px; font-weight:650; white-space:nowrap;
  transition:.15s
}
.button-dark {
  background:var(--green); color:#fff
}
.button-dark:hover {
  background:#0d302b
}
.button-green {
  background:#e4eee8; color:#22574e; border-color:#d9e8df
}
.button-green:hover {
  background:#d6e7dd
}
.button-outline {
  background:#fff; color:var(--green); border-color:#d8dfd8
}
.button-outline:hover,.button-quiet:hover {
  border-color:#9cb0a5; background:#f7faf7
}
.button-quiet {
  background:transparent; color:#607068; border-color:transparent
}
.button:disabled {
  opacity:.55; cursor:wait
}
.stats-grid {
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:13px; margin-bottom:18px
}
.stat-card {
  background:#fff; border:1px solid #eceee9; border-radius:16px; padding:20px 22px 18px; min-height:104px; box-shadow:0 2px 9px rgba(24,45,36,.025)
}
.stat-top {
  display:flex; justify-content:space-between; align-items:center; color:#68746d; font-size:13px
}
.stat-icon {
  height:25px; width:25px; display:grid; place-items:center; border-radius:7px; background:#f1f4ef; color:#617c6b;
  font-size:13px
}
.stat-card>strong {
  display:block; margin-top:12px; color:#1c3831; font-size:22px; letter-spacing:-.03em
}
.stat-card>small {
  display:block; color:#647267; margin-top:4px; font-size:12px
}
.today-content > .schedule-panel:only-child {grid-column:1/-1}
.today-content {
  display:grid; grid-template-columns:minmax(245px,320px) minmax(0,1fr); gap:15px; align-items:start
}
.panel {
  background:#fff; border:1px solid #e9ece6; border-radius:16px; box-shadow:0 3px 12px rgba(24,45,36,.025); margin-bottom:15px; min-width:0
}
.panel-heading {
  display:flex; justify-content:space-between; align-items:center; gap:15px; padding:17px 18px; border-bottom:1px solid #edf0ea
}
.panel-heading h2 {
  margin:0; color:#263a33; font-size:14px; font-weight:700
}
.panel-heading p {
  margin:5px 0 0; color:#66766c; font-size:12px
}
.queue-panel .panel-heading {
  align-items:flex-start
}
.queue-panel .panel-heading small {
  display:block; margin-top:5px; color:#64736b; font-size:11px
}
.queue-date {
  margin-left:5px; color:#789087; font-size:12px; font-weight:500; white-space:nowrap
}
.queue-history-note {
  display:inline-block; margin:7px 0 0!important; padding:5px 8px; border-radius:5px; background:#f7f1e5; color:#846f47!important
}
.queue-list {
  display:flex; gap:8px; list-style:none; margin:0; padding:12px 14px; overflow-x:auto
}
.queue-row {
  min-width:170px; display:flex; align-items:center; gap:8px; padding:8px 10px; border:1px solid #e9eee9; border-radius:8px; background:#fbfcfa
}
.queue-rank {
  flex:0 0 24px; height:24px; display:grid; place-items:center; border-radius:50%; background:#e8efea; color:#31594a; font-size:12px; font-weight:750
}
.queue-paused { opacity: .65; border-style: dashed; }
.rotation-preview ol { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-left: 24px; }
.rotation-preview h3 { font-size: 14px; }
.queue-panel .panel-heading > .button { flex-shrink: 0; align-self: flex-start; }
.queue-row>b {
  min-width:0; overflow:hidden; text-overflow:ellipsis; color:#34463d; font-size:13px
}
.queue-turns {
  margin-left:auto; color:#78867e; font-size:11px; white-space:nowrap
}
.queue-serving-chip,.queue-serving-person {
  padding:4px 6px; border-radius:12px; background:#e7f1eb; color:#387454; font-size:10px; white-space:nowrap
}
.queue-empty {
  padding:8px 4px; color:#647267; font-size:12px
}
.queue-serving-block {
  display:flex; align-items:center; gap:10px; border-top:1px solid #edf0ea; padding:9px 14px
}
.queue-serving-block>b {
  color:#748179; font-size:11px; white-space:nowrap
}
.queue-serving-block>div {
  display:flex; flex-wrap:wrap; gap:6px
}
.count-pill {
  display:inline-block; min-width:21px; padding:3px 6px; background:#f2ede2; border-radius:10px; text-align:center; color:#937644;
  font-size:12px
}
.waiting-panel {
  position:sticky; top:94px
}
.waiting-list {
  padding:5px 12px 13px; display:grid; gap:8px
}
.waiting-row {
  border:1px solid #edf0ea; background:#fbfcfa; border-radius:8px; padding:10px; display:grid; gap:7px
}
.waiting-row[draggable="true"] {
  cursor:grab
}
.waiting-row[draggable="true"]:active {
  cursor:grabbing
}
.waiting-row .booking-card {
  cursor:pointer
}
.waiting-row>.button {
  justify-self:start
}
.booking-card {
  display:flex; flex-direction:column; gap:4px; border-left:3px solid var(--booking-color,#c6a977); background:#fffdfa; padding:8px 9px; border-radius:4px;
  min-width:0; cursor:pointer; overflow:hidden
}
.booking-card:hover {
  background:#f7f4eb
}
.booking-card strong {
  font-size:13px; color:#283b34; white-space:nowrap; overflow:hidden; text-overflow:ellipsis
}
.booking-card>span,.booking-card small {
  font-size:11px; color:#7b847e; white-space:nowrap; overflow:hidden; text-overflow:ellipsis
}
.booking-time {
  font-size:11px; font-weight:700; color:#68756c
}
.booking-time span {
  font-weight:400; color:#647267
}
.schedule-panel {
  overflow:hidden
}
.schedule-scroll {
  overflow-x:auto; overscroll-behavior-x:contain
}
.schedule-grid {
  display:flex; min-width:max-content; align-items:stretch
}
.time-gutter {
  width:57px; flex:0 0 57px; padding-top:66px; background:#fcfcfa
}
.time-label {
  height:64px; text-align:center; color:#647267; font-size:11px; position:relative; top:-6px
}
.therapist-column {
  min-width:172px; flex:1 0 172px; border-left:1px solid #edf0eb
}
body.booking-dragging .therapist-column {
  transition:background-color .12s ease, outline-color .12s ease
}
.therapist-column.drag-target {
  outline:2px dashed #37685d; outline-offset:-3px; background:#edf5f0
}
.therapist-column.drag-target .therapist-head {
  background:#e4efe8
}
.therapist-head {
  height:66px; position:sticky; top:0; z-index:2; background:#fff; display:flex; align-items:center;
  gap:7px; padding:0 9px; border-bottom:1px solid #e7ebe5
}
.therapist-avatar {
  height:27px; width:27px; flex:0 0 27px; font-size:12px; background:#e9eee8
}
.therapist-head b {
  display:block; color:#31443b; font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:108px
}
.therapist-head small {
  display:block; color:#68766e; font-size:10px; margin-top:3px
}
.attendance-dot {
  height:44px; width:44px; flex:0 0 44px; display:grid; place-items:center; padding:0; border-radius:12px; border:1px solid #d9e5dc; background:#f0f6ef; margin-left:auto
}
.attendance-dot::before {content:""; width:10px; height:10px; border-radius:50%; background:#457c50}
.attendance-dot.off {background:#fbf2e6; border-color:#e8d7bf}
.attendance-dot.off::before {background:#976820}
.schedule-column {
  position:relative; background-image:repeating-linear-gradient(to bottom,transparent 0,transparent 63px,#edf0eb 63px,#edf0eb 64px)
}
.positioned-booking {
  position:absolute; left:4px; right:4px; min-height:50px; overflow:hidden
}
.booking-card.compact {
  height:100%; padding:5px 6px; gap:3px; border-radius:4px
}
.booking-card.compact strong {
  font-size:11px
}
.booking-card.compact>span {
  font-size:10px
}
.booking-card.compact .booking-time {
  font-size:10px
}
.column-empty {
  color:#d4dbd5; text-align:center; padding-top:48px
}
.legend {
  display:flex; align-items:center; gap:6px; color:#647267; font-size:11px
}
.legend i {
  height:7px; width:7px; border-radius:2px; background:#c6a977
}
.legend .legend-green {
  background:#60977c; margin-left:7px
}
.schedule-no-data {
  text-align:center; color:#647267; font-size:13px; padding:15px; border-top:1px solid var(--line)
}
.toolbar {
  display:flex; align-items:center; gap:10px; padding:14px 17px; border-bottom:1px solid #edf0ea
}
.toolbar select {
  height:34px; padding:0 10px; border:1px solid var(--line); border-radius:7px; background:#fff; color:#57645d; font-size:13px
}
.search-field {
  display:flex; align-items:center; gap:8px; border:1px solid var(--line); border-radius:7px; height:35px; padding:0 10px;
  color:#647267; flex:1; max-width:430px
}
.search-field input {
  border:0; outline:0; width:100%; font-size:13px; color:var(--ink); background:transparent
}
.search-field input:focus-visible {
  outline:0
}
table {
  width:100%; border-collapse:collapse; text-align:left
}
th {
  font-size:11px; color:#647267; letter-spacing:.035em; font-weight:650; background:#fbfcfa; white-space:nowrap
}
td,th {
  padding:12px 13px; border-bottom:1px solid #edf0eb; vertical-align:middle
}
td {
  font-size:12px; color:#5c6962
}
td b {
  font-size:13px; color:#2e4038
}
td small {
  display:block; font-size:11px; color:#647267; margin-top:4px
}
.table-wrap {
  overflow-x:auto
}
.table-wrap tbody tr:hover {
  background:#fbfcfa
}
.status-chip {
  display:inline-block; padding:4px 8px; border-radius:14px; font-size:11px; white-space:nowrap; background:#f2f0e9; color:#8e784d
}
.status-started {
  background:#e4f0e8; color:#377454
}
.status-finished {
  background:#edf0ed; color:#758078
}
.status-cancelled {
  background:#f8eae8; color:#ab5a51
}
.status-booked {
  background:#f4efe4; color:#997c49
}
.text-red {
  color:#b04d45!important
}
.row-actions {
  display:flex; gap:2px; align-items:center
}
.row-actions .button {
  height:28px; padding:0 7px; font-size:11px
}
.customer-grid {
  padding:16px; display:grid; grid-template-columns:repeat(3,minmax(190px,1fr)); gap:12px
}
.crm-filter-head {
  display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:15px 17px 0
}
.crm-filter-head h2 {
  margin:0; color:#34463d; font-size:13px
}
.crm-filter-head p {
  max-width:820px; margin:6px 0 0; color:#647267; font-size:12px; line-height:1.55
}
.crm-filter-head>small {
  color:#77847c; white-space:nowrap; font-size:12px
}
.crm-toolbar {
  align-items:flex-end; flex-wrap:wrap
}
.crm-filter {
  display:grid; gap:4px; min-width:150px; color:#77847c; font-size:11px
}
.crm-filter input {
  width:100%; height:35px; padding:0 8px; border:1px solid var(--line); border-radius:7px; background:#fff; color:var(--ink); font-size:13px
}
.crm-customer-stats {
  display:grid; grid-template-columns:.65fr 1.3fr 1fr; gap:7px; padding:10px 0; border-bottom:1px solid #eff1ed
}
.crm-customer-stats span {
  min-width:0; display:grid; gap:4px
}
.crm-customer-stats small {
  color:#647267; font-size:10px
}
.crm-customer-stats b {
  overflow-wrap:anywhere; color:#3f5b4e; font-size:12px
}
.customer-card {
  border:1px solid #e9ede7; border-radius:9px; padding:13px; background:#fff
}
.customer-card-head {
  display:flex; align-items:center; gap:9px
}
.customer-avatar {
  height:34px; width:34px; display:grid; place-items:center; background:#edf1ea; color:#446859; border-radius:50%;
  font-family:Georgia,serif; font-size:16px
}
.customer-card-head b {
  display:block; color:#33443b; font-size:14px
}
.customer-card-head small {
  display:block; margin-top:3px; color:#68766e; font-size:11px
}
.more-button {
  margin-left:auto; border:0; background:none; color:#647267; font-size:20px
}
.customer-balance {
  display:flex; justify-content:space-between; align-items:center; border-top:1px solid #eff1ed; border-bottom:1px solid #eff1ed; margin-top:13px; padding:10px 0;
  color:#647267; font-size:12px
}
.customer-balance b {
  font-size:14px; color:#386052
}
.customer-card-foot {
  display:flex; justify-content:space-between; align-items:center; padding-top:10px
}
.customer-card-foot small {
  font-size:11px; color:#68766e
}
.text-button {
  border:0; background:transparent; color:#477567; font-size:12px; font-weight:700; padding:5px
}
.stock-pill {
  display:inline-block; padding:4px 8px; border-radius:12px; background:#edf4ee; color:#417357
}
.low-stock {
  background:#fbefe5; color:#aa6941
}
.cash-stats {
  grid-template-columns:repeat(4,minmax(0,1fr))
}
.report-stats {
  grid-template-columns:repeat(3,minmax(0,1fr))
}
.settings-store {
  padding-bottom:15px
}
.store-meta {
  display:grid; grid-template-columns:repeat(3,1fr); padding:15px 18px; gap:12px
}
.store-meta span {
  display:grid; gap:5px
}
.store-meta small {
  font-size:11px; color:#647267
}
.store-meta b {
  font-size:13px; color:#3d5348
}
.inline-alert {
  margin:0 18px; padding:10px; background:#fbefed; color:#a54842; border-radius:6px; font-size:12px
}
.cash-privacy-note {
  margin:0 0 12px
}
.setting-group {
  overflow:hidden
}
.master-list {
  padding:4px 16px 10px
}
.master-row {
  min-height:43px; display:grid; grid-template-columns:10px minmax(110px,1fr) minmax(150px,1.5fr) auto; align-items:center; gap:10px; border-bottom:1px solid #f0f2ef
}
.master-row:last-child {
  border-bottom:0
}
.master-mark {
  height:8px; width:8px; border-radius:50%; background:var(--mark)
}
.master-row b {
  font-size:12px; color:#405249
}
.master-row small {
  font-size:11px; color:#647267
}
.note-line {
  color:#647267; font-size:12px; padding:0 2px
}
.empty-state {
  min-height:130px; display:grid; place-content:center; justify-items:center; gap:10px; color:#647267; text-align:center;
  font-size:13px
}
.empty-symbol {
  font-family:Georgia,serif; font-size:27px; color:#bcc7bd
}
.muted-line {
  padding:16px; color:#647267; font-size:13px
}
.loading-screen {
  min-height:55vh; display:grid; align-content:center; justify-items:center; gap:12px; color:#647267
}
.loading-screen h2 {
  font-family:Georgia,serif; font-size:22px; font-weight:400
}
.spinner {
  height:27px; width:27px; border:2px solid #dce5dc; border-top-color:#376c59; border-radius:50%; animation:spin .8s linear infinite
}
@keyframes spin {
  to {
    transform:rotate(360deg)
  }
}
.toast-root {
  position:fixed; right:20px; bottom:20px; z-index:40; display:grid; gap:8px; max-width:min(460px,calc(100vw - 40px))
}
.toast {
  display:flex; align-items:center; gap:14px; justify-content:space-between; padding:12px 14px; border-radius:8px; color:white;
  background:#245a49; box-shadow:var(--shadow); font-size:13px; animation:toast-in .2s ease-out
}
.toast-error {
  background:#9e493e
}
.toast-retry {
  min-height:44px; flex-shrink:0;
  border:1px solid rgba(255,255,255,.45); border-radius:5px; background:transparent; color:#fff; padding:5px 8px; font-size:12px
}
@keyframes toast-in {
  from {
    transform:translateY(8px); opacity:0
  }
  to {
    transform:translateY(0); opacity:1
  }
}
.modal-open {
  overflow:hidden
}
.modal-backdrop {
  position:fixed; inset:0; z-index:30; background:rgba(13,30,25,.52); display:grid; place-items:center; padding:20px;
  animation:fade-in .14s ease-out
}
@keyframes fade-in {
  from {
    opacity:0
  }
  to {
    opacity:1
  }
}
.modal {
  width:min(590px,100%); max-height:min(90dvh,960px); overflow:auto; background:#fff; border-radius:20px; box-shadow:0 25px 85px rgba(9,29,22,.28)
}
.modal-head {
  display:flex; align-items:center; justify-content:space-between; padding:17px 20px; border-bottom:1px solid #edf0ea; position:sticky; top:0;
  background:#fff; z-index:1
}
.modal-head h2 {
  margin:0; font-family:Georgia,serif; font-size:20px; font-weight:500; color:#263d33
}
.modal-head .icon-button {
  font-size:20px; border:0
}
.modal-body {
  padding:24px; display:grid; grid-template-columns:1fr 1fr; gap:18px
}
.period-shortcuts,.period-report-body {
  padding:18px 20px
}
.period-shortcuts h2 {
  margin:0 0 14px; font-size:16px
}
.period-shortcuts .button {
  margin:0 6px 6px 0
}
.period-report-body {
  font-size:13px; line-height:1.7
}
.period-report-body>p:first-child {
  margin-top:0; font-weight:650
}
.period-metric {
  margin-bottom:10px
}
.period-metric summary {
  cursor:pointer; min-height:46px; padding:10px 14px
}
.period-metric summary b {
  display:inline-block; margin-left:12px; color:var(--green)
}
.period-metric[open] summary {
  border-bottom:1px solid var(--line)
}
.period-metric td {
  white-space:normal; overflow-wrap:anywhere; min-width:100px
}
.form-field {
  display:grid; gap:6px; color:#69766e; font-size:12px; align-content:start
}
.form-field.wide {
  grid-column:1/-1
}
.form-field>span {
  font-weight:650; color:#53635a
}
.form-field input,.form-field select,.form-field textarea {
  width:100%; border:1px solid #dfe5dd; border-radius:6px; background:#fff; color:#263b31; min-height:46px; padding:11px 12px;
  font-size:13px
}
.form-field input[type=color] {
  padding:4px; height:37px
}
.form-field select[multiple] {
  height:auto
}
.form-field textarea {
  resize:vertical
}
.form-field small {
  font-size:11px; color:#99a29c
}
.check-control {
  display:flex; align-items:center; gap:7px; min-height:37px
}
.check-control input {
  width:15px; height:15px; min-height:0; accent-color:#286451
}
.modal-foot {
  display:flex; justify-content:flex-end; gap:8px; padding:13px 20px 18px; border-top:1px solid #edf0ea; position:sticky; bottom:0;
  background:#fff
}
.print-preview-modal {
  width:min(1120px,100%); max-height:92vh; display:flex; flex-direction:column; overflow:hidden
}
.print-preview-scroll {
  min-height:0; overflow:auto; padding:22px; background:#eef1ed
}
.print-preview-modal .modal-foot {
  position:static; flex:none
}
.print-preview-backdrop {
  z-index:35
}
.confirm-copy {
  grid-column:1/-1; background:#f6f8f5; border:1px solid #e9eee8; padding:16px; border-radius:8px; color:#34483d
}
.confirm-copy p {
  font-size:13px; color:#839087
}
.customer-detail-head {
  display:flex; align-items:center; gap:12px
}
.customer-avatar.large {
  height:48px; width:48px; font-size:22px
}
.customer-detail-head h3,.customer-detail>h3 {
  margin:0; color:#34483e; font-family:Georgia,serif; font-size:17px; font-weight:500
}
.customer-detail-head p,.customer-detail>p {
  color:#89958c; font-size:13px
}
.customer-detail .customer-balance {
  margin:14px 0
}
.history-list {
  border-top:1px solid var(--line)
}
.history-row {
  padding:10px 0; display:flex; justify-content:space-between; border-bottom:1px solid #edf0ea; font-size:12px; color:#53645a
}
.history-row small {
  display:block; margin-top:4px; color:#68766e
}
.sr-only {
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0
}
@media(max-width:1180px) {
  .view {
    padding-left:24px; padding-right:24px
  }
  .topbar {
    padding:0 24px
  }
  .today-content {
    grid-template-columns:250px minmax(0,1fr)
  }
  .therapist-column {
    width:152px; flex-basis:152px
  }
  .customer-grid {
    grid-template-columns:repeat(2,minmax(180px,1fr))
  }
  .row-actions {
    flex-wrap:wrap
  }
  .stats-grid {
    gap:9px
  }
  .stat-card {
    padding:13px
  }
}
@media(max-width:850px) {
  .sidebar {
    width:224px; transform:translateX(-100%); visibility:hidden; transition:transform .2s,visibility .2s; box-shadow:var(--shadow)
  }
  .sidebar.sidebar-open {
    transform:translateX(0); visibility:visible
  }
  .main-area {
    margin-left:0
  }
  .mobile-menu {
    display:grid
  }
  .topbar {
    height:66px; padding:0 16px; justify-content:flex-start; gap:12px
  }
  .store-heading {
    margin-right:auto
  }
  .view {
    padding:23px 16px 36px
  }
  .date-control span {
    display:none
  }
  .today-content {
    grid-template-columns:1fr
  }
  .waiting-panel {
    position:static
  }
  .waiting-list {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .therapist-column {
    width:160px; flex-basis:160px
  }
  .page-head h1 {
    font-size:26px
  }
  .stats-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .report-stats {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .row-actions {
    min-width:140px
  }
}
@media(max-width:560px) {
  .demo-badge {
    display:none
  }
  .topbar {
    gap:8px
  }
  .top-controls {
    gap:6px
  }
  .date-control {
    display:flex; flex:1; min-width:0
  }
  .language-control select {
    width:74px; height:44px; padding:0 6px
  }
  .top-controls .avatar {
    height:29px; width:29px
  }
  .page-head {
    align-items:flex-start; flex-direction:column; gap:13px
  }
  .head-actions {
    width:100%
  }
  .head-actions .button {
    flex:1
  }
  .page-head h1 {
    font-size:24px
  }
  .view {
    padding:19px 12px 28px
  }
  .stats-grid {
    gap:8px
  }
  .stat-card {
    min-height:91px; padding:11px
  }
  .stat-card>strong {
    font-size:18px; margin-top:10px
  }
  .stat-card>small {
    font-size:11px
  }
  .waiting-list {
    grid-template-columns:1fr
  }
  .panel-heading {
    padding:14px
  }
  .schedule-grid .therapist-column {
    width:142px; flex-basis:142px
  }
  .schedule-grid .time-gutter {
    width:46px; flex-basis:46px
  }
  .schedule-panel .panel-heading {
    align-items:flex-start
  }
  .legend {
    font-size:10px; white-space:nowrap
  }
  .customer-grid {
    grid-template-columns:1fr; padding:11px
  }
  .crm-toolbar .search-field {
    flex-basis:100%; max-width:none
  }
  .customer-card {
    padding:12px
  }
  .toolbar {
    padding:11px; flex-wrap:wrap
  }
  .toolbar select {
    width:100%
  }
  .store-meta {
    grid-template-columns:1fr 1fr; padding:13px
  }
  .master-row {
    grid-template-columns:9px 1fr auto; gap:7px; padding:7px 0
  }
  .master-row small {
    grid-column:2; grid-row:2
  }
  .master-row .text-button {
    grid-column:3; grid-row:1/3
  }
  .modal-backdrop {
    padding:9px; align-items:end
  }
  .modal {
    max-height:92vh; border-radius:13px 13px 8px 8px
  }
  .modal-body {
    grid-template-columns:1fr; gap:11px; padding:15px
  }
  .form-field.wide {
    grid-column:auto
  }
  .modal-head,.modal-foot {
    padding-left:15px; padding-right:15px
  }
  .row-actions {
    min-width:180px
  }
  .table-wrap {
    margin:0
  }
  .cash-stats {
    grid-template-columns:repeat(2,1fr)
  }
}
.payroll-run-row td{background:#f5f8f4;padding:10px 14px}.payroll-run-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.payroll-run-head>div:first-child{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.payroll-run-head small{color:#68766e;font-size:11px}
.login-page{min-height:100vh;display:grid;place-items:center;background:#edf1eb}.login-card{width:min(440px,calc(100vw - 32px));padding:40px;border-radius:24px;background:white;box-shadow:0 20px 70px #173c3820}.login-card h1{margin:24px 0 8px}.login-card p,.login-card small{color:#62716a}.login-card form{display:grid;gap:20px;margin:30px 0}.login-card label{display:grid;gap:8px;font-size:14px}.login-card input,.login-card select{width:100%;padding:12px;border:1px solid #d3dbd5;border-radius:8px}.login-card #loginError{color:#a13629}

.ticket-panel{margin-bottom:24px}.ticket-card{padding:18px 22px;border-top:1px solid var(--line)}.ticket-card h3{margin:0}.ticket-card ul{padding-left:20px;line-height:2}.ticket-project-heading{padding-top:18px;border-top:1px solid var(--line);margin:8px 0}.ticket-preview{background:var(--soft-green);padding:16px;border-radius:12px;font-size:13px}.ticket-preview p{line-height:1.6}.ticket-preview h3{margin:0 0 10px}

/* Management hierarchy and touch behavior; all figures still come from the server. */
.nav-icon{display:grid;place-items:center;width:22px;height:22px;color:currentColor;flex:0 0 22px}
.nav-icon svg{width:21px;height:21px}
.nav-group{display:grid;gap:5px;margin-bottom:18px}
.nav-group-label{padding:0 12px;margin:4px 0 8px;font-size:11px;font-weight:650;letter-spacing:.08em;color:#b1c3b8}
.sidebar>.nav-label{display:none}
.sidebar{overflow-y:auto}
.status-dot{background:#aab8ad}
.status-dot[data-status="ok"]{background:#9bcd9f}
.status-dot[data-status="error"],.status-dot[data-status="stale"]{background:#edba74}
.stat-card>strong{font-variant-numeric:tabular-nums;letter-spacing:-.035em}
table{font-variant-numeric:tabular-nums}
.panel-heading h3{margin:0;font-size:15px;font-weight:650;color:#263a33}
.panel-heading p{line-height:1.65;max-width:66ch}
.panel-heading{gap:16px}
.text-button{min-height:44px;min-width:44px;padding:8px 10px;font-size:13px}
.form-field{font-size:13px;gap:8px}
.form-field input,.form-field select,.form-field textarea{font-size:14px;line-height:1.5}
.form-field small{font-size:12px;line-height:1.6}
.modal-head{padding:20px 24px}
.modal-head h2:focus{outline:none}
.modal-foot{position:sticky;bottom:0;background:#fff;z-index:1}
.head-actions{flex-wrap:wrap}
.settings-index{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:28px}
.settings-index a{display:flex;align-items:center;min-height:44px;padding:10px 16px;border:1px solid #d4dfd4;border-radius:30px;color:#274b3c;background:#fff;font-size:13px;text-decoration:none}
.settings-index a:hover{background:#e8eedf;border-color:#aabfa9}
.settings-index a:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #638975;outline-offset:3px}
.settings-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 24px;align-items:start}
.settings-section{scroll-margin-top:100px;min-width:0}
.section-heading{margin-bottom:16px}
.section-heading h2{margin:0 0 6px;font-size:20px;color:#274536;font-weight:600;letter-spacing:-.025em}
.section-heading p{margin:0;font-size:13px;color:#617467;line-height:1.65}
.settings-admin-actions{display:flex;gap:10px;flex-wrap:wrap}
.master-row{padding:14px 0;grid-template-columns:10px minmax(0,1fr) auto;gap:8px 12px}
.master-row b{font-size:14px;overflow-wrap:anywhere}
.master-row small{grid-column:2;grid-row:2;font-size:12px;line-height:1.7;color:#64746a}
.master-row .text-button{grid-column:3;grid-row:1/3}
.store-meta{grid-template-columns:1fr;gap:18px}
.store-meta b{font-size:14px;overflow-wrap:anywhere}
.period-report-body{padding:24px;line-height:1.8}
.period-report-body>p:nth-child(2){font-size:12px;color:#637369}
.period-report-body>p:nth-child(3){background:#f0f4ed;border:1px solid #e0e8da;border-radius:12px;padding:14px 16px;margin-bottom:22px;color:#475d4d}
.period-metric summary{padding:15px 18px;font-size:14px;min-height:54px}
.period-metric summary b{float:right;font-variant-numeric:tabular-nums;font-weight:650}
.nav-backdrop{position:fixed;inset:0;background:#102c2455;border:0;z-index:9}
.nav-backdrop[hidden]{display:none}
.dialog-toast{margin:12px 20px 20px;flex-shrink:0}
@media(min-width:851px){.nav-backdrop{display:none!important}}
@media(max-width:1100px){.settings-layout{grid-template-columns:1fr}.panel-heading{flex-wrap:wrap}.master-row{grid-template-columns:10px minmax(0,1fr) auto}}
@media(max-width:850px){.settings-section{scroll-margin-top:150px}.sidebar{width:260px}.topbar{min-height:76px;height:auto;padding-block:12px}.top-controls{flex-wrap:wrap}.date-control input{min-width:130px}}
@media(max-width:600px){
 .topbar{flex-wrap:wrap;gap:8px;padding:12px 16px}
 .top-controls{flex:0 0 100%;gap:6px;flex-wrap:nowrap}
 .top-controls .avatar{display:none}
 .date-control{display:flex;flex:1;min-width:0}
 .date-control input{width:100%;min-width:110px;padding-inline:6px;font-size:13px}
 .language-control select{width:74px;font-size:13px;min-height:44px}
 .logout-button{font-size:12px;min-height:44px;padding:8px}
 .view{padding:24px 16px 40px}
 .head-actions{gap:8px;flex-wrap:wrap}.head-actions .button{flex:1 1 auto}
 .page-head h1{font-size:29px}.page-head p{font-size:13px;line-height:1.6}
 .stat-card{border-radius:14px;padding:16px 14px}.stat-top{font-size:12px}
 .stat-card>strong{font-size:23px}.stat-card>small{font-size:12px}
 .modal-backdrop{padding:8px}.modal{max-height:94dvh;border-radius:20px 20px 12px 12px}
 .modal-body,.period-report-body{padding:20px}.modal-head,.modal-foot{padding:16px 20px}
 .form-field input,.form-field select,.form-field textarea{font-size:16px}
 .period-metric summary{padding:14px;font-size:13px}.period-metric summary b{float:none;display:block;margin:4px 0 0 16px;font-size:19px}
 .period-shortcuts .button{margin:0 5px 8px 0}.settings-layout{gap:24px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* Original history is a quiet owner-only reading view, with a sticky return. */
.history-entry{margin-top:18px;padding:16px 20px}
.history-entry summary{cursor:pointer;font-weight:600}
.history-dialog{width:min(960px,calc(100vw - 24px));padding:0;max-height:92dvh;border:0}
.history-dialog::backdrop{background:#22172980}
.history-dialog .modal-body{display:block}
.history-dialog .modal-head{gap:12px;flex-wrap:wrap}
.history-dialog .panel{margin-top:14px;padding:14px}
.history-dialog .form-grid{margin:18px 0}
.history-dialog .table-wrap{max-width:100%}

/* Opening-store checklist on the owner home: one row per step, finished rows dimmed. */
.setup-steps { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.setup-steps li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem .85rem; border: 1px solid var(--line); border-radius: 10px; }
.setup-steps li.done { color: var(--muted); }

/* Store settings: desk colour theme swatches (desk redesign slice A). */
.theme-field{border:0;padding:0;margin:0}.theme-field legend{padding:0;margin-bottom:8px}.theme-field legend small{font-weight:600}
.theme-swatches{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:6px}
.theme-swatch{display:flex;align-items:center;gap:8px;min-height:48px;padding:6px 10px;border:1px solid var(--line,#d7d2c8);border-radius:10px;cursor:pointer}
.theme-swatch:has(input:checked){border-width:2px;border-color:currentColor}
.theme-dot{width:24px;height:24px;border-radius:50%;flex:none}
.theme-swatch input[type=radio]{width:20px;height:20px;min-height:0;padding:0;margin:0;flex:none;accent-color:currentColor}
.theme-swatch span:last-child{white-space:nowrap}
@media(max-width:640px){.theme-swatches{grid-template-columns:repeat(2,minmax(0,1fr))}}
