.sts-app,
.sts-app * {
  box-sizing: border-box;
}

.sts-app {
  --sts-bg: #f5f6fb;
  --sts-card: #ffffff;
  --sts-text: #101828;
  --sts-muted: #667085;
  --sts-line: #e4e7ec;
  --sts-purple: #9923fa;
  --sts-purple-2: #c026d3;
  --sts-green: #14b87a;
  --sts-red: #ef4444;
  --sts-orange: #f59e0b;
  --sts-blue: #2563eb;
  --sts-dark: #0f172a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--sts-text);
}

.sts-login-required {
  max-width: 680px;
  padding: 24px;
  border-radius: 20px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 700;
}

.sts-shell {
  max-width: 1480px;
  margin: 0 auto;
  padding: 18px;
  background: var(--sts-bg);
  border-radius: 28px;
}

.sts-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding: 18px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.75);
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(15,23,42,0.06);
}

.sts-kicker {
  font-size: 13px;
  font-weight: 900;
  color: var(--sts-purple);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sts-topbar h2 {
  margin: 4px 0 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.05;
  font-weight: 950;
}

.sts-topbar-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.sts-select,
.sts-input {
  width: 100%;
  min-height: 58px;
  border: 1px solid #d9e0ea;
  border-radius: 18px;
  background: #fff;
  color: var(--sts-text);
  padding: 0 18px;
  font-size: 18px;
  outline: none;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.sts-select:focus,
.sts-input:focus {
  border-color: var(--sts-purple);
  box-shadow: 0 0 0 4px rgba(153,35,250,0.12);
}

.sts-refresh-badge {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f2f4f7;
  color: var(--sts-muted);
  font-size: 13px;
  font-weight: 800;
}

.sts-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.sts-summary-card {
  min-height: 86px;
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid #e8edf5;
  box-shadow: 0 10px 30px rgba(15,23,42,0.05);
}

.sts-summary-card span {
  display: block;
  font-size: 30px;
  line-height: 1;
  font-weight: 950;
}

.sts-summary-card small {
  display: block;
  margin-top: 7px;
  color: var(--sts-muted);
  font-size: 13px;
  font-weight: 850;
}

.sts-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.72fr) minmax(520px, 1.28fr);
  gap: 16px;
  align-items: start;
}

.sts-card {
  background: var(--sts-card);
  border: 1px solid #e8edf5;
  border-radius: 28px;
  box-shadow: 0 14px 44px rgba(15,23,42,0.06);
  overflow: hidden;
  margin-bottom: 16px;
}

.sts-card-heading,
.sts-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border-bottom: 1px solid #eef2f7;
}

.sts-card h3,
.sts-section-head h3,
.sts-modal-card h3 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.08;
  font-weight: 950;
}

.sts-card p,
.sts-section-head p,
.sts-stylist-picker p,
.sts-modal-card p {
  margin: 8px 0 0;
  color: var(--sts-muted);
  font-size: 14px;
  line-height: 1.35;
}

.sts-add-card {
  background: linear-gradient(135deg, var(--sts-purple) 0%, var(--sts-purple-2) 100%);
  color: #fff;
}

.sts-add-card .sts-card-heading {
  border-bottom-color: rgba(255,255,255,0.14);
}

.sts-add-card p,
.sts-add-card label {
  color: rgba(255,255,255,0.86);
}

.sts-type-toggle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 18px 20px 0;
}


.sts-type-toggle-nine {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sts-type-toggle-nine .sts-type-btn {
  padding: 8px 8px;
  line-height: 1.12;
  word-break: normal;
  overflow-wrap: anywhere;
}

.sts-type-btn {
  min-height: 54px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 18px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  cursor: pointer;
  touch-action: manipulation;
}

.sts-type-btn.active {
  background: #fff;
  color: var(--sts-purple);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.sts-add-grid {
  display: grid;
  grid-template-columns: 1fr 170px;
  gap: 12px;
  padding: 18px 20px 0;
}

.sts-stylist-picker {
  padding: 14px 20px 0;
}

.sts-stylist-picker label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 900;
}

.sts-stylist-picker.hidden {
  display: none;
}

.sts-primary-btn,
.sts-purple-btn,
.sts-secondary-btn,
.sts-checkin-btn,
.sts-complete-btn,
.sts-take-btn,
.sts-icon-btn,
.sts-direct-btn {
  min-height: 58px;
  border: 0;
  border-radius: 18px;
  padding: 0 20px;
  font-size: 17px;
  font-weight: 950;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease;
}

.sts-primary-btn:active,
.sts-purple-btn:active,
.sts-secondary-btn:active,
.sts-checkin-btn:active,
.sts-complete-btn:active,
.sts-take-btn:active,
.sts-direct-btn:active {
  transform: scale(.98);
}

.sts-primary-btn {
  width: calc(100% - 40px);
  margin: 14px 20px 20px;
  background: var(--sts-green);
  color: #fff;
  box-shadow: 0 14px 30px rgba(20,184,122,.24);
}

.sts-purple-btn {
  background: var(--sts-purple);
  color: #fff;
  white-space: nowrap;
}

.sts-secondary-btn {
  background: #eef2f7;
  color: #344054;
}

.sts-section-head > strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 56px;
  border-radius: 18px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 24px;
  font-weight: 950;
}

.sts-queue-list {
  padding: 16px;
  max-height: 540px;
  overflow: auto;
}

.sts-empty {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px dashed #d7deea;
  border-radius: 22px;
  color: #98a2b3;
  font-size: 17px;
  font-weight: 850;
}

.sts-queue-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 16px;
  padding: 18px;
  margin-bottom: 14px;
  border-radius: 24px;
  border: 1px solid #facc15;
  background: #fffbeb;
  align-items: start;
}

.sts-queue-item:last-child {
  margin-bottom: 0;
}

.sts-queue-card-new {
  min-height: 152px;
}

.sts-queue-num {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: #f59e0b;
  color: #fff;
  font-size: 31px;
  font-weight: 950;
  line-height: 1;
}

.sts-queue-content {
  min-width: 0;
}

.sts-queue-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.sts-queue-name {
  min-width: 0;
  color: #101828;
  font-size: 23px;
  line-height: 1.08;
  font-weight: 950;
  padding-top: 8px;
  overflow-wrap: anywhere;
}

.sts-queue-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.sts-queue-title strong {
  font-size: 21px;
  line-height: 1.12;
  font-weight: 950;
}

.sts-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
  color: #92400e;
  border: 1px solid #fde68a;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.sts-pill.walk_in,
.sts-pill.wa_walk_in,
.sts-pill.sc_walk_in,
.sts-pill.ref_walk_in,
.sts-pill.gg_walk_in,
.sts-pill.fb_walk_in,
.sts-pill.ig_walk_in {
  background: #ecfdf5;
  color: #047857;
  border-color: #bbf7d0;
}

.sts-pill.regular_walk_in {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.sts-pill.regular {
  background: #f5f3ff;
  color: #6d28d9;
  border-color: #ddd6fe;
}

.sts-queue-top .sts-pill {
  min-width: 116px;
  min-height: 40px;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.1;
  text-align: center;
}

.sts-queue-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.sts-mini-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 10px;
  background: rgba(255,255,255,.9);
  color: #475467;
  font-size: 13px;
  font-weight: 900;
}

.sts-duration-chip {
  white-space: nowrap;
}

.sts-assigned-pill {
  margin-top: 12px;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
  font-size: 16px;
  line-height: 1.1;
  font-weight: 950;
  text-align: center;
  overflow-wrap: anywhere;
}

.sts-mini-chip.assigned {
  background: #eef2ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
}

.sts-start-scheduled-walkin-btn {
  width: calc(100% - 84px);
  border: 1px solid #c7d2fe;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.sts-start-scheduled-walkin-btn:hover:not(:disabled) {
  background: #e0e7ff;
  box-shadow: 0 8px 18px rgba(55, 48, 163, .14);
  transform: translateY(-1px);
}

.sts-start-scheduled-walkin-btn:disabled {
  opacity: .72;
  cursor: wait;
  transform: none;
}

.sts-stylist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
}

.sts-stylist-card {
  position: relative;
  border: 2px solid #e5eaf3;
  border-radius: 26px;
  padding: 16px;
  background: #fff;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.sts-stylist-card.free {
  border-color: rgba(20,184,122,.36);
  box-shadow: inset 0 0 0 1px rgba(20,184,122,.04);
}

.sts-stylist-card.busy {
  border-color: rgba(239,68,68,.36);
  background: #fffafa;
}

.sts-stylist-card.not-checked {
  background: #f8fafc;
}

.sts-stylist-top {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.sts-avatar {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--sts-dark);
  color: #fff;
  font-size: 31px;
  font-weight: 950;
}

.sts-stylist-name {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.05;
  font-weight: 950;
}

.sts-specialty {
  margin-top: 5px;
  color: var(--sts-muted);
  font-size: 16px;
  font-weight: 800;
}

.sts-status-badge {
  min-width: 78px;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 950;
}

.sts-status-badge.free {
  background: var(--sts-green);
}

.sts-status-badge.busy {
  background: var(--sts-red);
}

.sts-status-badge.off {
  background: #667085;
}

.sts-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.sts-stat-box,
.sts-turn-box {
  min-height: 84px;
  padding: 13px;
  border: 1px solid #dfe7f2;
  border-radius: 18px;
  background: #fff;
}

.sts-stat-box strong,
.sts-turn-position {
  display: block;
  font-size: 28px;
  line-height: 1;
  font-weight: 950;
}

.sts-stat-box small,
.sts-turn-box small {
  display: block;
  margin-top: 8px;
  color: #667085;
  font-size: 13px;
  font-weight: 900;
}

.sts-checkin-btn {
  width: 100%;
  height: 58px;
  padding: 0 12px;
  background: #111827;
  color: #fff;
  font-size: 16px;
}

.sts-turn-box.checked {
  background: #f5f3ff;
  border-color: #ddd6fe;
  color: #6d28d9;
}

.sts-serving-box {
  min-height: 116px;
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid #dfe7f2;
  border-radius: 20px;
  background: #fff;
}

.sts-serving-box small {
  display: block;
  color: #667085;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.sts-serving-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sts-serving-title-row small {
  margin: 0;
}

.sts-serving-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 5px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 20px;
  line-height: 1;
  font-weight: 950;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
}

.sts-serving-type::after {
  content: '↗';
  margin-left: 7px;
  font-size: 13px;
  opacity: .75;
}

.sts-serving-type:active {
  transform: scale(.98);
}

.sts-type-walk_in,
.sts-type-wa_walk_in,
.sts-type-sc_walk_in,
.sts-type-ref_walk_in,
.sts-type-gg_walk_in,
.sts-type-fb_walk_in,
.sts-type-ig_walk_in {
  color: #dc2626;
  background: #fff1f2;
  border-color: #fecdd3;
}

.sts-type-regular_walk_in {
  color: #7c3aed;
  background: #f5f3ff;
  border-color: #ddd6fe;
}

.sts-type-regular {
  color: #0369a1;
  background: #ecfeff;
  border-color: #a5f3fc;
}

.sts-serving-box strong {
  display: block;
  margin-top: 10px;
  font-size: 23px;
  font-weight: 950;
}

.sts-time-left {
  display: inline-block;
  margin-top: 10px;
  color: #b42318;
  font-size: 16px;
  font-weight: 950;
}

.sts-action-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.sts-complete-btn {
  width: 100%;
  background: var(--sts-green);
  color: #fff;
  font-size: 22px;
  min-height: 72px;
}

.sts-take-btn {
  width: 100%;
  background: var(--sts-blue);
  color: #fff;
  min-height: 70px;
  font-size: 20px;
}

.sts-direct-btn {
  width: 100%;
  background: #eef2ff;
  color: #3730a3;
  min-height: 58px;
}

.sts-take-btn:disabled,
.sts-direct-btn:disabled,
.sts-primary-btn:disabled,
.sts-purple-btn:disabled,
.sts-checkin-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.sts-note {
  margin-top: 10px;
  color: #667085;
  font-size: 13px;
  font-weight: 800;
}

.sts-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15,23,42,.56);
}

.sts-modal.active {
  display: flex;
}

.sts-modal-card {
  width: min(560px, 100%);
  max-height: min(820px, 92vh);
  overflow: auto;
  padding: 24px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 72px rgba(15,23,42,.24);
}

.sts-reassign-card {
  width: min(680px, 100%);
}

.sts-reassign-card .sts-modal-head {
  align-items: flex-start;
}

.sts-reassign-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sts-reassign-option {
  min-height: 92px;
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  border: 2px solid #dfe7f2;
  background: #fff;
  color: var(--sts-dark);
  text-align: left;
}

.sts-reassign-option.free {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.sts-reassign-option.busy {
  border-color: #fecdd3;
  background: #fff1f2;
}

.sts-reassign-option.blocked {
  border-color: #d0d5dd;
  background: #f2f4f7;
  color: #98a2b3;
}

.sts-reassign-option.blocked .sts-reassign-avatar {
  background: #98a2b3;
}

.sts-reassign-option:disabled {
  opacity: .48;
  cursor: not-allowed;
}

.sts-reassign-option:not(:disabled):active {
  transform: scale(.985);
}

.sts-reassign-avatar,
.sts-reassign-tick {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--sts-dark);
  color: #fff;
  font-size: 26px;
  font-weight: 950;
}

.sts-reassign-tick {
  background: var(--sts-green);
}

.sts-reassign-option strong {
  display: block;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 950;
}

.sts-reassign-option small {
  display: block;
  margin-top: 6px;
  color: #667085;
  font-size: 13px;
  font-weight: 850;
}

.sts-reassign-help {
  margin: 16px 0 0;
  color: #667085;
  font-weight: 800;
}

.sts-report-card {
  width: min(1320px, calc(100vw - 28px));
}

.sts-report-modal-head {
  align-items: center;
}

.sts-report-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.sts-export-btn {
  min-width: 116px;
  white-space: nowrap;
}

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

.sts-icon-btn {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #344054;
  font-size: 30px;
  line-height: 1;
}

.sts-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.sts-modal-actions .sts-primary-btn {
  width: 100%;
  margin: 0;
}

.sts-report-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.sts-report-stat {
  padding: 14px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #e4e7ec;
}

.sts-report-stat strong {
  display: block;
  font-size: 25px;
  font-weight: 950;
}

.sts-report-stat small {
  display: block;
  margin-top: 5px;
  color: #667085;
  font-weight: 850;
}

.sts-report-table-wrap {
  overflow: auto;
  margin: 12px 0 20px;
  border: 1px solid #e4e7ec;
  border-radius: 16px;
}

.sts-report-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 14px;
}

.sts-report-table th,
.sts-report-table td {
  padding: 12px;
  border-bottom: 1px solid #eef2f7;
  text-align: left;
}

.sts-report-table th {
  background: #f8fafc;
  font-weight: 950;
}


.sts-turn-performance-table {
  width: 100%;
  min-width: 1180px;
  table-layout: fixed;
  font-size: 12.5px;
}

.sts-turn-performance-wrap {
  overflow-x: auto;
}

.sts-turn-performance-table th,
.sts-turn-performance-table td {
  padding: 9px 6px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  vertical-align: middle;
  text-align: center;
}

.sts-turn-performance-table th:nth-child(1),
.sts-turn-performance-table td:nth-child(1) { width: 14%; text-align: left; }

.sts-turn-performance-table th:nth-child(2),
.sts-turn-performance-table td:nth-child(2) { width: 8%; text-align: left; }

.sts-turn-performance-table th:nth-child(3),
.sts-turn-performance-table td:nth-child(3) { width: 6%; }

.sts-turn-performance-table th:nth-child(n+4),
.sts-turn-performance-table td:nth-child(n+4) { width: 7.2%; }

.sts-report-table th,
.sts-report-table td {
  white-space: nowrap;
}

.sts-toast {
  position: fixed;
  z-index: 100000;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(18px);
  min-width: 280px;
  max-width: calc(100vw - 36px);
  padding: 14px 18px;
  border-radius: 999px;
  color: #fff;
  background: #111827;
  text-align: center;
  font-weight: 900;
  box-shadow: 0 18px 44px rgba(15,23,42,.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.sts-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.sts-toast.success { background: var(--sts-green); }
.sts-toast.warning { background: var(--sts-orange); }
.sts-toast.error { background: var(--sts-red); }

@media (max-width: 1180px) {
  .sts-layout {
    grid-template-columns: 1fr;
  }
  .sts-stylist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .sts-shell {
    padding: 10px;
    border-radius: 0;
  }
  .sts-topbar {
    align-items: stretch;
    flex-direction: column;
    border-radius: 20px;
  }
  .sts-topbar-controls {
    justify-content: stretch;
  }
  .sts-topbar-controls > * {
    flex: 1 1 100%;
  }
  .sts-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sts-summary-grid .sts-summary-card:last-child {
    grid-column: span 2;
  }
  .sts-add-grid,
  .sts-type-toggle,
  .sts-stylist-grid,
  .sts-stats-row,
  .sts-modal-actions,
  .sts-report-stats {
    grid-template-columns: 1fr;
  }
  .sts-stylist-top {
    grid-template-columns: 64px 1fr;
  }
  .sts-status-badge {
    grid-column: span 2;
    width: 100%;
  }
  .sts-avatar {
    width: 64px;
    height: 64px;
    border-radius: 18px;
  }
  .sts-card-heading,
  .sts-section-head {
    flex-direction: column;
  }
  .sts-purple-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .sts-queue-item {
    grid-template-columns: 56px 1fr;
    padding: 12px;
  }
  .sts-queue-num {
    width: 56px;
    height: 56px;
    font-size: 20px;
  }
  .sts-queue-title {
    flex-direction: column;
  }
  .sts-primary-btn,
  .sts-purple-btn,
  .sts-secondary-btn,
  .sts-checkin-btn,
  .sts-complete-btn,
  .sts-take-btn,
  .sts-direct-btn {
    min-height: 62px;
  }
}

.sts-hidden {
  display: none !important;
}

.sts-login-card {
  min-height: min(760px, 90vh);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: linear-gradient(135deg, rgba(153,35,250,.10), rgba(20,184,122,.10));
  border-radius: 28px;
}

.sts-login-inner {
  width: min(680px, 100%);
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 30px;
  padding: clamp(24px, 5vw, 42px);
  box-shadow: 0 22px 70px rgba(15,23,42,.12);
}

.sts-login-inner h2 {
  margin: 4px 0 8px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.02;
  font-weight: 950;
}

.sts-login-inner p,
.sts-login-help,
.sts-outlet-label {
  color: var(--sts-muted);
  font-weight: 700;
}

.sts-login-grid {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 12px;
  margin: 22px 0 14px;
}

.sts-login-inner .sts-primary-btn {
  width: 100%;
  min-height: 68px;
  font-size: 20px;
}

.sts-login-help {
  margin-top: 14px;
  font-size: 14px;
  text-align: center;
}

.sts-outlet-label {
  margin: 8px 0 0;
  font-size: 14px;
}

@media (max-width: 640px) {
  .sts-login-card {
    padding: 14px;
    border-radius: 20px;
  }

  .sts-login-grid {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 640px) {
  .sts-turn-performance-table {
    font-size: 12px;
  }

  .sts-turn-performance-table th,
  .sts-turn-performance-table td {
    padding: 9px 6px;
  }
}

/* v1.8 outlet header: large centered branch name */
.sts-topbar {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto minmax(250px, 1fr);
  align-items: center;
}

.sts-topbar-left {
  min-width: 0;
}

.sts-branch-title {
  justify-self: center;
  text-align: center;
  color: #3445d9;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sts-outlet-label {
  display: none !important;
}

@media (max-width: 980px) {
  .sts-topbar {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .sts-branch-title {
    order: 2;
    margin: 10px 0 4px;
    white-space: normal;
  }

  .sts-topbar-controls {
    order: 3;
    justify-content: center;
  }
}


.sts-turn-performance-table th:nth-child(1),
.sts-turn-performance-table td:nth-child(1) { width: 22%; }
.sts-turn-performance-table th:nth-child(2),
.sts-turn-performance-table td:nth-child(2) { width: 13%; }
.sts-turn-performance-table th:nth-child(3),
.sts-turn-performance-table td:nth-child(3) { width: 10%; text-align: center; }
.sts-turn-performance-table th:nth-child(4),
.sts-turn-performance-table td:nth-child(4) { width: 12%; text-align: center; }
.sts-turn-performance-table th:nth-child(5),
.sts-turn-performance-table td:nth-child(5) { width: 17%; text-align: center; }
.sts-turn-performance-table th:nth-child(6),
.sts-turn-performance-table td:nth-child(6) { width: 13%; text-align: center; }
.sts-turn-performance-table th:nth-child(7),
.sts-turn-performance-table td:nth-child(7) { width: 13%; text-align: center; }

.sts-turn-performance-table th,
.sts-turn-performance-table td {
  font-size: 13px;
  padding-left: 6px;
  padding-right: 6px;
}

@media (max-width: 700px) {
  .sts-turn-performance-wrap { overflow-x: auto; }
  .sts-turn-performance-table { min-width: 640px; }
}

/* v2.1 fixed counter workspace: no top summary counter cards, fixed header/left panel, scrollable stylist screen */
.sts-summary-grid {
  display: none !important;
}

.sts-shell {
  min-height: calc(100vh - 24px);
  max-height: calc(100vh - 24px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sts-topbar {
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  z-index: 30;
  margin-bottom: 16px;
}

.sts-layout {
  flex: 1 1 auto;
  min-height: 0;
  align-items: stretch;
}

.sts-left-panel,
.sts-right-panel {
  min-height: 0;
}

.sts-left-panel {
  height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
}

.sts-left-panel .sts-card:last-child {
  margin-bottom: 0;
}

.sts-right-panel {
  height: 100%;
  overflow: hidden;
}

.sts-right-panel > .sts-card {
  height: 100%;
  min-height: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sts-right-panel .sts-section-head {
  flex: 0 0 auto;
}

.sts-stylist-grid {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  align-content: start;
}

.sts-stylist-grid::-webkit-scrollbar,
.sts-left-panel::-webkit-scrollbar,
.sts-queue-list::-webkit-scrollbar {
  width: 8px;
}

.sts-stylist-grid::-webkit-scrollbar-thumb,
.sts-left-panel::-webkit-scrollbar-thumb,
.sts-queue-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.sts-stylist-grid::-webkit-scrollbar-track,
.sts-left-panel::-webkit-scrollbar-track,
.sts-queue-list::-webkit-scrollbar-track {
  background: transparent;
}

@media (max-width: 1180px) {
  .sts-shell {
    max-height: none;
    min-height: 100vh;
    overflow: visible;
  }
  .sts-layout {
    display: block;
  }
  .sts-left-panel,
  .sts-right-panel,
  .sts-right-panel > .sts-card {
    height: auto;
    overflow: visible;
  }
  .sts-stylist-grid {
    max-height: none;
    overflow: visible;
  }
}

/* v2.2 remove stylist section header/action bar. Stylist cards fill the right panel. */
.sts-stylists-card {
  padding: 0;
}

.sts-stylists-card .sts-stylist-grid {
  padding: 22px;
}

.sts-right-panel .sts-stylists-card .sts-stylist-grid {
  flex: 1 1 auto;
}

@media (max-width: 820px) {
  .sts-stylists-card .sts-stylist-grid {
    padding: 14px;
  }
}

@media (max-width: 640px) {
  .sts-reassign-grid {
    grid-template-columns: 1fr;
  }
}

/* v2.5 header/control overlap fix: keep report/logout/updated inside the top bar, not over the New Customer card */
.sts-topbar {
  overflow: visible;
  isolation: isolate;
}

.sts-topbar-controls {
  flex-wrap: nowrap !important;
  min-width: max-content;
  align-items: center;
}

.sts-topbar-controls .sts-secondary-btn,
.sts-topbar-controls .sts-refresh-badge {
  white-space: nowrap;
  flex: 0 0 auto;
}

.sts-topbar-controls #stsReportBtn {
  min-width: 150px;
}

.sts-topbar-controls #stsExportReportBtn {
  min-width: 124px;
}

.sts-topbar-controls #stsLogoutBtn {
  min-width: 108px;
}

.sts-topbar-controls #stsRefreshBadge {
  min-width: 145px;
  justify-content: center;
}

.sts-layout {
  position: relative;
  z-index: 1;
}

.sts-left-panel,
.sts-right-panel {
  position: relative;
  z-index: 1;
}

@media (max-width: 1400px) {
  .sts-topbar {
    grid-template-columns: minmax(180px, 1fr) auto;
    grid-template-areas: "branch controls";
    gap: 14px;
  }

  .sts-topbar-left {
    display: none !important;
  }

  .sts-branch-title {
    grid-area: branch;
    justify-self: start;
    text-align: left;
    font-size: clamp(40px, 5.2vw, 60px);
  }

  .sts-topbar-controls {
    grid-area: controls;
    justify-content: flex-end;
  }
}

@media (max-width: 900px) {
  .sts-topbar {
    grid-template-columns: 1fr;
    grid-template-areas:
      "branch"
      "controls";
    text-align: center;
  }

  .sts-branch-title {
    justify-self: center;
    text-align: center;
    margin: 0;
  }

  .sts-topbar-controls {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .sts-topbar-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-width: 0;
    width: 100%;
  }

  .sts-topbar-controls .sts-secondary-btn,
  .sts-topbar-controls .sts-refresh-badge {
    width: 100%;
    min-width: 0 !important;
  }

  .sts-topbar-controls #stsRefreshBadge {
    grid-column: 1 / -1;
  }
}

/* v2.6: removed New Customer heading; keep the type buttons neat at the top */
.sts-add-card {
  padding-top: 22px;
}
.sts-add-card .sts-type-toggle {
  margin-top: 0;
}
#stsCustomerName:required::placeholder {
  color: #6b7280;
}


/* v2.7 Oly logo + compact 3-column stylist layout + remove wrong customer button */
.sts-shell {
  max-width: 1840px;
}

.sts-topbar {
  display: grid !important;
  grid-template-columns: 170px minmax(180px, 1fr) auto;
  grid-template-areas: "logo branch controls";
  align-items: center;
  gap: 14px;
}

.sts-topbar-left.sts-logo-area {
  grid-area: logo;
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}

.sts-oly-logo {
  width: 132px;
  max-width: 100%;
  height: 58px;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}

.sts-branch-title {
  grid-area: branch;
  text-align: center;
  justify-self: center;
  font-size: clamp(38px, 4.2vw, 64px);
  line-height: 1;
}

.sts-topbar-controls {
  grid-area: controls;
}

.sts-layout {
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr) !important;
  gap: 12px;
}

.sts-left-panel .sts-card {
  border-radius: 18px;
}

.sts-left-panel .sts-type-toggle {
  gap: 8px;
  padding: 14px 14px 0;
}

.sts-left-panel .sts-type-btn {
  min-height: 46px;
  border-radius: 13px;
  padding: 6px 6px;
  font-size: 10px;
  letter-spacing: -0.2px;
  line-height: 1.1;
}

.sts-left-panel .sts-add-grid {
  grid-template-columns: 1fr 88px;
  gap: 8px;
  padding: 12px 14px 0;
}

.sts-left-panel .sts-input,
.sts-left-panel .sts-select {
  min-height: 46px;
  border-radius: 12px;
  padding: 0 10px;
  font-size: 13px;
}

.sts-left-panel .sts-primary-btn {
  width: calc(100% - 28px);
  margin: 10px 14px 14px;
  min-height: 46px;
  border-radius: 13px;
  font-size: 13px;
}

.sts-left-panel .sts-section-head {
  padding: 14px;
}

.sts-left-panel .sts-section-head h3 {
  font-size: 18px;
}

.sts-left-panel .sts-section-head p {
  font-size: 10px;
}

.sts-left-panel .sts-section-head > strong {
  min-width: 42px;
  min-height: 42px;
  border-radius: 13px;
  font-size: 17px;
}

.sts-left-panel .sts-queue-list {
  padding: 12px;
}

.sts-stylists-card .sts-stylist-grid,
.sts-stylist-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  padding: 12px !important;
}

.sts-stylist-card {
  border-radius: 18px;
  padding: 10px;
}

.sts-stylist-top {
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 10px;
}

.sts-avatar {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  font-size: 22px;
}

.sts-stylist-name {
  font-size: clamp(17px, 1.5vw, 24px);
  line-height: 1.05;
  word-break: break-word;
}

.sts-specialty {
  font-size: 11px;
  margin-top: 3px;
}

.sts-status-badge {
  min-width: 54px;
  min-height: 40px;
  padding: 0 10px;
  font-size: 11px;
}

.sts-stats-row {
  gap: 8px;
  margin-bottom: 10px;
}

.sts-stat-box,
.sts-turn-box {
  min-height: 70px;
  padding: 10px;
  border-radius: 14px;
}

.sts-stat-box strong,
.sts-turn-position {
  font-size: 22px;
}

.sts-stat-box small,
.sts-turn-box small {
  margin-top: 6px;
  font-size: 10px;
}

.sts-serving-box {
  min-height: 92px;
  padding: 11px;
  margin-bottom: 10px;
  border-radius: 15px;
}

.sts-serving-box small {
  font-size: 10px;
}

.sts-serving-title-row {
  gap: 7px;
}

.sts-serving-tools {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.sts-serving-type {
  min-height: 28px;
  padding: 4px 9px;
  font-size: 12px;
}

.sts-serving-type::after {
  margin-left: 5px;
  font-size: 10px;
}

.sts-remove-current-btn {
  width: 28px;
  height: 28px;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #fecaca;
  border-radius: 999px;
  background: #fff;
  color: #ef4444;
  font-size: 20px;
  line-height: 1;
  font-weight: 950;
  cursor: pointer;
  touch-action: manipulation;
}

.sts-remove-current-btn:active {
  transform: scale(.94);
}

.sts-serving-box strong {
  margin-top: 8px;
  font-size: 17px;
}

.sts-time-left {
  margin-top: 7px;
  font-size: 12px;
}

.sts-complete-btn,
.sts-take-btn {
  min-height: 52px;
  border-radius: 13px;
  font-size: 16px;
}

.sts-direct-btn,
.sts-checkin-btn {
  min-height: 48px;
  border-radius: 13px;
  font-size: 13px;
}

.sts-note {
  margin-top: 8px;
  font-size: 10px;
  line-height: 1.25;
}

@media (max-width: 1500px) {
  .sts-stylists-card .sts-stylist-grid,
  .sts-stylist-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1180px) {
  .sts-stylists-card .sts-stylist-grid,
  .sts-stylist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .sts-topbar {
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "branch"
      "controls";
  }

  .sts-topbar-left.sts-logo-area,
  .sts-branch-title,
  .sts-topbar-controls {
    justify-self: center;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .sts-stylists-card .sts-stylist-grid,
  .sts-stylist-grid {
    grid-template-columns: 1fr !important;
  }
}


/* v2.9 daily report source columns + wider report screen */
.sts-report-card {
  width: min(1320px, calc(100vw - 28px)) !important;
  max-height: min(860px, 94vh);
}

.sts-report-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.sts-export-btn {
  min-width: 116px;
  white-space: nowrap;
}

.sts-turn-performance-wrap {
  overflow-x: auto !important;
}

.sts-turn-performance-table {
  width: 100% !important;
  min-width: 1180px !important;
  table-layout: fixed !important;
  font-size: 12.5px !important;
}

.sts-turn-performance-table th,
.sts-turn-performance-table td {
  padding: 9px 6px !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  vertical-align: middle !important;
  text-align: center !important;
}

.sts-turn-performance-table th:nth-child(1),
.sts-turn-performance-table td:nth-child(1) { width: 14% !important; text-align: left !important; }
.sts-turn-performance-table th:nth-child(2),
.sts-turn-performance-table td:nth-child(2) { width: 8% !important; text-align: left !important; }
.sts-turn-performance-table th:nth-child(3),
.sts-turn-performance-table td:nth-child(3) { width: 6% !important; }
.sts-turn-performance-table th:nth-child(n+4),
.sts-turn-performance-table td:nth-child(n+4) { width: 7.2% !important; }

.sts-topbar-controls #stsExportReportBtn {
  min-width: 124px;
}

@media (max-width: 900px) {
  .sts-report-head-actions {
    gap: 8px;
  }
  .sts-report-card {
    padding: 18px;
  }
}

@media (max-width: 640px) {
  .sts-report-head-actions .sts-export-btn {
    min-width: 104px;
    padding-left: 12px;
    padding-right: 12px;
  }
}


/* v3.8 - Waiting queue card: cleaner narrow-panel arrangement */
.sts-left-panel .sts-queue-list {
  padding: 12px;
}

.sts-left-panel .sts-queue-item,
.sts-queue-item.sts-queue-card-new {
  display: block;
  padding: 14px;
  margin-bottom: 14px;
  border-radius: 22px;
  border: 1.5px solid #fbbf24;
  background: linear-gradient(180deg, #fffdf3 0%, #fffbeb 100%);
  min-height: auto;
}

.sts-queue-main-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.sts-left-panel .sts-queue-num,
.sts-queue-item.sts-queue-card-new .sts-queue-num {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  font-size: 28px;
  flex: 0 0 72px;
}

.sts-queue-type-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 7px;
  min-width: 0;
}

.sts-left-panel .sts-queue-top {
  display: block;
}

.sts-left-panel .sts-queue-top .sts-pill,
.sts-queue-type-row .sts-pill {
  min-width: 0;
  max-width: 100%;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.05;
  white-space: normal;
  text-align: center;
}

.sts-left-panel .sts-queue-name,
.sts-queue-item.sts-queue-card-new .sts-queue-name {
  padding-top: 0;
  font-size: 20px;
  line-height: 1.12;
  font-weight: 950;
  color: #111827;
  word-break: break-word;
  overflow-wrap: anywhere;
  margin-bottom: 8px;
}

.sts-left-panel .sts-queue-meta,
.sts-queue-item.sts-queue-card-new .sts-queue-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 8px;
  align-items: center;
}

