/* Staff dashboard: the same marble, ink and oak as the rest of the site, built for daily use. */

.staff-gate { max-width: 640px; }
.staff-gate .title { margin: 18px 0 14px; }
.staff-gate .auth-panel { margin-top: 18px; }
.staff-gate .done-actions { margin-top: 26px; }

.staff-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; padding-bottom: 26px; }
.staff-head .title { margin-top: 16px; font-size: clamp(40px, 4.4vw, 64px); word-break: break-word; }
.staff-head-links { display: flex; align-items: center; gap: 22px; }

/* Sections: a row of underlined links, sliding sideways on phones */
.staff-tabs {
  display: flex; gap: 28px; border-bottom: 1px solid var(--vein); overflow-x: auto; scrollbar-width: none;
  margin-bottom: clamp(30px, 5vh, 48px);
}
.staff-tabs::-webkit-scrollbar { display: none; }
.staff-tabs a {
  flex: none; padding: 14px 0 13px; border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none; white-space: nowrap;
  font: 500 11.5px/1.2 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone);
  transition: color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.staff-tabs a:hover { color: var(--ink); }
.staff-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

.staff-view { min-height: 320px; }
.view-head { display: grid; gap: 10px; margin-bottom: 28px; justify-items: start; }
.view-head.row { margin-bottom: 20px; }
.view-head .btn { margin-top: 8px; }
.view-body { color: var(--stone); max-width: 60ch; }
.back-link { display: inline-block; margin-bottom: 22px; text-decoration: none; }

/* Days in one sliding row (the schedule and closed days) */
.days.strip {
  display: flex; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding-bottom: 4px; gap: 8px;
}
.days.strip::-webkit-scrollbar { display: none; }
.days.strip .day { flex: 0 0 70px; scroll-snap-align: start; }

/* Chips: small toggles in a row */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 40px; padding: 0 16px; border: 1px solid var(--vein-strong); border-radius: 999px; background: transparent; cursor: pointer;
  font: 500 13px/1 var(--body); color: var(--ink); white-space: nowrap;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.chip:hover:not(:disabled) { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--panel); }
.chip.closed:not([aria-pressed="true"]) { color: var(--vein-strong); }
.chip:disabled { opacity: 0.4; cursor: not-allowed; }

.staff-filters { margin-top: 18px; }
.staff-filters .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.staff-filters .chips::-webkit-scrollbar { display: none; }
.day-head .day-title { margin-top: 26px; }
.day-tools { margin: 16px 0 22px; }
.day-tools:empty { margin: 0 0 22px; }

