/* =====================================================
   AZSSA Program OS — Desktop dashboard (admin/registrar)
   Loaded after style.css; reuses its design tokens.
   ===================================================== */

.dt-body { background: var(--bg); margin: 0; }

/* Small-screen notice */
.dt-smallscreen {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
  padding: 32px 24px;
  gap: 12px;
}
.dt-smallscreen-icon { width: 72px; height: 72px; border-radius: 16px; }
.dt-smallscreen h1 { font-size: 20px; font-weight: 800; color: var(--text-1); margin: 8px 0 0; }
.dt-smallscreen p { font-size: 14px; color: var(--text-2); max-width: 360px; margin: 0; }
.dt-smallscreen .btn { max-width: 320px; margin-top: 8px; }

/* Shell */
.dt-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }

/* Sidebar */
.dt-sidebar {
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.dt-brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px 18px; }
.dt-brand-icon { width: 38px; height: 38px; border-radius: 9px; }
.dt-brand-name { font-size: 16px; font-weight: 800; color: var(--text-1); line-height: 1.1; }
.dt-brand-sub { font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.5px; }

.dt-nav { display: flex; flex-direction: column; gap: 2px; }
.dt-nav-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: none; background: none;
  font-family: inherit; font-size: 14px; font-weight: 600;
  color: var(--text-2);
  border-radius: 9px;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}
.dt-nav-item:hover { background: var(--bg); color: var(--text-1); }
.dt-nav-item.is-active { background: var(--navy); color: #fff; }
.dt-nav-item.is-active .nav-icon { background-color: #fff; }
.dt-nav-item .nav-icon { width: 18px; height: 18px; background-color: currentColor; }

.dt-nav-divider {
  font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-3); padding: 16px 10px 5px;
}
.dt-nav[data-group="today"] .dt-nav-divider { padding-top: 6px; }
.dt-sidebar-foot { margin-top: auto; padding: 12px 10px 0; }
.dt-link { background: none; border: none; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--text-3); cursor: pointer; padding: 0; }
.dt-link:hover { color: var(--text-1); text-decoration: underline; }

/* Main */
/* min-width:0 — without it this grid item can't shrink below its content's
   min-content width, so one wide table pushes the whole page sideways. */
.dt-main { padding: 24px 28px 48px; max-width: 1280px; min-width: 0; }
.dt-topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.dt-title { font-size: 24px; font-weight: 800; color: var(--text-1); margin: 0; }
.dt-subtitle { font-size: 14px; color: var(--text-2); margin: 4px 0 0; }
.dt-topbar-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.dt-stamp { font-size: 12px; color: var(--text-3); }
.dt-clock { font-size: 13px; font-weight: 700; color: var(--text-2); }
.btn.btn-sm { padding: 8px 14px; font-size: 13px; width: auto; }