.sts-left-panel .sts-mini-chip,
.sts-queue-item.sts-queue-card-new .sts-mini-chip {
  min-height: 32px;
  padding: 5px 9px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .94);
  color: #4b5563;
  font-size: 13px;
  line-height: 1.05;
  font-weight: 900;
}

.sts-left-panel .sts-mini-chip strong,
.sts-queue-item.sts-queue-card-new .sts-mini-chip strong {
  color: #374151;
  font-size: 14px;
}

.sts-left-panel .sts-duration-chip,
.sts-queue-item.sts-queue-card-new .sts-duration-chip {
  white-space: nowrap;
  padding-left: 12px;
  padding-right: 12px;
}

.sts-left-panel .sts-assigned-pill,
.sts-queue-item.sts-queue-card-new .sts-assigned-pill {
  margin-top: 12px;
  margin-left: 84px;
  min-height: 38px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 15px;
  line-height: 1.1;
  text-align: center;
  word-break: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 1280px) {
  .sts-queue-main-row {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
  }
  .sts-left-panel .sts-queue-num,
  .sts-queue-item.sts-queue-card-new .sts-queue-num {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    font-size: 25px;
  }
  .sts-left-panel .sts-assigned-pill,
  .sts-queue-item.sts-queue-card-new .sts-assigned-pill {
    margin-left: 74px;
    font-size: 14px;
  }
  .sts-left-panel .sts-queue-name,
  .sts-queue-item.sts-queue-card-new .sts-queue-name {
    font-size: 18px;
  }
}

@media (max-width: 900px) {
  .sts-left-panel .sts-assigned-pill,
  .sts-queue-item.sts-queue-card-new .sts-assigned-pill {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .sts-queue-main-row {
    grid-template-columns: 58px minmax(0, 1fr);
  }
  .sts-left-panel .sts-queue-num,
  .sts-queue-item.sts-queue-card-new .sts-queue-num {
    width: 58px;
    height: 58px;
    font-size: 22px;
  }
  .sts-left-panel .sts-queue-name,
  .sts-queue-item.sts-queue-card-new .sts-queue-name {
    font-size: 17px;
  }
  .sts-queue-type-row {
    justify-content: flex-start;
  }
}

/* v3.8 Fixed appointment time controls
   Walk-in types do not show timer/duration controls. Regular Walk and Regular show Start Time / End Time only. */
.sts-duration-wrap.hidden,
.sts-appointment-wrap.hidden {
  display: none !important;
}

.sts-add-grid-single {
  grid-template-columns: 1fr !important;
}

.sts-appointment-wrap {
  padding: 12px 14px 0;
}

.sts-appointment-wrap label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 900;
  color: rgba(255,255,255,0.92);
}

.sts-time-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sts-regular-helper-text,
.sts-note,
.sts-stylist-picker p {
  -webkit-user-select: none;
  user-select: none;
}

.sts-appointment-chip strong {
  white-space: nowrap;
}

.sts-booked-btn:disabled,
.sts-take-btn:disabled {
  cursor: not-allowed;
  opacity: .62;
}

.sts-note-blocked {
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.22);
}

@media (max-width: 640px) {
  .sts-time-grid {
    grid-template-columns: 1fr;
  }
}


/* v3.8.1 appointment queue chip: remove Arrived label for fixed appointments and keep Appt on one clean line */
.sts-left-panel .sts-queue-meta-appointment,
.sts-queue-item.sts-queue-card-new .sts-queue-meta-appointment {
  display: block !important;
  margin-top: 8px;
  min-width: 0;
}

.sts-left-panel .sts-appointment-chip,
.sts-queue-item.sts-queue-card-new .sts-appointment-chip {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  justify-content: flex-start;
  gap: 4px;
  padding: 7px 10px;
  overflow: hidden;
  white-space: nowrap;
  text-shadow: none !important;
  box-shadow: none !important;
}

.sts-left-panel .sts-appointment-chip strong,
.sts-queue-item.sts-queue-card-new .sts-appointment-chip strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: none !important;
}