/* A visit in the schedule */
.staff-list { max-width: 820px; }
.staff-visit.dim { opacity: 0.62; }
.sv-top { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 18px; padding: 20px; align-items: start; }
.sv-time { display: grid; gap: 4px; font-variant-numeric: tabular-nums; }
.sv-time strong { font: 500 17px/1.2 var(--body); color: var(--oak); }
.sv-time span { font-size: 13px; color: var(--stone); }
.sv-main { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.sv-name { margin: 0; font: 400 26px/1.1 var(--display); color: var(--ink); word-break: break-word; }
.sv-meta { font-size: 14.5px; color: var(--stone); }
.sv-barber { font-size: 14px; color: var(--oak); }
.sv-main .pill { margin-top: 6px; }
.sv-call { align-self: center; }
.sv-problem { margin: 0 20px 16px; }

.block-card {
  display: grid; gap: 6px; justify-items: start; padding: 18px 20px; border: 1px dashed var(--vein-strong); background: transparent;
}
.block-when { font: 500 16px/1.4 var(--body); color: var(--ink); font-variant-numeric: tabular-nums; }
.block-card .notice { margin: 4px 0 0; }

/* Block time */
.block-form { display: grid; gap: 20px; padding: clamp(22px, 3vw, 36px); background: var(--panel); border: 1px solid var(--vein); max-width: 820px; }
.block-form .auth-body { margin-top: -10px; }
.block-day { font: 400 23px/1.2 var(--display); color: var(--ink); }
.block-form .segmented { justify-self: start; }
.block-times { display: grid; gap: 22px; }
.block-times:empty { display: none; }
.block-group .slot-label { margin-bottom: 10px; }

/* Lists of rows (team, services) */
.row-list { display: grid; border-top: 1px solid var(--ink); max-width: 860px; }
.row-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border-bottom: 1px solid var(--vein); }
.row-item > .row-link { border-bottom: 0; }
.row-link {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px 0; text-decoration: none; color: inherit;
  border-bottom: 1px solid var(--vein); transition: padding 0.4s var(--ease-out), background-color 0.4s var(--ease-out);
}
.row-item .row-link { grid-template-columns: minmax(0, 1fr) auto; }
.row-link:hover { padding-left: 14px; padding-right: 14px; background: var(--panel); }
.row-main { display: grid; gap: 3px; min-width: 0; }
.row-name { font: 400 26px/1.15 var(--display); color: var(--ink); }
.row-meta { font-size: 14px; color: var(--stone); word-break: break-all; }
.row-arrow { color: var(--stone); }
.row-order { display: flex; gap: 6px; padding-left: 14px; }
.arrow-button, .step-button {
  width: 40px; height: 40px; border: 1px solid var(--vein-strong); border-radius: 50%; background: transparent; cursor: pointer;
  font: 400 17px/1 var(--body); color: var(--ink); display: grid; place-items: center;
}
.arrow-button:hover:not(:disabled), .step-button:hover:not(:disabled) { border-color: var(--ink); }
.arrow-button:disabled, .step-button:disabled { opacity: 0.3; cursor: not-allowed; }
.faded { opacity: 0.55; }
.avatar.faded { opacity: 0.45; }
.row-link .avatar { width: 56px; height: 56px; }
.pills.tight { margin-top: 6px; gap: 6px; }

