/* Core layout. Keep this boring on purpose; feature-specific rules live below. */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f4f5f7;
    color: #1b1d20;
    font: 15px/1.45 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 22px;
    background: #111316;
    color: #fff;
}

.brand a {
    color: #fff;
    font-weight: 800;
    letter-spacing: .08em;
    text-decoration: none;
}

.brand span {
    color: #b9bec5;
    font-weight: 400;
}

.topbar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.topbar nav a {
    color: #e5e7eb;
    text-decoration: none;
}

.container {
    max-width: 1180px;
    margin: 26px auto;
    padding: 0 16px;
}

.card {
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid #e1e4e8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
}

.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

@media (max-width: 800px) {
    .col-3,
    .col-4,
    .col-6,
    .col-8 {
        grid-column: span 12;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }
}

h1,
h2,
h3 {
    margin-top: 0;
}

h1 {
    font-size: 28px;
}

.metric {
    font-size: 28px;
    font-weight: 800;
}

.muted {
    color: #68707a;
}

.small {
    font-size: 13px;
}

.btn {
    display: inline-block;
    padding: 10px 14px;
    border: 0;
    border-radius: 8px;
    background: #1c2025;
    color: #fff;
    cursor: pointer;
    font-weight: 650;
    text-decoration: none;
}

.btn.secondary {
    background: #e9ecef;
    color: #1b1d20;
}

.btn.danger {
    background: #8f2424;
}

.btn.small {
    padding: 6px 9px;
    font-size: 13px;
}

label {
    display: block;
    margin: 0 0 5px;
    font-weight: 650;
}

input,
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #cfd4da;
    border-radius: 8px;
    background: #fff;
    font: inherit;
}

textarea {
    min-height: 90px;
}

form .field {
    margin-bottom: 14px;
}

.table-wrap {
    overflow: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th,
td {
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    white-space: nowrap;
}

th {
    color: #66707a;
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.alert {
    margin-bottom: 16px;
    padding: 11px 14px;
    border-radius: 8px;
}

.alert.success {
    background: #e8f6ec;
    color: #1c6330;
}

.alert.error {
    background: #fbe9e9;
    color: #8b2222;
}

.status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    background: #edf0f2;
    font-size: 12px;
}

.status.approved,
.status.paid,
.status.booked,
.status.confirmed {
    background: #e4f5e9;
    color: #1b6830;
}

.status.pending,
.status.pending_deposit,
.status.ready_for_payment {
    background: #fff3d6;
    color: #765100;
}

.line-items .line {
    display: grid;
    grid-template-columns: 2fr 1.3fr .7fr 1fr 1fr auto;
    align-items: end;
    gap: 8px;
    margin-bottom: 8px;
}

@media (max-width: 900px) {
    .line-items .line {
        grid-template-columns: 1fr 1fr;
    }

    .line-items .line .remove-wrap {
        grid-column: span 2;
    }
}

.summary {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 7px;
    max-width: 440px;
    margin-left: auto;
}

.summary .total {
    padding-top: 8px;
    border-top: 2px solid #222;
    font-size: 18px;
    font-weight: 800;
}

.booking-shell {
    max-width: 720px;
    margin: 30px auto;
}

.public-head {
    margin-bottom: 22px;
    text-align: center;
}

.public-head h1 {
    letter-spacing: .08em;
}

.hidden {
    display: none !important;
}

.right {
    text-align: right;
}

.pill {
    padding: 4px 9px;
    border-radius: 999px;
    background: #eef1f4;
    font-size: 12px;
}

.login {
    max-width: 420px;
    margin: 70px auto;
}

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

.page-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.page-title h1 {
    margin: 0;
}

.rate-preview {
    font-weight: 750;
}

.notice {
    margin: 10px 0;
    padding: 10px;
    border-left: 3px solid #565d66;
    background: #f7f7f8;
}

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

.appt {
    display: grid;
    grid-template-columns: 145px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e4e7ea;
    border-radius: 9px;
    background: #fff;
}

@media (max-width: 650px) {
    .appt {
        grid-template-columns: 1fr;
    }
}

/* Later line-item rules intentionally refine the initial template. */
.line-items .line {
    grid-template-columns: 1.6fr 1.5fr 1.15fr .55fr .8fr .75fr auto;
}

.sms-consent-box{border:1px solid #e3e6e8;border-radius:9px;padding:12px;background:#fafbfc}
.calendar-title{text-align:center}.month-calendar{display:grid;grid-template-columns:repeat(7,minmax(120px,1fr));border:1px solid #dfe3e6;border-radius:10px;overflow:auto}.cal-head{padding:9px;text-align:center;font-weight:700;background:#f2f4f6;border-right:1px solid #dfe3e6}.month-day{min-height:130px;padding:7px;border-top:1px solid #e2e5e8;border-right:1px solid #e2e5e8;background:#fff}.month-day.outside{background:#f8f9fa;color:#929aa3}.month-day.today{box-shadow:inset 0 0 0 2px #1b1d20}.month-date{font-weight:800;margin-bottom:5px}.cal-event{display:block;padding:5px 6px;margin:4px 0;border-radius:6px;background:#edf0f3;color:#17191c;text-decoration:none;font-size:11px;overflow:hidden}.cal-event.confirmed,.cal-event.booked{background:#e5f4ea}.cal-event.pending_deposit{background:#fff2d1}.week-head{display:grid;grid-template-columns:64px repeat(7,1fr);min-width:900px}.week-day-name{text-align:center;padding:8px;border-bottom:1px solid #ddd}.week-day-name.today{background:#f0f3f5}.week-calendar{display:grid;grid-template-columns:64px repeat(7,1fr);height:900px;min-width:900px;overflow:auto;border:1px solid #ddd}.time-axis,.week-day-col{height:840px;position:relative}.time-axis{background:#fafafa}.time-label{position:absolute;right:8px;transform:translateY(-8px);font-size:11px;color:#727a83}.week-day-col{border-left:1px solid #e0e3e5}.hour-line{position:absolute;left:0;right:0;border-top:1px solid #eceeef}.week-event{position:absolute;left:3px;right:3px;padding:4px 6px;border-radius:6px;background:#e5f4ea;color:#142217;text-decoration:none;font-size:11px;overflow:hidden;z-index:2;border:1px solid #c9dfcf}.week-event span{display:block;color:#52605a;margin-top:2px}.week-event.pending_deposit{background:#fff2d1;border-color:#ead79b}.week-event.no_show{background:#f5e7e7;border-color:#e4c7c7}@media(max-width:900px){.month-calendar{min-width:900px}.card:has(.month-calendar),.card:has(.week-calendar){overflow:auto}}

/* --------------------------------------------------------------------------
   Skinlab CRM 0.4.1 theme + navigation cleanup
   -------------------------------------------------------------------------- */
:root{
  --bg:#f4f5f7;
  --surface:#ffffff;
  --surface-2:#f7f8fa;
  --surface-3:#eef1f4;
  --text:#1b1d20;
  --muted:#68707a;
  --border:#dfe3e7;
  --border-soft:#e8ebee;
  --header:#111316;
  --header-text:#f7f8fa;
  --header-muted:#b9bec5;
  --primary:#1c2025;
  --primary-text:#ffffff;
  --secondary:#e9ecef;
  --secondary-text:#1b1d20;
  --danger:#8f2424;
  --success-bg:#e8f6ec;
  --success-text:#1c6330;
  --error-bg:#fbe9e9;
  --error-text:#8b2222;
  --pending-bg:#fff3d6;
  --pending-text:#765100;
  --shadow:0 1px 3px rgba(0,0,0,.06);
}

html[data-theme="dark"]{
  color-scheme:dark;
  --bg:#111418;
  --surface:#191d22;
  --surface-2:#20252b;
  --surface-3:#292f36;
  --text:#eef1f4;
  --muted:#a6afb9;
  --border:#353c44;
  --border-soft:#2a3037;
  --header:#090b0d;
  --header-text:#f7f8fa;
  --header-muted:#aab2bb;
  --primary:#eef1f4;
  --primary-text:#121519;
  --secondary:#2b3239;
  --secondary-text:#eef1f4;
  --danger:#a93a3a;
  --success-bg:#173522;
  --success-text:#9ee3b2;
  --error-bg:#3a1d1d;
  --error-text:#f2aaaa;
  --pending-bg:#3a3017;
  --pending-text:#f1d487;
  --shadow:0 1px 4px rgba(0,0,0,.28);
}

body{background:var(--bg);color:var(--text)}
.topbar{background:var(--header);color:var(--header-text);position:relative;z-index:50}
.brand a{color:var(--header-text)}
.brand span{color:var(--header-muted)}
.card,.appt,table,.month-day{background:var(--surface);border-color:var(--border);color:var(--text)}
.card{box-shadow:var(--shadow)}
.muted,.time-label{color:var(--muted)}
input,select,textarea{background:var(--surface);color:var(--text);border-color:var(--border)}
input::placeholder,textarea::placeholder{color:var(--muted)}
th,td{border-color:var(--border-soft)}
th{color:var(--muted)}
.btn{background:var(--primary);color:var(--primary-text)}
.btn.secondary{background:var(--secondary);color:var(--secondary-text)}
.btn.danger{background:var(--danger);color:#fff}
.alert.success{background:var(--success-bg);color:var(--success-text)}
.alert.error{background:var(--error-bg);color:var(--error-text)}
.notice{background:var(--surface-2);border-left-color:var(--muted)}
.pill,.status{background:var(--surface-3);color:var(--text)}
.status.approved,.status.paid,.status.booked,.status.confirmed,.status.active{background:var(--success-bg);color:var(--success-text)}
.status.pending,.status.pending_deposit,.status.ready_for_payment{background:var(--pending-bg);color:var(--pending-text)}
.status.disabled{background:var(--surface-3);color:var(--muted)}
.row-inactive{opacity:.62}
.row-current{background:color-mix(in srgb,var(--success-bg) 55%,var(--surface))}
.sms-consent-box{background:var(--surface-2);border-color:var(--border)}
.summary .total{border-color:var(--text)}

/* Grouped top navigation */
.main-nav{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.main-nav>a,.nav-group>summary,.nav-theme{
  color:var(--header-text);
  text-decoration:none;
  border:0;
  background:transparent;
  font:inherit;
  cursor:pointer;
  padding:8px 9px;
  border-radius:7px;
  line-height:1.2;
}
.main-nav>a:hover,.nav-group>summary:hover,.nav-theme:hover,.nav-group[open]>summary{background:rgba(255,255,255,.10)}
.nav-group{position:relative}
.nav-group>summary{list-style:none;user-select:none}
.nav-group>summary::-webkit-details-marker{display:none}
.nav-group>summary::after{content:" ▾";font-size:10px;color:var(--header-muted)}
.nav-menu{
  position:absolute;
  top:calc(100% + 7px);
  left:0;
  min-width:210px;
  padding:7px;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--surface);
  box-shadow:0 12px 30px rgba(0,0,0,.22);
  display:grid;
  gap:2px;
  z-index:100;
}
.nav-menu-right{left:auto;right:0}
.nav-menu a,.nav-menu .nav-theme{
  display:block;
  width:100%;
  padding:9px 10px;
  border-radius:7px;
  color:var(--text);
  text-decoration:none;
  text-align:left;
}
.nav-menu a:hover,.nav-menu .nav-theme:hover{background:var(--surface-2)}
.nav-group-right{margin-left:auto}

/* Availability */
.availability-copy{background:var(--surface-2);border:1px solid var(--border);border-radius:10px;padding:14px;margin:14px 0 18px}
.availability-copy h3{margin-bottom:10px}
.blocked-time{border-top:1px solid var(--border-soft);padding:11px 0}
.blocked-time:first-of-type{border-top:0}
.blocked-time form{margin-top:7px}

/* Shop-week calendar: fixed artist column on the left, Mon-Sun across. */
.calendar-card{overflow:hidden}
.shop-week-wrap{overflow:auto;border:1px solid var(--border);border-radius:10px}
.shop-week-grid{display:grid;grid-template-columns:minmax(150px,190px) repeat(7,minmax(155px,1fr));min-width:1260px}
.shop-week-corner,.shop-week-day-head,.shop-week-artist,.shop-week-cell{border-right:1px solid var(--border);border-bottom:1px solid var(--border);padding:9px}
.shop-week-corner,.shop-week-day-head{position:sticky;top:0;background:var(--surface-2);z-index:5;font-weight:700;text-align:center}
.shop-week-corner{left:0;z-index:7;text-align:left}
.shop-week-day-head span{display:block;color:var(--muted);font-size:12px;font-weight:500}
.shop-week-day-head.today,.shop-week-cell.today{background:color-mix(in srgb,var(--pending-bg) 28%,var(--surface))}
.shop-week-artist{position:sticky;left:0;background:var(--surface);z-index:4;min-height:98px}
.shop-week-artist span{display:block;color:var(--muted);font-size:12px;text-transform:capitalize;margin-top:3px}
.shop-week-cell{min-height:98px;background:var(--surface)}
.shop-week-empty{color:var(--muted)}
.shop-appt{display:block;margin:0 0 7px;padding:7px 8px;border-radius:7px;background:var(--surface-3);border:1px solid var(--border);color:var(--text);text-decoration:none;font-size:12px;line-height:1.25}
.shop-appt strong,.shop-appt span,.shop-appt small{display:block}
.shop-appt span{margin-top:2px;font-weight:650}
.shop-appt small{color:var(--muted);margin-top:2px}
.shop-appt.booked,.shop-appt.confirmed{background:var(--success-bg);border-color:color-mix(in srgb,var(--success-text) 30%,var(--border))}
.shop-appt.pending_deposit{background:var(--pending-bg)}
.shop-appt.no_show{background:var(--error-bg)}

/* Existing month/time calendars under both themes. */
.month-calendar,.week-calendar{border-color:var(--border)}
.cal-head,.week-day-name,.time-axis{background:var(--surface-2);border-color:var(--border)}
.month-day.outside{background:var(--surface-2);color:var(--muted)}
.month-day.today{box-shadow:inset 0 0 0 2px var(--text)}
.cal-event,.week-event{background:var(--surface-3);color:var(--text);border-color:var(--border)}
.cal-event.confirmed,.cal-event.booked,.week-event.confirmed,.week-event.booked{background:var(--success-bg);color:var(--text)}
.cal-event.pending_deposit,.week-event.pending_deposit{background:var(--pending-bg);color:var(--text)}
.week-day-col,.hour-line,.week-day-name{border-color:var(--border)}
.week-event span{color:var(--muted)}

@media(max-width:950px){
  .topbar{align-items:flex-start;flex-direction:column}
  .main-nav{width:100%}
  .nav-group-right{margin-left:0}
  .nav-menu{position:fixed;left:16px;right:16px;top:auto;min-width:0}
  .nav-menu-right{left:16px;right:16px}
}
.metric-small{font-size:18px;line-height:1.25;margin-top:7px}
code{background:var(--surface-3);color:var(--text);padding:2px 5px;border-radius:4px}
.soft-rule{border:0;border-top:1px solid var(--border);margin:18px 0}

/* --------------------------------------------------------------------------
   Skinlab CRM 0.4.2 profile, shop hours, and day-board calendar
   -------------------------------------------------------------------------- */
.color-field{display:flex;align-items:center;gap:10px;min-height:42px}
.color-field input[type="color"]{width:58px;height:38px;padding:2px;cursor:pointer}
.contractor-color-swatch,.artist-color-dot{
  display:inline-block;
  width:18px;
  height:18px;
  border-radius:999px;
  background:var(--artist-color,#5B6CFF);
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.16);
}
.contractor-color-swatch{vertical-align:middle}
.profile-grid{display:grid;grid-template-columns:minmax(240px,320px) minmax(0,1fr);gap:16px}
.profile-summary{text-align:center;align-self:start;position:sticky;top:16px}
.profile-avatar{
  --profile-color:#5B6CFF;
  width:92px;height:92px;border-radius:999px;margin:4px auto 14px;
  display:grid;place-items:center;font-size:28px;font-weight:850;
  background:color-mix(in srgb,var(--profile-color) 20%,var(--surface));
  border:3px solid var(--profile-color);
}
.profile-meta-row{
  display:flex;justify-content:space-between;gap:14px;text-align:left;
  padding:10px 0;border-top:1px solid var(--border-soft);font-size:13px
}
.profile-meta-row span{color:var(--muted)}
.profile-meta-row strong{text-align:right;overflow-wrap:anywhere}
.compact-title{margin-top:0;margin-bottom:10px}
.calendar-location-picker{max-width:420px}

/* Old-scheduler-style daily shop board. */
.shop-day-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:12px}
.shop-day-toolbar h2{margin:0}
.shop-day-wrap{overflow:auto;border:1px solid var(--border);border-radius:10px;background:var(--surface)}
.shop-day-board{
  display:grid;
  grid-template-columns:190px var(--timeline-width);
  min-width:calc(190px + var(--timeline-width));
  align-items:stretch;
}
.shop-day-corner,.shop-day-time-head{
  position:sticky;top:0;z-index:12;background:var(--surface-2);
  border-bottom:1px solid var(--border);height:52px
}
.shop-day-corner{
  left:0;z-index:15;padding:15px 12px;font-weight:800;
  border-right:1px solid var(--border)
}
.shop-day-time-head{position:sticky;top:0;overflow:visible}
.shop-day-time-label{
  position:absolute;top:0;height:52px;padding-top:15px;
  transform:translateX(-50%);font-size:11px;color:var(--muted);
  white-space:nowrap
}
.shop-day-time-label:first-child{transform:none}
.shop-day-artist{
  position:sticky;left:0;z-index:8;background:var(--surface);
  min-height:94px;border-right:1px solid var(--border);
  border-bottom:1px solid var(--border);padding:12px;
  display:flex;gap:10px;align-items:flex-start
}
.shop-day-artist strong{display:block}
.shop-day-artist span:not(.artist-color-dot){
  display:block;color:var(--muted);font-size:12px;text-transform:capitalize;margin-top:3px
}
.shop-day-track{
  position:relative;height:94px;background:var(--surface);
  border-bottom:1px solid var(--border);overflow:hidden
}
.shop-day-track.closed-day{
  background:
    repeating-linear-gradient(
      135deg,
      color-mix(in srgb,var(--surface-3) 55%,transparent) 0 8px,
      transparent 8px 16px
    ),
    var(--surface)
}
.shop-day-gridline{
  position:absolute;top:0;bottom:0;border-left:1px solid var(--border-soft);
  pointer-events:none
}
.shop-day-gridline.half-hour{border-left-style:dashed;opacity:.7}
.shop-day-gridline.hour{border-left-color:var(--border)}
.shop-day-appt{
  position:absolute;top:8px;bottom:8px;min-width:34px;
  padding:7px 8px;border-radius:7px;overflow:hidden;
  text-decoration:none;color:var(--text);
  background:color-mix(in srgb,var(--artist-color) 18%,var(--surface));
  border:1px solid color-mix(in srgb,var(--artist-color) 72%,var(--border));
  border-left:5px solid var(--artist-color);
  box-shadow:var(--shadow);z-index:3;font-size:11px;line-height:1.2
}
.shop-day-appt:hover{
  background:color-mix(in srgb,var(--artist-color) 28%,var(--surface));
  z-index:5
}
.shop-day-appt strong,.shop-day-appt span,.shop-day-appt small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shop-day-appt span{font-size:12px;font-weight:750;margin-top:3px}
.shop-day-appt small{color:var(--muted);margin-top:2px}
.shop-day-appt.pending_deposit{border-style:dashed}
.shop-day-appt.no_show{filter:saturate(.45);opacity:.72}
.shop-day-phone{font-size:10px!important}

/* Artist colors across week/month too. */
.cal-event,.week-event{
  border-left:4px solid var(--artist-color,#5B6CFF)!important;
  background:color-mix(in srgb,var(--artist-color,#5B6CFF) 13%,var(--surface))!important
}
.month-day.closed-day,.week-day-col.closed-day,.week-day-name.closed-day{
  background:
    repeating-linear-gradient(
      135deg,
      color-mix(in srgb,var(--surface-3) 55%,transparent) 0 8px,
      transparent 8px 16px
    ),
    var(--surface)
}
.month-closed-label{font-size:9px;color:var(--muted);font-weight:600;margin-left:5px;text-transform:uppercase}
.dynamic-week{grid-template-columns:64px repeat(var(--week-days),minmax(150px,1fr))!important;min-width:max(850px,calc(64px + var(--week-days) * 150px))}
.dynamic-week.week-calendar{height:calc(var(--week-height) + 2px)!important}
.dynamic-week .time-axis,.dynamic-week .week-day-col{height:var(--week-height)!important}

@media(max-width:850px){
  .profile-grid{grid-template-columns:1fr}
  .profile-summary{position:static}
}


/* --------------------------------------------------------------------------
   Skinlab CRM 0.4.3 branding + POS catalog
   -------------------------------------------------------------------------- */
.brand-link{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  min-width:210px;
}
.brand-logo{
  display:block;
  width:150px;
  max-width:24vw;
  height:auto;
}
.brand-crm{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding-left:10px;
  border-left:1px solid rgba(255,255,255,.28);
  color:var(--header-muted);
  font-size:14px;
  font-weight:800;
  letter-spacing:.16em;
}
.catalog-filters{margin-bottom:14px}
.catalog-modifiers{min-width:240px}
.catalog-modifiers details{
  margin:0 0 5px;
  border:1px solid var(--border-soft);
  border-radius:7px;
  background:var(--surface-2);
}
.catalog-modifiers summary{
  cursor:pointer;
  padding:6px 8px;
  font-weight:700;
}
.catalog-option{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:5px 8px;
  border-top:1px solid var(--border-soft);
  font-size:12px;
}
@media(max-width:760px){
  .brand-logo{width:125px;max-width:48vw}
  .brand-link{min-width:0}
  .brand-crm{font-size:12px}
}

/* --------------------------------------------------------------------------
   Skinlab CRM 0.4.4 stacked shop week + mini calendars + Super Admin
   -------------------------------------------------------------------------- */
.quick-calendar-strip{
  display:grid;
  grid-template-columns:repeat(3,minmax(220px,1fr));
  gap:12px;
  margin:0 0 16px;
}
.mini-calendar{padding:10px;margin:0}
.mini-calendar-title{text-align:center;font-weight:800;margin-bottom:8px}
.mini-calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}
.mini-calendar-head{margin-bottom:3px}
.mini-calendar-head span{
  text-align:center;font-size:10px;color:var(--muted);font-weight:800;padding:2px
}
.mini-calendar-day{
  min-height:28px;display:grid;place-items:center;border-radius:6px;
  text-decoration:none;color:var(--text);font-size:11px;border:1px solid transparent
}
.mini-calendar-day:hover{background:var(--surface-2);border-color:var(--border)}
.mini-calendar-day.outside{opacity:.35}
.mini-calendar-day.today{box-shadow:inset 0 0 0 1px var(--text);font-weight:800}
.mini-calendar-day.selected{background:var(--primary);color:var(--primary-text);font-weight:850}
.mini-calendar-day.selected-week:not(.selected){background:color-mix(in srgb,var(--primary) 14%,var(--surface))}
.mini-calendar-day.closed{text-decoration:line-through;color:var(--muted)}
.calendar-view-intro{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.calendar-view-intro h2{margin:0}
.stacked-shop-week{display:grid;gap:18px}
.stacked-day-section{
  border-top:1px solid var(--border-soft);padding-top:16px
}
.stacked-day-section:first-child{border-top:0;padding-top:0}
.stacked-day-section.closed-section{opacity:.88}
.stacked-day-title{margin-bottom:9px}
.calendar-day-title-link,.month-date-link{color:inherit;text-decoration:none}
.calendar-day-title-link:hover,.month-date-link:hover{text-decoration:underline}
.permission-row-form{
  display:grid;grid-template-columns:minmax(140px,180px) auto auto auto;
  gap:10px;align-items:center
}
.permission-check{display:flex;align-items:center;gap:7px;font-weight:600;white-space:nowrap}
.permission-check input{width:auto}
.config-section{margin-bottom:14px}
.config-section h2{margin-bottom:14px}
.config-toggle{min-height:42px;padding:10px 0}
.config-save-bar{display:flex;align-items:center;gap:16px;position:sticky;bottom:12px;z-index:20}

@media(max-width:900px){
  .quick-calendar-strip{grid-template-columns:1fr;overflow:auto}
  .permission-row-form{grid-template-columns:1fr 1fr}
  .config-save-bar{position:static;align-items:flex-start;flex-direction:column}
}

/* --------------------------------------------------------------------------
   Skinlab CRM 0.4.6 continuous shop-week scheduler
   -------------------------------------------------------------------------- */
.quick-calendar-shell{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:8px;
  align-items:stretch;
  margin:0 0 16px;
}
.quick-calendar-viewport{
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  scrollbar-width:thin;
}
.quick-calendar-strip{
  display:flex;
  gap:12px;
  width:max-content;
  margin:0;
}
.quick-calendar-strip .mini-calendar{
  flex:0 0 clamp(220px,calc((100vw - 190px) / 3),320px);
  scroll-snap-align:start;
}
.mini-calendar-scroll-button{
  align-self:stretch;
  min-width:38px;
  padding:0 10px;
  font-size:22px;
}

.on-call-calendar-card{margin-bottom:16px}
.on-call-calendar-list{
  display:flex;
  gap:9px;
  overflow-x:auto;
  padding-bottom:2px;
}
.on-call-calendar-entry{
  min-width:250px;
  padding:9px 11px;
  border:1px solid var(--border);
  border-radius:8px;
  background:var(--surface-2);
}
.on-call-calendar-entry strong,
.on-call-calendar-entry span{display:block}
.on-call-calendar-entry span{
  margin-top:3px;
  color:var(--muted);
  font-size:11px;
}

.shop-scheduler-wrap{
  overflow:auto;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--surface);
}
.shop-scheduler-board{
  display:grid;
  grid-template-columns:190px var(--timeline-width);
  min-width:calc(190px + var(--timeline-width));
  align-items:stretch;
}
.shop-scheduler-corner,
.shop-scheduler-time-head{
  position:sticky;
  top:0;
  height:52px;
  z-index:22;
  background:var(--surface-2);
  border-bottom:1px solid var(--border);
}
.shop-scheduler-corner{
  left:0;
  z-index:25;
  display:flex;
  align-items:center;
  padding:0 12px;
  font-weight:850;
  border-right:1px solid var(--border);
}
.shop-scheduler-time-head{
  position:sticky;
  overflow:visible;
}
.shop-scheduler-day-heading{
  position:sticky;
  left:0;
  z-index:10;
  min-height:38px;
  padding:9px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  background:var(--surface-2);
  border-right:1px solid var(--border);
  border-bottom:1px solid var(--border);
  font-weight:850;
}
.shop-scheduler-day-line{
  min-height:38px;
  border-bottom:1px solid var(--border);
  background:var(--surface-2);
}
.shop-scheduler-day-heading.closed-day,
.shop-scheduler-day-line.closed-day{
  background:
    repeating-linear-gradient(
      135deg,
      color-mix(in srgb,var(--surface-3) 55%,transparent) 0 8px,
      transparent 8px 16px
    ),
    var(--surface-2);
}

.shop-day-track[data-bookable-track="1"]{cursor:crosshair}
.calendar-slot-hover{
  position:absolute;
  top:4px;
  bottom:4px;
  z-index:2;
  pointer-events:none;
  border:1px dashed color-mix(in srgb,var(--primary) 65%,var(--border));
  background:color-mix(in srgb,var(--primary) 10%,transparent);
  border-radius:6px;
}
.calendar-slot-hover span{
  position:absolute;
  top:4px;
  left:5px;
  padding:2px 5px;
  border-radius:4px;
  background:var(--primary);
  color:var(--primary-text);
  font-size:10px;
  font-weight:800;
  white-space:nowrap;
}
.shop-day-appt{z-index:4}

@media(max-width:900px){
  .quick-calendar-shell{
    grid-template-columns:34px minmax(0,1fr) 34px;
  }
  .quick-calendar-strip .mini-calendar{
    flex-basis:min(78vw,280px);
  }
  .mini-calendar-scroll-button{
    min-width:34px;
    padding:0 5px;
  }
}


/* 0.4.7 calendar month/year navigation */
.quick-calendar-navigation{
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto;
    gap:10px;
    align-items:stretch;
    margin-bottom:16px;
}
.quick-calendar-navigation .quick-calendar-shell{
    min-width:0;
    margin-bottom:0;
}
.mini-calendar.current-month{
    border-color:var(--accent);
    box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 28%,transparent);
}
.mini-calendar.current-month .mini-calendar-title{
    color:var(--accent);
    font-weight:800;
}
.mini-calendar.focus-month:not(.current-month){
    border-color:color-mix(in srgb,var(--text) 30%,var(--border));
}
.mini-calendar-year-button{
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:74px;
    white-space:nowrap;
}
@media (max-width:760px){
    .quick-calendar-navigation{
        grid-template-columns:1fr 1fr;
    }
    .quick-calendar-navigation .quick-calendar-shell{
        grid-column:1 / -1;
        grid-row:1;
    }
    .quick-calendar-navigation .mini-calendar-year-button:first-child{
        grid-column:1;
        grid-row:2;
    }
    .quick-calendar-navigation .mini-calendar-year-button:last-child{
        grid-column:2;
        grid-row:2;
    }
}


/* --------------------------------------------------------------------------
   Skinlab CRM 0.5.0 operations, compliance and security
   -------------------------------------------------------------------------- */
.document-grid,
.pipeline-grid,
.health-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:14px;
}
.document-card,
.pipeline-card{
    color:var(--text);
    text-decoration:none;
}
.document-card h2,
.pipeline-card h2{
    margin:12px 0 8px;
}
.document-card-head,
.pipeline-card-head{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
}
.staff-permission-form{
    display:grid;
    grid-template-columns:minmax(120px,160px) minmax(160px,1fr)
        minmax(150px,190px) auto auto auto;
    gap:8px;
    align-items:center;
}
.health-card{
    position:relative;
    min-height:145px;
}
.health-status{
    display:inline-flex;
    padding:4px 8px;
    border-radius:999px;
    font-size:11px;
    font-weight:800;
    background:var(--success-bg);
    color:var(--success-text);
}
.health-status.warning{
    background:var(--pending-bg);
    color:var(--pending-text);
}
.totp-secret,
.gift-card-code{
    padding:14px;
    margin:12px 0;
    border:1px solid var(--border);
    border-radius:9px;
    background:var(--surface-2);
    font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
    font-size:18px;
    font-weight:800;
    letter-spacing:.08em;
    overflow-wrap:anywhere;
}
.consent-shell{
    max-width:900px;
    margin:24px auto;
}
.consent-section{
    margin:20px 0;
}
.consent-legal-text{
    line-height:1.5;
    white-space:normal;
}
.consent-field-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px 16px;
}
.consent-checkbox-field{
    margin:0;
    padding:6px 0;
}
.signature-canvas{
    display:block;
    width:100%;
    height:220px;
    border:1px solid var(--border);
    border-radius:8px;
    background:#fff;
    touch-action:none;
    margin-bottom:8px;
}
.consent-answer{
    padding:9px 0;
    border-bottom:1px solid var(--border-soft);
}
.consent-answer:last-child{
    border-bottom:0;
}

@media(max-width:900px){
    .staff-permission-form{
        grid-template-columns:1fr 1fr;
    }
    .consent-field-grid{
        grid-template-columns:1fr;
    }
}

@media print{
    .topbar,
    .page-title .actions,
    form:not(.print-keep),
    .btn{
        display:none!important;
    }
    body{
        background:#fff!important;
        color:#000!important;
    }
    .container{
        max-width:none;
        margin:0;
        padding:0;
    }
    .card{
        box-shadow:none;
        border-color:#bbb;
    }
}

.backup-code-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(120px,1fr));
    gap:8px;
    margin-top:12px;
}
.backup-code-grid code{
    display:block;
    padding:10px;
    text-align:center;
    font-size:14px;
}
.security-inline-form{
    max-width:430px;
}