@media (max-width: 420px) {
  .sts-left-panel .sts-appointment-chip,
  .sts-queue-item.sts-queue-card-new .sts-appointment-chip {
    font-size: 12px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .sts-left-panel .sts-appointment-chip strong,
  .sts-queue-item.sts-queue-card-new .sts-appointment-chip strong {
    font-size: 12px;
  }
}

/* v3.8.2 walk-in auto assignment fix: future appointments should not hide the Take Next Walk-in button. */
.sts-note-appointment {
  background: rgba(153, 35, 250, 0.10);
  color: #5b1398;
  border-color: rgba(153, 35, 250, 0.20);
}

/* v3.8.3 fixed appointment safety + compact queue layout */
.sts-left-panel .sts-queue-main-row,
.sts-queue-item.sts-queue-card-new .sts-queue-main-row {
  grid-template-columns: 46px minmax(0, 1fr) !important;
  gap: 10px !important;
}

.sts-left-panel .sts-queue-num,
.sts-queue-item.sts-queue-card-new .sts-queue-num {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  border-radius: 14px !important;
  font-size: 17px !important;
  line-height: 1 !important;
}

.sts-left-panel .sts-queue-name,
.sts-queue-item.sts-queue-card-new .sts-queue-name {
  font-size: 20px !important;
  line-height: 1.08 !important;
  margin-bottom: 6px !important;
}

.sts-left-panel .sts-queue-type-row,
.sts-queue-item.sts-queue-card-new .sts-queue-type-row {
  justify-content: flex-start !important;
  margin-bottom: 5px !important;
}

.sts-left-panel .sts-queue-meta-appointment,
.sts-queue-item.sts-queue-card-new .sts-queue-meta-appointment {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 7px !important;
  align-items: center !important;
  width: 100% !important;
  margin-top: 6px !important;
}

.sts-left-panel .sts-appointment-chip,
.sts-queue-item.sts-queue-card-new .sts-appointment-chip {
  min-height: 30px !important;
  padding: 6px 9px !important;
  font-size: 12.5px !important;
  letter-spacing: -0.01em;
}

.sts-left-panel .sts-appointment-chip strong,
.sts-queue-item.sts-queue-card-new .sts-appointment-chip strong {
  font-size: 12.5px !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

.sts-left-panel .sts-assigned-pill,
.sts-queue-item.sts-queue-card-new .sts-assigned-pill {
  margin-left: 56px !important;
}

.sts-queue-item.sts-queue-card-new .sts-start-scheduled-walkin-btn {
  width: calc(100% - 56px);
}

.sts-edit-appt-btn {
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: none !important;
  white-space: nowrap;
}

.sts-edit-appt-btn:hover {
  filter: brightness(1.08);
}

.sts-edit-appt-card {
  max-width: 460px;
}

.sts-edit-time-grid {
  margin-top: 14px;
}

.sts-edit-appt-help {
  margin: 10px 0 0;
  color: #667085;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
  user-select: none;
}

@media (max-width: 480px) {
  .sts-left-panel .sts-queue-main-row,
  .sts-queue-item.sts-queue-card-new .sts-queue-main-row {
    grid-template-columns: 40px minmax(0, 1fr) !important;
    gap: 8px !important;
  }
  .sts-left-panel .sts-queue-num,
  .sts-queue-item.sts-queue-card-new .sts-queue-num {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    border-radius: 12px !important;
    font-size: 15px !important;
  }
  .sts-left-panel .sts-assigned-pill,
  .sts-queue-item.sts-queue-card-new .sts-assigned-pill {
    margin-left: 0 !important;
  }
  .sts-left-panel .sts-queue-meta-appointment,
  .sts-queue-item.sts-queue-card-new .sts-queue-meta-appointment {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 5px !important;
  }
  .sts-left-panel .sts-appointment-chip,
  .sts-queue-item.sts-queue-card-new .sts-appointment-chip,
  .sts-left-panel .sts-appointment-chip strong,
  .sts-queue-item.sts-queue-card-new .sts-appointment-chip strong {
    font-size: 11.5px !important;
  }
  .sts-edit-appt-btn {
    padding: 0 8px;
    font-size: 11px;
  }
}

/* v3.8.5 fixed appointment card layout - match requested design and show full appointment time */
.sts-left-panel .sts-queue-item.sts-fixed-appointment-card,
.sts-queue-item.sts-fixed-appointment-card {
  display: block !important;
  position: relative !important;
  padding: 22px 22px 20px !important;
  border-radius: 28px !important;
  border: 1.5px solid #fbbf24 !important;
  background: linear-gradient(180deg, #fffef7 0%, #fff9e8 100%) !important;
  box-shadow: none !important;
  text-shadow: none !important;
  overflow: hidden !important;
}

.sts-left-panel .sts-queue-item.sts-fixed-appointment-card *,
.sts-queue-item.sts-fixed-appointment-card * {
  text-shadow: none !important;
}

.sts-fixed-top-grid {
  display: grid !important;
  grid-template-columns: 78px minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: start !important;
  width: 100% !important;
}

.sts-left-panel .sts-fixed-appointment-card .sts-queue-num,
.sts-fixed-appointment-card .sts-queue-num {
  width: 78px !important;
  height: 78px !important;
  min-width: 78px !important;
  border-radius: 21px !important;
  background: #f59e0b !important;
  color: #fff !important;
  font-size: 24px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  display: grid !important;
  place-items: center !important;
  box-shadow: none !important;
}

.sts-fixed-info {
  min-width: 0 !important;
  width: 100% !important;
}

.sts-left-panel .sts-fixed-appointment-card .sts-queue-type-row,
.sts-fixed-appointment-card .sts-queue-type-row {
  display: flex !important;
  justify-content: flex-end !important;
  margin: 6px 0 10px !important;
  min-width: 0 !important;
  width: 100% !important;
}

.sts-left-panel .sts-fixed-appointment-card .sts-pill,
.sts-fixed-appointment-card .sts-pill {
  width: min(198px, 100%) !important;
  min-height: 58px !important;
  padding: 0 20px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  white-space: nowrap !important;
  font-size: 19px !important;
  line-height: 1.05 !important;
  font-weight: 950 !important;
  box-shadow: none !important;
}

.sts-left-panel .sts-fixed-appointment-card .sts-queue-name,
.sts-fixed-appointment-card .sts-queue-name {
  width: 100% !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  color: #111827 !important;
  font-size: 24px !important;
  line-height: 1.1 !important;
  font-weight: 950 !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

.sts-fixed-appt-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 78px !important;
  gap: 12px !important;
  align-items: center !important;
  width: 100% !important;
  margin-top: 18px !important;
}

.sts-appointment-text {
  min-width: 0 !important;
  color: #111827 !important;
  font-size: 17px !important;
  line-height: 1.15 !important;
  font-weight: 950 !important;
  letter-spacing: -0.02em !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.sts-appointment-text strong {
  font-size: inherit !important;
  font-weight: 950 !important;
  color: #111827 !important;
  white-space: nowrap !important;
}

.sts-fixed-appointment-card .sts-edit-appt-btn {
  width: 78px !important;
  min-width: 78px !important;
  min-height: 50px !important;
  height: 50px !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #111827 !important;
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
}

.sts-left-panel .sts-fixed-appointment-card .sts-fixed-assigned-pill,
.sts-fixed-appointment-card .sts-fixed-assigned-pill {
  width: min(310px, 100%) !important;
  min-height: 76px !important;
  margin: 20px 0 0 auto !important;
  padding: 10px 18px !important;
  border-radius: 999px !important;
  background: #eef2ff !important;
  color: #3730a3 !important;
  border: 1px solid #c7d2fe !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  box-shadow: none !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
}

.sts-fixed-assigned-pill span,
.sts-fixed-assigned-pill strong {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #3730a3 !important;
  font-size: 24px !important;
  line-height: 1.02 !important;
  font-weight: 950 !important;
  letter-spacing: -0.02em !important;
}

.sts-fixed-assigned-pill strong {
  text-transform: uppercase !important;
}

@media (max-width: 540px) {
  .sts-left-panel .sts-queue-item.sts-fixed-appointment-card,
  .sts-queue-item.sts-fixed-appointment-card {
    padding: 18px 18px 18px !important;
    border-radius: 26px !important;
  }

  .sts-fixed-top-grid {
    grid-template-columns: 66px minmax(0, 1fr) !important;
    gap: 14px !important;
  }

  .sts-left-panel .sts-fixed-appointment-card .sts-queue-num,
  .sts-fixed-appointment-card .sts-queue-num {
    width: 66px !important;
    height: 66px !important;
    min-width: 66px !important;
    border-radius: 18px !important;
    font-size: 21px !important;
  }

  .sts-left-panel .sts-fixed-appointment-card .sts-pill,
  .sts-fixed-appointment-card .sts-pill {
    min-height: 48px !important;
    width: min(176px, 100%) !important;
    padding: 0 16px !important;
    font-size: 16px !important;
  }

  .sts-left-panel .sts-fixed-appointment-card .sts-queue-name,
  .sts-fixed-appointment-card .sts-queue-name {
    font-size: 22px !important;
  }

  .sts-fixed-appt-row {
    grid-template-columns: minmax(0, 1fr) 68px !important;
    gap: 9px !important;
    margin-top: 16px !important;
  }

  .sts-appointment-text,
  .sts-appointment-text strong {
    font-size: 15.5px !important;
    letter-spacing: -0.035em !important;
  }

  .sts-fixed-appointment-card .sts-edit-appt-btn {
    width: 68px !important;
    min-width: 68px !important;
    height: 46px !important;
    min-height: 46px !important;
    font-size: 16px !important;
  }

  .sts-left-panel .sts-fixed-appointment-card .sts-fixed-assigned-pill,
  .sts-fixed-appointment-card .sts-fixed-assigned-pill {
    width: min(260px, 100%) !important;
    min-height: 68px !important;
    margin-top: 18px !important;
  }

  .sts-fixed-assigned-pill span,
  .sts-fixed-assigned-pill strong {
    font-size: 20px !important;
  }
}

@media (max-width: 380px) {
  .sts-fixed-top-grid {
    grid-template-columns: 58px minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .sts-left-panel .sts-fixed-appointment-card .sts-queue-num,
  .sts-fixed-appointment-card .sts-queue-num {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    border-radius: 16px !important;
    font-size: 18px !important;
  }

  .sts-left-panel .sts-fixed-appointment-card .sts-pill,
  .sts-fixed-appointment-card .sts-pill {
    width: min(150px, 100%) !important;
    min-height: 44px !important;
    font-size: 14px !important;
  }

  .sts-fixed-appt-row {
    grid-template-columns: minmax(0, 1fr) 58px !important;
  }

  .sts-appointment-text,
  .sts-appointment-text strong {
    font-size: 13.5px !important;
  }

  .sts-fixed-appointment-card .sts-edit-appt-btn {
    width: 58px !important;
    min-width: 58px !important;
    height: 40px !important;
    min-height: 40px !important;
    font-size: 13px !important;
  }
}


/* v3.8.6 left customer/queue panel wider by about 1cm */
.sts-layout {
  grid-template-columns: minmax(288px, 338px) minmax(0, 1fr) !important;
}

.sts-left-panel {
  width: 100%;
}

@media (max-width: 1180px) {
  .sts-layout {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 820px) {
  .sts-shell {
    padding-left: 6px;
    padding-right: 6px;
  }
}

@media (max-width: 420px) {
  .sts-shell {
    padding-left: 4px;
    padding-right: 4px;
  }

  .sts-left-panel .sts-card {
    margin-left: 0;
    margin-right: 0;
  }
}


/* v3.8.7 reduce left/right whitespace and use full browser width on desktop/tablet */
@media (min-width: 821px) {
  .sts-app {
    width: calc(100vw - 12px) !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw + 6px) !important;
    margin-right: calc(50% - 50vw + 6px) !important;
  }

  .sts-shell {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 8px !important;
    border-radius: 22px !important;
  }

  .sts-topbar {
    margin-bottom: 8px !important;
    padding: 14px 16px !important;
    border-radius: 20px !important;
  }

  .sts-layout {
    gap: 8px !important;
    grid-template-columns: minmax(320px, 350px) minmax(0, 1fr) !important;
  }

  .sts-left-panel {
    padding-right: 0 !important;
  }

  .sts-stylists-card .sts-stylist-grid,
  .sts-stylist-grid {
    gap: 8px !important;
    padding: 8px !important;
  }
}

@media (min-width: 1181px) {
  .sts-layout {
    grid-template-columns: minmax(330px, 350px) minmax(0, 1fr) !important;
  }
}


/* v3.8.9 walk-in queue card: display arrived time cleanly and remove duration badge */
.sts-queue-meta.sts-queue-meta-arrived-only,
.sts-left-panel .sts-queue-meta.sts-queue-meta-arrived-only,
.sts-queue-item.sts-queue-card-new .sts-queue-meta.sts-queue-meta-arrived-only {
  display: block;
  margin-top: 8px;
}

.sts-queue-meta-arrived-only .sts-arrived-chip {
  width: 100%;
  justify-content: center;
  white-space: nowrap;
  min-height: 32px;
}

.sts-queue-meta-arrived-only .sts-arrived-chip strong {
  margin-left: 3px;
}


/* v3.8.10 queue delete button, arrived time, and serving start time fixes */
.sts-queue-item.sts-queue-card-new {
  position: relative !important;
}

.sts-queue-actions-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin-bottom: 7px !important;
  min-width: 0 !important;
}

.sts-queue-actions-row .sts-pill {
  min-width: 0 !important;
  max-width: calc(100% - 44px) !important;
  min-height: 34px !important;
  padding: 0 13px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  line-height: 1.05 !important;
  white-space: normal !important;
  text-align: center !important;
}

.sts-queue-delete-btn,
.sts-remove-current-btn {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 32px !important;
  border: 1.5px solid #fecaca !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #ef4444 !important;
  font-size: 21px !important;
  line-height: 1 !important;
  font-weight: 950 !important;
  cursor: pointer !important;
  text-align: center !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.sts-queue-delete-btn:active,
.sts-remove-current-btn:active {
  transform: scale(.94) !important;
}

.sts-fixed-delete-btn {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  z-index: 3 !important;
}

.sts-fixed-appointment-card .sts-queue-type-row {
  padding-right: 38px !important;
}

.sts-queue-arrived-row {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  width: 100% !important;
  min-height: 32px !important;
  margin-top: 6px !important;
  padding: 5px 10px !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,.94) !important;
  color: #374151 !important;
  font-size: 14px !important;
  line-height: 1.1 !important;
  font-weight: 950 !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

.sts-queue-arrived-row strong {
  color: #111827 !important;
  font-size: 14px !important;
  font-weight: 950 !important;
}

.sts-queue-arrived-colon {
  color: #111827 !important;
  font-weight: 950 !important;
}

.sts-serving-title-row {
  align-items: center !important;
}

.sts-serving-tools {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  flex: 0 0 auto !important;
}

.sts-service-start-time {
  display: inline-block !important;
  margin-top: 7px !important;
  color: #b42318 !important;
  font-size: 13px !important;
  line-height: 1.15 !important;
  font-weight: 950 !important;
  white-space: nowrap !important;
}

.sts-time-left {
  display: none !important;
}


/* v3.8.11 unify queue pill typography and make Walk-in pill red */
.sts-pill.walk_in,
.sts-pill.wa_walk_in,
.sts-pill.sc_walk_in,
.sts-pill.ref_walk_in,
.sts-pill.gg_walk_in,
.sts-pill.fb_walk_in,
.sts-pill.ig_walk_in {
  background: #fef2f2 !important;
  color: #dc2626 !important;
  border-color: #fecaca !important;
}

.sts-left-panel .sts-fixed-appointment-card .sts-pill,
.sts-fixed-appointment-card .sts-pill {
  font-size: 13px !important;
  line-height: 1.1 !important;
}

.sts-left-panel .sts-assigned-pill,
.sts-queue-item.sts-queue-card-new .sts-assigned-pill {
  font-size: 13px !important;
  line-height: 1.1 !important;
}

.sts-fixed-assigned-pill span,
.sts-fixed-assigned-pill strong {
  font-size: 13px !important;
  line-height: 1.15 !important;
  text-transform: none !important;
}

@media (max-width: 540px) {
  .sts-fixed-assigned-pill span,
  .sts-fixed-assigned-pill strong,
  .sts-left-panel .sts-fixed-appointment-card .sts-pill,
  .sts-fixed-appointment-card .sts-pill,
  .sts-left-panel .sts-assigned-pill,
  .sts-queue-item.sts-queue-card-new .sts-assigned-pill {
    font-size: 13px !important;
  }
}


/* v3.8.12 make Regular Walk-in / Regular cards follow the Walk-in queue layout */
.sts-queue-item.sts-fixed-appointment-card.sts-queue-card-match {
  display: block !important;
  position: relative !important;
  padding: 14px !important;
  margin-bottom: 14px !important;
  border-radius: 22px !important;
  border: 1.5px solid #fbbf24 !important;
  background: linear-gradient(180deg, #fffdf3 0%, #fffbeb 100%) !important;
  box-shadow: none !important;
  text-shadow: none !important;
  overflow: hidden !important;
}

.sts-queue-item.sts-fixed-appointment-card.sts-queue-card-match .sts-queue-main-row {
  display: grid !important;
  grid-template-columns: 46px minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: start !important;
}

.sts-queue-item.sts-fixed-appointment-card.sts-queue-card-match .sts-queue-num {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  border-radius: 14px !important;
  background: #f59e0b !important;
  color: #fff !important;
  font-size: 17px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  display: grid !important;
  place-items: center !important;
  box-shadow: none !important;
}

.sts-queue-item.sts-fixed-appointment-card.sts-queue-card-match .sts-queue-content {
  min-width: 0 !important;
  width: 100% !important;
}

.sts-queue-item.sts-fixed-appointment-card.sts-queue-card-match .sts-queue-actions-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin-bottom: 7px !important;
  min-width: 0 !important;
}

.sts-queue-item.sts-fixed-appointment-card.sts-queue-card-match .sts-pill {
  width: auto !important;
  min-width: 0 !important;
  max-width: calc(100% - 44px) !important;
  min-height: 34px !important;
  padding: 0 13px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  line-height: 1.05 !important;
  font-weight: 950 !important;
  white-space: normal !important;
  text-align: center !important;
  box-shadow: none !important;
}

.sts-queue-item.sts-fixed-appointment-card.sts-queue-card-match .sts-queue-name {
  width: 100% !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 0 8px !important;
  color: #111827 !important;
  font-size: 20px !important;
  line-height: 1.12 !important;
  font-weight: 950 !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

.sts-fixed-time-edit-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px !important;
  align-items: center !important;
  width: 100% !important;
}

.sts-queue-item.sts-fixed-appointment-card.sts-queue-card-match .sts-fixed-time-row {
  width: 100% !important;
  min-height: 31px !important;
  margin: 0 !important;
  padding: 6px 10px !important;
  border-radius: 9px !important;
  background: rgba(255, 255, 255, .94) !important;
  color: #111827 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  line-height: 1.05 !important;
  font-weight: 950 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  letter-spacing: 0 !important;
}

.sts-queue-item.sts-fixed-appointment-card.sts-queue-card-match .sts-fixed-time-row strong {
  font-size: 13px !important;
  line-height: 1.05 !important;
  font-weight: 950 !important;
  color: #111827 !important;
  white-space: nowrap !important;
}

.sts-queue-item.sts-fixed-appointment-card.sts-queue-card-match .sts-edit-appt-btn {
  width: auto !important;
  min-width: 58px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 13px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #111827 !important;
  color: #fff !important;
  font-size: 13px !important;
  line-height: 1 !important;
  font-weight: 950 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
}

.sts-queue-item.sts-fixed-appointment-card.sts-queue-card-match .sts-fixed-assigned-pill,
.sts-queue-item.sts-fixed-appointment-card.sts-queue-card-match .sts-assigned-pill {
  width: auto !important;
  min-height: 38px !important;
  margin: 12px 0 0 56px !important;
  padding: 7px 12px !important;
  border-radius: 999px !important;
  background: #eef2ff !important;
  color: #3730a3 !important;
  border: 1px solid #c7d2fe !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  font-size: 13px !important;
  line-height: 1.1 !important;
  font-weight: 950 !important;
  box-shadow: none !important;
  text-transform: none !important;
  overflow-wrap: anywhere !important;
}

@media (max-width: 480px) {
  .sts-queue-item.sts-fixed-appointment-card.sts-queue-card-match .sts-queue-main-row {
    grid-template-columns: 40px minmax(0, 1fr) !important;
    gap: 8px !important;
  }
  .sts-queue-item.sts-fixed-appointment-card.sts-queue-card-match .sts-queue-num {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    border-radius: 12px !important;
    font-size: 15px !important;
  }
  .sts-queue-item.sts-fixed-appointment-card.sts-queue-card-match .sts-fixed-assigned-pill,
  .sts-queue-item.sts-fixed-appointment-card.sts-queue-card-match .sts-assigned-pill {
    margin-left: 0 !important;
  }
}


/* v3.8.13 center outlet login button inside the login card */
.sts-login-inner .sts-primary-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 24px 0 20px !important;
  box-sizing: border-box !important;
  text-align: center !important;
}


/* v3.8.14 stylist temporary NA toggle */
.sts-avatar-toggle {
  border: 0 !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  transition: transform .14s ease, filter .14s ease, box-shadow .14s ease !important;
}

.sts-avatar-toggle:hover {
  transform: translateY(-1px) !important;
  filter: brightness(1.08) !important;
}

.sts-avatar-toggle:disabled {
  opacity: .7 !important;
  cursor: wait !important;
  transform: none !important;
}

.sts-stylist-card.unavailable {
  border-color: rgba(148, 163, 184, .75) !important;
  background: #f8fafc !important;
}

.sts-stylist-card.unavailable .sts-avatar {
  background: #64748b !important;
}

.sts-status-badge.na {
  background: #64748b !important;
}

.sts-turn-box-na {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

.sts-turn-box-na .sts-turn-position,
.sts-turn-box-na small {
  color: #475569 !important;
}

.sts-na-btn {
  width: 100% !important;
  min-height: 54px !important;
  border: 0 !important;
  border-radius: 13px !important;
  background: #94a3b8 !important;
  color: #fff !important;
  font-weight: 950 !important;
  font-size: 16px !important;
  cursor: not-allowed !important;
}

.sts-note-na {
  background: rgba(100, 116, 139, .10) !important;
  color: #475569 !important;
  border-color: rgba(100, 116, 139, .22) !important;
}


/* v3.8.16 walk-in skip feature + next-turn red dot */
.sts-status-badge-btn {
  border: 0 !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  transition: filter .14s ease, transform .14s ease !important;
}

.sts-status-badge-btn:hover {
  filter: brightness(1.05) !important;
  transform: translateY(-1px) !important;
}

.sts-status-badge-btn:disabled {
  opacity: .75 !important;
  cursor: wait !important;
  transform: none !important;
}

.sts-status-badge.skip {
  background: #facc15 !important;
  color: #3f2d00 !important;
}

.sts-skip-btn {
  width: 100% !important;
  min-height: 54px !important;
  border: 0 !important;
  border-radius: 13px !important;
  background: #fde68a !important;
  color: #3f2d00 !important;
  font-weight: 950 !important;
  font-size: 16px !important;
  cursor: not-allowed !important;
}

.sts-next-turn-dot {
  display: inline-block !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  border-radius: 999px !important;
  background: #ef4444 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, .16) !important;
}

.sts-note-skip {
  background: rgba(250, 204, 21, .16) !important;
  color: #5b4a00 !important;
  border-color: rgba(250, 204, 21, .34) !important;
}


/* v3.8.17 proper Regular Walk-in / Regular appointment cancellation */
.sts-cancel-appt-btn {
  width: 100% !important;
  min-height: 36px !important;
  margin-top: 10px !important;
  border: 1.5px solid #fecaca !important;
  border-radius: 999px !important;
  background: #fff1f2 !important;
  color: #dc2626 !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

.sts-cancel-appt-btn:hover {
  background: #ffe4e6 !important;
}

.sts-cancel-appt-btn:disabled {
  opacity: .65 !important;
  cursor: wait !important;
}


/* v3.8.18 active fixed appointment recovery and cancel button */
.sts-cancel-active-appt-btn {
  margin-top: 10px !important;
  min-height: 36px !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #fee2e2 !important;
  color: #b91c1c !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  cursor: pointer !important;
}

.sts-cancel-active-appt-btn:hover {
  filter: brightness(.98) !important;
}


/* v3.8.21 upcoming regular appointment warning */
.sts-note-appointment-alert {
  background: rgba(239, 68, 68, .12) !important;
  color: #991b1b !important;
  border-color: rgba(239, 68, 68, .26) !important;
  font-weight: 950 !important;
}


/* v3.8.27 blinking standby dot for upcoming Walk-in turn */
.sts-stylist-card {
  position: relative !important;
}

.sts-walkin-standby-dot {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  width: 12px !important;
  height: 12px !important;
  min-width: 12px !important;
  min-height: 12px !important;
  border-radius: 999px !important;
  background: #ef4444 !important;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, .62) !important;
  animation: stsWalkinStandbyBlink 1s ease-in-out infinite !important;
  z-index: 5 !important;
  pointer-events: none !important;
}

@keyframes stsWalkinStandbyBlink {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, .62);
  }
  50% {
    opacity: .35;
    transform: scale(.72);
    box-shadow: 0 0 0 7px rgba(239, 68, 68, 0);
  }
}

@media (max-width: 640px) {
  .sts-walkin-standby-dot {
    top: 10px !important;
    right: 10px !important;
    width: 11px !important;
    height: 11px !important;
    min-width: 11px !important;
    min-height: 11px !important;
  }
}


/* v3.8.28 stylist panel visibility window */
.sts-stylist-panel-message {
  min-height: 160px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 28px !important;
  border: 2px dashed #d9e2ef !important;
  border-radius: 24px !important;
  background: rgba(255,255,255,.72) !important;
  color: #475467 !important;
  font-size: 18px !important;
  font-weight: 950 !important;
  text-align: center !important;
}

/* v3.8.30 appointment board screen */
.sts-screen-toggle-btn {
  background: #9923FA !important;
  color: #fff !important;
}

.sts-appointment-screen {
  padding: 16px;
}

.sts-appt-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 18px 20px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid #e5eaf3;
}

.sts-appt-board-head h3,
.sts-appt-form-card h3 {
  margin: 0;
  color: #101828;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 950;
}

.sts-appt-board-head p {
  margin: 6px 0 0;
  color: #667085;
  font-size: 14px;
  font-weight: 800;
}

.sts-appt-grid {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 14px;
}

.sts-appt-form-card,
.sts-appt-list-card {
  padding: 18px !important;
}

.sts-appt-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 14px 0;
}

.sts-appt-filter-row {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.sts-appt-filter-buttons,
.sts-appt-stylist-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sts-appt-filter-buttons button,
.sts-appt-stylist-tabs button {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #dfe7f2;
  background: #f8fafc;
  color: #344054;
  font-size: 14px;
  font-weight: 950;
  cursor: pointer;
}

.sts-appt-filter-buttons button.active,
.sts-appt-stylist-tabs button.active {
  background: #eef2ff;
  color: #3730a3;
  border-color: #c7d2fe;
}

.sts-appt-list {
  display: grid;
  gap: 12px;
}

.sts-appt-card {
  padding: 16px;
  border-radius: 22px;
  border: 1.5px solid #dfe7f2;
  background: #fff;
  box-shadow: none;
}

.sts-appt-card.upcoming {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.sts-appt-card.serving {
  border-color: #bbf7d0;
  background: #ecfdf5;
}

.sts-appt-card.cancelled {
  border-color: #fecaca;
  background: #fff1f2;
}

.sts-appt-card.completed {
  border-color: #d0d5dd;
  background: #f9fafb;
}

.sts-appt-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sts-appt-card-top strong {
  color: #101828;
  font-size: 20px;
  font-weight: 950;
}

.sts-appt-card-top span {
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.8);
  color: #344054;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.sts-appt-card-name {
  margin-top: 10px;
  color: #101828;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 950;
}

.sts-appt-card-meta,
.sts-appt-card-date {
  margin-top: 6px;
  color: #667085;
  font-size: 14px;
  font-weight: 850;
}

.sts-appt-card-actions {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 9px;
  margin-top: 14px;
}

.sts-appt-card-actions .sts-edit-appt-btn,
.sts-appt-card-actions .sts-cancel-appt-btn {
  min-height: 46px !important;
}

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

@media (max-width: 540px) {
  .sts-appointment-screen {
    padding: 8px;
  }
  .sts-appt-board-head,
  .sts-appt-form-card,
  .sts-appt-list-card {
    border-radius: 22px !important;
    padding: 14px !important;
  }
  .sts-appt-board-head h3,
  .sts-appt-form-card h3 {
    font-size: 22px;
  }
  .sts-appt-card-top {
    align-items: flex-start;
    flex-direction: column;
  }
  .sts-appt-card-actions {
    grid-template-columns: 1fr;
  }
}


/* v3.8.32 Appointment Board available stylist finder */
.sts-appt-auto-stylist-hint {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  border: 1px solid #dfe7f2;
  border-radius: 14px;
  background: #f8fafc;
  color: #475467;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.25;
}

.sts-available-stylists-card {
  max-width: 520px;
}

.sts-available-stylists-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.sts-available-stylist-option {
  width: 100%;
  border: 1px solid #dfe7f2;
  border-radius: 18px;
  background: #fff;
  color: #111827;
  padding: 12px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .05);
}

.sts-available-stylist-option:hover {
  border-color: rgba(153, 35, 250, .55);
  background: #fbf5ff;
}

.sts-available-stylist-option strong,
.sts-available-stylist-option small {
  display: block;
}

.sts-available-stylist-option strong {
  font-size: 17px;
  font-weight: 950;
  line-height: 1.15;
}

.sts-available-stylist-option small {
  margin-top: 3px;
  color: #667085;
  font-size: 13px;
  font-weight: 800;
}

.sts-available-stylists-help {
  margin: 12px 0 0;
  color: #667085;
  font-size: 13px;
  font-weight: 800;
}


/* v3.8.33 responsive top bar behavior: mobile scrolls naturally, tablet/desktop stays sticky */
@media (max-width: 767px) {
  .sts-shell {
    max-height: none !important;
    overflow: visible !important;
  }

  .sts-topbar {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
  }
}

@media (min-width: 768px) {
  .sts-topbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 30 !important;
  }
}


/* v3.8.34 compact mobile top bar: leave more room for long outlet names */
@media (max-width: 767px) {
  .sts-topbar {
    grid-template-columns: 86px minmax(0, 1fr) !important;
    grid-template-areas:
      "logo branch"
      "controls controls" !important;
    gap: 8px 10px !important;
    padding: 10px 8px !important;
    align-items: center !important;
    overflow: visible !important;
  }

  .sts-topbar-left.sts-logo-area {
    justify-self: start !important;
    width: 86px !important;
  }

  .sts-oly-logo {
    width: 86px !important;
    height: 52px !important;
    border-radius: 10px !important;
  }

  .sts-branch-title {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    justify-self: stretch !important;
    text-align: left !important;
    font-size: clamp(28px, 9vw, 42px) !important;
    line-height: .95 !important;
    letter-spacing: -0.04em !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .sts-topbar-controls {
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    justify-self: stretch !important;
  }

  .sts-topbar-controls .sts-secondary-btn,
  .sts-topbar-controls .sts-refresh-badge {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 50px !important;
    padding: 0 8px !important;
    border-radius: 18px !important;
    font-size: 15px !important;
    line-height: 1.05 !important;
    text-align: center !important;
  }

  .sts-topbar-controls #stsScreenToggleBtn,
  .sts-topbar-controls #stsReportBtn,
  .sts-topbar-controls #stsExportReportBtn,
  .sts-topbar-controls #stsLogoutBtn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .sts-topbar-controls #stsRefreshBadge {
    grid-column: 1 / -1 !important;
    min-height: 44px !important;
    font-size: 14px !important;
  }
}

@media (max-width: 380px) {
  .sts-branch-title {
    font-size: clamp(24px, 8vw, 34px) !important;
  }

  .sts-topbar-controls .sts-secondary-btn,
  .sts-topbar-controls .sts-refresh-badge {
    min-height: 46px !important;
    font-size: 14px !important;
  }
}


/* =========================================================
   v3.8.37 Appointment Board cleanup + scrollable appointment panels
   - Removed Appointment Board title bar
   - Add Appointment panel scrolls independently
   - Appointment display panel scrolls independently
   - Browser alert replaced with custom dark blue reminder popup
   ========================================================= */

.sts-appt-board-head {
  display: none !important;
}

@media (min-width: 821px) {
  .sts-appointment-screen {
    padding: 0 !important;
    height: calc(100dvh - 116px) !important;
    min-height: 520px !important;
    overflow: hidden !important;
  }

  .sts-appointment-screen:not(.sts-hidden) {
    display: block !important;
  }

  .sts-appt-grid {
    height: 100% !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(300px, 430px) minmax(0, 1fr) !important;
    gap: 14px !important;
    align-items: stretch !important;
  }

  .sts-appt-form-card {
    height: 100% !important;
    min-height: 0 !important;
    margin-bottom: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
  }

  .sts-appt-list-card {
    height: 100% !important;
    min-height: 0 !important;
    margin-bottom: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  .sts-appt-filter-row {
    flex: 0 0 auto !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    margin-bottom: 12px !important;
    padding-bottom: 14px !important;
    background: #ffffff !important;
  }

  .sts-appt-list {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-right: 10px !important;
    align-content: start !important;
    -webkit-overflow-scrolling: touch;
  }

  .sts-appt-form-card::-webkit-scrollbar,
  .sts-appt-list::-webkit-scrollbar {
    width: 8px;
  }

  .sts-appt-form-card::-webkit-scrollbar-thumb,
  .sts-appt-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
  }

  .sts-appt-form-card::-webkit-scrollbar-track,
  .sts-appt-list::-webkit-scrollbar-track {
    background: transparent;
  }
}

@media (max-width: 820px) {
  .sts-appointment-screen {
    padding: 8px !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  .sts-appt-grid {
    grid-template-columns: 1fr !important;
  }

  .sts-appt-form-card,
  .sts-appt-list-card,
  .sts-appt-list {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

.sts-reminder-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.48);
}

.sts-reminder-popup-overlay.active {
  display: flex;
}

.sts-reminder-popup-box {
  width: min(520px, 100%);
  background: #071d3b;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 30px 28px 24px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
  animation: stsReminderPop 0.22s ease-out;
}

.sts-reminder-popup-message {
  color: #eef5ff;
  font-size: 22px;
  line-height: 1.6;
  font-weight: 600;
  white-space: pre-line;
}

.sts-reminder-popup-actions {
  margin-top: 34px;
  display: flex;
  justify-content: flex-end;
}

.sts-reminder-popup-ok {
  min-width: 94px;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #071d3b;
  font-size: 18px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

.sts-reminder-popup-ok:active {
  transform: scale(0.96);
}

@keyframes stsReminderPop {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(8px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@media (max-width: 480px) {
  .sts-reminder-popup-box {
    border-radius: 24px;
    padding: 28px 24px 22px;
  }

  .sts-reminder-popup-message {
    font-size: 20px;
  }

  .sts-reminder-popup-ok {
    min-width: 88px;
    min-height: 44px;
    font-size: 17px;
  }
}

/* =========================================================
   v3.8.38 Appt page calendar replacement
   - Replaces the old Appt list/form screen only
   - Main queue screen remains unchanged
   ========================================================= */

.sts-appointment-screen:not(.sts-hidden) {
  display: block !important;
}

.sts-calendar-board {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}

.sts-calendar-datebar {
  flex: 0 0 auto;
  height: 1cm;
  max-height: 1cm;
  min-height: 1cm;
  display: grid;
  grid-template-columns: 1cm minmax(0, 1fr) 1cm auto auto;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  border: 1px solid rgba(213, 226, 245, .95);
  border-radius: 18px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 6px 16px rgba(15, 23, 42, .05);
  overflow: hidden;
}

.sts-calendar-nav-btn {
  width: 1cm;
  height: 1cm;
  min-height: 1cm;
  border: 0;
  border-radius: 13px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 25px;
  line-height: 1;
  font-weight: 950;
  cursor: pointer;
}

.sts-calendar-dates {
  height: 1cm;
  max-height: 1cm;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.sts-calendar-dates::-webkit-scrollbar {
  display: none;
}

.sts-cal-scroll::-webkit-scrollbar {
  height: 9px;
  width: 9px;
}

.sts-calendar-dates::-webkit-scrollbar-thumb,
.sts-cal-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.sts-calendar-date-btn {
  flex: 0 0 1cm;
  width: 1cm;
  height: 1cm;
  min-height: 1cm;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #f3f4f6;
  color: #64748b;
  cursor: pointer;
  scroll-snap-align: center;
  box-shadow: inset 0 -6px 12px rgba(15, 23, 42, .04);
}

.sts-calendar-date-btn span,
.sts-calendar-date-btn small {
  font-size: 7px;
  line-height: .92;
  font-weight: 900;
}

.sts-calendar-date-btn strong {
  font-size: 16px;
  line-height: .95;
  font-weight: 950;
}

.sts-calendar-today-btn,
.sts-calendar-sync-btn {
  min-height: 1cm !important;
  height: 1cm !important;
  padding: 0 14px !important;
  border-radius: 13px !important;
  font-size: 13px !important;
  line-height: 1 !important;
}

.sts-calendar-date-btn.today {
  border-color: #f59e0b;
  background: #f59e0b;
  color: #fff;
  box-shadow: 0 12px 24px rgba(245, 158, 11, .25);
}

.sts-calendar-date-btn.selected {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, .28);
}

.sts-calendar-date-btn.today.selected {
  background: linear-gradient(135deg, #f59e0b, #2563eb);
  border-color: #fff;
}

.sts-calendar-actionbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(213, 226, 245, .95);
  border-radius: 22px;
  background: rgba(255, 255, 255, .92);
}

.sts-calendar-actionbar h3 {
  margin: 0;
  color: #101828;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.1;
  font-weight: 950;
}

.sts-calendar-actionbar p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 850;
}

.sts-calendar-find-btn {
  min-width: 210px;
}

.sts-calendar-grid-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(213, 226, 245, .95);
  border-radius: 24px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}

.sts-cal-scroll {
  width: 100%;
  height: 100%;
  overflow: auto;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

.sts-cal-header,
.sts-cal-row {
  display: flex;
  min-width: max-content;
}

.sts-cal-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 250, 252, .96);
  border-bottom: 1px solid #dbe6f3;
}

.sts-cal-row {
  border-bottom: 1px solid #e7edf6;
}

.sts-cal-stylist-label {
  position: sticky;
  left: 0;
  z-index: 16;
  flex: 0 0 112px;
  width: 112px;
  min-height: 82px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding: 8px 6px;
  border-right: 1px solid #dbe6f3;
  background: rgba(255, 255, 255, .98);
  color: #334155;
  text-align: center;
}

.sts-cal-header-label {
  min-height: 48px;
  font-size: 14px;
  font-weight: 950;
  color: #475467;
  z-index: 25;
  background: #f8fafc;
}

.sts-cal-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 18px;
  font-weight: 950;
  box-shadow: 0 10px 18px rgba(15, 23, 42, .13);
}

.sts-cal-stylist-label small {
  max-width: 96px;
  color: #475467;
  font-size: 11px;
  line-height: 1.15;
  font-weight: 900;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  white-space: nowrap;
}

.sts-cal-time-track,
.sts-cal-track {
  position: relative;
  flex: 0 0 auto;
}

.sts-cal-time-track {
  height: 48px;
  background: #f8fafc;
}

.sts-cal-track {
  height: 82px;
  background-image: linear-gradient(to right, rgba(203, 213, 225, .72) 1px, transparent 1px), linear-gradient(to bottom, rgba(226, 232, 240, .55) 1px, transparent 1px);
  background-size: 84px 82px, 100% 41px;
}

.sts-cal-time-cell {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #dbe6f3;
  color: #475467;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.sts-cal-empty-slot {
  position: absolute;
  top: 0;
  bottom: 0;
  border: 0;
  border-right: 1px solid rgba(203, 213, 225, .7);
  background: transparent;
  cursor: pointer;
}

.sts-cal-empty-slot:hover {
  background: rgba(153, 35, 250, .08);
  outline: 2px solid rgba(153, 35, 250, .18);
  outline-offset: -2px;
}

.sts-cal-booking,
.sts-cal-holiday-block {
  position: absolute;
  top: 9px;
  bottom: 9px;
  min-width: 58px;
  border: 0;
  border-radius: 14px;
  padding: 7px 10px;
  color: #fff;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(15, 23, 42, .16);
  z-index: 10;
}

.sts-cal-booking strong,
.sts-cal-holiday-block strong {
  display: block;
  font-size: 13px;
  line-height: 1.12;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sts-cal-booking span,
.sts-cal-holiday-block span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.15;
  font-weight: 850;
  opacity: .94;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sts-cal-booking.cancelled,
.sts-cal-booking.completed {
  filter: grayscale(.45);
  opacity: .72;
}

.sts-cal-booking.serving {
  outline: 3px solid rgba(34, 197, 94, .32);
}

.sts-cal-holiday-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ef4444;
  cursor: not-allowed;
}

.sts-cal-color-0 { background: #2563eb; }
.sts-cal-color-1 { background: #dc2626; }
.sts-cal-color-2 { background: #16a34a; }
.sts-cal-color-3 { background: #0891b2; }
.sts-cal-color-4 { background: #9333ea; }
.sts-cal-color-5 { background: #ea580c; }
.sts-cal-color-6 { background: #0f766e; }
.sts-cal-color-7 { background: #be185d; }
.sts-cal-color-8 { background: #4f46e5; }
.sts-cal-color-9 { background: #65a30d; }

.sts-quick-appt-card {
  max-width: 620px !important;
}

.sts-quick-appt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.sts-quick-appt-grid #stsQuickApptCustomerName,
.sts-quick-appt-grid #stsQuickApptStylist {
  grid-column: 1 / -1;
}

.sts-quick-appt-help {
  margin: 10px 0 0 !important;
  color: #64748b !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

.sts-quick-appt-actions {
  grid-template-columns: 1fr 1fr 1fr;
}

.sts-quick-appt-actions .sts-hidden {
  display: none !important;
}

@media (min-width: 821px) {
  .sts-appointment-screen {
    height: calc(100dvh - 96px) !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
}

@media (max-width: 820px) {
  .sts-appointment-screen {
    height: calc(100dvh - 92px) !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .sts-calendar-board {
    padding: 6px;
    gap: 8px;
  }

  .sts-calendar-datebar {
    grid-template-columns: 1cm minmax(0, 1fr) 1cm;
    gap: 6px;
    padding: 0 6px;
  }

  .sts-calendar-today-btn,
  .sts-calendar-sync-btn {
    display: none !important;
  }


  .sts-calendar-actionbar {
    align-items: stretch;
    flex-direction: column;
    padding: 10px;
  }

  .sts-calendar-find-btn {
    min-width: 0;
    width: 100%;
  }

  .sts-cal-stylist-label {
    flex-basis: 90px;
    width: 90px;
  }

  .sts-cal-avatar {
    width: 42px;
    height: 42px;
    font-size: 15px;
  }

  .sts-cal-stylist-label small {
    max-width: 78px;
    font-size: 10px;
  }

  .sts-quick-appt-grid,
  .sts-quick-appt-actions {
    grid-template-columns: 1fr;
  }
}
.sts-quick-appt-actions {
  display: grid !important;
  gap: 10px !important;
}


/* =========================================================
   v3.8.41 Top bar 20% thinner
   - Reduces header vertical height on tablet/desktop and mobile
   - Keeps logo, outlet name, buttons, and timestamp aligned
   ========================================================= */
@media (min-width: 768px) {
  .sts-topbar {
    padding: 10px 14px !important;
    gap: 12px !important;
    border-radius: 18px !important;
    margin-bottom: 7px !important;
  }

  .sts-oly-logo {
    width: 106px !important;
    height: 46px !important;
    border-radius: 10px !important;
  }

  .sts-branch-title {
    font-size: clamp(31px, 3.35vw, 51px) !important;
    line-height: .95 !important;
  }

  .sts-topbar-controls {
    gap: 8px !important;
  }

  .sts-topbar-controls .sts-secondary-btn,
  .sts-topbar-controls .sts-refresh-badge {
    min-height: 46px !important;
    padding: 0 18px !important;
    border-radius: 17px !important;
    font-size: 14px !important;
    line-height: 1 !important;
  }

  .sts-topbar-controls #stsScreenToggleBtn {
    min-width: 86px !important;
  }

  .sts-topbar-controls #stsReportBtn {
    min-width: 120px !important;
  }

  .sts-topbar-controls #stsExportReportBtn {
    min-width: 100px !important;
  }

  .sts-topbar-controls #stsLogoutBtn {
    min-width: 86px !important;
  }

  .sts-topbar-controls #stsRefreshBadge {
    min-width: 136px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 767px) {
  .sts-topbar {
    padding: 8px 7px !important;
    gap: 6px 8px !important;
    border-radius: 16px !important;
    margin-bottom: 7px !important;
  }

  .sts-topbar-left.sts-logo-area {
    width: 69px !important;
  }

  .sts-oly-logo {
    width: 69px !important;
    height: 42px !important;
    border-radius: 9px !important;
  }

  .sts-branch-title {
    font-size: clamp(22px, 7.2vw, 34px) !important;
    line-height: .9 !important;
  }

  .sts-topbar-controls {
    gap: 6px !important;
  }

  .sts-topbar-controls .sts-secondary-btn,
  .sts-topbar-controls .sts-refresh-badge {
    min-height: 40px !important;
    padding: 0 7px !important;
    border-radius: 14px !important;
    font-size: 13px !important;
    line-height: 1 !important;
  }

  .sts-topbar-controls #stsRefreshBadge {
    min-height: 35px !important;
    font-size: 12px !important;
  }
}

/* =========================================================
   v3.8.42 Unified top bar for Main + Appt
   - Oly logo, date slider, outlet name, and controls in one row
   - Date slider moved from Appt body into the shared header
   ========================================================= */
.sts-shell {
  max-width: none !important;
  width: 100% !important;
  padding: 6px !important;
  border-radius: 0 !important;
}

.sts-topbar {
  display: grid !important;
  grid-template-columns: 104px minmax(620px, 1fr) minmax(220px, 0.42fr) auto !important;
  grid-template-areas: "logo calendar branch controls" !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 76px !important;
  height: 76px !important;
  padding: 7px 8px 7px 12px !important;
  margin: 0 0 6px !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  border: 1px solid #e8eef7 !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .05) !important;
  overflow: hidden !important;
}

.sts-topbar-left.sts-logo-area {
  grid-area: logo !important;
  width: 104px !important;
  height: 62px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-width: 0 !important;
}

.sts-oly-logo {
  width: 96px !important;
  height: 58px !important;
  max-width: 96px !important;
  object-fit: contain !important;
  border-radius: 0 !important;
}

.sts-topbar-datebar {
  grid-area: calendar !important;
  align-self: center !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 54px !important;
  min-height: 54px !important;
  max-height: 54px !important;
  display: grid !important;
  grid-template-columns: 62px minmax(0, 1fr) 42px !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 0 6px 0 0 !important;
  border: 1px solid #d8e2f0 !important;
  border-radius: 22px 0 0 22px !important;
  background: #f9fbff !important;
  box-shadow: inset 0 -1px 0 rgba(203, 213, 225, .55) !important;
  overflow: hidden !important;
}

.sts-topbar-datebar .sts-calendar-nav-btn {
  width: 62px !important;
  height: 52px !important;
  min-height: 52px !important;
  border: 0 !important;
  border-radius: 20px !important;
  background: #eef2ff !important;
  color: #3730a3 !important;
  font-size: 34px !important;
  line-height: 1 !important;
  font-weight: 950 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.sts-topbar-datebar #stsCalendarPrevDatesBtn {
  border-radius: 20px !important;
}

.sts-topbar-datebar #stsCalendarNextDatesBtn {
  width: 42px !important;
  min-width: 42px !important;
  font-size: 28px !important;
  border-radius: 16px !important;
}

.sts-topbar-datebar .sts-calendar-dates {
  height: 54px !important;
  max-height: 54px !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 2px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none !important;
}

.sts-topbar-datebar .sts-calendar-date-btn {
  flex: 0 0 52px !important;
  width: 52px !important;
  height: 52px !important;
  min-height: 52px !important;
  border-radius: 999px !important;
  gap: 0 !important;
  background: #eef0f4 !important;
  border: 1px solid #e1e6ee !important;
  color: #64748b !important;
  box-shadow: inset 0 -8px 14px rgba(15, 23, 42, .05) !important;
}

.sts-topbar-datebar .sts-calendar-date-btn span,
.sts-topbar-datebar .sts-calendar-date-btn small {
  font-size: 9px !important;
  line-height: .95 !important;
  font-weight: 950 !important;
}

.sts-topbar-datebar .sts-calendar-date-btn strong {
  font-size: 23px !important;
  line-height: .9 !important;
  font-weight: 950 !important;
  letter-spacing: -.04em !important;
}

.sts-topbar-datebar .sts-calendar-date-btn.today {
  background: #f59e0b !important;
  border-color: #f59e0b !important;
  color: #fff !important;
  box-shadow: 0 10px 20px rgba(245, 158, 11, .28) !important;
}

.sts-topbar-datebar .sts-calendar-date-btn.selected {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #fff !important;
  box-shadow: 0 10px 20px rgba(37, 99, 235, .28) !important;
}

.sts-topbar-datebar .sts-calendar-date-btn.today.selected {
  background: linear-gradient(135deg, #f59e0b, #2563eb) !important;
  border-color: #fff !important;
}

.sts-topbar-datebar .sts-calendar-today-btn,
.sts-topbar-datebar .sts-calendar-sync-btn {
  display: none !important;
}

.sts-branch-title {
  grid-area: branch !important;
  justify-self: stretch !important;
  align-self: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  height: 60px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  color: #3445d9 !important;
  font-size: clamp(32px, 3.3vw, 50px) !important;
  line-height: .9 !important;
  font-weight: 950 !important;
  letter-spacing: .02em !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  border-left: 1px solid #d8e2f0 !important;
  border-bottom: 1px solid #d8e2f0 !important;
}

.sts-topbar-controls {
  grid-area: controls !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: nowrap !important;
  gap: 9px !important;
  min-width: max-content !important;
}

.sts-topbar-controls .sts-secondary-btn {
  min-height: 48px !important;
  height: 48px !important;
  padding: 0 25px !important;
  border-radius: 18px !important;
  font-size: 15px !important;
  line-height: 1 !important;
  font-weight: 950 !important;
  background: #eef2f7 !important;
  color: #344054 !important;
  border: 0 !important;
  box-shadow: none !important;
}

.sts-topbar-controls .sts-screen-toggle-btn {
  background: #9923FA !important;
  color: #fff !important;
}

.sts-topbar-controls #stsScreenToggleBtn {
  min-width: 106px !important;
}

.sts-topbar-controls #stsReportBtn {
  min-width: 146px !important;
}

.sts-topbar-controls #stsExportReportBtn {
  min-width: 124px !important;
}

.sts-topbar-controls #stsLogoutBtn {
  min-width: 108px !important;
}

.sts-topbar-controls #stsRefreshBadge {
  display: none !important;
}

.sts-calendar-board {
  padding: 0 10px 10px !important;
}

@media (min-width: 821px) {
  .sts-appointment-screen {
    height: calc(100dvh - 88px) !important;
  }
}

@media (max-width: 1500px) {
  .sts-topbar {
    grid-template-columns: 94px minmax(440px, 1fr) minmax(170px, .36fr) auto !important;
    gap: 7px !important;
  }
  .sts-oly-logo {
    width: 88px !important;
    max-width: 88px !important;
  }
  .sts-topbar-datebar .sts-calendar-date-btn {
    flex-basis: 48px !important;
    width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
  }
  .sts-topbar-datebar .sts-calendar-date-btn strong {
    font-size: 21px !important;
  }
  .sts-branch-title {
    font-size: clamp(28px, 3vw, 44px) !important;
  }
  .sts-topbar-controls .sts-secondary-btn {
    padding: 0 17px !important;
  }
  .sts-topbar-controls #stsReportBtn {
    min-width: 126px !important;
  }
  .sts-topbar-controls #stsExportReportBtn {
    min-width: 106px !important;
  }
}

@media (max-width: 1180px) {
  .sts-topbar {
    height: auto !important;
    min-height: 0 !important;
    grid-template-columns: 84px minmax(0, 1fr) auto !important;
    grid-template-areas:
      "logo branch controls"
      "calendar calendar calendar" !important;
    padding: 7px !important;
    overflow: visible !important;
  }
  .sts-topbar-datebar {
    min-width: 0 !important;
    width: 100% !important;
  }
  .sts-branch-title {
    height: 48px !important;
    border-left: 0 !important;
    font-size: clamp(28px, 5vw, 42px) !important;
  }
  .sts-topbar-left.sts-logo-area {
    width: 84px !important;
  }
  .sts-oly-logo {
    width: 78px !important;
    max-width: 78px !important;
    height: 48px !important;
  }
  .sts-topbar-controls {
    min-width: 0 !important;
  }
  .sts-topbar-controls .sts-secondary-btn {
    min-width: 0 !important;
    padding: 0 14px !important;
  }
}

@media (max-width: 767px) {
  .sts-topbar {
    grid-template-columns: 72px minmax(0, 1fr) !important;
    grid-template-areas:
      "logo branch"
      "controls controls"
      "calendar calendar" !important;
    gap: 6px !important;
    padding: 6px !important;
  }
  .sts-topbar-left.sts-logo-area {
    width: 72px !important;
    height: 42px !important;
  }
  .sts-oly-logo {
    width: 70px !important;
    max-width: 70px !important;
    height: 42px !important;
  }
  .sts-branch-title {
    height: 42px !important;
    font-size: clamp(24px, 9vw, 34px) !important;
    border-bottom: 0 !important;
  }
  .sts-topbar-controls {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }
  .sts-topbar-controls .sts-secondary-btn {
    width: 100% !important;
    min-height: 38px !important;
    height: 38px !important;
    padding: 0 6px !important;
    border-radius: 14px !important;
    font-size: 12px !important;
  }
  .sts-topbar-datebar {
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    grid-template-columns: 44px minmax(0, 1fr) 36px !important;
  }
  .sts-topbar-datebar .sts-calendar-nav-btn {
    width: 44px !important;
    height: 46px !important;
    min-height: 46px !important;
    font-size: 27px !important;
  }
  .sts-topbar-datebar #stsCalendarNextDatesBtn {
    width: 36px !important;
    min-width: 36px !important;
  }
  .sts-topbar-datebar .sts-calendar-date-btn {
    flex-basis: 44px !important;
    width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
  }
  .sts-topbar-datebar .sts-calendar-date-btn span,
  .sts-topbar-datebar .sts-calendar-date-btn small {
    font-size: 7px !important;
  }
  .sts-topbar-datebar .sts-calendar-date-btn strong {
    font-size: 18px !important;
  }
  .sts-appointment-screen {
    height: calc(100dvh - 150px) !important;
  }
}

/* =========================================================
   v3.8.43 Unified top bar + dual-lane appointment calendar
   ========================================================= */
.sts-topbar {
  grid-template-columns: 96px minmax(500px, 1fr) minmax(170px, .34fr) auto !important;
  height: 64px !important;
  min-height: 64px !important;
  padding: 5px 8px !important;
  gap: 8px !important;
  border-radius: 14px !important;
}

.sts-topbar-left.sts-logo-area {
  width: 96px !important;
  height: 54px !important;
}

.sts-oly-logo {
  width: 90px !important;
  max-width: 90px !important;
  height: 52px !important;
}

.sts-topbar-datebar {
  height: 50px !important;
  min-height: 50px !important;
  max-height: 50px !important;
  display: block !important;
  padding: 0 6px !important;
  border-radius: 20px !important;
  overflow: hidden !important;
}

.sts-topbar-datebar .sts-calendar-nav-btn,
.sts-topbar-datebar .sts-calendar-today-btn,
.sts-topbar-datebar .sts-calendar-sync-btn,
.sts-topbar-controls #stsExportReportBtn {
  display: none !important;
}

.sts-topbar-datebar .sts-calendar-dates {
  width: 100% !important;
  height: 50px !important;
  max-height: 50px !important;
  gap: 8px !important;
  padding: 0 4px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  cursor: grab !important;
  scroll-behavior: smooth !important;
  scroll-snap-type: none !important;
  touch-action: pan-x !important;
  user-select: none !important;
  -webkit-overflow-scrolling: touch !important;
}

.sts-topbar-datebar .sts-calendar-dates.sts-dragging {
  cursor: grabbing !important;
  scroll-behavior: auto !important;
}

.sts-topbar-datebar .sts-calendar-date-btn {
  flex: 0 0 48px !important;
  width: 48px !important;
  height: 48px !important;
  min-height: 48px !important;
}

.sts-topbar-datebar .sts-calendar-date-btn strong {
  font-size: 20px !important;
}

.sts-topbar-datebar .sts-calendar-date-btn span,
.sts-topbar-datebar .sts-calendar-date-btn small {
  font-size: 8px !important;
}

.sts-branch-title {
  height: 52px !important;
  padding: 0 8px !important;
  font-size: clamp(28px, 2.6vw, 42px) !important;
  border-left: 1px solid #d8e2f0 !important;
  border-bottom: 1px solid #d8e2f0 !important;
}

.sts-topbar-controls {
  gap: 7px !important;
}

.sts-topbar-controls .sts-secondary-btn {
  min-height: 42px !important;
  height: 42px !important;
  padding: 0 17px !important;
  border-radius: 16px !important;
  font-size: 14px !important;
}

.sts-topbar-controls #stsScreenToggleBtn {
  min-width: 88px !important;
}

.sts-topbar-controls #stsReportBtn {
  min-width: 104px !important;
}

.sts-topbar-controls #stsLogoutBtn {
  min-width: 96px !important;
}

.sts-calendar-board {
  padding: 0 8px 8px !important;
  gap: 0 !important;
}

.sts-calendar-grid-wrap {
  border-radius: 16px !important;
  overflow: hidden !important;
}

.sts-cal-scroll {
  width: 100% !important;
  height: 100% !important;
  overflow: auto !important;
  cursor: grab !important;
  scroll-behavior: smooth !important;
  touch-action: pan-x pan-y !important;
  user-select: none !important;
  -webkit-overflow-scrolling: touch !important;
}

.sts-cal-scroll.sts-dragging {
  cursor: grabbing !important;
  scroll-behavior: auto !important;
}

.sts-cal-header {
  display: flex !important;
  min-width: max-content !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 30 !important;
  height: 42px !important;
  background: #f8fafc !important;
  border-bottom: 1px solid #dbe6f3 !important;
}

.sts-cal-header .sts-cal-stylist-label,
.sts-cal-header-label {
  flex: 0 0 1.5cm !important;
  width: 1.5cm !important;
  min-height: 42px !important;
  height: 42px !important;
  padding: 3px !important;
  font-size: 11px !important;
}

.sts-cal-time-track {
  height: 42px !important;
  background: #f8fafc !important;
  flex: 0 0 auto !important;
  position: relative !important;
}

.sts-cal-time-cell {
  font-size: 10px !important;
  line-height: 1.05 !important;
  padding: 0 2px !important;
  justify-content: center !important;
  white-space: normal !important;
  text-align: center !important;
}

.sts-cal-stylist-group {
  display: flex !important;
  min-width: max-content !important;
  border-bottom: 1px solid #dbe6f3 !important;
}

