:root{--bg:#f5f6f8;--panel:#fff;--text:#1e2530;--muted:#667085;--border:#d8dde5;--accent:#5f4aa5;--haircut:#cfe6ff;--haircut-border:#86b8ea;--bath:#d8f1dc;--bath-border:#94c89a;--warning:#fff0c7;--danger:#8b2c2c;--message:#efe9ff}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input,select{font:inherit}.app-shell{max-width:1800px;margin:0 auto;padding:16px}.topbar,.week-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}h1,h2,h3,p{margin:0}.subtle{color:var(--muted);margin-top:4px}.button{border:1px solid var(--border);border-radius:9px;padding:9px 11px;background:var(--panel);cursor:pointer;font-weight:650}.button.primary{background:var(--accent);color:#fff;border-color:var(--accent)}.button.quick{background:#f0edfa;border-color:#d8d0ef}.alert-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.alert-card{border:1px solid var(--border);border-radius:12px;padding:12px 14px;background:var(--panel);display:flex;align-items:center;gap:10px;cursor:pointer;text-align:left}.alert-card strong{font-size:1.35rem}.alert-card.request{background:#fff8df}.alert-card.message{background:var(--message)}.toolbar{display:flex;align-items:end;gap:7px;flex-wrap:wrap;margin:14px 0}.date-picker{display:flex;flex-direction:column;gap:3px;font-size:.72rem;color:var(--muted)}.date-picker input,.field input,.field select{border:1px solid var(--border);border-radius:9px;padding:8px;background:#fff;color:var(--text);width:100%}.week-heading{background:var(--panel);padding:11px 13px;border:1px solid var(--border);border-radius:12px;margin-bottom:9px}.week-metrics{display:flex;gap:18px}.week-metrics div{display:flex;flex-direction:column;align-items:flex-end}.week-metrics strong{font-size:1.15rem}.week-metrics span{font-size:.72rem;color:var(--muted)}.legend{display:flex;gap:8px;align-items:center;margin:8px 0 10px}.legend-chip{padding:6px 10px;border-radius:999px;font-weight:750;font-size:.78rem}.legend-chip.haircut{background:var(--haircut)}.legend-chip.bath{background:var(--bath)}.legend-note{font-size:.75rem}.notice{padding:9px 11px;background:var(--warning);border:1px solid #e1c56c;border-radius:10px;margin-bottom:9px}.hidden{display:none!important}
.side-menu{
  position:fixed;
  top:0;
  left:0;
  width:280px;
  height:100vh;
  background:var(--panel);
  border-right:1px solid var(--border);
  box-shadow:8px 0 24px rgba(0,0,0,.12);
  z-index:1000;
  padding:18px;
  overflow-y:auto;
}

.side-menu-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:16px;
}

.side-menu-nav{
  display:grid;
  gap:8px;
}

.side-menu-item{
  width:100%;
  text-align:left;
  border:1px solid var(--border);
  border-radius:9px;
  padding:11px 12px;
  background:#fff;
  cursor:pointer;
  font-weight:700;
}

.side-menu-item:hover{
  background:#f5f3fb;
}

.clients-page{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:12px;
  padding:16px;
  margin:14px 0;
}

.clients-page-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.clients-list{
  display:grid;
  gap:8px;
  margin-top:14px;
}

.clients-list{
  margin-top:14px;
}

.clients-table-wrap{
  width:100%;
  overflow-x:auto;
}

.clients-table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
  border:1px solid var(--border);
  border-radius:10px;
  overflow:hidden;
}

.clients-table th,
.clients-table td{
  padding:12px 14px;
  border-bottom:1px solid var(--border);
  text-align:left;
  vertical-align:top;
}

.clients-table th{
  background:#f7f7fa;
  font-size:.78rem;
  font-weight:800;
}

.clients-table td{
  font-size:.85rem;
}

.clients-table tbody tr:last-child td{
  border-bottom:none;
}