/* --------------------------------------------------------------------------
   Skinlab CRM 0.5.1 Booked-style calendar refinements
   -------------------------------------------------------------------------- */

/* Calendar is a primary work surface, so let it use the available viewport. */
.calendar-page .container{
    width:100%;
    max-width:none;
    margin:12px auto;
    padding:0 10px;
}
.calendar-page .page-title{
    margin-bottom:10px;
}
.calendar-page .calendar-card{
    padding:0;
    border:0;
    border-radius:0;
    box-shadow:none;
    background:transparent;
}
.calendar-page .calendar-location-picker{
    margin-bottom:10px;
}
.calendar-home-button{
    width:36px;
    height:36px;
    padding:7px;
    display:inline-grid;
    place-items:center;
}
.calendar-home-button svg{
    width:18px;
    height:18px;
}

/* Compact, exactly-three-month navigator. */
.quick-calendar-panel{
    margin:0 0 10px;
    border:1px solid var(--border);
    border-radius:8px;
    background:var(--surface);
    box-shadow:var(--shadow);
    overflow:hidden;
}
.quick-calendar-toolbar{
    min-height:36px;
    padding:5px 8px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    border-bottom:1px solid var(--border-soft);
    background:var(--surface-2);
}
.quick-calendar-collapse{
    display:inline-flex;
    align-items:center;
    gap:5px;
    padding:4px 7px;
    border:0;
    border-radius:6px;
    background:transparent;
    color:var(--text);
    font:inherit;
    font-size:12px;
    font-weight:800;
    cursor:pointer;
}
.quick-calendar-collapse:hover{
    background:var(--surface-3);
}
.quick-calendar-toggle-icon{
    width:15px;
    height:15px;
    transition:transform .14s ease;
}
.quick-calendar-collapse.collapsed .quick-calendar-toggle-icon{
    transform:rotate(-90deg);
}
.quick-calendar-current-label{
    font-size:11px;
    color:var(--muted);
    font-weight:700;
}
.quick-calendar-body{
    display:grid;
    grid-template-columns:34px minmax(0,1fr) 34px;
    gap:7px;
    align-items:stretch;
    padding:8px;
}
.quick-calendar-body[hidden]{
    display:none!important;
}
.quick-calendar-three{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
    min-width:0;
}
.quick-calendar-three .mini-calendar{
    min-width:0;
    padding:7px;
    margin:0;
    border:1px solid var(--border-soft);
    border-radius:7px;
    background:var(--surface);
    box-shadow:none;
}
.quick-calendar-three .mini-calendar-title{
    margin-bottom:5px;
    font-size:12px;
}
.quick-calendar-three .mini-calendar-day{
    min-height:22px;
    border-radius:4px;
    font-size:10px;
}
.quick-calendar-three .mini-calendar-head span{
    font-size:9px;
    padding:1px;
}
.quick-calendar-three .mini-calendar.current-month{
    border-color:var(--accent);
    box-shadow:inset 0 0 0 1px var(--accent);
}
.quick-calendar-three .mini-calendar.current-month .mini-calendar-title{
    color:var(--accent);
}
.quick-calendar-three .mini-calendar.focus-month:not(.current-month){
    border-color:color-mix(in srgb,var(--text) 30%,var(--border));
}
.quick-calendar-body .mini-calendar-scroll-button{
    width:34px;
    min-width:34px;
    padding:0;
    border:1px solid var(--border-soft);
    border-radius:6px;
    background:var(--surface-2);
    color:var(--text);
    font-size:22px;
    cursor:pointer;
}
.quick-calendar-body .mini-calendar-scroll-button:hover{
    background:var(--surface-3);
}

/* The scheduler fills the page and only scrolls horizontally when it truly
   cannot fit the configured visible hours. */
.shop-scheduler-wrap{
    width:100%;
    overflow-x:auto;
    overflow-y:hidden;
    border-radius:6px;
    background:var(--surface);
}
.shop-scheduler-board{
    width:100%;
    grid-template-columns:170px minmax(var(--timeline-min-width),1fr);
    min-width:calc(170px + var(--timeline-min-width));
}
.shop-scheduler-corner,
.shop-scheduler-time-head{
    height:44px;
}
.shop-scheduler-corner{
    padding:0 9px;
    font-size:12px;
}
.shop-day-time-label{
    height:44px;
    padding-top:12px;
    font-size:10px;
}
.shop-scheduler-day-heading,
.shop-scheduler-day-line{
    min-height:32px;
}
.shop-scheduler-day-heading{
    padding:6px 9px;
    font-size:12px;
}
.shop-day-artist{
    min-height:76px;
    height:76px;
    padding:8px 9px;
    align-items:center;
}
.shop-day-artist .artist-color-dot{
    width:12px;
    height:12px;
    flex:0 0 auto;
}
.shop-day-artist span:not(.artist-color-dot){
    margin-top:1px;
    font-size:10px;
}
.shop-day-track{
    height:76px;
}

/* Each appointment uses the full artist-row square, like the old scheduler. */
.shop-day-appt{
    top:0;
    bottom:0;
    min-width:36px;
    padding:6px 7px;
    border-radius:0;
    border-top:0;
    border-bottom:0;
    box-shadow:none;
}
.shop-day-appt:hover{
    z-index:7;
    box-shadow:inset 0 0 0 1px
        color-mix(in srgb,var(--artist-color) 50%,var(--text));
}
.calendar-slot-hover{
    top:0;
    bottom:0;
    border-radius:0;
}

/* Desktop dropdowns anchor to their trigger's right edge, so the menu opens
   toward the left and never widens the page. */
@media(min-width:951px){
    .nav-menu,
    .nav-menu-right{
        left:auto;
        right:0;
        max-width:min(320px,calc(100vw - 20px));
        transform-origin:top right;
    }
    .nav-menu{
        white-space:nowrap;
    }
}

@media(max-width:900px){
    .quick-calendar-three{
        min-width:660px;
    }
    .quick-calendar-body{
        overflow-x:auto;
    }
}



/* Skinlab 0.5.2 site footer */
.site-footer{
    width:100%;
    padding:18px 14px 22px;
    text-align:center;
    color:var(--muted);
    font-size:12px;
    line-height:1.4;
}
.calendar-page + .site-footer,
.calendar-page .site-footer{
    padding-top:12px;
}
@media print{
    .site-footer{
        display:none!important;
    }
}


/* --------------------------------------------------------------------------
   Skinlab CRM 0.5.3 booking, appointment lab sheet and customer management
   -------------------------------------------------------------------------- */

.lab-kicker{
    margin-bottom:5px;
    font-size:10px;
    font-weight:900;
    letter-spacing:.14em;
    text-transform:uppercase;
    color:var(--muted);
}

/* Public booking */
.booking-public-container{
    width:100%;
    max-width:1180px;
    margin:0 auto;
    padding:24px 16px 10px;
}
.booking-lab-shell{
    max-width:none;
}
.booking-public-header{
    min-height:74px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin-bottom:20px;
}
.booking-logo{
    display:block;
    width:min(330px,58vw);
    max-height:74px;
    object-fit:contain;
    object-position:left center;
}
.booking-account-links{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:14px;
    flex-wrap:wrap;
    font-size:13px;
    font-weight:700;
}
.booking-heading{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:24px;
    margin-bottom:16px;
}
.booking-heading h1,
.booking-status-card h1,
.client-auth-card h1,
.client-account-heading h1{
    margin:0;
    letter-spacing:-.03em;
}
.booking-heading p{
    margin:7px 0 0;
    color:var(--muted);
}
.booking-call-link{
    font-size:14px;
    font-weight:800;
    white-space:nowrap;
}
.booking-form-card{
    padding:0;
    overflow:hidden;
}
.booking-section{
    display:grid;
    grid-template-columns:74px minmax(0,1fr);
    border-bottom:1px solid var(--border);
}
.booking-section-number{
    display:flex;
    align-items:flex-start;
    justify-content:center;
    padding-top:26px;
    border-right:1px solid var(--border);
    background:var(--surface-2);
    color:var(--muted);
    font-size:11px;
    font-weight:900;
    letter-spacing:.12em;
}
.booking-section-body{
    padding:24px;
}
.booking-section-body h2{
    margin:0 0 18px;
    font-size:18px;
}

.booking-cost-estimate{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-top:2px;
    padding:12px 14px;
    border:1px solid var(--border-soft);
    border-radius:8px;
    background:var(--surface-2);
}
.booking-cost-estimate span{
    color:var(--muted);
    font-size:11px;
    font-weight:800;
    letter-spacing:.05em;
    text-transform:uppercase;
}
.booking-cost-estimate strong{
    font-size:15px;
    text-align:right;
}

.booking-policy-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    margin-bottom:16px;
}
.booking-policy-grid > div{
    padding:13px 14px;
    border:1px solid var(--border-soft);
    border-radius:8px;
    background:var(--surface-2);
}
.booking-policy-grid strong,
.booking-policy-grid span{
    display:block;
}
.booking-policy-grid strong{
    margin-bottom:4px;
    font-size:12px;
}
.booking-policy-grid span{
    color:var(--muted);
    font-size:11px;
    line-height:1.45;
}
.booking-check{
    display:flex;
    align-items:flex-start;
    gap:8px;
    font-size:12px;
}
.booking-check input{
    width:auto;
    margin-top:2px;
}
.booking-check.compact{
    margin-top:11px;
}
.booking-consent-row{
    display:flex;
    gap:18px;
    flex-wrap:wrap;
    margin-top:14px;
    font-size:12px;
}
.booking-consent-row input{
    width:auto;
}
.booking-payment-panel{
    display:block;
    padding:20px 24px 24px;
    background:var(--surface-2);
    overflow:hidden;
}
.booking-payment-panel > *{
    min-width:0;
    max-width:100%;
}
.booking-payment-summary{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:18px;
    margin-bottom:16px;
}
.booking-payment-summary span,
.booking-payment-summary small{
    display:block;
}
.booking-payment-summary span{
    color:var(--muted);
    font-size:10px;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
}
.booking-payment-summary strong{
    display:block;
    margin:2px 0;
    font-size:27px;
}
.booking-payment-summary small{
    color:var(--muted);
}
.booking-poynt-badge{
    padding:7px 10px;
    border:1px solid var(--border);
    border-radius:999px;
    background:var(--surface);
    color:var(--muted);
    font-size:11px;
    font-weight:750;
    white-space:nowrap;
}
.booking-poynt-shell{
    width:100%;
    max-width:680px;
    margin:0 auto 16px;
    padding:14px;
    border:1px solid var(--border);
    border-radius:10px;
    background:var(--surface);
    overflow:hidden;
}
.booking-poynt-shell[hidden]{
    display:none!important;
}
.booking-surcharge-note{
    margin-top:8px;
    color:var(--muted);
    font-size:11px;
    line-height:1.4;
}
.booking-payment-action{
    display:flex;
    justify-content:flex-end;
}
.booking-payment-action .btn{
    min-width:180px;
}
#poynt-card{
    display:block;
    width:100%;
    max-width:100%;
    min-width:0;
    min-height:0;
    overflow:hidden;
    contain:layout;
}
#poynt-card iframe{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    overflow:hidden!important;
}
.public-booking-page{
    overflow-x:hidden;
}
.booking-footer-actions{
    display:flex;
    justify-content:center;
    gap:9px;
    margin:15px 0 4px;
    font-size:12px;
}
.booking-status-card{
    max-width:680px;
    margin:70px auto;
    padding:42px;
    text-align:center;
}
.booking-status-card p{
    max-width:520px;
    margin:12px auto 22px;
    color:var(--muted);
    font-size:15px;
    line-height:1.55;
}
.booking-policy-banner{
    display:flex;
    align-items:flex-start;
    gap:20px;
    padding:13px 16px;
    margin-bottom:14px;
    border:1px solid var(--border);
    border-radius:8px;
    background:var(--surface-2);
    font-size:12px;
}
.booking-policy-banner strong{
    min-width:175px;
}
.booking-policy-banner span{
    color:var(--muted);
    line-height:1.45;
}
.manage-appointment-card{
    display:flex;
    justify-content:space-between;
    gap:30px;
    align-items:center;
}
.manage-appointment-card h1{
    margin:3px 0 4px;
}
.manage-appointment-service{
    margin:0;
    color:var(--muted);
}
.manage-appointment-date{
    min-width:220px;
    padding:16px 20px;
    border-left:3px solid var(--accent);
    background:var(--surface-2);
}
.manage-appointment-date strong,
.manage-appointment-date span{
    display:block;
}
.manage-appointment-date strong{
    font-size:15px;
}
.manage-appointment-date span{
    margin-top:2px;
    font-size:22px;
    font-weight:800;
}

/* Admin settings */
.settings-stack{
    display:grid;
    gap:14px;
}
.settings-section{
    margin:0;
}
.settings-section-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:20px;
}
.settings-state{
    display:inline-flex;
    padding:5px 9px;
    border-radius:999px;
    background:var(--surface-2);
    font-size:11px;
    font-weight:900;
}
.settings-state.on{
    color:var(--success-text);
    background:var(--success-bg);
}
.toggle-setting{
    min-height:68px;
    display:flex;
    align-items:flex-start;
    gap:10px;
    padding:12px;
    border:1px solid var(--border-soft);
    border-radius:8px;
    background:var(--surface-2);
}
.toggle-setting input{
    width:auto;
    margin-top:3px;
}
.toggle-setting span{
    display:block;
}
.toggle-setting strong,
.toggle-setting small{
    display:block;
}
.toggle-setting small{
    margin-top:3px;
    color:var(--muted);
    font-weight:400;
}
.input-suffix{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
}
.input-suffix input{
    border-radius:7px 0 0 7px;
}
.input-suffix span{
    display:flex;
    align-items:center;
    padding:0 10px;
    border:1px solid var(--border);
    border-left:0;
    border-radius:0 7px 7px 0;
    background:var(--surface-2);
    color:var(--muted);
    font-size:12px;
}
.settings-save-bar{
    position:sticky;
    bottom:0;
    z-index:20;
    display:flex;
    justify-content:flex-end;
    padding:10px 0;
    background:linear-gradient(
        to bottom,
        transparent,
        var(--bg) 35%
    );
}

/* Appointment workbench */
.appointment-workbench-page .container{
    width:100%;
    max-width:none;
    padding:14px 20px 24px;
}
.appointment-workbench{
    max-width:1440px;
    margin:0 auto;
}
.appointment-workbench-head,
.appointment-record-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:20px;
    margin-bottom:12px;
}
.appointment-workbench-head h1,
.appointment-record-head h1{
    margin:0;
    letter-spacing:-.035em;
}
.appointment-lab-sheet{
    overflow:visible;
    border:1px solid var(--border);
    border-radius:9px;
    background:var(--surface);
    box-shadow:var(--shadow);
}
.appointment-lab-section{
    display:grid;
    grid-template-columns:115px minmax(0,1fr);
    border-bottom:1px solid var(--border);
}
.appointment-section-label{
    padding:20px 14px;
    border-right:1px solid var(--border);
    background:var(--surface-2);
}
.appointment-section-label span,
.appointment-section-label small{
    display:block;
}
.appointment-section-label span{
    font-size:11px;
    font-weight:950;
    letter-spacing:.13em;
}
.appointment-section-label small{
    margin-top:4px;
    color:var(--muted);
    font-size:10px;
}
.appointment-section-content{
    padding:18px 20px;
}
.appointment-client-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
}
.appointment-detail-grid{
    display:grid;
    grid-template-columns:minmax(180px,1fr) minmax(220px,1.2fr)
        minmax(230px,1fr) auto;
    gap:12px;
    align-items:end;
}
.appointment-quote-grid{
    display:grid;
    grid-template-columns:180px 180px 180px 220px minmax(260px,1fr);
    gap:12px;
    align-items:end;
}
.quote-notes-field{
    min-width:0;
}
.appointment-notes{
    min-height:105px;
}
.appointment-override{
    padding:0 0 12px;
    white-space:nowrap;
}
.customer-picker{
    margin-bottom:14px;
}
.customer-picker > label{
    display:block;
    margin-bottom:5px;
    font-weight:700;
}
.customer-picker-input-wrap{
    position:relative;
    max-width:620px;
}
.customer-lookup-results{
    position:absolute;
    z-index:60;
    top:calc(100% + 4px);
    left:0;
    right:0;
    max-height:330px;
    overflow:auto;
    border:1px solid var(--border);
    border-radius:8px;
    background:var(--surface);
    box-shadow:var(--shadow-lg,0 15px 45px rgba(0,0,0,.2));
}
.customer-lookup-item{
    width:100%;
    display:block;
    padding:10px 12px;
    border:0;
    border-bottom:1px solid var(--border-soft);
    background:transparent;
    color:var(--text);
    text-align:left;
    cursor:pointer;
}
.customer-lookup-item:hover{
    background:var(--surface-2);
}
.customer-lookup-item strong,
.customer-lookup-item span{
    display:block;
}
.customer-lookup-item span{
    margin-top:2px;
    color:var(--muted);
    font-size:10px;
}
.selected-customer-badge{
    display:inline-flex;
    align-items:center;
    gap:10px;
    margin-top:8px;
    padding:5px 8px;
    border-radius:6px;
    background:var(--surface-2);
    font-size:11px;
}
.link-button{
    padding:0;
    border:0;
    background:none;
    color:var(--accent);
    cursor:pointer;
    font:inherit;
}
.money-input{
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
}
.money-input span{
    display:flex;
    align-items:center;
    padding:0 10px;
    border:1px solid var(--border);
    border-right:0;
    border-radius:7px 0 0 7px;
    background:var(--surface-2);
    color:var(--muted);
}
.money-input input{
    border-radius:0 7px 7px 0;
}
.lab-readout{
    min-height:39px;
    display:flex;
    align-items:center;
    padding:0 11px;
    border:1px solid var(--border);
    border-radius:7px;
    background:var(--surface-2);
    font-size:18px;
    font-weight:850;
}
.appointment-save-bar{
    position:sticky;
    bottom:0;
    z-index:30;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    padding:12px 16px;
    border-radius:0 0 9px 9px;
    background:var(--surface-2);
    box-shadow:0 -5px 15px rgba(0,0,0,.05);
}
.appointment-save-summary strong,
.appointment-save-summary span{
    display:block;
}
.appointment-save-summary span{
    margin-top:2px;
    color:var(--muted);
    font-size:11px;
}

/* Appointment record */
.appointment-record{
    max-width:1480px;
    margin:0 auto;
}
.appointment-record-head{
    padding-left:13px;
    border-left:5px solid var(--artist-color);
}
.appointment-record-meta{
    display:flex;
    gap:9px;
    flex-wrap:wrap;
    margin-top:7px;
    color:var(--muted);
    font-size:12px;
}
.appointment-record-meta span:not(:last-child)::after{
    content:"·";
    margin-left:9px;
}
.appointment-record-strip{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    margin-bottom:12px;
    border:1px solid var(--border);
    border-radius:8px;
    overflow:hidden;
    background:var(--surface);
}
.appointment-record-strip > div{
    padding:12px 14px;
    border-right:1px solid var(--border);
}
.appointment-record-strip > div:last-child{
    border-right:0;
}
.appointment-record-strip span,
.appointment-record-strip strong{
    display:block;
}
.appointment-record-strip span{
    color:var(--muted);
    font-size:9px;
    font-weight:800;
    letter-spacing:.1em;
    text-transform:uppercase;
}
.appointment-record-strip strong{
    margin-top:3px;
    font-size:16px;
}
.appointment-record-grid{
    display:grid;
    grid-template-columns:1fr 1fr 1.35fr;
    gap:12px;
    margin-bottom:12px;
}
.appointment-record-grid.two-column{
    grid-template-columns:1fr 1fr;
}
.appointment-record-card{
    margin:0;
}
.appointment-record-notes{
    min-width:0;
}
.appointment-note-block{
    padding:11px 12px;
    border:1px solid var(--border-soft);
    border-radius:7px;
    background:var(--surface-2);
    line-height:1.5;
}
.lab-data-list{
    display:grid;
    grid-template-columns:135px minmax(0,1fr);
    gap:7px 12px;
    margin:0;
}
.lab-data-list dt{
    color:var(--muted);
    font-size:11px;
    font-weight:700;
}
.lab-data-list dd{
    margin:0;
    min-width:0;
}
.inline-control-form{
    display:flex;
    gap:8px;
    align-items:center;
}
.payment-row,
.consent-record-row{
    display:flex;
    justify-content:space-between;
    gap:12px;
    align-items:center;
    padding:10px 0;
    border-bottom:1px solid var(--border-soft);
}
.payment-row > div span{
    display:block;
    margin-top:2px;
    color:var(--muted);
    font-size:10px;
}
.appointment-event-list{
    max-height:330px;
    overflow:auto;
}
.appointment-event{
    padding:9px 0;
    border-bottom:1px solid var(--border-soft);
}
.appointment-event strong,
.appointment-event span{
    display:block;
}
.appointment-event span{
    color:var(--muted);
    font-size:10px;
}
.appointment-event p{
    margin:3px 0 0;
    font-size:11px;
}