.sts-cal-stylist-group .sts-cal-stylist-label {
  position: sticky !important;
  left: 0 !important;
  z-index: 22 !important;
  flex: 0 0 1.5cm !important;
  width: 1.5cm !important;
  min-height: 138px !important;
  height: 138px !important;
  display: grid !important;
  place-items: center !important;
  align-content: center !important;
  gap: 2px !important;
  padding: 4px 2px !important;
  background: #fff !important;
  border-right: 1px solid #dbe6f3 !important;
}

.sts-cal-avatar {
  width: 30px !important;
  height: 30px !important;
  font-size: 12px !important;
  background: #344054 !important;
  box-shadow: none !important;
}

.sts-cal-stylist-label small {
  max-width: 44px !important;
  font-size: 8.5px !important;
  line-height: 1 !important;
  writing-mode: vertical-rl !important;
  transform: rotate(180deg) !important;
}

.sts-cal-lanes {
  flex: 0 0 auto !important;
}

.sts-cal-lane {
  position: relative !important;
  height: 46px !important;
  display: flex !important;
  border-bottom: 1px solid rgba(226, 232, 240, .85) !important;
}

.sts-cal-lane:last-child {
  border-bottom: 0 !important;
}

.sts-cal-track {
  position: relative !important;
  height: 46px !important;
  flex: 0 0 auto !important;
  background-image: linear-gradient(to right, rgba(203, 213, 225, .76) 1px, transparent 1px) !important;
  background-size: 58px 46px !important;
}

.sts-cal-regular-walk-lane .sts-cal-track {
  background-color: #eff6ff !important;
}

.sts-cal-regular-lane .sts-cal-track {
  background-color: #ecfdf5 !important;
}

.sts-cal-walkin-lane .sts-cal-track {
  background-color: #fff1f2 !important;
}

.sts-cal-lane-tag {
  position: sticky !important;
  left: 1.5cm !important;
  z-index: 11 !important;
  width: 54px !important;
  height: 18px !important;
  margin: 3px 0 0 4px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  font-size: 8px !important;
  font-weight: 950 !important;
  color: #fff !important;
  pointer-events: none !important;
}

.sts-cal-regular-walk-lane .sts-cal-lane-tag { background: #2563eb !important; }
.sts-cal-regular-lane .sts-cal-lane-tag { background: #16a34a !important; }
.sts-cal-walkin-lane .sts-cal-lane-tag { background: #dc2626 !important; }

.sts-cal-empty-slot {
  top: 0 !important;
  bottom: 0 !important;
  border-right: 1px solid rgba(203, 213, 225, .68) !important;
}

.sts-cal-empty-slot:hover {
  background: rgba(153, 35, 250, .09) !important;
}

.sts-cal-booking,
.sts-cal-holiday-block {
  top: 4px !important;
  bottom: 4px !important;
  min-width: 58px !important;
  border-radius: 9px !important;
  padding: 4px 7px !important;
}

.sts-cal-booking strong,
.sts-cal-holiday-block strong {
  font-size: 11px !important;
  line-height: 1.05 !important;
}

.sts-cal-booking span,
.sts-cal-holiday-block span,
.sts-cal-booking em {
  display: block !important;
  margin-top: 1px !important;
  font-size: 8.5px !important;
  line-height: 1.05 !important;
  font-style: normal !important;
  font-weight: 850 !important;
  opacity: .96 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.sts-cal-booking-regular-walk { background: #2563eb !important; }
.sts-cal-booking-regular { background: #16a34a !important; }
.sts-cal-booking-walkin { background: #dc2626 !important; }

.sts-cal-booking.cancelled,
.sts-cal-booking.completed {
  opacity: .65 !important;
  filter: grayscale(.25) !important;
}

.sts-quick-appt-card {
  width: min(720px, calc(100vw - 24px)) !important;
  max-width: 720px !important;
}

.sts-quick-appt-grid {
  grid-template-columns: 1fr 1fr !important;
}

.sts-quick-appt-remark {
  grid-column: 1 / -1 !important;
  min-height: 86px !important;
  height: auto !important;
  padding-top: 12px !important;
  resize: vertical !important;
}

@media (min-width: 821px) {
  .sts-appointment-screen {
    height: calc(100dvh - 72px) !important;
  }
}

@media (max-width: 1500px) {
  .sts-topbar {
    grid-template-columns: 88px minmax(420px, 1fr) minmax(150px, .3fr) auto !important;
  }
  .sts-branch-title {
    font-size: clamp(24px, 2.3vw, 36px) !important;
  }
  .sts-topbar-controls .sts-secondary-btn {
    padding: 0 14px !important;
  }
}

@media (max-width: 1180px) {
  .sts-topbar {
    height: auto !important;
    min-height: 0 !important;
    grid-template-columns: 76px minmax(0, 1fr) auto !important;
    grid-template-areas:
      "logo branch controls"
      "calendar calendar calendar" !important;
    overflow: visible !important;
  }
  .sts-topbar-controls .sts-secondary-btn {
    min-height: 38px !important;
    height: 38px !important;
    padding: 0 11px !important;
    font-size: 12px !important;
  }
  .sts-topbar-controls #stsScreenToggleBtn,
  .sts-topbar-controls #stsReportBtn,
  .sts-topbar-controls #stsLogoutBtn {
    min-width: 0 !important;
  }
}

@media (max-width: 767px) {
  .sts-topbar-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .sts-quick-appt-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Keep appointment tracks aligned with the time header. Row colors identify Regular/Walk-in. */
.sts-cal-lane-tag {
  display: none !important;
}

/* v3.8.44: Main handles Walk-in only; Appt popup handles Regular Walk-in / Regular only. */
.sts-quick-appt-grid .sts-input:disabled {
  background: #eef4ff;
  color: #27364d;
  cursor: not-allowed;
  opacity: 1;
}
.sts-type-toggle-walkin {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 900px) {
  .sts-type-toggle-walkin {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* v3.8.46 Main Walk-in duration + remarks */
.sts-add-grid-main-walkin {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 10px !important;
}

.sts-add-grid-main-walkin #stsCustomerName,
.sts-add-grid-main-walkin #stsMemberId,
.sts-add-grid-main-walkin #stsCustomerPhone,
.sts-add-grid-main-walkin #stsWalkinDate,
.sts-add-grid-main-walkin #stsDuration {
  min-height: 54px !important;
}

.sts-add-grid-main-walkin #stsWalkinDate {
  grid-column: 1 !important;
}

.sts-add-grid-main-walkin .sts-duration-wrap {
  display: block !important;
  grid-column: 2 !important;
}

.sts-add-grid-main-walkin #stsCustomerName {
  grid-column: 1 !important;
}

.sts-add-grid-main-walkin #stsMemberId {
  grid-column: 2 !important;
}

.sts-add-grid-main-walkin #stsCustomerPhone {
  grid-column: 1 / -1 !important;
  width: 100% !important;
}

.sts-main-remark {
  grid-column: 1 / -1 !important;
  min-height: 54px !important;
  height: 54px !important;
  resize: vertical !important;
  padding-top: 12px !important;
  font-size: 15px !important;
}

@media (max-width: 560px) {
  .sts-add-grid-main-walkin {
    grid-template-columns: 1fr !important;
  }

  .sts-add-grid-main-walkin #stsWalkinDate,
  .sts-add-grid-main-walkin .sts-duration-wrap,
  .sts-add-grid-main-walkin #stsCustomerName,
  .sts-add-grid-main-walkin #stsMemberId,
  .sts-add-grid-main-walkin #stsCustomerPhone {
    grid-column: 1 !important;
  }
}


/* v3.8.49 admin-configurable appointment service buttons */
.sts-hidden-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.sts-service-button-grid {
  grid-column: 1 / -1 !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px 26px !important;
  margin: 4px 0 4px !important;
}

.sts-service-type-btn {
  min-height: 42px !important;
  border-radius: 999px !important;
  border: 1.5px solid #a3a3a3 !important;
  background: #fff !important;
  color: #7a7a7a !important;
  font-size: 20px !important;
  line-height: 1.1 !important;
  font-weight: 950 !important;
  cursor: pointer !important;
  box-shadow: none !important;
  padding: 6px 14px !important;
  text-align: center !important;
}

.sts-service-type-btn.active {
  border-color: #9923FA !important;
  color: #9923FA !important;
  background: #fbf5ff !important;
  box-shadow: 0 0 0 2px rgba(153,35,250,.12) !important;
}

.sts-main-service-buttons {
  gap: 8px !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.sts-main-service-buttons .sts-service-type-btn {
  min-height: 38px !important;
  font-size: 13px !important;
  padding: 5px 8px !important;
}

@media (max-width: 560px) {
  .sts-service-button-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .sts-service-type-btn {
    font-size: 16px !important;
  }
}


/* v3.8.51 appointment popup full-space layout, multi-service, pax */
.sts-quick-appt-card {
  width: min(720px, calc(100vw - 12px)) !important;
  max-width: 720px !important;
  border-radius: 24px !important;
  padding: 24px 28px 22px !important;
}

.sts-quick-appt-card .sts-modal-head {
  align-items: flex-start !important;
  margin-bottom: 12px !important;
}

.sts-quick-appt-card .sts-modal-head h3 {
  font-size: clamp(26px, 4vw, 34px) !important;
  line-height: 1.08 !important;
  font-weight: 950 !important;
  color: #0f172a !important;
}

.sts-quick-appt-card .sts-modal-head p {
  margin-top: 6px !important;
  font-size: 14px !important;
  color: #64748b !important;
  font-weight: 700 !important;
}

.sts-quick-appt-card .sts-icon-btn {
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  border-radius: 999px !important;
  background: #f1f5f9 !important;
  color: #334155 !important;
  font-size: 36px !important;
  font-weight: 900 !important;
}

.sts-quick-appt-grid-v51,
.sts-quick-appt-grid-v77 {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 10px 14px !important;
  margin-top: 12px !important;
}

.sts-quick-appt-grid-v51 .sts-input,
.sts-quick-appt-grid-v77 .sts-input {
  min-height: 58px !important;
  border: 1.5px solid #dbe3ef !important;
  border-radius: 17px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  padding: 0 20px !important;
  box-shadow: none !important;
}

.sts-quick-appt-grid-v51 #stsQuickApptCustomerName,
.sts-quick-appt-grid-v77 #stsQuickApptCustomerName {
  grid-column: auto !important;
  border-color: #9923FA !important;
  box-shadow: 0 0 0 2px rgba(153,35,250,.10) !important;
}

.sts-quick-appt-grid-v51 #stsQuickApptCustomerPhone,
.sts-quick-appt-grid-v77 #stsQuickApptCustomerPhone {
  grid-column: auto !important;
}

.sts-quick-appt-grid-v51 #stsQuickApptStylistName,
.sts-quick-appt-grid-v77 #stsQuickApptStylistName,
.sts-quick-appt-grid-v51 #stsQuickApptDate,
.sts-quick-appt-grid-v77 #stsQuickApptDate,
.sts-quick-appt-grid-v51 #stsQuickApptStart:disabled,
.sts-quick-appt-grid-v77 #stsQuickApptStart:disabled {
  background: #eef4ff !important;
  color: #0f172a !important;
  opacity: 1 !important;
  cursor: default !important;
}


.sts-quick-appt-grid-v51 #stsQuickApptCustomerName,
.sts-quick-appt-grid-v77 #stsQuickApptCustomerName { order: 1 !important; }
.sts-quick-appt-grid-v51 #stsQuickApptCustomerPhone,
.sts-quick-appt-grid-v77 #stsQuickApptCustomerPhone { order: 2 !important; }
.sts-quick-appt-grid-v51 #stsQuickApptDate,
.sts-quick-appt-grid-v77 #stsQuickApptDate { order: 3 !important; }
.sts-quick-appt-grid-v51 #stsQuickApptPax,
.sts-quick-appt-grid-v77 #stsQuickApptPax { order: 4 !important; }
.sts-quick-appt-grid-v51 #stsQuickApptStart,
.sts-quick-appt-grid-v77 #stsQuickApptStart { order: 5 !important; }
.sts-quick-appt-grid-v51 #stsQuickApptEnd,
.sts-quick-appt-grid-v77 #stsQuickApptEnd { order: 6 !important; }
.sts-quick-appt-grid-v51 #stsQuickApptStylistName,
.sts-quick-appt-grid-v77 #stsQuickApptStylistName { order: 7 !important; grid-column: 1 / 2 !important; }
.sts-quick-appt-grid-v51 #stsQuickApptAssistant,
.sts-quick-appt-grid-v77 #stsQuickApptAssistant { order: 8 !important; grid-column: 2 / 3 !important; }
.sts-quick-appt-grid-v51 #stsQuickApptServiceButtons,
.sts-quick-appt-grid-v77 #stsQuickApptServiceButtons { order: 9 !important; }
.sts-quick-appt-grid-v51 #stsQuickApptRemark,
.sts-quick-appt-grid-v77 #stsQuickApptRemark { order: 10 !important; }

.sts-quick-appt-grid-v51 .sts-service-button-grid,
.sts-quick-appt-grid-v77 .sts-service-button-grid {
  grid-column: 1 / -1 !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px 26px !important;
  margin: 4px 0 10px !important;
}

.sts-quick-appt-grid-v51 .sts-service-type-btn,
.sts-quick-appt-grid-v77 .sts-service-type-btn {
  min-height: 42px !important;
  border-radius: 999px !important;
  border: 1.5px solid #b8b8b8 !important;
  background: #ffffff !important;
  color: #7d7d7d !important;
  font-size: 21px !important;
  line-height: 1.05 !important;
  font-weight: 950 !important;
  padding: 6px 14px !important;
  box-shadow: none !important;
}

.sts-quick-appt-grid-v51 .sts-service-type-btn.active,
.sts-quick-appt-grid-v77 .sts-service-type-btn.active {
  border-color: #9923FA !important;
  background: #fbf5ff !important;
  color: #9923FA !important;
  box-shadow: inset 0 0 0 1px rgba(153,35,250,.55), 0 0 0 2px rgba(153,35,250,.08) !important;
}

.sts-quick-appt-grid-v51 .sts-quick-appt-remark,
.sts-quick-appt-grid-v77 .sts-quick-appt-remark {
  grid-column: 1 / -1 !important;
  min-height: 96px !important;
  height: 96px !important;
  resize: vertical !important;
  padding-top: 16px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
}

.sts-quick-appt-help {
  margin: 10px 0 0 !important;
  color: #475569 !important;
  font-size: 13px !important;
  font-weight: 850 !important;
}

.sts-quick-appt-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr !important;
  gap: 12px !important;
  margin-top: 22px !important;
}

.sts-quick-appt-actions button {
  min-height: 56px !important;
  border-radius: 16px !important;
  font-size: 18px !important;
  font-weight: 950 !important;
}

.sts-service-empty {
  grid-column: 1 / -1 !important;
  padding: 12px !important;
  border: 1px dashed #cbd5e1 !important;
  border-radius: 14px !important;
  color: #64748b !important;
  font-size: 14px !important;
}

.sts-service-analysis-table {
  min-width: 360px !important;
}

@media (max-width: 620px) {
  .sts-quick-appt-card {
    padding: 20px 18px !important;
  }
  .sts-quick-appt-grid-v51,
  .sts-quick-appt-grid-v77 {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .sts-quick-appt-grid-v51 .sts-input,
  .sts-quick-appt-grid-v77 .sts-input {
    min-height: 54px !important;
    font-size: 15px !important;
    padding: 0 12px !important;
  }
  
.sts-quick-appt-grid-v51 #stsQuickApptCustomerName,
.sts-quick-appt-grid-v77 #stsQuickApptCustomerName { order: 1 !important; }
.sts-quick-appt-grid-v51 #stsQuickApptCustomerPhone,
.sts-quick-appt-grid-v77 #stsQuickApptCustomerPhone { order: 2 !important; }
.sts-quick-appt-grid-v51 #stsQuickApptDate,
.sts-quick-appt-grid-v77 #stsQuickApptDate { order: 3 !important; }
.sts-quick-appt-grid-v51 #stsQuickApptPax,
.sts-quick-appt-grid-v77 #stsQuickApptPax { order: 4 !important; }
.sts-quick-appt-grid-v51 #stsQuickApptStart,
.sts-quick-appt-grid-v77 #stsQuickApptStart { order: 5 !important; }
.sts-quick-appt-grid-v51 #stsQuickApptEnd,
.sts-quick-appt-grid-v77 #stsQuickApptEnd { order: 6 !important; }
.sts-quick-appt-grid-v51 #stsQuickApptStylistName,
.sts-quick-appt-grid-v77 #stsQuickApptStylistName { order: 7 !important; grid-column: 1 / 2 !important; }
.sts-quick-appt-grid-v51 #stsQuickApptAssistant,
.sts-quick-appt-grid-v77 #stsQuickApptAssistant { order: 8 !important; grid-column: 2 / 3 !important; }
.sts-quick-appt-grid-v51 #stsQuickApptServiceButtons,
.sts-quick-appt-grid-v77 #stsQuickApptServiceButtons { order: 9 !important; }
.sts-quick-appt-grid-v51 #stsQuickApptRemark,
.sts-quick-appt-grid-v77 #stsQuickApptRemark { order: 10 !important; }

.sts-quick-appt-grid-v51 .sts-service-button-grid,
  .sts-quick-appt-grid-v77 .sts-service-button-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .sts-quick-appt-grid-v51 .sts-service-type-btn,
  .sts-quick-appt-grid-v77 .sts-service-type-btn {
    font-size: 16px !important;
  }
  .sts-quick-appt-actions {
    grid-template-columns: 1fr !important;
  }
}


/* v3.8.58 - Keep the selected date visually centered in the top date strip. */
.sts-topbar-datebar .sts-calendar-date-btn,
.sts-calendar-date-btn {
  text-align: center !important;
  justify-items: center !important;
  justify-content: center !important;
}

.sts-topbar-datebar .sts-calendar-date-btn span,
.sts-topbar-datebar .sts-calendar-date-btn strong,
.sts-topbar-datebar .sts-calendar-date-btn small,
.sts-calendar-date-btn span,
.sts-calendar-date-btn strong,
.sts-calendar-date-btn small {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
}


/* v3.8.62 - Appointment calendar header: force one-line time only, no AM/PM. */
.sts-cal-time-cell {
  font-size: 9px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  letter-spacing: -0.2px !important;
  padding: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-align: center !important;
  word-break: normal !important;
}

.sts-cal-track {
  background-size: 37.8px 46px !important;
}

.sts-cal-booking,
.sts-cal-holiday-block {
  min-width: 37.8px !important;
}


/* v3.8.63 - Force delete appointment button in edit appointment popup. */
.sts-force-delete-appt-btn {
  width: 100% !important;
  min-height: 56px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: #eef2f7 !important;
  color: #ff1f3d !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

.sts-force-delete-appt-btn:hover {
  background: #e2e8f0 !important;
  color: #dc2626 !important;
}

.sts-force-delete-appt-btn:disabled {
  opacity: .65 !important;
  cursor: wait !important;
}

.sts-edit-appt-actions {
  grid-template-columns: 1fr 1fr 1fr !important;
}

.sts-edit-appt-actions .sts-hidden,
.sts-force-delete-appt-btn.sts-hidden {
  display: none !important;
}

/* v3.8.64 active Regular/Regular Walk-in display and walk-in decision popup */
.sts-active-regular-stack {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}
.sts-active-regular-pill {
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 10px 12px;
  color: #fff;
  text-align: left;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
  cursor: pointer;
}
.sts-active-regular-pill span,
.sts-active-regular-pill small,
.sts-active-regular-pill strong {
  display: block;
  line-height: 1.1;
}
.sts-active-regular-pill span {
  font-size: 12px;
  font-weight: 900;
  opacity: 0.95;
  margin-bottom: 3px;
}
.sts-active-regular-pill strong {
  font-size: 16px;
  font-weight: 1000;
}
.sts-active-regular-pill small {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 800;
  opacity: 0.95;
}
.sts-active-regular-blue { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.sts-active-regular-green { background: linear-gradient(135deg, #16a34a, #059669); }
.sts-walkin-decision-card {
  max-width: 620px;
}
.sts-walkin-decision-body {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}
.sts-decision-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px 14px;
  background: #f8fafc;
}
.sts-decision-line span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sts-decision-line strong {
  color: #0f172a;
  font-size: 15px;
  font-weight: 1000;
  text-align: right;
}
.sts-walkin-decision-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 640px) {
  .sts-decision-line {
    align-items: flex-start;
    flex-direction: column;
  }
  .sts-decision-line strong { text-align: left; }
  .sts-walkin-decision-actions { grid-template-columns: 1fr; }
}


/* v3.8.65 fix active regular pill overflow and improve text visibility */
.sts-stylist-card,
.sts-serving-box,
.sts-active-regular-stack,
.sts-active-regular-pill {
  min-width: 0 !important;
  max-width: 100% !important;
}

.sts-stylist-card,
.sts-serving-box,
.sts-active-regular-stack {
  overflow: hidden !important;
}

.sts-serving-title-row {
  flex-wrap: wrap !important;
  align-items: flex-start !important;
}

.sts-serving-tools {
  max-width: 100% !important;
  flex-wrap: wrap !important;
}

.sts-active-regular-stack {
  width: 100% !important;
}

.sts-active-regular-pill {
  display: block !important;
  width: 100% !important;
  overflow: hidden !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

.sts-active-regular-pill span,
.sts-active-regular-pill strong,
.sts-active-regular-pill small {
  max-width: 100% !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  color: #ffffff !important;
}

.sts-active-regular-pill small {
  opacity: 1 !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
}


/* v3.8.68 hard-force wrapping for active Regular/Regular Walk-in bars */
.sts-app .sts-stylist-grid,
.sts-app .sts-stylist-card,
.sts-app .sts-serving-box,
.sts-app .sts-active-regular-stack,
.sts-app .sts-active-regular-pill {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.sts-app .sts-serving-box {
  width: 100% !important;
  overflow: hidden !important;
}

.sts-app .sts-active-regular-stack {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

.sts-app .sts-active-regular-pill {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  inline-size: 100% !important;
  max-inline-size: 100% !important;
  overflow: hidden !important;
  white-space: normal !important;
  text-align: left !important;
}

.sts-app .sts-active-regular-pill span,
.sts-app .sts-active-regular-pill strong,
.sts-app .sts-active-regular-pill small {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  inline-size: 100% !important;
  max-inline-size: 100% !important;
  overflow: visible !important;
  white-space: normal !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
  hyphens: auto !important;
  color: #ffffff !important;
}

.sts-app .sts-active-regular-pill small {
  opacity: 1 !important;
  line-height: 1.32 !important;
}

@media (max-width: 980px) {
  .sts-app .sts-active-regular-pill {
    padding: 9px 10px !important;
  }
  .sts-app .sts-active-regular-pill small {
    font-size: 11px !important;
    line-height: 1.35 !important;
  }
}


/* v3.8.69 prevent stylist card content from being covered/clipped */
.sts-app .sts-stylists-card .sts-stylist-grid,
.sts-app .sts-stylist-grid {
  align-items: start !important;
  align-content: start !important;
  grid-auto-rows: auto !important;
}

.sts-app .sts-stylist-card {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

.sts-app .sts-serving-box {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

.sts-app .sts-active-regular-stack {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

.sts-app .sts-active-regular-pill {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  margin-bottom: 0 !important;
}

.sts-app .sts-active-regular-pill span,
.sts-app .sts-active-regular-pill strong,
.sts-app .sts-active-regular-pill small {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  white-space: normal !important;
}

.sts-app .sts-action-row,
.sts-app .sts-note {
  position: relative !important;
  z-index: 1 !important;
}


/* v3.8.70 prevent stylist cards from overlapping between grid rows */
.sts-app .sts-stylists-card .sts-stylist-grid,
.sts-app .sts-stylist-grid {
  display: grid !important;
  grid-auto-flow: row !important;
  grid-auto-rows: max-content !important;
  align-items: start !important;
  align-content: start !important;
}

.sts-app .sts-stylist-card {
  display: flex !important;
  flex-direction: column !important;
  align-self: start !important;
  width: 100% !important;
  height: auto !important;
  min-height: max-content !important;
  max-height: none !important;
  overflow: hidden !important;
}

.sts-app .sts-stylist-card > * {
  flex: 0 0 auto !important;
  width: 100% !important;
  max-width: 100% !important;
}

.sts-app .sts-serving-box,
.sts-app .sts-active-regular-stack,
.sts-app .sts-active-regular-pill,
.sts-app .sts-action-row,
.sts-app .sts-note {
  position: relative !important;
  z-index: auto !important;
  width: 100% !important;
  clear: both !important;
}

.sts-app .sts-serving-box,
.sts-app .sts-active-regular-stack,
.sts-app .sts-active-regular-pill {
  overflow: hidden !important;
}

/* v3.8.76 Assistant exception for Regular Walk-in when selected stylist is unavailable/on leave */
.sts-assistant-btn {
  min-height: 70px !important;
  border-radius: 17px !important;
  border: 1px solid #d7e2f2 !important;
  background: #f8fafc !important;
  color: #64748b !important;
  font-weight: 950 !important;
  font-size: 20px !important;
  letter-spacing: .02em !important;
  cursor: not-allowed !important;
}

.sts-assistant-btn.is-active:not(:disabled) {
  background: #f97316 !important;
  color: #fff !important;
  border-color: #ea580c !important;
  box-shadow: 0 14px 28px rgba(249, 115, 22, .26) !important;
  cursor: pointer !important;
}

.sts-assistant-btn.is-active:disabled {
  background: #fed7aa !important;
  color: #9a3412 !important;
  border-color: #fdba74 !important;
}

.sts-cal-booking-assistant {
  background: #f97316 !important;
}

.sts-cal-holiday-block {
  pointer-events: none !important;
  opacity: .42 !important;
}
.sts-active-regular-assistant { background: linear-gradient(135deg, #f97316, #ea580c) !important; }

/* v3.8.78 Regular booking block trigger for long Walk-in / Regular Walk-in services */
.sts-cal-regular-block {
  position: absolute !important;
  inset-block: 4px !important;
  border-radius: 12px !important;
  background: repeating-linear-gradient(135deg, rgba(239, 68, 68, .18), rgba(239, 68, 68, .18) 10px, rgba(239, 68, 68, .10) 10px, rgba(239, 68, 68, .10) 20px) !important;
  border: 2px dashed rgba(220, 38, 38, .55) !important;
  color: #7f1d1d !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  pointer-events: none !important;
  z-index: 2 !important;
  padding: 6px 12px !important;
}

.sts-cal-regular-block strong,
.sts-cal-regular-block span {
  color: #7f1d1d !important;
  line-height: 1.15 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.sts-cal-regular-block strong {
  font-size: 13px !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
}

.sts-cal-regular-block span {
  font-size: 11px !important;
  font-weight: 800 !important;
}

.sts-complete-quick-appt-btn {
  border: 0 !important;
  border-radius: 14px !important;
  padding: 12px 18px !important;
  background: #16a34a !important;
  color: #fff !important;
  font-weight: 950 !important;
  cursor: pointer !important;
}

.sts-complete-quick-appt-btn:hover {
  filter: brightness(.96) !important;
}


/* v3.8.83 past/current calendar record display */
.sts-topbar-datebar {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) 34px !important;
  align-items: center !important;
  gap: 3px !important;
  padding: 0 3px !important;
}

.sts-topbar-datebar .sts-calendar-nav-btn {
  display: flex !important;
  width: 32px !important;
  min-width: 32px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  border: 1px solid #dbe4f0 !important;
  border-radius: 14px !important;
  align-items: center !important;
  justify-content: center !important;
  background: #eef2ff !important;
  color: #3730a3 !important;
  font-size: 25px !important;
  line-height: 1 !important;
  font-weight: 950 !important;
  cursor: pointer !important;
}

.sts-topbar-datebar .sts-calendar-nav-btn:hover {
  background: #e0e7ff !important;
}

.sts-cal-booking-history {
  box-shadow: 0 4px 10px rgba(15, 23, 42, .13) !important;
}

.sts-cal-booking.completed {
  opacity: .82 !important;
  filter: grayscale(.08) !important;
  border: 2px solid rgba(255, 255, 255, .76) !important;
}

.sts-cal-booking.cancelled {
  opacity: .58 !important;
  filter: grayscale(.45) !important;
  border: 2px dashed rgba(255, 255, 255, .78) !important;
}

.sts-read-only-services {
  opacity: .72;
  pointer-events: none;
}

@media (max-width: 900px) {
  .sts-topbar-datebar {
    grid-template-columns: 30px minmax(0, 1fr) 30px !important;
  }

  .sts-topbar-datebar .sts-calendar-nav-btn {
    width: 28px !important;
    min-width: 28px !important;
    height: 40px !important;
    min-height: 40px !important;
    font-size: 22px !important;
  }
}

/* v3.8.84 - Scheduled walk-in turn popup and clickable queue sequence */
.sts-walkin-schedule-card {
  width: min(680px, 100%);
}

.sts-walkin-schedule-customer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 4px 0 18px;
  padding: 16px 18px;
  border: 1px solid #e4e7ec;
  border-radius: 18px;
  background: #f8fafc;
}

.sts-walkin-schedule-customer span,
.sts-walkin-schedule-grid label > span {
  color: #667085;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.sts-walkin-schedule-customer strong {
  color: var(--sts-dark);
  font-size: 24px;
  font-weight: 950;
}

.sts-walkin-schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.sts-walkin-schedule-grid label {
  display: grid;
  gap: 8px;
}

.sts-walkin-schedule-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 5px solid #7c3aed;
  border-radius: 14px;
  background: #f5f3ff;
  color: #3730a3;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 750;
}

.sts-walkin-schedule-actions {
  grid-template-columns: 1fr 1.35fr 1.2fr;
}

.sts-start-now-turn-btn {
  border-color: #c7d2fe;
  background: #eef2ff;
  color: #3730a3;
}

.sts-start-scheduled-walkin-btn {
  min-height: 54px;
}

@media (max-width: 680px) {
  .sts-walkin-schedule-customer,
  .sts-walkin-schedule-grid {
    grid-template-columns: 1fr;
  }

  .sts-walkin-schedule-actions {
    grid-template-columns: 1fr;
  }
}

.sts-queue-arrived-row.sts-scheduled-time-row {
  flex-wrap: wrap !important;
  white-space: normal !important;
  line-height: 1.25 !important;
  text-align: center !important;
}

.sts-queue-arrived-row.sts-scheduled-time-row strong {
  font-size: 12px !important;
}


/* v3.8.85 - Optional call-in date and combined walk-in edit/reschedule */
.sts-main-walkin-date {
  width: 100%;
}

.sts-walkin-schedule-customer label {
  display: grid;
  gap: 8px;
}

.sts-walkin-schedule-customer .sts-input {
  width: 100%;
  min-height: 54px;
  background: #fff;
}


/* v3.8.86 - Customer contact field in walk-in edit/reschedule popup */
.sts-walkin-schedule-customer label { min-width: 0; }


/* v3.8.87 - Force customer name and contact into two visible fields */
#stsWalkinScheduleModal .sts-walkin-schedule-customer {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: start !important;
  gap: 16px !important;
}

#stsWalkinScheduleModal .sts-walkin-schedule-field {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  position: static !important;
  min-width: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

#stsWalkinScheduleModal .sts-walkin-schedule-field > label {
  display: block !important;
  position: static !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  color: #667085 !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
  background: transparent !important;
  border: 0 !important;
}

#stsWalkinScheduleModal .sts-walkin-schedule-field > .sts-input {
  display: block !important;
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 58px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  background: #fff !important;
}

@media (max-width: 680px) {
  #stsWalkinScheduleModal .sts-walkin-schedule-customer {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}


/* v3.8.89 - Exact contact field wording and casing */
#stsWalkinScheduleModal #stsWalkinScheduleCustomerPhoneLabel,
#stsWalkinScheduleModal label[for="stsWalkinScheduleCustomerPhone"] {
  text-transform: none !important;
  letter-spacing: 0 !important;
}


/* v3.8.90 - Optional Member ID beside customer name */
.sts-queue-member-id {
  margin-top: 3px;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

/* v3.9.00 - Global customer search, shared stylist notes and appointment note history */
.sts-topbar-controls #stsSearchBtn {
  min-width: 124px !important;
}

.sts-topbar-controls .sts-nav-active {
  background: #9923FA !important;
  color: #fff !important;
}

.sts-search-screen {
  min-height: calc(100dvh - 92px);
  padding: 14px;
  background: #f4f7fb;
  overflow: auto;
}

.sts-search-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(380px, .8fr);
  gap: 16px;
  align-items: start;
  max-width: 1560px;
  margin: 0 auto;
}

.sts-customer-search-card,
.sts-customer-note-card {
  min-width: 0;
}

.sts-customer-search-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin: 14px 0 16px;
}

.sts-customer-search-bar .sts-primary-btn {
  min-width: 140px;
}

.sts-customer-search-results {
  display: grid;
  gap: 12px;
  max-height: calc(100dvh - 265px);
  overflow: auto;
  padding-right: 4px;
}

.sts-customer-search-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid #dbe3ef;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .05);
}

.sts-customer-search-result-main {
  min-width: 0;
}

.sts-customer-search-result-main > strong {
  display: block;
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 950;
}

.sts-customer-search-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  color: #667085;
  font-size: 13px;
  font-weight: 750;
}

.sts-customer-search-result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.sts-customer-search-result-actions .sts-primary-btn,
.sts-customer-search-result-actions .sts-secondary-btn {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 13px;
  white-space: nowrap;
}

.sts-no-note-badge {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 13px;
  background: #f2f4f7;
  color: #667085;
  font-size: 13px;
  font-weight: 850;
}

.sts-customer-note-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-top: 14px;
}

.sts-customer-note-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.sts-customer-note-form label > span {
  color: #475467;
  font-size: 13px;
  font-weight: 900;
}

.sts-customer-note-form .sts-input {
  width: 100%;
  min-width: 0;
  background: #fff;
}

.sts-customer-note-wide {
  grid-column: 1 / -1;
}

.sts-customer-note-form textarea.sts-input {
  min-height: 94px;
  padding-top: 13px;
  resize: vertical;
  line-height: 1.45;
}

.sts-customer-note-actions {
  grid-template-columns: 1fr 1fr;
  margin-top: 16px;
}

.sts-phone-note-wrap {
  order: 2 !important;
  position: relative;
  min-width: 0;
  width: 100%;
}

.sts-quick-appt-grid-v51 .sts-phone-note-wrap,
.sts-quick-appt-grid-v77 .sts-phone-note-wrap {
  grid-column: auto !important;
}

.sts-phone-note-wrap #stsQuickApptCustomerPhone {
  width: 100% !important;
  padding-right: 76px !important;
  box-sizing: border-box !important;
}