.dt-loading { padding: 40px 0; color: var(--text-3); }
.dt-error { padding: 20px; background: #fef2f2; border: 1px solid #fecaca; border-radius: 12px; color: #991b1b; font-size: 14px; }

/* Panels + grids */
.dt-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.dt-grid-split { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 16px; align-items: start; }
/* Grid items default to min-width:auto, so a wide roster table used to push
   the whole page past the window instead of scrolling inside its panel. */
.dt-grid-split > * { min-width: 0; }
@media (max-width: 1100px) { .dt-grid-split { grid-template-columns: 1fr; } }
.dt-panel { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.dt-panel-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.dt-panel-head h2 { font-size: 15px; font-weight: 800; color: var(--text-1); margin: 0; }
.dt-panel-note { font-size: 12px; color: var(--text-3); }
.dt-empty { font-size: 13px; color: var(--text-3); padding: 8px 0; }

/* Type pills */
.dt-type-pill, .dt-program-type {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  padding: 2px 8px; border-radius: 999px; color: #fff; white-space: nowrap;
}
.type-weekly { background: var(--navy); }
.type-camp { background: var(--orange); }
.type-league { background: #0e7490; }
.type-membership { background: var(--success); }

/* Program list */
.dt-program-row {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 12px; margin-bottom: 8px;
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  cursor: pointer; text-align: left; font-family: inherit;
}
.dt-program-row:hover { border-color: var(--text-3); }
.dt-program-row.is-selected { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.dt-program-main { flex: 1; min-width: 0; }
.dt-program-name { display: block; font-size: 14px; font-weight: 700; color: var(--text-1); }
.dt-program-sub { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; }
.dt-program-count { font-size: 18px; font-weight: 800; color: var(--navy); }

/* Roster panel */
.dt-roster-panel { min-height: 320px; }
.dt-roster-empty { display: flex; align-items: center; justify-content: center; min-height: 280px; color: var(--text-3); font-size: 14px; }
.dt-roster-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.dt-roster-title { font-size: 18px; font-weight: 800; color: var(--text-1); margin: 0; }
.dt-roster-meta { font-size: 13px; color: var(--text-2); margin: 4px 0 0; }
.dt-roster-controls { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dt-roster-controls .form-select { width: auto; }
.dt-control-label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.dt-session-select { width: auto; min-width: 240px; max-width: 100%; flex: 0 1 auto; }

.dt-roster-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dt-roster-table th {
  text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px;
  color: var(--text-3); padding: 8px 10px; border-bottom: 2px solid var(--border);
}
.dt-roster-table td { padding: 9px 10px; border-bottom: 1px solid var(--border-soft); color: var(--text-2); vertical-align: top; }
.dt-roster-table .dt-num { color: var(--text-3); }
.dt-roster-table .dt-strong { font-weight: 700; color: var(--text-1); }
.dt-roster-table .dt-notes { color: #92400e; font-size: 12px; }
.dt-roster-loading { text-align: center; color: var(--text-3); padding: 24px 0; }
.dt-check { width: 28px; }

/* List / By-day segmented toggle */
.dt-roster-modes { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.dt-roster-mode {
  font-family: inherit; font-size: 12.5px; font-weight: 700; color: var(--text-2);
  background: #fff; border: none; padding: 6px 12px; cursor: pointer;
}
.dt-roster-mode + .dt-roster-mode { border-left: 1px solid var(--border); }
.dt-roster-mode.is-active { background: var(--navy); color: #fff; }

/* By-day attendance grid */
#roster-grid { overflow-x: auto; }
#roster-content { min-width: 0; }
.dt-roster-table-wrap, #roster-list-table { max-width: 100%; }
#roster-list-table { display: block; overflow-x: auto; }
#roster-list-table thead, #roster-list-table tbody { display: table; width: 100%; table-layout: auto; }
@media print { #roster-list-table { display: table; overflow: visible; } }
.dt-grid-table th.dt-gday { text-align: center; white-space: nowrap; line-height: 1.2; }
.dt-grid-table td.dt-gcell { text-align: center; font-weight: 700; width: 44px; }
.dt-grid-table td.dt-g-exp { color: var(--text-3); }
.dt-grid-table td.dt-g-present { color: var(--success, #16a34a); }
.dt-grid-table td.dt-g-absent { color: var(--danger, #dc2626); }
.dt-grid-legend { font-size: 12px; color: var(--text-3); margin-top: 10px; }

.dt-pill { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.dt-pill-green { background: #dcfce7; color: #166534; }
.dt-pill-red { background: #fee2e2; color: #991b1b; }
.dt-pill-gray { background: var(--bg); color: var(--text-2); }

/* ============ Families CRM ============ */
.dt-toolbar { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.dt-search-wrap { position: relative; flex: 1; max-width: 460px; }
.dt-search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: 16px; }
.dt-search {
  width: 100%; padding: 10px 12px 10px 34px;
  border: 1px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: 14px; color: var(--text-1); background: var(--white);
}
.dt-search:focus { outline: none; border-color: var(--navy); }

.dt-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.dt-toggle input { position: absolute; opacity: 0; }
.dt-toggle-track { width: 38px; height: 22px; background: #cbd5e1; border-radius: 999px; position: relative; transition: background 0.15s; }
.dt-toggle-knob { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: transform 0.15s; }
.dt-toggle input:checked + .dt-toggle-track { background: var(--navy); }
.dt-toggle input:checked + .dt-toggle-track .dt-toggle-knob { transform: translateX(16px); }

.dt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.dt-chip {
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--white); font-family: inherit; font-size: 13px; font-weight: 600;
  color: var(--text-2); cursor: pointer;
}
.dt-chip:hover { border-color: var(--text-3); }
.dt-chip.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
/* A filter with nothing behind it recedes rather than disappears. */
.dt-chip.is-empty:not(.is-active) { color: var(--text-3); border-color: var(--border-soft); }
.dt-chip-toggle { margin-left: 8px; }
.dt-chip-toggle.is-active { background: #d97706; border-color: #d97706; color: #fff; }

.dt-fam-summary { font-size: 13px; color: var(--text-3); margin: 0 0 10px; }

.dt-fam { background: var(--white); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; overflow: hidden; }
.dt-fam.is-open { border-color: var(--text-3); }
.dt-fam-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.dt-fam-toggle { background: none; border: none; cursor: pointer; padding: 4px; color: var(--text-3); }
.dt-fam-chevron { display: inline-block; font-size: 12px; transition: transform 0.15s; }
.dt-fam.is-open .dt-fam-chevron { transform: rotate(90deg); }
.player-avatar.dt-fam-avatar { width: 38px; height: 38px; font-size: 13px; flex-shrink: 0; }
.player-avatar.dt-player-avatar { width: 30px; height: 30px; font-size: 11px; flex-shrink: 0; }
.dt-fam-id { background: none; border: none; cursor: pointer; text-align: left; font-family: inherit; padding: 0; }
.dt-fam-name { display: block; font-size: 15px; font-weight: 700; color: var(--text-1); }
.dt-fam-name:hover { color: var(--navy); }
.dt-fam-sub { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; }
.dt-fam-spacer { flex: 1; }
.dt-fam-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.dt-fam-email { font-size: 13px; color: var(--text-2); }
.dt-fam-zip { font-size: 12px; color: var(--text-3); }
.dt-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); color: var(--text-2); text-decoration: none; font-size: 15px; }
.dt-icon-btn:hover { border-color: var(--text-3); color: var(--text-1); }

.dt-fam-players { border-top: 1px solid var(--border-soft); background: #f8fafc; padding: 4px 14px 8px 44px; }
.dt-fam-player { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 4px; background: none; border: none; border-bottom: 1px solid var(--border-soft); cursor: pointer; text-align: left; font-family: inherit; }
.dt-fam-player:last-child { border-bottom: none; }
.dt-player-id { flex: 1; min-width: 0; }
.dt-player-name { display: block; font-size: 13px; font-weight: 600; color: var(--text-1); }
.dt-player-sub { display: block; font-size: 12px; color: var(--text-3); }
.dt-player-enroll { font-size: 12px; color: var(--text-3); min-width: 90px; text-align: right; }

.dt-pill-orange { background: #ffedd5; color: #9a3412; }
.dt-pill-amber { background: #fef3c7; color: #92400e; }

/* Family account drawer */
.dt-drawer-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.35); z-index: 40; }
.dt-drawer {
  position: fixed; top: 0; right: 0; height: 100vh; width: 460px; max-width: 92vw;
  background: var(--white); border-left: 1px solid var(--border);
  box-shadow: -8px 0 30px rgba(15, 23, 42, 0.12);
  z-index: 41; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.2s ease;
}
.dt-drawer.is-open { transform: translateX(0); }
.dt-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.dt-drawer-title { font-size: 19px; font-weight: 600; letter-spacing: -.01em; color: var(--text-1); margin: 0; }
.dt-drawer-close { background: none; border: none; font-size: 18px; color: var(--text-3); cursor: pointer; padding: 4px 8px; }
.dt-drawer-close:hover { color: var(--text-1); }
.dt-drawer-body { padding: 18px 20px 40px; overflow-y: auto; }

.dt-acct-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.dt-acct-meta { font-size: 12px; color: var(--text-3); }
.dt-acct-section { margin-bottom: 22px; }
.dt-acct-section h3 { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-3); margin: 0 0 10px; }
.dt-acct-row { padding: 8px 0; border-bottom: 1px solid var(--border-soft); font-size: 13px; color: var(--text-2); }
.dt-acct-row:last-child { border-bottom: none; }
.dt-acct-row strong { color: var(--text-1); font-weight: 700; }
.dt-acct-warn { color: #92400e; }
.dt-tag { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; background: var(--bg); color: var(--text-2); padding: 1px 6px; border-radius: 4px; }

/* ---- Account adjustments (admin-only controls inside the drawer) ---- */
.dt-pack-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.dt-link-danger { color: #b42318; }
.dt-link-danger:hover { color: #7a160d; }

.dt-inline-form {
  margin-top: 10px;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dt-inline-label { font-size: 12px; font-weight: 700; color: var(--text-1); }
.dt-inline-sub { font-size: 12px; color: var(--text-3); }
.dt-inline-line { display: flex; align-items: center; gap: 8px; }
.dt-inline-num { width: 72px; height: 34px; padding: 0 10px; font-size: 14px; border: 1px solid var(--border); border-radius: 6px; background: var(--white); }
.dt-inline-text, .dt-inline-select { width: 100%; height: 34px; padding: 0 10px; font-size: 13px; border: 1px solid var(--border); border-radius: 6px; background: var(--white); font-family: inherit; }
.dt-step {
  width: 34px; height: 34px; flex-shrink: 0;
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--white); color: var(--text-1);
  font-size: 18px; line-height: 1; cursor: pointer;
}
.dt-step:hover { background: var(--bg); }
.dt-inline-actions { display: flex; align-items: center; gap: 14px; margin-top: 2px; }
.dt-btn-sm {
  height: 34px; padding: 0 16px;
  background: var(--navy); color: #fff;
  border: none; border-radius: 6px;
  font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.dt-btn-sm:hover { opacity: 0.92; }
.dt-btn-sm:disabled { opacity: 0.6; cursor: default; }
.dt-inline-err { font-size: 12px; color: #b42318; min-height: 1px; }

/* ===== Registrar hybrid (KPI strip + two-pane worklist | detail) ===== */
.dt-reg-kpis { display: flex; gap: 12px; align-items: stretch; margin-bottom: 16px; flex-wrap: wrap; }
.dt-reg-kpi { flex: 1; min-width: 120px; background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.dt-reg-kpi .v { font-size: 26px; font-weight: 800; line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
.dt-reg-kpi .v.red { color: var(--danger); }
.dt-reg-kpi .v.green { color: #16a34a; }
.dt-reg-kpi .l { font-size: 12.5px; color: var(--text-2); margin-top: 6px; }
.dt-reg-shortcuts { display: flex; flex-direction: column; gap: 8px; justify-content: center; padding-left: 4px; }
.dt-reg-shortcuts .btn { white-space: nowrap; }

.dt-reg-wrap { display: grid; grid-template-columns: 380px 1fr; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; min-height: 520px; height: calc(100vh - 290px); }
.dt-reg-list { border-right: 1px solid var(--border); overflow-y: auto; }
.dt-reg-grp { position: sticky; top: 0; background: #fcfdff; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding: 13px 16px 6px; }
.dt-reg-grp.now { color: var(--danger); }
.dt-reg-grp.wins { color: #16a34a; }
.dt-reg-grp .n { color: var(--text-3); font-weight: 700; }
.dt-reg-it { display: flex; gap: 11px; align-items: flex-start; padding: 12px 16px; border-bottom: 1px solid var(--border-soft); cursor: pointer; }
.dt-reg-it:hover { background: #fafbfc; }
.dt-reg-it.on { background: #eef2ff; }
.dt-reg-it .b { flex: 1; min-width: 0; }
.dt-reg-it .nm { font-weight: 700; font-size: 14px; color: var(--text-1); }
.dt-reg-it .wy { font-size: 12.5px; color: var(--text-2); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dt-reg-it .wy b { color: var(--text-1); }
.dt-reg-it .lc { font-size: 11.5px; color: var(--text-3); margin-top: 4px; }
.dt-reg-it .tag { font-size: 10px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; color: var(--text-3); flex: none; }
.dt-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; margin-top: 6px; }
.dt-dot.now { background: var(--danger); }
.dt-dot.soon { background: #b45309; }
.dt-dot.win { background: #16a34a; }
.dt-dot.gray { background: var(--text-3); }

.dt-reg-detail { overflow-y: auto; background: #fcfdff; min-width: 0; }
.dt-reg-empty { padding: 60px 30px; text-align: center; color: var(--text-3); font-size: 14px; }
.dt-reg-dh { padding: 20px 24px 14px; border-bottom: 1px solid var(--border-soft); }
.dt-reg-dh h2 { font-size: 21px; font-weight: 800; margin: 0; letter-spacing: -.01em; color: var(--text-1); }
.dt-reg-pills { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 10px; }
.dt-pill-offer { background: #fff7ed !important; color: #9a3412 !important; }
.dt-pill-soft { background: #fff !important; border: 1px solid var(--border); color: var(--text-2) !important; }
.dt-reg-db { padding: 18px 24px 28px; }
.dt-reg-why { font-size: 14px; color: var(--text-1); margin-bottom: 16px; }
.dt-reg-why b { font-weight: 700; }
.dt-reg-ctx { margin-bottom: 18px; }
.dt-reg-compose { border: 1px solid var(--border); border-radius: 12px; background: #fff; overflow: hidden; }
.dt-reg-compose .subj { padding: 11px 14px; border-bottom: 1px solid var(--border-soft); font-weight: 600; font-size: 13.5px; }
.dt-reg-compose .bd { padding: 12px 14px; font-size: 13px; color: var(--text-2); line-height: 1.6; white-space: pre-wrap; }
.dt-reg-compose .ft { display: flex; gap: 9px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--border-soft); background: #fcfdff; flex-wrap: wrap; }
.dt-reg-help { font-size: 12px; color: var(--text-3); margin-left: auto; }
.dt-reg-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.dt-reg-snzbox { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; padding: 12px; background: #fff; border: 1px solid var(--border); border-radius: 10px; }
.dt-reg-zero { padding: 50px 24px; text-align: center; }
.dt-reg-zero .ring { width: 64px; height: 64px; border-radius: 50%; border: 3px solid #16a34a; color: #16a34a; display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 auto 14px; }
.dt-reg-zero .big { font-size: 17px; font-weight: 700; color: var(--text-1); }
.dt-reg-zero .sub { font-size: 13px; color: var(--text-3); margin-top: 4px; }

/* ============ Players table + bulk tagging ============ */
.dt-toolbar-wrap { flex-wrap: wrap; }
.dt-filter-select { width: auto; min-width: 130px; }

.dt-bulkbar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px;
  padding: 10px 14px; margin-bottom: 14px;
}
.dt-bulk-count { font-size: 13px; font-weight: 700; color: var(--navy); }
.dt-bulk-msg { font-size: 13px; color: var(--text-2); }

/* overflow-x:auto — a table too wide for the window scrolls inside its own
   card (and still clips to the rounded corners) rather than being cut off. */
.dt-table-wrap { background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow-x: auto; }
.dt-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dt-table th {
  text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px;
  color: var(--text-3); padding: 10px 12px; border-bottom: 2px solid var(--border); background: #f8fafc;
}
.dt-table td { padding: 10px 12px; border-bottom: 1px solid var(--border-soft); color: var(--text-2); vertical-align: middle; }
.dt-table tbody tr:last-child td { border-bottom: none; }
.dt-table tr.is-selected td { background: #eff6ff; }
.dt-check-col { width: 36px; text-align: center; }
.dt-link-name { background: none; border: none; padding: 0; font-family: inherit; font-size: 13px; font-weight: 700; color: var(--text-1); cursor: pointer; text-align: left; }
.dt-link-name:hover { color: var(--navy); text-decoration: underline; }
.dt-tag-chip { display: inline-block; font-size: 11px; font-weight: 600; background: var(--bg); color: var(--text-2); border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px; margin: 1px 0; }

/* Carried-over launch balances — a standing figure, not an alert. Typographic
   (big number + quiet explanation over a hairline), no tinted callout box. */
.dt-owed {
  display: flex; align-items: baseline; gap: 12px;
  margin: 0 0 16px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.dt-owed-n { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--text-1); }
.dt-owed-t { font-size: 13.5px; font-weight: 700; color: var(--text-1); }
.dt-owed-s { display: block; font-size: 12px; font-weight: 400; color: var(--text-3); margin-top: 2px; }

/* ============ Email log (Resend mirror) ============ */
.dt-email-when { white-space: nowrap; font-weight: 600; color: var(--text-1); }
.dt-email-time { font-weight: 400; color: var(--text-3); }
.dt-email-to { color: var(--text-1); }
.dt-email-badge {
  display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.03em; padding: 2px 8px; border-radius: 999px; white-space: nowrap;
}
.dt-email-badge.t-ok { background: #dcfce7; color: #166534; }
.dt-email-badge.t-pending { background: #f1f5f9; color: #475569; }
.dt-email-badge.t-warn { background: #fef3c7; color: #92400e; }
/* A bounce means a family heard nothing — it should be the loudest thing here. */
.dt-email-badge.t-bad { background: #fee2e2; color: #b42318; }

/* Quiz-lead conversion funnel — how well we turn inquiries into families.
   Numbers lead, labels recede; the last step is the one that pays. */
.dt-funnel { display: flex; align-items: stretch; flex-wrap: wrap; gap: 0; margin: 0 0 14px; }
.dt-funnel-step { padding: 2px 22px 2px 0; margin-right: 22px; border-right: 1px solid var(--border); }
.dt-funnel-step:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.dt-funnel-n { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--text-1); line-height: 1.15; }
.dt-funnel-l { font-size: 11.5px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 1px; }
.dt-funnel-sub { font-size: 11.5px; color: var(--text-3); margin-top: 1px; }
.dt-funnel-step.is-win .dt-funnel-n { color: #166534; }
.dt-funnel-step.is-rate .dt-funnel-n { color: var(--navy); }

/* ============ Inquiries — the quiz-lead book ============ */
/* Inquiries — one long chip per lead (2026-09-09). A shared column grid for
   the label strip and every row, so the eye runs straight down each column.
   Collapsed = a pill; expanded = the pill opens into a card holding the quiz
   answers and the outreach history. Every pill is its own grid, so tracks are
   fixed or minmax(0, fr) and cells get min-width: 0 — a long email must never
   push a column wider in one row than the next. */
.dt-inq-grid {
  display: grid; align-items: center; column-gap: 14px;
  grid-template-columns: 112px minmax(0, 1.1fr) minmax(0, 1.4fr) 108px 128px 120px 306px;
}
.dt-inq-grid > * { min-width: 0; }
.dt-inq-cols {
  padding: 0 22px 8px; margin-top: 4px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-3);
}
.dt-inq-cols > :last-child { text-align: right; }
.dt-inq-list { display: flex; flex-direction: column; gap: 8px; }

.dt-inq-chip {
  background: var(--white); border: 1px solid var(--border); border-radius: 999px;
  min-height: 54px; padding: 8px 22px; cursor: pointer;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.dt-inq-chip:hover { border-color: var(--text-3); box-shadow: 0 1px 2px rgba(15, 23, 42, .05); }
.dt-inq-chip:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.dt-inq-chip.is-open { border-radius: 16px; border-color: var(--navy); box-shadow: 0 1px 2px rgba(15, 23, 42, .05); cursor: default; }
.dt-inq-chip.is-closed { opacity: .75; }

.dt-inq-name { font-size: 13.5px; font-weight: 700; color: var(--text-1); line-height: 1.3; }
.dt-inq-sub { font-size: 12px; color: var(--text-3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dt-inq-sub .age { font-weight: 600; color: var(--text-2); }
.dt-inq-fam { color: var(--text-3); }

/* Contact is the point of this screen — always visible, one click to act. */
.dt-inq-contact a {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 12.5px; line-height: 1.45; color: var(--navy); text-decoration: none;
}
.dt-inq-contact a:hover { text-decoration: underline; }
.dt-inq-contact .tel { color: var(--text-2); font-variant-numeric: tabular-nums; }
.dt-inq-none { color: var(--text-3); font-size: 12.5px; }

/* Short, known values ("Game changer", "This month") — never worth wrapping. */
.dt-inq-level, .dt-inq-start { white-space: nowrap; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; }

.dt-inq-badge {
  display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.03em; padding: 2px 8px; border-radius: 999px; white-space: nowrap;
}
.dt-inq-badge.s-new { background: #e0e7ff; color: #3730a3; }
.dt-inq-badge.s-contacted { background: #fef3c7; color: #92400e; }
.dt-inq-badge.s-replied { background: #dbeafe; color: #1d4ed8; }
.dt-inq-badge.s-converted { background: #dcfce7; color: #166534; }
.dt-inq-badge.s-closed { background: #f1f5f9; color: #475569; }
/* "Wants to start this month" — the buying signal. Orange, typographic, flat. */
.dt-inq-hot { background: #fff1e8; color: #9a3412; }
/* Registered but never booked a trial — the one to chase. */
.dt-inq-trial-none { background: #fefce8; color: #854d0e; }
.dt-inq-trial { font-size: 12.5px; color: var(--text-2); }
.dt-inq-trial b { font-weight: 600; color: var(--text-1); }

/* Date first, relative age or last outreach underneath. */
.dt-inq-when { white-space: nowrap; }
.dt-inq-when .d { font-size: 12.5px; font-weight: 600; color: var(--text-1); }
.dt-inq-when .r { display: block; font-size: 11.5px; color: var(--text-3); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; }

/* Actions are buttons, right-aligned — .dt-btn-sm and .btn-secondary scaled
   to sit inside a 54px pill. */
.dt-inq-actions { display: flex; justify-content: flex-end; align-items: center; gap: 6px; white-space: nowrap; }
.dt-inq-btn {
  height: 30px; padding: 0 12px; border-radius: 6px;
  background: var(--white); color: var(--navy); border: 1px solid var(--border);
  font-family: inherit; font-size: 12.5px; font-weight: 600; line-height: 28px; cursor: pointer;
  text-decoration: none; display: inline-block;
  transition: background .12s ease, border-color .12s ease, opacity .12s ease;
}
.dt-inq-btn:hover { background: var(--bg); border-color: var(--text-3); text-decoration: none; }
.dt-inq-btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.dt-inq-btn.primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.dt-inq-btn.primary:hover { opacity: .92; background: var(--navy); }
.dt-inq-btn.quiet { color: var(--text-3); border-color: transparent; }
.dt-inq-btn.quiet:hover { color: var(--text-1); border-color: var(--border); background: var(--white); }

/* Expanded: what they told us + the outreach log, inside the opened card. */
.dt-inq-detail {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px 28px;
  margin: 12px 0 6px; padding: 14px 0 0; border-top: 1px solid var(--border-soft); cursor: default;
}
.dt-inq-detail h5 { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-3); }
.dt-inq-dl { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 5px 10px; margin: 0; }
.dt-inq-dl dt { font-size: 12px; font-weight: 600; color: var(--text-3); }
.dt-inq-dl dd { margin: 0; font-size: 13px; color: var(--text-1); line-height: 1.45; }
.dt-inq-log { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.dt-inq-log li { font-size: 12.5px; color: var(--text-2); }
.dt-inq-log-none { margin: 0; font-size: 12.5px; color: var(--text-3); }

/* ============ Sessions week grid ============ */
.dt-week { margin-bottom: 18px; overflow-x: auto; }
.dt-week-head { font-size: 13px; font-weight: 800; color: var(--text-2); margin-bottom: 8px; }
/* minmax(0, 1fr) — without the 0 floor, grid items default to min-content
   width, so a session chip with a long name (e.g. "June Indoor Soccer
   skills and agility camp at Cactus Yards") forces the column wider than
   1fr and the 7th day clips off the right edge of the viewport. */
.dt-week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; min-width: 640px; }
.dt-day { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 8px; min-height: 84px; min-width: 0; }
.dt-day.is-today { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.dt-day-head { display: flex; align-items: baseline; justify-content: space-between; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-3); margin-bottom: 6px; }
.dt-day-num { font-size: 13px; font-weight: 800; color: var(--text-1); }
.dt-sess-chip { display: block; width: 100%; min-width: 0; text-align: left; border: none; border-radius: 8px; padding: 6px 8px; margin-bottom: 6px; cursor: pointer; color: #fff; font-family: inherit; }
.dt-sess-chip:last-child { margin-bottom: 0; }
.dt-sess-chip:hover { filter: brightness(1.06); }
.dt-sess-chip.type-weekly { background: var(--navy); }
.dt-sess-chip.type-camp { background: var(--orange); }
.dt-sess-chip.type-league { background: #0e7490; }
.dt-sess-chip.type-membership { background: var(--success); }
.dt-sess-time { display: block; font-size: 12px; font-weight: 800; }
/* min-width: 0 belt + suspenders so text-overflow:ellipsis engages even
   when the parent grid cell tries to size to content. */
.dt-sess-name { display: block; min-width: 0; font-size: 11px; font-weight: 600; opacity: 0.95; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dt-sess-cap { display: block; font-size: 10px; opacity: 0.85; margin-top: 1px; }

/* Print column hidden on screen */
.dt-print-col { display: none; }

/* Trial badge on the roster — scannable on screen, prints on the sheet
   so trainers can spot trial families on the field. Letter-spacing +
   compact weight matches the rest of the dt-pill family. */
.dt-roster-name { display: inline-block; }
.dt-trial-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: 2px;
}

/* ============ PRINT: just the roster ============ */
@media print {
  .dt-sidebar, .dt-topbar, .dt-noprint, .dt-roster-controls,
  #view-overview, #program-list, .dt-roster-empty,
  .dt-panel-head .dt-panel-note { display: none !important; }
  .dt-shell { display: block !important; }
  .dt-main { padding: 0; max-width: none; }
  .dt-grid-split { display: block; }
  .dt-roster-panel, .dt-panel { border: none; padding: 0; }
  .dt-noprint-col { display: none !important; }
  .dt-print-col { display: table-cell !important; }
  .dt-check { border: 1px solid #333; height: 16px; width: 16px; }
  .dt-roster-table th, .dt-roster-table td { border-bottom: 1px solid #999; }
  /* Day grid prints as a tickable matrix: every cell gets a box so a coach
     can mark the blank (expected) cells on the field. */
  .dt-grid-table th.dt-gday, .dt-grid-table td.dt-gcell { border: 1px solid #333; }
  .dt-grid-table td.dt-g-present, .dt-grid-table td.dt-g-absent, .dt-grid-table td.dt-g-exp { color: #000; }
  .dt-roster-title { font-size: 18px; }
  body { background: #fff; }
  @page { margin: 1.5cm; }
}

/* ===== Phase 2: registrations feed, roster tools, compose modal ===== */
.dt-feed { border: 1px solid var(--border, #e2e8f0); border-radius: 14px; background: #fff; overflow: hidden; max-width: 860px; }
.dt-feed-row { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 12px 16px; border: none; border-bottom: 1px solid #eef2f7; background: none; font-family: inherit; cursor: pointer; }
.dt-feed-row:last-child { border-bottom: none; }
.dt-feed-row:hover { background: #f8fafc; }
.dt-feed-ic { width: 34px; height: 34px; border-radius: 9px; background: #eef2ff; display: flex; align-items: center; justify-content: center; flex: none; font-size: 16px; }
.dt-feed-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dt-feed-fam { font-weight: 700; font-size: 14px; color: #0f172a; }
.dt-feed-det { font-size: 12.5px; color: #475569; }
.dt-feed-when { font-size: 12px; color: #94a3b8; flex: none; }

.dt-roster-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 6px 0 14px; }
.dt-roster-tools-sp { margin-left: auto; }

.dt-modal-dim { position: fixed; inset: 0; background: rgba(15,23,42,.42); z-index: 90; display: flex; align-items: center; justify-content: center; padding: 24px; }
.dt-modal { background: #fff; border-radius: 16px; max-width: 600px; width: 100%; max-height: 88vh; display: flex; flex-direction: column; box-shadow: 0 24px 64px -20px rgba(15,23,42,.5); }
.dt-modal-h { padding: 18px 22px; border-bottom: 1px solid #eef2f7; }
.dt-modal-t { font-size: 18px; font-weight: 800; color: #0f172a; }
.dt-modal-s { font-size: 12.5px; color: #94a3b8; margin-top: 2px; }
.dt-modal-b { padding: 18px 22px; overflow: auto; }
.dt-modal-f { padding: 14px 22px; border-top: 1px solid #eef2f7; display: flex; gap: 9px; justify-content: flex-end; }
.dt-modal-msg { font-size: 13px; color: #475569; margin-top: 8px; min-height: 18px; }

/* ===== Family drawer redesign: identity header + segmented tabs + grouped cards ===== */
.dt-fd-pills { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.dt-fd-meta { font-size: 13px; color: var(--text-3); }
.dt-fd-actions { display: flex; gap: 8px; margin-bottom: 16px; }
.dt-fd-btn { display: inline-flex; align-items: center; gap: 7px; font-family: inherit; font-size: 13.5px; font-weight: 500; padding: 8px 14px; border-radius: 8px; cursor: pointer; border: 1px solid var(--border); background: #fff; color: var(--text-1); text-decoration: none; transition: 150ms; }
.dt-fd-btn svg { width: 15px; height: 15px; }
.dt-fd-btn:hover { background: #f4f4f5; }
.dt-fd-btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.dt-fd-btn.primary:hover { opacity: .92; }
.dt-fd-btn[disabled] { opacity: .5; cursor: default; }
.dt-fd-glance { display: flex; gap: 26px; margin-bottom: 16px; }
.dt-fd-glance .n { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dt-fd-glance .n.amber { color: #b45309; }
.dt-fd-glance .l { font-size: 11.5px; color: var(--text-3); margin-top: 1px; }

.dt-fd-tabs { display: flex; gap: 3px; padding: 3px; background: #f1f1f3; border-radius: 10px; }
.dt-fd-tab { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--text-2); background: none; border: none; font-family: inherit; padding: 7px 6px; border-radius: 7px; cursor: pointer; transition: 150ms; }
.dt-fd-tab svg { width: 14px; height: 14px; }
.dt-fd-tab:hover { color: var(--text-1); }
.dt-fd-tab.on { background: #fff; color: var(--text-1); font-weight: 600; box-shadow: 0 1px 2px rgba(15,23,42,.10), 0 0 0 1px rgba(15,23,42,.04); }
.dt-fd-tab .badge { font-size: 10.5px; font-weight: 600; color: var(--text-3); background: #e6e6e9; border-radius: 999px; padding: 0 5px; min-width: 15px; text-align: center; line-height: 16px; }
.dt-fd-tab.on .badge { background: #eef2ff; color: var(--navy); }

/* gray field, full-bleed inside the padded drawer body (counters its 20px/40px padding) */
.dt-fd-field { background: #f6f7f9; margin: 16px -20px -40px; padding: 16px 16px 28px; min-height: 220px; }
.dt-fd-sec { margin-top: 18px; }
.dt-fd-sec:first-child { margin-top: 0; }
.dt-fd-sec-h { display: flex; align-items: center; gap: 7px; padding: 0 6px 8px; }
.dt-fd-sec-h svg { width: 14px; height: 14px; color: var(--text-3); }
.dt-fd-sec-h .t { font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); }
.dt-fd-sec-h .c { font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.dt-fd-sec-h .act { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--navy); background: none; border: none; cursor: pointer; font-family: inherit; padding: 0; }
.dt-fd-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 2px 14px; }
.dt-fd-row { padding: 11px 0; border-bottom: 1px solid var(--border-soft); }
.dt-fd-row:last-child { border-bottom: none; }
.dt-fd-row-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dt-fd-row-name { font-size: 14.5px; font-weight: 600; color: var(--text-1); }
.dt-fd-row-right { flex: none; font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; text-align: right; }
.dt-fd-row-sub { font-size: 13px; color: var(--text-2); margin-top: 3px; }
.dt-fd-row-sub a { color: var(--navy); text-decoration: none; }
.dt-fd-coach { font-size: 13px; color: var(--text-2); margin-top: 5px; padding-left: 11px; border-left: 1px solid var(--border); }
.dt-fd-coach b { color: var(--text-1); font-weight: 600; }
.dt-fd-status { font-size: 12.5px; font-weight: 600; }
.dt-fd-status.present { color: #15803d; } .dt-fd-status.absent { color: #b91c1c; } .dt-fd-status.booked { color: var(--text-3); }
.dt-fd-empty { font-size: 13.5px; color: var(--text-3); padding: 14px 0; }

/* ===== Family activity timeline (merged CRM feed) ===== */
.dt-act-list { padding: 4px 0; }
.dt-act-row { display: flex; gap: 11px; padding: 10px 0; border-bottom: 1px solid var(--border-soft); }
.dt-act-row:last-child { border-bottom: none; }
.dt-act-dot { flex: none; width: 26px; height: 26px; border-radius: 999px; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.dt-act-dot svg { width: 14px; height: 14px; }
.dt-act-dot.accent  { background: #eef2ff; color: var(--navy); }
.dt-act-dot.success { background: #ecfdf3; color: #15803d; }
.dt-act-dot.warning { background: #fef3f2; color: #b91c1c; }
.dt-act-dot.muted   { background: var(--surface-2, #f4f4f5); color: var(--text-3); }
.dt-act-body { flex: 1; min-width: 0; }
.dt-act-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dt-act-title { font-size: 14px; font-weight: 600; color: var(--text-1); }
.dt-act-when { flex: none; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.dt-act-sub { font-size: 13px; color: var(--text-2); margin-top: 2px; overflow-wrap: anywhere; }
.dt-act-actor { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* ===== Worklist detail redesign: stepper + next-step + snapshot ===== */
.dt-rd-head { padding: 20px 22px 16px; display: flex; gap: 13px; align-items: center; }
.dt-rd-av { flex: none; width: 40px; height: 40px; border-radius: 999px; background: #eef2ff; color: var(--navy); font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.dt-rd-name { font-size: 21px; font-weight: 600; letter-spacing: -.02em; color: var(--text-1); }
.dt-rd-sub { font-size: 13px; color: var(--text-3); margin-top: 3px; }
.dt-rd-pipe { display: flex; gap: 5px; padding: 0 22px 18px; }
.dt-rd-step { flex: 1; }
.dt-rd-step .b { height: 5px; border-radius: 3px; background: #ececef; }
.dt-rd-step .l { font-size: 11px; font-weight: 500; color: var(--text-3); margin-top: 7px; }
.dt-rd-step.done .b { background: var(--navy); }
.dt-rd-step.cur .b { background: var(--navy); } .dt-rd-step.cur .l { color: var(--text-2); }
.dt-rd-step.cur.red .b { background: #dc2626; } .dt-rd-step.cur.red .l { color: #dc2626; }
.dt-rd-step.cur.amber .b { background: #b45309; } .dt-rd-step.cur.amber .l { color: #b45309; }
.dt-rd-step.skip .b { background: none; border: 1px dashed #cbd5e1; box-sizing: border-box; } .dt-rd-step.skip .l { color: var(--text-3); text-decoration: line-through; }

.dt-rd-next { background: #f7f8fa; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border); padding: 18px 22px; }
.dt-rd-next .ey { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.dt-rd-next .goal { font-size: 19px; font-weight: 600; letter-spacing: -.01em; margin-top: 5px; color: var(--text-1); }
.dt-rd-next .meta { font-size: 13px; color: var(--text-2); margin-top: 5px; }
.dt-rd-next .meta .u { font-weight: 600; color: #b45309; } .dt-rd-next .meta .u.red { color: #dc2626; }
.dt-rd-next .acts { display: flex; gap: 4px; align-items: center; margin-top: 16px; }
.dt-rd-next .acts .sp { flex: 1; }
.dt-rd-btn { display: inline-flex; align-items: center; gap: 7px; font-family: inherit; font-size: 13.5px; font-weight: 500; padding: 9px 16px; border-radius: 8px; cursor: pointer; border: 1px solid var(--navy); background: var(--navy); color: #fff; text-decoration: none; margin-right: 6px; }
.dt-rd-btn svg { width: 15px; height: 15px; } .dt-rd-btn:hover { opacity: .92; } .dt-rd-btn[disabled] { opacity: .5; cursor: default; }
.dt-rd-g { display: inline-flex; align-items: center; gap: 6px; font-family: inherit; font-size: 13.5px; font-weight: 500; color: var(--text-2); background: none; border: none; padding: 9px 11px; border-radius: 8px; cursor: pointer; }
.dt-rd-g svg { width: 15px; height: 15px; } .dt-rd-g:hover { background: #ecedf0; color: var(--text-1); }

.dt-rd-body { padding: 18px 22px 24px; }
.dt-rd-sec { margin-top: 20px; } .dt-rd-sec:first-child { margin-top: 0; }
.dt-rd-h { font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); margin-bottom: 9px; display: flex; align-items: center; gap: 7px; }
.dt-rd-h svg { width: 14px; height: 14px; color: var(--text-3); }
.dt-rd-h .more { margin-left: auto; font-size: 12.5px; font-weight: 500; color: var(--navy); cursor: pointer; text-transform: none; letter-spacing: 0; }
.dt-rd-snap { display: grid; grid-template-columns: auto 1fr; gap: 9px 18px; font-size: 13.5px; margin: 0; }
.dt-rd-snap dt { color: var(--text-3); } .dt-rd-snap dd { margin: 0; line-height: 1.5; }
.dt-rd-snap dd a { color: var(--navy); text-decoration: none; }
.dt-rd-tl .i { font-size: 13px; color: var(--text-2); padding: 3px 0; } .dt-rd-tl .i b { color: var(--text-1); font-weight: 600; } .dt-rd-tl .i .w { color: var(--text-3); }
.dt-rd-empty2 { font-size: 13px; color: var(--text-3); }
.dt-rd-draft { border: 1px solid var(--border); border-radius: 11px; overflow: hidden; }
.dt-rd-draft summary { list-style: none; cursor: pointer; padding: 11px 14px; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.dt-rd-draft summary::-webkit-details-marker { display: none; }
.dt-rd-draft summary .s { color: var(--text-1); font-weight: 600; }
.dt-rd-draft summary .c { margin-left: auto; color: var(--text-3); transition: 150ms; } .dt-rd-draft[open] summary .c { transform: rotate(90deg); }
.dt-rd-draft .b { padding: 12px 14px 14px; font-size: 13.5px; line-height: 1.6; white-space: pre-wrap; border-top: 1px solid var(--border-soft); }

/* ===== Admin Overview redesign: setup row + needs-attention + enrollment ===== */
.dt-ov-setup { display: flex; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.dt-ov-link { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 9px; padding: 9px 14px; font-size: 13.5px; font-weight: 500; color: var(--text-1); background: #fff; cursor: pointer; font-family: inherit; }
.dt-ov-link:hover { background: #f4f4f5; }
.dt-ov-link svg { width: 15px; height: 15px; color: var(--text-3); }
.dt-ov-na { display: flex; flex-direction: column; }
.dt-ov-narow { display: flex; align-items: center; gap: 13px; padding: 13px 2px; border-bottom: 1px solid var(--border-soft); }
.dt-ov-narow:last-child { border-bottom: none; }
.dt-ov-naic { width: 36px; height: 36px; border-radius: 9px; flex: none; display: flex; align-items: center; justify-content: center; }
.dt-ov-naic.red { background: #fef2f2; color: #dc2626; } .dt-ov-naic.amber { background: #fff7ed; color: #b45309; }
.dt-ov-naic svg { width: 18px; height: 18px; }
.dt-ov-nab { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dt-ov-nab .t { font-size: 14px; font-weight: 600; color: var(--text-1); }
.dt-ov-nab .s { font-size: 13px; color: var(--text-3); margin-top: 1px; }
.dt-ov-fix { font-size: 13px; font-weight: 500; color: var(--navy); border: 1px solid var(--border); border-radius: 8px; padding: 7px 14px; background: #fff; cursor: pointer; font-family: inherit; }
.dt-ov-fix:hover { background: #f4f4f5; }
.dt-ov-clear { display: flex; align-items: center; gap: 12px; padding: 16px 2px; color: var(--text-2); font-size: 14px; }
.dt-ov-clear .ring { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #16a34a; color: #16a34a; display: flex; align-items: center; justify-content: center; flex: none; }
.dt-ov-ptable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.dt-ov-ptable th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); padding: 0 0 8px; border-bottom: 1px solid var(--border); }
.dt-ov-ptable th.num, .dt-ov-ptable td.num { text-align: right; font-variant-numeric: tabular-nums; }
.dt-ov-ptable td { padding: 11px 0; border-bottom: 1px solid var(--border-soft); }
.dt-ov-ptable tr:last-child td { border-bottom: none; }
.dt-ov-ptable td.warn { color: #b45309; font-weight: 600; }
.dt-ov-ty { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--navy); background: #eef2ff; border-radius: 5px; padding: 2px 7px; }

/* Duplicate-families review (inside dt-modal) */
.dt-dup-cluster { border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.dt-dup-cluster:last-child { margin-bottom: 0; }
.dt-dup-h { font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 10px; }
.dt-dup-fam { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; cursor: pointer; }
.dt-dup-fam input { margin-top: 3px; flex: none; }
.dt-dup-main { display: flex; flex-direction: column; min-width: 0; }
.dt-dup-main .nm { font-size: 14px; font-weight: 600; color: var(--text-1); }
.dt-dup-main .sub { font-size: 12.5px; color: var(--text-3); }
.dt-dup-main .kids { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.dt-dup-act { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.dt-dup-msg { font-size: 13px; color: var(--text-2); }

/* =====================================================
   Registrar detail pane — redesign 2026-09-02
   Two surfaces: white = information, tinted = you act here.
   One label on the card (the priority dot); everything else names itself.
   ===================================================== */
.dt-rx { --do-bg: #eef2fb; --do-line: #cfd8ee; --do-ink: var(--navy); }
.dt-rx-head { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 18px 22px 16px; }
.dt-rx-av { width: 44px; height: 44px; border-radius: 999px; background: #eef2ff; color: var(--navy); font-weight: 700; font-size: 15px; display: grid; place-items: center; }
.dt-rx-id { min-width: 0; }
.dt-rx-name { font-size: 20px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; color: var(--text-1); }
.dt-rx-who { margin-top: 3px; color: var(--text-2); font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.dt-rx-who b { color: var(--text-1); font-weight: 600; }
.dt-rx-who a { color: var(--navy); font-weight: 500; text-decoration: none; }
.dt-rx-stages { display: flex; align-self: start; }
.dt-rx-stages span { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 6px 13px 6px 18px; margin-left: -6px; clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%, 9px 50%); }
.dt-rx-stages span:first-child { padding-left: 13px; margin-left: 0; clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%); border-radius: 6px 0 0 6px; }
.dt-rx-stages span:last-child { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 9px 50%); border-radius: 0 6px 6px 0; padding-right: 13px; }
.dt-rx-stages .st-lead   { background: var(--bg); color: var(--text-2); }
.dt-rx-stages .st-trial  { background: #ffedd5; color: #9a3412; }
.dt-rx-stages .st-active { background: #dcfce7; color: #166534; }
.dt-rx-stages .st-lead.cur   { background: var(--text-2); color: #fff; }
.dt-rx-stages .st-trial.cur  { background: var(--orange); color: #fff; }
.dt-rx-stages .st-active.cur { background: #15803d; color: #fff; }
.dt-rx-stages .next { background: var(--white); color: var(--text-3); box-shadow: inset 0 0 0 1px var(--border); }
.dt-rx-stages .skip { text-decoration: line-through; opacity: .6; }

.dt-rx-ask { padding: 16px 22px 18px; background: var(--do-bg); border-top: 1px solid var(--do-line); border-bottom: 1px solid var(--do-line); }
.dt-rx-pri { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.dt-rx-pri i { width: 8px; height: 8px; border-radius: 999px; background: currentColor; }
.dt-rx-pri.red { color: var(--danger, #dc2626); } .dt-rx-pri.amber { color: #b45309; } .dt-rx-pri.green { color: #15803d; }
.dt-rx-reason { font-size: 21px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin-top: 8px; color: var(--text-1); text-wrap: balance; }
.dt-rx-todo { margin-top: 5px; color: var(--text-2); font-size: 14px; }
.dt-rx-todo b { color: var(--text-1); font-weight: 600; }
.dt-rx-acts { display: flex; align-items: center; gap: 6px; margin-top: 14px; }
.dt-rx-btn { display: inline-flex; align-items: center; gap: 8px; font-family: inherit; font-size: 14px; font-weight: 600; padding: 10px 18px; border-radius: 8px; cursor: pointer; border: 1px solid var(--navy); background: var(--navy); color: #fff; text-decoration: none; }
.dt-rx-btn svg { width: 15px; height: 15px; }
.dt-rx-btn:hover { background: var(--navy-hover, #1e40af); } .dt-rx-btn[disabled] { opacity: .5; cursor: default; }
.dt-rx-q { font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--do-ink); background: none; border: 1px solid transparent; padding: 9px 12px; border-radius: 8px; cursor: pointer; }
.dt-rx-q:hover { background: #fff; border-color: var(--do-line); }
.dt-rx-q .car { font-size: 10px; margin-left: 4px; opacity: .7; }
.dt-rx-more { margin-left: auto; width: 34px; height: 34px; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--do-ink); font-family: inherit; font-size: 18px; letter-spacing: 1px; cursor: pointer; display: grid; place-items: center; opacity: .8; }
.dt-rx-more:hover { background: #fff; border-color: var(--do-line); opacity: 1; }
.dt-rx-btn:focus-visible, .dt-rx-q:focus-visible, .dt-rx-more:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.dt-rx-glance { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--border); background: var(--white); }
.dt-rx-glance > div { padding: 12px 16px; border-right: 1px solid var(--border-soft); min-width: 0; }
.dt-rx-glance > div:last-child { border-right: 0; }
.dt-rx-glance .v { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; line-height: 1.2; color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-rx-glance .s { font-size: 12.5px; color: var(--text-2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-rx-glance .v.red { color: var(--danger, #dc2626); } .dt-rx-glance .v.green { color: #15803d; }

.dt-rx-body { padding: 4px 22px 4px; background: var(--white); }
.dt-rx-sec { padding: 14px 0; border-bottom: 1px solid var(--border-soft); }
.dt-rx-sec:last-child { border-bottom: 0; }
.dt-rx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dt-rx-chip { display: inline-flex; align-items: baseline; gap: 6px; border: 1px solid var(--border); border-radius: 999px; padding: 5px 11px; font-size: 13px; }
.dt-rx-chip b { font-weight: 600; color: var(--text-1); } .dt-rx-chip span { color: var(--text-2); }
.dt-rx-ledger { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.dt-rx-ledger td { padding: 6px 0; border-bottom: 1px solid var(--border-soft); vertical-align: middle; color: var(--text-1); }
.dt-rx-ledger tr:last-child td { border-bottom: 0; }
.dt-rx-ledger .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; padding-left: 14px; }
.dt-rx-ledger .num small { font-weight: 500; color: var(--text-3); }
.dt-rx-ledger .meta { color: var(--text-2); font-size: 12.5px; }
.dt-rx-ledger .bar { height: 5px; border-radius: 3px; background: #e9edf2; margin-top: 5px; overflow: hidden; }
.dt-rx-ledger .bar i { display: block; height: 100%; background: var(--navy); }
.dt-rx-ledger .bar.red i { background: var(--danger, #dc2626); }
.dt-rx-empty { color: var(--text-2); font-size: 13.5px; }
.dt-rx-empty b { color: var(--text-1); font-weight: 600; }
.dt-rx-tl { display: grid; gap: 8px; }
.dt-rx-tl > div { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: baseline; font-size: 13.5px; }
.dt-rx-tl .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--navy); position: relative; top: -1px; justify-self: center; display: block; }
.dt-rx-tl .dot.muted { background: var(--text-3); }
.dt-rx-tl b { font-weight: 600; color: var(--text-1); } .dt-rx-tl span { color: var(--text-2); }
.dt-rx-tl .when { color: var(--text-3); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dt-rx-note { display: flex; gap: 8px; margin-top: 12px; padding: 10px; background: var(--do-bg); border: 1px solid var(--do-line); border-radius: 10px; }
.dt-rx-note input { flex: 1; font-family: inherit; font-size: 13.5px; padding: 8px 12px; border: 1px solid var(--do-line); border-radius: 8px; background: var(--white); color: var(--text-1); }
.dt-rx-note input::placeholder { color: var(--text-3); }
.dt-rx-note button { font-family: inherit; font-size: 13px; font-weight: 600; color: #fff; background: var(--navy); border: 1px solid var(--navy); border-radius: 8px; padding: 0 14px; cursor: pointer; }

.dt-rx-compose { background: var(--do-bg); border-top: 1px solid var(--do-line); padding: 12px 22px 18px; }
.dt-rx-compose .top { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.dt-rx-compose .top .sp, .dt-rx-compose .send .sp { flex: 1; }
.dt-rx-compose .top button { font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--do-ink); background: none; border: 1px solid transparent; border-radius: 7px; padding: 5px 10px; cursor: pointer; }
.dt-rx-compose .top button:hover { background: #fff; border-color: var(--do-line); }
.dt-rx-mail { background: var(--white); border: 1px solid var(--do-line); border-radius: 10px; }
.dt-rx-mail .to { padding: 9px 14px; border-bottom: 1px solid var(--border-soft); font-size: 12.5px; color: var(--text-2); }
.dt-rx-mail .to b { color: var(--text-1); font-weight: 600; }
.dt-rx-mail .subj { padding: 11px 14px 0; font-weight: 700; font-size: 14px; color: var(--text-1); }
.dt-rx-mail .pre { padding: 6px 14px 12px; font-size: 13.5px; line-height: 1.55; color: var(--text-2); white-space: pre-wrap; }
.dt-rx-edit { display: block; width: 100%; box-sizing: border-box; margin: 6px 0 0; padding: 8px 14px 12px; font-family: inherit; font-size: 13.5px; line-height: 1.55; color: var(--text-1); border: 0; border-top: 1px solid var(--border-soft); border-radius: 0 0 10px 10px; resize: vertical; background: #fffdf7; }
.dt-rx-edit:focus { outline: 2px solid var(--orange); outline-offset: -2px; }
.dt-rx-compose .send { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 12.5px; color: var(--text-2); }
.dt-rx-compose .send .keys { white-space: nowrap; }
.dt-rx-compose .send b { color: var(--text-1); font-weight: 600; }
.dt-rx-compose .send kbd { font-family: inherit; font-size: 11px; font-weight: 600; color: var(--text-2); border: 1px solid var(--do-line); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; background: #fff; margin: 0 1px; }
@media (max-width: 1100px) { .dt-rx-glance { grid-template-columns: 1fr 1fr; } .dt-rx-glance > div { border-bottom: 1px solid var(--border-soft); } .dt-rx-head { grid-template-columns: 44px 1fr; } .dt-rx-stages { grid-column: 2; } }

/* =====================================================
   Family drawer — redesign 2026-09-02
   Identity first; one action row on the do surface; four self-labelling
   facts; people / credits / paper trail on white; rare actions in ···.
   ===================================================== */
.dt-drawer-body { padding: 0 0 40px; }
.dt-fx { --do-bg: #eef2fb; --do-line: #cfd8ee; --do-ink: var(--navy); }
.dt-fx-id { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 14px 20px 0; }
.dt-fx-stages { display: flex; }
.dt-fx-stages span { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px 4px 14px; margin-left: -5px; clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 50%, calc(100% - 7px) 100%, 0 100%, 7px 50%); }
.dt-fx-stages span:first-child { padding-left: 10px; margin-left: 0; clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 50%, calc(100% - 7px) 100%, 0 100%); border-radius: 5px 0 0 5px; }
.dt-fx-stages span:last-child { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 7px 50%); border-radius: 0 5px 5px 0; padding-right: 10px; }
.dt-fx-stages .st-lead { background: var(--bg); color: var(--text-2); }
.dt-fx-stages .st-trial { background: #ffedd5; color: #9a3412; }
.dt-fx-stages .st-active { background: #dcfce7; color: #166534; }
.dt-fx-stages .st-renew { background: #fef3c7; color: #92400e; }
.dt-fx-stages .st-lapsed { background: var(--bg); color: var(--text-2); }
.dt-fx-stages .st-lead.cur { background: var(--text-2); color: #fff; }
.dt-fx-stages .st-trial.cur { background: var(--orange); color: #fff; }
.dt-fx-stages .st-active.cur { background: #15803d; color: #fff; }
.dt-fx-stages .st-renew.cur { background: #b45309; color: #fff; }
.dt-fx-stages .st-lapsed.cur { background: var(--text-3); color: #fff; }
.dt-fx-stages .next { background: var(--white); color: var(--text-3); box-shadow: inset 0 0 0 1px var(--border); }
.dt-fx-who { padding: 8px 20px 14px; font-size: 13.5px; color: var(--text-2); display: flex; flex-wrap: wrap; gap: 3px 10px; }
.dt-fx-who b { color: var(--text-1); font-weight: 600; }
.dt-fx-who a { color: var(--navy); font-weight: 500; text-decoration: none; }

.dt-fx-acts { display: flex; align-items: center; gap: 6px; padding: 12px 20px; background: var(--do-bg); border-top: 1px solid var(--do-line); border-bottom: 1px solid var(--do-line); position: relative; }
.dt-fx-btn { display: inline-flex; align-items: center; gap: 7px; font-family: inherit; font-size: 13.5px; font-weight: 600; padding: 8px 14px; border-radius: 8px; cursor: pointer; border: 1px solid var(--navy); background: var(--navy); color: #fff; text-decoration: none; }
.dt-fx-btn svg { width: 14px; height: 14px; } .dt-fx-btn[disabled] { opacity: .5; cursor: default; }
.dt-fx-btn:hover { background: var(--navy-hover, #1e40af); }
.dt-fx-q { font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--do-ink); background: none; border: 1px solid transparent; padding: 8px 11px; border-radius: 8px; cursor: pointer; }
.dt-fx-q:hover { background: #fff; border-color: var(--do-line); }
.dt-fx-menuwrap { margin-left: auto; position: relative; }
.dt-fx-more { width: 32px; height: 32px; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--do-ink); font-family: inherit; font-size: 17px; letter-spacing: 1px; cursor: pointer; display: grid; place-items: center; opacity: .8; }
.dt-fx-more:hover { background: #fff; border-color: var(--do-line); opacity: 1; }
.dt-fx-menu { position: absolute; right: 0; top: 38px; z-index: 5; min-width: 230px; background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 6px; box-shadow: 0 8px 24px rgba(15,23,42,.10); }
.dt-fx-menu button { display: block; width: 100%; text-align: left; font-family: inherit; font-size: 13.5px; font-weight: 500; color: var(--text-1); background: none; border: 0; border-radius: 7px; padding: 8px 10px; cursor: pointer; }
.dt-fx-menu button:hover { background: var(--border-soft); }
.dt-fx-menu button.dn { color: #b91c1c; }
.dt-fx-menu .sep { height: 1px; background: var(--border-soft); margin: 5px 4px; }
#fx-inline:not(:empty) { padding: 12px 20px 0; }
.dt-fx-btn:focus-visible, .dt-fx-q:focus-visible, .dt-fx-more:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.dt-fx-glance { display: grid; grid-template-columns: repeat(2, 1fr); border-bottom: 1px solid var(--border); }
.dt-fx-glance > div { padding: 11px 20px; border-right: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); min-width: 0; }
.dt-fx-glance > div:nth-child(2n) { border-right: 0; } .dt-fx-glance > div:nth-child(n+3) { border-bottom: 0; }
.dt-fx-glance .v { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; line-height: 1.2; color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-fx-glance .s { font-size: 12.5px; color: var(--text-2); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-fx-glance .v.red { color: var(--danger, #dc2626); } .dt-fx-glance .v.green { color: #15803d; }

.dt-fx-tabs { display: flex; gap: 2px; padding: 8px 20px 0; border-bottom: 1px solid var(--border); }
.dt-fx-tab { font-family: inherit; font-size: 13px; font-weight: 600; color: var(--text-2); background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 10px 10px; margin-bottom: -1px; cursor: pointer; }
.dt-fx-tab.on { color: var(--text-1); border-bottom-color: var(--navy); }
.dt-fx-tab .n { font-size: 11px; color: var(--text-3); margin-left: 4px; font-variant-numeric: tabular-nums; }

.dt-fx-body { padding: 4px 20px 10px; }
.dt-fx-sec { padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
.dt-fx-sec:last-child { border-bottom: 0; }
.dt-fx-person { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 0; }
.dt-fx-person + .dt-fx-person { border-top: 1px solid var(--border-soft); }
.dt-fx-person .n { font-weight: 600; color: var(--text-1); }
.dt-fx-person .n .tag { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-left: 6px; }
.dt-fx-person .r { grid-row: span 2; align-self: start; font-size: 12.5px; color: var(--text-3); text-align: right; white-space: nowrap; }
.dt-fx-person .r .dt-link { font-size: 12.5px; margin-left: 8px; }
.dt-fx-person .r .dt-link:first-child { margin-left: 0; }
.dt-fx-person .d { font-size: 13px; color: var(--text-2); }
.dt-fx-person .d a { color: var(--navy); font-weight: 500; text-decoration: none; }
.dt-fx-person .d .warn { color: #b45309; font-weight: 600; }
.dt-fx-person .coach { grid-column: 1 / -1; font-size: 13px; color: var(--text-2); margin-top: 4px; padding-left: 10px; border-left: 2px solid var(--border); }
.dt-fx-person .coach b { color: var(--text-1); font-weight: 600; }
.dt-fx-person.archived { opacity: .6; }
.dt-link-muted { color: var(--text-3); }

.dt-fx-ledger { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.dt-fx-ledger td { padding: 6px 0; border-bottom: 1px solid var(--border-soft); vertical-align: top; color: var(--text-1); }
.dt-fx-ledger tr:last-child td { border-bottom: 0; }
.dt-fx-ledger .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; padding-left: 14px; }
.dt-fx-ledger .num small { font-weight: 500; color: var(--text-3); }
.dt-fx-ledger .meta { color: var(--text-2); font-size: 12.5px; }
.dt-fx-ledger .bar { height: 5px; border-radius: 3px; background: #e9edf2; margin-top: 5px; overflow: hidden; }
.dt-fx-ledger .bar i { display: block; height: 100%; background: var(--navy); }
.dt-fx-ledger .bar.red i { background: var(--danger, #dc2626); }
.dt-fx-ledger .dt-pack-actions { padding-top: 4px; }
.dt-fx-grant { padding: 8px 0 0; }
.dt-fx-empty { color: var(--text-2); font-size: 13.5px; }
.dt-fx-empty b { color: var(--text-1); font-weight: 600; }
.dt-fx-decide { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-top: 10px; background: var(--do-bg); border: 1px solid var(--do-line); border-radius: 10px; font-size: 13.5px; color: var(--text-2); }
.dt-fx-decide b { color: var(--text-1); font-weight: 600; } .dt-fx-decide .sp { flex: 1; }
.dt-fx-decide .ok { font-family: inherit; font-size: 13px; font-weight: 600; color: #fff; background: #15803d; border: 1px solid #15803d; border-radius: 8px; padding: 6px 12px; cursor: pointer; white-space: nowrap; }
.dt-fx-approved { margin-top: 10px; font-size: 13px; color: #166534; }
.dt-fx-meta { font-size: 12.5px; color: var(--text-3); }
.dt-fx-note { display: flex; gap: 8px; margin: 10px 0 14px; padding: 10px; background: var(--do-bg); border: 1px solid var(--do-line); border-radius: 10px; }
.dt-fx-note input { flex: 1; font-family: inherit; font-size: 13.5px; padding: 8px 12px; border: 1px solid var(--do-line); border-radius: 8px; background: var(--white); color: var(--text-1); }
.dt-fx-note input::placeholder { color: var(--text-3); }
.dt-fx-note button { font-family: inherit; font-size: 13px; font-weight: 600; color: #fff; background: var(--navy); border: 1px solid var(--navy); border-radius: 8px; padding: 0 14px; cursor: pointer; }
/* Bookings + activity keep their section builders; calm the headers to match. */
.dt-fx .dt-fd-sec { margin-top: 14px; }
.dt-fx .dt-fd-sec-h { padding: 0 0 6px; }
.dt-fx .dt-fd-sec-h .t { font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text-1); }
.dt-fx .dt-fd-card { border: 0; padding: 0; border-radius: 0; }
.dt-fx .dt-inline-form { margin: 8px 0; }

/* ---- Families strip: the console's KPI card, made clickable; the pipeline bar on its own line ---- */
.dt-strip { margin-bottom: 10px; }
.dt-strip-kpi { cursor: pointer; flex: 1 1 150px; min-width: 150px; padding: 12px 14px; transition: border-color 120ms; }
.dt-strip-kpi:hover { border-color: #cbd5e1; }
.dt-strip-kpi.on { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.dt-strip-kpi .v.amber { color: #b45309; }
.dt-strip-kpi .l b { color: var(--text-1); font-weight: 600; }
.dt-strip-stage { display: flex; align-items: center; gap: 18px; background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; margin-bottom: 14px; flex-wrap: wrap; }
.dt-donut { width: 118px; height: 118px; flex: none; transform: rotate(0deg); }
.dt-donut .arc { cursor: pointer; transition: stroke-width 120ms; }
.dt-donut .arc:hover { stroke-width: 4.6; }
.dt-donut .c-lead { stroke: #94a3b8; } .dt-donut .c-trial { stroke: var(--orange); } .dt-donut .c-active { stroke: #15803d; } .dt-donut .c-renew { stroke: #b45309; } .dt-donut .c-lapsed { stroke: #cbd5e1; }
.dt-donut .big { font-size: 6.2px; font-weight: 800; fill: var(--text-1); font-variant-numeric: tabular-nums; }
.dt-donut .small { font-size: 2.6px; font-weight: 600; fill: var(--text-3); letter-spacing: .02em; }
.dt-strip-stage .leg { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 4px 18px; flex: 1; min-width: 200px; }
.dt-strip-stage .leg .row { display: grid; grid-template-columns: 10px 1fr auto auto; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); cursor: pointer; padding: 3px 6px; margin: 0 -6px; border-radius: 6px; }
.dt-strip-stage .leg .row:hover { background: var(--bg); }
.dt-strip-stage .leg .row.on { background: var(--bg); color: var(--text-1); }
.dt-strip-stage .leg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.dt-strip-stage .leg b { color: var(--text-1); font-weight: 700; font-variant-numeric: tabular-nums; }
.dt-strip-stage .leg .pct { color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }
.c-lead { background: #94a3b8; } .c-trial { background: var(--orange); } .c-active { background: #15803d; } .c-renew { background: #b45309; } .c-lapsed { background: #cbd5e1; }
@media (max-width: 560px) { .dt-strip-kpi { min-width: 140px; } .dt-strip-stage { justify-content: center; } }
/* ---- Icons (Lucide), restrained: contact marks, primary action, menu, tiles, jersey ---- */
.dt-rx-glance .v, .dt-fx-glance .v { display: flex; align-items: center; gap: 7px; }
.dt-rx-glance .v svg, .dt-fx-glance .v svg { width: 15px; height: 15px; flex: none; color: var(--text-3); }
.dt-rx-glance .v.red svg, .dt-fx-glance .v.red svg { color: var(--danger, #dc2626); }
.dt-rx-glance .v.green svg, .dt-fx-glance .v.green svg { color: #15803d; }
.dt-rx-glance .v span, .dt-fx-glance .v span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-rx-chip svg { width: 13px; height: 13px; color: var(--orange); align-self: center; margin-right: -1px; }
.dt-fx-who b, .dt-fx-who a { display: inline-flex; align-items: center; gap: 5px; }
.dt-fx-who svg { width: 13px; height: 13px; color: var(--text-3); }
.dt-fx-q svg { width: 14px; height: 14px; vertical-align: -2px; }
.dt-fx-menu button { display: flex; align-items: center; gap: 10px; }
.dt-fx-menu button svg { width: 15px; height: 15px; color: var(--text-3); flex: none; }
.dt-fx-menu button.dn svg { color: #b91c1c; }
.dt-fx-person .n { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dt-fx-person .n > svg { width: 15px; height: 15px; color: var(--text-3); flex: none; }
.dt-fx-person.kid .n > svg { color: var(--orange); }
.dt-fx-person .n .bday { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: #9a3412; background: #ffedd5; border-radius: 999px; padding: 2px 8px; }
.dt-fx-person .n .bday svg { width: 12px; height: 12px; }
.dt-fx-person .facts { grid-column: 1; font-size: 13.5px; font-weight: 600; color: var(--text-1); margin-top: 1px; }
.dt-fx-person .facts .miss { color: #b45309; font-weight: 600; }
.dt-fx-person .r { grid-row: span 3; }
.dt-fx-person .d .ok { color: #15803d; font-weight: 600; }
.dt-fx-person .d .warn svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 3px; }
.dt-reg-snzbox .btn svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; color: var(--text-3); }

/* =====================================================
   Overview — the morning screen (2026-09-03)
   ===================================================== */
.dt-ov-h { font-size: 13.5px; font-weight: 700; color: var(--text-1); margin: 18px 0 8px; }
.dt-ov-h:first-child { margin-top: 0; }
.dt-ov-h small { font-weight: 500; color: var(--text-3); margin-left: 8px; }
.dt-ov-kpis { margin-bottom: 4px; }
.dt-ov-kpi .v { font-size: 26px; }
.dt-ov-kpi .v.amber { color: #b45309; } .dt-ov-kpi .v.red { color: var(--danger, #dc2626); } .dt-ov-kpi .v.green { color: #15803d; }
.dt-ov-kpi .l b { color: var(--text-1); font-weight: 600; } .dt-ov-kpi .l b.warn { color: #b45309; }
.dt-ov-kpi.go { cursor: pointer; } .dt-ov-kpi.go:hover { border-color: #cbd5e1; }
.dt-ov-panel { padding: 14px 16px; }
.dt-ov-grid { margin: 14px 0 0; }
.dt-ov-ph { font-size: 13.5px; font-weight: 700; margin: 0 0 8px; } .dt-ov-ph small { font-weight: 500; color: var(--text-3); margin-left: 8px; }
.dt-ov-panel .row { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--border-soft); font-size: 13.5px; }
.dt-ov-panel .row:last-child { border-bottom: 0; }
.dt-ov-panel .row .t { font-weight: 600; color: var(--text-1); } .dt-ov-panel .row .r { color: var(--text-2); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.dt-ov-panel .row .r b { color: var(--text-1); } .dt-ov-panel .row .r b.bad { color: var(--danger, #dc2626); }
.dt-ov-panel .row.go { cursor: pointer; } .dt-ov-panel .row.go:hover .t { color: var(--navy); }
.dt-ov-ladder { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 6px; align-items: center; }
.dt-ov-ladder .step { background: var(--bg); border-radius: 10px; padding: 10px 12px; text-align: center; }
.dt-ov-ladder .step .n { font-size: 22px; font-weight: 800; color: var(--navy); line-height: 1; font-variant-numeric: tabular-nums; }
.dt-ov-ladder .step .l { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.dt-ov-ladder .rate { text-align: center; font-size: 12px; color: var(--text-3); line-height: 1.15; min-width: 64px; }
.dt-ov-ladder .rate b { display: block; font-size: 14px; color: var(--text-1); font-variant-numeric: tabular-nums; }
.dt-ov-ladder .rate b.good { color: #15803d; } .dt-ov-ladder .rate b.bad { color: var(--danger, #dc2626); }
.dt-ov-trend { font-size: 12.5px; color: var(--text-2); margin-top: 10px; display: flex; gap: 14px; flex-wrap: wrap; }
.dt-ov-trend b { color: var(--text-1); } .dt-ov-trend .up { color: #15803d; font-weight: 700; } .dt-ov-trend .down { color: var(--danger, #dc2626); font-weight: 700; } .dt-ov-trend .same { color: var(--text-3); }
.dt-ov-trend .go { cursor: pointer; color: var(--navy); font-weight: 600; }
.dt-ov-bars { display: flex; align-items: flex-end; gap: 6px; height: 56px; margin: 4px 0 4px; }
.dt-ov-bars div { flex: 1; background: #e9edf2; border-radius: 3px 3px 0 0; position: relative; height: 100%; }
.dt-ov-bars div i { position: absolute; bottom: 0; left: 0; right: 0; background: var(--navy); border-radius: 3px 3px 0 0; }
.dt-ov-bars div.today i { background: var(--orange); }
.dt-ov-days { display: flex; gap: 6px; font-size: 11px; color: var(--text-3); margin-bottom: 6px; } .dt-ov-days span { flex: 1; text-align: center; }
.dt-ov-spark { width: 100%; height: 40px; display: block; margin-bottom: 4px; }
.dt-pulse { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.dt-pulse-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dt-pulse-card .head { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.dt-pulse-card .ty { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; flex: none; }
.dt-pulse-card .ty.camp { background: #ffedd5; color: #9a3412; } .dt-pulse-card .ty.weekly { background: #dcfce7; color: #166534; } .dt-pulse-card .ty.league { background: #e0e7ff; color: #3730a3; } .dt-pulse-card .ty.membership { background: var(--bg); color: var(--text-2); }
.dt-pulse-card .nm { font-weight: 700; font-size: 15px; color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-pulse-card .when { margin-left: auto; font-size: 12.5px; color: var(--text-3); white-space: nowrap; flex: none; }
.dt-pulse-card .big { display: flex; align-items: baseline; gap: 10px; }
.dt-pulse-card .big .n { font-size: 30px; font-weight: 800; line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
.dt-pulse-card .big .n small { font-size: 14px; font-weight: 600; color: var(--text-3); }
.dt-pulse-card .big .d { font-size: 13px; font-weight: 600; } .dt-pulse-card .big .d.up { color: #15803d; } .dt-pulse-card .big .d.flat { color: var(--text-3); } .dt-pulse-card .big .d.down { color: var(--danger, #dc2626); }
.dt-pulse-chart { width: 100%; height: 96px; display: block; }
.dt-pulse-card .legend { display: flex; gap: 12px; font-size: 11.5px; color: var(--text-3); flex-wrap: wrap; }
.dt-pulse-card .legend i { display: inline-block; width: 14px; height: 3px; vertical-align: middle; margin-right: 5px; border-radius: 2px; }
.dt-pulse-card .legend .dash { background: repeating-linear-gradient(90deg, #94a3b8 0 3px, transparent 3px 6px); }
.dt-pulse-card .legend .sq { width: 9px; height: 9px; border-radius: 2px; }
.dt-pulse-card .verdict { font-size: 13px; color: var(--text-2); } .dt-pulse-card .verdict b { color: var(--text-1); font-weight: 600; }
.dt-pulse-card .verdict .ok { color: #15803d; font-weight: 700; } .dt-pulse-card .verdict .warn { color: #b45309; font-weight: 700; }
.dt-pulse-card .funnel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 2px; }
.dt-pulse-card .funnel div { background: var(--bg); border-radius: 8px; padding: 6px 8px; font-size: 12px; color: var(--text-2); }
.dt-pulse-card .funnel b { display: block; font-size: 15px; color: var(--text-1); font-variant-numeric: tabular-nums; }
@media (max-width: 720px) {
  .dt-ov-grid { grid-template-columns: 1fr; }
  .dt-ov-ladder { grid-template-columns: 1fr auto 1fr; }
  .dt-ov-ladder .rate:nth-child(6), .dt-ov-ladder .step:nth-child(7) { display: none; }
}

/* ---- Attendance from the desk (session drawer + family Bookings tab) ---- */
.dt-seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; flex: none; }
.dt-seg button { font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--text-2); background: var(--white); border: 0; border-right: 1px solid var(--border); padding: 5px 10px; cursor: pointer; }
.dt-seg button:last-child { border-right: 0; }
.dt-seg button:hover { background: var(--bg); }
.dt-seg button.dim { color: var(--text-3); }
.dt-seg button.on-p { background: #dcfce7; color: #166534; }
.dt-seg button.on-a { background: #fee2e2; color: #991b1b; }
.dt-seg button.on-c { background: var(--bg); color: var(--text-1); }
.dt-seg button[disabled] { cursor: default; opacity: .6; }
.dt-att-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; margin: 12px 0 8px; background: #eef2fb; border: 1px solid #cfd8ee; border-radius: 10px; font-size: 13px; color: var(--text-2); }
.dt-att-bar b { color: var(--text-1); } .dt-att-bar b.p { color: #166534; } .dt-att-bar b.a { color: #991b1b; } .dt-att-bar b.u { color: #b45309; }
.dt-att-bar .dt-link { color: var(--navy); }
.dt-att-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border-soft); }
.dt-att-row:last-child { border-bottom: 0; }
.dt-att-row .n { font-size: 14px; color: var(--text-1); }
.dt-att-row .dt-seg { grid-row: span 2; }
.dt-att-row .s { grid-column: 1; font-size: 12.5px; color: var(--text-2); }
.dt-att-row .s .warn { color: #b45309; font-weight: 600; }
.dt-att-row .s .dt-acct-warn svg { width: 12px; height: 12px; vertical-align: -2px; margin-right: 3px; }
.dt-att-walk { padding: 10px 0 4px; }
.dt-att-walk .dt-link { color: var(--navy); font-size: 13px; }
.dt-att-search { width: 100%; box-sizing: border-box; margin-top: 8px; font-family: inherit; font-size: 13.5px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; }
.dt-att-results { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.dt-att-results button { font-family: inherit; text-align: left; font-size: 13px; background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; cursor: pointer; }
.dt-att-results button:hover { background: var(--bg); }
.dt-att-results button span { color: var(--text-3); margin-left: 6px; }
.dt-att-lock { font-size: 12px; color: var(--text-3); margin: 8px 0 0; }
.dt-sess-unmarked { color: #b45309; font-weight: 700; }
.dt-sess-marked { color: #166534; }

/* ---- Session drawer: same bones as the family drawer ---- */
.dt-sx-who { padding: 14px 20px 12px; }
.dt-sx-when { font-size: 15px; color: var(--text-2); } .dt-sx-when b { color: var(--text-1); font-weight: 700; }
.dt-sx-where { margin-top: 6px; font-size: 13px; color: var(--text-2); display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.dt-sx-where svg { width: 13px; height: 13px; color: var(--text-3); vertical-align: -2px; margin-right: 4px; }
.dt-sx-where span { display: inline-flex; align-items: center; }
.dt-sx-acts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 12px 20px; background: #eef2fb; border-top: 1px solid #cfd8ee; border-bottom: 1px solid #cfd8ee; }
.dt-sx-acts .dt-fx-btn svg, .dt-sx-acts .dt-fx-q svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 2px; }
.dt-sx-walk { padding: 10px 20px 0; }
.dt-sx-glance { border-bottom: 1px solid var(--border); }
.dt-sx-body { padding: 4px 20px 16px; }
.dt-att-list .dt-att-row:first-child { padding-top: 12px; }
.dt-att-list .dt-empty { padding: 18px 0; }
.dt-att-lock { display: none; }

/* ---- Season roster: players × weeks, one square per session ---- */
.dt-rs { overflow-x: auto; }
.dt-rs-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dt-rs-table th { text-align: left; font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; padding: 6px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; vertical-align: bottom; }
.dt-rs-table td { padding: 8px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
.dt-rs-table td.dt-num { color: var(--text-3); width: 24px; }
.dt-rs-name b { display: block; color: var(--text-1); font-weight: 700; }
.dt-rs-name > span { font-size: 12px; color: var(--text-2); }
.dt-rs-name .dt-rs-facts { display: none; }
.dt-rs-n { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.dt-rs-n small { font-weight: 500; color: var(--text-3); }
.dt-rs-n .dt-rs-warn { font-size: 11.5px; }
.dt-rs-n.good, .dt-rs-facts b.good { color: #15803d; } .dt-rs-n.bad, .dt-rs-facts b.bad { color: #dc2626; }
.dt-rs-d { white-space: nowrap; color: var(--text-2); }
.dt-rs-warn { color: #b45309; font-weight: 600; }
.dt-rs-strip, .dt-rs-weeks { display: flex; gap: 6px; }
.dt-rs-wk { display: inline-flex; gap: 2px; flex: none; }
.dt-rs-weeks .dt-rs-wk { font-size: 10px; color: var(--text-3); font-weight: 600; text-transform: none; letter-spacing: 0; overflow: hidden; }
.dt-rs-sq { display: inline-block; width: 12px; height: 12px; border-radius: 2px; background: #eef0f3; box-sizing: border-box; border: 0; padding: 0; flex: none; }
button.dt-rs-sq { cursor: pointer; }
.dt-rs-sq.p { background: #15803d; } .dt-rs-sq.a { background: #dc2626; } .dt-rs-sq.b { background: #c7d2fe; }
.dt-rs-sq.t { background: var(--orange); } .dt-rs-sq.tb { background: #fff; border: 2px solid var(--orange); }
.dt-rs-sq.u { background: #fff; border: 2px solid #d97706; }
button.dt-rs-sq:hover, button.dt-rs-sq:focus-visible { outline: 2px solid var(--navy); outline-offset: 1px; }
.dt-rs-legend { font-size: 12px; color: var(--text-3); margin-top: 10px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.dt-rs-legend .dt-rs-sq { margin-right: 4px; vertical-align: -1px; }
.dt-rs-range { display: inline-flex; gap: 6px; margin-left: 8px; }
.dt-print-only { display: none !important; }
@media (max-width: 720px) {
  .dt-rs-table thead { display: none; }
  .dt-rs-table, .dt-rs-table tbody, .dt-rs-table tr, .dt-rs-table td { display: block; }
  .dt-rs-table tr { padding: 10px 0; border-bottom: 1px solid var(--border-soft); }
  .dt-rs-table td { padding: 2px 0; border: 0; }
  .dt-rs-table td.dt-num, .dt-rs-table td.dt-rs-n, .dt-rs-table td.dt-rs-d { display: none; }
  .dt-rs-name .dt-rs-facts { display: block; font-size: 12.5px; color: var(--text-2); }
  .dt-rs-table td.dt-rs-cell { overflow-x: auto; padding-top: 6px; }
}
@media print { .dt-rs { display: none; } #roster-list-table.dt-print-only { display: table !important; } }

/* ---- Reports ---- */
.dt-rp-date { width: 150px; }
.dt-rp-acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--do-bg); border: 1px solid var(--do-line); border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; }
.dt-rp-stamp { margin-left: auto; font-size: 12.5px; color: var(--text-2); }
.dt-rp-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 14px; }
.dt-rp-kpi { background: var(--white); padding: 13px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dt-rp-t { font-size: 12.5px; color: var(--text-2); }
.dt-rp-big { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; color: var(--text-1); }
.dt-rp-big.is-thin, .dt-rp-v.is-thin { color: var(--text-3); font-size: 17px; font-weight: 600; }
.dt-rp-delta { font-size: 12px; min-height: 16px; }
.dt-rp-d.good { color: #15803d; font-weight: 700; } .dt-rp-d.bad { color: #dc2626; font-weight: 700; }
.dt-rp-was, .dt-rp-flat { color: var(--text-3); }
.dt-rp-s { font-size: 12px; color: var(--text-3); }
.dt-rp-note { font-size: 12.5px; color: var(--text-2); margin: 0 0 14px; max-width: 76ch; line-height: 1.5; }
.dt-rp-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; }
.dt-rp-h { font-size: 15px; font-weight: 700; margin: 0 0 12px; color: var(--text-1); }
.dt-rp-sub { font-size: 12.5px; font-weight: 700; color: var(--text-2); margin: 18px 0 8px; }
.dt-rp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.dt-rp-stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dt-rp-v { font-size: 20px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--text-1); }
.dt-rp-line { font-size: 14px; color: var(--text-2); margin: 0 0 12px; }
.dt-rp-line b { color: var(--text-1); font-variant-numeric: tabular-nums; }
.dt-rp-tw { overflow-x: auto; }
.dt-rp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dt-rp-table th { text-align: left; font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; padding: 6px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.dt-rp-table th.n, .dt-rp-table td.n { text-align: right; font-variant-numeric: tabular-nums; }
.dt-rp-table td { padding: 8px; border-bottom: 1px solid var(--border-soft); }
.dt-rp-table tr:last-child td { border-bottom: 0; }
.dt-rp-thin { color: var(--text-3); }
.dt-rp-bars { display: flex; flex-direction: column; gap: 6px; }
.dt-rp-bar { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.dt-rp-bar .z { width: 58px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dt-rp-bar .track { flex: 1; height: 6px; background: var(--border-soft); border-radius: 3px; overflow: hidden; }
.dt-rp-bar .fill { display: block; height: 100%; background: var(--navy); }
.dt-rp-bar .n { width: 34px; text-align: right; color: var(--text-2); font-variant-numeric: tabular-nums; }
@media print {
  #rp-range, .dt-rp-acts { display: none !important; }
  .dt-rp-card, .dt-rp-kpis { break-inside: avoid; border: 1px solid #999; }
}
/* Five tiles never divide evenly into two columns — let the last one span
   the row rather than sit alone beside a gap. */
@media (max-width: 760px) { .dt-rp-kpi:last-child { grid-column: 1 / -1; } }

/* ---- Registrar agenda: a rolling fortnight above the worklist ---- */
.dt-ag { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; margin-bottom: 16px; }
.dt-ag-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.dt-ag-head h2 { font-size: 23px; font-weight: 800; letter-spacing: -.02em; margin: 0; color: var(--text-1); line-height: 1.2; }
.dt-ag-head .sub { display: block; font-size: 14px; color: var(--text-2); margin-top: 3px; }
.dt-ag-counts { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.dt-ag-count { flex: 1 1 220px; display: flex; align-items: center; gap: 12px; text-align: left;
  font-family: inherit; background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 11px 14px; cursor: pointer; }
.dt-ag-count:hover { border-color: var(--text-3); }
.dt-ag-count .v { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.dt-ag-count .l { font-size: 13px; font-weight: 600; color: var(--text-1); }
.dt-ag-count .s { display: block; font-size: 12px; color: var(--text-3); font-weight: 400; }
.dt-ag-count.mark { background: #fffbeb; border-color: #fcd34d; }
.dt-ag-count.mark .v { color: #b45309; }
.dt-ag-count.mark.is-clear { background: var(--white); border-color: var(--border); }
.dt-ag-count.mark.is-clear .v { color: #15803d; }
.dt-ag-count.now .v { color: #dc2626; }
.dt-ag-nav { margin-left: auto; display: inline-flex; flex: none; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; background: var(--white); }
.dt-ag-nav button { font-family: inherit; font-size: 14px; font-weight: 600; color: var(--text-2); background: var(--white); border: 0; border-right: 1px solid var(--border); padding: 7px 14px; cursor: pointer; line-height: 1.3; }
.dt-ag-nav button:last-child { border-right: 0; }
.dt-ag-nav button:hover:not(:disabled) { background: var(--bg); }
.dt-ag-nav button:disabled { color: var(--text-3); cursor: default; }
.dt-ag-nav .dt-ag-wk { min-width: 108px; text-align: center; background: var(--navy); color: #fff; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.dt-ag-nav .dt-ag-wk:hover:not(:disabled), .dt-ag-nav .dt-ag-wk:disabled { background: var(--navy); color: #fff; }
.dt-ag-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 1150px) { .dt-ag-days { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) { .dt-ag-days { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dt-ag-day { border: 1px solid var(--border); border-radius: 10px; padding: 8px; min-height: 92px; display: flex; flex-direction: column; gap: 6px; background: var(--white); }
.dt-ag-day.is-past { background: #fcfcfd; }
.dt-ag-day.is-today { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.dt-ag-day .dh { display: flex; align-items: baseline; justify-content: space-between; font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
.dt-ag-day .dh .num { font-size: 14px; color: var(--text-2); }
.dt-ag-day.is-today .dh, .dt-ag-day.is-today .dh .num { color: var(--navy); }
.dt-ag-none { font-size: 12px; color: var(--border); }
.dt-ag-s { display: block; width: 100%; text-align: left; font-family: inherit; cursor: pointer; border: 1px solid var(--border); border-radius: 8px; padding: 7px 8px; background: var(--white); }
.dt-ag-s:hover { border-color: var(--navy); }
.dt-ag-s .t { display: block; font-size: 11.5px; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.dt-ag-s .n { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-1); line-height: 1.25; margin: 1px 0; }
.dt-ag-s .p { display: block; font-size: 11px; color: var(--text-3); }
.dt-ag-s .d { display: block; font-size: 11.5px; font-weight: 600; margin-top: 3px; color: var(--text-3); }
.dt-ag-s.s-tomark { background: #fffbeb; border-color: #fcd34d; }
.dt-ag-s.s-tomark .d { color: #b45309; }
.dt-ag-s.s-marked .d { color: #15803d; }
.dt-ag-s.s-today { background: var(--do-bg); border-color: var(--do-line); }
.dt-ag-s.s-today .d { color: var(--navy); }
/* The 30-day scorecard is a footer now, not a headline. */
.dt-reg-score { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 11px 16px; margin-top: 16px; }
/* Balance beside the name on the attendance sheet. */
.dt-att-bal { font-size: 11.5px; font-weight: 600; color: var(--text-3); margin-left: 8px; white-space: nowrap; }
.dt-att-bal.is-low { color: #b45309; }
.dt-att-bal.is-out { color: #dc2626; }
.dt-att-bal.is-member { color: #15803d; }
.dt-sx-cost { margin: 0; padding: 8px 20px 0; font-size: 12.5px; font-weight: 600; color: #b45309; }