/* Customer management */
.customer-filter-panel{
    margin-bottom:12px;
}
.customer-filter-grid{
    display:grid;
    grid-template-columns:minmax(280px,2fr) repeat(3,minmax(150px,1fr)) auto;
    gap:10px;
    align-items:end;
}
.customer-filter-check{
    display:flex;
    align-items:center;
    gap:7px;
    min-height:39px;
    padding-bottom:7px;
    white-space:nowrap;
    font-size:12px;
}
.customer-filter-check input{
    width:auto;
}
.customer-table-card{
    padding:0;
}
.customer-table-card table{
    margin:0;
}
.customer-name-link{
    font-weight:800;
}
.warning-text{
    color:var(--warning-text,#b26b00);
    font-weight:750;
}
.customer-profile-metrics{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:10px;
    margin-bottom:12px;
}
.customer-profile-metrics .card{
    margin:0;
}
.customer-profile-metrics span,
.customer-profile-metrics strong{
    display:block;
}
.customer-profile-metrics span{
    color:var(--muted);
    font-size:10px;
    text-transform:uppercase;
    letter-spacing:.08em;
}
.customer-profile-metrics strong{
    margin-top:3px;
    font-size:19px;
}
.customer-profile-grid{
    margin-bottom:12px;
}
.merge-primary-card{
    border-left:4px solid var(--accent);
}
.customer-search-bar{
    display:flex;
    gap:10px;
    align-items:end;
}
.customer-search-bar .field{
    flex:1;
    margin-bottom:0;
}

/* Client accounts */
.client-auth-shell{
    max-width:520px;
    margin:30px auto 60px;
}
.client-auth-shell > a{
    display:block;
    margin-bottom:18px;
}
.client-auth-card{
    padding:26px;
}
.client-auth-card p{
    color:var(--muted);
}
.client-account-shell{
    max-width:1060px;
    margin:0 auto;
}
.client-account-heading{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:20px;
    margin-bottom:14px;
}
.client-appointment-list{
    display:grid;
    gap:10px;
}
.client-appointment-card{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    margin:0;
}
.client-appointment-card h2{
    margin:8px 0 3px;
}
.client-appointment-card p{
    margin:3px 0;
}
.compact-form{
    padding:10px 0;
    min-width:250px;
}

@media(max-width:1100px){
    .appointment-client-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .appointment-detail-grid,
    .appointment-quote-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .appointment-record-grid{
        grid-template-columns:1fr 1fr;
    }
    .appointment-record-notes{
        grid-column:1 / -1;
    }
    .customer-filter-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .customer-filter-search{
        grid-column:1 / -1;
    }
}

@media(max-width:760px){
    .booking-public-header,
    .booking-heading,
    .manage-appointment-card,
    .appointment-workbench-head,
    .appointment-record-head,
    .client-account-heading{
        align-items:flex-start;
        flex-direction:column;
    }
    .booking-account-links{
        justify-content:flex-start;
    }
    .booking-section{
        grid-template-columns:1fr;
    }
    .booking-section-number{
        justify-content:flex-start;
        padding:8px 14px;
        border-right:0;
        border-bottom:1px solid var(--border);
    }
    .booking-section-body{
        padding:17px;
    }
    .booking-policy-grid{
        grid-template-columns:1fr;
    }
    .booking-payment-panel{
        padding:16px;
    }
    .booking-payment-summary{
        align-items:flex-start;
        flex-direction:column;
        gap:8px;
    }
    .booking-poynt-badge{
        white-space:normal;
    }
    .booking-poynt-shell{
        padding:10px;
        border-radius:8px;
    }
    .booking-payment-action .btn{
        width:100%;
    }
    .booking-policy-banner{
        flex-direction:column;
        gap:5px;
    }
    .manage-appointment-date{
        width:100%;
        min-width:0;
    }
    .appointment-lab-section{
        grid-template-columns:1fr;
    }
    .appointment-section-label{
        padding:8px 12px;
        border-right:0;
        border-bottom:1px solid var(--border);
    }
    .appointment-client-grid,
    .appointment-detail-grid,
    .appointment-quote-grid,
    .appointment-record-grid,
    .appointment-record-grid.two-column,
    .appointment-record-strip,
    .customer-profile-metrics,
    .customer-filter-grid{
        grid-template-columns:1fr;
    }
    .appointment-record-strip > div{
        border-right:0;
        border-bottom:1px solid var(--border);
    }
    .appointment-record-strip > div:last-child{
        border-bottom:0;
    }
    .appointment-save-bar{
        align-items:flex-start;
        flex-direction:column;
    }
    .customer-filter-search{
        grid-column:auto;
    }
    .customer-search-bar{
        align-items:stretch;
        flex-direction:column;
    }
    .client-appointment-card{
        align-items:flex-start;
        flex-direction:column;
    }
}

/* --------------------------------------------------------------------------
   Skinlab CRM 0.5.4 — flatter lab UI, calendar fit, artist ordering, modifiers
   -------------------------------------------------------------------------- */

/* Reduce the rounded consumer-app feel across the CRM. */
.card,
.btn,
input,
select,
textarea,
.alert,
.notice,
.nav-menu,
.quick-calendar-panel,
.quick-calendar-three .mini-calendar,
.booking-policy-grid > div,
.booking-status-card,
.toggle-setting,
.lab-readout,
.appointment-lab-sheet,
.appointment-record-strip,
.appointment-note-block,
.customer-lookup-results,
.selected-customer-badge,
.health-status,
.status,
.pill{
    border-radius:3px;
}

.card{
    box-shadow:0 1px 1px rgba(0,0,0,.035);
}

.btn{
    padding:9px 13px;
}

.status,
.pill{
    border-radius:2px;
}

/* Main shop calendar: fit the configured day into the browser rather than
   creating a nested horizontal scrollbar. */
.shop-scheduler-wrap{
    overflow-x:hidden;
    overflow-y:visible;
    border-radius:2px;
}

.shop-scheduler-board{
    width:100%;
    min-width:0;
    grid-template-columns:155px minmax(0,1fr);
}

.shop-scheduler-corner{
    min-width:0;
}

.shop-scheduler-time-head,
.shop-scheduler-day-line{
    position:relative;
    min-width:0;
    overflow:visible;
}

.shop-scheduler-day-heading,
.shop-scheduler-day-line{
    min-height:32px;
    height:32px;
}

.shop-scheduler-day-line .day-scale-label{
    height:32px;
    padding-top:8px;
    font-size:9px;
}

.shop-scheduler-time-head .shop-day-time-label:last-child,
.shop-scheduler-day-line .shop-day-time-label:last-child{
    transform:translateX(-100%);
}

.shop-day-artist{
    height:72px;
    min-height:72px;
}

.shop-day-track{
    height:72px;
}

.shop-day-appt{
    padding:5px 6px;
}

/* Artist order admin sheet. */
.artist-order-sheet{
    max-width:980px;
    margin:0 auto;
    border:1px solid var(--border);
    background:var(--surface);
}

.artist-order-location{
    max-width:980px;
    margin-left:auto;
    margin-right:auto;
}

.artist-order-head,
.artist-order-row{
    display:grid;
    grid-template-columns:70px minmax(260px,1fr) 180px 110px;
    gap:12px;
    align-items:center;
}

.artist-order-head{
    padding:9px 12px;
    border-bottom:1px solid var(--border);
    background:var(--surface-2);
    color:var(--muted);
    font-size:10px;
    font-weight:850;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.artist-order-row{
    min-height:54px;
    padding:8px 12px;
    border-bottom:1px solid var(--border-soft);
}

.artist-order-row:last-child{
    border-bottom:0;
}

.artist-order-number{
    font-size:18px;
    font-weight:850;
    color:var(--muted);
}

.artist-order-name{
    display:flex;
    align-items:center;
    gap:9px;
}

.artist-order-actions{
    display:flex;
    justify-content:flex-end;
    gap:5px;
}

.artist-order-save{
    display:flex;
    justify-content:flex-end;
    padding:10px 12px;
    border-top:1px solid var(--border);
    background:var(--surface-2);
}

/* Appointment workbench stays wide and flatter. */
.appointment-workbench-page .container,
.customer-workbench-page .container,
.completed-work-page .container{
    width:100%;
    max-width:none;
    padding:12px 16px 24px;
}

.appointment-lab-sheet,
.appointment-record-card,
.appointment-record-grid > .card{
    border-radius:2px;
}

.appointment-lab-section{
    grid-template-columns:105px minmax(0,1fr);
}

.appointment-detail-grid{
    grid-template-columns:minmax(180px,1fr) minmax(220px,1.25fr)
        minmax(210px,1fr) minmax(210px,1fr);
}

.appointment-save-bar{
    border-radius:0;
}

/* Customer pages use the same lab-record language as appointments. */
.customer-record,
.customer-management-sheet{
    width:100%;
    max-width:1480px;
    margin:0 auto;
}

.customer-profile-metrics{
    gap:0;
    border:1px solid var(--border);
    background:var(--surface);
}

.customer-profile-metrics .card{
    margin:0;
    padding:11px 14px;
    border:0;
    border-right:1px solid var(--border);
    border-radius:0;
    box-shadow:none;
}

.customer-profile-metrics .card:last-child{
    border-right:0;
}

.customer-profile-grid{
    gap:0;
    border:1px solid var(--border);
    background:var(--surface);
}

.customer-profile-grid > .card{
    margin:0;
    border:0;
    border-right:1px solid var(--border);
    border-radius:0;
    box-shadow:none;
}

.customer-profile-grid > .card:last-child{
    border-right:0;
}

.customer-record > .card.table-wrap,
.customer-management-sheet > .card.table-wrap,
.customer-management-sheet > .card,
.customer-record .card.table-wrap{
    border-radius:2px;
}

.customer-table-card{
    border-radius:2px;
}

/* Completed-work catalog + modifier entry. */
.completed-work-sheet{
    width:100%;
    max-width:1540px;
    margin:0 auto;
}

.procedure-sheet{
    border:1px solid var(--border);
    background:var(--surface);
}

.procedure-header-band{
    display:grid;
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:10px;
    padding:14px;
    border-bottom:1px solid var(--border);
    background:var(--surface-2);
}

.procedure-header-band > .field{
    grid-column:span 2;
    margin:0;
}

.procedure-client-readout{
    grid-column:span 2;
    padding:7px 10px;
    border-left:3px solid var(--accent);
    background:var(--surface);
}

.procedure-client-readout span,
.procedure-client-readout strong,
.procedure-client-readout small{
    display:block;
}

.procedure-client-readout span,
.procedure-client-readout small{
    color:var(--muted);
    font-size:10px;
}

.procedure-items-section,
.procedure-total-section{
    padding:14px;
}

.procedure-items-section{
    padding-top:10px;
}

.procedure-line-head,
.completed-work-page .line-items .modifier-line{
    display:grid;
    grid-template-columns:
        minmax(175px,1.85fr)
        minmax(155px,1.55fr)
        minmax(120px,1fr)
        minmax(145px,1.2fr)
        64px
        92px
        86px
        78px;
    gap:6px;
    align-items:center;
}

.procedure-line-head{
    padding:0 0 5px;
    color:var(--muted);
    font-size:9px;
    font-weight:800;
    letter-spacing:.04em;
    text-transform:uppercase;
}

.completed-work-page .line-items .modifier-line{
    padding:7px 0;
    margin:0;
    border-top:1px solid var(--border-soft);
}

.completed-work-page .line-items .modifier-line:first-child{
    border-top:1px solid var(--border);
}

.completed-work-page .modifier-line .field{
    min-width:0;
    margin:0;
}

.completed-work-page .modifier-line .field > label{
    display:none;
}

.completed-work-page .modifier-line select,
.completed-work-page .modifier-line input:not([type="hidden"]){
    height:36px;
    min-height:36px;
    width:100%;
}

.completed-work-page .modifier-controls{
    grid-column:1 / -1;
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    align-items:flex-end;
    padding-top:1px;
}

.completed-work-page .modifier-controls:empty{
    display:none;
}

.procedure-modifier-group{
    min-width:170px;
    flex:1 1 180px;
}

.procedure-modifier-group > label{
    display:block;
    margin:0 0 3px;
    color:var(--muted);
    font-size:9px;
    font-weight:800;
    text-transform:uppercase;
}

.procedure-modifier-checks{
    min-height:36px;
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
    padding:5px 7px;
    border:1px solid var(--border);
    background:var(--surface-2);
}

.procedure-modifier-checks label{
    display:flex;
    align-items:center;
    gap:5px;
    margin:0;
    font-size:11px;
}

.procedure-modifier-checks input{
    width:auto!important;
    height:auto!important;
    min-height:0!important;
}

.line-total-field{
    min-height:36px;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    white-space:nowrap;
}

.line-total-field span{
    display:none;
}

.line-total-field strong{
    font-size:14px;
}

.completed-work-page .remove-wrap{
    display:flex;
    align-items:center;
    justify-content:flex-end;
}

.completed-work-page .remove-wrap .btn{
    width:100%;
    min-height:36px;
    padding:6px 8px;
}

.procedure-items-actions{
    display:flex;
    align-items:center;
    padding-top:7px;
    border-top:1px solid var(--border);
}

.procedure-tax-readout{
    padding:8px 10px;
    border-left:3px solid var(--border);
    background:var(--surface-2);
}

.procedure-tax-readout span,
.procedure-tax-readout strong,
.procedure-tax-readout small{
    display:block;
}

.procedure-tax-readout span,
.procedure-tax-readout small{
    color:var(--muted);
    font-size:10px;
}

.procedure-save-bar{
    display:flex;
    justify-content:flex-end;
    padding:10px 14px;
    border-top:1px solid var(--border);
    background:var(--surface-2);
}

.encryption-repair-card{
    margin-top:14px;
    border-left:3px solid var(--pending-text);
}

@media(max-width:1100px){
    .shop-scheduler-board{
        grid-template-columns:135px minmax(0,1fr);
    }

    .shop-day-time-label{
        font-size:8px;
    }

    .artist-order-head,
    .artist-order-row{
        grid-template-columns:55px minmax(190px,1fr) 130px 100px;
    }

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

}

@media(max-width:760px){
    .artist-order-head{
        display:none;
    }

    .artist-order-row{
        grid-template-columns:45px 1fr auto;
    }

    .artist-order-row > span:nth-of-type(2){
        display:none;
    }

    .customer-profile-grid{
        gap:0;
    }

    .customer-profile-grid > .card,
    .customer-profile-metrics .card{
        border-right:0;
        border-bottom:1px solid var(--border);
    }

    .procedure-header-band{
        grid-template-columns:1fr;
    }

    .procedure-header-band > *{
        grid-column:1!important;
    }
}


@media(max-width:900px){
    .procedure-line-head{
        display:none;
    }

    .completed-work-page .line-items .modifier-line{
        grid-template-columns:repeat(2,minmax(0,1fr));
        align-items:end;
        gap:7px 8px;
        padding:9px 0;
    }

    .completed-work-page .modifier-line .field > label{
        display:block;
        margin-bottom:3px;
    }

    .completed-work-page .modifier-controls{
        grid-column:1 / -1;
    }

    .completed-work-page .line-total-field,
    .completed-work-page .remove-wrap{
        min-height:36px;
    }

    .completed-work-page .line-total-field{
        justify-content:flex-start;
        gap:6px;
    }

    .completed-work-page .line-total-field span{
        display:inline;
        color:var(--muted);
        font-size:9px;
        font-weight:800;
        text-transform:uppercase;
    }
}

@media(max-width:560px){
    .completed-work-page .line-items .modifier-line{
        grid-template-columns:1fr;
    }

    .completed-work-page .modifier-controls{
        grid-column:1;
    }
}


/* Skinlab CRM 0.5.5 calendar header */
.shop-scheduler-week-title{
    grid-column:1 / -1;
    min-height:42px;
    display:grid;
    place-items:center;
    padding:8px 14px;
    border-bottom:1px solid var(--border);
    background:var(--surface-2);
    font-size:13px;
    font-weight:850;
    letter-spacing:.015em;
    text-align:center;
}
.shop-scheduler-board,
.shop-scheduler-wrap,
.shop-scheduler-day-line,
.shop-day-track{
    overflow-x:hidden;
}
.shop-scheduler-day-line{
    min-width:0;
}


/* --------------------------------------------------------------------------
   Skinlab CRM 0.5.5 public masthead, time controls and transaction audit
   -------------------------------------------------------------------------- */
.public-lab-masthead{
    display:grid;
    grid-template-columns:1fr auto 1fr;
    align-items:center;
    gap:20px;
    min-height:116px;
    margin-bottom:18px;
    padding:12px 0 14px;
    border-bottom:1px solid var(--border);
}
.public-lab-masthead-spacer{
    min-width:1px;
}
.public-lab-brand{
    display:grid;
    justify-items:center;
    gap:7px;
    color:var(--text);
    text-decoration:none;
}
.public-lab-brand-mark{
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:320px;
    padding:9px 26px 8px;
    border-bottom:1px solid var(--border);
    background:
        linear-gradient(
            90deg,
            transparent,
            var(--surface-2) 18%,
            var(--surface-2) 82%,
            transparent
        );
}
.public-lab-brand .booking-logo{
    width:min(300px,52vw);
    max-height:62px;
    object-position:center;
}
.public-lab-brand-label{
    font-size:9px;
    font-weight:900;
    letter-spacing:.28em;
    color:var(--muted);
}
.public-lab-masthead .booking-account-links{
    justify-self:end;
}

.client-auth-brand{
    display:grid;
    justify-items:center;
    gap:10px;
    margin:0 auto 18px;
    text-align:center;
}
.client-auth-brand > a{
    display:block;
}
.client-auth-logo{
    display:block;
    width:min(310px,72vw);
    max-height:78px;
    object-fit:contain;
}
.client-auth-brand-rule{
    width:min(360px,82vw);
    display:flex;
    align-items:center;
    gap:10px;
    color:var(--muted);
    font-size:9px;
    font-weight:900;
    letter-spacing:.22em;
}
.client-auth-brand-rule::before,
.client-auth-brand-rule::after{
    content:"";
    height:1px;
    flex:1;
    background:var(--border);
}
.client-login-actions{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
}
.client-auth-links{
    display:flex;
    justify-content:space-between;
    gap:14px;
    margin-top:18px;
    padding-top:14px;
    border-top:1px solid var(--border-soft);
    font-size:12px;
}

.appointment-detail-grid{
    grid-template-columns:
        minmax(170px,.9fr)
        minmax(210px,1.1fr)
        minmax(155px,.72fr)
        minmax(190px,.9fr)
        minmax(190px,.9fr);
}
.appointment-time-selects{
    display:grid;
    grid-template-columns:minmax(58px,1fr) auto minmax(62px,1fr) minmax(64px,.85fr);
    align-items:center;
    gap:5px;
}
.appointment-time-selects select{
    min-width:0;
}
.time-select-separator{
    color:var(--muted);
    font-size:17px;
    font-weight:800;
}
.appointment-save-actions{
    display:flex;
    align-items:center;
    gap:8px;
}

.transaction-filter-bar{
    margin-bottom:12px;
}
.transaction-metrics{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:10px;
    margin-bottom:12px;
}
.transaction-metrics .card{
    margin:0;
}
.transaction-metrics span,
.transaction-metrics strong,
.transaction-metrics small{
    display:block;
}
.transaction-metrics span{
    color:var(--muted);
    font-size:9px;
    font-weight:850;
    letter-spacing:.08em;
    text-transform:uppercase;
}
.transaction-metrics strong{
    margin:5px 0 3px;
    font-size:20px;
}
.transaction-metrics small{
    color:var(--muted);
    line-height:1.35;
}
.waitlist-submit-panel{
    grid-template-columns:minmax(260px,1fr) minmax(20px,.5fr) auto;
}

@media(max-width:1200px){
    .appointment-detail-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }
    .transaction-metrics{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }
}

@media(max-width:760px){
    .public-lab-masthead{
        grid-template-columns:1fr;
        justify-items:center;
        min-height:0;
    }
    .public-lab-masthead-spacer{
        display:none;
    }
    .public-lab-masthead .booking-account-links{
        justify-self:center;
        justify-content:center;
    }
    .public-lab-brand-mark{
        min-width:0;
        width:min(360px,88vw);
    }
    .appointment-detail-grid,
    .transaction-metrics,
    .waitlist-submit-panel{
        grid-template-columns:1fr;
    }
    .appointment-time-selects{
        grid-template-columns:minmax(65px,1fr) auto minmax(70px,1fr) minmax(72px,1fr);
    }
    .client-login-actions,
    .client-auth-links{
        align-items:flex-start;
        flex-direction:column;
    }
}


/* --------------------------------------------------------------------------
   Skinlab CRM 0.5.6 team controls, inventory ordering, tax/customer pancakes
   -------------------------------------------------------------------------- */

.footer-version{
    margin-left:8px;
    color:var(--muted);
    font-size:10px;
    font-weight:700;
    letter-spacing:.04em;
}

.inline-toggle-form{
    margin:0;
}
.compact-toggle{
    display:inline-flex;
    align-items:center;
    gap:7px;
    margin:0;
    font-size:11px;
    font-weight:700;
}
.compact-toggle input{
    width:auto;
    margin:0;
}

.switch-row{
    display:flex;
    align-items:flex-start;
    gap:10px;
    margin:0;
}
.switch-row input{
    width:auto;
    margin-top:3px;
}
.switch-row span,
.switch-row strong,
.switch-row small{
    display:block;
}
.switch-row small{
    margin-top:2px;
    color:var(--muted);
    font-weight:400;
    line-height:1.35;
}
.compact-switch-row{
    padding:8px 10px;
    border:1px solid var(--border-soft);
    background:var(--surface-2);
}

.team-control-bar{
    margin-bottom:12px;
}
.contractor-service-sheet{
    padding:0;
    overflow:hidden;
}
.contractor-service-master{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:24px;
    padding:17px 18px;
    border-bottom:1px solid var(--border);
    background:var(--surface-2);
}
.contractor-service-master h2{
    margin:0 0 3px;
}
.contractor-service-master p{
    margin:0;
}
.contractor-service-master .switch-row{
    min-width:245px;
    padding:10px 12px;
    border:1px solid var(--border);
    background:var(--surface);
}
.contractor-service-table input[type="checkbox"]{
    width:auto;
}
.contractor-service-table input[type="number"]{
    min-width:88px;
}

.calendar-unavailable-block{
    position:absolute;
    top:0;
    bottom:0;
    z-index:2;
    pointer-events:none;
    background:
        repeating-linear-gradient(
            -45deg,
            rgba(127,127,127,.11),
            rgba(127,127,127,.11) 5px,
            rgba(127,127,127,.04) 5px,
            rgba(127,127,127,.04) 10px
        );
    border-right:1px solid rgba(127,127,127,.13);
}
.calendar-unavailable-block.time-off{
    background:
        repeating-linear-gradient(
            -45deg,
            rgba(127,127,127,.19),
            rgba(127,127,127,.19) 5px,
            rgba(127,127,127,.08) 5px,
            rgba(127,127,127,.08) 10px
        );
}
.shop-day-track.artist-unavailable-day{
    cursor:not-allowed;
}
.shop-day-track.artist-unavailable-day::after{
    content:"Unavailable";
    position:absolute;
    z-index:4;
    right:8px;
    top:50%;
    transform:translateY(-50%);
    color:var(--muted);
    font-size:9px;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
}
.shop-day-gridline{
    z-index:3;
}
.shop-day-appt{
    z-index:6;
}
.calendar-slot-hover{
    z-index:7;
}

.reorder-summary-strip{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    border:1px solid var(--border);
    background:var(--surface);
    margin-bottom:12px;
}
.reorder-summary-strip > div{
    padding:11px 14px;
    border-right:1px solid var(--border);
}
.reorder-summary-strip > div:last-child{
    border-right:0;
}
.reorder-summary-strip span,
.reorder-summary-strip strong{
    display:block;
}
.reorder-summary-strip span{
    color:var(--muted);
    font-size:9px;
    font-weight:850;
    letter-spacing:.08em;
    text-transform:uppercase;
}
.reorder-summary-strip strong{
    margin-top:2px;
    font-size:19px;
}
.reorder-needed-row td:first-child{
    border-left:3px solid var(--warning-text,#a86a00);
}
.reorder-ordered-row td:first-child{
    border-left:3px solid var(--accent);
}
.row-editor summary{
    cursor:pointer;
    color:var(--accent);
    font-weight:700;
    font-size:11px;
}
.pancake-table-card{
    padding:0;
}
.pancake-table-card > table{
    margin:0;
}

.jewelry-request-layout{
    display:grid;
    grid-template-columns:minmax(330px,.72fr) minmax(0,1.6fr);
    gap:12px;
    align-items:start;
}
.jewelry-request-intake{
    position:sticky;
    top:74px;
    margin:0;
}
.customer-request-search{
    display:flex;
    align-items:end;
    gap:8px;
    margin-bottom:14px;
}
.customer-request-search .field{
    flex:1;
    margin-bottom:0;
}
.jewelry-request-board{
    display:grid;
    gap:10px;
}
.jewelry-request-filter-tabs{
    display:flex;
    flex-wrap:wrap;
    gap:5px;
    padding:7px;
    border:1px solid var(--border);
    background:var(--surface);
}
.jewelry-request-filter-tabs a{
    padding:6px 9px;
    text-decoration:none;
    color:var(--muted);
    font-size:11px;
    font-weight:750;
}
.jewelry-request-filter-tabs a.active{
    background:var(--surface-2);
    color:var(--text);
    box-shadow:inset 0 -2px 0 var(--accent);
}
.jewelry-request-card{
    margin:0;
    border-left:3px solid var(--border);
}
.jewelry-request-card.status-arrived{
    border-left-color:var(--accent);
}
.jewelry-request-card.status-ordered{
    border-left-color:var(--warning-text,#a86a00);
}
.jewelry-request-card-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
}
.jewelry-request-card h3{
    margin:7px 0 3px;
}
.jewelry-contact-actions{
    display:flex;
    gap:6px;
}
.jewelry-specs{
    margin-top:10px;
    padding:9px 10px;
    border:1px solid var(--border-soft);
    background:var(--surface-2);
    font-size:12px;
    line-height:1.45;
}
.jewelry-request-meta{
    display:flex;
    flex-wrap:wrap;
    gap:8px 18px;
    margin:10px 0;
    color:var(--muted);
    font-size:10px;
}
.jewelry-request-meta strong{
    color:var(--text);
}

.tax-rule-banner{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    border:1px solid var(--border);
    margin-bottom:12px;
    background:var(--surface);
}
.tax-rule-banner > div{
    padding:12px 14px;
    border-right:1px solid var(--border);
}
.tax-rule-banner > div:last-child{
    border-right:0;
}
.tax-rule-banner strong,
.tax-rule-banner span{
    display:block;
}
.tax-rule-banner strong{
    font-size:11px;
}
.tax-rule-banner span{
    margin-top:3px;
    color:var(--muted);
    font-size:10px;
    line-height:1.4;
}
.tax-pancake-section{
    margin-bottom:12px;
    border:1px solid var(--border);
    background:var(--surface);
}
.tax-section-heading{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:13px 15px;
    border-bottom:1px solid var(--border);
    background:var(--surface-2);
}
.tax-section-heading h2{
    margin:0;
}
.tax-inline-editor{
    display:grid;
    grid-template-columns:
        minmax(150px,1fr)
        minmax(180px,1.25fr)
        minmax(90px,.55fr)
        minmax(130px,.75fr)
        minmax(130px,.75fr)
        auto
        auto
        auto;
    gap:8px;
    align-items:end;
    padding:12px 14px;
    border-bottom:1px solid var(--border);
}
.tax-category-editor{
    grid-template-columns:
        minmax(180px,1fr)
        minmax(180px,1fr)
        auto
        minmax(130px,.75fr)
        minmax(130px,.75fr)
        auto
        auto
        auto;
}
.tax-inline-editor .field{
    margin-bottom:0;
}
.tax-active-toggle{
    min-height:39px;
    display:flex;
    align-items:center;
    gap:6px;
    padding:0 8px;
    white-space:nowrap;
    border:1px solid var(--border);
    background:var(--surface-2);
    font-size:11px;
    font-weight:700;
}
.tax-active-toggle input{
    width:auto;
    margin:0;
}

.customer-profile-panel{
    margin-bottom:10px;
    border:1px solid var(--border);
    background:var(--surface);
}
.customer-profile-panel-head{
    padding:13px 15px 9px;
    border-bottom:1px solid var(--border);
    background:var(--surface-2);
}
.customer-profile-panel-head h2{
    margin:0;
}
.customer-wide-profile-form{
    padding:13px 15px 14px;
}
.customer-contact-row{
    display:grid;
    grid-template-columns:
        minmax(120px,.8fr)
        minmax(120px,.8fr)
        minmax(160px,1fr)
        minmax(200px,1.2fr)
        minmax(190px,1.1fr);
    gap:9px;
}
.customer-contact-row .field{
    margin-bottom:0;
}
.customer-notes-wide{
    margin-top:10px;
}
.customer-notes-wide textarea{
    min-height:74px;
}
.customer-profile-readout{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    margin:0;
}
.customer-profile-readout > div{
    padding:11px 14px;
    border-right:1px solid var(--border);
}
.customer-profile-readout > div:last-child{
    border-right:0;
}
.customer-profile-readout dt{
    color:var(--muted);
    font-size:9px;
    font-weight:850;
    letter-spacing:.07em;
    text-transform:uppercase;
}
.customer-profile-readout dd{
    margin:3px 0 0;
}
.customer-access-strip{
    display:grid;
    grid-template-columns:minmax(0,1.65fr) minmax(240px,.7fr);
    border:1px solid var(--border);
    background:var(--surface);
    margin-bottom:10px;
}
.customer-communication-panel,
.customer-client-access-panel{
    padding:11px 14px;
}
.customer-communication-panel{
    border-right:1px solid var(--border);
}
.customer-communication-panel h3{
    margin:0;
}
.customer-communication-form{
    display:grid;
    grid-template-columns:1fr 1fr auto;
    gap:8px;
    align-items:center;
    margin-top:9px;
}
.customer-client-access-panel{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
}
.customer-sms-readout{
    display:flex;
    gap:18px;
    margin-top:8px;
    font-size:11px;
}

.public-lab-brand-mark{
    border-top:0 !important;
}

@media(max-width:1180px){
    .tax-inline-editor,
    .tax-category-editor{
        grid-template-columns:repeat(4,minmax(0,1fr));
    }
    .customer-contact-row{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }
    .jewelry-request-layout{
        grid-template-columns:1fr;
    }
    .jewelry-request-intake{
        position:static;
    }
}

@media(max-width:760px){
    .contractor-service-master,
    .jewelry-request-card-head,
    .customer-client-access-panel{
        align-items:flex-start;
        flex-direction:column;
    }
    .reorder-summary-strip,
    .tax-rule-banner,
    .customer-profile-readout,
    .customer-access-strip,
    .customer-contact-row,
    .customer-communication-form,
    .tax-inline-editor,
    .tax-category-editor{
        grid-template-columns:1fr;
    }
    .tax-rule-banner > div,
    .reorder-summary-strip > div,
    .customer-profile-readout > div{
        border-right:0;
        border-bottom:1px solid var(--border);
    }
    .tax-rule-banner > div:last-child,
    .reorder-summary-strip > div:last-child,
    .customer-profile-readout > div:last-child{
        border-bottom:0;
    }
    .customer-communication-panel{
        border-right:0;
        border-bottom:1px solid var(--border);
    }
    .customer-request-search{
        align-items:stretch;
        flex-direction:column;
    }
}


/* --------------------------------------------------------------------------
   Skinlab CRM 0.5.7 layout polish
   -------------------------------------------------------------------------- */

html{
    min-height:100%;
}
body{
    min-height:100vh;
    display:flex;
    flex-direction:column;
}
body > main.container{
    flex:1 0 auto;
    width:100%;
}
.site-footer{
    flex:0 0 auto;
    margin-top:auto;
    padding:15px 16px 18px;
    border-top:1px solid var(--border);
    color:var(--muted);
    font-size:11px;
    font-weight:600;
    letter-spacing:.015em;
}
.footer-separator{
    display:inline-block;
    margin:0 8px;
    color:var(--border-strong, var(--border));
}
.footer-version{
    margin-left:0;
    color:var(--muted);
    font-size:11px;
    font-weight:700;
    letter-spacing:.025em;
}

.public-lab-masthead-centered{
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:112px;
}
.public-lab-brand-rule-style{
    width:min(380px,88vw);
    display:grid;
    justify-items:center;
    gap:8px;
}
.public-lab-brand-rule-style .booking-logo{
    width:min(310px,72vw);
    max-height:78px;
    object-position:center;
}
.public-page-brand-rule{
    width:100%;
}
.booking-bottom-account-links{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:11px;
    margin:22px auto 4px;
    padding-top:16px;
    border-top:1px solid var(--border-soft);
    color:var(--muted);
    font-size:12px;
    font-weight:700;
}
.booking-bottom-account-links a{
    color:var(--text);
    text-decoration:none;
}
.booking-bottom-account-links a:hover{
    text-decoration:underline;
}
.consent-public-brand{
    margin-top:8px;
}

.calendar-home-button{
    width:36px;
    height:36px;
    min-width:36px;
    padding:0!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    line-height:1!important;
    vertical-align:middle;
}
.calendar-home-button svg{
    display:block;
    width:18px;
    height:18px;
    margin:0;
    flex:0 0 18px;
}
.calendar-bottom-navigation{
    display:grid;
    grid-template-columns:minmax(150px,1fr) 44px minmax(150px,1fr);
    gap:8px;
    align-items:center;
    max-width:520px;
    margin:16px auto 4px;
}
.calendar-bottom-arrow:first-child{
    text-align:right;
}
.calendar-bottom-arrow:last-child{
    text-align:left;
}
.calendar-bottom-home{
    justify-self:center;
}

.appointment-status-form .grid{
    grid-template-columns:repeat(12,minmax(0,1fr));
}
.appointment-status-form .field{
    min-width:0;
}
.appointment-status-form select,
.appointment-status-form input{
    min-width:0;
}
.appointment-status-form .btn{
    min-width:140px;
}

.reminder-pancake-summary{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    margin-bottom:12px;
    border:1px solid var(--border);
    background:var(--surface);
}
.reminder-pancake-summary > div{
    padding:11px 14px;
    border-right:1px solid var(--border);
}
.reminder-pancake-summary > div:last-child{
    border-right:0;
}
.reminder-pancake-summary span,
.reminder-pancake-summary strong{
    display:block;
}
.reminder-pancake-summary span{
    color:var(--muted);
    font-size:9px;
    font-weight:850;
    letter-spacing:.08em;
    text-transform:uppercase;
}
.reminder-pancake-summary strong{
    margin-top:3px;
    font-size:17px;
}
.reminder-pancake-section{
    margin-bottom:12px;
    border:1px solid var(--border);
    background:var(--surface);
}
.reminder-section-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:12px 14px;
    border-bottom:1px solid var(--border);
    background:var(--surface-2);
}
.reminder-section-head h2{
    margin:0;
}
.reminder-rule-row{
    display:grid;
    grid-template-columns:
        minmax(170px,.9fr)
        minmax(110px,.42fr)
        auto
        minmax(360px,2fr)
        auto;
    gap:9px;
    align-items:end;
    padding:11px 14px;
    border-bottom:1px solid var(--border-soft);
}
.reminder-rule-row:last-child{
    border-bottom:0;
}
.reminder-rule-row .field{
    margin-bottom:0;
}
.reminder-template-field textarea{
    min-height:64px;
    resize:vertical;
}
.reminder-active-toggle{
    min-height:39px;
    display:flex;
    align-items:center;
    gap:6px;
    padding:0 10px;
    border:1px solid var(--border);
    background:var(--surface-2);
    white-space:nowrap;
}
.reminder-active-toggle input{
    width:auto;
    margin:0;
}
.reminder-new-rule{
    background:var(--surface-2);
}
.reminder-new-badge{
    min-height:39px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0 10px;
    color:var(--muted);
    font-size:10px;
    font-weight:850;
    letter-spacing:.08em;
    text-transform:uppercase;
}
.reminder-message-table table{
    margin:0;
}
.reminder-message-body{
    min-width:360px;
    max-width:720px;
    white-space:normal;
    line-height:1.4;
}

@media(max-width:980px){
    .reminder-rule-row{
        grid-template-columns:1fr 150px auto;
    }
    .reminder-template-field{
        grid-column:1 / -1;
    }
}
@media(max-width:700px){
    .reminder-pancake-summary,
    .reminder-rule-row{
        grid-template-columns:1fr;
    }
    .reminder-pancake-summary > div{
        border-right:0;
        border-bottom:1px solid var(--border);
    }
    .reminder-pancake-summary > div:last-child{
        border-bottom:0;
    }
    .reminder-template-field{
        grid-column:auto;
    }
    .calendar-bottom-navigation{
        grid-template-columns:1fr 40px 1fr;
    }
    .calendar-bottom-arrow{
        padding-left:9px;
        padding-right:9px;
        font-size:11px;
    }
}


/* --------------------------------------------------------------------------
   Skinlab CRM 0.5.8 customer/call-list/shop-settings polish
   -------------------------------------------------------------------------- */

.phone-format-invalid{
    border-color:#b7791f!important;
    box-shadow:0 0 0 1px rgba(183,121,31,.12);
}
.phone-format-warning{
    margin-top:4px;
    color:#8a5b18;
    line-height:1.35;
}

.shop-settings-links{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}
.shop-settings-artist-order{
    margin:0;
    border:0;
    box-shadow:none;
}
.shop-settings-artist-order .artist-order-head{
    border-top:0;
}

.shopping-quick-add{
    padding:0;
    overflow:hidden;
}
.shopping-quick-add-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:12px 14px;
    border-bottom:1px solid var(--border);
    background:var(--surface-2);
}
.shopping-quick-add-head h2{
    margin:0;
}
.shopping-quick-add-form{
    display:grid;
    grid-template-columns:minmax(240px,1.35fr) minmax(110px,.45fr) minmax(220px,1fr) auto;
    gap:8px;
    align-items:end;
    padding:11px 14px;
}
.shopping-quick-add-form .field{
    margin-bottom:0;
}
.shopping-list-rows{
    border-top:1px solid var(--border);
}
.shopping-list-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:9px 14px;
    border-bottom:1px solid var(--border-soft);
}
.shopping-list-row:last-child{
    border-bottom:0;
}
.shopping-list-row > div:first-child{
    display:flex;
    align-items:baseline;
    gap:9px;
    flex-wrap:wrap;
}
.shopping-list-row small{
    width:100%;
    color:var(--muted);
}
.shopping-list-actions{
    display:flex;
    gap:6px;
    flex:0 0 auto;
}