.sts-phone-note-btn {
  position: absolute;
  top: 50%;
  right: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 42px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  background: #f3e8ff;
  color: #7e22ce;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(153, 35, 250, .18);
}

.sts-phone-note-btn:hover,
.sts-phone-note-btn:focus-visible {
  background: #9923FA;
  color: #fff;
  outline: none;
}

.sts-customer-notes-modal-card {
  width: min(760px, 100%);
  max-height: min(84dvh, 900px);
  overflow: hidden;
}

.sts-customer-notes-timeline {
  display: grid;
  gap: 14px;
  max-height: 58dvh;
  overflow: auto;
  padding: 4px 5px 4px 0;
}

.sts-customer-note-entry {
  position: relative;
  padding: 16px 17px 17px;
  border: 1px solid #dbe3ef;
  border-left: 5px solid #9923FA;
  border-radius: 16px;
  background: #fff;
}

.sts-customer-note-entry-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef2f6;
}

.sts-customer-note-entry-head strong {
  color: #0f172a;
  font-size: 16px;
  font-weight: 950;
}

.sts-customer-note-entry-head span {
  color: #667085;
  font-size: 12px;
  font-weight: 750;
  text-align: right;
}

.sts-customer-note-entry-section {
  margin-top: 12px;
}

.sts-customer-note-entry-section small {
  display: block;
  margin-bottom: 5px;
  color: #667085;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.sts-customer-note-entry-section p {
  margin: 0;
  color: #344054;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 650;
}

.sts-customer-note-attention {
  padding: 11px 12px;
  border-radius: 12px;
  background: #fff1f3;
  border: 1px solid #fecdd6;
}

.sts-customer-note-attention small,
.sts-customer-note-attention p {
  color: #9f1239;
}

@media (max-width: 1180px) {
  .sts-topbar-controls #stsSearchBtn {
    min-width: 0 !important;
  }

  .sts-search-layout {
    grid-template-columns: 1fr;
  }

  .sts-customer-search-results {
    max-height: none;
  }
}

@media (max-width: 767px) {
  .sts-topbar {
    grid-template-areas:
      "logo branch branch"
      "controls controls controls"
      "calendar calendar calendar" !important;
  }

  .sts-topbar-controls {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 6px 8px !important;
    gap: 6px !important;
  }

  .sts-topbar-controls .sts-secondary-btn {
    min-width: 0 !important;
    width: 100% !important;
    padding: 0 7px !important;
    font-size: 11px !important;
  }

  .sts-search-screen {
    padding: 9px;
  }

  .sts-customer-search-bar,
  .sts-customer-search-result,
  .sts-customer-note-form {
    grid-template-columns: 1fr;
  }

  .sts-customer-note-wide {
    grid-column: auto;
  }

  .sts-customer-search-result-actions {
    justify-content: stretch;
  }

  .sts-customer-search-result-actions > * {
    flex: 1 1 auto;
  }

  .sts-customer-note-entry-head {
    display: grid;
  }

  .sts-customer-note-entry-head span {
    text-align: left;
  }
}


/* v3.9.01 - Compact icon-only Report, Search and Logout navigation */
.sts-topbar-controls .sts-icon-nav-btn {
  font-size: 25px !important;
  line-height: 1 !important;
  padding: 0 14px !important;
  min-width: 72px !important;
  letter-spacing: 0 !important;
}

.sts-topbar-controls #stsReportBtn,
.sts-topbar-controls #stsSearchBtn,
.sts-topbar-controls #stsLogoutBtn {
  min-width: 72px !important;
}

@media (max-width: 767px) {
  .sts-topbar-controls .sts-icon-nav-btn {
    font-size: 24px !important;
    padding: 0 8px !important;
  }
}


/* v3.9.02 - Calendar page only: keep the time range visible while scrolling stylists.
   This block is deliberately scoped to #stsAppointmentScreen and does not change
   the Main / Walk-in page. */
@media (min-width: 768px) {
  #stsAppointmentScreen:not(.sts-hidden) {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    height: calc(100dvh - 88px) !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  #stsAppointmentScreen:not(.sts-hidden) .sts-calendar-board {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  #stsAppointmentScreen:not(.sts-hidden) .sts-calendar-grid-wrap {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  #stsAppointmentScreen:not(.sts-hidden) .sts-cal-scroll {
    position: relative !important;
    flex: 1 1 auto !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow-x: auto !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
  }

  #stsAppointmentScreen:not(.sts-hidden) .sts-cal-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 120 !important;
    flex: 0 0 auto !important;
    background: #f8fafc !important;
    box-shadow: 0 2px 5px rgba(15, 23, 42, .10) !important;
  }

  #stsAppointmentScreen:not(.sts-hidden) .sts-cal-header .sts-cal-stylist-label,
  #stsAppointmentScreen:not(.sts-hidden) .sts-cal-header-label {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 130 !important;
    background: #f8fafc !important;
  }
}


/* v3.9.03 - Search page layout containment and spacing.
   Scoped to #stsSearchScreen only; Main / Walk-in is unchanged. */
#stsSearchScreen {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

#stsSearchScreen .sts-search-layout {
  width: 100% !important;
  max-width: 100% !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr) !important;
  gap: 16px !important;
  padding: 0 !important;
}

#stsSearchScreen .sts-customer-search-card,
#stsSearchScreen .sts-customer-note-card {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
}

#stsSearchScreen .sts-section-head {
  padding: 18px 20px !important;
}

#stsSearchScreen .sts-section-head h3 {
  font-size: clamp(24px, 2.1vw, 34px) !important;
  overflow-wrap: anywhere !important;
}

#stsSearchScreen .sts-customer-search-bar {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 18px 20px 14px !important;
  grid-template-columns: minmax(0, 1fr) 160px !important;
  align-items: center !important;
}

#stsSearchScreen .sts-customer-search-bar > *,
#stsSearchScreen .sts-customer-note-form > *,
#stsSearchScreen .sts-customer-note-form label,
#stsSearchScreen .sts-customer-note-form .sts-input {
  min-width: 0 !important;
  max-width: 100% !important;
}

#stsSearchScreen .sts-customer-search-bar .sts-primary-btn {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 58px !important;
}

#stsSearchScreen .sts-customer-search-results {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 20px 20px !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}

#stsSearchScreen .sts-customer-search-results > .sts-empty {
  min-height: 180px !important;
  padding: 24px !important;
  display: grid !important;
  place-items: center !important;
  text-align: center !important;
}

#stsSearchScreen .sts-customer-search-result {
  width: 100% !important;
  min-width: 0 !important;
}

#stsSearchScreen .sts-customer-note-form {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 18px 20px 0 !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

#stsSearchScreen .sts-customer-note-form .sts-input,
#stsSearchScreen .sts-customer-note-form textarea.sts-input {
  width: 100% !important;
  box-sizing: border-box !important;
}

#stsSearchScreen .sts-customer-note-form textarea.sts-input {
  min-height: 105px !important;
  max-height: 220px !important;
}

#stsSearchScreen .sts-customer-note-wide {
  grid-column: 1 / -1 !important;
}

#stsSearchScreen .sts-customer-note-actions {
  width: auto !important;
  margin: 16px 20px 20px !important;
  padding: 0 !important;
  gap: 12px !important;
}

#stsSearchScreen .sts-customer-note-actions .sts-primary-btn,
#stsSearchScreen .sts-customer-note-actions .sts-secondary-btn {
  width: 100% !important;
  min-width: 0 !important;
}

@media (max-width: 1180px) {
  #stsSearchScreen .sts-search-layout {
    grid-template-columns: 1fr !important;
  }

  #stsSearchScreen .sts-customer-search-results {
    max-height: 420px !important;
  }
}

@media (max-width: 680px) {
  #stsSearchScreen {
    padding: 8px !important;
  }

  #stsSearchScreen .sts-section-head {
    padding: 16px !important;
  }

  #stsSearchScreen .sts-customer-search-bar,
  #stsSearchScreen .sts-customer-note-form {
    grid-template-columns: 1fr !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  #stsSearchScreen .sts-customer-search-results {
    margin-left: 16px !important;
    margin-right: 16px !important;
  }

  #stsSearchScreen .sts-customer-note-wide {
    grid-column: auto !important;
  }

  #stsSearchScreen .sts-customer-note-actions {
    grid-template-columns: 1fr !important;
    margin-left: 16px !important;
    margin-right: 16px !important;
  }
}

/* v3.9.05 - compact appointment editor and clear editable date styling. */
.sts-quick-appt-card {
  width: min(640px, calc(100vw - 20px)) !important;
  max-width: 640px !important;
  max-height: min(760px, 90vh) !important;
  padding: 18px 20px 16px !important;
  border-radius: 20px !important;
}

.sts-quick-appt-card .sts-modal-head {
  margin-bottom: 8px !important;
}

.sts-quick-appt-card .sts-modal-head h3 {
  font-size: clamp(23px, 3vw, 29px) !important;
  line-height: 1.08 !important;
}

.sts-quick-appt-card .sts-modal-head p {
  margin-top: 3px !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
}

.sts-quick-appt-card .sts-icon-btn {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  font-size: 29px !important;
}

.sts-quick-appt-grid-v51,
.sts-quick-appt-grid-v77 {
  gap: 8px 10px !important;
  margin-top: 8px !important;
}

.sts-quick-appt-grid-v51 .sts-input,
.sts-quick-appt-grid-v77 .sts-input {
  min-height: 50px !important;
  border-radius: 14px !important;
  font-size: 15px !important;
  padding: 0 14px !important;
}

.sts-quick-appt-grid-v51 #stsQuickApptDate:not(:disabled),
.sts-quick-appt-grid-v77 #stsQuickApptDate:not(:disabled),
.sts-quick-appt-grid-v51 #stsQuickApptStart:not(:disabled),
.sts-quick-appt-grid-v77 #stsQuickApptStart:not(:disabled) {
  background: #ffffff !important;
  cursor: pointer !important;
}

.sts-quick-appt-grid-v51 .sts-service-button-grid,
.sts-quick-appt-grid-v77 .sts-service-button-grid {
  gap: 8px 16px !important;
  margin: 2px 0 6px !important;
}

.sts-quick-appt-grid-v51 .sts-service-type-btn,
.sts-quick-appt-grid-v77 .sts-service-type-btn {
  min-height: 36px !important;
  font-size: 17px !important;
  padding: 4px 10px !important;
}

.sts-quick-appt-grid-v51 .sts-quick-appt-remark,
.sts-quick-appt-grid-v77 .sts-quick-appt-remark {
  min-height: 72px !important;
  height: 72px !important;
  padding-top: 12px !important;
  font-size: 14px !important;
}

.sts-quick-appt-help {
  margin-top: 6px !important;
  font-size: 11px !important;
}

.sts-quick-appt-actions {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important;
  gap: 9px !important;
  margin-top: 14px !important;
}

.sts-quick-appt-actions button {
  min-height: 48px !important;
  border-radius: 14px !important;
  font-size: 16px !important;
}

@media (max-width: 620px) {
  .sts-quick-appt-card {
    width: min(600px, calc(100vw - 12px)) !important;
    padding: 14px !important;
    border-radius: 18px !important;
  }

  .sts-quick-appt-card .sts-modal-head h3 {
    font-size: 22px !important;
  }

  .sts-quick-appt-card .sts-icon-btn {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    font-size: 26px !important;
  }

  .sts-quick-appt-grid-v51 .sts-input,
  .sts-quick-appt-grid-v77 .sts-input {
    min-height: 46px !important;
    font-size: 14px !important;
    padding: 0 10px !important;
  }

  .sts-quick-appt-grid-v51 .sts-service-type-btn,
  .sts-quick-appt-grid-v77 .sts-service-type-btn {
    min-height: 34px !important;
    font-size: 14px !important;
  }

  .sts-quick-appt-actions {
    grid-template-columns: 1fr 1fr !important;
  }
}



/* v3.9.06 - Exact appointment slot alignment.
   The lane badge previously occupied horizontal layout space before the track,
   shifting every clickable slot to the right of its time header. Keep the badge
   as an overlay so header labels, grid lines, bookings and click targets all
   begin at the identical x-coordinate. */
.sts-cal-lane {
  position: relative !important;
}

.sts-cal-lane > .sts-cal-lane-tag {
  position: absolute !important;
  left: 4px !important;
  top: 3px !important;
  margin: 0 !important;
  z-index: 24 !important;
  pointer-events: none !important;
}

.sts-cal-lane > .sts-cal-track {
  margin-left: 0 !important;
  box-sizing: border-box !important;
}

.sts-cal-time-cell,
.sts-cal-empty-slot,
.sts-cal-booking {
  box-sizing: border-box !important;
}


/* v3.9.07 - Permanent delete action for cancelled appointments. */
.sts-force-delete-appt-btn.is-permanent {
  background: #fff1f2 !important;
  border: 1px solid #fecdd3 !important;
  color: #dc2626 !important;
}

.sts-force-delete-appt-btn.is-permanent:hover {
  background: #ffe4e6 !important;
  color: #b91c1c !important;
}

/* v3.9.09 - Explicit appointment override. */
.sts-force-insert-appt-btn {
  width: 100% !important;
  min-height: 48px !important;
  border: 1px solid #f59e0b !important;
  border-radius: 14px !important;
  background: #fff7ed !important;
  color: #b45309 !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

.sts-force-insert-appt-btn:hover {
  background: #ffedd5 !important;
  color: #92400e !important;
}

.sts-force-insert-appt-btn:disabled {
  opacity: .58 !important;
  cursor: wait !important;
}

.sts-force-insert-appt-btn.sts-hidden {
  display: none !important;
}

/* v3.9.09 - Stack intentionally overlapping appointments so every record stays visible. */
.sts-cal-lane,
.sts-cal-track {
  height: var(--sts-lane-height, 46px) !important;
}

.sts-cal-track {
  background-size: 37.8px var(--sts-lane-height, 46px) !important;
}

.sts-cal-stylist-group .sts-cal-stylist-label {
  min-height: var(--sts-stylist-group-height, 138px) !important;
  height: var(--sts-stylist-group-height, 138px) !important;
}

.sts-cal-booking {
  top: var(--sts-booking-top, 4px) !important;
  bottom: auto !important;
  height: var(--sts-booking-height, 38px) !important;
}


/* v3.9.10 - report From/To date range, defaulting to today */
.sts-report-modal-head {
  display: grid !important;
  grid-template-columns: minmax(120px, 1fr) auto minmax(180px, 1fr);
  align-items: end !important;
  gap: 18px;
}

.sts-report-modal-head > h3 {
  margin: 0;
  align-self: center;
}

.sts-report-date-range {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 12px;
  min-width: 520px;
}

.sts-report-date-range-title {
  align-self: center;
  margin-right: 4px;
  color: #101828;
  font-size: 15px;
  font-weight: 950;
  white-space: nowrap;
}

.sts-report-date-field {
  display: grid;
  gap: 5px;
  min-width: 170px;
  color: #475467;
  font-size: 12px;
  font-weight: 900;
}

.sts-report-date-field .sts-input {
  width: 100%;
  min-height: 48px;
  padding: 9px 12px;
  border: 2px solid #344054;
  border-radius: 10px;
  background: #fff;
  color: #101828;
  font-size: 15px;
  font-weight: 800;
}

.sts-report-head-actions {
  justify-self: end;
  align-self: center;
}

.sts-report-range-label {
  margin-left: 8px;
  color: #667085;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 1050px) {
  .sts-report-modal-head {
    grid-template-columns: 1fr auto;
    align-items: center !important;
  }

  .sts-report-date-range {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
    width: 100%;
    justify-content: flex-start;
  }

  .sts-report-head-actions {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 640px) {
  .sts-report-date-range {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .sts-report-date-range-title {
    grid-column: 1 / -1;
    margin: 0;
  }

  .sts-report-date-field {
    min-width: 0;
  }

  .sts-report-date-field .sts-input {
    min-height: 44px;
    padding: 8px;
    font-size: 13px;
  }
}


/* v3.9.12 - report totals and performance counts are calculated by No. Pax */
.sts-report-count-note {
  margin: 12px 0 18px;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}

/* v3.9.13 - salon-specific services, editable sales amount and invoice details. */
.sts-quick-appt-card {
  max-height: min(820px, 94vh) !important;
}

.sts-quick-appt-grid-v77 .sts-money-input-wrap {
  order: 10 !important;
  position: relative !important;
  min-width: 0 !important;
}

.sts-quick-appt-grid-v77 #stsQuickApptInvoiceNumber {
  order: 11 !important;
}

.sts-quick-appt-grid-v77 #stsQuickApptRemark {
  order: 12 !important;
}

.sts-quick-appt-grid-v77 .sts-money-prefix {
  position: absolute !important;
  left: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 2 !important;
  color: #475569 !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  pointer-events: none !important;
}

.sts-quick-appt-grid-v77 #stsQuickApptTotalAmount {
  width: 100% !important;
  padding-left: 31px !important;
}

.sts-quick-appt-grid-v77 .sts-money-input-wrap:has(#stsQuickApptTotalAmount:disabled) .sts-money-prefix {
  color: #64748b !important;
}

.sts-report-stat strong {
  overflow-wrap: anywhere;
}

@media (max-width: 620px) {
  .sts-quick-appt-grid-v77 .sts-money-prefix {
    left: 10px !important;
    font-size: 14px !important;
  }

  .sts-quick-appt-grid-v77 #stsQuickApptTotalAmount {
    padding-left: 25px !important;
  }
}

/* =========================================================
   v3.9.25 Laptop zoom-responsive appointment calendar
   - Fits the complete 10:30 AM–8:00 PM timeline to the available laptop width
   - Recalculates slot width after browser zoom or window resizing
   - Lets the calendar consume the remaining height when the top bar wraps
   - Main / Walk-in and Search screens keep their existing layout
   ========================================================= */
#stsAppointmentScreen .sts-cal-track {
  background-size: var(--sts-calendar-slot-width, 37.8px) var(--sts-lane-height, 46px) !important;
}

#stsAppointmentScreen .sts-cal-booking,
#stsAppointmentScreen .sts-cal-holiday-block {
  min-width: var(--sts-calendar-slot-width, 37.8px) !important;
}

#stsAppointmentScreen .sts-cal-time-cell {
  font-size: var(--sts-calendar-time-font-size, 9px) !important;
}

@media (min-width: 768px) {
  .sts-shell.sts-screen-appt {
    height: calc(100dvh - 12px) !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 12px) !important;
    overflow: hidden !important;
  }

  .sts-shell.sts-screen-appt #stsAppointmentScreen:not(.sts-hidden) {
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .sts-shell.sts-screen-appt #stsAppointmentScreen .sts-calendar-board,
  .sts-shell.sts-screen-appt #stsAppointmentScreen .sts-calendar-grid-wrap,
  .sts-shell.sts-screen-appt #stsAppointmentScreen .sts-cal-scroll {
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

@media (max-width: 1180px) and (min-width: 768px) {
  .sts-shell.sts-screen-appt .sts-topbar {
    flex: 0 0 auto !important;
  }

  .sts-shell.sts-screen-appt .sts-topbar-datebar,
  .sts-shell.sts-screen-appt .sts-calendar-dates,
  .sts-shell.sts-screen-appt .sts-branch-title,
  .sts-shell.sts-screen-appt .sts-topbar-controls {
    min-width: 0 !important;
    max-width: 100% !important;
  }
}



/* v3.9.26 - Force-delete action for completed and normal walk-in records. */
.sts-force-delete-appt-btn.is-permanent {
  background: #dc2626 !important;
  border: 1px solid #b91c1c !important;
  color: #ffffff !important;
  font-weight: 900 !important;
}

.sts-force-delete-appt-btn.is-permanent:hover {
  background: #b91c1c !important;
  color: #ffffff !important;
}

@media (max-width: 620px) {
  .sts-quick-appt-actions .sts-force-delete-appt-btn.is-permanent {
    grid-column: 1 / -1 !important;
  }
}


/* v3.9.27 - Calendar fills the laptop viewport at 90%, 100%, or enlarged browser zoom. */
#stsAppointmentScreen .sts-cal-header,
#stsAppointmentScreen .sts-cal-stylist-group {
  max-width: none !important;
}

#stsAppointmentScreen .sts-cal-time-track,
#stsAppointmentScreen .sts-cal-lanes,
#stsAppointmentScreen .sts-cal-track {
  min-width: 0 !important;
}

#stsAppointmentScreen .sts-cal-time-cell-final {
  justify-content: flex-end !important;
  padding-right: 3px !important;
  border-right: 0 !important;
  overflow: visible !important;
}


/* v3.9.30 Past Record — Reporting Only */
.sts-historical-record-notice {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 12px 0 4px;
  padding: 12px 14px;
  border: 1px solid #f1c84b;
  border-radius: 10px;
  background: #fff8d9;
  color: #463600;
  line-height: 1.35;
}
.sts-historical-record-notice strong {
  font-size: 14px;
}
.sts-historical-record-notice span {
  font-size: 12px;
  font-weight: 700;
}
.sts-cal-empty-slot.sts-cal-empty-history {
  cursor: pointer;
  background-image: repeating-linear-gradient(135deg, rgba(100, 116, 139, 0.08) 0, rgba(100, 116, 139, 0.08) 4px, transparent 4px, transparent 8px);
}
.sts-cal-empty-slot.sts-cal-empty-history:hover {
  outline: 2px dashed rgba(100, 116, 139, 0.65);
  outline-offset: -3px;
}


/* v3.9.60 - Start Now for waiting Regular Walk-in and Regular appointments. */
.sts-start-quick-booking-btn {
  width: 100% !important;
  min-height: 48px !important;
  border: 1px solid #0ea5e9 !important;
  border-radius: 14px !important;
  background: #e0f2fe !important;
  color: #075985 !important;
  font-size: 16px !important;
  font-weight: 950 !important;
  cursor: pointer !important;
}
.sts-start-quick-booking-btn:hover {
  background: #bae6fd !important;
  color: #0c4a6e !important;
}
.sts-start-quick-booking-btn:disabled {
  opacity: .55 !important;
  cursor: not-allowed !important;
}
.sts-start-quick-booking-btn.sts-hidden,
.sts-start-now-turn-btn.sts-hidden {
  display: none !important;
}


/* v3.9.34 - Member ID, remarks/assistant row, compact actions, and report keyword search. */
.sts-quick-appt-grid-v77 {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  align-items: stretch !important;
}

.sts-quick-appt-grid-v77 #stsQuickApptCustomerName { order: 1 !important; }
.sts-quick-appt-grid-v77 .sts-phone-note-wrap { order: 2 !important; }
.sts-quick-appt-grid-v77 #stsQuickApptDate { order: 3 !important; }
.sts-quick-appt-grid-v77 #stsQuickApptMemberId { order: 4 !important; }
.sts-quick-appt-grid-v77 #stsQuickApptStart { order: 5 !important; }
.sts-quick-appt-grid-v77 #stsQuickApptPax { order: 6 !important; }
.sts-quick-appt-grid-v77 #stsQuickApptStylistName { order: 7 !important; grid-column: 1 / 2 !important; }
.sts-quick-appt-grid-v77 #stsQuickApptEnd { order: 8 !important; }
.sts-quick-appt-grid-v77 #stsQuickApptServiceButtons { order: 9 !important; grid-column: 1 / -1 !important; }
.sts-quick-appt-grid-v77 .sts-money-input-wrap { order: 10 !important; }
.sts-quick-appt-grid-v77 #stsQuickApptInvoiceNumber { order: 11 !important; }
.sts-quick-appt-grid-v77 #stsQuickApptRemark { order: 12 !important; grid-column: 1 / 2 !important; }
.sts-quick-appt-grid-v77 #stsQuickApptAssistant { order: 13 !important; grid-column: 2 / 3 !important; }

.sts-quick-appt-grid-v77 #stsQuickApptMemberId {
  background: #ffffff !important;
}

.sts-quick-appt-grid-v77 #stsQuickApptRemark,
.sts-quick-appt-grid-v77 #stsQuickApptAssistant {
  min-height: 72px !important;
  height: 72px !important;
}

.sts-quick-appt-grid-v77 #stsQuickApptAssistant {
  border-radius: 14px !important;
  font-size: 17px !important;
}

.sts-quick-appt-actions {
  grid-template-columns: repeat(auto-fit, minmax(98px, 1fr)) !important;
  gap: 8px !important;
  margin-top: 10px !important;
}

.sts-quick-appt-actions button,
.sts-quick-appt-actions .sts-force-insert-appt-btn,
.sts-quick-appt-actions .sts-complete-quick-appt-btn {
  min-height: 42px !important;
  padding: 8px 10px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  line-height: 1.15 !important;
  box-shadow: 0 5px 12px rgba(15, 23, 42, .08) !important;
}

.sts-report-modal-head {
  grid-template-columns: auto minmax(280px, 1fr) auto auto !important;
  align-items: center !important;
  gap: 14px !important;
}

.sts-report-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 280px;
  max-width: 560px;
  width: 100%;
}

.sts-report-search .sts-input {
  width: 100%;
  min-height: 48px;
  padding: 9px 42px 9px 42px !important;
  border: 2px solid #d7e2f2;
  border-radius: 14px;
  background: #fff;
  color: #101828;
  font-size: 14px;
  font-weight: 750;
}

.sts-report-search .sts-input:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .12);
  outline: none;
}

.sts-report-search-icon {
  position: absolute;
  left: 14px;
  z-index: 2;
  pointer-events: none;
  font-size: 16px;
}

.sts-report-search-clear {
  position: absolute;
  right: 9px;
  z-index: 2;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eef2f7;
  color: #475467;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}

.sts-report-search-count {
  display: inline-flex;
  margin-left: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #f3e8ff;
  color: #6d28d9;
  font-size: 12px;
  font-weight: 900;
  vertical-align: middle;
}

.sts-report-remark-cell {
  min-width: 180px;
  max-width: 320px;
  white-space: normal !important;
  overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
  .sts-report-modal-head {
    grid-template-columns: minmax(120px, auto) minmax(250px, 1fr) auto !important;
  }

  .sts-report-date-range {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .sts-report-head-actions {
    grid-column: 3 !important;
    grid-row: 1 !important;
  }
}

@media (max-width: 700px) {
  .sts-report-modal-head {
    grid-template-columns: 1fr auto !important;
  }

  .sts-report-search {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .sts-report-date-range {
    grid-row: 3 !important;
  }

  .sts-report-head-actions {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }
}

@media (max-width: 480px) {
  .sts-quick-appt-grid-v77 {
    grid-template-columns: 1fr !important;
  }

  .sts-quick-appt-grid-v77 > * {
    grid-column: 1 / -1 !important;
  }

  .sts-quick-appt-grid-v77 #stsQuickApptRemark,
  .sts-quick-appt-grid-v77 #stsQuickApptAssistant {
    grid-column: 1 / -1 !important;
  }
}

/* v3.9.35 - Main Walk-in optional contact and outlet-safe stylist status. */
.sts-main-walkin-phone {
  background: #fff !important;
}

/* v3.9.36 - Compact desktop stylist cards: 3 columns x 2 visible rows on a standard laptop. */
@media (min-width: 1181px) {
  #stsMainScreen .sts-stylists-card .sts-stylist-grid,
  #stsMainScreen .sts-stylist-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    grid-auto-rows: max-content !important;
    align-items: start !important;
    align-content: start !important;
    gap: 8px !important;
    padding: 8px !important;
  }

  #stsMainScreen .sts-stylist-card {
    align-self: start !important;
    min-height: 0 !important;
    border-width: 1px !important;
    border-radius: 15px !important;
    padding: 7px !important;
  }

  #stsMainScreen .sts-stylist-top {
    grid-template-columns: 40px minmax(0, 1fr) auto !important;
    gap: 6px !important;
    margin-bottom: 5px !important;
  }

  #stsMainScreen .sts-avatar {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    border-radius: 11px !important;
    font-size: 18px !important;
  }

  #stsMainScreen .sts-stylist-name {
    font-size: clamp(15px, 1.18vw, 20px) !important;
    line-height: 1 !important;
    letter-spacing: -0.2px !important;
  }

  #stsMainScreen .sts-specialty {
    margin-top: 2px !important;
    font-size: 9px !important;
    line-height: 1.05 !important;
  }

  #stsMainScreen .sts-status-badge {
    min-width: 48px !important;
    min-height: 31px !important;
    padding: 0 7px !important;
    font-size: 9px !important;
    line-height: 1 !important;
  }

  #stsMainScreen .sts-stats-row {
    gap: 5px !important;
    margin-bottom: 5px !important;
  }

  #stsMainScreen .sts-stat-box,
  #stsMainScreen .sts-turn-box {
    min-height: 47px !important;
    padding: 6px 7px !important;
    border-radius: 10px !important;
  }

  #stsMainScreen .sts-stat-box strong,
  #stsMainScreen .sts-turn-position {
    font-size: 18px !important;
    line-height: 1 !important;
  }

  #stsMainScreen .sts-stat-box small,
  #stsMainScreen .sts-turn-box small {
    margin-top: 3px !important;
    font-size: 8px !important;
    line-height: 1.05 !important;
  }

  #stsMainScreen .sts-turn-box .sts-checkin-btn {
    height: 27px !important;
    min-height: 27px !important;
    padding: 0 7px !important;
    border-radius: 9px !important;
    font-size: 10px !important;
  }

  #stsMainScreen .sts-serving-box {
    min-height: 61px !important;
    padding: 6px 7px !important;
    margin-bottom: 5px !important;
    border-radius: 10px !important;
  }

  #stsMainScreen .sts-serving-title-row {
    flex-wrap: nowrap !important;
    gap: 4px !important;
  }

  #stsMainScreen .sts-serving-title-row > small,
  #stsMainScreen .sts-serving-box > small {
    font-size: 8px !important;
    line-height: 1 !important;
    letter-spacing: .03em !important;
    white-space: nowrap !important;
  }

  #stsMainScreen .sts-serving-tools {
    flex-wrap: nowrap !important;
    gap: 3px !important;
    min-width: 0 !important;
  }

  #stsMainScreen .sts-serving-type {
    min-height: 23px !important;
    padding: 3px 6px !important;
    font-size: 9px !important;
  }

  #stsMainScreen .sts-serving-type::after {
    margin-left: 3px !important;
    font-size: 8px !important;
  }

  #stsMainScreen .sts-edit-name-btn {
    min-height: 23px !important;
    padding: 0 7px !important;
    font-size: 9px !important;
  }

  #stsMainScreen .sts-remove-current-btn {
    width: 23px !important;
    height: 23px !important;
    min-width: 23px !important;
    min-height: 23px !important;
    font-size: 16px !important;
  }

  #stsMainScreen .sts-serving-box > strong {
    margin-top: 4px !important;
    font-size: 14px !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  #stsMainScreen .sts-service-start-time {
    margin-top: 3px !important;
    font-size: 9px !important;
    line-height: 1 !important;
  }

  #stsMainScreen .sts-cancel-active-appt-btn {
    min-height: 27px !important;
    margin-top: 4px !important;
    padding: 0 8px !important;
    font-size: 9px !important;
  }

  #stsMainScreen .sts-active-regular-stack {
    gap: 4px !important;
    margin-bottom: 4px !important;
  }

  #stsMainScreen .sts-active-regular-pill {
    padding: 5px 7px !important;
    border-radius: 9px !important;
  }

  #stsMainScreen .sts-active-regular-pill span,
  #stsMainScreen .sts-active-regular-pill small {
    font-size: 8px !important;
    line-height: 1.1 !important;
  }

  #stsMainScreen .sts-active-regular-pill strong {
    font-size: 11px !important;
    line-height: 1.1 !important;
  }

  #stsMainScreen .sts-action-row {
    gap: 4px !important;
  }

  #stsMainScreen .sts-complete-btn,
  #stsMainScreen .sts-take-btn,
  #stsMainScreen .sts-direct-btn,
  #stsMainScreen .sts-checkin-btn,
  #stsMainScreen .sts-na-btn,
  #stsMainScreen .sts-skip-btn {
    min-height: 37px !important;
    height: 37px !important;
    border-radius: 10px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
    line-height: 1 !important;
  }

  #stsMainScreen .sts-note {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
    margin-top: 4px !important;
    min-height: 17px !important;
    max-height: 20px !important;
    font-size: 8px !important;
    line-height: 1.15 !important;
  }
}