.week-board{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;align-items:start}.day-column{background:var(--panel);border:1px solid var(--border);border-radius:11px;min-height:560px;overflow:hidden}.day-header{padding:8px;border-bottom:1px solid var(--border);background:var(--panel)}.day-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:4px}.day-name{font-weight:800;font-size:.9rem}.day-date{font-size:.68rem;color:var(--muted)}.day-counts{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin-top:6px}.count{font-size:.8rem;padding:8px 4px;border-radius:8px;text-align:center;font-weight:750;display:flex;flex-direction:column;gap:3px;line-height:1.2}.count strong{font-size:1rem}.day-dog-total{margin-top:8px;font-size:.9rem;font-weight:800}.count.haircut{background:var(--haircut)}.count.bath{background:var(--bath)}.count.over{outline:2px solid var(--danger);color:var(--danger)}.add-day{width:100%;margin-top:6px;padding:6px;border:1px dashed var(--border);border-radius:7px;background:#fafafa;cursor:pointer;font-size:.7rem;font-weight:700}.dog-list{padding:6px;min-height:470px}.dog-list.drag-over{outline:3px dashed var(--accent);outline-offset:-5px;background:#f7f5fd}.dog-card{border-radius:9px;padding:7px;margin-bottom:6px;cursor:grab;border:1px solid}.dog-card.haircut{background:var(--haircut);border-color:var(--haircut-border)}.dog-card.bath{background:var(--bath);border-color:var(--bath-border)}.pet-line{display:flex;justify-content:space-between;gap:4px;align-items:flex-start}.pet-name{font-weight:850;line-height:1.05}.service-tag{font-size:.56rem;font-weight:850;text-transform:uppercase}.dog-detail{font-size:.64rem;line-height:1.18;margin-top:2px}.balance{font-size:.61rem;margin-top:4px;font-weight:850;color:var(--danger)}
dialog{border:none;border-radius:14px;max-width:560px;width:calc(100% - 28px);padding:0;box-shadow:0 20px 60px rgba(0,0,0,.25)}dialog::backdrop{background:rgba(10,15,25,.4)}.dialog-card{padding:18px}.dialog-card p{margin-top:7px}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}.booking-dialog{min-height:250px}.dialog-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.icon-button{border:none;background:transparent;font-size:1.6rem;cursor:pointer;line-height:1}.field{display:flex;flex-direction:column;gap:5px;font-size:.78rem;font-weight:700;margin-top:14px}.search-results{display:grid;gap:6px;margin-top:8px}.search-result{border:1px solid var(--border);background:#fff;border-radius:9px;padding:9px;text-align:left;cursor:pointer}.search-result span{display:block;font-size:.72rem;color:var(--muted);margin-top:2px}.selected-client{display:flex;justify-content:space-between;gap:8px;border-top:1px solid var(--border);padding-top:12px;margin-top:12px}.selected-client span{font-size:.75rem;color:var(--muted)}.section-label{font-size:.78rem;font-weight:800;margin-top:12px}.pet-choices{display:grid;grid-template-columns:repeat(2,1fr);gap:7px;margin-top:7px}.pet-choice{display:flex;gap:7px;align-items:center;border:1px solid var(--border);padding:8px;border-radius:9px;background:#fff;font-size:.78rem}.booking-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.capacity-preview{margin-top:12px;padding:9px;background:#f8f8fa;border:1px solid var(--border);border-radius:9px;font-size:.78rem}.capacity-preview.over{background:var(--warning)}
@media(max-width:1200px){.app-shell{padding:10px}.week-board{gap:5px}.dog-card{padding:6px}.day-name{font-size:.82rem}.dog-detail{font-size:.59rem}.service-tag{display:none}.week-metrics{gap:10px}}
@media(max-width:900px){.week-board{grid-template-columns:repeat(3,1fr)}.day-column{min-height:400px}.dog-list{min-height:300px}}
@media(max-width:600px){.alert-row{grid-template-columns:1fr}.week-board{grid-template-columns:1fr 1fr}.booking-grid,.pet-choices{grid-template-columns:1fr}.week-metrics{width:100%;justify-content:space-between}.toolbar{align-items:stretch}}
@media(max-width:420px){.week-board{grid-template-columns:1fr}.selected-client{flex-direction:column}}
.auth-screen{min-height:100vh;display:grid;place-items:center;padding:20px}.auth-card{width:min(440px,100%);background:var(--panel);border:1px solid var(--border);border-radius:16px;padding:24px}.auth-actions{justify-content:space-between}.auth-message{margin-top:12px;color:var(--muted);min-height:1.4em}.top-actions{display:flex;gap:7px;flex-wrap:wrap}.divider{border:none;border-top:1px solid var(--border);margin:16px 0}.day-settings{border:0;background:transparent;cursor:pointer;color:var(--muted);font-size:.68rem;padding:0;text-decoration:underline}.closed-day{opacity:.7;background:#f1f1f1}.closed-label{padding:20px 8px;text-align:center;color:var(--muted);font-weight:800}.rules-grid{display:grid;gap:8px;margin-top:14px}.rule-row{display:grid;grid-template-columns:1.2fr .8fr .8fr .8fr;gap:8px;align-items:end;border-bottom:1px solid var(--border);padding-bottom:8px}.rule-row strong{align-self:center}.rule-row .field{margin:0}.loading-board{grid-column:1/-1;padding:40px;text-align:center;color:var(--muted)}
@media(max-width:760px){.top-actions{width:100%}.top-actions .button{flex:1}.rule-row{grid-template-columns:1fr 1fr}.rule-row strong{grid-column:1/-1}}
.topbar-left{
  display:flex;
  align-items:center;
  gap:14px;
}
.calendar-view-switcher{
  display:flex;
  justify-content:flex-end;
  gap:7px;
  margin:10px 0 4px;
}
.month-calendar{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:8px;
}

.month-weekday{
  font-weight:800;
  text-align:center;
  padding:8px 4px;
  color:var(--muted);
}

.month-day{
  min-height:120px;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--panel);
  padding:10px;
  cursor:pointer;
}

.month-day-number{
  font-size:1.05rem;
  font-weight:800;
  margin-bottom:4px;
}

.month-day-name{
  display:none;
}

.month-counts{
  display:grid;
  gap:4px;
  font-size:.82rem;
  margin-top:8px;
}.month-haircut-count{
  background:var(--haircut);
  border:1px solid var(--haircut-border);
  border-radius:7px;
  padding:3px 6px;
}

.month-bath-count{
  background:var(--bath);
  border:1px solid var(--bath-border);
  border-radius:7px;
  padding:3px 6px;
}

.month-day-empty{
  background:transparent;
  border:none;
  cursor:default;
}
.week-board.day-view{
  grid-template-columns:1fr;
}

.week-board.day-view .day-column{
  width:100%;
  min-height:calc(100vh - 260px);
}

.week-board.day-view .dog-list{
  min-height:calc(100vh - 390px);
}
.waiver-dialog{
  width:min(900px,100%);
  max-height:90vh;
  overflow:auto;
}

.waiver-text{
  margin-top:14px;
  padding:16px;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
  white-space:pre-wrap;
  line-height:1.5;
  height:50vh;
  overflow-y:scroll;
  overflow-x:hidden;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-y;
  font-size:.9rem;
}

.waiver-check{
  display:flex;
  align-items:flex-start;
  gap:8px;
  margin-top:14px;
  font-size:.85rem;
  line-height:1.35;
}

.waiver-check input{
  margin-top:3px;
}
#waiverDialog{
  max-width:900px;
  width:calc(100% - 28px);
  height:90vh;
  max-height:90vh;
  overflow:hidden;
}

