/* ═════════════ Admin → Studio (bookings, team, money) ═════════════ */
#tab-studio { padding-bottom: 60px; }
.a-tabs { overflow-x: auto; scrollbar-width: none; }
.a-tabs button { flex: none; }
.s-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.s-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.s-nav button { padding: 9px 16px; border: 1px solid var(--line); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.s-nav button.on { border-color: var(--gold); color: var(--gold); }
.s-month { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.s-month b { font: 300 30px/1 var(--serif); min-width: 9ch; text-align: center; }
.s-month button { width: 40px; height: 40px; border: 1px solid var(--line); font-size: 22px; color: var(--text); }
.s-month .s-link { width: auto; height: auto; border: 0; font-size: 13px; }
.s-link { color: var(--gold); font-size: 13px; letter-spacing: .06em; text-align: left; padding: 6px 0; }
.s-link.danger, .danger.s-link { color: #e3a07a; }
.s-note { color: var(--muted); font-size: 13px; line-height: 1.5; }
.s-empty { color: var(--muted); font-size: 14px; padding: 10px 0; }
.warn { color: #e3a07a !important; }
.good { color: #8fd19e !important; }

.s-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 22px; }
.s-card { padding: 20px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 6px; }
.s-card small { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.s-card b { font: 300 32px/1.1 var(--serif); }
.s-card span { font-size: 12px; color: var(--muted); }
.s-card.pos b { color: var(--gold); }
.s-card.neg b { color: #e3a07a; }
.s-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 860px) { .s-two { grid-template-columns: 1fr; } }
.s-box { padding: 20px; border: 1px solid var(--line); background: var(--surface); margin-bottom: 14px; }
.s-box h3 { font: 300 24px/1.2 var(--serif); margin-bottom: 10px; }
.s-row { display: grid; grid-template-columns: 70px 1fr auto auto; gap: 12px; align-items: center; width: 100%; padding: 12px 0; border-top: 1px solid var(--line); text-align: left; color: var(--text); }
.s-row:first-of-type { border-top: 0; }
button.s-row:hover b { color: var(--gold); }
.s-row b { font-weight: 400; display: block; }
.s-row small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.s-date { font-size: 13px; color: var(--gold); letter-spacing: .04em; }
.s-date small { color: var(--muted); }
.s-amt { font-size: 15px; white-space: nowrap; }
.s-x { width: 34px; height: 34px; color: var(--muted); font-size: 15px; flex: none; }
.s-click { cursor: pointer; }
.s-click:hover b, .s-click:focus-visible b { color: var(--gold); }
.s-pen { font-style: normal; color: var(--muted); font-size: 13px; }
.s-x:hover { color: #e3a07a; }
.s-x.big { font-size: 22px; }
.s-tag { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; padding: 4px 8px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.s-booked { border-color: var(--gold); color: var(--gold); }
.s-inquiry { border-style: dashed; }
.s-shot, .s-editing { border-color: #8fb3d1; color: #8fb3d1; }
.s-delivered { border-color: #8fd19e; color: #8fd19e; }
.s-cancelled { opacity: .6; text-decoration: line-through; }
.s-late { border-color: #e3a07a; color: #e3a07a; }

.s-chart { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; }
.s-bar { display: grid; justify-items: center; gap: 4px; padding: 6px 0; border: 1px solid transparent; }
.s-bar.on { border-color: var(--line); background: #0e0d0c; }
.s-bars { height: 120px; display: flex; align-items: flex-end; gap: 3px; }
.s-bars i { width: 9px; min-height: 1px; display: block; }
.s-bars .in, .dot.in { background: var(--gold); }
.s-bars .out, .dot.out { background: #6d655b; }
.s-bar small { font-size: 11px; color: var(--muted); }
.s-bar em { font-style: normal; font-size: 11px; color: var(--gold); min-height: 14px; }
.s-bar em.neg { color: #e3a07a; }
.dot { display: inline-block; width: 9px; height: 9px; margin: 0 4px 0 8px; }
.s-export { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; color: var(--muted); font-size: 14px; }
@media (max-width: 560px) { .s-bars { height: 80px; } .s-bars i { width: 5px; } .s-bar em { font-size: 9px; } .s-row { grid-template-columns: 58px 1fr auto; } .s-row .s-x { grid-column: 3; } }

.s-filters { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.s-filters select { background: var(--surface); color: var(--text); border: 1px solid var(--line); padding: 8px 10px; font: 300 15px var(--sans); }
.s-list { display: grid; gap: 12px; }
.s-bk, .s-crew { display: grid; gap: 6px; width: 100%; padding: 18px; border: 1px solid var(--line); background: var(--surface); text-align: left; color: var(--text); }
.s-bk:hover { border-color: var(--gold); }
.s-crew.off { opacity: .6; }
.s-bk small, .s-crew small { color: var(--muted); font-size: 13px; }
.s-bk-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.s-bk-head b { font: 300 26px/1.15 var(--serif); }
.s-bk-money { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; color: var(--muted); margin-top: 4px; }
.s-bk-money b { color: var(--text); font-weight: 400; margin-left: 4px; }
.s-bk-money .warn b { color: #e3a07a; }
.s-head-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }

.s-cal { display: grid; grid-template-columns: repeat(7, 1fr); border-left: 1px solid var(--line); border-top: 1px solid var(--line); margin-bottom: 18px; }
.s-dow { padding: 8px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.s-day { min-height: 96px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.s-day.out { opacity: .35; }
.s-day.today .s-dn { background: var(--gold); color: #0e0d0c; }
.s-dn { font-size: 12px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); }
.s-chip { font-size: 11px; padding: 3px 5px; background: #2a2520; border-left: 3px solid var(--gold); color: var(--text); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-chip.t-mehndi { border-color: #c6a23a; } .s-chip.t-nikkah { border-color: #e9e1d2; } .s-chip.t-barat { border-color: #c0443d; } .s-chip.t-valima { border-color: #8fb3d1; }
@media (max-width: 700px) {
  .s-day { min-height: 54px; padding: 3px; }
  .s-chip { font-size: 0; padding: 0; height: 6px; border-left-width: 0; background: var(--gold); }
  .s-chip.t-mehndi { background: #c6a23a; } .s-chip.t-nikkah { background: #e9e1d2; } .s-chip.t-barat { background: #c0443d; } .s-chip.t-valima { background: #8fb3d1; }
  .s-dow { padding: 6px 2px; font-size: 9px; letter-spacing: .05em; text-align: center; }
}

.s-add { display: grid; grid-template-columns: 150px 1fr 140px 1fr auto; gap: 14px; align-items: end; margin-bottom: 18px; }
@media (max-width: 860px) { .s-add { grid-template-columns: 1fr 1fr; } .s-add .btn { grid-column: 1 / -1; justify-content: center; } }

/* Booking editor (full-height dialog) */
.s-dlg { margin: auto; background: var(--surface); color: var(--text); border: 1px solid var(--line); padding: 0; width: min(100vw, 980px); max-width: 100vw; max-height: 100dvh; height: 100dvh; }
.s-dlg::backdrop { background: #000c; }
.s-dlg.small { height: auto; max-height: 90dvh; width: min(94vw, 560px); padding: 28px; }
@media (min-width: 900px) { .s-dlg:not(.small) { height: 94dvh; } }
.s-ed { padding: 0 clamp(16px, 4vw, 40px) 0; display: grid; grid-template-columns: 1fr 260px; column-gap: 32px; align-items: start; }
.s-ed > * { grid-column: 1; }
.s-ed-head { position: sticky; top: 0; z-index: 3; background: var(--surface); display: flex; justify-content: space-between; align-items: center; padding: 20px 0 14px; border-bottom: 1px solid var(--line); grid-column: 1 / -1; }
.s-ed-head .h2 { font-size: clamp(26px, 4vw, 36px); margin-top: 6px; }
.s-sec { padding: 24px 0; border-bottom: 1px solid var(--line); }
.s-sec h3 { font: 300 24px/1.2 var(--serif); margin-bottom: 12px; }
.s-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px 18px; }
.s-ed .field input, .s-ed .field select, .s-small .field input, .s-small .field select { padding: 10px 0; font-size: 16px; }
.s-ed .field label { margin: 12px 0 2px; font-size: 10px; }
.s-ed .field textarea { margin-top: 4px; font-size: 15px; }
.s-sub { margin: 10px 0 4px; padding-left: 14px; border-left: 2px solid var(--line); display: grid; gap: 2px; }
.s-line { display: flex; flex-wrap: wrap; gap: 0 14px; align-items: flex-end; }
.s-line .field { flex: 1 1 130px; min-width: 0; }
.s-line .s-x, .s-line .s-link, .s-line .s-wa { margin-bottom: 4px; }
.s-wa { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #8fd19e; padding: 8px 0; }
.s-warn { flex-basis: 100%; color: #e3a07a; font-size: 13px; margin: 4px 0; }
.s-event { padding: 14px 0 6px; border-top: 1px dashed var(--line); }
.s-event:first-of-type { border-top: 0; padding-top: 0; }
.s-adds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.s-adds .btn { padding: 10px 14px; font-size: 11px; }
.s-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-bottom: 8px; }
.s-check { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); cursor: pointer; font-size: 15px; }
.s-check input { width: 18px; height: 18px; accent-color: var(--gold); flex: none; }
.s-check small { display: block; color: var(--muted); font-size: 12px; }
.s-sum { grid-column: 2 !important; grid-row: 2 / span 5; position: sticky; top: 100px; margin-top: 24px; padding: 18px; border: 1px solid var(--line); background: #0e0d0c; display: grid; gap: 8px; font-size: 14px; }
.s-sum div { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); }
.s-sum b { color: var(--text); font-weight: 400; white-space: nowrap; }
.s-sum .tot { font-size: 16px; color: var(--text); }
.s-sum .tot b { color: var(--gold); }
.s-sum .warn b, .s-sum .tot.warn b { color: #e3a07a; }
.s-sum .good b { color: #8fd19e; }
.s-sum hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.s-ed-foot { position: sticky; bottom: 0; z-index: 3; background: var(--surface); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); grid-column: 1 / -1 !important; }
@media (max-width: 860px) {
  .s-ed { grid-template-columns: 1fr; }
  .s-sum { grid-column: 1 !important; grid-row: auto; position: static; margin: 20px 0; }
  .s-ed-foot .btn { flex: 1; justify-content: center; }
}
.s-small { display: grid; gap: 16px; }
.s-small .form { margin-top: 0; }
.s-hist { max-height: 50vh; overflow: auto; }
.s-hist .s-row { grid-template-columns: 60px 1fr auto auto; font-size: 14px; }
.s-share { display: grid; gap: 10px; }
.s-share .btn { justify-content: center; }
/* the admin resets section padding; Studio boxes need theirs back */
.admin section.s-box { padding: 20px; }
.admin section.s-sec { padding: 24px 0; }
@media (max-width: 560px) { .admin section.s-box { padding: 16px 14px; } }
@media (max-width: 560px) { .a-tabs { flex-wrap: wrap; gap: 0; overflow: visible; } .a-tabs button { padding: 12px 10px; font-size: 11px; letter-spacing: .1em; } }
/* busy states */
.btn.solid .spin { border-color: #0e0d0c33; border-top-color: #0e0d0c; }
[aria-busy="true"] { cursor: progress; }
.a-cover-grid[aria-busy] { opacity: .5; pointer-events: none; }

/* Date field + calendar picker */
.s-dp { display: block; width: 100%; text-align: left; padding: 10px 28px 10px 0; border-bottom: 1px solid var(--line); color: var(--text); font: 300 16px var(--sans); position: relative; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-dp::after { content: ""; position: absolute; right: 4px; top: 50%; width: 14px; height: 13px; margin-top: -7px; border: 1.5px solid var(--muted); border-top-width: 4px; border-radius: 2px; }
.s-dp:hover, .s-dp:focus-visible { border-color: var(--gold); outline: none; }
.s-dp.empty { color: var(--muted); }
.s-small .s-dp, .s-add .s-dp { font-size: 16px; }
.s-picker { position: fixed; z-index: 300; width: 300px; padding: 14px; background: #1b1916; border: 1px solid var(--gold); box-shadow: 0 20px 50px #000c; color: var(--text); font-family: var(--sans); }
.s-pk-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.s-pk-head b { font: 300 22px/1 var(--serif); }
.s-pk-head button { width: 36px; height: 36px; font-size: 20px; color: var(--text); border: 1px solid var(--line); }
.s-pk-head button:hover { border-color: var(--gold); color: var(--gold); }
.s-pk-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.s-pk-dow { text-align: center; font-size: 11px; color: var(--muted); padding: 4px 0; }
.s-pk-grid button { position: relative; aspect-ratio: 1; display: grid; place-items: center; font-size: 14px; color: var(--text); border-radius: 50%; }
.s-pk-grid button:hover { background: #2a2520; }
.s-pk-grid button.out { color: #5e574f; }
.s-pk-grid button.today { box-shadow: inset 0 0 0 1px var(--gold); }
.s-pk-grid button.on { background: var(--gold); color: #0e0d0c; }
.s-pk-grid button i { position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%); min-width: 5px; height: 5px; border-radius: 3px; background: #e3a07a; font: normal 0/0 a; }
.s-pk-grid button.on i { background: #0e0d0c; }
.s-pk-foot { display: flex; gap: 14px; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.s-pk-foot button { color: var(--gold); font-size: 13px; letter-spacing: .06em; }
.s-pk-foot span { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.s-pk-foot span i { width: 5px; height: 5px; border-radius: 3px; background: #e3a07a; }
@media (max-width: 560px) {
  .s-picker { left: 0 !important; right: 0; bottom: 0; top: auto !important; width: auto; padding: 16px 16px calc(18px + env(safe-area-inset-bottom)); border-width: 1px 0 0; }
  .s-pk-grid button { font-size: 16px; }
}
.s-terms { margin-top: 10px; }
.s-terms summary { cursor: pointer; color: var(--muted, #8a8178); font-size: 14px; padding: 6px 0; }
.s-warn:empty { display: none; }
button.s-card { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color .2s; }
button.s-card:hover { border-color: var(--gold); }
.s-accts .s-card b { font-size: 26px; }
.s-amt.good { color: var(--gold); }
.bot-list { margin: 10px 0 12px 18px; color: var(--muted); font-size: 14px; line-height: 1.8; list-style: disc; }
#bot-root .s-box { margin-top: 18px; }
.s-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.s-tr b { font-style: italic; }

/* Requests tab (booking requests from /book) */
.r-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 10px; background: var(--gold); color: #0e0d0c; font-size: 11px; letter-spacing: 0; }
.r-link { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; word-break: break-all; }
.r-push .s-note b { font-weight: 400; color: var(--text); }
.r-on { color: #8fd19e !important; }
.r-steps { margin: 10px 0 0 20px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.r-steps b { color: var(--text); font-weight: 400; }
.r-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.r-actions .btn { padding: 12px 18px; }
.r-filter { margin: 26px 0 14px; }
.r-filter small { color: var(--muted); margin-left: 4px; }
.r-list { display: grid; gap: 12px; }
.r-card { padding: 18px; border: 1px solid var(--line); border-left: 3px solid var(--line); background: var(--surface); }
.r-card.s-new { border-left-color: var(--gold); }
.r-card.s-booked { border-left-color: #8fd19e; }
.r-card.s-not-interested { opacity: .6; }
.r-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.r-card h3 { font: 300 26px/1.1 var(--serif); }
.r-card header small { color: var(--muted); font-size: 12px; }
.r-card select { padding: 8px 10px; background: var(--bg); border: 1px solid var(--line); color: var(--text); font: 300 14px var(--sans); color-scheme: dark; }
.r-card.s-new select { border-color: var(--gold); color: var(--gold); }
.r-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.r-dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 18px; }
.r-dl dt { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.r-dl dd { font-size: 15px; }
.r-note { margin-top: 12px; color: var(--muted); font-style: italic; }
.r-card .s-x { margin-left: auto; }
.no-albums [data-act="album"] { display: none !important; }

/* Quick buttons: package details and payment step dates */
.s-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 6px; align-items: center; }
.s-pills-sub { padding: 8px 0 8px 12px; border-left: 2px solid var(--gold); margin-top: 0; }
.s-pills-gap { flex-basis: 100%; height: 0; }
.s-pill { border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; font-size: 13px; color: var(--muted); background: transparent; }
.s-pill.on { border-color: var(--gold); color: var(--gold); }
.s-pill b { display: inline-block; min-width: 18px; margin-left: 4px; padding: 0 5px; border-radius: 9px; background: var(--gold); color: #0e0d0c; font-weight: 600; }
.s-pill-wrap { display: inline-flex; align-items: center; gap: 2px; }
.s-pill-minus { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); font-size: 16px; line-height: 1; }
.s-pills-sub .s-link { padding: 8px 6px; }
.s-step { padding: 8px 0 10px; border-bottom: 1px dashed var(--line); }
.s-prev { margin: 4px 0 0; font-size: 13px; }
/* WhatsApp bot tab */
.bot-status b { font-weight: 400; color: var(--gold); }
.bot-bar { height: 6px; background: var(--line); margin-top: 10px; }
.bot-bar i { display: block; height: 100%; background: var(--gold); }
.bot-bar i.bad { background: #e3a07a; }
.bot-order { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.bot-order li { display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 12px; border: 1px solid var(--line); }
.bot-order li span { flex: 1; min-width: 0; }
.bot-order .s-x:disabled { opacity: .25; }
.bot-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin: 12px 0; }
.bot-photos figure { margin: 0; position: relative; display: grid; gap: 6px; }
.bot-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--line); }
.bot-photos select { width: 100%; }
.bot-photos .s-x { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,.6); }
.bot-up { cursor: pointer; align-self: flex-end; margin-bottom: 14px; }
.bot-chat { padding: 12px 0; border-top: 1px solid var(--line); }
.bot-chat:first-child { border-top: 0; }
.bot-chat small { color: var(--muted); margin-left: 6px; }
.bot-chat a { color: var(--muted); font-size: 13px; }
.bot-tag { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line); padding: 2px 6px; margin-left: 6px; color: var(--muted); }
.bot-tag.hot { color: #e3a07a; border-color: #e3a07a; }
.bot-last { margin: 4px 0; font-style: italic; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