/* =========================================================
   v3.9.40 Scheduled Walk-in calendar markers
   - Red outline marks the original scheduled time across every stylist row
   - Only non-completed scheduled Walk-ins on today/future dates are shown
   - Marker is visual only and never blocks calendar controls
   ========================================================= */
#stsAppointmentScreen .sts-cal-lanes {
  position: relative !important;
}

#stsAppointmentScreen .sts-cal-scheduled-walkin-marker {
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  z-index: 20 !important;
  box-sizing: border-box !important;
  border: 2px solid #ef4444 !important;
  border-radius: 2px !important;
  background: rgba(239, 68, 68, .035) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6) !important;
  pointer-events: none !important;
}

/* =========================================================
   v3.9.41 Sharper and more vivid appointment-calendar text
   - Raises previously tiny 8.5-9px calendar labels to readable sizes
   - Uses stronger contrast and full-opacity booking details
   - Keeps text on the native system font and avoids soft synthetic rendering
   - Works together with whole-pixel positioning in counter.js
   ========================================================= */
#stsAppointmentScreen .sts-cal-scroll,
#stsAppointmentScreen .sts-cal-header,
#stsAppointmentScreen .sts-cal-stylist-group,
#stsAppointmentScreen .sts-cal-time-cell,
#stsAppointmentScreen .sts-cal-booking,
#stsAppointmentScreen .sts-cal-holiday-block,
#stsAppointmentScreen .sts-cal-lane-tag {
  font-family: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: subpixel-antialiased;
  font-kerning: normal;
}

#stsAppointmentScreen .sts-cal-time-cell {
  color: #1f2937 !important;
  font-size: var(--sts-calendar-time-font-size, 10px) !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  font-variant-numeric: tabular-nums;
  opacity: 1 !important;
}

#stsAppointmentScreen .sts-cal-header-label {
  color: #111827 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

#stsAppointmentScreen .sts-cal-avatar {
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

#stsAppointmentScreen .sts-cal-stylist-label small {
  color: #111827 !important;
  font-size: 9.5px !important;
  line-height: 1.08 !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  opacity: 1 !important;
}

#stsAppointmentScreen .sts-cal-lane-tag {
  min-width: 52px !important;
  height: 19px !important;
  font-size: 8.5px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .18) !important;
}

#stsAppointmentScreen .sts-cal-booking,
#stsAppointmentScreen .sts-cal-holiday-block {
  padding: 3px 7px !important;
  font-family: inherit !important;
  -webkit-font-smoothing: subpixel-antialiased;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .22);
}

#stsAppointmentScreen .sts-cal-booking strong,
#stsAppointmentScreen .sts-cal-holiday-block strong {
  color: #ffffff !important;
  font-size: 12px !important;
  line-height: 1.02 !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  opacity: 1 !important;
}

#stsAppointmentScreen .sts-cal-booking span,
#stsAppointmentScreen .sts-cal-holiday-block span,
#stsAppointmentScreen .sts-cal-booking em {
  color: #ffffff !important;
  margin-top: 1px !important;
  font-size: 9px !important;
  line-height: 1.02 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  opacity: 1 !important;
}

#stsAppointmentScreen .sts-cal-booking-regular-walk {
  background: #1d4ed8 !important;
}

#stsAppointmentScreen .sts-cal-booking-regular {
  background: #0f9f4f !important;
}

#stsAppointmentScreen .sts-cal-booking-walkin {
  background: #dc2626 !important;
}

#stsAppointmentScreen .sts-cal-booking.serving {
  outline-color: rgba(34, 197, 94, .55) !important;
}

/* =========================================================
   v3.9.43 Calendar time-header and row-separator correction
   - Keeps 7:45 PM and 8:00 PM as two separate, readable labels
   - Uses the real slot grid for header dividers
   - Uses only one thin grey separator between each appointment lane
   ========================================================= */
#stsAppointmentScreen .sts-cal-time-track {
  overflow: visible !important;
  background-color: #f8fafc !important;
  background-image: linear-gradient(to right, #dbe6f3 1px, transparent 1px) !important;
  background-size: var(--sts-calendar-slot-width, 37.8px) 100% !important;
  background-position: 0 0 !important;
}

#stsAppointmentScreen .sts-cal-time-cell {
  width: max-content !important;
  min-width: 0 !important;
  padding: 0 2px !important;
  border-right: 0 !important;
  transform: translateX(-50%) !important;
  justify-content: center !important;
  font-stretch: condensed;
  letter-spacing: -.12px !important;
  overflow: visible !important;
}

#stsAppointmentScreen .sts-cal-time-cell-first {
  transform: none !important;
  justify-content: flex-start !important;
  padding-left: 2px !important;
  font-size: 9px !important;
}

#stsAppointmentScreen .sts-cal-time-cell-final {
  transform: translateX(-100%) !important;
  justify-content: flex-end !important;
  padding-right: 2px !important;
  font-size: 9px !important;
  border-right: 0 !important;
}

/* Remove the extra track-top border introduced in v3.9.42. The lane's own
   bottom border is the single separator, preventing the doubled grey line. */
#stsAppointmentScreen .sts-cal-lane > .sts-cal-track {
  border-top: 0 !important;
}

#stsAppointmentScreen .sts-cal-lane {
  border-bottom: 1px solid #d1d5db !important;
  box-sizing: border-box !important;
}

#stsAppointmentScreen .sts-cal-lane:last-child {
  border-bottom: 0 !important;
}


/* =========================================================
   v3.9.44 Calendar header spacing + single separator cleanup
   - Restores one readable label per 15-minute slot
   - Shows the final 8.00 label as a dedicated edge label
   - Keeps only one fine grey separator between the three lane rows
   ========================================================= */
#stsAppointmentScreen .sts-cal-time-track {
  overflow: visible !important;
  background-color: #f8fafc !important;
  background-image: linear-gradient(to right, #dbe6f3 1px, transparent 1px) !important;
  background-size: var(--sts-calendar-slot-width, 37.8px) 100% !important;
  background-position: 0 0 !important;
}

#stsAppointmentScreen .sts-cal-time-cell {
  width: auto;
  min-width: 0 !important;
  padding: 0 1px !important;
  border-right: 0 !important;
  transform: none !important;
  justify-content: center !important;
  white-space: nowrap !important;
  overflow: visible !important;
  font-size: 9px !important;
  letter-spacing: 0 !important;
  background: transparent !important;
}

#stsAppointmentScreen .sts-cal-time-cell-edge {
  width: max-content !important;
  padding: 0 2px !important;
  transform: translateX(-100%) !important;
  justify-content: flex-end !important;
  border-right: 0 !important;
  background: #f8fafc !important;
  z-index: 2 !important;
}

/* neutralize earlier first/final transforms from older patches */
#stsAppointmentScreen .sts-cal-time-cell-first,
#stsAppointmentScreen .sts-cal-time-cell-final {
  transform: none !important;
  justify-content: center !important;
  padding-left: 1px !important;
  padding-right: 1px !important;
  font-size: 9px !important;
}

#stsAppointmentScreen .sts-cal-lane > .sts-cal-track {
  border-top: 0 !important;
  box-shadow: none !important;
}

#stsAppointmentScreen .sts-cal-lane {
  border-top: 0 !important;
  border-bottom: 1px solid #d1d5db !important;
  box-sizing: border-box !important;
}

#stsAppointmentScreen .sts-cal-lane:last-child {
  border-bottom: 0 !important;
}


/* =========================================================
   v3.9.45 Dedicated 8.00 header column + centered labels
   - Adds a full final time column for 8.00
   - Centers every time label within its own column
   ========================================================= */
#stsAppointmentScreen .sts-cal-time-cell {
  width: auto;
  min-width: 0 !important;
  padding: 0 !important;
  border-right: 0 !important;
  transform: none !important;
  justify-content: center !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: visible !important;
  font-size: 9px !important;
  letter-spacing: 0 !important;
  background: transparent !important;
}

#stsAppointmentScreen .sts-cal-time-cell-edge,
#stsAppointmentScreen .sts-cal-time-cell-first,
#stsAppointmentScreen .sts-cal-time-cell-final {
  transform: none !important;
  justify-content: center !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  font-size: 9px !important;
}


/* =========================================================
   v3.9.46 Final 8.00 visibility and centered time labels
   - Responsive slot sizing now reserves space for the dedicated 8.00 column
   - Every time label stays centered inside its own header cell
   ========================================================= */
#stsAppointmentScreen .sts-cal-time-track {
  padding-right: 0 !important;
}

#stsAppointmentScreen .sts-cal-time-cell {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

/* v3.9.48 - Future-date scheduled Walk-in queue number */
.sts-left-panel .sts-queue-item .sts-queue-num.sts-queue-num-scheduled,
.sts-queue-item.sts-queue-card-new .sts-queue-num.sts-queue-num-scheduled {
  background: #2563eb;
}



/* =========================================================
   v3.9.49 Exact centre alignment for calendar time labels
   - Forces each label to occupy its complete 15-minute header column
   - Centres the text horizontally and vertically inside that column
   - Keeps the dedicated 8.00 column visible and centred
   ========================================================= */
#stsAppointmentScreen .sts-cal-time-cell {
  width: var(--sts-cal-header-cell-width, var(--sts-calendar-slot-width, 37.8px)) !important;
  min-width: var(--sts-cal-header-cell-width, var(--sts-calendar-slot-width, 37.8px)) !important;
  max-width: var(--sts-cal-header-cell-width, var(--sts-calendar-slot-width, 37.8px)) !important;
  box-sizing: border-box !important;
  display: grid !important;
  place-items: center !important;
  align-content: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 0 !important;
  transform: none !important;
}


/* v3.9.51 scheduled customer alert workflow */
.sts-walkin-schedule-card {
  width: min(900px, 100%);
}

.sts-scheduled-alert-status {
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid #93c5fd;
  border-radius: 12px;
  background: #eff6ff;
  color: #1e3a8a;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}

#stsWalkinScheduleModal .sts-walkin-schedule-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

#stsWalkinScheduleModal .sts-walkin-schedule-actions button {
  min-height: 54px;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  border: 0;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.15;
  cursor: pointer;
  white-space: normal;
}

#stsWalkinScheduleModal .sts-schedule-cancel-btn {
  background: #fee2e2;
  color: #b91c1c;
}

#stsWalkinScheduleModal .sts-schedule-save-btn {
  background: #e2e8f0;
  color: #334155;
}

#stsWalkinScheduleModal .sts-start-now-turn-btn {
  background: #10b981;
  color: #ffffff;
}

#stsWalkinScheduleModal .sts-schedule-postpone-btn {
  background: #dbeafe;
  color: #1d4ed8;
}

#stsWalkinScheduleModal .sts-walkin-schedule-actions button:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(0.97);
}

#stsWalkinScheduleModal .sts-walkin-schedule-actions button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 980px) {
  #stsWalkinScheduleModal .sts-walkin-schedule-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #stsWalkinScheduleModal .sts-start-now-turn-btn {
    grid-column: span 2;
  }
}

@media (max-width: 560px) {
  #stsWalkinScheduleModal .sts-walkin-schedule-actions {
    grid-template-columns: 1fr;
  }
  #stsWalkinScheduleModal .sts-start-now-turn-btn {
    grid-column: auto;
  }
}


/* =========================================================
   v3.9.52 Main Walk-in time and field arrangement
   Row 1: Scheduled Date | Contact
   Row 2: Start Time (device-auto when date is blank) | End Time optional
   Row 3: Customer Name | Member ID
   ========================================================= */
.sts-add-grid-main-walkin {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  align-items: stretch !important;
}

.sts-add-grid-main-walkin #stsWalkinDate,
.sts-add-grid-main-walkin #stsCustomerPhone,
.sts-add-grid-main-walkin #stsWalkinTime,
.sts-add-grid-main-walkin #stsWalkinEndTime,
.sts-add-grid-main-walkin #stsCustomerName,
.sts-add-grid-main-walkin #stsMemberId {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 54px !important;
  box-sizing: border-box !important;
}

.sts-add-grid-main-walkin #stsWalkinDate {
  grid-column: 1 !important;
  grid-row: 1 !important;
}

.sts-add-grid-main-walkin #stsCustomerPhone {
  grid-column: 2 !important;
  grid-row: 1 !important;
}

.sts-add-grid-main-walkin .sts-walkin-start-wrap {
  grid-column: 1 !important;
  grid-row: 2 !important;
}

.sts-add-grid-main-walkin .sts-walkin-end-wrap {
  grid-column: 2 !important;
  grid-row: 2 !important;
}

.sts-add-grid-main-walkin #stsCustomerName {
  grid-column: 1 !important;
  grid-row: 3 !important;
}

.sts-add-grid-main-walkin #stsMemberId {
  grid-column: 2 !important;
  grid-row: 3 !important;
}

.sts-add-grid-main-walkin .sts-walkin-time-wrap {
  display: block !important;
  min-width: 0 !important;
}

.sts-add-grid-main-walkin .sts-walkin-time-wrap .sts-input {
  display: block !important;
}

.sts-add-grid-main-walkin .sts-walkin-start-wrap.is-auto-time #stsWalkinTime,
.sts-add-grid-main-walkin #stsWalkinTime:disabled {
  background: #f8fafc !important;
  color: #1f2937 !important;
  opacity: 1 !important;
  cursor: default !important;
  -webkit-text-fill-color: #1f2937 !important;
}

.sts-add-grid-main-walkin .sts-main-service-buttons,
.sts-add-grid-main-walkin .sts-main-remark {
  grid-column: 1 / -1 !important;
}

@media (max-width: 560px) {
  .sts-add-grid-main-walkin {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .sts-add-grid-main-walkin #stsWalkinDate,
  .sts-add-grid-main-walkin #stsCustomerPhone,
  .sts-add-grid-main-walkin .sts-walkin-start-wrap,
  .sts-add-grid-main-walkin .sts-walkin-end-wrap,
  .sts-add-grid-main-walkin #stsCustomerName,
  .sts-add-grid-main-walkin #stsMemberId {
    min-width: 0 !important;
  }

  .sts-add-grid-main-walkin #stsWalkinDate,
  .sts-add-grid-main-walkin #stsCustomerPhone,
  .sts-add-grid-main-walkin #stsWalkinTime,
  .sts-add-grid-main-walkin #stsWalkinEndTime,
  .sts-add-grid-main-walkin #stsCustomerName,
  .sts-add-grid-main-walkin #stsMemberId {
    min-height: 54px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    font-size: 15px !important;
  }
}

/* v3.9.57 white-base selectable buttons
   Appointment-type and service buttons remain white while unselected.
   Only the selected/clicked button becomes solid purple with white text. */
.sts-type-btn,
.sts-service-type-btn,
.sts-quick-appt-grid-v51 .sts-service-type-btn,
.sts-quick-appt-grid-v77 .sts-service-type-btn {
  border-color: #d7d7dc !important;
  background: #ffffff !important;
  color: #707070 !important;
  -webkit-text-fill-color: #707070 !important;
  text-shadow: none !important;
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.10) !important;
  transition: background-color 0.16s ease, border-color 0.16s ease,
    color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease !important;
}

.sts-type-btn:hover:not(.active):not(:disabled),
.sts-service-type-btn:hover:not(.active):not(:disabled),
.sts-quick-appt-grid-v51 .sts-service-type-btn:hover:not(.active):not(:disabled),
.sts-quick-appt-grid-v77 .sts-service-type-btn:hover:not(.active):not(:disabled) {
  border-color: #9923FA !important;
  background: #ffffff !important;
  color: #50147F !important;
  -webkit-text-fill-color: #50147F !important;
  box-shadow: 0 0 0 2px rgba(153, 35, 250, 0.14), 0 3px 8px rgba(15, 23, 42, 0.12) !important;
  transform: translateY(-1px);
}

.sts-type-btn.active,
.sts-type-btn:active,
.sts-service-type-btn.active,
.sts-service-type-btn:active,
.sts-quick-appt-grid-v51 .sts-service-type-btn.active,
.sts-quick-appt-grid-v51 .sts-service-type-btn:active,
.sts-quick-appt-grid-v77 .sts-service-type-btn.active,
.sts-quick-appt-grid-v77 .sts-service-type-btn:active {
  border-color: #ffffff !important;
  background: #7F1ED1 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18) !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.96), 0 5px 12px rgba(80, 20, 127, 0.32) !important;
  transform: translateY(-1px);
}

.sts-type-btn:focus-visible,
.sts-service-type-btn:focus-visible {
  outline: 3px solid #50147F !important;
  outline-offset: 3px !important;
}

.sts-type-btn:disabled,
.sts-service-type-btn:disabled {
  opacity: 0.52 !important;
  cursor: not-allowed !important;
  transform: none !important;
}


/* v3.9.61 - Take Now decision for a stylist with an active Regular lane appointment. */
.sts-walkin-decision-actions {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}
.sts-take-now-decision-btn {
  appearance: none;
  border: 2px solid #7f1ed1;
  border-radius: 16px;
  min-height: 52px;
  padding: 12px 18px;
  background: #9923fa;
  color: #ffffff;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(153, 35, 250, 0.22);
}
.sts-take-now-decision-btn:hover,
.sts-take-now-decision-btn:focus-visible {
  background: #7f1ed1;
  color: #ffffff;
}
.sts-take-now-decision-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}
@media (max-width: 640px) {
  .sts-walkin-decision-actions {
    grid-template-columns: 1fr;
  }
}


/* v3.9.62 - show simultaneous Regular and Walk-in services as separate blue/red blocks. */
#stsMainScreen .sts-serving-box-current-walkin {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  border: 1px solid #b91c1c !important;
  box-shadow: 0 10px 22px rgba(185, 28, 28, .18) !important;
  color: #ffffff !important;
}

#stsMainScreen .sts-serving-box-current-walkin .sts-serving-title-row,
#stsMainScreen .sts-serving-box-current-walkin > strong,
#stsMainScreen .sts-serving-box-current-walkin .sts-service-start-time,
#stsMainScreen .sts-serving-box-current-walkin small,
#stsMainScreen .sts-serving-box-current-walkin span {
  color: #ffffff !important;
  opacity: 1 !important;
}

#stsMainScreen .sts-serving-box-current-walkin .sts-serving-type,
#stsMainScreen .sts-serving-box-current-walkin .sts-edit-appt-btn,
#stsMainScreen .sts-serving-box-current-walkin .sts-remove-current-btn,
#stsMainScreen .sts-serving-box-current-walkin .sts-cancel-active-appt-btn {
  background: #ffffff !important;
  color: #b91c1c !important;
  border: 1px solid rgba(255, 255, 255, .92) !important;
  box-shadow: none !important;
}

#stsMainScreen .sts-serving-box-current-walkin .sts-active-regular-stack {
  margin-bottom: 10px !important;
}

#stsAppointmentScreen .sts-cal-booking-walkin {
  background: #dc2626 !important;
  border-color: #991b1b !important;
}

/* v3.9.63 - Force Start Now and separate completion choices for dual active services. */
.sts-force-start-quick-booking-btn {
  width: 100% !important;
  min-height: 48px !important;
  border: 1px solid #ea580c !important;
  border-radius: 14px !important;
  background: #fff7ed !important;
  color: #c2410c !important;
  font-size: 16px !important;
  font-weight: 950 !important;
  cursor: pointer !important;
}
.sts-force-start-quick-booking-btn:hover,
.sts-force-start-quick-booking-btn:focus-visible {
  background: #ffedd5 !important;
  color: #9a3412 !important;
}
.sts-force-start-quick-booking-btn:disabled {
  opacity: .55 !important;
  cursor: not-allowed !important;
}
.sts-force-start-quick-booking-btn.sts-hidden {
  display: none !important;
}

.sts-complete-service-card {
  width: min(560px, calc(100vw - 28px)) !important;
}
.sts-complete-choice-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 14px;
}
.sts-complete-choice-actions.sts-hidden {
  display: none !important;
}
.sts-complete-choice-btn {
  appearance: none;
  min-height: 56px;
  border-radius: 15px;
  padding: 11px 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.15;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.sts-complete-choice-btn:hover,
.sts-complete-choice-btn:focus-visible {
  transform: translateY(-1px);
  filter: brightness(.96);
}
.sts-complete-choice-btn:disabled {
  opacity: .55;
  cursor: wait;
  transform: none;
}
.sts-complete-choice-regular {
  background: #2563eb;
  border: 2px solid #1d4ed8;
  color: #ffffff;
}
.sts-complete-choice-walkin {
  background: #dc2626;
  border: 2px solid #b91c1c;
  color: #ffffff;
}
.sts-complete-choice-both {
  background: #9923fa;
  border: 2px solid #7f1ed1;
  color: #ffffff;
}
@media (max-width: 560px) {
  .sts-complete-choice-actions {
    grid-template-columns: 1fr;
  }
}

/* v3.9.64 - staff role visibility and Hair Stylist-only Walk-in turns */
.sts-stylist-card.appointment-only {
  border-color: #c4b5fd;
  background: linear-gradient(180deg, #ffffff 0%, #faf8ff 100%);
}

.sts-status-badge.appointment {
  background: #7c3aed;
  color: #fff;
}

.sts-turn-box-appointment {
  border-color: #ddd6fe;
  background: #f5f3ff;
}

.sts-turn-box-appointment .sts-turn-position {
  color: #6d28d9;
}

.sts-appointment-only-btn {
  width: 100%;
  min-height: 42px;
  border: 1px solid #c4b5fd;
  border-radius: 10px;
  background: #f5f3ff;
  color: #6d28d9;
  font-weight: 800;
  cursor: default;
}


/* v3.9.65 - Optional named Assistant attribution for appointments. */
.sts-quick-appt-grid-v77 #stsQuickApptAssistant,
.sts-assistant-select {
  min-height: 72px !important;
  height: 72px !important;
  border: 1px solid #d7e2f2 !important;
  border-radius: 14px !important;
  background-color: #ffffff !important;
  color: #344054 !important;
  font-size: 16px !important;
  font-weight: 850 !important;
  padding: 0 42px 0 18px !important;
  cursor: pointer !important;
}

.sts-quick-appt-grid-v77 #stsQuickApptAssistant:focus {
  border-color: #9923fa !important;
  box-shadow: 0 0 0 3px rgba(153, 35, 250, .14) !important;
  outline: none !important;
}

.sts-quick-appt-grid-v77 #stsQuickApptAssistant:disabled {
  cursor: not-allowed !important;
  background: #f8fafc !important;
  color: #98a2b3 !important;
}


/* v3.9.66 - Separate Consultant and Assistant attribution fields. */
.sts-quick-appt-grid-v77 #stsQuickApptConsultant {
  order: 12 !important;
  grid-column: 1 / 2 !important;
}
.sts-quick-appt-grid-v77 #stsQuickApptAssistant {
  order: 13 !important;
  grid-column: 2 / 3 !important;
}
.sts-quick-appt-grid-v77 #stsQuickApptRemark {
  order: 14 !important;
  grid-column: 1 / -1 !important;
  min-height: 76px !important;
  height: 76px !important;
}
.sts-quick-appt-grid-v77 #stsQuickApptConsultant,
.sts-quick-appt-grid-v77 #stsQuickApptAssistant,
.sts-support-staff-select {
  min-height: 62px !important;
  height: 62px !important;
  border: 1px solid #d7e2f2 !important;
  border-radius: 14px !important;
  background-color: #ffffff !important;
  color: #344054 !important;
  font-size: 16px !important;
  font-weight: 850 !important;
  padding: 0 42px 0 18px !important;
  cursor: pointer !important;
}
.sts-quick-appt-grid-v77 #stsQuickApptConsultant:focus,
.sts-quick-appt-grid-v77 #stsQuickApptAssistant:focus {
  border-color: #9923fa !important;
  box-shadow: 0 0 0 3px rgba(153, 35, 250, .14) !important;
  outline: none !important;
}
.sts-quick-appt-grid-v77 #stsQuickApptConsultant:disabled,
.sts-quick-appt-grid-v77 #stsQuickApptAssistant:disabled {
  cursor: not-allowed !important;
  background: #f8fafc !important;
  color: #98a2b3 !important;
}
@media (max-width: 480px) {
  .sts-quick-appt-grid-v77 #stsQuickApptConsultant,
  .sts-quick-appt-grid-v77 #stsQuickApptAssistant,
  .sts-quick-appt-grid-v77 #stsQuickApptRemark {
    grid-column: 1 / -1 !important;
  }
}

/* v3.9.67 - Consultant / Assistant completed-job value summary. */
.sts-support-summary-note {
  margin: -2px 0 12px;
  padding: 11px 14px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #f8fafc;
  color: #667085;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.sts-support-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 22px;
}

.sts-support-summary-card {
  min-width: 0;
}

.sts-support-summary-card h5 {
  margin: 0 0 8px;
  color: #101828;
  font-size: 15px;
  font-weight: 950;
}

.sts-support-summary-table-wrap {
  margin: 0;
}

.sts-support-summary-table {
  min-width: 420px;
  table-layout: fixed;
}

.sts-support-summary-table th,
.sts-support-summary-table td {
  white-space: normal;
  vertical-align: middle;
}

.sts-support-summary-table th:nth-child(1),
.sts-support-summary-table td:nth-child(1) {
  width: 50%;
  text-align: left;
}

.sts-support-summary-table th:nth-child(2),
.sts-support-summary-table td:nth-child(2) {
  width: 18%;
  text-align: center;
}

.sts-support-summary-table th:nth-child(3),
.sts-support-summary-table td:nth-child(3) {
  width: 32%;
  text-align: right;
}

@media (max-width: 820px) {
  .sts-support-summary-grid {
    grid-template-columns: 1fr;
  }
}


/* v3.9.68 - Modern report modal redesign */
.sts-report-card-modern {
  width: min(1420px, calc(100vw - 24px)) !important;
  overflow-x: hidden !important;
  max-height: min(94vh, 980px) !important;
  padding: 22px !important;
  border-radius: 28px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22) !important;
}