#waiverDialog .waiver-dialog{
  width:100%;
  height:100%;
  max-height:none;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

#waiverDialog .waiver-text{
  flex:1 1 auto;
  min-height:0;
  height:auto;
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}
#waiverDialog{
  max-width:900px;
  width:calc(100% - 28px);
  max-height:90vh;
  height:auto;
  overflow-y:auto;
  overflow-x:hidden;
}

#waiverDialog .waiver-dialog{
  width:100%;
  height:auto;
  max-height:none;
  overflow:visible;
  display:block;
}

#waiverDialog .waiver-text{
  height:auto;
  max-height:none;
  overflow:visible;
  touch-action:auto;
}
.appointment-requests-list{
  display:grid;
  gap:10px;
  margin-top:16px;
}

.appointment-request-card{
  border:1px solid var(--border);
  border-radius:10px;
  padding:14px;
  background:#fff;
}

.appointment-request-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
}

.appointment-request-pet{
  font-weight:850;
  font-size:1rem;
}

.appointment-request-details{
  margin-top:8px;
  font-size:.82rem;
  line-height:1.45;
}

.appointment-request-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:12px;
  flex-wrap:wrap;
}

.requests-dialog{
  width:min(700px,100%);
}
.customer-shell{
  min-height:100vh;
  padding:24px 16px;
  display:flex;
  justify-content:center;
  align-items:flex-start;
}

