/* Labs: the reorganised layout (only while the owner has it switched on). Layout only; colours, type and controls are app.css's. */

/* Settings: index on the left, one section at a time */
.set-layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 28px; align-items: start; }
.set-index { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 4px; }
.set-index a { display: block; padding: 10px 14px; border-radius: 12px; text-decoration: none; color: var(--text); border: 1px solid transparent; }
.set-index a b { display: block; font-size: .92rem; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.set-index a small { display: block; font-size: .74rem; color: var(--muted); margin-top: 2px; line-height: 1.3; }
.set-index a:hover { background: var(--sunken); }
.set-index a.on { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); }
.set-main > form.card > .form-section[hidden], .set-main > [data-sec][hidden] { display: none; }
.set-main .form-section[data-synth] h2 { margin-top: 0; }
@media (max-width: 860px) {
  .set-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .set-index { position: static; flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
  .set-index a { flex: 0 0 auto; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); }
  .set-index a.on { background: var(--ink); border-color: var(--ink); }
  .set-index a.on b { color: var(--paper); }
  .set-index a small { display: none; }
}

/* Shoot page: one column in a fixed order */
.shoot-flow { width: 100%; }
.shoot-flow > .card { margin-bottom: 18px; }
.flow-label { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 26px 0 10px 2px; }
.flow-label:first-child { margin-top: 0; }
.shoot-flow > .inline { margin: 0 0 18px; }
details.fold-card > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; }
details.fold-card > summary::-webkit-details-marker { display: none; }
details.fold-card > summary b { display: block; font-size: 1.02rem; letter-spacing: -.01em; color: var(--ink); }
details.fold-card > summary small { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; }
details.fold-card > summary::after { content: "+"; color: var(--muted); font-size: 1.3rem; font-weight: 400; flex: 0 0 auto; }
details.fold-card[open] > summary { border-bottom: 1px solid var(--line); }
details.fold-card[open] > summary::after { content: "–"; }
.fold-card-body { padding: 18px 22px 8px; }
.fold-card-body > .card { margin-bottom: 18px; }
.fold-card-body > .inline { padding: 0 0 12px; }
@media (max-width: 700px) { .fold-card-body { padding: 14px 14px 4px; } }

/* Clients: the brokerage groups open, stats aligned */
#client-groups .group-fold > summary { flex-wrap: wrap; }

/* Booking: 14 day squares, then time chips */
.next-days .qd { width: 62px; } .next-days .qd em { font-style: normal; font-size: .62rem; color: var(--muted); margin-top: 1px; } .next-days .qd.on em { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.time-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 2px 0 6px; }
.chip-t { appearance: none; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 600 .86rem/1 var(--sans); padding: 10px 13px; border-radius: 999px; cursor: pointer; }
.chip-t:hover { border-color: var(--accent); } .chip-t.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip-label { font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 0 2px 0 4px; }
.window .w-when { grid-column: 1 / -1; position: relative; }
.window { grid-template-columns: minmax(0, 1fr) 40px; }
.window .w-day { grid-column: 1; } .window .x { grid-column: 2; grid-row: 1; }
.time-chips-field { position: relative; }
.chip-hidden { position: absolute !important; opacity: 0; width: 1px; height: 1px; min-height: 0 !important; padding: 0 !important; margin: 0 !important; overflow: hidden; pointer-events: none; }