.sts-report-toolbar {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.sts-report-toolbar-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.sts-report-title-block h3 {
  margin: 0;
  color: #0f172a;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.sts-report-title-block p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.sts-report-close-btn {
  flex: 0 0 auto;
}

.sts-report-filter-panel {
  display: grid;
  grid-template-columns: minmax(280px, 1.7fr) minmax(180px, 0.75fr) minmax(180px, 0.75fr) minmax(160px, 0.7fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid #e4e7ec;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.sts-report-filter-field {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
}

.sts-report-filter-field > span {
  color: #1e293b;
}

.sts-report-filter-panel .sts-input,
.sts-report-filter-panel .sts-report-search .sts-input {
  min-height: 56px !important;
  border: 1px solid #d7dee8 !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
  color: #0f172a !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}

.sts-report-filter-panel .sts-input:focus,
.sts-report-filter-panel .sts-report-search .sts-input:focus {
  border-color: #7c3aed !important;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12) !important;
}

.sts-report-filter-search {
  grid-column: 1 / 2;
}

.sts-report-date-range {
  display: contents !important;
}

.sts-report-head-actions {
  align-self: end;
}

.sts-report-head-actions .sts-export-btn {
  width: 100%;
  min-height: 56px;
  border-radius: 18px !important;
  background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%) !important;
  border: 0 !important;
  box-shadow: 0 14px 24px rgba(124, 58, 237, 0.22) !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 950 !important;
}

.sts-report-content {
  display: grid;
  gap: 20px;
  padding-right: 2px;
}

.sts-report-overview-card,
.sts-report-section-card {
  padding: 18px;
  border: 1px solid #e4e7ec;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.sts-report-stats {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin: 0 !important;
}

.sts-report-stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: space-between;
  min-height: 108px;
  padding: 16px !important;
  border: 1px solid #e7ecf3 !important;
  border-radius: 22px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.sts-report-stat strong {
  margin-top: 10px;
  color: #0f172a;
  font-size: 28px !important;
  font-weight: 950 !important;
  letter-spacing: -0.03em;
}

.sts-report-stat small {
  margin: 0 !important;
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.sts-report-stat-emphasis {
  background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%) !important;
  border-color: transparent !important;
}

.sts-report-stat-emphasis strong,
.sts-report-stat-emphasis small {
  color: #ffffff !important;
}

.sts-report-count-note-modern {
  margin: 14px 0 0 !important;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.sts-report-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.sts-report-section-head h4 {
  margin: 0;
  color: #0f172a;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.sts-report-section-head p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.sts-report-search-count {
  align-self: center;
  margin-left: 0 !important;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  background: #f3e8ff !important;
  color: #6d28d9 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.sts-report-table-wrap {
  margin: 0 !important;
  border: 1px solid #e7edf5 !important;
  border-radius: 20px !important;
  background: #ffffff;
}

.sts-report-table {
  font-size: 13.5px !important;
}

.sts-report-table th,
.sts-report-table td {
  padding: 13px 12px !important;
  border-bottom: 1px solid #edf2f7 !important;
}

.sts-report-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc !important;
  color: #0f172a;
  font-size: 12px;
  font-weight: 950 !important;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.sts-report-table tbody tr:nth-child(even) {
  background: #fbfdff;
}

.sts-report-table tbody tr:hover {
  background: #f5f3ff;
}

.sts-support-summary-grid {
  gap: 16px !important;
}

.sts-support-summary-card {
  padding: 16px;
  border: 1px solid #ebeef5;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.sts-support-summary-card h5 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 18px;
  font-weight: 950;
}

.sts-support-summary-note {
  display: none !important;
}

@media (max-width: 1180px) {
  .sts-report-filter-panel {
    grid-template-columns: minmax(240px, 1fr) repeat(2, minmax(180px, 1fr));
  }
  .sts-report-head-actions {
    grid-column: 1 / -1;
  }
  .sts-report-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 820px) {
  .sts-report-card-modern {
    width: min(100vw - 14px, 1000px) !important;
    padding: 16px !important;
    border-radius: 22px !important;
  }
  .sts-report-toolbar-top,
  .sts-report-section-head {
    flex-direction: column;
    align-items: stretch;
  }
  .sts-report-filter-panel {
    grid-template-columns: 1fr;
    padding: 14px;
    border-radius: 20px;
  }
  .sts-report-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 520px) {
  .sts-report-title-block h3 {
    font-size: 24px;
  }
  .sts-report-stats {
    grid-template-columns: 1fr !important;
  }
  .sts-report-overview-card,
  .sts-report-section-card {
    padding: 14px;
    border-radius: 18px;
  }
}


/* v3.9.69 - Advanced report filters, compact cards and no horizontal report scroll */
.sts-report-filter-panel {
  grid-template-columns: minmax(320px, 1.8fr) minmax(170px, .7fr) minmax(170px, .7fr) minmax(160px, .65fr) !important;
  gap: 12px !important;
  padding: 15px !important;
}

.sts-report-filter-panel > .sts-report-filter-field:nth-of-type(n+2),
.sts-report-filter-panel > label.sts-report-filter-field {
  min-width: 0;
}

.sts-report-filter-panel .sts-input,
.sts-report-filter-panel .sts-report-search .sts-input {
  min-height: 48px !important;
  height: 48px !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  border-radius: 14px !important;
  font-size: 14px !important;
}

.sts-report-filter-panel select.sts-input {
  padding-right: 34px !important;
}

.sts-report-head-actions .sts-export-btn {
  min-height: 48px !important;
  height: 48px !important;
  border-radius: 14px !important;
  font-size: 14px !important;
}

/* Place the six detailed filters on one compact second row. */
.sts-report-filter-panel > label.sts-report-filter-field {
  grid-row: 2;
}

.sts-report-filter-panel > label.sts-report-filter-field:nth-of-type(1) { grid-column: 1; }
.sts-report-filter-panel > label.sts-report-filter-field:nth-of-type(2) { grid-column: 2; }
.sts-report-filter-panel > label.sts-report-filter-field:nth-of-type(3) { grid-column: 3; }
.sts-report-filter-panel > label.sts-report-filter-field:nth-of-type(4) { grid-column: 4; }
.sts-report-filter-panel > label.sts-report-filter-field:nth-of-type(5) { grid-column: 1 / 3; grid-row: 3; }
.sts-report-filter-panel > label.sts-report-filter-field:nth-of-type(6) { grid-column: 3 / 5; grid-row: 3; }

.sts-report-overview-card,
.sts-report-section-card {
  padding: 14px !important;
  border-radius: 18px !important;
}

.sts-report-stats {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.sts-report-stat {
  min-height: 76px !important;
  padding: 11px 13px !important;
  border-radius: 16px !important;
}

.sts-report-stat strong {
  margin-top: 5px !important;
  font-size: 22px !important;
}

.sts-report-stat small {
  font-size: 10px !important;
}

/* Report tables fit the visible modal width and wrap instead of using a bottom scrollbar. */
.sts-report-table-wrap,
.sts-turn-performance-wrap,
.sts-customer-report-wrap,
.sts-support-summary-table-wrap {
  overflow-x: hidden !important;
  overflow-y: visible !important;
  width: 100% !important;
  max-width: 100% !important;
}

.sts-report-table,
.sts-turn-performance-table,
.sts-customer-report-table,
.sts-support-summary-table {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  table-layout: fixed !important;
}

.sts-report-table th,
.sts-report-table td,
.sts-turn-performance-table th,
.sts-turn-performance-table td,
.sts-customer-report-table th,
.sts-customer-report-table td {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  text-overflow: clip !important;
  overflow: visible !important;
  line-height: 1.25 !important;
}

.sts-turn-performance-table {
  font-size: 10px !important;
}

.sts-turn-performance-table th,
.sts-turn-performance-table td {
  padding: 7px 3px !important;
}

.sts-turn-performance-table th:nth-child(1) { width: 12%; }
.sts-turn-performance-table th:nth-child(2) { width: 6%; }
.sts-turn-performance-table th:nth-child(3) { width: 5%; }
.sts-turn-performance-table th:nth-child(4),
.sts-turn-performance-table th:nth-child(5),
.sts-turn-performance-table th:nth-child(6),
.sts-turn-performance-table th:nth-child(7),
.sts-turn-performance-table th:nth-child(8),
.sts-turn-performance-table th:nth-child(9),
.sts-turn-performance-table th:nth-child(10),
.sts-turn-performance-table th:nth-child(11) { width: 7%; }
.sts-turn-performance-table th:nth-child(12) { width: 9%; }
.sts-turn-performance-table th:nth-child(13) { width: 5%; }

.sts-customer-report-table {
  font-size: 10.5px !important;
}

.sts-customer-report-table th,
.sts-customer-report-table td {
  padding: 7px 4px !important;
  vertical-align: top !important;
}

.sts-customer-report-table th:nth-child(1) { width: 8%; }
.sts-customer-report-table th:nth-child(2) { width: 7%; }
.sts-customer-report-table th:nth-child(3) { width: 6%; }
.sts-customer-report-table th:nth-child(4) { width: 7%; }
.sts-customer-report-table th:nth-child(5) { width: 7%; }
.sts-customer-report-table th:nth-child(6) { width: 8%; }
.sts-customer-report-table th:nth-child(7) { width: 4%; }
.sts-customer-report-table th:nth-child(8) { width: 6%; }
.sts-customer-report-table th:nth-child(9) { width: 6%; }
.sts-customer-report-table th:nth-child(10) { width: 6%; }
.sts-customer-report-table th:nth-child(11) { width: 7%; }
.sts-customer-report-table th:nth-child(12) { width: 10%; }
.sts-customer-report-table th:nth-child(13) { width: 6%; }
.sts-customer-report-table th:nth-child(14) { width: 6%; }
.sts-customer-report-table th:nth-child(15) { width: 6%; }

.sts-report-remark-cell {
  min-width: 0 !important;
  max-width: none !important;
}

@media (max-width: 1250px) {
  .sts-report-filter-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .sts-report-filter-search { grid-column: 1 / -1 !important; }
  .sts-report-date-range { display: contents !important; }
  .sts-report-head-actions { grid-column: 3 !important; grid-row: 2 !important; }
  .sts-report-filter-panel > label.sts-report-filter-field {
    grid-column: auto !important;
    grid-row: auto !important;
  }
  .sts-report-stats {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 850px) {
  .sts-report-filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .sts-report-head-actions { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .sts-report-stats { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .sts-customer-report-table,
  .sts-turn-performance-table { font-size: 9px !important; }
}

@media (max-width: 560px) {
  .sts-report-filter-panel { grid-template-columns: 1fr !important; }
  .sts-report-filter-panel > * { grid-column: 1 !important; }
  .sts-report-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}


/* v3.9.70 - Refined report close button */
#stsReportModal .sts-report-close-btn {
  position: relative !important;
  display: inline-grid !important;
  place-items: center !important;
  width: 46px !important;
  min-width: 46px !important;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 !important;
  border: 1px solid #dbe3ee !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  color: #334155 !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08) !important;
  font-size: 0 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease !important;
}

#stsReportModal .sts-report-close-btn > span {
  display: none !important;
}

#stsReportModal .sts-report-close-btn::before,
#stsReportModal .sts-report-close-btn::after {
  content: "";
  position: absolute;
  width: 17px;
  height: 2.5px;
  border-radius: 999px;
  background: currentColor;
}

#stsReportModal .sts-report-close-btn::before {
  transform: rotate(45deg);
}

#stsReportModal .sts-report-close-btn::after {
  transform: rotate(-45deg);
}

#stsReportModal .sts-report-close-btn:hover {
  border-color: #cbd5e1 !important;
  background: #f8fafc !important;
  color: #0f172a !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12) !important;
  transform: translateY(-1px) !important;
}

#stsReportModal .sts-report-close-btn:focus-visible {
  outline: none !important;
  border-color: #8b5cf6 !important;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.16), 0 10px 24px rgba(15, 23, 42, 0.10) !important;
}

#stsReportModal .sts-report-close-btn:active {
  transform: translateY(0) scale(.96) !important;
}


/* v3.9.71 - Report filters reorganised without global search */
.sts-report-filter-panel {
  grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(150px, 0.9fr) !important;
  gap: 12px !important;
  align-items: end !important;
}

.sts-report-date-range {
  display: contents !important;
}

.sts-report-filter-panel > .sts-report-head-actions {
  grid-column: 6 !important;
  grid-row: 1 !important;
  align-self: end !important;
}

.sts-report-filter-panel > .sts-report-filter-field,
.sts-report-filter-panel > label.sts-report-filter-field {
  min-width: 0 !important;
  grid-column: auto !important;
  grid-row: auto !important;
}

.sts-report-filter-panel .sts-report-date-field:nth-of-type(1) { grid-column: 1 !important; }
.sts-report-filter-panel .sts-report-date-field:nth-of-type(2) { grid-column: 2 !important; }
.sts-report-filter-panel > label[for="stsReportStylist"] { grid-column: 3 !important; }
.sts-report-filter-panel > label[for="stsReportCustomerType"] { grid-column: 4 !important; }
.sts-report-filter-panel > label[for="stsReportService"] { grid-column: 5 !important; }
.sts-report-filter-panel > label[for="stsReportContact"] { grid-column: 1 / 3 !important; grid-row: 2 !important; }
.sts-report-filter-panel > label[for="stsReportMemberId"] { grid-column: 3 / 5 !important; grid-row: 2 !important; }
.sts-report-filter-panel > label[for="stsReportOrderNo"] { grid-column: 5 / 7 !important; grid-row: 2 !important; }

.sts-report-filter-panel .sts-input {
  min-height: 48px !important;
  height: 48px !important;
  border-radius: 14px !important;
  font-size: 14px !important;
}

.sts-report-head-actions .sts-export-btn {
  width: 100% !important;
  min-height: 48px !important;
  height: 48px !important;
  border-radius: 14px !important;
}

@media (max-width: 1280px) {
  .sts-report-filter-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .sts-report-filter-panel > label[for="stsReportContact"] { grid-column: 1 !important; grid-row: 3 !important; }
  .sts-report-filter-panel > label[for="stsReportMemberId"] { grid-column: 2 !important; grid-row: 3 !important; }
  .sts-report-filter-panel > label[for="stsReportOrderNo"] { grid-column: 3 !important; grid-row: 3 !important; }
  .sts-report-filter-panel > .sts-report-head-actions {
    grid-column: 1 / -1 !important;
    grid-row: 4 !important;
  }
}

@media (max-width: 860px) {
  .sts-report-filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .sts-report-filter-panel > label[for="stsReportContact"],
  .sts-report-filter-panel > label[for="stsReportMemberId"],
  .sts-report-filter-panel > label[for="stsReportOrderNo"],
  .sts-report-filter-panel > .sts-report-head-actions {
    grid-column: auto !important;
    grid-row: auto !important;
  }
  .sts-report-filter-panel > .sts-report-head-actions {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 560px) {
  .sts-report-filter-panel {
    grid-template-columns: 1fr !important;
  }
  .sts-report-filter-panel > * {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
}


/* v3.9.72 - Scheduled marker same-start count indicator */
#stsAppointmentScreen .sts-cal-scheduled-walkin-marker {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  overflow: visible !important;
}

#stsAppointmentScreen .sts-cal-scheduled-walkin-marker.sts-cal-scheduled-walkin-multi {
  background: rgba(239, 68, 68, .05) !important;
}

#stsAppointmentScreen .sts-cal-scheduled-walkin-count {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: 4px !important;
  min-width: 24px !important;
  height: 18px !important;
  padding: 0 6px !important;
  border-radius: 999px !important;
  background: #ef4444 !important;
  color: #ffffff !important;
  font-size: 11px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  letter-spacing: .02em !important;
  box-shadow: 0 2px 8px rgba(239, 68, 68, .28) !important;
}


/* v3.9.73 - Cross-outlet customer visit history by Contact or Member ID */
.sts-cross-outlet-tag {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f3e8ff;
  color: #7e22ce;
  font-size: 9px;
  line-height: 1.2;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .04em;
  vertical-align: middle;
}

.sts-global-history-card {
  border-color: #ddd6fe !important;
  background: linear-gradient(180deg, #ffffff 0%, #faf7ff 100%) !important;
  box-shadow: 0 14px 34px rgba(109, 40, 217, .08) !important;
}

.sts-global-history-scope {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .05em;
  box-shadow: 0 8px 18px rgba(124, 58, 237, .18);
}

.sts-global-history-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 76px;
  padding: 16px;
  border: 1px dashed #c4b5fd;
  border-radius: 16px;
  background: rgba(255, 255, 255, .82);
  color: #5b21b6;
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.sts-global-history-guidance {
  color: #475569;
  border-color: #dbe3ee;
  background: #f8fafc;
}

.sts-global-history-error {
  color: #b42318;
  border-color: #fecaca;
  background: #fff1f2;
}

.sts-global-history-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #ddd6fe;
  border-top-color: #7c3aed;
  border-radius: 50%;
  animation: sts-global-history-spin .75s linear infinite;
}

@keyframes sts-global-history-spin {
  to { transform: rotate(360deg); }
}

.sts-global-history-query {
  margin: -2px 0 12px;
  padding: 9px 12px;
  border: 1px solid #e9d5ff;
  border-radius: 14px;
  background: #ffffff;
  color: #6b21a8;
  font-size: 12px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.sts-global-history-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.sts-global-history-stats > div {
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid #e9d5ff;
  border-radius: 16px;
  background: #ffffff;
}

.sts-global-history-stats small,
.sts-global-history-stats strong {
  display: block;
}

.sts-global-history-stats small {
  color: #7c3aed;
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.sts-global-history-stats strong {
  margin-top: 4px;
  color: #0f172a;
  font-size: 19px;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.sts-global-history-wrap {
  overflow-x: hidden !important;
}

.sts-global-history-table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
  font-size: 9.5px !important;
}

.sts-global-history-table th,
.sts-global-history-table td {
  padding: 7px 4px !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  vertical-align: top !important;
  line-height: 1.25 !important;
}

.sts-global-history-table th:nth-child(1) { width: 8%; }
.sts-global-history-table th:nth-child(2) { width: 8%; }
.sts-global-history-table th:nth-child(3) { width: 7%; }
.sts-global-history-table th:nth-child(4) { width: 7%; }
.sts-global-history-table th:nth-child(5) { width: 6%; }
.sts-global-history-table th:nth-child(6) { width: 7%; }
.sts-global-history-table th:nth-child(7) { width: 7%; }
.sts-global-history-table th:nth-child(8) { width: 10%; }
.sts-global-history-table th:nth-child(9) { width: 6%; }
.sts-global-history-table th:nth-child(10) { width: 6%; }
.sts-global-history-table th:nth-child(11) { width: 6%; }
.sts-global-history-table th:nth-child(12) { width: 6%; }
.sts-global-history-table th:nth-child(13) { width: 6%; }
.sts-global-history-table th:nth-child(14) { width: 10%; }

.sts-global-current-row {
  background: #f3e8ff !important;
}

.sts-global-current-row:hover {
  background: #ede9fe !important;
}

.sts-global-current-badge {
  display: inline-flex;
  margin-top: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #7c3aed;
  color: #ffffff;
  font-size: 8px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .04em;
}

@media (max-width: 820px) {
  .sts-global-history-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sts-global-history-table {
    font-size: 8.5px !important;
  }
}

@media (max-width: 520px) {
  .sts-global-history-stats {
    grid-template-columns: 1fr;
  }
  .sts-global-history-scope {
    align-self: flex-start;
  }
}


/* v3.9.74 - Past Walk-in reporting-only calendar entry */
#stsAppointmentScreen .sts-cal-empty-walkin.sts-cal-empty-history {
  cursor: pointer !important;
}

#stsAppointmentScreen .sts-cal-empty-walkin.sts-cal-empty-history:hover {
  outline: 2px dashed rgba(220, 38, 38, .72) !important;
  outline-offset: -3px !important;
  background-color: rgba(254, 226, 226, .34) !important;
}

/* =========================================================
   v3.9.76 - Customer Service Office central appointment desk
   ========================================================= */
.sts-cso-screen {
  padding: 14px 16px 24px;
  min-height: calc(100vh - 110px);
  background: #f8fafc;
}

.sts-cso-shell {
  max-width: 1540px;
  margin: 0 auto;
}

.sts-cso-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.sts-cso-kicker {
  display: inline-block;
  margin-bottom: 4px;
  color: #7c3aed;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sts-cso-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: -.025em;
}

.sts-cso-head p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
}

.sts-cso-search-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr)) minmax(300px, 1.2fr);
  gap: 12px;
  align-items: end;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15,23,42,.06);
}

.sts-cso-search-panel label,
.sts-cso-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.sts-cso-search-panel label > span,
.sts-cso-field > span {
  color: #334155;
  font-size: 12px;
  font-weight: 950;
}

.sts-cso-search-panel .sts-input,
.sts-cso-booking-grid .sts-input {
  min-height: 48px;
  border: 1px solid #d7dee8;
  border-radius: 14px;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
}

.sts-cso-search-actions {
  display: grid;
  grid-template-columns: 1.5fr .8fr;
  gap: 8px;
}

.sts-cso-search-actions button {
  min-height: 48px;
  border-radius: 14px;
}

.sts-cso-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 12px 2px 14px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.sts-cso-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.sts-cso-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #cbd5e1;
}
.sts-cso-dot.green { background: #16a34a; }
.sts-cso-dot.blue { background: #2563eb; }
.sts-cso-dot.red { background: #ef4444; }
.sts-cso-dot.grey { background: #94a3b8; }

.sts-cso-branch-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.sts-cso-branch-card {
  display: grid;
  gap: 9px;
  min-height: 190px;
  padding: 15px;
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15,23,42,.05);
}

.sts-cso-branch-card.sts-cso-status-green { border-color: #22c55e; background: #f0fdf4; }
.sts-cso-branch-card.sts-cso-status-blue { border-color: #3b82f6; background: #eff6ff; }
.sts-cso-branch-card.sts-cso-status-red { border-color: #ef4444; background: #fff1f2; }
.sts-cso-branch-card.sts-cso-status-grey { border-color: #cbd5e1; background: #f8fafc; }

.sts-cso-branch-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.sts-cso-branch-card-head > div {
  display: grid;
  gap: 2px;
}

.sts-cso-branch-card-head strong {
  color: #0f172a;
  font-size: 18px;
  font-weight: 950;
}

.sts-cso-branch-card-head span:not(.sts-cso-status-pill) {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.sts-cso-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .05em;
}
.sts-cso-status-green .sts-cso-status-pill { background: #16a34a; color: #fff; }
.sts-cso-status-blue .sts-cso-status-pill { background: #2563eb; color: #fff; }
.sts-cso-status-red .sts-cso-status-pill { background: #ef4444; color: #fff; }
.sts-cso-status-grey .sts-cso-status-pill { background: #94a3b8; color: #fff; }

.sts-cso-branch-card p {
  margin: 0;
  color: #334155;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
}

.sts-cso-branch-card small {
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.sts-cso-branch-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

.sts-cso-branch-actions button {
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 900;
}

.sts-cso-booking-card {
  width: min(880px, calc(100vw - 24px));
  max-height: 94vh;
  overflow-y: auto;
  border-radius: 24px;
}

.sts-cso-booking-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.sts-cso-field-wide {
  grid-column: 1 / -1;
}

.sts-cso-service-buttons {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.sts-cso-booking-hint {
  margin-top: 12px;
  padding: 11px 13px;
  border: 1px solid #ddd6fe;
  border-radius: 14px;
  background: #f5f3ff;
  color: #5b21b6;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.4;
}

.sts-cso-booking-actions {
  grid-template-columns: 1fr 1.3fr;
}

.sts-cso-datebar-hidden {
  display: none !important;
}

.sts-shell.sts-cso-master .sts-branch-title {
  margin-left: auto;
}

/* CSO may edit calendar appointments but never starts/completes live salon service. */
.sts-shell.sts-cso-mode .sts-complete-quick-appt-btn,
.sts-shell.sts-cso-mode .sts-start-quick-booking-btn,
.sts-shell.sts-cso-mode .sts-force-start-quick-booking-btn,
.sts-shell.sts-cso-mode .sts-start-now-turn-btn,
.sts-shell.sts-cso-mode [data-action="checkin"],
.sts-shell.sts-cso-mode [data-action="take-next"] {
  display: none !important;
}

@media (max-width: 1280px) {
  .sts-cso-branch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sts-cso-search-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sts-cso-search-actions { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .sts-cso-branch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sts-cso-booking-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sts-cso-service-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 620px) {
  .sts-cso-search-panel,
  .sts-cso-branch-grid,
  .sts-cso-booking-grid { grid-template-columns: 1fr; }
  .sts-cso-field-wide { grid-column: 1; }
  .sts-cso-head { flex-direction: column; }
  .sts-cso-branch-actions { grid-template-columns: 1fr; }
}


/* =========================================================
   v3.9.77 - Unified modern selectable service buttons
   - White base when not selected
   - Corporate purple with white text when selected
   - Applied to Main, appointment edit/add and CSO booking services
   ========================================================= */
.sts-service-type-btn,
.sts-quick-appt-grid-v51 .sts-service-type-btn,
.sts-quick-appt-grid-v77 .sts-service-type-btn,
.sts-cso-service-btn {
  appearance: none !important;
  -webkit-appearance: none !important;
  min-height: 46px !important;
  height: auto !important;
  padding: 9px 14px !important;
  border: 1px solid #d9e0ea !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  color: #475569 !important;
  -webkit-text-fill-color: #475569 !important;
  font-size: 14px !important;
  line-height: 1.18 !important;
  font-weight: 850 !important;
  text-align: center !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  cursor: pointer !important;
  text-shadow: none !important;
  box-shadow: 0 3px 10px rgba(15, 23, 42, .07) !important;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease,
    box-shadow .16s ease, transform .16s ease !important;
}

.sts-service-type-btn:hover:not(.active):not(:disabled),
.sts-quick-appt-grid-v51 .sts-service-type-btn:hover:not(.active):not(:disabled),
.sts-quick-appt-grid-v77 .sts-service-type-btn:hover:not(.active):not(:disabled),
.sts-cso-service-btn:hover:not(.active):not(:disabled) {
  background: #fbf8ff !important;
  border-color: #c9a5f8 !important;
  color: #6b21a8 !important;
  -webkit-text-fill-color: #6b21a8 !important;
  box-shadow: 0 5px 14px rgba(126, 34, 206, .12) !important;
  transform: translateY(-1px) !important;
}

.sts-service-type-btn.active,
.sts-quick-appt-grid-v51 .sts-service-type-btn.active,
.sts-quick-appt-grid-v77 .sts-service-type-btn.active,
.sts-cso-service-btn.active {
  background: #9923FA !important;
  border-color: #9923FA !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: none !important;
  box-shadow: 0 7px 18px rgba(153, 35, 250, .24) !important;
  transform: translateY(-1px) !important;
}

.sts-service-type-btn.active:hover,
.sts-cso-service-btn.active:hover {
  background: #861bdc !important;
  border-color: #861bdc !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.sts-service-type-btn:focus-visible,
.sts-cso-service-btn:focus-visible {
  outline: none !important;
  border-color: #9923FA !important;
  box-shadow: 0 0 0 4px rgba(153, 35, 250, .14), 0 5px 14px rgba(15, 23, 42, .08) !important;
}

.sts-service-type-btn:disabled,
.sts-cso-service-btn:disabled {
  opacity: .48 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

/* CSO booking: compact clean four-column service grid on desktop. */
.sts-cso-service-buttons {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px 12px !important;
  align-items: stretch !important;
}

.sts-cso-service-buttons .sts-cso-service-btn {
  width: 100% !important;
  min-width: 0 !important;
}

/* Main screen remains compact while using the same visual language. */
.sts-main-service-buttons .sts-service-type-btn {
  min-height: 40px !important;
  padding: 7px 10px !important;
  border-radius: 12px !important;
  font-size: 13px !important;
}

/* Appointment modal buttons can carry longer service names without becoming huge. */
.sts-quick-appt-grid-v51 .sts-service-type-btn,
.sts-quick-appt-grid-v77 .sts-service-type-btn {
  min-height: 44px !important;
  padding: 8px 11px !important;
  font-size: 14px !important;
}

@media (max-width: 900px) {
  .sts-cso-service-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 520px) {
  .sts-cso-service-buttons {
    grid-template-columns: 1fr !important;
  }
}


/* =========================================================
   v3.9.78 - Compact CSO master header and all-outlet grid
   ========================================================= */
.sts-shell.sts-cso-master .sts-branch-title {
  margin-left: auto !important;
  min-width: 88px !important;
  width: auto !important;
  height: 46px !important;
  padding: 0 14px !important;
  border: 0 !important;
  font-size: 30px !important;
  line-height: 46px !important;
  letter-spacing: .02em !important;
}

/* The previous Customer Service Office / Central Appointment Desk copy is removed. */
.sts-cso-head-compact {
  display: none !important;
  margin: 0 !important;
}

.sts-cso-screen {
  padding-top: 10px !important;
}

/* Render every active branch returned by the API; use a denser responsive grid
   so the CSO can see many outlets at once without horizontal scrolling. */
.sts-cso-branch-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: none !important;
  overflow: visible !important;
}

.sts-cso-branch-card {
  min-height: 142px !important;
  padding: 12px !important;
  gap: 6px !important;
  border-radius: 16px !important;
}

.sts-cso-branch-card-head strong {
  font-size: 16px !important;
  line-height: 1.15 !important;
}

.sts-cso-branch-card-head span:not(.sts-cso-status-pill),
.sts-cso-branch-card small {
  font-size: 10px !important;
}

.sts-cso-status-pill {
  min-width: 44px !important;
  min-height: 22px !important;
  padding: 3px 7px !important;
  font-size: 9px !important;
}

.sts-cso-branch-card p {
  display: -webkit-box !important;
  margin: 0 !important;
  min-height: 32px !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  color: #334155 !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
}

.sts-cso-branch-actions {
  gap: 6px !important;
}

.sts-cso-branch-actions button {
  min-height: 34px !important;
  padding: 6px 8px !important;
  border-radius: 10px !important;
  font-size: 10.5px !important;
  line-height: 1.1 !important;
}

@media (min-width: 1450px) {
  .sts-cso-branch-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1180px) and (max-width: 1449px) {
  .sts-cso-branch-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 900px) and (max-width: 1179px) {
  .sts-cso-branch-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 899px) {
  .sts-cso-branch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  .sts-shell.sts-cso-master .sts-branch-title {
    font-size: 24px !important;
  }
  .sts-cso-branch-grid {
    grid-template-columns: 1fr !important;
  }
}


/* =========================================================
   v3.9.79 - CSO full outlet list + reliable vertical scrolling
   - The fixed WebApp shell no longer clips lower outlet rows.
   - CSO master gets its own vertical scroll area.
   - Horizontal page scrolling is suppressed on the master screen.
   - Every active branch returned by /cso/branches remains rendered.
   ========================================================= */
.sts-shell.sts-cso-master {
  min-height: calc(100dvh - 12px) !important;
  height: calc(100dvh - 12px) !important;
  max-height: calc(100dvh - 12px) !important;
  overflow: hidden !important;
}

.sts-shell.sts-cso-master #stsCsoScreen:not(.sts-hidden) {
  display: block !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 10px 14px 90px !important;
  scrollbar-gutter: stable;
}

.sts-shell.sts-cso-master .sts-cso-shell {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 2px 24px !important;
  overflow: visible !important;
}

.sts-shell.sts-cso-master .sts-cso-branch-grid {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: visible !important;
  padding-bottom: 24px !important;
}

.sts-shell.sts-cso-master .sts-cso-branch-card {
  min-width: 0 !important;
}

.sts-cso-outlet-count {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 26px !important;
  padding: 4px 10px !important;
  border: 1px solid #d8dee9 !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #334155 !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  white-space: nowrap !important;
}

/* Avoid a browser-level bottom scrollbar while the CSO master is open. */
.sts-app:has(.sts-shell.sts-cso-master) {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

@media (max-width: 760px) {
  .sts-shell.sts-cso-master #stsCsoScreen:not(.sts-hidden) {
    padding-left: 8px !important;
    padding-right: 8px !important;
    padding-bottom: 72px !important;
  }
}


/* =========================================================
   v3.9.81 - Full WebApp visual consistency pass
   - One modern field system across Main, Calendar popups, Search, Report and CSO
   - One modern button geometry/focus/hover system while retaining semantic colors
   - Unified popup surfaces and close buttons
   - Calendar slot/booking controls are intentionally excluded from generic buttons
   ========================================================= */

/* ---------- Shared UI tokens ---------- */
#stsApp {
  --sts-ui-field-h: 50px;
  --sts-ui-radius: 14px;
  --sts-ui-border: #d7e0ec;
  --sts-ui-border-hover: #b9c5d6;
  --sts-ui-field-bg: #ffffff;
  --sts-ui-disabled-bg: #f3f6fa;
  --sts-ui-placeholder: #8a94a6;
  --sts-ui-shadow: 0 4px 12px rgba(15, 23, 42, .055);
  --sts-ui-shadow-hover: 0 7px 18px rgba(15, 23, 42, .085);
  --sts-ui-focus: 0 0 0 4px rgba(153, 35, 250, .13), 0 6px 16px rgba(15, 23, 42, .07);
}

/* ---------- Unified text / date / time / select / textarea fields ---------- */
#stsApp .sts-input,
#stsApp .sts-select,
#stsApp input.sts-input,
#stsApp select.sts-input,
#stsApp textarea.sts-input {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: var(--sts-ui-field-h) !important;
  border: 1px solid var(--sts-ui-border) !important;
  border-radius: var(--sts-ui-radius) !important;
  background-color: var(--sts-ui-field-bg) !important;
  color: #172033 !important;
  -webkit-text-fill-color: #172033 !important;
  box-shadow: var(--sts-ui-shadow) !important;
  outline: none !important;
  font-family: inherit !important;
  font-size: 15px !important;
  line-height: 1.25 !important;
  font-weight: 750 !important;
  letter-spacing: 0 !important;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease, transform .16s ease !important;
}

#stsApp input.sts-input,
#stsApp select.sts-input,
#stsApp .sts-select {
  height: var(--sts-ui-field-h) !important;
  padding: 0 14px !important;
}

#stsApp select.sts-input,
#stsApp select.sts-select {
  padding-right: 38px !important;
  cursor: pointer !important;
}

#stsApp textarea.sts-input {
  height: auto !important;
  min-height: 82px !important;
  padding: 13px 14px !important;
  resize: vertical !important;
}

#stsApp .sts-input::placeholder,
#stsApp textarea.sts-input::placeholder {
  color: var(--sts-ui-placeholder) !important;
  -webkit-text-fill-color: var(--sts-ui-placeholder) !important;
  opacity: 1 !important;
  font-weight: 650 !important;
}

#stsApp .sts-input:hover:not(:disabled):not(:focus),
#stsApp .sts-select:hover:not(:disabled):not(:focus) {
  border-color: var(--sts-ui-border-hover) !important;
  box-shadow: var(--sts-ui-shadow-hover) !important;
}

#stsApp .sts-input:focus,
#stsApp .sts-input:focus-visible,
#stsApp .sts-select:focus,
#stsApp .sts-select:focus-visible {
  border-color: #9923FA !important;
  box-shadow: var(--sts-ui-focus) !important;
}

#stsApp .sts-input[readonly] {
  background: #f7f9fc !important;
  color: #344054 !important;
  -webkit-text-fill-color: #344054 !important;
  cursor: default !important;
}

#stsApp .sts-input:disabled,
#stsApp .sts-select:disabled {
  background: var(--sts-ui-disabled-bg) !important;
  border-color: #e1e7ef !important;
  color: #7c8798 !important;
  -webkit-text-fill-color: #7c8798 !important;
  box-shadow: none !important;
  opacity: 1 !important;
  cursor: not-allowed !important;
}

/* Keep money prefix aligned after the field-height normalization. */
#stsApp .sts-money-input-wrap {
  position: relative !important;
  min-width: 0 !important;
}
#stsApp .sts-money-input-wrap .sts-money-prefix {
  top: 50% !important;
  transform: translateY(-50%) !important;
}
#stsApp .sts-money-input-wrap .sts-input {
  padding-left: 32px !important;
}

/* Support staff dropdowns are now the same height and visual language as every field. */
#stsApp .sts-support-staff-select,
#stsApp .sts-assistant-select,
#stsApp .sts-consultant-select,
#stsApp #stsQuickApptConsultant,
#stsApp #stsQuickApptAssistant {
  min-height: var(--sts-ui-field-h) !important;
  height: var(--sts-ui-field-h) !important;
  padding: 0 38px 0 14px !important;
  border-radius: var(--sts-ui-radius) !important;
  font-size: 15px !important;
  font-weight: 750 !important;
}

/* Labels across CSO, report and popup forms. */
#stsApp .sts-cso-field > span,
#stsApp .sts-report-filter-field > span,
#stsApp .sts-walkin-schedule-grid label > span,
#stsApp .sts-walkin-schedule-customer label > span,
#stsApp .sts-customer-note-form label > span {
  color: #344054 !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  font-weight: 900 !important;
  letter-spacing: .01em !important;
}