.customer-card{
  width:min(600px,100%);
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:24px;
}

.customer-card h1{
  margin-top:0;
}

.customer-card .field{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-top:14px;
}

.customer-card input,
.customer-card select{
  width:100%;
  box-sizing:border-box;
}

.customer-portal-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
}

.customer-pet-card{
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
  margin-top:10px;
}
.customer-pet-photo{
  display:block;
  width:90px;
  height:90px;
  object-fit:cover;
  border-radius:12px;
  margin-bottom:10px;
}
.profile-pet-button{
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.profile-pet-thumb{
  width:40px;
  height:40px;
  object-fit:cover;
  border-radius:8px;
  flex-shrink:0;
}

#customerAvailability{
  margin-top:16px;
}

#customerRequestMessage,
#customerAuthMessage{
  margin-top:12px;
}

@media (max-width:600px){
  .customer-shell{
    padding:12px;
  }

  .customer-card{
    padding:18px;
  }

  .customer-portal-header{
    flex-direction:column;
  }
}
.registration-important-notice{
  margin-bottom:24px;
  padding:20px;
  border:3px solid #b45309;
  border-radius:12px;
  background:#fff7ed;
}

.registration-important-notice h2{
  margin-top:0;
  font-weight:800;
  text-align:center;
}

.registration-important-notice p{
  line-height:1.5;
}

.registration-acknowledgment{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-top:18px;
  padding:14px;
  border:2px solid #b45309;
  border-radius:8px;
  background:#ffffff;
  cursor:pointer;
}

.registration-acknowledgment input{
  width:20px;
  height:20px;
  margin-top:2px;
  flex-shrink:0;
}
.link-button{
  appearance:none;
  border:0;
  background:none;
  padding:0;
  color:inherit;
  font:inherit;
  text-decoration:underline;
  cursor:pointer;
}

.link-button:hover{
  text-decoration:none;
}
.salon-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.salon-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  flex-shrink: 0;
}

.salon-brand h1 {
  margin: 0;
}

.salon-brand .subtle {
  margin: 4px 0 0;
}

@media (max-width: 650px) {
  .salon-logo {
    width: 56px;
    height: 56px;
  }
  .customer-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.customer-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

  .salon-brand {
    gap: 10px;
  }
}
.weekday-checkboxes{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px 20px;
  margin-top:8px;
}

.weekday-checkboxes label{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:600;
}

.weekday-checkboxes input[type="checkbox"]{
  width:auto;
  margin:0;
  flex:0 0 auto;
}

#capacityAdjustmentsDialog{
  overflow:hidden;
}

#capacityAdjustmentsDialog .dialog-card{
  max-height:90vh;
  overflow-y:auto;
  overscroll-behavior:contain;
}
.mass-message-client-option{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 4px;
  cursor:pointer;
}

