.login-wrap { max-width: 420px; margin-top: 50px; }
.login-wrap .primary { width: 100%; margin-top: 6px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold);
  border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow); }
.stat-val { font-size: 26px; font-weight: 700; color: var(--navy); line-height: 1.1; }
.stat-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }
.dash-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .dash-cols { grid-template-columns: 1fr; } }
.action-item { display: flex; align-items: center; gap: 10px; padding: 10px 4px;
  border-bottom: 1px solid var(--line); cursor: pointer; font-size: 14px; }
.action-item:hover { background: var(--bg); }
.action-item.overdue .ai-label { color: #b3261e; font-weight: 600; }
.ai-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; background: var(--muted); }
.ai-enquiry { background: var(--gold); } .ai-contract { background: #378add; }
.ai-sign { background: #9a7b1f; } .ai-invoice { background: #b3261e; }
.ai-label { flex: 1; color: var(--ink); }
.ai-date { font-size: 12px; color: var(--muted); white-space: nowrap; }
.gig-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
  padding: 10px 4px; border-bottom: 1px solid var(--line); }
.gig-date { font-weight: 700; color: var(--navy); font-size: 14px; }
.gig-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.gig-fee { text-align: right; font-weight: 600; color: var(--navy); white-space: nowrap; }
.gig-out { font-size: 12px; color: #b3261e; font-weight: 600; }

.tabs { display: flex; gap: 6px; margin: 26px 0 18px; flex-wrap: wrap; }
.tab {
  background: #fff; border: 1px solid var(--line); color: var(--navy);
  padding: 10px 16px; border-radius: 10px; cursor: pointer; font-size: 14px; font-weight: 600;
}
.tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.tab.logout { margin-left: auto; color: #b3261e; }
.badge {
  background: var(--gold); color: var(--navy); border-radius: 20px;
  padding: 1px 8px; font-size: 12px; margin-left: 4px;
}
.badge:empty { display: none; }

.filter-row { margin-bottom: 14px; }
.filter-row select { max-width: 220px; }

.booking {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: 12px; padding: 16px 18px; margin-bottom: 12px; box-shadow: var(--shadow);
}
.booking.confirmed { border-left-color: var(--avail); }
.booking.declined { border-left-color: #cbd0d6; opacity: .75; }
.booking .bk-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.booking .bk-date { font-weight: 700; color: var(--navy); font-size: 16px; }
.booking .bk-type { color: var(--muted); font-size: 13px; }
.booking .status-pill { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; padding: 3px 9px; border-radius: 20px; font-weight: 700; }
.status-pill.pending { background: #fdf3df; color: #9a7b1f; }
.status-pill.confirmed { background: var(--avail-bg); color: #1d7350; }
.status-pill.declined { background: #f0f0f2; color: #888; }
.booking .bk-body { margin: 10px 0; font-size: 14px; color: var(--ink); }
.booking .bk-body div { margin: 2px 0; }
.booking .bk-msg { background: var(--bg); border-radius: 8px; padding: 8px 10px; margin-top: 8px; white-space: pre-wrap; }
.booking .bk-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.booking .bk-actions button { padding: 7px 14px; font-size: 13px; border-radius: 8px; cursor: pointer; border: 1px solid var(--line); background: #fff; }
.btn-confirm { background: var(--avail) !important; color: #fff !important; border: none !important; }
.btn-decline { color: #b3261e; }
.btn-del { color: #999; margin-left: auto; }
.empty-msg { color: var(--muted); text-align: center; padding: 30px; }

.slot-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.slot-form input { width: auto; flex: 1; min-width: 120px; margin-top: 0; }
.slot-form .primary { flex: 0 0 auto; }
.muted-p { color: var(--muted); font-size: 13px; margin-top: 0; }

#slots-list .slot-item, #a-grid .cell.adminblocked { font-size: 13px; }
.slot-item { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 7px; font-size: 14px; }
.slot-item button { border: none; background: none; color: #b3261e; cursor: pointer; font-size: 13px; }

.weekday-toggles { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 14px; }
.wd-toggle { padding: 9px 14px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; background: #fff; color: var(--navy); font-size: 13px; user-select: none; }
.wd-toggle.on { background: var(--navy); color: #fff; border-color: var(--navy); }

.cell.adminblocked { background: #fdeceb; color: #c0392b; border-color: #f4c9c4; cursor: pointer; font-weight: 600; }
.cell.adminblocked:hover { background: #c0392b; color:#fff; }
.cell.available { cursor: pointer; }
.settings-form .row { gap: 12px; }

/* booking sub-sections (contract / invoices) */
.adm-sub { border-top: 1px dashed var(--line); margin-top: 12px; padding-top: 12px; font-size: 14px; }
.adm-sub b { color: var(--navy); }
.acct-pill { background: var(--avail-bg); color: #1d7350; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 20px; margin-left: 4px; }
.ok-text { color: #1d7350; font-weight: 600; }
.warn-text { color: #9a7b1f; font-weight: 600; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--navy); }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.inline-form input, .inline-form select { width: auto; margin-top: 0; padding: 8px 10px; }
.adm-inv { display: flex; justify-content: space-between; align-items: center; gap: 8px;
  flex-wrap: wrap; background: var(--bg); border-radius: 8px; padding: 8px 12px; margin: 6px 0; }
.adm-inv .status-pill { margin-left: 6px; }

.sigpad-wrap { position: relative; margin: 4px 0 12px; }
.sigpad { width: 100%; height: 160px; display: block; border: 1px dashed var(--gold);
  border-radius: 10px; background: #fffdf8; touch-action: none; cursor: crosshair; }
.sig-clear { position: absolute; top: 8px; right: 8px; font-size: 12px; padding: 4px 10px;
  border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; }
.sig-clear:hover { background: var(--bg); }

/* admin message thread */
.adm-thread { max-height: 240px; overflow-y: auto; display: flex; flex-direction: column;
  gap: 7px; margin: 8px 0; padding: 2px; }
.adm-thread .msg { max-width: 80%; padding: 8px 12px; border-radius: 13px; font-size: 14px; }
.adm-thread .msg-meta { font-size: 11px; color: var(--muted); margin-bottom: 3px; }
.adm-thread .msg-body { white-space: pre-wrap; }
.adm-thread .msg.mine { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.adm-thread .msg.mine .msg-meta { color: #c9cbe0; }
.adm-thread .msg.theirs { align-self: flex-start; background: var(--bg); color: var(--ink); border-bottom-left-radius: 4px; }

/* issue-contract modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(22,27,51,0.55); z-index: 50;
  display: flex; align-items: flex-start; justify-content: center; padding: 30px 16px; overflow-y: auto; }
.modal-overlay.hidden { display: none; }
.modal { background: #fff; border-radius: var(--radius); width: 100%; max-width: 640px;
  box-shadow: var(--shadow); padding: 22px 24px 26px; margin: auto; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.modal-head h2 { margin: 0; color: var(--navy); }
.modal-x { border: none; background: none; font-size: 20px; cursor: pointer; color: var(--muted); }
.modal h3 { color: var(--navy); font-size: 14px; text-transform: uppercase; letter-spacing: 1px;
  margin: 18px 0 8px; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.modal label small { color: var(--muted); font-weight: 400; }
.opt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 14px; }
@media (max-width: 560px) { .opt-grid { grid-template-columns: 1fr; } }

/* ---------- Live requests tab ---------- */
.live-admin-state { font-size: 15px; }
.live-admin-state .live-on { color: #1d7350; font-weight: 700; }
.live-admin-state .live-off { color: var(--muted); font-weight: 700; }
#live-toggle.danger { background: #c0392b; }

.qr-box { margin-top: 16px; display: inline-block; padding: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.qr-box img, .qr-box canvas { display: block; }

.songs-list { margin-top: 14px; }
.song-item { display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; margin-bottom: 8px; background: #fff; }
.song-item.off { opacity: .55; }
.song-item-main { min-width: 0; }
.si-title { font-weight: 600; }
.si-artist { color: var(--muted); font-size: 13px; margin-left: 8px; }
.song-item-actions { display: flex; gap: 12px; white-space: nowrap; }
.link-btn { background: none; border: none; color: var(--navy); font-weight: 600;
  font-size: 13px; cursor: pointer; padding: 4px; }
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: #c0392b; }

/* ---------- Photos tab ---------- */
.album-row { display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px;
  margin-bottom: 8px; background: #fff; }
.album-name { font-weight: 600; }
.album-meta { color: var(--muted); font-size: 13px; margin-left: 10px; }
.album-actions { display: flex; gap: 14px; white-space: nowrap; }
.album-actions .link-btn { text-decoration: none; }

/* inline checkbox rows (reviews + photobooth toggles) */
.check-row { display: flex; align-items: center; gap: 10px; }
.check-row input[type="checkbox"] { width: auto; margin: 0; flex: 0 0 auto; }