.call-list-add{
    padding:0;
    overflow:hidden;
}
.call-list-add-head{
    padding:12px 14px;
    border-bottom:1px solid var(--border);
    background:var(--surface-2);
}
.call-list-add-head h2{
    margin:0;
}
.call-list-add-form{
    display:grid;
    grid-template-columns:
        minmax(110px,.7fr)
        minmax(110px,.7fr)
        minmax(145px,.85fr)
        minmax(180px,1fr)
        minmax(135px,.7fr)
        minmax(100px,.55fr)
        minmax(100px,.55fr);
    gap:8px;
    align-items:end;
    padding:11px 14px;
}
.call-list-add-form .field{
    margin-bottom:0;
}
.call-list-note-field{
    grid-column:span 2;
}
.call-list-toolbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin:0 0 8px;
}
.call-list-tabs{
    display:flex;
    gap:4px;
    padding:4px;
    border:1px solid var(--border);
    background:var(--surface);
}
.call-list-tabs a{
    padding:6px 9px;
    color:var(--muted);
    text-decoration:none;
    font-size:11px;
    font-weight:750;
}
.call-list-tabs a.active{
    color:var(--text);
    background:var(--surface-2);
    box-shadow:inset 0 -2px 0 var(--accent);
}
.call-list-source{
    display:inline-block;
    padding:4px 7px;
    border:1px solid var(--border);
    background:var(--surface-2);
    font-size:9px;
    font-weight:850;
    letter-spacing:.06em;
    text-transform:uppercase;
}
.call-list-source.waitlist{
    border-color:var(--accent);
}
.call-list-action-cell{
    min-width:300px;
    white-space:normal;
}
.call-list-note{
    margin-bottom:6px;
}
.call-list-offer-form{
    display:grid;
    grid-template-columns:minmax(130px,1fr) auto auto;
    gap:5px;
    align-items:center;
}
.call-list-offer-form input{
    min-width:130px;
}

.customer-login-invite-form{
    margin:0;
}

@media(max-width:1100px){
    .shopping-quick-add-form{
        grid-template-columns:2fr 1fr 2fr;
    }
    .shopping-quick-add-form .btn{
        grid-column:1 / -1;
        justify-self:start;
    }
    .call-list-add-form{
        grid-template-columns:repeat(4,minmax(0,1fr));
    }
}
@media(max-width:760px){
    .shopping-quick-add-form,
    .call-list-add-form{
        grid-template-columns:1fr;
    }
    .call-list-note-field{
        grid-column:auto;
    }
    .shopping-list-row,
    .call-list-toolbar{
        align-items:flex-start;
        flex-direction:column;
    }
    .call-list-offer-form{
        grid-template-columns:1fr;
    }
}

.customer-profile-metrics.three-up{
    grid-template-columns:repeat(3,minmax(0,1fr));
}
.customer-access-strip.communication-only{
    grid-template-columns:1fr;
}
.customer-access-strip.communication-only .customer-communication-panel{
    border-right:0;
}

.reorder-summary-strip{
    grid-template-columns:repeat(3,minmax(0,1fr));
}


/* --------------------------------------------------------------------------
   Skinlab CRM 0.5.9 calendar shading, SMS pancakes, mobile navigation
   -------------------------------------------------------------------------- */

.mobile-nav-toggle{
    display:none;
    align-items:center;
    gap:7px;
    padding:7px 9px;
    border:1px solid rgba(255,255,255,.18);
    background:rgba(255,255,255,.07);
    color:var(--header-text);
    font:inherit;
    font-size:12px;
    font-weight:750;
    cursor:pointer;
}
.mobile-nav-toggle svg{
    width:18px;
    height:18px;
    display:block;
}

/* Current day and elapsed calendar time */
.shop-scheduler-day-heading.calendar-current-day{
    background:
        color-mix(
            in srgb,
            var(--accent) 12%,
            var(--surface-2)
        );
    box-shadow:
        inset 3px 0 0 var(--accent),
        inset 0 -1px 0 var(--border);
}
.shop-scheduler-day-heading.calendar-current-day
.calendar-day-title-link{
    font-weight:850;
}
.shop-scheduler-day-line.calendar-current-day{
    background:
        color-mix(
            in srgb,
            var(--accent) 5%,
            var(--surface)
        );
}
.shop-day-artist.calendar-current-day{
    background:
        color-mix(
            in srgb,
            var(--accent) 4%,
            var(--surface)
        );
}
.shop-day-track.calendar-current-day{
    background:
        color-mix(
            in srgb,
            var(--accent) 2.5%,
            var(--surface)
        );
}
.calendar-past-day{
    opacity:.54;
    filter:saturate(.55);
}
.shop-scheduler-day-heading.calendar-past-day{
    opacity:.62;
}
.calendar-past-time-mask{
    position:absolute;
    left:0;
    top:0;
    bottom:0;
    width:0;
    z-index:9;
    pointer-events:none;
    background:rgba(91,99,110,.20);
    backdrop-filter:grayscale(.55) saturate(.55);
    box-shadow:inset -1px 0 0 rgba(62,70,80,.40);
    transition:width .35s linear;
}

/* Appointment hover inspector */
.appointment-hover-card{
    position:fixed;
    z-index:3000;
    width:min(390px,calc(100vw - 20px));
    max-height:min(520px,calc(100vh - 20px));
    overflow:auto;
    padding:0;
    border:1px solid var(--border);
    background:var(--surface);
    box-shadow:0 14px 36px rgba(0,0,0,.24);
    pointer-events:none;
}
.appointment-hover-card[hidden]{
    display:none!important;
}
.appointment-hover-head{
    display:flex;
    justify-content:space-between;
    gap:14px;
    align-items:flex-start;
    padding:11px 12px;
    border-bottom:1px solid var(--border);
    background:var(--surface-2);
}
.appointment-hover-head > strong{
    font-size:14px;
}
.appointment-hover-head > span{
    color:var(--muted);
    font-size:10px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.055em;
}
.appointment-hover-row{
    display:grid;
    grid-template-columns:105px minmax(0,1fr);
    gap:10px;
    padding:7px 12px;
    border-bottom:1px solid var(--border-soft);
}
.appointment-hover-row:last-child{
    border-bottom:0;
}
.appointment-hover-row > span{
    color:var(--muted);
    font-size:10px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.04em;
}
.appointment-hover-row > strong{
    min-width:0;
    white-space:normal;
    overflow-wrap:anywhere;
    font-size:11px;
    font-weight:650;
}

/* Central SMS template editor */
.sms-template-summary{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    margin-bottom:12px;
    border:1px solid var(--border);
    background:var(--surface);
}
.sms-template-summary > div{
    padding:11px 14px;
    border-right:1px solid var(--border);
}
.sms-template-summary > div:last-child{
    border-right:0;
}
.sms-template-summary span,
.sms-template-summary strong{
    display:block;
}
.sms-template-summary span{
    color:var(--muted);
    font-size:9px;
    font-weight:850;
    letter-spacing:.08em;
    text-transform:uppercase;
}
.sms-template-summary strong{
    margin-top:3px;
    font-size:17px;
}
.sms-template-sheet{
    border:1px solid var(--border);
    background:var(--surface);
}
.sms-template-sheet-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:12px 14px;
    border-bottom:1px solid var(--border);
    background:var(--surface-2);
}
.sms-template-sheet-head h2{
    margin:0;
}
.sms-template-row{
    display:grid;
    grid-template-columns:minmax(210px,.85fr) minmax(360px,2fr) auto;
    gap:10px;
    align-items:end;
    padding:11px 14px;
    border-bottom:1px solid var(--border-soft);
}
.sms-template-row:last-child{
    border-bottom:0;
}
.sms-template-name strong,
.sms-template-name span,
.sms-template-name small{
    display:block;
}
.sms-template-name span{
    margin-top:2px;
    color:var(--muted);
    font-size:9px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.06em;
}
.sms-template-name small{
    margin-top:6px;
    color:var(--muted);
    line-height:1.35;
}
.sms-template-body{
    margin-bottom:0!important;
}
.sms-template-body textarea{
    min-height:68px;
}
.sms-template-active{
    min-height:39px;
    display:flex;
    align-items:center;
    gap:6px;
    padding:0 9px;
    border:1px solid var(--border);
    background:var(--surface-2);
    white-space:nowrap;
}
.sms-template-active input{
    width:auto;
    margin:0;
}

/* SMS Marketing pancake layout */
.marketing-summary-strip{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    margin-bottom:12px;
    border:1px solid var(--border);
    background:var(--surface);
}
.marketing-summary-strip > div{
    padding:11px 14px;
    border-right:1px solid var(--border);
}
.marketing-summary-strip > div:last-child{
    border-right:0;
}
.marketing-summary-strip span,
.marketing-summary-strip strong,
.marketing-summary-strip a{
    display:block;
}
.marketing-summary-strip span{
    color:var(--muted);
    font-size:9px;
    font-weight:850;
    letter-spacing:.08em;
    text-transform:uppercase;
}
.marketing-summary-strip strong{
    margin-top:3px;
    font-size:19px;
}
.marketing-optin-link a{
    margin-top:4px;
    color:var(--text);
    font-size:11px;
    font-weight:750;
}
.marketing-pancake-section{
    margin-bottom:12px;
    border:1px solid var(--border);
    background:var(--surface);
}
.marketing-section-head{
    padding:12px 14px;
    border-bottom:1px solid var(--border);
    background:var(--surface-2);
}
.marketing-section-head h2{
    margin:0;
}
.marketing-campaign-editor{
    display:grid;
    grid-template-columns:minmax(190px,.8fr) minmax(190px,.8fr) minmax(180px,.7fr) minmax(360px,1.8fr) auto;
    gap:9px;
    align-items:end;
    padding:12px 14px;
}
.marketing-campaign-editor .field{
    margin-bottom:0;
}
.marketing-message-field textarea{
    min-height:76px;
}
.marketing-campaign-table table{
    margin:0;
}
.marketing-message-preview{
    margin-top:5px;
    min-width:260px;
    max-width:520px;
    white-space:normal;
    line-height:1.35;
}

/* Direct phone customer search inside appointments */
.client-phone-search-field{
    position:relative;
}
.phone-customer-results{
    z-index:45;
}

/* Mobile CRM navigation becomes a controlled accordion instead of fixed
   floating dropdown panels. */
@media(max-width:950px){
    .topbar{
        display:grid!important;
        grid-template-columns:minmax(0,1fr) auto;
        gap:10px 12px;
        align-items:center!important;
        padding:10px 12px;
    }
    .brand{
        min-width:0;
    }
    .mobile-nav-toggle{
        display:inline-flex;
        justify-self:end;
    }
    .main-nav{
        display:none!important;
        grid-column:1 / -1;
        width:100%;
        margin-top:2px;
        padding-top:8px;
        border-top:1px solid rgba(255,255,255,.12);
    }
    .main-nav.mobile-open{
        display:grid!important;
        grid-template-columns:1fr;
        gap:3px;
    }
    .main-nav > a,
    .main-nav > .nav-group,
    .main-nav > .nav-group-right{
        width:100%;
        margin:0!important;
    }
    .main-nav > a,
    .nav-group > summary{
        width:100%;
        padding:10px 9px;
        text-align:left;
    }
    .nav-group > summary{
        display:flex;
        align-items:center;
        justify-content:space-between;
    }
    .nav-group > summary::after{
        margin-left:auto;
    }
    .nav-menu,
    .nav-menu-right{
        position:static!important;
        inset:auto!important;
        width:100%;
        min-width:0!important;
        max-width:none!important;
        margin:1px 0 6px;
        padding:4px 0 4px 12px;
        border:0;
        border-left:2px solid rgba(255,255,255,.15);
        border-radius:0;
        background:transparent;
        box-shadow:none;
        transform:none!important;
    }
    .nav-menu a,
    .nav-menu .nav-theme{
        padding:9px 10px;
        color:var(--header-text);
        border-radius:2px;
    }
    .nav-menu a:hover,
    .nav-menu .nav-theme:hover{
        background:rgba(255,255,255,.08);
    }
}

/* Mobile mini calendar and scheduler */
@media(max-width:700px){
    .quick-calendar-body{
        grid-template-columns:30px minmax(0,1fr) 30px;
        overflow:visible;
        gap:5px;
        padding:6px;
    }
    .quick-calendar-three{
        grid-template-columns:1fr;
        min-width:0!important;
        gap:0;
    }
    .quick-calendar-three .mini-calendar{
        width:100%;
    }
    .quick-calendar-body .mini-calendar-scroll-button{
        width:30px;
        min-width:30px;
        font-size:19px;
    }

    .shop-scheduler-board{
        grid-template-columns:88px minmax(0,1fr)!important;
    }
    .shop-day-artist{
        padding:5px 4px!important;
    }
    .shop-day-artist .artist-color-dot{
        width:8px!important;
        height:8px!important;
    }
    .shop-day-artist strong{
        font-size:9px;
        line-height:1.08;
        overflow-wrap:anywhere;
    }
    .shop-day-artist span:not(.artist-color-dot){
        font-size:7px!important;
        line-height:1.08;
    }
    .shop-day-appt{
        padding:4px 3px!important;
        font-size:9px;
        line-height:1.1;
    }
    .shop-day-appt strong{
        font-size:8px;
    }
    .shop-day-appt small{
        font-size:7px;
    }
    .shop-day-phone{
        display:none!important;
    }

    .sms-template-summary,
    .marketing-summary-strip{
        grid-template-columns:1fr 1fr;
    }
    .sms-template-row,
    .marketing-campaign-editor{
        grid-template-columns:1fr;
    }
    .sms-template-sheet-head{
        align-items:flex-start;
        flex-direction:column;
    }
}

@media(max-width:520px){
    .sms-template-summary,
    .marketing-summary-strip{
        grid-template-columns:1fr;
    }
    .sms-template-summary > div,
    .marketing-summary-strip > div{
        border-right:0;
        border-bottom:1px solid var(--border);
    }
    .sms-template-summary > div:last-child,
    .marketing-summary-strip > div:last-child{
        border-bottom:0;
    }
}


/* --------------------------------------------------------------------------
   Skinlab CRM 0.5.10 mobile time scale + confirmation/cancel controls
   -------------------------------------------------------------------------- */

.calendar-time-mobile{
    display:none;
}
.appointment-confirmed-mark{
    position:absolute;
    top:3px;
    right:4px;
    z-index:2;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:15px;
    height:15px;
    border:1px solid rgba(255,255,255,.62);
    background:rgba(0,0,0,.14);
    color:#fff;
    font-size:9px;
    font-weight:900;
    line-height:1;
    border-radius:50%;
}
.appointment-confirmation-meta{
    display:block;
    margin-top:3px;
    color:var(--muted);
    font-size:9px;
    font-weight:650;
    line-height:1.25;
}
.appointment-cancel-reason{
    min-width:190px;
    max-width:280px;
}
.appointment-save-actions .danger{
    white-space:nowrap;
}

@media(max-width:700px){
    .shop-day-time-label.half-hour-label{
        display:none!important;
    }
    .shop-day-time-label.hour-label{
        font-size:8px!important;
        line-height:1;
        transform:translateX(-50%);
        white-space:nowrap;
    }
    .calendar-time-full{
        display:none!important;
    }
    .calendar-time-mobile{
        display:inline!important;
    }
    .shop-day-time-label.hour-label:first-child{
        transform:none;
    }
    .appointment-confirmed-mark{
        width:12px;
        height:12px;
        top:2px;
        right:2px;
        font-size:7px;
    }
    .appointment-cancel-reason{
        width:100%;
        min-width:0;
        max-width:none;
    }
    .appointment-save-actions{
        width:100%;
        display:grid!important;
        grid-template-columns:1fr 1fr;
        gap:6px;
    }
    .appointment-save-actions > *{
        min-width:0;
        width:100%;
    }
}

@media(max-width:460px){
    .appointment-save-actions{
        grid-template-columns:1fr;
    }
}


/* Skinlab CRM 0.5.11 soft-launch hardening */
.booking-consent-stack{
    display:grid;
    gap:9px;
    margin-top:10px;
}
.booking-sms-consent{
    display:flex;
    align-items:flex-start;
    gap:9px;
    padding:10px 11px;
    border:1px solid var(--border);
    background:var(--surface-2);
    font-size:11px;
    line-height:1.42;
    font-weight:500;
}
.booking-sms-consent input{
    width:auto;
    margin:2px 0 0;
    flex:0 0 auto;
}
.booking-sms-disclosure{
    padding:0 2px;
    line-height:1.45;
}


/* --------------------------------------------------------------------------
   Skinlab CRM 0.5.12
   -------------------------------------------------------------------------- */

#calendar-current-day{
    scroll-margin-top:88px;
}

.calendar-unavailable-block.time-off{
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    padding:0 5px;
    z-index:4;
}
.calendar-unavailable-block.time-off > span{
    display:block;
    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:9px;
    font-weight:850;
    letter-spacing:.025em;
    line-height:1;
    text-align:center;
    pointer-events:none;
}

.time-off-entry-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
}
.time-off-entry-grid .field{
    margin-bottom:0;
}
.blocked-time-card{
    display:grid;
    grid-template-columns:minmax(110px,1fr) minmax(150px,1fr) auto;
    align-items:center;
    gap:10px;
    padding:9px 0;
    border-bottom:1px solid var(--border-soft);
}
.blocked-time-card:last-child{
    border-bottom:0;
}
.blocked-time-reason{
    min-width:0;
    overflow-wrap:anywhere;
}
.blocked-time-when{
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
    gap:7px;
    align-items:baseline;
}
.blocked-time-when > span{
    color:var(--muted);
    font-size:10px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.05em;
}
.blocked-time-when > strong{
    font-size:11px;
}

.customer-pagination{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    margin:12px 0 0;
    padding:10px;
    border:1px solid var(--border);
    background:var(--surface);
}
.customer-pagination > span{
    color:var(--muted);
    font-size:11px;
}
.customer-pagination .disabled{
    pointer-events:none;
    opacity:.42;
}

.duplicate-review-summary{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    margin-bottom:12px;
    border:1px solid var(--border);
    background:var(--surface);
}
.duplicate-review-summary > div{
    padding:10px 13px;
    border-right:1px solid var(--border);
}
.duplicate-review-summary > div:last-child{
    border-right:0;
}
.duplicate-review-summary span,
.duplicate-review-summary strong{
    display:block;
}
.duplicate-review-summary span{
    color:var(--muted);
    font-size:9px;
    font-weight:850;
    letter-spacing:.07em;
    text-transform:uppercase;
}
.duplicate-review-summary strong{
    margin-top:3px;
    font-size:17px;
}
.duplicate-review-section{
    margin-bottom:12px;
    border:1px solid var(--border);
    background:var(--surface);
}
.duplicate-review-head{
    padding:11px 13px;
    border-bottom:1px solid var(--border);
    background:var(--surface-2);
}
.duplicate-review-head h2{
    margin:0;
}
.duplicate-group{
    display:grid;
    grid-template-columns:240px minmax(0,1fr);
    border-bottom:1px solid var(--border);
}
.duplicate-group:last-child{
    border-bottom:0;
}
.duplicate-group-key{
    padding:11px 13px;
    border-right:1px solid var(--border);
    background:var(--surface-2);
}
.duplicate-group-key strong,
.duplicate-group-key span{
    display:block;
}
.duplicate-group-key span{
    margin-top:3px;
    color:var(--muted);
    font-size:10px;
}
.duplicate-group-profiles{
    min-width:0;
}
.duplicate-profile{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:9px 12px;
    border-bottom:1px solid var(--border-soft);
}
.duplicate-profile:last-child{
    border-bottom:0;
}
.duplicate-profile > div:first-child{
    min-width:0;
}
.duplicate-profile strong,
.duplicate-profile span{
    display:block;
}
.duplicate-profile span{
    margin-top:2px;
    color:var(--muted);
    font-size:10px;
    overflow-wrap:anywhere;
}
.duplicate-review-empty{
    padding:16px 13px;
    color:var(--muted);
}

.appointment-admin-actions{
    margin-top:12px;
    border-color:var(--border);
}
.appointment-admin-actions > summary{
    cursor:pointer;
    font-size:11px;
    font-weight:850;
    letter-spacing:.04em;
    text-transform:uppercase;
}
.appointment-admin-actions-body{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    margin-top:12px;
    padding-top:12px;
    border-top:1px solid var(--border);
}
.appointment-admin-actions-body p{
    margin:4px 0 0;
    max-width:680px;
}

/* Phone fields no longer show a separate format-warning block. */
.phone-format-warning{
    display:none!important;
}

@media(max-width:760px){
    .time-off-entry-grid{
        grid-template-columns:1fr;
    }
    .blocked-time-card{
        grid-template-columns:1fr;
        gap:5px;
    }
    .blocked-time-when{
        grid-template-columns:auto 1fr;
    }
    .duplicate-review-summary{
        grid-template-columns:1fr;
    }
    .duplicate-review-summary > div{
        border-right:0;
        border-bottom:1px solid var(--border);
    }
    .duplicate-review-summary > div:last-child{
        border-bottom:0;
    }
    .duplicate-group{
        grid-template-columns:1fr;
    }
    .duplicate-group-key{
        border-right:0;
        border-bottom:1px solid var(--border);
    }
    .duplicate-profile{
        align-items:flex-start;
        flex-direction:column;
    }
    .appointment-admin-actions-body{
        align-items:flex-start;
        flex-direction:column;
    }
    .customer-pagination{
        justify-content:space-between;
        gap:6px;
    }
}

/* Skinlab CRM 0.5.21 appointment status, search, pagination, compact header */
.topbar{
    padding:9px 18px;
}
.brand-logo{
    width:136px;
}
.brand-crm{
    min-height:25px;
    font-size:13px;
}
.main-nav>a,
.nav-group>summary,
.nav-theme{
    padding:6px 8px;
}

.status.booked{
    background:#e7f0fb;
    color:#245f91;
}
.status.confirmed,
.status.approved,
.status.paid,
.status.active{
    background:#e4f5e9;
    color:#1b6830;
}
.status.cancelled,
.status.declined,
.status.failed{
    background:#f9e3e3;
    color:#8b2222;
}
.status.no_show{
    background:#ececef;
    color:#535860;
}
[data-theme="dark"] .status.booked{
    background:#183149;
    color:#acd7ff;
}
[data-theme="dark"] .status.confirmed,
[data-theme="dark"] .status.approved,
[data-theme="dark"] .status.paid,
[data-theme="dark"] .status.active{
    background:#173522;
    color:#9ee3b2;
}
[data-theme="dark"] .status.cancelled,
[data-theme="dark"] .status.declined,
[data-theme="dark"] .status.failed{
    background:#3a1d1d;
    color:#f2aaaa;
}
[data-theme="dark"] .status.no_show{
    background:#292c31;
    color:#c5c9cf;
}