/* Forms */
.staff-form { display: flex; flex-direction: column; gap: 22px; max-width: 760px; }
.staff-form > .section-title { margin-bottom: -6px; }
.staff-block { display: grid; gap: 12px; padding-top: 20px; border-top: 1px solid var(--vein); justify-items: start; }
.staff-block > * { max-width: 100%; }
.staff-block > .field, .staff-block > .check-list, .staff-block > div { justify-self: stretch; }
.staff-block > .segmented, .staff-block > .chips { justify-self: start; }
.staff-label { font: 500 11px/1.4 var(--body); letter-spacing: 0.2em; text-transform: uppercase; color: var(--oak); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.message-slot:empty { display: none; }
.message-slot .notice { margin: 0; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }

.field textarea {
  width: 100%; min-height: 110px; padding: 14px 16px; border: 1px solid var(--vein-strong); border-radius: 2px; resize: vertical;
  background: var(--field); color: var(--ink); font: 400 16px/1.55 var(--body);
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field.invalid textarea { border-color: var(--danger); }

.check-list { display: grid; gap: 14px; }
.check label { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.check-detail { font-size: 13px; color: var(--stone); }

.stepper { display: inline-flex; align-items: center; gap: 14px; }
.stepper-value { min-width: 96px; text-align: center; font: 500 16px/1 var(--body); color: var(--ink); font-variant-numeric: tabular-nums; }

/* Hours and rules */
.settings-stack { display: flex; flex-direction: column; gap: 34px; max-width: 860px; }
.hours-list { display: grid; gap: 10px; }
.hours-day { display: grid; gap: 14px; padding: 16px 18px; background: var(--panel); border: 1px solid var(--vein); }
.hours-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.hours-top strong { font: 400 23px/1.2 var(--display); font-weight: 400; color: var(--ink); }
.hours-times { display: flex; flex-wrap: wrap; gap: 14px 32px; }
.time-stepper { display: grid; gap: 8px; }
.time-stepper .slot-label { margin: 0; }
.closure-list { display: grid; gap: 10px; }
.rules-list { display: grid; gap: 22px; }
.rule { display: grid; gap: 10px; }
.rule strong { font-weight: 600; color: var(--ink); }

/* Messages */
.messages-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.messages-grid .settings-stack { max-width: none; }
.strong-line { font-weight: 600; color: var(--ink); }
.kind-list { display: grid; gap: 12px; }
.kind-card { display: grid; gap: 12px; justify-items: start; padding: 18px 20px; background: var(--panel); border: 1px solid var(--vein); }
.kind-card > * { max-width: 100%; }
.kind-card .message-slot { justify-self: stretch; }
.kind-head { display: grid; gap: 3px; }
.kind-head strong { font: 400 23px/1.2 var(--display); color: var(--ink); font-weight: 400; }
.kind-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.small-note.warn { color: var(--oak); }
.recent-list { display: grid; }
.recent-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--vein); }
.recent-row > div { display: grid; gap: 2px; min-width: 0; }
.recent-row strong { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-row .small-note { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-row .error-text { color: var(--danger); white-space: normal; }
.recent-row .pill { flex: none; }
.pill.oak { border-color: var(--oak-line); color: var(--oak); }
.words-hint { display: grid; gap: 6px; }
.words { font-size: 13.5px; line-height: 1.8; color: var(--oak); word-spacing: 0.2em; }
.send-box { display: grid; gap: 10px; justify-items: start; }

/* The barber's profile */
.photo-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.profile-photo { width: 132px; height: 165px; overflow: hidden; background: var(--stone-wash); display: grid; place-items: center; border: 1px solid var(--vein); }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.profile-photo .avatar-initials { font-size: 40px; }
.photo-actions { display: grid; gap: 12px; justify-items: start; }
.photo-actions label.btn { cursor: pointer; }

/* Walk-ins */
.walkin-search { display: grid; gap: 8px; }
.walkin-find-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.walkin-find-row .btn { min-height: 52px; }
.walkin-result:empty { display: none; }
.walkin-result .notice { margin: 0; }
.walkin-found { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; color: var(--ink); }
.walkin-form .chips { gap: 8px; }
.visit-confirm .walkin-search .field { margin-top: 2px; }

/* QR codes: print-ready cards, four to a letter page */
.qr-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.qr-item { display: grid; gap: 10px; min-width: 0; }
.qr-card {
  display: grid; justify-items: center; text-align: center; gap: 10px; padding: 28px 24px 22px; background: #fff;
  border: 1px solid var(--vein); border-radius: 18px; aspect-ratio: 4.25 / 5.5;
  align-content: start;
}
.qr-card::before { content: ''; }
.qr-main { display: block; }
.qr-other { display: block; margin-top: 2px; font-size: 0.72em; color: var(--stone); }
.qr-kicker { font: 600 10.5px/1.4 var(--body); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-deep); }
.qr-heading { font: 400 30px/1.05 var(--display); color: var(--ink); }
.qr-heading .qr-other { font-size: 18px; margin-top: 4px; }
.qr-code { width: 62%; max-width: 230px; padding: 6px; border: 1px solid var(--vein); border-radius: 10px; background: #fff; }
.qr-svg { display: block; width: 100%; height: auto; }
.qr-lines { font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.qr-foot { font-size: 12.5px; line-height: 1.45; color: var(--gold-deep); font-weight: 600; }
.qr-foot .qr-other { font-weight: 500; }
.qr-brand { margin-top: auto; display: grid; gap: 2px; }
.qr-brand span:first-child { font: 400 17px/1 var(--display); letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink); }
.qr-brand span:last-child { font: 500 8.5px/1 var(--body); letter-spacing: 0.4em; text-transform: uppercase; color: var(--stone); }
.qr-photo { width: 58px; height: 58px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--stone-wash); }
.qr-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.qr-photo .avatar-initials { font-size: 22px; }
.qr-card.join { border-color: rgba(176, 138, 79, 0.55); box-shadow: inset 0 0 0 6px #fff, inset 0 0 0 7px rgba(176, 138, 79, 0.35); }
.qr-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-width: 0; }
.qr-url { flex: 1; min-width: 0; font-size: 11.5px; color: var(--stone); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qr-download { flex: none; }

@media print {
  @page { size: letter; margin: 0.35in; }
  body { background: #fff !important; }
  body * { visibility: hidden; }
  .qr-sheet, .qr-sheet * { visibility: visible; }
  .qr-sheet { position: absolute; left: 0; top: 0; width: 100%; grid-template-columns: repeat(2, 1fr); gap: 0.3in; }
  .qr-tools { display: none; }
  .qr-item { break-inside: avoid; }
  .qr-card { border-color: #ccc; box-shadow: none; }
  .qr-card.join { box-shadow: inset 0 0 0 6px #fff, inset 0 0 0 7px rgba(176, 138, 79, 0.5); }
  .tour-layer { display: none; }
}

@media (max-width: 1000px) {
  .messages-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .staff-head { padding-bottom: 18px; }
  .staff-tabs { gap: 22px; margin: 0 calc(-1 * var(--gutter)) 28px; padding: 0 var(--gutter); scroll-padding-inline: var(--gutter); }
  .days.strip { margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scroll-padding-inline: var(--gutter); }
  .days.strip .day { flex-basis: 62px; }
  .staff-filters .chips { margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 2px; }
  .sv-top { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .sv-call { grid-column: 1 / -1; justify-self: stretch; }
  .sv-name { font-size: 23px; }
  .sv-problem { margin: 0 16px 14px; }
  .block-form { padding: 20px 16px; margin: 0 calc(-1 * var(--gutter) + 4px); }
  .row-link { gap: 14px; padding: 16px 0; }
  .row-name { font-size: 23px; }
  .row-link .avatar { width: 48px; height: 48px; }
  .row-order { padding-left: 8px; }
  .arrow-button { width: 36px; height: 36px; }
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .hours-day { padding: 14px; }
  .hours-times { gap: 14px 20px; }
  .kind-card { padding: 16px; }
  .form-actions .btn { flex: 1 1 100%; }
}

/* A barber's services and prices: tick + name on the left, their price on the right. */
.menu-editor { display: grid; gap: 4px; }
.menu-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 118px; gap: 14px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--vein);
}
.menu-check { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 14px; align-items: center; cursor: pointer; }
.menu-check .check-input { grid-row: span 2; }
.menu-name { color: var(--ink); font-size: 15px; }
.menu-check .check-detail { grid-column: 2; }
.menu-price { position: relative; display: block; }
.menu-currency { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--stone); font-size: 15px; pointer-events: none; }
.menu-price-input {
  width: 100%; height: 44px; padding: 0 12px 0 26px; border: 1px solid var(--vein-strong); border-radius: 0;
  background: #fff; color: var(--ink); font: 500 16px/1 var(--body); font-variant-numeric: tabular-nums;
}
.menu-price-input:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.menu-price-input::placeholder { color: var(--vein-strong); }
.menu-row.off .menu-name, .menu-row.off .check-detail { opacity: 0.5; }
.menu-row.off .menu-price { opacity: 0.35; }
.menu-row.bad .menu-price-input { border-color: #a1342b; outline: 2px solid #a1342b; outline-offset: 1px; }
.menu-editor .small-note { margin-top: 8px; }
.prices-form { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--vein); }
@media (max-width: 520px) {
  .menu-row { grid-template-columns: minmax(0, 1fr) 96px; gap: 10px; }
}

/* Orders: merch reservations at the counter */
.orders-tools { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: end; margin-bottom: 18px; }
.orders-tools .field { width: min(240px, 100%); margin: 0; }
.orders-staff { display: grid; gap: 12px; }
.order-card.staff { gap: 8px; }
.order-who { font-size: 14.5px; color: var(--ink-soft); }
.order-card.staff .order-date { font-size: 13px; color: var(--stone); }
.order-card.staff .order-actions { margin-top: 4px; }
.stock-list { margin-top: 4px; }

.invite-pending { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; font-size: 14.5px; color: var(--ink-soft); }
.staff-form > .segmented { align-self: flex-start; }

/* Add appointment: day and time side by side */
.booking-when { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 420px; }
.booking-guest { display: grid; gap: 4px; }
.booking-guest[hidden] { display: none; }