.mass-message-client-option input[type="checkbox"]{
  margin:0;
  flex:0 0 auto;
}

.mass-message-client-option span{
  line-height:1.3;
}

#massMessageClientSearch{
  width:100%;
  margin-top:8px;
}

#massMessageSelectedCount{
  margin:6px 0 8px;
}
#massMessageClientList{
  display:block !important;
  width:100% !important;
}

#massMessageClientList label.mass-message-client-option{
  display:flex !important;
  flex-direction:row !important;
  justify-content:flex-start !important;
  align-items:center !important;
  width:100% !important;
  max-width:100% !important;
  gap:10px !important;
  margin:0 !important;
  padding:8px 0 !important;
  box-sizing:border-box !important;
}

#massMessageClientList label.mass-message-client-option input.mass-message-client{
  display:block !important;
  position:static !important;
  width:18px !important;
  height:18px !important;
  min-width:18px !important;
  margin:0 !important;
  padding:0 !important;
  flex:0 0 18px !important;
}

#massMessageClientList label.mass-message-client-option > span{
  display:block !important;
  position:static !important;
  width:auto !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  flex:0 1 auto !important;
  text-align:left !important;
  transform:none !important;
}


/* Staff availability finder */
#nextAvailableDialog{max-width:840px;max-height:calc(100dvh - 28px);overflow-y:auto}
#nextAvailableDialog .icon-button{min-width:44px;min-height:44px}
.next-available-services{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.next-available-date{display:block;width:100%;min-height:48px;margin:8px 0;padding:12px;border:1px solid var(--border);border-radius:10px;background:#eef9f8;color:var(--ink,#173b3d);text-align:left;font:inherit;cursor:pointer}
.next-available-date:hover{background:#d9f1ed}
.next-available-paging{display:flex;justify-content:space-between;gap:8px;margin-top:16px}
#nextAvailableDialog button:focus-visible{outline:3px solid #087d83;outline-offset:2px}
@media(max-width:650px){.next-available-services{grid-template-columns:1fr}.next-available-services section+section{border-top:1px solid var(--border);padding-top:12px}#nextAvailableDialog .dialog-actions{flex-wrap:wrap}}

/* Open the client profile directly from day/week household headers. */
.schedule-client-name{min-height:44px;max-width:100%;text-align:left;overflow-wrap:anywhere;font-weight:700}
.schedule-client-name:focus-visible{outline:3px solid var(--accent);outline-offset:3px;border-radius:3px}

.no-show-fee-row{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:10px 0;border-bottom:1px solid var(--border)}
.no-show-fee-row button{min-height:44px}


/* Keep nail-trim checkout at the far right of the navigation row. */
.toolbar #quickNailTrim{margin-left:auto}

.payment-report-dialog{max-width:1200px;max-height:92vh;overflow:auto}
.payment-report-filters,.payment-tip-selection{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin:16px 0}
.payment-report-filters .field{margin:0}
.payment-report-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0}
.payment-report-totals>div{padding:12px;background:#eef7f6;border-radius:9px;font-size:.85rem}
.payment-report-totals strong{display:block;font-size:1.3rem;margin-top:5px}
.payment-report-table{overflow:auto;max-height:50vh;margin-top:12px}
.payment-report-table table{border-collapse:collapse;width:100%;font-size:.85rem}
.payment-report-table th,.payment-report-table td{padding:10px;text-align:left;border-bottom:1px solid var(--border);vertical-align:top}
.payment-report-table th{position:sticky;top:0;background:var(--panel);white-space:nowrap}
.payment-report-table input{width:22px;height:22px;cursor:pointer}
#paymentReportStatus{margin-top:12px}
#paymentTipsByClient{padding-left:22px;line-height:1.7}
@media(max-width:650px){.payment-report-totals{grid-template-columns:1fr 1fr}.payment-report-filters .field{flex:1;min-width:120px}.payment-report-dialog button{min-height:44px}}