/* ---------- Unified modern action-button geometry ---------- */
#stsApp :is(
  .sts-primary-btn,
  .sts-purple-btn,
  .sts-secondary-btn,
  .sts-checkin-btn,
  .sts-complete-btn,
  .sts-take-btn,
  .sts-direct-btn,
  .sts-edit-appt-btn,
  .sts-cancel-appt-btn,
  .sts-cancel-active-appt-btn,
  .sts-remove-current-btn,
  .sts-queue-delete-btn,
  .sts-force-delete-appt-btn,
  .sts-force-insert-appt-btn,
  .sts-complete-quick-appt-btn,
  .sts-start-quick-booking-btn,
  .sts-take-now-decision-btn,
  .sts-complete-choice-btn,
  .sts-schedule-cancel-btn,
  .sts-schedule-save-btn,
  .sts-schedule-postpone-btn,
  .sts-start-now-turn-btn,
  .sts-na-btn,
  .sts-skip-btn,
  .sts-appointment-only-btn,
  .sts-phone-note-btn,
  .sts-reminder-popup-ok,
  .sts-available-stylist-option,
  .sts-reassign-option
) {
  appearance: none !important;
  -webkit-appearance: none !important;
  border-radius: 14px !important;
  font-family: inherit !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  text-shadow: none !important;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background-color .15s ease, filter .15s ease !important;
}

#stsApp :is(
  .sts-primary-btn,
  .sts-purple-btn,
  .sts-secondary-btn,
  .sts-checkin-btn,
  .sts-complete-btn,
  .sts-take-btn,
  .sts-direct-btn,
  .sts-force-insert-appt-btn,
  .sts-complete-quick-appt-btn,
  .sts-start-quick-booking-btn,
  .sts-take-now-decision-btn,
  .sts-complete-choice-btn,
  .sts-schedule-cancel-btn,
  .sts-schedule-save-btn,
  .sts-schedule-postpone-btn,
  .sts-start-now-turn-btn,
  .sts-na-btn,
  .sts-skip-btn,
  .sts-appointment-only-btn
) {
  min-height: 48px !important;
  padding: 9px 15px !important;
  font-size: 14px !important;
  line-height: 1.15 !important;
}

/* Reset legacy full-width primary margins inside action groups/cards. */
#stsApp :is(
  .sts-modal-actions,
  .sts-cso-search-actions,
  .sts-cso-branch-actions,
  .sts-cso-booking-actions,
  .sts-customer-search-result-actions,
  .sts-customer-note-actions,
  .sts-reminder-popup-actions,
  .sts-walkin-schedule-actions,
  .sts-walkin-decision-actions,
  .sts-complete-choice-actions,
  .sts-edit-appt-actions
) :is(.sts-primary-btn, .sts-secondary-btn, .sts-purple-btn) {
  width: 100% !important;
  margin: 0 !important;
}

/* Default modern surfaces for core actions. */
#stsApp .sts-primary-btn {
  border: 1px solid #10a96f !important;
  background: linear-gradient(180deg, #19bf82 0%, #11ad73 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 7px 18px rgba(17, 173, 115, .20) !important;
}
#stsApp .sts-primary-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #17b77c 0%, #0f9f69 100%) !important;
  box-shadow: 0 9px 22px rgba(17, 173, 115, .25) !important;
  transform: translateY(-1px) !important;
}

#stsApp .sts-purple-btn,
#stsApp .sts-screen-toggle-btn.active,
#stsApp .sts-screen-toggle-btn[aria-pressed="true"] {
  border: 1px solid #8c20e6 !important;
  background: linear-gradient(180deg, #a12bfa 0%, #8e20e8 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 7px 18px rgba(153, 35, 250, .20) !important;
}

#stsApp .sts-secondary-btn {
  border: 1px solid #dce3ed !important;
  background: #f6f8fb !important;
  color: #344054 !important;
  box-shadow: 0 4px 10px rgba(15, 23, 42, .055) !important;
}
#stsApp .sts-secondary-btn:hover:not(:disabled) {
  border-color: #c8d2df !important;
  background: #eef2f7 !important;
  box-shadow: 0 7px 16px rgba(15, 23, 42, .08) !important;
  transform: translateY(-1px) !important;
}

#stsApp .sts-checkin-btn {
  background: linear-gradient(180deg, #1f2937 0%, #111827 100%) !important;
  color: #fff !important;
  box-shadow: 0 7px 16px rgba(17, 24, 39, .16) !important;
}

#stsApp .sts-complete-btn,
#stsApp .sts-complete-quick-appt-btn {
  background: linear-gradient(180deg, #19bf82 0%, #10a96f 100%) !important;
  border: 1px solid #0f9f69 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(16, 169, 111, .20) !important;
}

#stsApp .sts-take-btn {
  background: linear-gradient(180deg, #3675ee 0%, #2563eb 100%) !important;
  border: 1px solid #1d4ed8 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .18) !important;
}

#stsApp .sts-direct-btn,
#stsApp .sts-start-quick-booking-btn {
  background: #eff6ff !important;
  border: 1px solid #93c5fd !important;
  color: #075985 !important;
  box-shadow: 0 5px 12px rgba(37, 99, 235, .08) !important;
}

#stsApp .sts-force-insert-appt-btn {
  background: #fff7ed !important;
  border: 1px solid #fb923c !important;
  color: #c2410c !important;
  box-shadow: 0 5px 12px rgba(234, 88, 12, .08) !important;
}

#stsApp :is(.sts-force-delete-appt-btn, .sts-remove-current-btn, .sts-queue-delete-btn) {
  border-color: #fecaca !important;
  background: #fff1f2 !important;
  color: #dc2626 !important;
  box-shadow: 0 4px 10px rgba(220, 38, 38, .07) !important;
}

#stsApp :is(.sts-cancel-appt-btn, .sts-cancel-active-appt-btn, .sts-schedule-cancel-btn) {
  border: 1px solid #fecaca !important;
  background: #fff1f2 !important;
  color: #b91c1c !important;
  box-shadow: 0 4px 10px rgba(185, 28, 28, .06) !important;
}

#stsApp :is(
  .sts-primary-btn,
  .sts-purple-btn,
  .sts-secondary-btn,
  .sts-checkin-btn,
  .sts-complete-btn,
  .sts-take-btn,
  .sts-direct-btn,
  .sts-edit-appt-btn,
  .sts-cancel-appt-btn,
  .sts-cancel-active-appt-btn,
  .sts-force-delete-appt-btn,
  .sts-force-insert-appt-btn,
  .sts-complete-quick-appt-btn,
  .sts-start-quick-booking-btn,
  .sts-take-now-decision-btn,
  .sts-complete-choice-btn,
  .sts-schedule-cancel-btn,
  .sts-schedule-save-btn,
  .sts-schedule-postpone-btn,
  .sts-start-now-turn-btn,
  .sts-phone-note-btn,
  .sts-reminder-popup-ok,
  .sts-available-stylist-option,
  .sts-reassign-option
):hover:not(:disabled) {
  transform: translateY(-1px) !important;
}

#stsApp :is(
  .sts-primary-btn,
  .sts-purple-btn,
  .sts-secondary-btn,
  .sts-checkin-btn,
  .sts-complete-btn,
  .sts-take-btn,
  .sts-direct-btn,
  .sts-edit-appt-btn,
  .sts-cancel-appt-btn,
  .sts-cancel-active-appt-btn,
  .sts-force-delete-appt-btn,
  .sts-force-insert-appt-btn,
  .sts-complete-quick-appt-btn,
  .sts-start-quick-booking-btn,
  .sts-take-now-decision-btn,
  .sts-complete-choice-btn,
  .sts-schedule-cancel-btn,
  .sts-schedule-save-btn,
  .sts-schedule-postpone-btn,
  .sts-start-now-turn-btn,
  .sts-phone-note-btn,
  .sts-reminder-popup-ok,
  .sts-available-stylist-option,
  .sts-reassign-option
):focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 4px rgba(153, 35, 250, .15), 0 7px 18px rgba(15, 23, 42, .10) !important;
}

#stsApp button:disabled {
  opacity: .52 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Compact utility buttons remain compact but use the same visual system. */
#stsApp :is(.sts-edit-appt-btn, .sts-cancel-appt-btn, .sts-cancel-active-appt-btn) {
  min-height: 34px !important;
  height: auto !important;
  padding: 7px 11px !important;
  border-radius: 11px !important;
  font-size: 12px !important;
  line-height: 1.1 !important;
}

#stsApp :is(.sts-remove-current-btn, .sts-queue-delete-btn, .sts-phone-note-btn) {
  display: inline-grid !important;
  place-items: center !important;
  min-width: 34px !important;
  width: 34px !important;
  min-height: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  border-radius: 11px !important;
}

/* ---------- All selectable type/service buttons ---------- */
#stsApp :is(.sts-type-btn, .sts-service-type-btn, .sts-cso-service-btn) {
  min-height: 44px !important;
  height: auto !important;
  padding: 8px 12px !important;
  border: 1px solid #d9e1eb !important;
  border-radius: 13px !important;
  background: #ffffff !important;
  color: #5f6877 !important;
  -webkit-text-fill-color: #5f6877 !important;
  box-shadow: 0 3px 9px rgba(15, 23, 42, .065) !important;
  font-size: 13.5px !important;
  line-height: 1.16 !important;
  font-weight: 850 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

#stsApp :is(.sts-type-btn, .sts-service-type-btn, .sts-cso-service-btn):hover:not(.active):not(:disabled) {
  border-color: #c79af7 !important;
  background: #fcf9ff !important;
  color: #6b21a8 !important;
  -webkit-text-fill-color: #6b21a8 !important;
  box-shadow: 0 0 0 3px rgba(153, 35, 250, .08), 0 5px 13px rgba(15, 23, 42, .07) !important;
}

#stsApp :is(.sts-type-btn, .sts-service-type-btn, .sts-cso-service-btn).active {
  border-color: #9923FA !important;
  background: linear-gradient(180deg, #a12bfa 0%, #9021e8 100%) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 7px 17px rgba(153, 35, 250, .22) !important;
}

/* ---------- Modal / popup consistency ---------- */
#stsApp .sts-modal {
  padding: 18px !important;
  background: rgba(15, 23, 42, .58) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
}

#stsApp .sts-modal-card {
  border: 1px solid rgba(226, 232, 240, .95) !important;
  border-radius: 24px !important;
  background: #ffffff !important;
  box-shadow: 0 26px 80px rgba(15, 23, 42, .26) !important;
  scrollbar-color: #cbd5e1 transparent;
  scrollbar-width: thin;
}

#stsApp .sts-modal-card::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
#stsApp .sts-modal-card::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #cbd5e1;
}

#stsApp .sts-modal-head {
  align-items: flex-start !important;
  gap: 14px !important;
  margin-bottom: 16px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid #edf1f6 !important;
}

#stsApp .sts-modal-card h3 {
  color: #101828 !important;
  letter-spacing: -.02em !important;
}

#stsApp .sts-modal-card .sts-modal-head p {
  margin-top: 5px !important;
  color: #667085 !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  font-weight: 650 !important;
}

/* Every popup close button uses the same clean rounded-square design. */
#stsApp .sts-modal-card .sts-icon-btn,
#stsApp #stsReportModal .sts-report-close-btn {
  position: relative !important;
  display: inline-grid !important;
  place-items: center !important;
  flex: 0 0 44px !important;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #dde4ee !important;
  border-radius: 13px !important;
  background: #f8fafc !important;
  color: #344054 !important;
  box-shadow: 0 5px 14px rgba(15, 23, 42, .07) !important;
  font-size: 25px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
}

#stsApp .sts-modal-card .sts-icon-btn:hover:not(:disabled),
#stsApp #stsReportModal .sts-report-close-btn:hover:not(:disabled) {
  border-color: #cbd5e1 !important;
  background: #eef2f7 !important;
  color: #101828 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .10) !important;
}

/* Preserve the report close pseudo-X while matching the common close surface. */
#stsApp #stsReportModal .sts-report-close-btn {
  font-size: 0 !important;
}

/* Popup action bars: even spacing, no legacy margins. */
#stsApp .sts-modal-actions {
  gap: 9px !important;
  margin-top: 18px !important;
}
#stsApp .sts-modal-actions > button {
  margin: 0 !important;
  min-width: 0 !important;
}

/* Quick appointment field rows and CSO booking fields use the same gaps. */
#stsApp :is(.sts-quick-appt-grid-v51, .sts-quick-appt-grid-v77, .sts-cso-booking-grid, .sts-walkin-schedule-grid, .sts-time-grid) {
  gap: 10px !important;
}

#stsApp .sts-quick-appt-grid-v77 #stsQuickApptRemark,
#stsApp .sts-quick-appt-grid-v51 #stsQuickApptRemark {
  height: auto !important;
  min-height: 82px !important;
}

/* Modern informational boxes inside popups. */
#stsApp :is(.sts-historical-record-notice, .sts-cso-booking-hint, .sts-walkin-schedule-note, .sts-scheduled-alert-status, .sts-edit-appt-help, .sts-reassign-help, .sts-quick-appt-help) {
  border-radius: 14px !important;
  line-height: 1.42 !important;
}

/* Reassign / available stylist options are modern clickable cards. */
#stsApp :is(.sts-reassign-option, .sts-available-stylist-option) {
  border: 1px solid #dce4ee !important;
  background: #ffffff !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .055) !important;
}
#stsApp :is(.sts-reassign-option, .sts-available-stylist-option):hover:not(:disabled) {
  border-color: #bd9cf3 !important;
  background: #fcfaff !important;
  box-shadow: 0 8px 20px rgba(153, 35, 250, .10) !important;
}

/* ---------- Search / report / CSO field consistency ---------- */
#stsApp :is(.sts-customer-search-bar, .sts-report-filter-panel, .sts-cso-search-panel) .sts-input {
  min-height: var(--sts-ui-field-h) !important;
  height: var(--sts-ui-field-h) !important;
}

#stsApp .sts-report-filter-panel,
#stsApp .sts-cso-search-panel {
  border-color: #e2e8f0 !important;
  background: #ffffff !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .055) !important;
}

#stsApp .sts-cso-search-actions button,
#stsApp .sts-cso-branch-actions button {
  border-radius: 13px !important;
}

/* Ensure long button and field text wraps cleanly instead of overflowing. */
#stsApp button:not(.sts-cal-empty-slot):not(.sts-cal-booking):not(.sts-calendar-date-btn) {
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 620px) {
  #stsApp {
    --sts-ui-field-h: 48px;
  }
  #stsApp .sts-modal {
    padding: 8px !important;
  }
  #stsApp .sts-modal-card {
    border-radius: 20px !important;
    padding: 16px !important;
  }
  #stsApp .sts-modal-card .sts-icon-btn,
  #stsApp #stsReportModal .sts-report-close-btn {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    flex-basis: 40px !important;
    border-radius: 12px !important;
  }
}


/* v3.9.82 - Custom logout icon */
.sts-topbar-controls .sts-logout-icon-btn {
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.sts-topbar-controls .sts-logout-icon-btn .sts-logout-icon {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

@media (max-width: 767px) {
  .sts-topbar-controls .sts-logout-icon-btn .sts-logout-icon {
    width: 30px;
    height: 30px;
  }
}


/* v3.9.83 - Modern login redesign */
#stsApp #stsOutletLogin.sts-login-card {
  min-height: min(820px, 92vh);
  padding: clamp(18px, 3vw, 34px);
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(153,35,250,.16), transparent 34%),
    radial-gradient(circle at bottom right, rgba(16,185,129,.14), transparent 30%),
    linear-gradient(135deg, #f6f0ff 0%, #f7fbff 42%, #f3fffa 100%);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}

#stsApp #stsOutletLogin .sts-login-inner {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(360px, 1.05fr);
  align-items: stretch;
  overflow: hidden;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(226,232,240,.9);
  border-radius: 34px;
  padding: 0;
  box-shadow: 0 26px 80px rgba(15, 23, 42, .14);
}

#stsApp #stsOutletLogin .sts-login-brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: clamp(28px, 4vw, 42px);
  background: linear-gradient(160deg, rgba(153,35,250,.95), rgba(99,102,241,.92));
  color: #fff;
}

#stsApp #stsOutletLogin .sts-login-brand-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,.20), transparent 28%), radial-gradient(circle at bottom left, rgba(255,255,255,.14), transparent 22%);
  pointer-events: none;
}

#stsApp #stsOutletLogin .sts-login-brand-badge {
  position: relative;
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#stsApp #stsOutletLogin .sts-login-logo {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 24px;
  object-fit: contain;
  background: rgba(255,255,255,.96);
  padding: 10px;
  box-shadow: 0 16px 36px rgba(12, 18, 36, .22);
}

#stsApp #stsOutletLogin .sts-login-brand-panel h3 {
  position: relative;
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.04;
  font-weight: 950;
}

#stsApp #stsOutletLogin .sts-login-brand-copy {
  position: relative;
  margin: 0;
  color: rgba(255,255,255,.92);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 600;
}

#stsApp #stsOutletLogin .sts-login-feature-list {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#stsApp #stsOutletLogin .sts-login-feature-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

#stsApp #stsOutletLogin .sts-login-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 4vw, 48px);
}

#stsApp #stsOutletLogin .sts-login-form-panel .sts-kicker {
  margin-bottom: 8px;
}

#stsApp #stsOutletLogin .sts-login-form-panel h2 {
  margin: 0 0 10px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: .98;
  font-weight: 950;
  color: #0f172a;
}

#stsApp #stsOutletLogin .sts-login-form-panel > p {
  margin: 0 0 24px;
  color: #64748b;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 650;
}

#stsApp #stsOutletLogin .sts-login-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0 0 18px;
}

#stsApp #stsOutletLogin .sts-login-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#stsApp #stsOutletLogin .sts-login-field > span {
  color: #0f172a;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: .02em;
  text-transform: uppercase;
}

#stsApp #stsOutletLogin .sts-login-field .sts-input {
  min-height: 62px;
  height: 62px;
  border-radius: 18px;
  border: 1px solid #dbe3ef;
  background: #f8fbff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 8px 18px rgba(15,23,42,.05);
  font-size: 18px;
  font-weight: 750;
  color: #0f172a;
  padding: 0 18px;
}

#stsApp #stsOutletLogin .sts-login-field .sts-input::placeholder {
  color: #94a3b8;
  font-weight: 700;
}

#stsApp #stsOutletLogin .sts-login-field .sts-input:focus {
  border-color: rgba(153,35,250,.45);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(153,35,250,.12), 0 10px 24px rgba(15,23,42,.08);
}

#stsApp #stsOutletLogin .sts-login-form-panel .sts-primary-btn {
  width: 100%;
  min-height: 62px;
  height: 62px;
  border-radius: 18px;
  font-size: 19px;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(16, 185, 129, .22);
}

#stsApp #stsOutletLogin .sts-login-help {
  margin-top: 16px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
  font-weight: 700;
}

@media (max-width: 980px) {
  #stsApp #stsOutletLogin .sts-login-inner {
    grid-template-columns: 1fr;
  }

  #stsApp #stsOutletLogin .sts-login-brand-panel,
  #stsApp #stsOutletLogin .sts-login-form-panel {
    padding: 26px;
  }
}

@media (max-width: 640px) {
  #stsApp #stsOutletLogin.sts-login-card {
    min-height: auto;
    padding: 10px;
    border-radius: 22px;
  }

  #stsApp #stsOutletLogin .sts-login-inner {
    border-radius: 24px;
  }

  #stsApp #stsOutletLogin .sts-login-brand-panel,
  #stsApp #stsOutletLogin .sts-login-form-panel {
    padding: 22px 18px;
  }

  #stsApp #stsOutletLogin .sts-login-logo {
    width: 78px;
    height: 78px;
    border-radius: 20px;
  }

  #stsApp #stsOutletLogin .sts-login-form-panel h2 {
    font-size: 38px;
  }

  #stsApp #stsOutletLogin .sts-login-form-panel > p,
  #stsApp #stsOutletLogin .sts-login-brand-copy {
    font-size: 15px;
  }

  #stsApp #stsOutletLogin .sts-login-field .sts-input,
  #stsApp #stsOutletLogin .sts-login-form-panel .sts-primary-btn {
    min-height: 56px;
    height: 56px;
    font-size: 17px;
  }
}


/* v3.9.84 - Multiple CSO booking attribution */
#stsApp .sts-booked-by-cso {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 10px 0 4px;
  padding: 9px 13px;
  border: 1px solid rgba(153, 35, 250, .22);
  border-radius: 999px;
  background: rgba(153, 35, 250, .08);
  color: #6d28d9;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: .01em;
}

#stsApp .sts-booked-by-cso::before {
  content: "CSO";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 22px;
  margin-right: 8px;
  padding: 0 7px;
  border-radius: 999px;
  background: #9923FA;
  color: #fff;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .05em;
}


/* v3.9.85 - Login page scaled down approximately 30% */
#stsApp #stsOutletLogin.sts-login-card {
  min-height: min(700px, 82vh) !important;
  padding: clamp(14px, 2.2vw, 24px) !important;
}

#stsApp #stsOutletLogin .sts-login-inner {
  width: min(820px, 100%) !important;
  grid-template-columns: minmax(250px, 0.85fr) minmax(320px, 1fr) !important;
  border-radius: 28px !important;
}

#stsApp #stsOutletLogin .sts-login-brand-panel {
  gap: 14px !important;
  padding: clamp(22px, 3vw, 30px) !important;
}

#stsApp #stsOutletLogin .sts-login-brand-badge {
  min-height: 30px !important;
  padding: 0 12px !important;
  font-size: 12px !important;
}

#stsApp #stsOutletLogin .sts-login-logo {
  width: 72px !important;
  height: 72px !important;
  border-radius: 18px !important;
  padding: 8px !important;
}

#stsApp #stsOutletLogin .sts-login-brand-panel h3 {
  font-size: clamp(24px, 2.2vw, 30px) !important;
}

#stsApp #stsOutletLogin .sts-login-brand-copy {
  font-size: 15px !important;
  line-height: 1.5 !important;
}

#stsApp #stsOutletLogin .sts-login-feature-list {
  gap: 8px !important;
}

#stsApp #stsOutletLogin .sts-login-feature-chip {
  min-height: 32px !important;
  padding: 0 12px !important;
  font-size: 12px !important;
}

#stsApp #stsOutletLogin .sts-login-form-panel {
  padding: clamp(24px, 3vw, 34px) !important;
}

#stsApp #stsOutletLogin .sts-login-form-panel h2 {
  font-size: clamp(28px, 3vw, 40px) !important;
  margin-bottom: 8px !important;
}

#stsApp #stsOutletLogin .sts-login-form-panel > p {
  margin-bottom: 18px !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
}

#stsApp #stsOutletLogin .sts-login-grid {
  gap: 12px !important;
  margin-bottom: 14px !important;
}

#stsApp #stsOutletLogin .sts-login-field > span {
  font-size: 12px !important;
}

#stsApp #stsOutletLogin .sts-login-field .sts-input {
  min-height: 52px !important;
  height: 52px !important;
  border-radius: 15px !important;
  font-size: 16px !important;
  padding: 0 16px !important;
}

#stsApp #stsOutletLogin .sts-login-form-panel .sts-primary-btn {
  min-height: 54px !important;
  height: 54px !important;
  border-radius: 16px !important;
  font-size: 17px !important;
}

#stsApp #stsOutletLogin .sts-login-help {
  margin-top: 12px !important;
  font-size: 13px !important;
}

@media (max-width: 980px) {
  #stsApp #stsOutletLogin.sts-login-card {
    min-height: auto !important;
  }
}


/* v3.9.86 - Login height reduced by ~20% */
#stsApp #stsOutletLogin.sts-login-card {
  min-height: min(560px, 66vh) !important;
  padding: clamp(10px, 1.8vw, 18px) !important;
}

#stsApp #stsOutletLogin .sts-login-inner {
  max-height: 560px !important;
}

#stsApp #stsOutletLogin .sts-login-brand-panel,
#stsApp #stsOutletLogin .sts-login-form-panel {
  padding-top: clamp(18px, 2.2vw, 24px) !important;
  padding-bottom: clamp(18px, 2.2vw, 24px) !important;
}

#stsApp #stsOutletLogin .sts-login-brand-panel {
  gap: 10px !important;
}

#stsApp #stsOutletLogin .sts-login-form-panel > p {
  margin-bottom: 14px !important;
}

#stsApp #stsOutletLogin .sts-login-grid {
  gap: 10px !important;
  margin-bottom: 12px !important;
}

#stsApp #stsOutletLogin .sts-login-help {
  margin-top: 10px !important;
}

@media (max-width: 980px) {
  #stsApp #stsOutletLogin.sts-login-card {
    min-height: auto !important;
  }

  #stsApp #stsOutletLogin .sts-login-inner {
    max-height: none !important;
  }
}


/* v3.9.88 - Separate Consultant / Assistant entitled amount fields */
.sts-quick-appt-grid-v77 .sts-support-staff-block {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  min-width: 0 !important;
}

.sts-quick-appt-grid-v77 .sts-consultant-block {
  order: 12 !important;
  grid-column: 1 / 2 !important;
}

.sts-quick-appt-grid-v77 .sts-assistant-block {
  order: 13 !important;
  grid-column: 2 / 3 !important;
}

.sts-quick-appt-grid-v77 .sts-support-staff-block > .sts-support-staff-select {
  width: 100% !important;
  min-height: 58px !important;
  height: 58px !important;
}

.sts-quick-appt-grid-v77 .sts-support-amount-wrap {
  position: relative !important;
  width: 100% !important;
  min-width: 0 !important;
}

.sts-quick-appt-grid-v77 .sts-support-amount-input {
  width: 100% !important;
  min-height: 56px !important;
  height: 56px !important;
  padding-left: 42px !important;
  border-radius: 14px !important;
}

.sts-quick-appt-grid-v77 .sts-support-amount-wrap .sts-money-prefix {
  position: absolute !important;
  left: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 2 !important;
  color: #475467 !important;
  font-weight: 900 !important;
  pointer-events: none !important;
}

.sts-quick-appt-grid-v77 .sts-support-amount-input:disabled {
  background: #f4f7fb !important;
  color: #98a2b3 !important;
  cursor: not-allowed !important;
}

.sts-quick-appt-grid-v77 #stsQuickApptRemark {
  order: 14 !important;
  grid-column: 1 / -1 !important;
}

@media (max-width: 480px) {
  .sts-quick-appt-grid-v77 .sts-consultant-block,
  .sts-quick-appt-grid-v77 .sts-assistant-block {
    grid-column: 1 / -1 !important;
  }
}

/* Keep each support dropdown above its own entitled amount field. */
.sts-quick-appt-grid-v77 .sts-support-staff-block > .sts-support-staff-select {
  order: 1 !important;
  grid-column: 1 !important;
}
.sts-quick-appt-grid-v77 .sts-support-staff-block > .sts-support-amount-wrap {
  order: 2 !important;
  grid-column: 1 !important;
}


/* v3.9.89 - Place Consultant and Assistant amount fields directly below their selectors */
.sts-quick-appt-grid-v77 .sts-support-staff-block {
  display: flex !important;
  flex-direction: column !important;
  align-self: start !important;
  gap: 12px !important;
  width: 100% !important;
  min-width: 0 !important;
  overflow: visible !important;
}

.sts-quick-appt-grid-v77 .sts-consultant-block {
  order: 12 !important;
  grid-column: 1 / 2 !important;
}

.sts-quick-appt-grid-v77 .sts-assistant-block {
  order: 13 !important;
  grid-column: 2 / 3 !important;
}

.sts-quick-appt-grid-v77 .sts-support-staff-block > .sts-support-staff-select,
.sts-quick-appt-grid-v77 .sts-support-staff-block > .sts-support-amount-wrap {
  width: 100% !important;
  margin: 0 !important;
}

.sts-quick-appt-grid-v77 .sts-support-staff-block > .sts-support-staff-select {
  order: 1 !important;
  min-height: 64px !important;
  height: 64px !important;
}

.sts-quick-appt-grid-v77 .sts-support-amount-wrap {
  order: 2 !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  min-height: 64px !important;
  height: 64px !important;
  border-radius: 18px !important;
  overflow: hidden !important;
}

.sts-quick-appt-grid-v77 .sts-support-amount-input {
  width: 100% !important;
  min-height: 64px !important;
  height: 64px !important;
  padding: 0 18px 0 42px !important;
  line-height: 64px !important;
  border-radius: 18px !important;
}

.sts-quick-appt-grid-v77 .sts-support-amount-wrap .sts-money-prefix {
  left: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

.sts-quick-appt-grid-v77 #stsQuickApptRemark {
  order: 14 !important;
  grid-column: 1 / -1 !important;
  margin-top: 2px !important;
}

@media (max-width: 640px) {
  .sts-quick-appt-grid-v77 .sts-consultant-block,
  .sts-quick-appt-grid-v77 .sts-assistant-block,
  .sts-quick-appt-grid-v77 #stsQuickApptRemark {
    grid-column: 1 / -1 !important;
  }
}


/* v3.10.0 - Oly imported appointment source badge */
#stsApp .sts-source-booking-info {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 8px 0 4px;
  padding: 9px 13px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  color: #344054;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 850;
}
#stsApp .sts-source-booking-info::before {
  content: "SYNC";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 22px;
  margin-right: 8px;
  padding: 0 7px;
  border-radius: 999px;
  background: #334155;
  color: #fff;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .04em;
}


/* v3.10.4 - Contact / Member ID customer autofill */
.sts-quick-appt-grid-v77 .sts-member-autofill-wrap {
  order: 4 !important;
  position: relative !important;
  min-width: 0 !important;
  width: 100% !important;
}

.sts-quick-appt-grid-v77 .sts-member-autofill-wrap #stsQuickApptMemberId {
  width: 100% !important;
  min-width: 0 !important;
  background: #ffffff !important;
}

.sts-customer-autofill-anchor {
  overflow: visible !important;
}

.sts-customer-autofill-results {
  position: absolute !important;
  top: calc(100% + 6px) !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 80 !important;
  max-height: 270px !important;
  overflow-y: auto !important;
  padding: 6px !important;
  border: 1px solid #d7e2f2 !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .16) !important;
}

.sts-customer-autofill-results.sts-hidden {
  display: none !important;
}

.sts-customer-autofill-option {
  display: grid !important;
  width: 100% !important;
  gap: 3px !important;
  padding: 10px 12px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  text-align: left !important;
  cursor: pointer !important;
}

.sts-customer-autofill-option:hover,
.sts-customer-autofill-option:focus {
  background: #f5f3ff !important;
  outline: none !important;
}

.sts-customer-autofill-option strong {
  color: #101828 !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}

.sts-customer-autofill-option span {
  color: #475467 !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

.sts-customer-autofill-option small {
  color: #667085 !important;
  font-size: 11px !important;
}

#stsApp .sts-customer-autofill-hit {
  animation: stsCustomerAutofillHit .75s ease-out 1;
}

@keyframes stsCustomerAutofillHit {
  0% {
    box-shadow: 0 0 0 0 rgba(153, 35, 250, .28);
  }
  45% {
    box-shadow: 0 0 0 4px rgba(153, 35, 250, .16);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(153, 35, 250, 0);
  }
}

@media (max-width: 480px) {
  .sts-customer-autofill-results {
    max-height: 220px !important;
  }
}


/* v3.10.5 - Customer autofill on Main Walk-ins, CSO bookings and Scheduled Walk-in editor */
.sts-add-grid-main-walkin .sts-main-customer-autofill-wrap {
  position: relative !important;
  min-width: 0 !important;
  width: 100% !important;
  overflow: visible !important;
}

.sts-add-grid-main-walkin .sts-main-contact-autofill-wrap {
  grid-column: 2 !important;
  grid-row: 1 !important;
}

.sts-add-grid-main-walkin .sts-main-member-autofill-wrap {
  grid-column: 2 !important;
  grid-row: 3 !important;
}

.sts-add-grid-main-walkin .sts-main-customer-autofill-wrap > .sts-input {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 54px !important;
  box-sizing: border-box !important;
}

.sts-cso-field.sts-customer-autofill-anchor,
.sts-walkin-schedule-field.sts-customer-autofill-anchor {
  position: relative !important;
  overflow: visible !important;
}

#stsCsoBookingModal .sts-customer-autofill-results,
#stsWalkinScheduleModal .sts-customer-autofill-results {
  z-index: 140 !important;
}

#stsCsoBookingModal .sts-cso-booking-grid,
#stsWalkinScheduleModal .sts-walkin-schedule-customer {
  overflow: visible !important;
}

@media (max-width: 560px) {
  .sts-add-grid-main-walkin .sts-main-customer-autofill-wrap > .sts-input {
    min-height: 54px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    font-size: 15px !important;
  }
}