.appointment-record-strip .appointment-status-panel.booked{
    background:color-mix(in srgb,#5f9ed1 11%,var(--surface));
}
.appointment-record-strip .appointment-status-panel.confirmed{
    background:color-mix(in srgb,#51a66b 14%,var(--surface));
}
.appointment-record-strip .appointment-status-panel.pending_deposit{
    background:color-mix(in srgb,#d9a928 12%,var(--surface));
}
.appointment-record-strip .appointment-status-panel.cancelled{
    background:color-mix(in srgb,#bd5151 12%,var(--surface));
}
.appointment-record-strip .appointment-status-panel.no_show{
    background:color-mix(in srgb,#777d86 12%,var(--surface));
}
.appointment-status-badge{
    margin-top:1px;
    font-size:12px;
    width:max-content;
}
.appointment-confirmation-meta.confirmed{
    margin-top:6px;
    color:#28743d;
    font-size:10px;
    font-weight:800;
}
[data-theme="dark"] .appointment-confirmation-meta.confirmed{
    color:#9ee3b2;
}

.appointment-search-bar{
    padding:13px 14px;
}

.appointment-filter-grid{
    display:grid;
    grid-template-columns:minmax(220px,1.65fr) repeat(2,minmax(135px,.75fr)) repeat(2,minmax(145px,.8fr)) minmax(105px,.55fr);
    gap:10px;
    align-items:end;
}
.appointment-filter-grid .field{
    margin:0;
    min-width:0;
}
.appointment-filter-grid input,
.appointment-filter-grid select{
    width:100%;
    min-width:0;
}
.table-sort-link{
    color:inherit;
    text-decoration:none;
    white-space:nowrap;
}
.table-sort-link:hover{
    text-decoration:underline;
}
.appointment-search-main{
    display:grid;
    grid-template-columns:minmax(280px,1fr) minmax(165px,220px) auto;
    gap:10px;
    align-items:end;
}
.appointment-search-main .field{
    margin:0;
}
.appointment-search-actions{
    display:flex;
    gap:7px;
    align-items:center;
    padding-bottom:1px;
}
.appointments-list-card{
    padding:0;
}
.appointment-list-confirmed{
    margin-top:4px;
    color:#28743d;
    font-size:10px;
    font-weight:800;
    white-space:nowrap;
}
[data-theme="dark"] .appointment-list-confirmed{
    color:#9ee3b2;
}
.pagination{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    margin:16px 0 22px;
}
.pagination-pages{
    display:flex;
    align-items:center;
    gap:4px;
}
.pagination-pages a,
.pagination-pages strong,
.pagination-pages span{
    display:inline-flex;
    min-width:30px;
    height:30px;
    padding:0 7px;
    align-items:center;
    justify-content:center;
    border-radius:7px;
    text-decoration:none;
}
.pagination-pages a{
    color:var(--text);
    border:1px solid var(--border);
    background:var(--surface);
}
.pagination-pages a:hover{
    background:var(--surface-2);
}
.pagination-pages strong{
    background:var(--primary);
    color:var(--primary-text);
}
.customer-lookup-item.keyboard-active{
    background:var(--surface-3)!important;
    outline:2px solid color-mix(in srgb,var(--primary) 68%,transparent);
    outline-offset:-2px;
}

@media(max-width:760px){
    .appointment-search-main{
        grid-template-columns:1fr;
    }
    .appointment-search-actions{
        padding-bottom:0;
    }
    .pagination{
        flex-wrap:wrap;
    }
    .topbar{
        padding:8px 12px;
    }
    .brand-logo{
        width:122px;
    }
}

/* Skinlab CRM 0.5.22 attendance + text logs */
.customer-risk-card{border-color:var(--danger,#b42318)}
.customer-risk-card small,.customer-risk-text{color:var(--danger,#b42318);font-weight:700}
.text-log-search{margin-bottom:16px}
.text-log-body{min-width:280px;max-width:620px;white-space:normal;overflow-wrap:anywhere}
.compact-title{margin-bottom:10px}

/* Public text offers */
.public-offers-shell{
    max-width:820px;
    margin:0 auto;
}
.public-offers-heading{
    margin-bottom:14px;
}
.public-offers-card{
    padding:24px;
}
.public-offers-form-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:0 16px;
}
.public-offers-consent{
    margin:6px 0 12px;
    padding:15px 16px;
    border:1px solid var(--border);
    border-radius:9px;
    background:var(--surface-2);
}
.public-offers-legal{
    margin:0 0 18px;
    line-height:1.5;
}
.public-offers-submit{
    min-width:140px;
}
@media(max-width:620px){
    .public-offers-card{
        padding:17px;
    }
    .public-offers-form-grid{
        grid-template-columns:1fr;
    }
    .public-offers-submit{
        width:100%;
    }
}

/* Skinlab CRM 0.5.26 appointment services + contractor logs */
.appointment-services-field{
    grid-column:span 2;
}
.appointment-services-editor{
    display:grid;
    gap:6px;
    margin-bottom:6px;
}
.appointment-service-row{
    display:grid;
    grid-template-columns:minmax(260px,1fr) 68px;
    gap:7px;
    align-items:center;
}
.appointment-service-row select,
.appointment-service-row input{
    padding:8px 9px;
    min-height:38px;
}
.appointment-service-row .staff-service-quantity{
    min-width:0;
    text-align:center;
}
.appointment-service-actions{
    display:flex;
    gap:7px;
    align-items:center;
    flex-wrap:wrap;
    margin-top:2px;
}
.appointment-service-totals{
    display:flex;
    gap:14px;
    margin-top:8px;
    font-size:12px;
    color:var(--muted);
}
.appointment-checkout-source{
    margin:0 0 14px;
}
.contractor-log-filters{
    display:grid;
    grid-template-columns:180px 150px 150px minmax(240px,1fr) auto;
    gap:12px;
    align-items:end;
    margin-bottom:16px;
}
.contractor-log-search{
    min-width:220px;
}
.contractor-log-filter-action{
    align-self:end;
}
.contractor-log-table table{
    min-width:1320px;
}
.actions-cell{
    white-space:nowrap;
}
@media(max-width:900px){
    .contractor-log-filters{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .contractor-log-search{
        grid-column:1/-1;
    }
}
@media(max-width:680px){
    .appointment-services-field{
        grid-column:auto;
    }
    .appointment-service-row{
        grid-template-columns:minmax(0,1fr) 64px;
    }
    .appointment-service-actions{
        gap:6px;
    }
    .appointment-service-totals{
        flex-direction:column;
        gap:2px;
    }
    .contractor-log-filters{
        grid-template-columns:1fr;
    }
    .contractor-log-search{
        grid-column:auto;
    }
}

/* Skinlab CRM 0.5.26 contractor lifecycle */
.contractor-status-filter{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 12px}
.contractor-delete-card{display:flex;align-items:center;justify-content:space-between;gap:20px;border-color:color-mix(in srgb,#8f2424 28%,var(--border))}
.contractor-delete-card h2{margin-bottom:4px}
.contractor-delete-card p{margin:0}
@media(max-width:680px){.contractor-delete-card{align-items:stretch;flex-direction:column}.contractor-delete-card .btn{width:100%}}

/* Skinlab CRM 0.5.27 — keep the full APPT editor on one desktop row */
@media(min-width:901px){
    .appointment-detail-grid{
        grid-template-columns:
            minmax(150px,.82fr)
            minmax(165px,1.12fr)
            minmax(90px,.52fr)
            minmax(145px,.72fr)
            minmax(105px,.54fr)
            minmax(105px,.54fr);
        gap:10px;
        align-items:start;
    }
    .appointment-detail-grid > .field{
        min-width:0;
    }
    .appointment-services-field{
        grid-column:span 2;
    }
    .appointment-date-field input,
    .appointment-time-field select{
        width:100%;
        min-width:0;
    }
}
@media(min-width:761px) and (max-width:900px){
    .appointment-detail-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        align-items:start;
    }
    .appointment-services-field{
        grid-column:1 / -1;
    }
}

/* Skinlab CRM 0.5.28 — appointment control alignment + payout request UI */
.appointment-detail-grid select,
.appointment-detail-grid input[type="date"],
.appointment-service-row input{
    height:40px;
    min-height:40px;
    padding:8px 9px;
    line-height:1.2;
}
.appointment-deposit-inline{
    min-height:40px;
    display:flex;
    align-items:center;
    gap:10px;
    white-space:nowrap;
}
.appointment-deposit-inline strong{
    font-size:1.05rem;
    line-height:1;
}
.appointment-deposit-link{
    display:inline-block;
    text-decoration:none;
}
.payout-balance-card h2{
    margin-bottom:5px;
}
.payout-request-form{
    display:flex;
    gap:10px;
    align-items:end;
    flex-wrap:wrap;
}
.payout-request-form .field{
    margin-bottom:0;
    min-width:180px;
}
.payout-request-form .money-input{
    max-width:220px;
}
.payout-request-status{
    min-width:145px;
}
@media(max-width:680px){
    .payout-request-form{
        align-items:stretch;
        flex-direction:column;
    }
    .payout-request-form .money-input{
        max-width:none;
    }
}

/* Skinlab CRM 0.5.35 — piercing details + flattened checkout/payment rows */
.piercing-choice-list{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(175px,1fr));
    gap:7px;
}
.piercing-choice-list .field{
    margin:0;
}

.appointment-service-row .staff-service-detail{
    display:none;
}
.appointment-service-row.has-service-detail{
    grid-template-columns:minmax(220px,1.35fr) minmax(155px,.8fr) 68px;
}
.appointment-service-row.has-service-detail .staff-service-detail{
    display:block;
    min-width:0;
}

.procedure-payment-row{
    display:grid;
    grid-template-columns:minmax(175px,1fr) minmax(140px,.7fr) minmax(120px,.6fr) minmax(180px,1fr);
    gap:8px;
    align-items:end;
    padding:10px 0;
    margin-top:10px;
    border-top:1px solid var(--border);
    border-bottom:1px solid var(--border);
}
.procedure-payment-row .field{
    margin:0;
    min-width:0;
}
.procedure-payment-row select,
.procedure-payment-row input{
    width:100%;
    height:36px;
    min-height:36px;
}

.checkout-page .container{
    width:100%;
    max-width:none;
    padding:12px 16px 24px;
}
.checkout-sheet{
    width:100%;
    max-width:1540px;
    margin:0 auto;
    border:1px solid var(--border);
    background:var(--surface);
}
.checkout-page-title{
    margin:0;
    padding:11px 14px;
    border-bottom:1px solid var(--border);
    background:var(--surface-2);
}
.checkout-header-band{
    display:grid;
    grid-template-columns:1.1fr 1fr 1fr .65fr;
    border-bottom:1px solid var(--border);
}
.checkout-readout{
    min-width:0;
    padding:9px 12px;
    border-right:1px solid var(--border);
}
.checkout-readout:last-child{
    border-right:0;
}
.checkout-readout span,
.checkout-totals-band span{
    display:block;
    color:var(--muted);
    font-size:9px;
    font-weight:800;
    letter-spacing:.04em;
    text-transform:uppercase;
}
.checkout-readout strong{
    display:block;
    margin-top:2px;
    font-size:13px;
}
.checkout-section{
    padding:11px 14px;
    border-bottom:1px solid var(--border);
}
.checkout-section:last-child{
    border-bottom:0;
}
.checkout-section-title{
    margin-bottom:6px;
    color:var(--muted);
    font-size:10px;
    font-weight:800;
    letter-spacing:.05em;
    text-transform:uppercase;
}
.checkout-items-table table,
.checkout-history-section table{
    min-width:760px;
}
.checkout-items-table th,
.checkout-items-table td,
.checkout-history-section th,
.checkout-history-section td{
    padding:7px 9px;
}
.checkout-totals-band{
    display:grid;
    grid-template-columns:repeat(8,minmax(0,1fr));
    border-bottom:1px solid var(--border);
    background:var(--surface-2);
}
.checkout-totals-band > div{
    min-width:0;
    padding:8px 10px;
    border-right:1px solid var(--border);
}
.checkout-totals-band > div:last-child{
    border-right:0;
}
.checkout-totals-band strong{
    display:block;
    margin-top:2px;
    font-size:13px;
    white-space:nowrap;
}
.checkout-total-due{
    background:color-mix(in srgb,var(--accent) 10%,var(--surface));
}
.checkout-total-due strong{
    font-size:15px;
}
.checkout-payment-row{
    display:grid;
    grid-template-columns:minmax(135px,.8fr) minmax(130px,.75fr) minmax(115px,.6fr) minmax(105px,.55fr) minmax(180px,1fr) auto;
    gap:8px;
    align-items:end;
}
.checkout-payment-row .field,
.checkout-gift-row .field{
    margin:0;
    min-width:0;
}
.checkout-payment-row select,
.checkout-payment-row input,
.checkout-gift-row input{
    width:100%;
    height:36px;
    min-height:36px;
}
.checkout-payment-action{
    display:flex;
    align-items:flex-end;
}
.checkout-payment-action .btn{
    min-height:36px;
    white-space:nowrap;
}
.checkout-secondary-payments{
    display:flex;
    gap:10px 16px;
    align-items:end;
    flex-wrap:wrap;
    padding-top:10px;
    margin-top:10px;
    border-top:1px solid var(--border-soft);
}
.checkout-inline-action{
    display:flex;
    gap:9px;
    align-items:center;
    min-height:36px;
}
.checkout-inline-action span{
    color:var(--muted);
    font-size:11px;
}
.checkout-gift-row{
    display:grid;
    grid-template-columns:minmax(170px,1fr) 120px auto;
    gap:8px;
    align-items:end;
    flex:1 1 480px;
    max-width:620px;
}
.checkout-paid-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}
.checkout-aftercare-note{
    margin-top:7px;
}

@media(max-width:1100px){
    .checkout-totals-band{
        grid-template-columns:repeat(4,minmax(0,1fr));
    }
    .checkout-totals-band > div:nth-child(4n){
        border-right:0;
    }
    .checkout-payment-row{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }
    .checkout-payment-action{
        align-self:end;
    }
    .procedure-payment-row{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}
@media(max-width:760px){
    .checkout-header-band{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .checkout-readout:nth-child(2n){
        border-right:0;
    }
    .checkout-totals-band{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .checkout-totals-band > div:nth-child(2n){
        border-right:0;
    }
    .checkout-payment-row,
    .checkout-gift-row,
    .procedure-payment-row{
        grid-template-columns:1fr;
    }
    .checkout-paid-row{
        align-items:flex-start;
        flex-direction:column;
    }
    .appointment-service-row.has-service-detail{
        grid-template-columns:minmax(0,1fr) 64px;
    }
    .appointment-service-row.has-service-detail .staff-service-detail{
        grid-column:1 / -1;
        grid-row:2;
    }
}

/* --------------------------------------------------------------------------
   0.5.36 cleanup utilities
   Small reusable layout helpers so one-off inline styles stop breeding.
   -------------------------------------------------------------------------- */
.form-card-narrow{
    max-width:700px;
}
.form-card-medium{
    max-width:850px;
}
.compact-filter-card{
    padding-top:12px;
    padding-bottom:12px;
}
.inline-control-form{
    display:flex;
    align-items:flex-end;
    gap:8px;
    flex-wrap:wrap;
}
.inline-control-form .field{
    min-width:160px;
    margin:0;
}
.inline-action-form{
    display:inline-flex;
    align-items:center;
    margin-top:10px;
}
.stacked-action-form{
    display:grid;
    gap:10px;
}
.stacked-action-form label{
    margin:0;
}
.pancake-row{
    display:grid;
    align-items:end;
    gap:8px;
}
.pancake-row-3{
    grid-template-columns:minmax(220px,1fr) auto;
}
.pancake-row .field,
.pancake-action{
    margin:0;
}
.closeout-actions{
    display:flex;
    align-items:flex-end;
    gap:10px 16px;
    flex-wrap:wrap;
}
.key-value-table th{
    width:60%;
}
.key-value-table td{
    text-align:right;
}
.section-title-row{
    margin-bottom:10px;
}
.section-title-row h2{
    margin:0;
}
.staff-account-delete-form{
    display:inline-block;
    margin-left:8px;
}
.checkbox-line{
    display:flex;
    align-items:center;
    gap:7px;
}
.checkbox-line input{
    width:auto;
}

@media(max-width:700px){
    .pancake-row-3{
        grid-template-columns:1fr;
    }
    .inline-control-form{
        align-items:stretch;
        flex-direction:column;
    }
    .inline-control-form .field{
        width:100%;
    }
    .closeout-actions{
        align-items:stretch;
        flex-direction:column;
    }
}

/* 0.5.37 post-service tipping */
.tip-choice-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.tip-choice {
    min-height: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.tip-choice.active {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.tip-choice span,
.tip-custom span {
    font-size: .86rem;
    opacity: .78;
}

.tip-custom {
    margin: 0;
}

.tip-custom input {
    min-height: 64px;
}

@media (max-width: 700px) {
    .tip-choice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* --------------------------------------------------------------------------
   0.5.38 setup/payment controls
   -------------------------------------------------------------------------- */
.service-bulk-bar{
    display:grid;
    grid-template-columns:minmax(150px,.8fr) repeat(3,minmax(180px,1fr)) auto;
    align-items:end;
    gap:10px;
    margin-bottom:14px;
}
.service-bulk-bar .field,
.service-bulk-field{
    margin:0;
}
.service-bulk-field{
    display:grid;
    gap:6px;
}
.service-bulk-field > span{
    display:flex;
    align-items:center;
    gap:6px;
    font-size:.9rem;
    font-weight:600;
}
.service-bulk-field input[type="checkbox"]{
    width:auto;
    min-height:0;
}
.tip-preset-settings{
    display:grid;
    grid-template-columns:repeat(3,minmax(90px,1fr));
    gap:8px;
}
.booking-tip-panel{
    display:grid;
    gap:8px;
    padding:12px 0 4px;
}
.booking-tip-options{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}
.booking-tip-custom{
    display:inline-flex;
    align-items:center;
    gap:5px;
    margin:0;
}
.booking-tip-custom input{
    width:110px;
}

@media(max-width:1050px){
    .service-bulk-bar{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .service-bulk-bar > .btn{
        align-self:end;
    }
}
@media(max-width:700px){
    .service-bulk-bar,
    .tip-preset-settings{
        grid-template-columns:1fr;
    }
    .booking-tip-options{
        align-items:stretch;
        flex-direction:column;
    }
    .booking-tip-options .btn,
    .booking-tip-custom,
    .booking-tip-custom input{
        width:100%;
    }
}

/* --------------------------------------------------------------------------
   0.5.40 service management
   -------------------------------------------------------------------------- */
.service-manager-form{
    display:grid;
    gap:14px;
}
.service-manager-toolbar{
    display:flex;
    align-items:end;
    gap:12px;
    flex-wrap:wrap;
}
.service-manager-search{
    width:min(320px,100%);
}
.service-manager-search label{
    font-size:.82rem;
}
.service-manager-buttons{
    display:flex;
    gap:7px;
    align-items:center;
    flex-wrap:wrap;
    margin-left:auto;
}
.service-save-all{
    margin-left:4px;
}
.service-manager-table-wrap{
    padding:0;
    overflow-x:hidden;
}
.service-manager-table{
    width:100%;
    min-width:0;
    table-layout:fixed;
}
.service-manager-table th:nth-child(1){width:15%}
.service-manager-table th:nth-child(2){width:11%}
.service-manager-table th:nth-child(3){width:9%}
.service-manager-table th:nth-child(4),
.service-manager-table th:nth-child(5),
.service-manager-table th:nth-child(6){width:6%}
.service-manager-table th:nth-child(7),
.service-manager-table th:nth-child(8){width:7%}
.service-manager-table th:nth-child(9){width:12%}
.service-manager-table th:nth-child(10){width:5%}
.service-manager-table th:nth-child(11){width:16%}
.service-manager-table th,
.service-manager-table td{
    padding:7px 6px;
    vertical-align:middle;
}
.service-manager-table input:not([type="checkbox"]),
.service-manager-table select{
    min-height:36px;
    padding:7px 8px;
    border-radius:7px;
    font-size:.9rem;
}
.service-manager-table .service-name-cell input{
    width:100%;
    min-width:0;
}
.service-manager-table select{
    width:100%;
    min-width:0;
}
.service-manager-table .service-number-short,
.service-manager-table .service-money{
    width:100%;
    min-width:0;
}
.service-row-actions{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:4px;
    white-space:nowrap;
}
.service-row-actions .btn{
    padding-left:7px;
    padding-right:7px;
}
.service-toggle-head,
.service-toggle-cell{
    text-align:center;
}
.service-manager-table .service-toggle{
    width:19px;
    height:19px;
    min-height:0;
    margin:0;
}
.service-manager-table .row-inactive{
    opacity:.58;
}
.service-manager-table .row-inactive:focus-within{
    opacity:1;
}
.service-manager-bottom-save{
    margin-top:0;
}
.contractor-service-actions{
    display:flex;
    align-items:center;
    gap:7px;
    flex-wrap:wrap;
    margin:0 0 10px;
}
.contractor-service-table input[type="checkbox"]{
    width:19px;
    height:19px;
    min-height:0;
    margin:0;
}
.contractor-service-table td:first-child,
.contractor-service-table td:nth-child(2),
.contractor-service-table th:first-child,
.contractor-service-table th:nth-child(2){
    text-align:center;
}
@media(max-width:900px){
    .service-manager-toolbar{
        align-items:stretch;
    }
    .service-manager-search{
        width:100%;
    }
    .service-manager-buttons{
        margin-left:0;
    }
    .service-save-all{
        margin-left:auto;
    }
}
@media(max-width:650px){
    .service-manager-buttons,
    .service-manager-buttons .btn,
    .service-save-all{
        width:100%;
    }
}

/* Skinlab CRM 0.5.41 — checkout IDs, receipt logo/fees, payout cancellation */

/* Skinlab CRM 0.5.42 — appointment/completed-service workflow */
.record-tabs{display:flex;gap:6px;margin:-4px 0 14px;border-bottom:1px solid var(--border);overflow-x:auto}
.record-tabs a{display:inline-block;padding:10px 14px;text-decoration:none;color:var(--muted);font-weight:650;border-bottom:2px solid transparent;white-space:nowrap}
.record-tabs a.active{color:var(--text);border-bottom-color:currentColor}
.completed-service-summary{min-width:240px;max-width:520px;white-space:normal;line-height:1.35}


/* 0.5.61 contractor books */
.contractor-book-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:14px 0}.contractor-book-summary .card{display:flex;flex-direction:column;gap:4px}.contractor-book-summary strong{font-size:1.35rem}.contractor-book-summary small{color:var(--muted)}.historical-log-table .needs-review{background:rgba(245,158,11,.08)}@media(max-width:1000px){.contractor-book-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.contractor-book-summary{grid-template-columns:1fr}}


/* --------------------------------------------------------------------------
   Skinlab CRM 0.5.66 — checkout handoff + terminal fee toggle
   -------------------------------------------------------------------------- */
.procedure-bill-options{
    display:grid;
    grid-template-columns:minmax(120px,.75fr) minmax(120px,.75fr) minmax(210px,1.25fr) minmax(180px,1fr);
    gap:8px;
    align-items:stretch;
}
.procedure-bill-options .field{
    margin:0;
}
.procedure-bill-money input{
    min-height:42px;
}
.procedure-bill-toggle{
    min-width:0;
    min-height:64px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:8px 10px;
    border:1px solid var(--border);
    border-radius:8px;
    background:var(--surface-2);
    cursor:pointer;
}
.procedure-bill-toggle > span:first-child{
    min-width:0;
    font-size:11px;
    font-weight:750;
}
.procedure-bill-toggle strong{
    margin-left:4px;
    white-space:nowrap;
}
.toggle-control,
.terminal-fee-toggle .check,
.checkout-surcharge-toggle .check{
    display:flex;
    align-items:center;
    gap:6px;
}
.toggle-control input,
.terminal-fee-toggle input[type="checkbox"],
.checkout-surcharge-toggle input[type="checkbox"]{
    width:auto;
    min-height:0;
    margin:0;
}
.procedure-notes-field{
    margin:10px 0 0;
}
.procedure-notes-field textarea{
    min-height:64px;
}
.terminal-fee-toggle{
    min-width:220px;
}
.terminal-fee-toggle > span:first-child{
    display:block;
    margin-bottom:4px;
    font-size:11px;
    font-weight:700;
}
.terminal-fee-toggle .check{
    min-height:36px;
    padding:6px 8px;
    border:1px solid var(--border);
    border-radius:8px;
    background:var(--surface-2);
    font-size:11px;
    line-height:1.2;
}
.terminal-fee-toggle small{
    display:block;
    margin-top:3px;
    color:var(--muted);
    font-size:10px;
}
.checkout-bill-option-row{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:10px;
    margin:0 0 10px;
    padding:8px 10px;
    border:1px solid var(--border);
    border-radius:8px;
    background:var(--surface-2);
}
.checkout-surcharge-toggle{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    flex:1 1 420px;
    min-width:0;
    cursor:pointer;
}
.checkout-surcharge-toggle > span:first-child{
    font-size:12px;
    font-weight:750;
}
.checkout-surcharge-toggle strong{
    margin-left:4px;
}
.checkout-bill-option-row .btn{
    min-height:38px;
}
.checkout-items-table td .small{
    white-space:normal;
}
.checkout-page .btn,
.checkout-page input,
.checkout-page select{
    touch-action:manipulation;
}

@media(max-width:900px){
    .procedure-bill-options{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .checkout-page .container{
        padding:8px 10px 20px;
    }
    .checkout-section{
        padding:10px;
    }
    .checkout-payment-row select,
    .checkout-payment-row input,
    .checkout-gift-row input,
    .checkout-payment-action .btn,
    .checkout-inline-action .btn{
        min-height:44px;
        height:44px;
    }
    .checkout-payment-row{
        gap:8px;
    }
    .checkout-secondary-payments{
        gap:8px;
    }
}

@media(max-width:760px){
    .checkout-page-title{
        display:flex;
        align-items:flex-start;
        flex-wrap:wrap;
        gap:8px;
    }
    .checkout-page-title .btn{
        width:100%;
        text-align:center;
    }
    .checkout-bill-option-row{
        align-items:stretch;
        flex-direction:column;
    }
    .checkout-surcharge-toggle{
        flex:0 0 auto;
        width:100%;
        min-height:44px;
    }
    .checkout-bill-option-row .btn{
        width:100%;
        min-height:44px;
    }
    .checkout-payment-row{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .checkout-payment-row .terminal-fee-toggle,
    .checkout-payment-action{
        grid-column:1 / -1;
    }
    .checkout-payment-action .btn{
        width:100%;
    }
    .checkout-items-table,
    .checkout-history-section .table-wrap{
        overflow:visible;
    }
    .checkout-items-table table,
    .checkout-history-section table{
        display:block;
        min-width:0;
        background:transparent;
    }
    .checkout-items-table thead,
    .checkout-history-section thead{
        display:none;
    }
    .checkout-items-table tbody,
    .checkout-history-section tbody{
        display:block;
    }
    .checkout-items-table tr,
    .checkout-history-section tr{
        display:block;
        margin:0 0 8px;
        padding:7px 9px;
        border:1px solid var(--border);
        border-radius:8px;
        background:var(--surface);
    }
    .checkout-items-table td,
    .checkout-history-section td{
        display:grid;
        grid-template-columns:105px minmax(0,1fr);
        gap:8px;
        align-items:start;
        padding:6px 0;
        border-bottom:1px solid var(--border-soft);
        white-space:normal;
        overflow-wrap:anywhere;
    }
    .checkout-items-table td:last-child,
    .checkout-history-section td:last-child{
        border-bottom:0;
    }
    .checkout-items-table td::before,
    .checkout-history-section td::before{
        content:attr(data-label);
        color:var(--muted);
        font-size:9px;
        font-weight:800;
        letter-spacing:.04em;
        text-transform:uppercase;
    }
}

@media(max-width:520px){
    .procedure-bill-options{
        grid-template-columns:1fr;
    }
    .procedure-bill-toggle{
        min-height:50px;
    }
    .checkout-header-band,
    .checkout-totals-band{
        grid-template-columns:1fr 1fr;
    }
    .checkout-payment-row,
    .checkout-gift-row,
    .procedure-payment-row{
        grid-template-columns:1fr;
    }
    .checkout-payment-row .terminal-fee-toggle,
    .checkout-payment-action{
        grid-column:1;
    }
    .checkout-inline-action{
        width:100%;
        justify-content:space-between;
    }
    .checkout-inline-action .btn{
        flex:0 0 auto;
    }
    .checkout-items-table td,
    .checkout-history-section td{
        grid-template-columns:88px minmax(0,1fr);
    }
}

/* --------------------------------------------------------------------------
   SkinLab CRM 0.5.68 — flatter payment controls + conditional totals
   -------------------------------------------------------------------------- */
[data-work-pos-only][hidden],
[data-checkout-pos-only][hidden],
#general-surcharge-preview-label[hidden],
#general-surcharge-preview[hidden],
#cc-fee-preview-label[hidden],
#cc-fee-preview[hidden],
#checkout-cc-fee-row[hidden]{
    display:none !important;
}

.procedure-bill-options{
    grid-template-columns:minmax(110px,.7fr) minmax(110px,.7fr) minmax(220px,1.25fr);
    align-items:end;
}
.procedure-bill-toggle{
    min-height:42px;
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
    align-items:end;
    justify-content:flex-start;
    gap:12px;
}
.procedure-bill-toggle > span:first-child{
    font-size:11px;
    line-height:1.25;
}
.procedure-bill-toggle .toggle-control{
    min-height:36px;
    padding:0;
    background:transparent;
    border:0;
    white-space:nowrap;
}

.terminal-fee-toggle{
    min-width:150px;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    margin:0;
}
.terminal-fee-toggle > span:first-child{
    margin:0 0 5px;
}
.terminal-fee-toggle .check{
    min-height:36px;
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
    white-space:nowrap;
}
.terminal-fee-toggle small{
    margin-top:1px;
    line-height:1.1;
}

.checkout-bill-option-row{
    padding:0 0 10px;
    border:0;
    border-radius:0;
    background:transparent;
    align-items:end;
}
.checkout-surcharge-toggle{
    flex:0 1 auto;
    min-height:38px;
    justify-content:flex-start;
    gap:12px;
}
.checkout-surcharge-toggle .check{
    min-height:36px;
    padding:0;
    border:0;
    background:transparent;
    white-space:nowrap;
}
.checkout-totals-band{
    grid-template-columns:repeat(auto-fit,minmax(115px,1fr));
}

@media(max-width:760px){
    .procedure-bill-options{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .procedure-bill-toggle{
        grid-column:1 / -1;
    }
    .checkout-bill-option-row{
        flex-direction:row;
        align-items:end;
        flex-wrap:wrap;
    }
    .checkout-surcharge-toggle{
        width:auto;
        flex:1 1 220px;
    }
    .checkout-bill-option-row .btn{
        width:auto;
    }
    .checkout-payment-row .terminal-fee-toggle,
    .procedure-payment-row .terminal-fee-toggle{
        grid-column:auto;
    }
}

@media(max-width:520px){
    .procedure-bill-options{
        grid-template-columns:1fr 1fr;
    }
    .checkout-totals-band{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

/* 0.5.68: compact booking/payment surcharge readout */
.booking-payment-extra{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:.75rem;
    padding:.45rem 0;
    border-top:1px solid var(--border);
}
.booking-payment-extra[hidden]{display:none!important}
.booking-payment-extra span{font-size:.92rem}
.booking-payment-extra strong{white-space:nowrap}

/* 0.5.74 compact shop-year financial summary */
.shop-year-summary-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
    margin-bottom:18px;
}
.shop-year-panel{
    overflow:hidden;
    border:1px solid var(--border);
    border-radius:12px;
    background:var(--surface);
    box-shadow:0 1px 2px rgba(0,0,0,.03);
}
.shop-year-panel-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:9px 12px;
    border-bottom:1px solid var(--border);
    background:var(--surface-2);
}
.shop-year-panel-head h2{
    margin:0;
    font-size:14px;
    letter-spacing:.01em;
}
.shop-year-panel-head span{
    color:var(--muted);
    font-size:12px;
    font-weight:700;
}
.shop-year-stat-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    min-height:37px;
    padding:7px 12px;
    border-bottom:1px solid var(--border);
}
.shop-year-stat-row:last-child{
    border-bottom:0;
}
.shop-year-stat-row span{
    color:var(--muted);
    font-size:13px;
    font-weight:650;
}
.shop-year-stat-row strong{
    font-size:16px;
    font-variant-numeric:tabular-nums;
    letter-spacing:-.015em;
    white-space:nowrap;
}
.shop-year-stat-total{
    background:var(--surface-2);
}
.shop-year-stat-total span,
.shop-year-stat-total strong{
    color:var(--text);
    font-weight:800;
}
.shop-year-stat-review span,
.shop-year-stat-review strong{
    font-style:italic;
}
@media(max-width:760px){
    .shop-year-summary-grid{
        grid-template-columns:1fr;
        gap:10px;
    }
    .shop-year-stat-row{
        min-height:35px;
    }
}

/* SkinLab CRM 0.5.76 — amount-based contractor payouts */
.payout-available-card .payout-amount-table td{
    vertical-align:middle;
}
.payout-amount-form{
    margin:0;
}
.payout-amount-form .money-input{
    max-width:160px;
}
.payout-amount-form .money-input input{
    min-width:105px;
}
@media(max-width:760px){
    .payout-amount-form .money-input{
        max-width:none;
        width:100%;
    }
    .payout-amount-form .money-input input{
        width:100%;
    }
}

/* --------------------------------------------------------------------------
   Skinlab CRM 0.5.77 — work lookup, compact contractor log, drill-through
   -------------------------------------------------------------------------- */
.work-guest-toggle-field{
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
}
.work-guest-toggle{
    min-height:36px;
    display:flex;
    align-items:center;
    gap:8px;
}
#work-customer-match{
    display:block;
    margin-top:4px;
}

.contractor-log-list{
    display:grid;
    gap:8px;
}
.contractor-log-entry{
    padding:0;
    overflow:hidden;
}
.contractor-log-entry-main{
    display:grid;
    grid-template-columns:110px minmax(120px,150px) minmax(170px,220px) minmax(240px,1fr) auto;
    gap:12px;
    align-items:center;
    padding:11px 13px;
    border-bottom:1px solid var(--border-soft);
}
.contractor-log-entry-main > div{
    min-width:0;
}
.contractor-log-date,
.contractor-log-person,
.contractor-log-work{
    display:grid;
    gap:2px;
}
.contractor-log-date span,
.contractor-log-person > span,
.contractor-log-work > span{
    color:var(--muted);
    font-size:9px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.05em;
}
.contractor-log-person small,
.contractor-log-work small{
    color:var(--muted);
    font-size:10px;
    line-height:1.35;
}
.contractor-log-person a,
.contractor-log-work a,
.record-link{
    color:inherit;
    text-decoration:none;
}
.contractor-log-person a:hover,
.contractor-log-work a:hover,
.record-link:hover{
    text-decoration:underline;
}
.contractor-log-work strong{
    display:block;
    overflow-wrap:anywhere;
}
.contractor-log-status{
    display:flex;
    justify-content:flex-end;
}
.contractor-log-money-grid{
    display:grid;
    grid-template-columns:repeat(8,minmax(88px,1fr));
    border-bottom:1px solid var(--border-soft);
    background:var(--surface-2);
}
.contractor-log-money-grid > div{
    min-width:0;
    padding:7px 10px;
    border-right:1px solid var(--border-soft);
}
.contractor-log-money-grid > div:last-child{
    border-right:0;
}
.contractor-log-money-grid span,
.contractor-log-money-grid strong{
    display:block;
}
.contractor-log-money-grid span{
    color:var(--muted);
    font-size:9px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.04em;
}
.contractor-log-money-grid strong{
    margin-top:2px;
    font-size:12px;
}
.contractor-log-entry-footer{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:8px 12px;
}
.contractor-log-transactions{
    display:flex;
    align-items:center;
    gap:7px;
    flex-wrap:wrap;
    min-width:0;
}
.contractor-log-transactions .record-link{
    font-size:10px;
    font-weight:800;
}
.contractor-log-actions{
    flex-wrap:wrap;
    justify-content:flex-end;
}

.transaction-detail-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
    margin-bottom:12px;
}
.transaction-detail-panel h2{
    margin-bottom:10px;
}
.detail-list{
    display:grid;
    grid-template-columns:minmax(105px,.7fr) minmax(0,1.3fr);
    gap:7px 10px;
    margin:0;
}
.detail-list dt{
    color:var(--muted);
    font-size:10px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.04em;
}
.detail-list dd{
    margin:0;
    min-width:0;
    overflow-wrap:anywhere;
}
.money-detail-list dd{
    text-align:right;
}
.transaction-refund-list{
    display:grid;
    gap:1px;
}
.transaction-refund-row{
    grid-template-columns:minmax(180px,1fr) 120px 100px;
    align-items:center;
    padding:8px 0;
    border-bottom:1px solid var(--border-soft);
}

@media(max-width:1100px){
    .contractor-log-entry-main{
        grid-template-columns:100px minmax(120px,160px) minmax(160px,200px) minmax(220px,1fr) auto;
    }
    .contractor-log-money-grid{
        grid-template-columns:repeat(4,minmax(0,1fr));
    }
    .contractor-log-money-grid > div:nth-child(4n){
        border-right:0;
    }
    .transaction-detail-grid{
        grid-template-columns:1fr 1fr;
    }
}

@media(max-width:760px){
    .contractor-log-entry-main{
        grid-template-columns:1fr auto;
        align-items:start;
        gap:9px 12px;
    }
    .contractor-log-date,
    .contractor-log-person,
    .contractor-log-work{
        grid-column:1;
    }
    .contractor-log-status{
        grid-column:2;
        grid-row:1;
    }
    .contractor-log-money-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .contractor-log-money-grid > div:nth-child(2n){
        border-right:0;
    }
    .contractor-log-entry-footer{
        align-items:stretch;
        flex-direction:column;
    }
    .contractor-log-actions{
        display:grid;
        grid-template-columns:repeat(2,minmax(0,1fr));
        width:100%;
    }
    .contractor-log-actions .btn{
        width:100%;
        text-align:center;
    }
    .transaction-detail-grid{
        grid-template-columns:1fr;
    }
    .transaction-refund-row{
        grid-template-columns:1fr;
        gap:3px;
    }
}

/* --------------------------------------------------------------------------
   SkinLab CRM 0.5.78 — compact completed-work customer bar + dense ledger
   -------------------------------------------------------------------------- */
.procedure-header-band.work-entry-header{
    grid-template-columns:minmax(0,2.4fr) minmax(190px,.8fr) minmax(190px,.8fr);
    align-items:end;
    gap:10px 12px;
    padding:10px 12px;
}
.procedure-header-band.work-entry-header > .field{
    grid-column:auto;
}
.work-customer-panel{
    min-width:0;
    padding-right:12px;
    border-right:1px solid var(--border-soft);
}
.work-customer-panel-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    min-height:28px;
    margin-bottom:5px;
}
.work-customer-panel-head > span{
    color:var(--muted);
    font-size:10px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.05em;
}
.work-guest-toggle{
    display:inline-flex;
    align-items:center;
    gap:6px;
    margin:0;
    padding:2px 0;
    min-height:0;
    font-size:12px;
    font-weight:700;
    white-space:nowrap;
    cursor:pointer;
}
.work-guest-toggle input{
    width:15px;
    height:15px;
    margin:0;
}
.work-customer-fields{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:7px 8px;
}
.work-customer-fields > .field{
    min-width:0;
    margin:0;
}
.work-customer-fields > .field label{
    margin-bottom:3px;
}
.work-customer-panel.is-guest{
    align-self:end;
}
.work-customer-panel.is-guest .work-customer-panel-head{
    margin-bottom:0;
}
#work-customer-match{
    margin-top:2px;
    font-size:9px;
    line-height:1.25;
}

/* Dense table-like contractor ledger without a horizontal scrollbar. */
.contractor-log-list{
    gap:0;
    border-top:1px solid var(--border);
    border-bottom:1px solid var(--border);
}
.contractor-log-entry.card{
    margin:0;
    border:0;
    border-bottom:1px solid var(--border);
    border-radius:0;
    box-shadow:none;
    background:var(--surface);
}
.contractor-log-entry.card:nth-child(even){
    background:var(--surface-2);
}
.contractor-log-entry.card:last-child{
    border-bottom:0;
}
.contractor-log-entry-main{
    gap:8px 10px;
    padding:7px 10px;
    border-bottom:1px solid var(--border-soft);
    background:transparent;
}
.contractor-log-date,
.contractor-log-person,
.contractor-log-work{
    gap:1px;
}
.contractor-log-date span,
.contractor-log-person > span,
.contractor-log-work > span{
    font-size:8px;
}
.contractor-log-person small,
.contractor-log-work small{
    font-size:9px;
    line-height:1.25;
}
.contractor-log-entry-main strong{
    font-size:12px;
    line-height:1.25;
}
.contractor-log-money-grid{
    background:transparent;
}
.contractor-log-money-grid > div{
    padding:4px 8px;
}
.contractor-log-money-grid span{
    font-size:8px;
}
.contractor-log-money-grid strong{
    margin-top:1px;
    font-size:11px;
    font-variant-numeric:tabular-nums;
}
.contractor-log-entry-footer{
    min-height:31px;
    gap:7px;
    padding:4px 9px;
}
.contractor-log-transactions{
    gap:5px;
}
.contractor-log-transactions .record-link{
    font-size:9px;
}
.contractor-log-actions{
    gap:4px;
}
.contractor-log-actions .btn.small{
    min-height:26px;
    padding:4px 8px;
    font-size:10px;
}

@media(max-width:1180px){
    .procedure-header-band.work-entry-header{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .work-customer-panel{
        grid-column:1 / -1;
        padding-right:0;
        padding-bottom:8px;
        border-right:0;
        border-bottom:1px solid var(--border-soft);
    }
}

@media(max-width:760px){
    .procedure-header-band.work-entry-header{
        grid-template-columns:1fr;
        gap:8px;
        padding:9px 10px;
    }
    .work-customer-panel{
        grid-column:1;
        padding-bottom:7px;
    }
    .work-customer-fields{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .contractor-log-entry-main{
        gap:5px 10px;
        padding:7px 9px;
    }
    .contractor-log-money-grid > div{
        padding:5px 7px;
    }
    .contractor-log-entry-footer{
        gap:6px;
        padding:6px 8px;
    }
}

@media(max-width:520px){
    .work-customer-fields{
        grid-template-columns:1fr;
        gap:6px;
    }
    .work-customer-panel-head{
        min-height:25px;
    }
    .contractor-log-list{
        border-left:0;
        border-right:0;
    }
}

/* --------------------------------------------------------------------------
   SkinLab CRM 0.5.81 — completed-work customer/credit/waiver linkage
   -------------------------------------------------------------------------- */
.work-customer-panel.is-guest{
    align-self:auto;
}
.work-customer-panel.is-guest .work-customer-panel-head{
    margin-bottom:5px;
}
.work-customer-panel.is-guest .work-customer-fields{
    opacity:.42;
}
.work-customer-panel.is-guest .work-customer-fields input,
.work-customer-panel.is-guest .work-customer-fields select,
.work-customer-panel.is-guest .work-customer-fields textarea{
    cursor:not-allowed;
}
.work-linkage-strip{
    display:flex;
    align-items:flex-end;
    gap:10px;
    margin:0;
    padding:8px 12px;
    border:1px solid var(--border-soft);
    border-top:0;
    background:var(--surface-soft);
}
.work-linkage-strip:has(> [hidden]:only-child),
.work-linkage-strip:empty{
    display:none;
}
.work-credit-panel,
.work-waiver-panel{
    display:flex;
    align-items:flex-end;
    gap:10px;
    min-width:0;
}
.work-credit-panel > div:first-child{
    display:flex;
    flex-direction:column;
    gap:2px;
    min-width:145px;
}
.work-credit-panel > div:first-child > span,
.work-waiver-panel > label,
.work-credit-panel > label{
    color:var(--muted);
    font-size:10px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.04em;
}
.work-credit-panel strong{
    font-size:13px;
}
.work-credit-panel > label{
    display:flex;
    flex-direction:column;
    gap:3px;
}
.work-credit-panel input{
    width:105px;
}
.work-waiver-panel{
    flex:1 1 360px;
    flex-direction:column;
    align-items:stretch;
    gap:3px;
}
.work-waiver-panel select{
    min-width:220px;
}
@media (max-width:760px){
    .work-linkage-strip{
        flex-direction:column;
        align-items:stretch;
    }
    .work-credit-panel{
        justify-content:space-between;
    }
    .work-waiver-panel{
        flex-basis:auto;
    }
}
.work-linkage-strip:not(:has(> :not([hidden]))){
    display:none;
}

/* SkinLab CRM 0.5.81 — checked-out appointment marker */
.appointment-checkout-mark{
    position:absolute;
    top:3px;
    right:4px;
    z-index:5;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:15px;
    height:15px;
    border:1px solid rgba(255,255,255,.7);
    background:rgba(0,0,0,.46);
    color:#fff;
    font-size:9px;
    font-weight:900;
    line-height:1;
    border-radius:4px;
    box-shadow:0 0 0 1px rgba(0,0,0,.08);
}
.appointment-checkout-mark.with-confirmed{
    right:22px;
}
.appointment-checkout-inline{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:13px;
    height:13px;
    margin:0 3px;
    padding:0 3px;
    border:1px solid currentColor;
    border-radius:3px;
    font-size:8px;
    font-weight:900;
    line-height:1;
    vertical-align:1px;
}
@media(max-width:700px){
    .appointment-checkout-mark{
        width:12px;
        height:12px;
        top:2px;
        right:2px;
        font-size:7px;
    }
    .appointment-checkout-mark.with-confirmed{
        right:16px;
    }
}

/* SkinLab CRM 0.5.81 — procedure waiver linkage on checkout */
.checkout-waiver-strip{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:8px 12px;
    border:1px solid var(--border-soft);
    border-top:0;
    background:var(--surface-soft);
}
.checkout-waiver-status{
    display:flex;
    align-items:center;
    gap:8px;
    min-width:0;
    flex-wrap:wrap;
}
.checkout-waiver-status > span{
    color:var(--muted);
    font-size:10px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.04em;
}
.checkout-waiver-status > a,
.checkout-waiver-status > strong{
    font-size:12px;
}
.checkout-waiver-actions{
    display:flex;
    gap:6px;
    flex-wrap:wrap;
    justify-content:flex-end;
}
.checkout-waiver-attach{
    display:flex;
    align-items:center;
    gap:6px;
    margin:0;
}
.checkout-waiver-attach select{
    width:auto;
    max-width:280px;
    min-height:30px;
    padding:4px 28px 4px 8px;
    font-size:11px;
}
@media(max-width:760px){
    .checkout-waiver-strip{
        align-items:stretch;
        flex-direction:column;
    }
    .checkout-waiver-actions{
        justify-content:flex-start;
    }
}

/* --------------------------------------------------------------------------
   SkinLab CRM 0.5.82 — compact health view, safer fee toggle, centered paid mark
   -------------------------------------------------------------------------- */
.procedure-bill-toggle{
    cursor:default;
}
.procedure-bill-toggle .toggle-control{
    display:inline-flex;
    align-items:center;
    width:max-content;
    min-height:32px;
    padding:5px 8px;
    border:1px solid var(--border);
    border-radius:7px;
    background:var(--surface-2);
    cursor:pointer;
    user-select:none;
}
.procedure-bill-toggle .toggle-control:hover{
    border-color:var(--text-soft, var(--muted));
}
.procedure-bill-toggle .toggle-control input{
    flex:0 0 auto;
}

.appointment-checkout-mark,
.appointment-checkout-inline{
    padding-left:0;
    padding-right:0;
    font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
    text-align:center;
}
.appointment-checkout-symbol{
    display:block;
    width:100%;
    line-height:1;
    text-align:center;
    transform:translateY(-3.5px);
}
.appointment-checkout-inline .appointment-checkout-symbol{
    min-width:11px;
}

.health-overview{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:0;
    margin-bottom:12px;
    padding:0;
    overflow:hidden;
}
.health-overview > div{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    min-width:0;
    padding:11px 14px;
    border-right:1px solid var(--border);
}
.health-overview > div:last-child{
    border-right:0;
}
.health-overview strong{
    font-size:1.15rem;
    font-variant-numeric:tabular-nums;
}
.health-overview-attention strong{
    color:var(--pending-text);
}
.health-sections{
    display:grid;
    gap:12px;
}
.health-section{
    padding:0;
    overflow:hidden;
}
.health-section-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:10px 13px;
    border-bottom:1px solid var(--border);
    background:var(--surface-2);
}
.health-section-head h2{
    margin:0;
    font-size:14px;
}
.health-pancake-list{
    display:block;
}
.health-row{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:12px;
    align-items:center;
    padding:9px 13px;
    border-bottom:1px solid var(--border-soft, var(--border));
}
.health-row:last-child{
    border-bottom:0;
}
.health-row-main{
    display:grid;
    grid-template-columns:minmax(145px,220px) minmax(0,1fr);
    gap:12px;
    align-items:baseline;
    min-width:0;
}
.health-row-main > strong{
    font-size:12px;
}
.health-row-main > span{
    min-width:0;
    overflow-wrap:anywhere;
}
.health-row .health-status{
    min-width:47px;
    justify-content:center;
    text-align:center;
}
.encryption-repair-card{
    margin-top:12px;
}

@media(max-width:760px){
    .health-overview{
        grid-template-columns:1fr;
    }
    .health-overview > div{
        border-right:0;
        border-bottom:1px solid var(--border);
    }
    .health-overview > div:last-child{
        border-bottom:0;
    }
    .health-row-main{
        grid-template-columns:1fr;
        gap:2px;
    }
    .health-row{
        align-items:start;
    }
}


/* --------------------------------------------------------------------------
   SkinLab CRM 0.5.83 — audit pagination, finance review, ACH payout flow
   -------------------------------------------------------------------------- */
.audit-filter-bar{
    display:flex;
    align-items:end;
    gap:8px;
    padding:10px 12px;
    margin-bottom:10px;
}
.audit-filter-field{
    flex:1 1 420px;
    margin:0;
}
.audit-filter-count{
    margin-left:auto;
    white-space:nowrap;
    padding-bottom:8px;
}
.audit-log-list{
    display:grid;
    gap:0;
    border:1px solid var(--border);
    border-radius:10px;
    overflow:hidden;
    background:var(--surface);
}
.audit-log-row.card{
    margin:0;
    border:0;
    border-radius:0;
    border-bottom:1px solid var(--border-soft,var(--border));
    box-shadow:none;
    padding:9px 12px;
}
.audit-log-row:last-child{border-bottom:0;}
.audit-log-row-top{
    display:grid;
    grid-template-columns:125px minmax(180px,1.35fr) minmax(130px,.8fr) minmax(160px,1fr) 105px;
    gap:12px;
    align-items:start;
}
.audit-log-row-top > div{min-width:0;}
.audit-log-row-top span,
.audit-log-row-top small{
    display:block;
    font-size:10px;
    color:var(--muted);
}
.audit-log-row-top strong{
    display:block;
    font-size:11px;
    line-height:1.3;
    overflow-wrap:anywhere;
}
.audit-log-details{
    margin-top:7px;
    padding-top:6px;
    border-top:1px solid var(--border-soft,var(--border));
}
.audit-log-details summary{
    cursor:pointer;
    font-size:10px;
    color:var(--muted);
    width:max-content;
}
.audit-log-details code{
    display:block;
    margin-top:6px;
    white-space:pre-wrap;
    overflow-wrap:anywhere;
    font-size:10px;
    line-height:1.35;
}
.audit-pagination{margin-top:12px;}

.financial-review-summary{
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
    gap:18px;
    align-items:center;
    margin-bottom:12px;
}
.financial-review-summary > div{
    display:grid;
    gap:2px;
}
.financial-review-summary strong{font-size:1.45rem;}
.financial-review-summary p{margin:0;}
.financial-review-list{display:grid;gap:12px;}
.financial-review-section{padding:0;overflow:hidden;}
.financial-review-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:12px;
    padding:11px 13px;
    background:var(--surface-2);
    border-bottom:1px solid var(--border);
}
.financial-review-head h2{margin:0 0 2px;font-size:14px;}
.financial-review-head p{margin:0;}
.financial-review-rows{display:grid;}
.financial-review-row{
    display:flex;
    flex-wrap:wrap;
    align-items:flex-end;
    gap:12px 18px;
    padding:9px 13px;
    border-bottom:1px solid var(--border-soft,var(--border));
}
.financial-review-row:last-child{border-bottom:0;}
.financial-review-row > div:not(.financial-review-actions){min-width:100px;}
.financial-review-row span{display:block;font-size:9px;color:var(--muted);}
.financial-review-row strong{display:block;font-size:11px;overflow-wrap:anywhere;}
.financial-review-actions{display:flex;gap:6px;margin-left:auto;}
.health-status-link{text-decoration:none;}

.reminder-rule-card{
    padding:9px 12px;
    border-bottom:1px solid var(--border-soft,var(--border));
}
.reminder-rule-card:last-child{border-bottom:0;}
.reminder-rule-summary-row{
    display:grid;
    grid-template-columns:minmax(180px,1fr) 150px auto auto;
    gap:10px;
    align-items:end;
}
.reminder-rule-summary-row .field{margin:0;}
.reminder-template-details{margin-top:7px;}
.reminder-template-details summary{
    cursor:pointer;
    width:max-content;
    font-size:10px;
    color:var(--muted);
}
.reminder-template-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
    margin-top:8px;
}
.reminder-template-grid .field{margin:0;}
.reminder-template-grid textarea{min-height:72px;}
.reminder-new-rule .field{margin:0;}
.reminder-deposit-summary{grid-template-columns:auto 150px 125px auto;}
.reminder-single-template{margin-top:8px;max-width:760px;}

.info-tip{
    position:relative;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:15px;
    height:15px;
    margin-left:4px;
    border:1px solid var(--border);
    border-radius:50%;
    color:var(--muted);
    font-size:9px;
    font-weight:800;
    line-height:1;
    cursor:help;
    vertical-align:1px;
}
.info-tip::after{
    content:attr(data-tip);
    position:absolute;
    left:50%;
    bottom:calc(100% + 7px);
    z-index:50;
    width:max-content;
    max-width:260px;
    padding:6px 8px;
    border:1px solid var(--border);
    border-radius:6px;
    background:var(--surface);
    color:var(--text);
    box-shadow:0 6px 18px rgba(0,0,0,.16);
    font-size:10px;
    font-weight:400;
    line-height:1.35;
    opacity:0;
    pointer-events:none;
    transform:translate(-50%,3px);
    transition:opacity .12s ease,transform .12s ease;
}
.info-tip:hover::after,
.info-tip:focus::after{
    opacity:1;
    transform:translate(-50%,0);
}

.payout-account-layout{
    display:grid;
    grid-template-columns:minmax(0,1.3fr) minmax(300px,.7fr);
    gap:12px;
    margin-top:12px;
}
.payout-account-form-card h2,
.payout-account-list-card h2{margin-top:0;}
.compact-toggle{min-height:38px;}
.payout-account-list{display:grid;gap:0;}
.payout-account-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    padding:9px 0;
    border-bottom:1px solid var(--border-soft,var(--border));
}
.payout-account-row:last-child{border-bottom:0;}
.payout-account-row span{display:block;margin-top:2px;}
.payout-method-actions{flex-wrap:wrap;}

@media(max-width:900px){
    .audit-log-row-top{grid-template-columns:repeat(2,minmax(0,1fr));}
    .audit-log-ip{grid-column:auto;}
    .payout-account-layout{grid-template-columns:1fr;}
    .reminder-template-grid{grid-template-columns:1fr;}
}
@media(max-width:650px){
    .audit-filter-bar{align-items:stretch;flex-wrap:wrap;}
    .audit-filter-field{flex-basis:100%;}
    .audit-filter-count{margin-left:0;padding:7px 0 0;}
    .audit-log-row-top{grid-template-columns:1fr;gap:6px;}
    .financial-review-summary{grid-template-columns:1fr;}
    .financial-review-head{align-items:center;}
    .financial-review-actions{margin-left:0;width:100%;}
    .reminder-rule-summary-row{grid-template-columns:1fr 1fr;}
}

.payout-advanced-account{
    margin-top:14px;
    padding-top:10px;
    border-top:1px solid var(--border-soft,var(--border));
}
.payout-advanced-account > summary{
    cursor:pointer;
    color:var(--muted);
    font-size:11px;
    font-weight:700;
}
.payout-advanced-account .payout-account-form{margin-top:10px;}
.payout-bank-connect-form input[name="routing_number"],
.payout-bank-connect-form input[name="account_number"]{
    font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
    letter-spacing:.04em;
}
@media(max-width:650px){
    .reminder-deposit-summary{grid-template-columns:1fr 1fr;}
}

.gift-card-total-box{
    min-height:42px;
    display:flex;
    align-items:center;
    padding:9px 11px;
    border:1px solid var(--border);
    border-radius:8px;
    background:var(--surface-2);
    font-size:16px;
    font-weight:800;
}

/* --------------------------------------------------------------------------
   Skinlab CRM 0.5.87 checkout + mobile scheduler
   -------------------------------------------------------------------------- */
.mobile-day-scheduler{display:none}
.checkout-payment-stack{display:grid;gap:8px}
.checkout-payment-entries{display:grid;gap:8px}
.checkout-payment-entry{margin:0}
.checkout-payment-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.checkout-payment-remove{display:flex;align-items:end;justify-content:flex-end}
.checkout-deposit-target{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:8px;padding:8px 10px;border:1px solid var(--border);border-radius:8px;background:var(--surface-2)}
.checkout-deposit-target>div{display:grid;gap:2px;min-width:0}
.checkout-deposit-target span,.checkout-deposit-row>span{font-size:11px;color:var(--muted)}
.checkout-deposit-target strong{font-size:12px;min-width:0;overflow-wrap:anywhere}
.checkout-deposit-list{display:grid;gap:4px;margin-top:7px}
.checkout-deposit-row{display:grid;grid-template-columns:80px minmax(0,1fr) minmax(0,1.2fr) auto;align-items:center;gap:8px;padding:6px 8px;border-bottom:1px solid var(--border)}
.checkout-deposit-row:last-child{border-bottom:0}
.checkout-deposit-row>strong{font-size:12px}
.checkout-deposit-apply{display:grid;grid-template-columns:minmax(150px,1fr) minmax(115px,.45fr) auto;align-items:end;gap:8px;margin-top:8px;padding-top:8px;border-top:1px solid var(--border)}
.checkout-deposit-apply>div{display:grid;gap:2px}
.checkout-deposit-apply>div span,.checkout-deposit-apply label{font-size:11px;color:var(--muted)}
.checkout-deposit-apply>div strong{font-size:13px;color:var(--text)}
.checkout-deposit-apply label{display:grid;gap:3px}

@media(max-width:700px){
    .calendar-card>.shop-scheduler-wrap{display:none!important}
    .mobile-day-scheduler{display:grid;gap:8px}
    .mobile-day-tabs{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;position:sticky;top:0;z-index:10;padding:4px;background:var(--surface);border:1px solid var(--border);border-radius:9px}
    .mobile-day-tab{display:grid;place-items:center;gap:1px;min-width:0;padding:5px 2px;border:0;border-radius:7px;background:transparent;color:var(--muted);font:inherit;cursor:pointer}
    .mobile-day-tab span{font-size:9px;font-weight:700;text-transform:uppercase}
    .mobile-day-tab strong{font-size:13px;color:var(--text)}
    .mobile-day-tab.active{background:var(--surface-3);box-shadow:inset 0 0 0 1px var(--border)}
    .mobile-calendar-day{display:grid;gap:8px}
    .mobile-calendar-day[hidden]{display:none!important}
    .mobile-calendar-day-title{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 2px}
    .mobile-calendar-day-title>strong{font-size:14px}
    .mobile-artist-schedule{border:1px solid var(--border);border-radius:10px;overflow:hidden;background:var(--surface)}
    .mobile-artist-heading{display:flex;align-items:center;gap:7px;padding:7px 9px;border-bottom:1px solid var(--border);background:var(--surface-2)}
    .mobile-artist-heading .artist-color-dot{width:9px;height:9px;min-width:9px;border-radius:50%;background:var(--artist-color)}
    .mobile-artist-heading>div{display:flex;align-items:baseline;gap:6px;min-width:0}
    .mobile-artist-heading strong{font-size:12px}
    .mobile-artist-heading span:not(.artist-color-dot){font-size:9px;color:var(--muted)}
    .mobile-time-slots{display:grid}
    .mobile-calendar-open-slot,.mobile-calendar-appointment,.mobile-calendar-blocked{display:grid;grid-template-columns:74px minmax(0,1fr) auto;align-items:center;gap:7px;min-height:31px;padding:4px 8px;border-bottom:1px solid var(--border);text-decoration:none;color:var(--text)}
    .mobile-time-slots>:last-child{border-bottom:0}
    .mobile-calendar-open-slot time,.mobile-calendar-appointment time,.mobile-calendar-blocked time{font-size:10px;font-weight:750;color:var(--muted);white-space:nowrap}
    .mobile-calendar-open-slot span{font-size:11px;font-weight:700}
    .mobile-calendar-open-slot b{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--surface-3);font-size:13px}
    .mobile-calendar-open-slot:not(.past-slot):active{background:var(--surface-3)}
    .mobile-calendar-open-slot.past-slot{opacity:.45}
    .mobile-calendar-appointment{min-height:40px;border-left:4px solid var(--artist-color);background:var(--success-bg)}
    .mobile-calendar-appointment.pending_deposit{background:var(--pending-bg)}
    .mobile-calendar-appointment.no_show{background:var(--danger-bg)}
    .mobile-calendar-appointment-main{display:grid;gap:1px;min-width:0}
    .mobile-calendar-appointment-main strong{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
    .mobile-calendar-appointment-main small{font-size:9px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
    .mobile-calendar-marks{display:flex;gap:3px}
    .mobile-calendar-marks b{display:grid;place-items:center;min-width:18px;height:18px;padding:0 3px;border:1px solid var(--border);border-radius:5px;font-size:9px;background:var(--surface)}
    .mobile-calendar-blocked{grid-template-columns:74px minmax(0,1fr);opacity:.55;background:var(--surface-2)}
    .mobile-calendar-blocked span{font-size:10px}
    .mobile-calendar-empty{padding:9px;color:var(--muted);font-size:10px}

    .checkout-payment-controls{align-items:stretch}
    .checkout-payment-controls .btn{flex:1 1 auto}
    .checkout-deposit-target,.checkout-deposit-row,.checkout-deposit-apply{grid-template-columns:1fr}
    .checkout-deposit-row{gap:3px}
    .checkout-deposit-apply .btn{width:100%}
}

/* SkinLab CRM 0.5.87 release notes */
.release-notes-list{display:grid;gap:10px;max-width:980px}
.release-note-card{border:1px solid var(--border);border-radius:10px;background:var(--surface);padding:12px 14px}
.release-note-card h2{margin:0 0 7px;font-size:16px}
.release-note-card p{margin:0 0 8px;color:var(--muted);font-size:12px}
.release-note-card ul{margin:0;padding-left:20px;display:grid;gap:5px}
.release-note-card li{font-size:12px;line-height:1.45}

/* --------------------------------------------------------------------------
   SkinLab CRM 0.5.88 compact mobile calendar + checkout deposit credit
   -------------------------------------------------------------------------- */
.checkout-credit-line strong{font-variant-numeric:tabular-nums}

@media(max-width:700px){
    .mobile-day-scheduler{display:grid;gap:10px}
    .mobile-calendar-day{display:grid;gap:4px;padding:0 0 4px}
    .mobile-calendar-day[hidden]{display:grid!important}
    .mobile-calendar-day-title{padding:5px 2px 3px}
    .mobile-calendar-day-title>strong{font-size:13px}
    .mobile-calendar-today>.mobile-calendar-day-title>strong{font-weight:850}
    .mobile-compact-grid-scroll{overflow-x:auto;overscroll-behavior-x:contain;border:1px solid var(--border);border-radius:9px;background:var(--surface);scrollbar-width:thin}
    .mobile-compact-grid{display:grid;grid-template-rows:30px;grid-auto-rows:21px;position:relative;background:var(--border);gap:1px}
    .mobile-grid-corner,.mobile-grid-artist-heading,.mobile-grid-time,.mobile-grid-cell{background:var(--surface)}
    .mobile-grid-corner{grid-column:1;grid-row:1;position:sticky;left:0;z-index:8;display:flex;align-items:center;justify-content:center;font-size:9px;font-weight:800;color:var(--muted);border-right:1px solid var(--border)}
    .mobile-grid-artist-heading{grid-row:1;z-index:3;display:flex;align-items:center;justify-content:center;gap:4px;padding:3px 4px;min-width:0;border-bottom:1px solid var(--border)}
    .mobile-grid-artist-heading .artist-color-dot{width:7px;height:7px;min-width:7px;border-radius:50%;background:var(--artist-color)}
    .mobile-grid-artist-heading strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px;line-height:1.1}
    .mobile-grid-time{grid-column:1;position:sticky;left:0;z-index:6;display:flex;align-items:flex-start;justify-content:flex-end;padding:2px 5px 0 2px;font-size:8px;color:var(--muted);white-space:nowrap;border-right:1px solid var(--border)}
    .mobile-grid-time.major{font-weight:800;color:var(--text)}
    .mobile-grid-cell{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;text-decoration:none;color:var(--muted);min-width:0}
    .mobile-grid-cell.open{background:var(--surface);color:var(--muted)}
    .mobile-grid-cell.open span{font-size:12px;line-height:1;opacity:.58}
    .mobile-grid-cell.open:active{background:var(--surface-3);color:var(--text)}
    .mobile-grid-cell.past{background:var(--surface-2);opacity:.45}
    .mobile-grid-cell.unavailable{background:var(--surface-2);opacity:.7}
    .mobile-grid-cell.blocked{background:repeating-linear-gradient(135deg,var(--surface-2),var(--surface-2) 4px,var(--surface) 4px,var(--surface) 8px);opacity:.72}
    .mobile-grid-cell.occupied{background:var(--surface-2)}
    .mobile-grid-appointment{z-index:5;display:grid;align-content:start;gap:0;min-width:0;overflow:hidden;padding:2px 3px 1px 4px;border-left:3px solid var(--artist-color);border-radius:3px;background:var(--success-bg);color:var(--text);text-decoration:none}
    .mobile-grid-appointment.pending_deposit{background:var(--pending-bg)}
    .mobile-grid-appointment.no_show{background:var(--danger-bg)}
    .mobile-grid-appointment strong{font-size:8px;line-height:1.05;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
    .mobile-grid-appointment small{font-size:7px;line-height:1.05;color:var(--muted);white-space:nowrap}
}

/* 0.5.92 internal notifications */
.notification-list{display:grid;gap:.7rem}
.notification-row{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.notification-row.unread{border-left:4px solid currentColor}
.notification-copy{display:grid;gap:.2rem}
.nav-notification-link{display:inline-flex!important;align-items:center;gap:.35rem}
.nav-notification-badge{display:inline-grid;place-items:center;min-width:1.35rem;height:1.35rem;padding:0 .3rem;border-radius:999px;background:currentColor;color:var(--surface,#fff);font-size:.72rem;font-weight:700}

/* 0.5.92 group checkout */
.group-checkout-toolbar{margin-bottom:1rem}
.group-checkout-filter{display:flex;align-items:end;gap:.75rem;flex-wrap:wrap}
.group-checkout-filter label{display:grid;gap:.3rem;min-width:12rem}
.group-checkout-table .group-checkout-select{width:4rem;text-align:center}
.group-checkout-table td:first-child{text-align:center}
.group-checkout-deposit{margin-top:.25rem;font-size:.84rem;font-weight:650}
.small-text{font-size:.84rem}
.group-checkout-payment-card{display:grid;gap:1rem;margin-top:1rem}
.group-checkout-selected-summary{display:flex;gap:1.5rem;flex-wrap:wrap;font-size:1.05rem}
.group-checkout-payment-grid{align-items:end}
.group-checkout-grand-total{display:flex;justify-content:space-between;align-items:center;gap:1rem;border-top:1px solid var(--border);padding-top:.85rem;font-size:1.1rem}
.group-checkout-grand-total strong{font-size:1.35rem}
@media (max-width:720px){
  .group-checkout-filter{display:grid;grid-template-columns:1fr}
  .group-checkout-filter label{min-width:0}
  .group-checkout-selected-summary{justify-content:space-between}
}

/* --------------------------------------------------------------------------
   SkinLab CRM 0.5.93 notification placement, no-show marks, past mobile slots
   -------------------------------------------------------------------------- */
.notification-actions{display:flex;align-items:center;justify-content:flex-end;gap:.45rem;flex-wrap:wrap}
.appointment-no-show-mark{position:absolute;top:3px;right:4px;z-index:2;display:inline-flex;align-items:center;justify-content:center;width:15px;height:15px;border:1px solid rgba(255,255,255,.72);border-radius:50%;background:var(--danger);color:#fff;font-size:12px;font-weight:900;line-height:1}
.appointment-list-no-show{margin-top:4px;color:var(--danger);font-size:10px;font-weight:850;white-space:nowrap}
.appointment-confirmation-meta.no-show{color:var(--danger);font-weight:850}
@media(max-width:700px){
    .appointment-no-show-mark{width:12px;height:12px;top:2px;right:2px;font-size:10px}
    .mobile-grid-cell.open.past{cursor:pointer;pointer-events:auto}
    .mobile-grid-cell.open.past span{opacity:.5}
    .notification-row{align-items:flex-start}
    .notification-actions{justify-content:flex-start;width:100%}
}


/* --------------------------------------------------------------------------
   SkinLab CRM 0.5.94 usability cleanup
   -------------------------------------------------------------------------- */
.appointment-no-show-mark{line-height:1!important;text-indent:0;font-size:0!important}
.appointment-no-show-mark::before{content:'×';display:block;transform:translate(3px,-2px);line-height:1;font-size:12px;font-weight:900}
@media(max-width:700px){.appointment-no-show-mark::before{font-size:10px}}
.info-tip{display:inline-grid;place-items:center;vertical-align:middle;line-height:1;transform:translate(3px,-2px);margin-left:5px;flex:0 0 auto;font-size:0}
.info-tip::before{content:'i';font-size:9px;font-weight:850;line-height:1;transform:translateY(-.5px)}
.status.no_show{background:var(--error-bg)!important;color:var(--danger)!important}
[data-theme="dark"] .status.no_show{background:#3a1d1d!important;color:#f2aaaa!important}
.appointment-record-strip .appointment-status-panel.no_show{background:color-mix(in srgb,var(--danger) 14%,var(--surface))!important}
.shop-appt.no_show,.cal-event.no_show,.week-event.no_show{background:var(--error-bg)!important;border-color:color-mix(in srgb,var(--danger) 35%,var(--border))!important;color:var(--danger)!important}
.appointments-list-card,.completed-services-table{overflow:visible!important}
.appointments-list-card table,.completed-services-table table{width:100%!important;min-width:0!important;table-layout:fixed;font-size:10.5px}
.appointments-list-card th,.appointments-list-card td,.completed-services-table th,.completed-services-table td{min-width:0!important;padding:7px 6px;overflow-wrap:anywhere;word-break:normal}
.appointments-list-card .actions,.completed-services-table .actions{gap:4px;flex-wrap:wrap}
.appointments-list-card .btn.small,.completed-services-table .btn.small{padding:4px 6px;font-size:9px}
.appointments-list-card th:nth-child(1){width:10%}.appointments-list-card th:nth-child(2){width:11%}.appointments-list-card th:nth-child(3){width:15%}.appointments-list-card th:nth-child(4){width:11%}.appointments-list-card th:nth-child(5){width:15%}.appointments-list-card th:nth-child(6){width:8%}.appointments-list-card th:nth-child(7){width:9%}.appointments-list-card th:nth-child(8){width:10%}.appointments-list-card th:nth-child(9){width:11%}
.completed-services-table th:nth-child(1){width:10%}.completed-services-table th:nth-child(2){width:12%}.completed-services-table th:nth-child(3){width:13%}.completed-services-table th:nth-child(4){width:11%}.completed-services-table th:nth-child(5){width:20%}.completed-services-table th:nth-child(6){width:8%}.completed-services-table th:nth-child(7){width:8%}.completed-services-table th:nth-child(8){width:8%}.completed-services-table th:nth-child(9){width:10%}
.completed-services-filter{padding:12px 14px}.completed-services-filter-grid{display:grid;grid-template-columns:minmax(240px,1fr) minmax(120px,180px) 90px auto;gap:10px;align-items:end}.completed-services-filter-grid .field{margin:0;min-width:0}
.dashboard-appt-link{color:inherit;text-decoration:none;cursor:pointer}.dashboard-appt-link:hover{background:var(--surface-2)}
.client-account-prompt,.checkout-account-option,.checkout-account-success{display:flex;align-items:center;justify-content:space-between;gap:14px}.client-account-prompt h2{margin:.2rem 0 .35rem}.client-account-prompt p{margin:0}.client-account-prompt.compact{padding-top:10px;padding-bottom:10px}.checkout-account-option{margin-top:14px;padding-top:14px;border-top:1px solid var(--border)}.checkout-account-option span{display:block;margin-top:3px;color:var(--muted);font-size:10px}.checkout-account-success{margin-top:10px}
.poynt-sync-summary{margin-bottom:12px}.poynt-sync-summary .health-row-main{grid-template-columns:minmax(110px,180px) minmax(0,1fr)}
@media(max-width:850px){.completed-services-filter-grid{grid-template-columns:1fr 1fr}.appointments-list-card table,.completed-services-table table{font-size:9.5px}}
@media(max-width:650px){.completed-services-filter-grid{grid-template-columns:1fr}.client-account-prompt,.checkout-account-option,.checkout-account-success{align-items:stretch;flex-direction:column}}

.client-register-linked-profile{display:grid;gap:3px;margin:0 0 14px;padding:10px 12px;border:1px solid var(--border);background:var(--surface-2)}
.client-register-linked-profile span{color:var(--muted);font-size:10px}

/* --------------------------------------------------------------------------
   SkinLab CRM 0.5.95 schedule / calendar / POS cleanup
   -------------------------------------------------------------------------- */
.appointment-customer-phone,.appointment-customer-email{display:block;max-width:100%;overflow-wrap:anywhere}
.appointment-customer-email{margin-top:2px}

.calendar-view-actions{align-items:center!important;gap:7px!important;flex-wrap:wrap}
.calendar-nav-cluster{display:inline-flex;align-items:center;gap:5px}
.calendar-nav-icon,.calendar-home-button.calendar-nav-icon{width:36px!important;height:36px!important;min-width:36px!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;line-height:1!important}
.calendar-nav-icon svg{display:block;width:18px;height:18px;margin:0;flex:0 0 18px}
.calendar-view-actions>.btn{min-height:36px;display:inline-flex;align-items:center;justify-content:center}
.calendar-bottom-navigation{grid-template-columns:minmax(145px,1fr) 36px minmax(145px,1fr);gap:7px;max-width:500px}
.calendar-bottom-arrow{min-height:36px;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px;line-height:1.1!important}
.calendar-bottom-arrow svg{display:block;width:16px;height:16px;flex:0 0 16px}
.calendar-bottom-arrow:first-child,.calendar-bottom-arrow:last-child{text-align:center}

.poynt-config-grid{align-items:start;margin-bottom:12px}
.poynt-pancake-card{padding:0!important;overflow:hidden}
.poynt-pancake-card form.health-pancake-list{margin:0}
.poynt-action-row,.poynt-backfill-row{margin:0;border:0;border-bottom:1px solid var(--border-soft);border-radius:0;background:transparent;width:100%;font:inherit;color:inherit}
.poynt-action-row:last-child,.poynt-backfill-row:last-child{border-bottom:0}
.poynt-action-row .health-row-main,.poynt-backfill-row .health-row-main{grid-template-columns:minmax(120px,165px) minmax(0,1fr)}
.poynt-inline-fields{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.poynt-inline-fields input{width:auto;min-width:132px;padding:6px 8px}
.poynt-mapping-row{grid-template-columns:minmax(105px,135px) minmax(0,1fr);cursor:default}
.poynt-mapping-row>strong{font-size:12px}
.poynt-mapping-row input{width:100%;min-width:0;padding:6px 8px}
.poynt-save-row{grid-template-columns:1fr auto}
.poynt-transaction-filters{padding:12px 14px}
.poynt-filter-grid{display:grid;grid-template-columns:minmax(220px,1.4fr) repeat(3,minmax(105px,.62fr)) repeat(2,minmax(125px,.72fr)) 82px auto;gap:9px;align-items:end}
.poynt-filter-grid .field{margin:0;min-width:0}.poynt-filter-grid input,.poynt-filter-grid select{width:100%;min-width:0}
.poynt-transactions-card{padding:0!important;overflow:visible!important}
.poynt-transactions-card table{width:100%;min-width:0;table-layout:fixed;font-size:10px}
.poynt-transactions-card th,.poynt-transactions-card td{padding:7px 5px;min-width:0;overflow-wrap:anywhere;vertical-align:top}
.poynt-transactions-card th:nth-child(1){width:11%}.poynt-transactions-card th:nth-child(2){width:8%}.poynt-transactions-card th:nth-child(3){width:14%}.poynt-transactions-card th:nth-child(4){width:7%}.poynt-transactions-card th:nth-child(5){width:7%}.poynt-transactions-card th:nth-child(6){width:7%}.poynt-transactions-card th:nth-child(7){width:9%}.poynt-transactions-card th:nth-child(8){width:10%}.poynt-transactions-card th:nth-child(9){width:10%}.poynt-transactions-card th:nth-child(10){width:11%}.poynt-transactions-card th:nth-child(11){width:6%}
.poynt-item-summary{display:block;max-height:2.6em;overflow:hidden;line-height:1.3}
.poynt-linked-row .actions{justify-content:flex-end;flex-wrap:wrap}
.poynt-location-select{padding:9px 12px;margin-bottom:12px}.poynt-location-select .field{margin:0;max-width:330px}
@media(max-width:1050px){.poynt-filter-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.poynt-filter-search{grid-column:span 2}.poynt-transactions-card table{font-size:9px}}
@media(max-width:720px){.calendar-view-actions{width:100%;justify-content:flex-start}.calendar-nav-cluster{width:auto}.calendar-bottom-navigation{grid-template-columns:1fr 36px 1fr}.calendar-bottom-arrow span{font-size:10px}.poynt-config-grid{display:block}.poynt-config-grid>.card{margin-bottom:12px}.poynt-filter-grid{grid-template-columns:1fr 1fr}.poynt-filter-search{grid-column:1/-1}.poynt-transactions-card{overflow-x:auto!important}.poynt-transactions-card table{min-width:820px}}

/* 0.5.97 group checkout payment rows */
.group-payment-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.group-payment-header h2{margin:0 0 .2rem}
.group-payment-header p{margin:0}
.group-payment-entries{display:grid;gap:.75rem}
.group-payment-entry{display:grid;grid-template-columns:minmax(7rem,.8fr) repeat(3,minmax(7rem,.75fr)) repeat(4,minmax(8rem,1fr)) auto;gap:.65rem;align-items:end;padding:.8rem;border:1px solid var(--border);border-radius:.65rem;background:var(--panel-2,var(--panel))}
.group-payment-entry .field{min-width:0}
.group-payment-entry .field label{display:block;margin-bottom:.25rem}
.group-payment-entry [hidden],.group-payment-entry [data-group-card-only][hidden]{display:none!important}
.group-payment-remove{align-self:end}
.group-tip-tools{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap}
.group-tip-allocation{width:7.25rem;max-width:100%}
.group-checkout-balance{font-size:.9rem;color:var(--muted)}
@media(max-width:1200px){.group-payment-entry{grid-template-columns:repeat(4,minmax(8rem,1fr))}.group-payment-remove{grid-column:auto}}
@media(max-width:760px){.group-payment-entry{grid-template-columns:1fr 1fr}.group-payment-remove{grid-column:1/-1}.group-tip-allocation{width:100%}}

/* 0.5.97 autoclave / spore log */
.autoclave-filter-card{margin-bottom:1rem}
.autoclave-action-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:1rem}
.autoclave-entry-card{min-width:0}
.autoclave-entry-card h2{margin-top:0}
.autoclave-cycle-grid,.autoclave-spore-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:end}
.autoclave-wide{grid-column:1/-1}
.autoclave-machine-card{margin-bottom:1rem}
.autoclave-machine-card summary{cursor:pointer;font-weight:700}
.autoclave-machine-list{display:flex;gap:.75rem;flex-wrap:wrap;margin:.8rem 0}
.autoclave-machine-list>div{display:flex;flex-direction:column;padding:.55rem .7rem;border:1px solid var(--border);border-radius:.55rem;min-width:12rem}
.autoclave-machine-form{grid-template-columns:repeat(4,minmax(0,1fr));align-items:end}
.autoclave-list-header{display:flex;align-items:end;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:.7rem}
.autoclave-list-header h2,.autoclave-list-header p{margin:0}
@media(max-width:980px){.autoclave-action-grid{grid-template-columns:1fr}.autoclave-cycle-grid,.autoclave-spore-grid,.autoclave-machine-form{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.autoclave-cycle-grid,.autoclave-spore-grid,.autoclave-machine-form{grid-template-columns:1fr}.autoclave-wide{grid-column:auto}}
.status.pass{background:var(--success-bg);color:var(--success-text)}
.status.fail,.status.aborted{background:var(--danger-bg,#fbe2e2);color:var(--danger-text,#9c1c1c)}
.status.inconclusive,.status.not_recorded{background:var(--pending-bg);color:var(--pending-text)}

/* 0.5.98 — appointment editor controls and long deposit labels */
.appointment-deposit-management,
.appointment-deposit-management .field,
.quote-notes-field{min-width:0;max-width:100%;}
.appointment-deposit-inline{min-height:40px;white-space:normal;flex-wrap:wrap;gap:5px 9px;align-content:center;}
.appointment-deposit-inline strong{flex:0 0 auto;}
.appointment-deposit-inline a{overflow-wrap:anywhere;}
.appointment-quote-grid,.appointment-detail-grid{min-width:0;}
.quote-notes-field input{width:100%;min-width:0;max-width:100%;}
.appointment-save-bar{gap:14px;flex-wrap:wrap;border:1px solid var(--border);border-radius:9px;background:var(--surface);padding:12px 15px;}
.appointment-save-summary{flex:1 1 170px;min-width:0;}
.appointment-save-actions{display:flex;flex:1 1 440px;justify-content:flex-end;flex-wrap:wrap;gap:8px;}
.appointment-save-actions .btn{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:9px 12px;white-space:normal;text-align:center;line-height:1.2;}
.appointment-save-actions .appointment-cancel-reason{flex:1 1 180px;min-width:155px;max-width:240px;}
@media(max-width:820px){
  .appointment-quote-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .appointment-deposit-management,.quote-notes-field{grid-column:1/-1;}
}
@media(max-width:600px){
  .appointment-save-bar{position:static;}
  .appointment-save-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;}
  .appointment-save-actions .appointment-cancel-reason{grid-column:1/-1;max-width:none;width:100%;}
}
@media(max-width:410px){.appointment-quote-grid{grid-template-columns:1fr;}.appointment-save-actions{grid-template-columns:1fr;}}
.checkout-audit-link{margin:5px 0 10px;text-align:right;}

/* 0.5.99 — true mobile record cards, not compressed desktop tables */
.refund-activity-filter{display:grid;grid-template-columns:minmax(0,2fr) minmax(150px,1fr) auto auto;gap:10px;align-items:end}
.refund-activity-filter .field{margin:0;min-width:0}
.refund-activity-filter input,.refund-activity-filter select{width:100%;min-width:0}
.refund-activity-list{display:grid;gap:8px}
.refund-activity-row{display:grid;grid-template-columns:minmax(170px,1.4fr) minmax(130px,1fr) minmax(150px,1fr) minmax(170px,1.2fr) minmax(150px,1.2fr);gap:12px;align-items:start;border-top:1px solid var(--border);padding:12px 0}
.refund-activity-row>div{min-width:0;overflow-wrap:anywhere}
.refund-activity-row small{display:block;margin-top:5px;color:var(--muted);line-height:1.35}
.refund-activity-pager{align-items:center;justify-content:center;margin:16px 0}
@media(max-width:900px){
  .refund-activity-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  .refund-activity-filter{grid-template-columns:1fr 1fr}
}
@media(max-width:720px){
  .appointments-list-card,.completed-services-table{overflow:visible!important;padding:9px!important}
  .appointments-list-card table,.completed-services-table table{width:100%!important;min-width:0!important;display:block!important;table-layout:auto!important;font-size:14px!important;border-spacing:0!important}
  .appointments-list-card thead,.completed-services-table thead{display:none!important}
  .appointments-list-card tbody,.completed-services-table tbody{display:grid!important;gap:12px!important;width:100%!important}
  .appointments-list-card tbody tr,.completed-services-table tbody tr{display:block!important;background:var(--surface-2,var(--surface));border:1px solid var(--border);border-radius:10px;padding:4px 10px!important;min-width:0!important}
  .appointments-list-card tbody td,.completed-services-table tbody td{display:block!important;width:auto!important;max-width:none!important;min-width:0!important;font-size:13px!important;line-height:1.45!important;padding:9px 4px!important;overflow-wrap:anywhere!important;word-break:normal!important;white-space:normal!important;border-bottom:1px solid var(--border)}
  .appointments-list-card tbody td:last-child,.completed-services-table tbody td:last-child{border-bottom:0}
  .appointments-list-card tbody td::before,.completed-services-table tbody td::before{display:block;font-size:10px;letter-spacing:.07em;text-transform:uppercase;line-height:1.3;color:var(--muted);font-weight:700;margin-bottom:5px}
  .appointments-list-card td:nth-child(1)::before{content:"Appointment"}
  .appointments-list-card td:nth-child(2)::before{content:"Date / Time"}
  .appointments-list-card td:nth-child(3)::before{content:"Customer"}
  .appointments-list-card td:nth-child(4)::before{content:"Artist / Piercer"}
  .appointments-list-card td:nth-child(5)::before{content:"Service"}
  .appointments-list-card td:nth-child(6)::before{content:"Quote"}
  .appointments-list-card td:nth-child(7)::before{content:"Upfront"}
  .appointments-list-card td:nth-child(8)::before{content:"Status"}
  .appointments-list-card td:nth-child(9)::before{content:"Actions"}
  .completed-services-table td:nth-child(1)::before{content:"Performed"}
  .completed-services-table td:nth-child(2)::before{content:"Procedure"}
  .completed-services-table td:nth-child(3)::before{content:"Customer"}
  .completed-services-table td:nth-child(4)::before{content:"Artist / Piercer"}
  .completed-services-table td:nth-child(5)::before{content:"Service"}
  .completed-services-table td:nth-child(6)::before{content:"Total"}
  .completed-services-table td:nth-child(7)::before{content:"Paid"}
  .completed-services-table td:nth-child(8)::before{content:"Status"}
  .completed-services-table td:nth-child(9)::before{content:"Actions"}
  .appointments-list-card .btn.small,.completed-services-table .btn.small{font-size:12px!important;padding:9px 10px!important;min-height:36px}
  .appointments-list-card .actions,.completed-services-table .actions{display:flex;flex-wrap:wrap;gap:8px}
  .appointments-list-card a,.completed-services-table a{overflow-wrap:anywhere}
  .appointments-list-card td .small,.completed-services-table td .small{font-size:12px!important;line-height:1.45!important}
  .appointment-record,.appointment-record-card{min-width:0!important}
  .appointment-record-card{padding:14px!important}
  .appointment-record-card h2{font-size:18px!important;line-height:1.25!important}
  .appointment-record-card dt,.appointment-record-card dd,.appointment-record-card p{font-size:13px!important;line-height:1.5}
  .appointment-record-head h1{font-size:23px!important}
  .appointment-record-head .actions{display:flex;flex-wrap:wrap;gap:8px}
  .appointment-record-head .btn{padding:10px 12px}
  .appointment-record-grid,.appointment-record-grid.two-column{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
  .appointment-record-strip{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .appointment-record-strip>div{padding:10px 12px!important;min-width:0}
  .appointment-record-strip strong{font-size:15px!important}
  .checkout-page .checkout-sheet{min-width:0!important;max-width:100%!important}
  .checkout-page .checkout-deposit-row{font-size:13px!important;line-height:1.5!important}
  .checkout-page .checkout-deposit-row span{overflow-wrap:anywhere}
  .checkout-page .checkout-payment-row label,.checkout-page .checkout-payment-row input,.checkout-page .checkout-payment-row select{font-size:14px!important}
  .checkout-page .checkout-totals-band strong{font-size:15px!important}
  .checkout-page .checkout-header-band strong{font-size:14px!important}
  .checkout-page .checkout-payment-action .btn,.checkout-page .checkout-payment-controls .btn{min-height:39px;font-size:13px!important}
  .refund-activity-filter{grid-template-columns:1fr}
  .refund-activity-row{grid-template-columns:1fr;padding:12px 0;gap:7px;font-size:13px}
  .refund-activity-row>div{padding:2px 0}
}
@media(max-width:385px){
  .appointment-record-strip{grid-template-columns:1fr!important}
}


/* SkinLab CRM 0.5.101 — contractor CC payout clarity and mobile layout */
.payout-help{margin:-.15rem 0 1rem;max-width:74ch;line-height:1.5}
.payout-mobile-table .payout-action-cell .actions{display:flex;flex-wrap:wrap;gap:.4rem}
.payout-mobile-table .payout-action-cell form{margin:0}
.payout-available-card .payout-amount-form .money-input{max-width:180px}
@media(max-width:760px){
    .payout-mobile-table{overflow:visible!important;min-width:0}
    .payout-mobile-table table{display:block!important;width:100%!important;min-width:0!important;border-collapse:separate}
    .payout-mobile-table thead{display:none!important}
    .payout-mobile-table tbody{display:grid;gap:12px;min-width:0}
    .payout-mobile-table tbody tr{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px!important;min-width:0;width:100%;padding:14px;border:1px solid var(--border);border-radius:10px;background:var(--surface,#1d2229)}
    .payout-mobile-table tbody tr td{display:block!important;min-width:0!important;width:auto!important;max-width:100%;padding:0!important;border:0!important;overflow-wrap:anywhere;white-space:normal}
    .payout-mobile-table tbody tr td::before{display:block;content:attr(data-label);font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);margin-bottom:3px}
    .payout-mobile-table tbody tr td[data-label="Contractor"],
    .payout-mobile-table tbody tr td[data-label="Actions"],
    .payout-mobile-table tbody tr td[data-label="Status / Actions"],
    .payout-mobile-table tbody tr td[data-label="Payout Amount"]{grid-column:1/-1}
    .payout-mobile-table tbody tr td[colspan]{grid-column:1/-1}
    .payout-mobile-table .payout-amount-form .money-input{max-width:none;width:100%}
    .payout-mobile-table .payout-amount-form .money-input input{min-width:0;width:100%;font-size:1rem}
    .payout-mobile-table .payout-method-actions,.payout-mobile-table .payout-action-cell .actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%}
    .payout-mobile-table .payout-method-actions button,.payout-mobile-table .payout-action-cell .actions button,.payout-mobile-table .payout-action-cell .actions a{width:100%;min-height:42px;white-space:normal;text-align:center}
    .payout-mobile-table .payout-action-cell .actions form{min-width:0}
    .payout-mobile-table .payout-action-cell>form{margin:6px 0}
    .payout-mobile-table .payout-action-cell>form button{min-height:42px}
    .payout-mobile-table tbody tr td[data-label="Status / Actions"]{overflow-wrap:anywhere}
}
@media(max-width:460px){
    .payout-mobile-table tbody tr{padding:12px;gap:10px}
    .payout-mobile-table .payout-method-actions{grid-template-columns:1fr 1fr}
}
.payout-balance-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.payout-balance-summary>div{border:1px solid var(--border);border-radius:8px;padding:12px;display:grid;gap:4px}
.payout-balance-summary span{font-size:.82rem;color:var(--muted)}
.payout-detail-line{display:flex;justify-content:space-between;align-items:start;gap:18px;padding:12px 0;border-bottom:1px solid var(--border)}
.payout-detail-line:last-child{border-bottom:0}
.payout-detail-line>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.payout-detail-line small{overflow-wrap:anywhere}
@media(max-width:600px){.payout-balance-summary{grid-template-columns:1fr}.payout-detail-line{gap:8px}}

/* 0.5.102 no-show optical alignment */
.appointment-no-show-mark::before{transform:translate(2px,-2px)}

/* 0.5.102 compact sterilization cycle recording */
.autoclave-action-grid{grid-template-columns:1.3fr 1fr;align-items:start;gap:.75rem}
.autoclave-entry-card{padding:1rem}.autoclave-entry-card h2{font-size:1.13rem;margin:0 0 .8rem}
.autoclave-cycle-top{display:grid;grid-template-columns:1.3fr 1fr 1fr auto;align-items:end;gap:.55rem}
.autoclave-cycle-top label,.clave-cycle-metrics label{display:flex;flex-direction:column;gap:.2rem;min-width:0}
.clave-load-meta{padding:.6rem;border:1px solid var(--border);border-radius:.5rem;white-space:nowrap;font-size:.86rem}
.clave-load-meta strong{font-size:1.07rem;margin-left:.25rem}
.clave-preset{display:flex;gap:.5rem;flex-wrap:wrap;margin:.7rem 0}
.clave-preset label,.clave-content-options label{display:inline-flex;align-items:center;gap:.4rem;padding:.38rem .6rem;border:1px solid var(--border);border-radius:.5rem;cursor:pointer;font-size:.88rem;white-space:nowrap}
.clave-preset input,.clave-content-options input{width:auto;min-width:auto;margin:0}
.clave-contents{border:0;padding:0;margin:0 0 .6rem;min-width:0}
.clave-contents legend{font-size:.88rem;font-weight:650;margin:0 0 .35rem}
.clave-content-options{display:flex;flex-wrap:wrap;gap:.4rem}
.clave-other{display:flex;align-items:center;gap:.45rem;margin:.5rem 0 0;font-size:.86rem}
.clave-other input{flex:1;min-width:7rem}
.clave-cycle-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem}
.clave-notes{margin:.55rem 0}.clave-notes summary{cursor:pointer;font-size:.88rem}.clave-notes textarea{width:100%;margin-top:.35rem}
.autoclave-list-header form{display:flex;align-items:end;gap:.5rem;flex-wrap:wrap}.autoclave-list-header label{display:flex;flex-direction:column;gap:.2rem}
.autoclave-machine-card{margin-top:1rem}
@media(max-width:1100px){.autoclave-action-grid{grid-template-columns:1fr}}
@media(max-width:700px){.autoclave-entry-card{padding:.8rem}.autoclave-cycle-top{grid-template-columns:1fr 1fr}.clave-load-meta{align-self:end}.clave-cycle-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.clave-preset label,.clave-content-options label{white-space:normal}}
@media(max-width:380px){.autoclave-cycle-top{grid-template-columns:1fr 1fr}.clave-other{display:block}.clave-other input{width:100%}}

/* Narrow screens: sterilization history is a readable vertical record, not a squeezed table. */
@media (max-width:700px){
 .autoclave-cycle-table,.autoclave-spore-table{overflow:visible}
 .autoclave-cycle-table table,.autoclave-spore-table table{width:100%;display:block}
 .autoclave-cycle-table thead,.autoclave-spore-table thead{display:none}
 .autoclave-cycle-table tbody,.autoclave-spore-table tbody{display:grid;gap:.65rem}
 .autoclave-cycle-table tr,.autoclave-spore-table tr{display:block;padding:.45rem .65rem;border:1px solid var(--border,#ddd);border-radius:.55rem;min-width:0}
 .autoclave-cycle-table td,.autoclave-spore-table td{display:flex;align-items:baseline;gap:.5rem;white-space:normal;overflow-wrap:anywhere;border:0;padding:.29rem .12rem;min-width:0}
 .autoclave-cycle-table td::before,.autoclave-spore-table td::before{content:attr(data-label);flex:0 0 5.6rem;min-width:5.6rem;color:var(--muted,#777);font-size:.78rem}
 .autoclave-cycle-table td[colspan],.autoclave-spore-table td[colspan]{display:block}
 .autoclave-cycle-table td[colspan]::before,.autoclave-spore-table td[colspan]::before{display:none}
}

/* 0.5.103: responsive contractor cards and service/payout alignment */
.contractor-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;align-items:start}
.contractor-profile-card{min-width:0;margin:0;padding:1rem}
.contractor-card-head{display:flex;gap:.65rem;align-items:center;min-width:0;margin-bottom:.7rem}
.contractor-card-identity{display:flex;flex-direction:column;min-width:0;flex:1;overflow-wrap:anywhere}
.contractor-card-head .contractor-color-swatch{flex:0 0 18px}
.contractor-card-info{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem}
.contractor-card-info>div{display:flex;flex-direction:column;min-width:0;overflow-wrap:anywhere}
.contractor-card-info small{color:var(--muted);font-size:.75rem}
.contractor-card-info strong{font-size:.88rem;font-weight:600;overflow-wrap:anywhere}
.contractor-card-rates{grid-column:1/-1}
.contractor-booking-row{margin:.75rem 0 0;border-top:1px solid var(--border);padding-top:.6rem}
.contractor-card-actions{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.7rem}
.customer-other-preferences{padding:.5rem 0;margin:.4rem 0;grid-column:1/-1}
.customer-other-preferences summary{cursor:pointer;font-weight:600;margin-bottom:.5rem}
.completed-services-table table{table-layout:auto;min-width:920px}
.completed-services-table th:nth-child(6),.completed-services-table td:nth-child(6){min-width:125px;white-space:nowrap}
.completed-services-table th:nth-child(7),.completed-services-table td:nth-child(7){min-width:95px;white-space:nowrap}
.page-title:has(a[href="adjustment_new.php"]){display:flex;flex-wrap:wrap;align-items:center;gap:.7rem;justify-content:space-between}
.page-title a[href="adjustment_new.php"]{flex:0 0 auto;max-width:100%}
@media(max-width:1000px){.contractor-card-grid{grid-template-columns:1fr}}
@media(max-width:600px){.contractor-profile-card{padding:.75rem}.contractor-card-info{grid-template-columns:repeat(2,minmax(0,1fr))}.contractor-card-rates{grid-column:1/-1}.contractor-card-actions .btn{flex:1 1 auto;text-align:center}.completed-services-table table{min-width:0;table-layout:auto}.completed-services-table th:nth-child(6),.completed-services-table td:nth-child(6),.completed-services-table th:nth-child(7),.completed-services-table td:nth-child(7){min-width:0;white-space:normal}}

/* 0.5.103 autoclave forms and actions */
.autoclave-entry-card .clave-operator{display:flex;flex-direction:column;gap:.25rem;margin:.55rem 0;font-size:.9rem}
.autoclave-entry-card .clave-operator input{width:100%}
.autoclave-cycle-top>label,.clave-cycle-metrics>label{display:flex;flex-direction:column;align-self:stretch;justify-content:end}
.autoclave-cycle-top input,.autoclave-cycle-top select,.clave-cycle-metrics input,.clave-cycle-metrics select{width:100%;min-width:0;box-sizing:border-box}
.clave-record-actions{display:flex;flex-wrap:wrap;gap:.3rem}.clave-record-actions form{display:flex;gap:.25rem;flex-wrap:wrap}
.clave-reason{max-width:12rem;min-width:7rem}
.clave-equipment-editor{width:100%;padding-top:.3rem}.clave-equipment-editor summary{font-size:.8rem}
.clave-equipment-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem;margin-top:.5rem}
.clave-equipment-form label{display:flex;flex-direction:column;min-width:0;font-size:.8rem}
.clave-equipment-form input{min-width:0;width:100%}
.clave-equipment-form button{justify-self:start}
.autoclave-spore-table td:last-child{min-width:10rem}
.autoclave-spore-table td:last-child form{display:flex;flex-wrap:wrap;gap:.3rem;margin-top:.3rem}
@media(max-width:600px){.clave-equipment-form{grid-template-columns:1fr}.clave-reason{max-width:100%;flex:1 1 100%}.clave-record-actions{flex-direction:column}.clave-record-actions form{width:100%}}

/* 0.5.104: full-width, horizontal contractor records */
.contractor-card-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:.55rem}
.contractor-profile-card{width:100%;display:grid;grid-template-columns:minmax(185px,230px) minmax(0,1fr) minmax(180px,230px);gap:1rem;align-items:center;padding:.75rem 1rem}
.contractor-card-head{margin:0;align-self:center}
.contractor-card-info{grid-template-columns:repeat(5,minmax(0,1fr));gap:.5rem 1rem;align-items:start}
.contractor-card-rates{grid-column:1/-1}
.contractor-card-controls{min-width:0;display:flex;flex-direction:column;gap:.45rem;align-items:stretch}
.contractor-booking-row{margin:0;border:0;padding:0}
.contractor-card-actions{margin:0;gap:.3rem;justify-content:flex-start}
.contractor-card-actions .btn{padding:.3rem .5rem}
.customer-preference-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;min-width:0;width:100%;margin:.2rem 0 .6rem}
.customer-preference-fields .field{min-width:0}
@media(max-width:1100px){.contractor-profile-card{grid-template-columns:minmax(155px,190px) minmax(0,1fr)}.contractor-card-controls{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between}.contractor-card-info{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.contractor-profile-card{display:flex;flex-direction:column;align-items:stretch;gap:.55rem;padding:.8rem}.contractor-card-head{align-self:stretch}.contractor-card-info{grid-template-columns:repeat(2,minmax(0,1fr))}.contractor-card-controls{flex-direction:column;align-items:stretch}.contractor-card-actions{justify-content:flex-start}.customer-preference-fields{grid-template-columns:1fr}}

/* 0.5.105 — compact autoclave workflow, drilldown histories, contractor rows */
.autoclave-action-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:.65rem}
.autoclave-entry-card{padding:.85rem 1rem;border-radius:.75rem}
.autoclave-entry-card h2{font-size:1.07rem;margin:0 0 .55rem}
.autoclave-cycle-top{grid-template-columns:minmax(180px,1.5fr) minmax(150px,1fr) minmax(130px,.8fr) auto;gap:.55rem}
.clave-cycle-metrics{grid-template-columns:repeat(6,minmax(0,1fr));gap:.5rem;margin:.45rem 0}
.clave-cycle-metrics>label,.autoclave-cycle-top>label{min-width:0;font-size:.79rem;font-weight:600;gap:.18rem;white-space:nowrap}
.autoclave-cycle-top input,.autoclave-cycle-top select,.clave-cycle-metrics input,.clave-cycle-metrics select{min-width:0;width:100%;height:2.25rem;padding:.35rem .5rem}
.clave-load-meta{padding:.47rem .6rem;font-size:.8rem;border-style:dashed;align-self:end}
.clave-preset{margin:.45rem 0;gap:.35rem}
.clave-preset label,.clave-content-options label{padding:.27rem .53rem;font-size:.81rem;border-radius:.38rem}
.clave-contents{margin:0 0 .3rem}
.clave-contents legend{font-size:.8rem;margin-bottom:.28rem}
.clave-content-options{gap:.3rem}
.clave-other{margin:.3rem 0 0;max-width:35rem}
.clave-other input{height:2.15rem}
.clave-entry-footer{display:grid;grid-template-columns:minmax(170px,270px) minmax(140px,1fr) auto;gap:.65rem;align-items:end;margin-top:.4rem;padding-top:.45rem;border-top:1px solid var(--border)}
.autoclave-entry-card .clave-operator{margin:0;font-size:.81rem;gap:.15rem}
.autoclave-entry-card .clave-operator input{height:2.25rem}
.clave-entry-footer .clave-notes{margin:0 0 .25rem;align-self:center;max-width:100%;min-width:0}
.clave-entry-footer .clave-notes textarea{max-height:8rem}
.clave-save{align-self:end;white-space:nowrap}
.autoclave-spore-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:.45rem .6rem}
.autoclave-spore-grid>label{display:flex;flex-direction:column;gap:.2rem;font-size:.8rem;min-width:0}
.autoclave-spore-grid input,.autoclave-spore-grid select{min-width:0;width:100%;height:2.25rem}
.autoclave-spore-grid textarea{height:auto;min-height:3rem}
.clave-history-card{padding:.8rem .9rem;margin-bottom:.8rem;min-width:0;scroll-margin-top:1rem}
.clave-history-card h2{font-size:1.07rem}
.clave-history-tools,.clave-period-filter{display:flex;align-items:end;gap:.45rem;flex-wrap:wrap}
.clave-period-filter label{font-size:.76rem;font-weight:600;min-width:6.7rem}
.clave-period-filter select{font-size:.85rem;height:2.2rem;min-width:6.7rem;padding:.3rem .45rem}
.clave-history-card .table-wrap table{margin:0}
.clave-history-card table th{font-size:.71rem;letter-spacing:.015em;white-space:nowrap}
.clave-history-card table th,.clave-history-card table td{padding:.35rem .45rem;vertical-align:middle;line-height:1.25}
.autoclave-spore-table{width:100%}
.autoclave-spore-table td:last-child{min-width:0}
.clave-lab-name,.clave-report-date{display:block;font-size:.72rem;margin-top:.08rem}
.clave-notes-cell{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap;min-width:0}
.clave-inline-notes{position:relative;max-width:100%}
.clave-inline-notes summary{cursor:pointer;color:var(--link,#2563eb);font-size:.8rem;white-space:nowrap}
.clave-inline-notes[open]{flex-basis:100%;width:100%}
.clave-inline-notes p{white-space:normal;overflow-wrap:anywhere;font-size:.81rem;max-width:28rem;margin:.35rem 0 .15rem;line-height:1.5}
.clave-report-link{font-size:.79rem;white-space:nowrap}
.clave-record-actions{display:flex;gap:.28rem;flex-wrap:nowrap;align-items:center}
.clave-record-actions>.btn{padding:.23rem .45rem;font-size:.78rem;white-space:nowrap;min-height:auto}
.clave-pager{display:flex;align-items:center;justify-content:flex-end;gap:.3rem;flex-wrap:wrap;padding-top:.65rem}
.clave-pager span{font-size:.8rem;color:var(--muted);margin-right:.4rem}
.clave-pager .btn{padding:.27rem .5rem;min-width:2rem;text-align:center}
.clave-remove-dialog{border:1px solid var(--border);border-radius:.75rem;padding:1rem 1.2rem;max-width:min(96vw,29rem);width:100%;background:var(--surface,#fff);color:var(--text,inherit);box-shadow:0 15px 45px rgba(0,0,0,.2)}
.clave-remove-dialog::backdrop{background:rgba(0,0,0,.45)}
.clave-remove-dialog h2{font-size:1.1rem;margin:0 0 .35rem}
.clave-remove-dialog p{font-size:.85rem;margin:0 0 .65rem}
.clave-remove-dialog label{display:flex;flex-direction:column;font-size:.83rem;gap:.3rem}
.clave-remove-dialog textarea{width:100%;min-height:4rem}
.clave-remove-dialog .inline-actions{justify-content:flex-end;margin-top:.6rem}
.contractor-profile-card{grid-template-columns:minmax(170px,220px) minmax(0,1fr) minmax(190px,240px);gap:.8rem;padding:.68rem .85rem}
.contractor-card-identity{min-width:0;overflow:hidden;overflow-wrap:normal;word-break:normal}
.contractor-card-identity strong{display:block;overflow-wrap:break-word}
.contractor-email{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;word-break:normal;overflow-wrap:normal;max-width:100%}
.contractor-card-details{min-width:0;display:flex;flex-direction:column;gap:.22rem}
.contractor-info-primary,.contractor-info-secondary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem;min-width:0}
.contractor-info-primary>div,.contractor-info-secondary>div{min-width:0;display:flex;flex-direction:column;gap:.1rem}
.contractor-card-details small{font-size:.7rem;color:var(--muted)}
.contractor-card-details strong{font-size:.83rem;overflow-wrap:anywhere;line-height:1.25}
.contractor-details-rule{height:1px;background:linear-gradient(90deg,transparent,var(--border) 8%,var(--border) 92%,transparent);width:94%;margin:.15rem auto}
.contractor-info-secondary .contractor-card-rates{grid-column:auto}
@media(max-width:1150px){.contractor-profile-card{grid-template-columns:minmax(160px,220px) minmax(0,1fr)}.contractor-card-controls{grid-column:1/-1;flex-direction:row;justify-content:space-between;align-items:center}}
@media(max-width:900px){.clave-cycle-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.autoclave-spore-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.autoclave-cycle-top{grid-template-columns:repeat(2,minmax(0,1fr))}.clave-entry-footer{grid-template-columns:minmax(0,1fr) auto}.clave-entry-footer .clave-notes{grid-column:1/-1;grid-row:2}.clave-entry-footer .clave-save{grid-column:2;grid-row:1}.clave-history-card{padding:.7rem}.clave-period-filter{width:100%}.clave-period-filter label{flex:1 1 7rem}.clave-period-filter select{width:100%}.clave-history-tools{width:100%}.contractor-profile-card{display:flex;flex-direction:column;align-items:stretch}.contractor-info-primary,.contractor-info-secondary{grid-template-columns:repeat(2,minmax(0,1fr))}.contractor-card-controls{align-items:stretch;flex-direction:column}}
@media(max-width:460px){.clave-cycle-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.autoclave-spore-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.clave-entry-footer{grid-template-columns:1fr}.clave-entry-footer .clave-save{grid-column:1;grid-row:3}.clave-period-filter label{flex:1 1 38%}.clave-record-actions{flex-wrap:wrap}}
/* Spore records condense to a two-column summary rather than tall label/value stacks. */
@media(max-width:700px){
 .autoclave-spore-table tbody{gap:.45rem}
 .autoclave-spore-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:.55rem;row-gap:.15rem;padding:.5rem .65rem}
 .autoclave-spore-table td{display:block;min-width:0;padding:.13rem .05rem;overflow-wrap:anywhere;font-size:.84rem}
 .autoclave-spore-table td::before{display:block;min-width:0;font-size:.68rem;margin:0 0 .1rem;font-weight:550;line-height:1.1}
 .autoclave-spore-table td[data-label="Sample Date"]{grid-column:1;grid-row:1}
 .autoclave-spore-table td[data-label="Result"]{grid-column:2;grid-row:1}
 .autoclave-spore-table td[data-label="Lab / Test ID"]{grid-column:1;grid-row:2}
 .autoclave-spore-table td[data-label="Autoclave"]{grid-column:2;grid-row:2}
 .autoclave-spore-table td[data-label="Sent / Reported"]{grid-column:1;grid-row:3}
 .autoclave-spore-table td[data-label="Notes / Report"]{grid-column:2;grid-row:3}
 .autoclave-spore-table td[data-label="Actions"]{grid-column:1/-1;grid-row:4;padding-top:.24rem}
 .autoclave-spore-table td[data-label="Actions"]::before{display:none}
 .autoclave-spore-table td[colspan]{grid-column:1/-1;grid-row:auto}
 .clave-record-actions{justify-content:flex-end}
}

/* 0.5.106 · customer insights, balances and holiday closures */
.insights-filter{display:flex;align-items:end;gap:.65rem;flex-wrap:wrap;padding: .8rem 1rem}
.insights-filter .field{flex:1 1 210px;min-width:0}
.insights-filter .field label{display:block;font-size:.8rem;margin-bottom:.18rem}
.insight-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;margin:.75rem 0 1rem}
.insight-stat{display:flex;flex-direction:column;gap:.12rem;min-height:98px;margin:0;padding:1rem 1.1rem}
.insight-stat>span{font-size:.8rem;color:var(--muted,#777)}
.insight-stat>strong{font-weight:780;letter-spacing:-.035em;line-height:1.15;font-size:clamp(1.3rem,2vw,1.85rem)}
.insight-stat>small{font-size:.75rem;color:var(--muted,#777);line-height:1.3}
.insight-client-list{display:flex;flex-direction:column;gap:0}
.insight-client-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(65px,1fr) minmax(92px,1fr) auto;gap:1rem;align-items:center;padding:.6rem .3rem;border-bottom:1px solid var(--border,#e1e4e8);text-decoration:none;color:inherit;min-width:0}
.insight-client-row:last-child{border-bottom:0}.insight-client-row:hover{background:rgba(107,114,128,.055)}
.insight-client-row>span,.insight-client-row strong{min-width:0;overflow-wrap:anywhere}
.insight-client-row small{display:block;color:var(--muted,#777);font-size:.75rem;overflow-wrap:anywhere}
.insight-section-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap;margin-bottom:.45rem}
.insight-section-head h2,.insight-section-head h3{margin:0}
.insight-pager{display:flex;justify-content:flex-end;gap:.55rem;margin:.7rem 0 0}
.insight-person{display:flex;gap:1rem;align-items:center;justify-content:space-between;margin:.75rem 0 1rem;flex-wrap:wrap}
.insight-person h2{font-size:1.55rem;margin:0}
.insight-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;margin:.75rem 0}
.insight-panels>.card{margin:0}
.insight-chart-card h3{font-size:1rem;margin-bottom:.6rem}
.insight-bars{display:flex;flex-direction:column;gap:.45rem;min-height:115px}
.insight-bar{display:grid;grid-template-columns:minmax(78px,1.1fr) minmax(35px,2fr) auto;align-items:center;gap:.45rem;text-decoration:none;color:inherit;font-size:.79rem;min-width:0}
.insight-bar>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.insight-bar strong{font-size:.8rem;font-variant-numeric:tabular-nums;text-align:right}
.insight-track{height:10px;border-radius:8px;background:var(--input-bg,#e8eaee);overflow:hidden}
.insight-track i{display:block;height:100%;border-radius:8px;background:linear-gradient(90deg,#00a9a1,#4e69cc)}
.insight-bar:hover .insight-track i{filter:brightness(1.12)}
.insight-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));align-items:end;gap:.35rem;min-height:170px;padding:.3rem .2rem}
.insight-weekdays>div{display:flex;flex-direction:column;gap:.15rem;align-items:center;font-size:.7rem}
.insight-day-track{height:122px;width:100%;max-width:36px;background:var(--input-bg,#e8eaee);border-radius:7px;display:flex;align-items:end;overflow:hidden}
.insight-day-track span{width:100%;background:linear-gradient(180deg,#4e69cc,#1fb4ad);border-radius:7px 7px 0 0}
.insight-chips{display:flex;gap:.3rem;flex-wrap:wrap;font-size:.73rem;margin-top:.5rem}
.insight-chips span{padding:.15rem .45rem;border:1px solid var(--border,#e1e4e8);border-radius:16px}
.insight-methods>div{display:flex;justify-content:space-between;gap:.8rem;border-bottom:1px solid var(--border,#e1e4e8);padding:.6rem 0;font-size:.84rem}
.insight-methods>div:last-child{border:0}
.insight-detail-grid{display:grid;grid-template-columns:minmax(125px,1fr) minmax(0,1.5fr);gap:.55rem 1rem;font-size:.83rem}
.insight-detail-grid dt{color:var(--muted,#777)}.insight-detail-grid dd{margin:0;overflow-wrap:anywhere}
.insight-history>summary{cursor:pointer;font-weight:650}
.insight-balance-row{display:grid;grid-template-columns:minmax(170px,2fr) minmax(90px,.6fr) minmax(90px,.6fr) auto;gap:.8rem;align-items:center;padding:.65rem .25rem;border-bottom:1px solid var(--border,#e1e4e8)}
.insight-balance-row>div{display:flex;flex-direction:column;min-width:0}
.insight-balance-row small,.insight-balance-row .muted{font-size:.75rem;color:var(--muted,#777)}
.insight-balance-actions{display:flex!important;flex-direction:row!important;flex-wrap:wrap;gap:.35rem;align-items:center}
.insight-balance-actions .btn{padding:.3rem .52rem;font-size:.76rem}
.holiday-list{display:flex;flex-direction:column;gap:.5rem;margin:.75rem 0}
.holiday-item{padding:.75rem .9rem;margin:0}
.holiday-item>summary{display:flex;align-items:center;gap:.9rem;justify-content:space-between;cursor:pointer;list-style:none;min-width:0}
.holiday-item>summary::-webkit-details-marker{display:none}
.holiday-item>summary>strong{flex:1;min-width:0;overflow-wrap:anywhere}
.holiday-item>summary .muted{flex:1;font-size:.8rem}
.holiday-editor{margin-top:.7rem}
.holiday-fields-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.7rem;margin:.35rem 0}
.holiday-fields-grid .field{grid-column:span 2;min-width:0}
.holiday-fields-grid .field label{font-size:.78rem;display:block;margin-bottom:.18rem}
.holiday-fields-grid .holiday-name{grid-column:span 3}
.holiday-fields-grid .holiday-enabled{grid-column:1/-1;display:flex;gap:.4rem;align-items:center}
.holiday-item>form:last-child{margin-top:.4rem}
@media(max-width:950px){.insight-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.insight-panels{grid-template-columns:1fr}.holiday-fields-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:650px){.insight-stat-grid{gap:.5rem}.insight-stat{padding:.8rem}.insight-client-row{grid-template-columns:minmax(0,1fr) auto;gap:.2rem .5rem}.insight-client-row>span:nth-child(3){grid-column:1}.insight-client-row>span:last-child{grid-column:2;grid-row:1}.insight-balance-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem}.insight-balance-row>div:first-child,.insight-balance-actions{grid-column:1/-1}.insight-detail-grid{grid-template-columns:minmax(95px,1fr) minmax(0,1.25fr)}.holiday-item>summary{flex-wrap:wrap;gap:.4rem}.holiday-item>summary .muted{flex:1 1 52%;text-align:right}.holiday-fields-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.holiday-fields-grid .field,.holiday-fields-grid .holiday-name{grid-column:span 1}}
