/* PawCard 31.2.0 — compact, readable controls and full-height mobile content. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.grid-2 { grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 100%; min-width: 0; }
.grid-3 { grid-template-columns: repeat(3,minmax(0,1fr)); max-width: 100%; min-width: 0; }
.grid-2 > *, .grid-3 > *, .custom-date-row > * { min-width: 0; max-width: 100%; }
.text-input, .select-input, .text-area, .custom-date-input { min-width: 0; max-width: 100%; box-sizing: border-box; }
input[type="date"], input[type="time"] { display: block; width: 100%; min-inline-size: 0; -webkit-appearance: none; appearance: none; }
input::-webkit-date-and-time-value { text-align: left; min-width: 0; }
.btn-primary, .btn-secondary, .btn-cloud, .btn-walkin-fast, .quick-chip, .date-pill, .weekday-btn, .slot-toggle { display: inline-flex; align-items: center; justify-content: center; text-align: center; line-height: 1.35; }
.quick-chip.preset-active, .date-pill.active, .weekday-btn.off-active { color: var(--accent-ink) !important; background: var(--accent) !important; border-color: var(--accent) !important; }
.modal-footer { gap: 10px; flex-wrap: wrap; }
.modal-footer > button, .modal-footer > label { min-width: 0; max-width: 100%; text-align: center; justify-content: center; align-items: center; white-space: normal; overflow-wrap: anywhere; line-height: 1.35; }
.plus-tile { display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface-raised); width: 72px; height: 72px; padding: 0; border-radius: 16px; }
.photo-add-icon { display: inline-flex; align-items: center; justify-content: center; }
.photo-add-icon .icon { width: 31px; height: 31px; }
.photo-add-icon .icon path { fill: #f1f3f4; stroke: none; }
.photo-add-icon .icon circle { fill: var(--surface-raised); stroke: none; }
.plus-tile:hover { border-color: #59636b; }
.plus-tile.is-disabled { opacity: .35; }
.directory-scroll-area { position: relative; display: flex; flex: 1; min-height: 0; overflow: hidden; }
.directory-refresh-status { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 5; padding: 7px; width: 36px; height: 36px; border-radius: 50%; background: var(--bg); box-shadow: 0 1px 8px #0008; display: grid; place-items: center; pointer-events: none; animation: none; }
.refresh-spinner { width: 21px; height: 21px; border: 2px solid #333b40; border-top-color: var(--accent); border-radius: 50%; animation: refresh-spin .7s linear infinite; }
.directory-refresh-status.is-pulling .refresh-spinner { animation: none; transform: rotate(55deg); }
@keyframes refresh-spin { to { transform: rotate(360deg); } }
.client-list { transition: transform 180ms ease-out; }
.client-list.is-being-pulled { transition: none; }
.schedule-selectors { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.schedule-selector { width: 100%; min-width: 0; min-height: 56px; display: flex; gap: 8px; align-items: center; text-align: left; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.selector-copy { min-width: 0; flex: 1; }
.selector-copy small { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.selector-copy strong { display: block; font-size: 16px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.schedule-selector > .icon { width: 17px; height: 17px; transform: rotate(180deg); color: var(--muted); }
.schedule-selector:disabled { opacity: .45; }
.schedule-controls { gap: 10px; }
.schedule-empty-state { max-width: 340px; margin: 60px auto; padding: 0 20px; text-align: center; }
.schedule-empty-state h2 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.schedule-empty-state p { color: var(--muted); font-size: 15px; line-height: 1.65; }
.schedule-picker-card { max-width: 480px !important; max-height: min(74dvh,620px) !important; }
.picker-search { flex-shrink: 0; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.picker-search .search-input { padding-left: 14px; width: 100%; font-size: 16px !important; }
.schedule-picker-results { overflow-y: auto; min-height: 110px; padding: 0 18px 16px; }
.schedule-choice { width: 100%; display: flex; align-items: center; text-align: left; min-height: 58px; gap: 12px; border-bottom: 1px solid var(--line-soft); padding: 12px 2px; }
.schedule-choice > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.schedule-choice strong { font-size: 17px; font-weight: 550; }
.schedule-choice small { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); }
.schedule-choice.is-selected .icon { color: var(--accent); }
.picker-empty { padding: 30px 12px; text-align: center; font-size: 15px; color: var(--muted); }
#asgnSlotBanner { display: flex; flex-direction: column; gap: 5px; padding: 14px 16px !important; background: var(--surface-raised) !important; border: 1px solid var(--line) !important; color: var(--text) !important; }
#asgnSlotBanner > strong { color: var(--text); font-size: 19px; font-weight: 600; }
.assignment-when { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 14px; color: var(--muted); font-size: 15px; }
.assignment-time { color: var(--text); font-weight: 550; white-space: nowrap; }
#asgnSlotBanner > small { color: var(--muted); font-size: 13px; font-weight: 400; }
.earnings-sticky-bar { position: relative; display: block; padding: 0 !important; width: 100%; }
.earnings-sticky-bar #earnSummaryToggle { display: flex; align-items: center; width: 100%; padding: 12px 24px !important; min-height: 60px; text-align: left; gap: 12px; }
#mobileEarnCount { flex: 1; font-size: 15px; color: var(--muted); }
#mobileEarnTotal { font-size: 25px; font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.earnings-sticky-bar #earningsBreakdown { display: none; position: absolute; bottom: calc(100% + 8px); left: 16px; right: 16px; width: auto; max-width: 540px; margin-left: auto; border: 1px solid var(--line) !important; background: var(--surface-raised) !important; border-radius: 16px; padding: 16px 18px !important; box-shadow: 0 -10px 32px #0008; z-index: 60; max-height: 50dvh; overflow-y: auto; }
.earnings-sticky-bar #earningsBreakdown.is-open { display: block; }
.earn-breakdown-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.earn-breakdown-heading > strong { font-size: 15px; font-weight: 550; }
.earnings-sticky-bar #earnRateLabel { color: var(--muted) !important; font-size: 12px !important; letter-spacing: 0; text-transform: none; font-weight: 400; }
.earn-breakdown-rows { display: grid; grid-template-columns: minmax(0,1fr) max-content; gap: 10px 14px; align-items: baseline; margin: 0; }
.earn-breakdown-rows dt { font-size: 15px; color: var(--muted); overflow-wrap: anywhere; }
.earnings-sticky-bar #earnSummaryGross, .earnings-sticky-bar #earnSummaryTips, .earnings-sticky-bar #earnNetCommission { font-size: 16px !important; font-weight: 550 !important; color: var(--text) !important; margin: 0; text-align: right; font-variant-numeric: tabular-nums; line-height: 1.5; }
@media (max-width: 768px) {
  .mobile-keyboard-open { padding-bottom: 0; }
  .mobile-keyboard-open .mobile-nav { display: none; }
  .grid-2.has-date-fields, .grid-3.has-date-fields, .date-range-fields { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .custom-date-row { display: grid; grid-template-columns: minmax(0,1fr); }
  .custom-date-row > span { display: none; }
  .schedule-controls { padding: 8px 14px; gap: 8px; }
  .schedule-selectors { gap: 8px; }
  .schedule-selector { min-height: 52px; padding: 7px 10px; }
  .schedule-date-row input { min-width: 0; flex: 1 1 0; }
  .schedule-date-row > .quick-chip { display: none; }
  .mobile-schedule-presets { display: flex; gap: 8px; padding-bottom: 12px; }
  .mobile-schedule-presets > button { flex: 1; min-height: 42px; }
  .schedule-picker-results { padding-bottom: calc(16px + env(safe-area-inset-bottom,0px)); }
  .schedule-empty-state { margin-top: 45px; }
  #weeklyOffBtnsWrap { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
  .weekday-btn { width: 100%; min-width: 0; min-height: 44px; padding: 8px 4px; font-size: 15px; }
  .modal-footer { padding: 12px 16px calc(12px + env(safe-area-inset-bottom,0px)); }
  .modal-footer > button { min-height: 48px !important; padding: 10px 12px; font-size: 16px !important; }
  .modal-body button.btn-primary { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  .earnings-sticky-bar #earnSummaryToggle { padding: 10px 16px !important; min-height: 56px; }
  .earnings-sticky-bar #earningsBreakdown { left: 12px; right: 12px; }
}
@media (max-width: 360px) {
  .modal-footer > button { padding-inline: 9px; font-size: 15px !important; }
  .filter-bar { gap: 15px; }
  .filter-pill { font-size: 13px; }
  .earn-breakdown-rows { column-gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .client-list { transition: none; }
  .refresh-spinner { animation-duration: 1.5s; }
}
.legacy-schedule-note { margin: 0 0 14px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: 14px; line-height: 1.6; }
#asgnSlotBanner > strong, #asgnSlotBanner > small { max-width: 100%; overflow-wrap: anywhere; }
