/* ==========================================================================
   Steel City Baptist Church CRM — theme
   Plain CSS layered over Filament's fi-* classes (no build step).
   ========================================================================== */

:root {
    --scc-navy-950: #0b1526;
    --scc-navy-900: #0f1d33;
    --scc-navy-800: #172a46;
    --scc-navy-700: #22385a;
    --scc-ink: #0f172a;
    --scc-muted: #64748b;
    --scc-line: #e6eaf0;
    --scc-bg: #f4f6fa;
    --scc-card: #ffffff;
    --scc-radius: 14px;
    --scc-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
    --scc-shadow-lg: 0 10px 30px -12px rgba(15, 29, 51, .25);
}

/* ---------- Page ---------- */
.fi-body { background: var(--scc-bg); -webkit-font-smoothing: antialiased; }
.dark .fi-body { background: #0a1220; }

.fi-header-heading { letter-spacing: -.02em; font-weight: 700; }
.fi-header-subheading { color: var(--scc-muted); }
.fi-breadcrumbs { font-size: .8rem; }

/* ---------- Brand ---------- */
.scc-brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.scc-mark { width: 2.4rem; height: 2.4rem; flex: none; }
.scc-mark-white { display: none; }
.scc-brand-text { display: flex; flex-direction: column; line-height: 1.05; color: var(--scc-ink); }
.scc-brand-text strong { font-size: 1rem; font-weight: 750; letter-spacing: -.01em; }
.scc-brand-text small { font-size: .72rem; font-weight: 500; color: var(--scc-muted); letter-spacing: .02em; text-transform: uppercase; margin-top: .15rem; }
.dark .scc-mark-navy { display: none; }
.dark .scc-mark-white { display: block; }
.dark .scc-brand-text { color: #fff; }
.dark .scc-brand-text small { color: #94a3b8; }

/* Login & other simple pages: large centred mark */
.fi-simple-layout .scc-brand { flex-direction: column; gap: .9rem; text-align: center; }
.fi-simple-layout .scc-mark { width: 5.5rem; height: 5.5rem; }
.fi-simple-layout .scc-brand-text strong { font-size: 1.25rem; }
.fi-simple-layout .scc-brand-text { align-items: center; }
.fi-simple-layout { background:
    radial-gradient(1200px 500px at 50% -10%, rgba(45, 90, 155, .14), transparent 60%),
    var(--scc-bg); }
.fi-simple-main { border-radius: 20px !important; box-shadow: var(--scc-shadow-lg) !important; border: 1px solid var(--scc-line); }
.fi-simple-header-heading { letter-spacing: -.02em; }

/* ---------- Sidebar (deep navy) ---------- */
.fi-sidebar {
    background: linear-gradient(180deg, var(--scc-navy-900) 0%, var(--scc-navy-950) 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, .04);
}
.fi-sidebar-header { background: transparent !important; box-shadow: none !important; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.fi-sidebar .scc-mark-navy { display: none; }
.fi-sidebar .scc-mark-white { display: block; }
.fi-sidebar .scc-brand-text { color: #fff; }
.fi-sidebar .scc-brand-text small { color: #8ea0bd; }
.fi-sidebar-nav { padding-top: 1rem; }
.fi-sidebar-group-label { color: #6f83a3 !important; font-size: .68rem !important; font-weight: 700 !important; letter-spacing: .09em; text-transform: uppercase; }
.fi-sidebar-group-btn .fi-icon, .fi-sidebar-group-collapse-btn { color: #6f83a3 !important; }
.fi-sidebar-item-btn { border-radius: 10px !important; transition: background-color .15s ease, color .15s ease; }
.fi-sidebar-item-label { color: #c7d2e3 !important; font-weight: 500 !important; }
.fi-sidebar-item-btn > .fi-icon { color: #7f93b3 !important; }
.fi-sidebar-item-btn:hover { background: rgba(255, 255, 255, .06) !important; }
.fi-sidebar-item-btn:hover .fi-sidebar-item-label { color: #fff !important; }
/* Active page: one even, soft fill (no side bar) */
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn { background: rgba(255, 255, 255, .1) !important; box-shadow: none !important; }
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn .fi-sidebar-item-label { color: #fff !important; font-weight: 600 !important; }
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn > .fi-icon { color: #fff !important; }
.fi-sidebar .fi-badge { box-shadow: none; }
.fi-sidebar-footer, .fi-sidebar-database-notifications-btn-label { color: #c7d2e3 !important; }
.fi-sidebar .fi-icon-btn, .fi-sidebar-close-sidebar-btn, .fi-sidebar-close-collapse-sidebar-btn, .fi-sidebar-open-collapse-sidebar-btn { color: #9fb1cc !important; }

/* ---------- Top bar ---------- */
.fi-topbar {
    background: rgba(255, 255, 255, .82) !important;
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    box-shadow: none !important;
    border-bottom: 1px solid var(--scc-line);
}
.dark .fi-topbar { background: rgba(10, 18, 32, .82) !important; border-color: rgba(255, 255, 255, .06); }

/* ---------- Cards / sections ---------- */
.fi-section, .fi-ta-ctn, .fi-wi-stats-overview-stat, .fi-wi-chart, .fi-wi-widget > .fi-section {
    border-radius: var(--scc-radius) !important;
    box-shadow: var(--scc-shadow) !important;
    --tw-ring-color: var(--scc-line);
}
.fi-section:not(.fi-section-not-contained), .fi-ta-ctn { border: 1px solid var(--scc-line); --tw-ring-shadow: 0 0 #0000 !important; }
.dark .fi-section:not(.fi-section-not-contained), .dark .fi-ta-ctn { border-color: rgba(255, 255, 255, .07); }
.fi-section-header-heading { font-weight: 650 !important; letter-spacing: -.01em; }
.fi-section-header-description { color: var(--scc-muted); }

/* ---------- Tables ---------- */
.fi-ta-header-cell {
    background: #f8fafc;
    font-size: .72rem !important;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--scc-muted) !important;
}
.dark .fi-ta-header-cell { background: rgba(255, 255, 255, .02); }
.fi-ta-row { transition: background-color .12s ease; }
.fi-ta-row:hover { background: #f7f9fc; }
.dark .fi-ta-row:hover { background: rgba(255, 255, 255, .03); }
.fi-ta-header-toolbar { padding-block: .85rem !important; }

/* ---------- Tabs ---------- */
.fi-tabs { border-radius: 12px !important; box-shadow: var(--scc-shadow) !important; border: 1px solid var(--scc-line); }
.fi-tabs-item { border-radius: 9px !important; }

/* ---------- Badges & buttons ---------- */
.fi-badge { border-radius: 999px !important; font-weight: 600; padding-inline: .6rem !important; }
.fi-btn { border-radius: 10px !important; font-weight: 600 !important; }
.fi-input-wrp { border-radius: 10px !important; }

/* ---------- Stats tiles ---------- */
.fi-wi-stats-overview-stat { padding: 1.25rem 1.35rem !important; border: 1px solid var(--scc-line); transition: transform .15s ease, box-shadow .15s ease; }
.fi-wi-stats-overview-stat:hover { transform: translateY(-1px); box-shadow: var(--scc-shadow-lg) !important; }
.fi-wi-stats-overview-stat-label { font-size: .8rem !important; font-weight: 600 !important; color: var(--scc-muted) !important; text-transform: uppercase; letter-spacing: .05em; }
.fi-wi-stats-overview-stat-value { font-size: 2rem !important; letter-spacing: -.03em; font-weight: 750 !important; }
.fi-wi-stats-overview-stat-label-ctn .fi-icon {
    width: 2.25rem !important; height: 2.25rem !important; padding: .5rem; border-radius: 10px;
    background: color-mix(in oklab, var(--primary-500) 12%, transparent); color: var(--primary-600) !important;
}

/* ---------- Modals & dropdowns ---------- */
.fi-modal-window { border-radius: 18px !important; }
.fi-dropdown-panel { border-radius: 12px !important; box-shadow: var(--scc-shadow-lg) !important; }

/* ---------- Avatars ---------- */
.fi-avatar, .fi-user-avatar { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--scc-line); }

/* ---------- Dashboard: welcome banner ---------- */
.scc-welcome {
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem;
    padding: 1.6rem 1.75rem; border-radius: 18px; color: #fff;
    background:
        radial-gradient(600px 220px at 100% 0%, rgba(127, 176, 255, .28), transparent 70%),
        linear-gradient(135deg, #1d3456 0%, #2d5a9b 100%);
    box-shadow: var(--scc-shadow-lg);
}
.scc-welcome h2 { font-size: 1.65rem; font-weight: 750; letter-spacing: -.025em; margin: .15rem 0 .25rem; }
.scc-welcome-date { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #b9cdf0; margin: 0; }
.scc-welcome-sub { color: #d5e1f5; margin: 0; font-size: .92rem; }
.scc-welcome-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.scc-quick {
    display: inline-flex; align-items: center; gap: .5rem; padding: .6rem .95rem; border-radius: 11px;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18);
    color: #fff; font-weight: 600; font-size: .86rem; text-decoration: none; transition: background-color .15s ease, transform .15s ease;
}
.scc-quick:hover { background: rgba(255, 255, 255, .22); transform: translateY(-1px); }
.scc-quick-icon { width: 1rem; height: 1rem; color: #cfe0ff; }

/* ---------- Dashboard: visitor pipeline ---------- */
.scc-pipeline { display: flex; flex-direction: column; gap: .7rem; }
.scc-pipe-row { display: grid; grid-template-columns: 7.5rem 1fr 2.25rem; align-items: center; gap: .75rem; text-decoration: none; color: inherit; }
.scc-pipe-row:hover .scc-pipe-label { color: var(--primary-600); }
.scc-pipe-label { font-size: .86rem; font-weight: 500; }
.scc-pipe-track { height: .7rem; border-radius: 99px; background: #eef2f7; overflow: hidden; }
.dark .scc-pipe-track { background: rgba(255, 255, 255, .06); }
.scc-pipe-fill { display: block; height: 100%; border-radius: 99px; }
.scc-pipe-count { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.scc-c-danger { background: var(--danger-500); }
.scc-c-warning { background: var(--warning-500); }
.scc-c-info { background: var(--info-500); }
.scc-c-primary { background: var(--primary-500); }
.scc-c-success { background: var(--success-500); }
.scc-c-gray { background: var(--gray-400); }

/* ---------- Person profile header ---------- */
.scc-profile { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.scc-profile-photo { width: 5.5rem; height: 5.5rem; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--scc-line); }
.scc-profile-main { flex: 1 1 16rem; min-width: 0; }
.scc-profile-name { font-size: 1.5rem; font-weight: 750; letter-spacing: -.02em; margin: 0; line-height: 1.2; }
.scc-profile-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; margin-top: .45rem; color: var(--scc-muted); font-size: .88rem; }
.scc-pill { display: inline-flex; align-items: center; padding: .2rem .65rem; border-radius: 99px; font-size: .75rem; font-weight: 650; }
.scc-pill-success { background: color-mix(in oklab, var(--success-500) 15%, transparent); color: var(--success-700); }
.scc-pill-info { background: color-mix(in oklab, var(--info-500) 15%, transparent); color: var(--info-700); }
.scc-pill-warning { background: color-mix(in oklab, var(--warning-500) 18%, transparent); color: var(--warning-700); }
.scc-pill-primary { background: color-mix(in oklab, var(--primary-500) 15%, transparent); color: var(--primary-700); }
.scc-pill-gray, .scc-pill-danger { background: #eef2f7; color: #475569; }
.scc-contact { display: flex; flex-wrap: wrap; gap: .5rem; }
.scc-contact a, .scc-contact span {
    display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .85rem; border-radius: 11px;
    border: 1px solid var(--scc-line); background: #fff; color: var(--scc-ink); font-size: .85rem; font-weight: 600; text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.dark .scc-contact a, .dark .scc-contact span { background: rgba(255, 255, 255, .03); border-color: rgba(255, 255, 255, .08); color: #e2e8f0; }
.scc-contact a:hover { border-color: var(--primary-300); box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary-500) 12%, transparent); }
.scc-contact .fi-icon, .scc-contact svg { width: 1rem; height: 1rem; color: var(--primary-600); }
.scc-contact span { color: var(--scc-muted); cursor: default; }
@media (max-width: 640px) {
    .scc-profile-photo { width: 4.25rem; height: 4.25rem; }
    .scc-profile-name { font-size: 1.25rem; }
    .scc-contact a, .scc-contact span { flex: 1 1 auto; justify-content: center; }
}

/* ---------- Journey to membership ---------- */
.scc-jr { --jr-line: #e3e8ef; --jr-on: var(--primary-600); --jr-goal: var(--success-600); }
.dark .scc-jr { --jr-line: rgba(255, 255, 255, .1); }
.scc-jr-steps { position: relative; display: grid; grid-template-columns: repeat(var(--steps), minmax(0, 1fr)); list-style: none; margin: .25rem 0 1.4rem; padding: 0; }
.scc-jr-steps::before, .scc-jr-steps::after {
    content: ""; position: absolute; top: 15px; height: 3px; border-radius: 3px;
    left: calc(50% / var(--steps)); right: calc(50% / var(--steps));
}
.scc-jr-steps::before { background: var(--jr-line); }
.scc-jr-steps::after { background: var(--jr-on); right: auto; width: calc((100% - 100% / var(--steps)) * var(--progress) / 100); }
.scc-jr-steps li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 .15rem; }
.scc-jr-dot {
    width: 33px; height: 33px; border-radius: 50%; display: grid; place-items: center;
    background: #fff; border: 2px solid var(--jr-line); color: #94a3b8; font-size: .8rem; font-weight: 700;
}
.dark .scc-jr-dot { background: #0f172a; }
.scc-jr-dot svg { width: .85rem; height: .85rem; }
.scc-jr-steps li.is-done .scc-jr-dot { background: var(--jr-on); border-color: var(--jr-on); color: #fff; box-shadow: 0 0 0 4px color-mix(in oklab, var(--primary-500) 15%, transparent); }
.scc-jr-steps li.is-goal.is-done .scc-jr-dot { background: var(--jr-goal); border-color: var(--jr-goal); box-shadow: 0 0 0 4px color-mix(in oklab, var(--success-500) 18%, transparent); }
.scc-jr-label { margin-top: .5rem; font-size: .78rem; font-weight: 650; line-height: 1.2; }
.scc-jr-steps li:not(.is-done) .scc-jr-label { color: #94a3b8; font-weight: 500; }
.scc-jr-date { margin-top: .15rem; font-size: .7rem; color: var(--scc-muted); min-height: 1em; }

.scc-jr-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); gap: .6rem; margin-bottom: 1.4rem; }
.scc-jr-stats > div { padding: .75rem .9rem; border-radius: 12px; background: #f6f8fb; border: 1px solid #edf1f6; }
.dark .scc-jr-stats > div { background: rgba(255, 255, 255, .03); border-color: rgba(255, 255, 255, .06); }
.scc-jr-stats span { display: block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--scc-muted); }
.scc-jr-stats strong { font-size: 1.45rem; font-weight: 750; letter-spacing: -.02em; line-height: 1.3; }
.scc-jr-stats em { font-style: normal; font-size: .78rem; color: var(--scc-muted); margin-left: .3rem; }

.scc-jr-chart-head { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; font-weight: 650; margin-bottom: .6rem; }
.scc-jr-key { display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; color: var(--scc-muted); font-size: .74rem; }
.scc-jr-key i { display: inline-block; width: .6rem; height: .6rem; }
.scc-jr-key .k-bar { border-radius: 2px; background: var(--jr-on); }
.scc-jr-key .k-pin { border-radius: 50%; background: var(--warning-500); margin-left: .5rem; }
.scc-jr-chart {
    display: grid; grid-template-columns: repeat(var(--weeks), minmax(0, 1fr)); align-items: end; gap: 3px;
    height: 7.5rem; padding-top: 1.1rem; border-bottom: 1px solid var(--jr-line);
    background-image: linear-gradient(to top, var(--jr-line) 1px, transparent 1px); background-size: 100% 33.33%;
}
.scc-jr-col { position: relative; height: 100%; display: flex; align-items: flex-end; }
.scc-jr-bar { width: 100%; border-radius: 4px 4px 1px 1px; background: linear-gradient(180deg, var(--primary-500), var(--primary-700)); }
.scc-jr-bar.is-empty { background: var(--jr-line); border-radius: 2px; }
.scc-jr-col:hover .scc-jr-bar:not(.is-empty) { filter: brightness(1.15); }
.scc-jr-pin { position: absolute; top: -1rem; left: 50%; width: .7rem; height: .7rem; margin-left: -.35rem; border-radius: 50%; background: var(--warning-500); box-shadow: 0 0 0 2px #fff; }
.scc-jr-pin.is-goal { background: var(--jr-goal); }
.scc-jr-axis { display: flex; justify-content: space-between; font-size: .72rem; color: var(--scc-muted); margin-top: .35rem; }
.scc-jr-empty { font-size: .86rem; color: var(--scc-muted); }
@media (max-width: 640px) {
    .scc-jr-label { font-size: .64rem; }
    .scc-jr-date { display: none; }
    .scc-jr-dot { width: 27px; height: 27px; }
    .scc-jr-steps::before, .scc-jr-steps::after { top: 12px; }
}

/* ---------- Offering ledger ---------- */
.scc-ledger-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.scc-ledger-stat { background: var(--scc-card); border: 1px solid var(--scc-line); border-radius: var(--scc-radius); padding: 14px 16px; box-shadow: var(--scc-shadow); display: flex; flex-direction: column; gap: 2px; }
.scc-ledger-stat span { font-size: 12px; color: var(--scc-muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.scc-ledger-stat b { font-size: 20px; font-variant-numeric: tabular-nums; color: var(--scc-ink); }
.scc-ledger-stat em { font-style: normal; font-size: 12px; color: var(--scc-muted); }
.scc-ledger-stat.is-main { background: var(--scc-navy-900); border-color: var(--scc-navy-900); }
.scc-ledger-stat.is-main span, .scc-ledger-stat.is-main em { color: #aab6c8; }
.scc-ledger-stat.is-main b { color: #fff; font-size: 24px; }
.scc-ledger-stat.is-ok em { color: #15803d; font-weight: 600; }
.scc-ledger-stat.is-off em { color: #b91c1c; font-weight: 600; }
.scc-ledger-entry.is-editing { outline: 2px solid #f59e0b; }
.scc-ledger-total { display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-end; height: 100%; padding-top: 4px; }
.scc-ledger-total small { font-size: 12px; color: var(--scc-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.scc-ledger-total b { font-size: 28px; line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--scc-ink); }
.dark .scc-ledger-total b, .dark .scc-ledger-stat b { color: #fff; }
.scc-ledger-actions { display: flex; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.scc-ledger-tip { font-size: 12px; color: var(--scc-muted); }
.scc-ledger-wrap { background: var(--scc-card); border: 1px solid var(--scc-line); border-radius: var(--scc-radius); box-shadow: var(--scc-shadow); overflow-x: auto; }
.scc-ledger { width: 100%; border-collapse: collapse; font-size: 14px; }
.scc-ledger th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--scc-muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--scc-line); white-space: nowrap; background: #f8fafc; }
.scc-ledger td { padding: 9px 12px; border-bottom: 1px solid var(--scc-line); vertical-align: top; }
.scc-ledger tbody tr:hover { background: #f8fafc; }
.scc-ledger tr.is-editing { background: #fffbeb; }
.scc-ledger .amt { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.scc-ledger .num { color: var(--scc-muted); font-variant-numeric: tabular-nums; width: 1%; white-space: nowrap; }
.scc-ledger .name a { font-weight: 600; color: var(--scc-ink); }
.scc-ledger .name a:hover { text-decoration: underline; }
.scc-ledger .total { font-weight: 700; }
.scc-ledger .muted { color: var(--scc-muted); }
.scc-ledger .other { font-size: 13px; white-space: nowrap; }
.scc-ledger .row-actions { white-space: nowrap; width: 1%; }
.scc-ledger .empty { text-align: center; color: var(--scc-muted); padding: 32px; }
.scc-ledger tfoot td { font-weight: 700; border-top: 2px solid var(--scc-ink); border-bottom: 0; background: #f8fafc; }
.dark .scc-ledger-stat, .dark .scc-ledger-wrap { background: #111c2e; border-color: #22385a; }
.dark .scc-ledger th, .dark .scc-ledger tfoot td { background: #0f1d33; }
.dark .scc-ledger td, .dark .scc-ledger th { border-color: #22385a; }
.dark .scc-ledger .name a { color: #fff; }
.dark .scc-ledger tbody tr:hover { background: #0f1d33; }
/* Ledger: no number spinners in amount boxes (they crowd the digits) */
.scc-ledger-entry input[type=number]::-webkit-inner-spin-button, .scc-ledger-entry input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.scc-ledger-entry input[type=number] { -moz-appearance: textfield; text-align: right; }
/* Cash count */
.scc-cash { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .scc-cash { grid-template-columns: 1fr; } }
.scc-cash-table { border: 1px solid var(--scc-line); border-radius: 10px; overflow: hidden; }
.scc-cash-table td { vertical-align: middle; padding: 6px 12px; }
.scc-cash-input { width: 6.5rem; text-align: right; border: 1px solid #cbd5e1; border-radius: 8px; padding: 5px 8px; font-variant-numeric: tabular-nums; background: #fff; color: var(--scc-ink); }
.scc-cash-input:focus { outline: 2px solid #3b5b8f; outline-offset: 0; border-color: #3b5b8f; }
.scc-cash-input::-webkit-inner-spin-button, .scc-cash-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.scc-cash-input { -moz-appearance: textfield; }
.scc-cash-dollar { display: inline-flex; align-items: center; gap: 4px; color: var(--scc-muted); }
.scc-cash-check { display: flex; flex-direction: column; gap: 12px; max-width: 320px; }
.dark .scc-cash-input { background: #0f1d33; border-color: #22385a; color: #fff; }
/* Ledger table: fits a 1920 screen at 125% scaling (≈1200px of content) without sideways scroll */
.scc-ledger { font-size: 14px; }
.scc-ledger th { white-space: normal; overflow-wrap: anywhere; letter-spacing: .02em; line-height: 1.2; font-size: 10.5px; vertical-align: bottom; padding: 9px 6px; }
.scc-ledger td { padding: 9px 6px; vertical-align: middle; }
.scc-ledger th:first-child, .scc-ledger td:first-child { padding-left: 14px; }
.scc-ledger th:last-child, .scc-ledger td:last-child { padding-right: 12px; }
.scc-ledger th.amt { text-align: right; }
.scc-ledger .row-actions > div { display: flex; gap: 0; justify-content: flex-end; }
.scc-ledger .other { white-space: normal; }
.scc-ledger .other div { white-space: nowrap; }
.scc-ledger .method { white-space: nowrap; }
.scc-cash-table { font-size: 14px; }
@media (max-width: 1400px) {
    .scc-ledger { font-size: 13px; }
    .scc-ledger th { padding: 8px 4px; font-size: 10px; }
    .scc-ledger td { padding: 8px 4px; }
}
/* Offering receipts */
.scc-notice { border: 1px solid #fcd34d; background: #fffbeb; color: #78350f; border-radius: 12px; padding: 12px 16px; font-size: 14px; }
.scc-receipts-bar { display: flex; gap: 12px; align-items: center; }
.scc-tab { text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.scc-tab:hover { border-color: #94a3b8; }
.scc-tab.is-active { border-color: #22385a; box-shadow: 0 0 0 2px #22385a; }

/* ---------- Notification bell: bolder icon, red round count ---------- */
.fi-topbar .fi-topbar-database-notifications-btn,
.fi-topbar .fi-icon-btn:has(> .fi-icon-btn-badge-ctn) { color: #0f172a !important; }
.fi-topbar .fi-topbar-database-notifications-btn .fi-icon,
.fi-topbar .fi-icon-btn:has(> .fi-icon-btn-badge-ctn) > .fi-icon { width: 1.6rem !important; height: 1.6rem !important; stroke-width: 2.2; }
.fi-icon-btn > .fi-icon-btn-badge-ctn { background: transparent !important; border-radius: 999px !important; top: .3rem !important; }
.fi-icon-btn > .fi-icon-btn-badge-ctn .fi-badge {
    background: #dc2626 !important; color: #fff !important;
    min-width: 1.35rem; height: 1.35rem; padding: 0 .3rem !important;
    border-radius: 999px !important; display: inline-flex; align-items: center; justify-content: center;
    font-size: .72rem !important; font-weight: 800 !important; line-height: 1;
    box-shadow: 0 0 0 2px #fff !important; --tw-ring-color: transparent;
}
.fi-icon-btn > .fi-icon-btn-badge-ctn .fi-badge * { color: #fff !important; }

/* ── Worker schedules ───────────────────────────────────────────── */
.scc-sched-tabs { display: flex; flex-wrap: wrap; gap: .4rem; }
.scc-sched-tab { padding: .35rem .85rem; border-radius: 999px; border: 1px solid #cbd5e1; background: #fff; font-size: .875rem; color: #0f172a; }
.scc-sched-tab:hover { border-color: #2d5a9b; }
.scc-sched-tab.is-active { background: #2d5a9b; border-color: #2d5a9b; color: #fff; font-weight: 600; }
.scc-sched-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; }
.scc-sched-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.scc-sched-muted { color: #64748b; font-weight: 400; }
.scc-sched-wrap { background: #fff; border: 1px solid #e2e8f0; border-radius: .75rem; overflow-x: auto; }
.scc-sched { width: 100%; border-collapse: collapse; font-size: .85rem; }
.scc-sched th, .scc-sched td { padding: .4rem .5rem; border-bottom: 1px solid #e2e8f0; text-align: left; vertical-align: top; }
.scc-sched thead th { background: #f8fafc; font-size: .75rem; color: #334155; white-space: nowrap; }
.scc-sched th.scc-sched-service { text-align: center; border-left: 1px solid #e2e8f0; color: #0f172a; font-size: .8rem; }
.scc-sched th.scc-sched-pos { font-weight: 500; }
.scc-sched .scc-sched-date { font-weight: 700; white-space: nowrap; width: 4.5rem; }
.scc-sched tr.is-today td { background: #eff6ff; }
.scc-sched-select, .scc-sched-note { width: 100%; min-width: 7.5rem; border: 1px solid #cbd5e1; border-radius: .4rem; padding: .25rem .4rem; font-size: .83rem; background: #fff; color: #0f172a; }
.scc-sched-select.is-empty { color: #94a3b8; background: #f8fafc; }
.scc-sched-note { margin-top: .25rem; }
.scc-sched-notes .scc-sched-note { min-width: 9rem; margin: 0; }
.scc-sched-sent { display: inline-block; margin-top: .15rem; font-size: .7rem; color: #059669; }
.scc-sched-pending { display: flex; flex-wrap: wrap; gap: .25rem 1rem; padding: .4rem 0; border-top: 1px solid #f1f5f9; font-size: .85rem; }

.scc-day-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); align-items: start; }
.scc-day-service { background: #fff; border: 1px solid #e2e8f0; border-radius: .75rem; padding: .7rem .9rem .5rem; }
.scc-day-time { font-weight: 800; font-size: 1rem; color: #2d5a9b; padding-bottom: .4rem; }
.scc-day-ministry { padding: .45rem 0; border-top: 1px solid #f1f5f9; }
.scc-day-mname { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #475569; margin-bottom: .15rem; }
.scc-day-mname .scc-day-where { font-weight: 500; text-transform: none; letter-spacing: 0; color: #94a3b8; }
.scc-day-row { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; padding: .1rem 0; font-size: .9rem; line-height: 1.35; }
.scc-day-who { font-weight: 600; color: #0f172a; white-space: nowrap; }
.scc-day-pos { color: #64748b; font-size: .8rem; text-align: right; }
.scc-print-title { display: none; }
.scc-day-compact .scc-day-grid { grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .75rem; }
.scc-day-compact .scc-day-service { padding: .6rem .8rem .4rem; }
.scc-day-compact .scc-day-row { font-size: .85rem; }

.dark .scc-sched-tab { background: #0f172a; border-color: #334155; color: #e2e8f0; }
.dark .scc-sched-wrap, .dark .scc-day-service { background: #0f172a; border-color: #1e293b; }
.dark .scc-sched thead th { background: #111827; color: #cbd5e1; }
.dark .scc-sched th, .dark .scc-sched td, .dark .scc-day-ministry { border-color: #1e293b; }
.dark .scc-sched-select, .dark .scc-sched-note { background: #111827; border-color: #334155; color: #e2e8f0; }
.dark .scc-sched tr.is-today td { background: #172554; }
.dark .scc-day-who { color: #f1f5f9; }

@media print {
    .fi-sidebar, .fi-topbar, .fi-header, .scc-no-print { display: none !important; }
    .fi-main { padding: 0 !important; }
    .scc-print-title { display: block; font-size: 18px; font-weight: 800; margin-bottom: 10px; }
    .scc-day-grid { grid-template-columns: 1fr 1fr; }
    .scc-day-service { break-inside: avoid; }
}

/* ── Dashboard: average per Sunday ─────────────────────────────── */
.scc-avg { width: 100%; border-collapse: collapse; }
.scc-avg th { text-align: right; font-size: .8rem; font-weight: 700; color: #0f172a; padding: 0 .5rem .6rem; }
.scc-avg th div, .scc-avg td div { font-size: .72rem; font-weight: 400; color: #64748b; }
.scc-avg td { text-align: right; padding: .7rem .5rem; border-top: 1px solid #e2e8f0; vertical-align: top; }
.scc-avg td b { font-size: 1.35rem; font-weight: 800; color: #0f172a; font-variant-numeric: tabular-nums; }
.scc-avg .scc-avg-fund { text-align: left; font-weight: 700; color: #334155; padding-top: 1rem; }
.scc-avg-change { width: 4.5rem; padding-top: 1rem !important; }
.scc-avg-change span { font-size: .8rem; font-weight: 700; padding: .1rem .45rem; border-radius: 999px; white-space: nowrap; }
.scc-avg-change .is-up { color: #047857; background: #ecfdf5; }
.scc-avg-change .is-down { color: #b91c1c; background: #fef2f2; }
.dark .scc-avg th, .dark .scc-avg td b { color: #f1f5f9; }
.dark .scc-avg td { border-color: #1e293b; }
.dark .scc-avg .scc-avg-fund { color: #cbd5e1; }

/* ── Dashboard: cards in the same row are the same height ──────── */
.fi-page-dashboard .fi-wi-widget, .fi-dashboard-page .fi-wi-widget { display: flex; flex-direction: column; }
.fi-page-dashboard .fi-wi-widget > *, .fi-dashboard-page .fi-wi-widget > * { flex: 1 1 auto; }
.fi-page-dashboard .fi-wi-widget > .fi-section, .fi-dashboard-page .fi-wi-widget > .fi-section,
.fi-page-dashboard .fi-wi-widget .fi-ta-ctn, .fi-dashboard-page .fi-wi-widget .fi-ta-ctn { height: 100%; }

/* ── Giving reports: period picker ─────────────────────────────── */
.scc-report-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; }
.scc-report-label { font-size: 1.15rem; font-weight: 700; color: #0f172a; margin-top: -.5rem; }
.scc-report-label span { font-size: .85rem; font-weight: 400; color: #64748b; }
.dark .scc-report-label { color: #f1f5f9; }

/* ── Order of service: running order editor (soft, Apple-style cards) ── */
.scc-running-order .fi-fo-repeater-items { counter-reset: scc-item; gap: .625rem; }
.scc-running-order .fi-fo-repeater-item {
    counter-increment: scc-item; border: 0; border-radius: 14px; background: #fff; overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04), 0 4px 12px rgba(0, 0, 0, .04);
    transition: box-shadow .2s ease, transform .2s ease;
}
.scc-running-order .fi-fo-repeater-item:hover { box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 2px 4px rgba(0, 0, 0, .05), 0 8px 24px rgba(0, 0, 0, .06); }
.scc-running-order .fi-fo-repeater-item-header {
    background: transparent; border-bottom: 1px solid rgba(0, 0, 0, .05); cursor: grab; user-select: none;
    padding-top: .7rem; padding-bottom: .7rem;
}
.scc-running-order .fi-fo-repeater-item-header:active { cursor: grabbing; }
.scc-running-order .fi-fo-repeater-item-header-label {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
    font-weight: 600; font-size: .95rem; letter-spacing: -.01em; color: #1d1d1f; white-space: normal;
}
.scc-running-order .fi-fo-repeater-item-header-label::before {
    content: counter(scc-item); display: inline-flex; align-items: center; justify-content: center;
    min-width: 1.5rem; height: 1.5rem; margin-right: .65rem; border-radius: 999px;
    background: #f2f2f7; color: #6e6e73; font-size: .75rem; font-weight: 600;
}
/* The card being dragged lifts slightly; where it will land shows as a thin blue line. */
.scc-running-order .sortable-chosen { box-shadow: 0 12px 32px rgba(0, 0, 0, .14) !important; }
.scc-running-order .fi-sortable-ghost {
    height: 0 !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; overflow: hidden;
    box-shadow: none !important; background: transparent !important; outline: 0;
    border-top: 3px solid #0a84ff !important; border-radius: 3px;
}
.scc-running-order .fi-sortable-ghost > * { display: none !important; }
.dark .scc-running-order .fi-fo-repeater-item { background: #1c1c1e; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.dark .scc-running-order .fi-fo-repeater-item-header { border-color: rgba(255, 255, 255, .06); }
.dark .scc-running-order .fi-fo-repeater-item-header-label { color: #f5f5f7; }
.dark .scc-running-order .fi-fo-repeater-item-header-label::before { background: #2c2c2e; color: #aeaeb2; }

/* ── Sunday check-off sheet ── */
.scc-att { display: flex; flex-direction: column; gap: 1rem; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif; }
.scc-att-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; }
.scc-att-count { font-size: 1.05rem; color: #1d1d1f; }
.scc-att-count b { font-size: 1.6rem; font-weight: 700; margin-right: .2rem; }
.scc-att-count span { color: #86868b; }
.scc-att-tools { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; position: sticky; top: 4rem; z-index: 5; padding: .5rem 0; background: var(--gray-50, #f9fafb); }
.scc-att-search { flex: 1 1 14rem; max-width: 22rem; border: 0; border-radius: 10px; padding: .55rem .85rem; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04); font-size: .95rem; }
.scc-att-search:focus { outline: none; box-shadow: 0 0 0 3px rgba(10,132,255,.3); }
.scc-att-seg { display: inline-flex; background: #e9e9ee; border-radius: 9px; padding: 2px; }
.scc-att-seg button { border: 0; background: transparent; padding: .35rem .85rem; border-radius: 7px; font-size: .85rem; color: #1d1d1f; }
.scc-att-seg button.is-on { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); font-weight: 600; }
.scc-att-letter h3 { font-size: .8rem; font-weight: 700; color: #86868b; letter-spacing: .04em; margin: 0 0 .4rem .25rem; }
.scc-att-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .5rem; }
.scc-att-row { display: flex; align-items: center; gap: .65rem; text-align: left; background: #fff; border: 0; border-radius: 12px; padding: .65rem .8rem; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.04); transition: box-shadow .15s, background .15s; -webkit-tap-highlight-color: transparent; }
.scc-att-row:hover { box-shadow: 0 0 0 1px rgba(0,0,0,.07), 0 4px 12px rgba(0,0,0,.06); }
.scc-att-check { flex: none; width: 1.5rem; height: 1.5rem; border-radius: 999px; box-shadow: inset 0 0 0 2px #c7c7cc; color: transparent; display: grid; place-items: center; transition: all .15s; }
.scc-att-check svg { width: 1rem; height: 1rem; }
.scc-att-row.is-here { background: #f0f7ff; }
.scc-att-row.is-here .scc-att-check { background: #0a84ff; box-shadow: none; color: #fff; }
.scc-att-name { flex: 1; color: #1d1d1f; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scc-att-name b { font-weight: 600; }
.scc-att-tag { flex: none; font-size: .7rem; padding: .1rem .45rem; border-radius: 999px; background: #f2f2f7; color: #6e6e73; }
.scc-att-tag.is-warn { background: #fff4e5; color: #b25000; }
.scc-att-follow { margin-top: 1.5rem; background: #fff; border-radius: 14px; padding: 1rem 1.1rem; box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 1px 3px rgba(0,0,0,.05); }
.scc-att-due, .scc-att-sent { display: grid; gap: .15rem; }
.scc-att-due > div, .scc-att-sent > div { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px solid #f2f2f7; font-size: .9rem; }
.scc-att-sent { margin-top: .75rem; }
.scc-att-sent summary { cursor: pointer; font-size: .85rem; color: #0a84ff; }
.dark .scc-att-count, .dark .scc-att-name { color: #f5f5f7; }
.dark .scc-att-tools { background: var(--gray-950, #030712); }
.dark .scc-att-search, .dark .scc-att-row, .dark .scc-att-follow { background: #1c1c1e; color: #f5f5f7; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.dark .scc-att-seg { background: #2c2c2e; }
.dark .scc-att-seg button { color: #f5f5f7; }
.dark .scc-att-seg button.is-on { background: #48484a; }
.dark .scc-att-row.is-here { background: #0a2540; }
.dark .scc-att-check { box-shadow: inset 0 0 0 2px #48484a; }
.dark .scc-att-tag { background: #2c2c2e; color: #a1a1a6; }
.dark .scc-att-due > div, .dark .scc-att-sent > div { border-color: #2c2c2e; }

/* ── Sunday check-off: follow-up lists ── */
.scc-fu-title { font-size: 1.35rem; font-weight: 700; color: #1d1d1f; margin: 1.5rem 0 0; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif; }
.scc-fu-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1rem; align-items: start; }
.scc-fu-card { background: #fff; border-radius: 14px; padding: .9rem 1rem; box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 1px 3px rgba(0,0,0,.05); }
.scc-fu-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: .5rem; border-bottom: 1px solid #f2f2f7; }
.scc-fu-num { min-width: 1.6rem; text-align: center; font-size: .8rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; background: #fff4d6; color: #8a6100; }
.scc-fu-num.is-orange { background: #fff0e0; color: #b25000; }
.scc-fu-num.is-red { background: #ffe5e3; color: #c4271c; }
.scc-fu-person { display: flex; flex-direction: column; gap: .2rem; padding: .6rem 0; border-bottom: 1px solid #f2f2f7; }
.scc-fu-person:last-child { border-bottom: 0; padding-bottom: 0; }
.scc-fu-name { display: flex; flex-direction: column; }
.scc-fu-name a { font-weight: 600; color: #1d1d1f; }
.scc-fu-name a:hover { color: #0a84ff; }
.scc-fu-name span { font-size: .8rem; }
.scc-fu-contact { display: flex; flex-wrap: wrap; gap: .2rem .9rem; font-size: .85rem; }
.scc-fu-contact a { color: #0a84ff; }
.dark .scc-fu-title, .dark .scc-fu-name a { color: #f5f5f7; }
.dark .scc-fu-card { background: #1c1c1e; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.dark .scc-fu-head, .dark .scc-fu-person { border-color: #2c2c2e; }

/* ── Sunday attendance: extra people ── */
.scc-att-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; background: #fff; border-radius: 14px; padding: .9rem 1.1rem; margin-top: .5rem;
  box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 1px 3px rgba(0,0,0,.05); }
.scc-att-extra > div:first-child { flex: 1 1 14rem; }
.scc-att-step { display: inline-flex; align-items: center; background: #f2f2f7; border-radius: 10px; padding: 3px; }
.scc-att-step button { width: 2.4rem; height: 2.2rem; border: 0; border-radius: 8px; background: transparent; font-size: 1.3rem; color: #0a84ff; cursor: pointer; }
.scc-att-step button:hover:not(:disabled) { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.scc-att-step button:disabled { color: #c7c7cc; cursor: default; }
.scc-att-step input { width: 3.6rem; text-align: center; border: 0; background: transparent; font-size: 1.1rem; font-weight: 600; color: #1d1d1f; -moz-appearance: textfield; }
.scc-att-step input::-webkit-outer-spin-button, .scc-att-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.scc-att-step input:focus { outline: none; }
.scc-att-total { font-size: 1rem; color: #86868b; }
.scc-att-total b { font-size: 1.4rem; color: #1d1d1f; margin-left: .25rem; }
.dark .scc-att-extra { background: #1c1c1e; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.dark .scc-att-step { background: #2c2c2e; }
.dark .scc-att-step input, .dark .scc-att-total b { color: #f5f5f7; }

/* ── Saturday follow-up ── */
.scc-fu-link { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-top: 1rem; padding: .9rem 1.1rem; border-radius: 14px; background: #fff4e5; color: #8a3d00; text-decoration: none; }
.scc-fu-link span:last-child { font-weight: 600; color: #b25000; }
.scc-fu-link:hover { background: #ffecd2; }
.scc-fu-progress { display: flex; align-items: center; gap: 1rem; font-size: 1rem; color: #86868b; }
.scc-fu-progress b { font-size: 1.4rem; color: #1d1d1f; }
.scc-fu-bar { flex: 1; max-width: 20rem; height: 8px; border-radius: 99px; background: #e9e9ee; overflow: hidden; }
.scc-fu-bar span { display: block; height: 100%; background: #34c759; border-radius: 99px; transition: width .3s; }
.scc-fu-row { display: flex; gap: .6rem; align-items: flex-start; }
.scc-fu-tick { border: 0; cursor: pointer; margin-top: .1rem; background: transparent; }
.scc-fu-person.is-done .scc-fu-tick { background: #34c759; box-shadow: none; color: #fff; }
.scc-fu-person.is-done .scc-fu-name a { color: #86868b; }
.scc-fu-contact { padding-left: 2.1rem; }
.scc-fu-note { margin: .3rem 0 0 2.1rem; width: calc(100% - 2.1rem); border: 0; border-radius: 8px; padding: .35rem .6rem; font-size: .8rem; background: #f5f5f7; }
.scc-fu-note:focus { outline: none; box-shadow: 0 0 0 3px rgba(10,132,255,.25); background: #fff; }
.scc-fu-by { padding-left: 2.1rem; font-size: .75rem; color: #248a3d; }
.dark .scc-fu-link { background: #3a2410; color: #ffb36b; }
.dark .scc-fu-progress b { color: #f5f5f7; }
.dark .scc-fu-bar { background: #2c2c2e; }
.dark .scc-fu-note { background: #2c2c2e; color: #f5f5f7; }
@media print {
  .scc-fu-cols { display: block; }
  .scc-fu-card { box-shadow: none; border: 1px solid #ccc; margin-bottom: 1rem; break-inside: avoid; }
  .scc-fu-contact a { color: #000; }
}
.scc-fu-print-title { display: none; }
@media print { .scc-fu-print-title { display: block; font-size: 1.2rem; font-weight: 700; margin-bottom: .5rem; } }

/* ── Saturday follow-up: who is reaching out ── */
.scc-fu-progress .scc-att-seg { margin-left: auto; }
.scc-fu-assign { display: flex; align-items: center; gap: .4rem; padding-left: 2.1rem; margin-top: .3rem; font-size: .8rem; color: #86868b; }
.scc-fu-assign select { border: 0; border-radius: 8px; padding: .25rem 1.8rem .25rem .55rem; font-size: .8rem; font-weight: 600; background-color: #eef5ff; color: #0a64d6; cursor: pointer; }
.scc-fu-assign select.is-empty { background-color: #f5f5f7; color: #86868b; font-weight: 400; }
.scc-fu-assign select.is-me { background-color: #e8f8ec; color: #248a3d; }
.scc-fu-assign select:focus { outline: none; box-shadow: 0 0 0 3px rgba(10,132,255,.25); }
.scc-fu-print-only { display: none; }
.dark .scc-fu-assign select { background-color: #0a2540; color: #64a8ff; }
.dark .scc-fu-assign select.is-empty { background-color: #2c2c2e; color: #a1a1a6; }
.dark .scc-fu-assign select.is-me { background-color: #12321c; color: #4cd964; }
@media print { .scc-fu-assign select { display: none; } .scc-fu-print-only { display: inline; color: #000; } }
.scc-fu-contact { align-items: center; }
.scc-fu-msg { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .6rem .15rem .5rem; border-radius: 999px; background: #eef5ff; color: #0a84ff !important; font-weight: 600; font-size: .78rem; text-decoration: none; }
.scc-fu-msg svg { width: .9rem; height: .9rem; }
.scc-fu-msg:hover { background: #0a84ff; color: #fff !important; }
.dark .scc-fu-msg { background: #0a2540; color: #64a8ff !important; }

/* ── Saturday follow-up v2: tidy rows, phone friendly ── */
.scc-fu-card { padding: 1rem 1.1rem .4rem; }
.scc-fu-head b { font-size: 1rem; }
.scc-fu-person { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: .75rem; padding: .9rem 0; }
.scc-fu-tick { width: 1.6rem; height: 1.6rem; margin-top: .05rem; padding: 0; }
.scc-fu-body { display: flex; flex-direction: column; gap: .55rem; min-width: 0; }
.scc-fu-name a { font-size: 1rem; line-height: 1.3; }
.scc-fu-name span { font-size: .8rem; color: #86868b; }
.scc-fu-actions { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; }
.scc-fu-act { display: inline-flex; align-items: center; gap: .35rem; min-height: 2rem; padding: .3rem .7rem; border-radius: 999px; background: #f2f2f7; color: #1d1d1f !important; font-size: .82rem; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background .15s; }
.scc-fu-act svg { width: .95rem; height: .95rem; color: #0a84ff; flex: none; }
.scc-fu-act small { font-size: .7rem; color: #86868b; }
.scc-fu-act:hover { background: #e5e5ea; }
.scc-fu-act:active { transform: scale(.97); }
.scc-fu-none { font-size: .8rem; color: #86868b; padding: .3rem 0; }
.scc-fu-msg { display: none; }
.scc-fu-assign { display: flex; align-items: center; gap: .45rem; padding: 0; margin: 0; font-size: .8rem; color: #86868b; cursor: pointer; }
.scc-fu-assign > svg { width: .95rem; height: .95rem; color: #aeaeb2; flex: none; }
.scc-fu-assign select { min-height: 2rem; max-width: 100%; }
.scc-fu-note { margin: 0; width: 100%; min-height: 2.1rem; font-size: .85rem; }
.scc-fu-by { padding: 0; font-size: .78rem; font-weight: 500; }
.scc-fu-contact { display: none; }
.dark .scc-fu-act { background: #2c2c2e; color: #f5f5f7 !important; }
.dark .scc-fu-act:hover { background: #3a3a3c; }

@media (max-width: 640px) {
  .scc-fu-progress { flex-wrap: wrap; gap: .6rem 1rem; }
  .scc-fu-progress > div:first-child { order: 1; }
  .scc-fu-bar { order: 2; flex: 1 1 8rem; max-width: none; }
  .scc-fu-progress .scc-att-seg { order: 3; margin-left: 0; width: 100%; display: flex; }
  .scc-fu-progress .scc-att-seg button { flex: 1; padding: .5rem .4rem; }
  .scc-fu-cols { gap: .75rem; }
  .scc-fu-card { padding: .9rem .9rem .3rem; border-radius: 16px; }
  .scc-fu-act { min-height: 2.4rem; padding: .4rem .85rem; font-size: .85rem; }
  .scc-fu-assign select { min-height: 2.4rem; font-size: 16px; flex: 1; }
  .scc-fu-assign-label { display: none; }
  .scc-fu-note { min-height: 2.4rem; font-size: 16px; } /* 16px stops iPhone zooming in */
  .scc-notice { font-size: .85rem; }
}
@media print { .scc-fu-act { background: none; padding: 0; min-height: 0; } .scc-fu-act svg { display: none; } .scc-fu-assign > svg { display: none; } }
.scc-fu-narrow { display: none; }
.scc-fu-name { gap: .05rem; }
@media (max-width: 640px) {
  .scc-fu-wide { display: none; }
  .scc-fu-narrow { display: inline; }
  .scc-fu-name .scc-fu-narrow { display: block; font-size: .8rem; color: #86868b; }
  .scc-fu-person { grid-template-columns: 1.6rem minmax(0, 1fr); gap: .65rem; padding: 1rem 0; }
  .scc-fu-body { gap: .6rem; }
  /* Call / Text / Email as equal tiles, like iPhone Contacts */
  .scc-fu-actions { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .45rem; }
  .scc-fu-act { flex-direction: column; justify-content: center; gap: .2rem; min-height: 3.4rem; padding: .45rem .3rem; border-radius: 12px; font-size: .75rem; font-weight: 600; color: #0a84ff !important; }
  .scc-fu-act svg { width: 1.15rem; height: 1.15rem; }
  .scc-fu-none { grid-column: 1 / -1; }
  .scc-fu-assign > svg { display: none; }
  .scc-fu-assign select { width: 100%; border-radius: 10px; padding-left: .75rem; }
  .scc-fu-note { border-radius: 10px; }
}
.dark .scc-fu-act { color: #64a8ff !important; }
@media (min-width: 641px) { .dark .scc-fu-act { color: #f5f5f7 !important; } }
.scc-fu-empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; background: #fff; border-radius: 14px; padding: 1.25rem 1.25rem; color: #6e6e73; box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 1px 3px rgba(0,0,0,.05); }
.scc-fu-empty button { border: 0; background: #eef5ff; color: #0a84ff; font-weight: 600; border-radius: 999px; padding: .45rem 1rem; cursor: pointer; }
.dark .scc-fu-empty { background: #1c1c1e; color: #a1a1a6; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.dark .scc-fu-empty button { background: #0a2540; color: #64a8ff; }

/* ── Saturday follow-up: snooze ── */
.scc-fu-snooze { align-self: flex-start; display: inline-flex; align-items: center; gap: .35rem; border: 0; background: transparent; color: #6e6e73; font-size: .8rem; font-weight: 500; padding: .3rem .1rem; cursor: pointer; }
.scc-fu-snooze svg { width: .95rem; height: .95rem; color: #af52de; }
.scc-fu-snooze:hover { color: #af52de; }
.scc-fu-snoozed { border-top: 1px solid #f2f2f7; margin-top: .25rem; padding: .7rem 0 .6rem; }
.scc-fu-snoozed summary { cursor: pointer; font-size: .85rem; font-weight: 600; color: #af52de; }
.scc-fu-snoozed > div { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .45rem 0; font-size: .88rem; }
.scc-fu-snoozed small { color: #86868b; margin-left: .25rem; }
.scc-fu-snoozed button { border: 0; background: #f4ecfa; color: #8e3bb8; font-weight: 600; font-size: .78rem; border-radius: 999px; padding: .3rem .8rem; cursor: pointer; }
.dark .scc-fu-snoozed { border-color: #2c2c2e; }
.dark .scc-fu-snoozed button { background: #2e1a3a; color: #d49cf0; }
@media (max-width: 640px) { .scc-fu-snooze { min-height: 2.2rem; font-size: .85rem; } .scc-fu-snoozed button { padding: .45rem 1rem; } }

/* ── Attendance on iPhone / iPad ── */
.scc-att-date { width: 12.5rem; }
.scc-att-grid { grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.scc-att-row { min-height: 2.9rem; }
.scc-att-tools { background: transparent; backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); }
.scc-att-search { font-size: 16px; }   /* 16px stops iPhone zooming in on tap */
@media (max-width: 640px) {
  .scc-hide-phone { display: none; }
  .scc-att-bar { gap: .6rem; }
  .scc-att-nav { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; width: 100%; gap: .4rem; }
  .scc-att-nav .fi-btn { min-height: 2.5rem; min-width: 2.75rem; justify-content: center; }
  .scc-att-date { width: auto; }
  .scc-att-date input { font-size: 16px; }
  .scc-att-count { width: 100%; }
  .scc-att-tools { top: 3.5rem; gap: .5rem; }
  .scc-att-search { flex: 1 1 100%; max-width: none; min-height: 2.6rem; }
  .scc-att-seg { width: 100%; display: flex; }
  .scc-att-seg button { flex: 1; padding: .5rem .3rem; }
  .scc-att-grid { grid-template-columns: 1fr; gap: .4rem; }
  .scc-att-row { min-height: 3.1rem; padding: .7rem .85rem; }
  .scc-att-check { width: 1.6rem; height: 1.6rem; }
  .scc-att-extra { padding: 1rem; }
  .scc-att-extra > div:first-child { flex-basis: 100%; }
  .scc-att-step { flex: 1; justify-content: space-between; }
  .scc-att-step button { width: 3rem; height: 2.6rem; }
  .scc-att-step input { font-size: 18px; }
}
@media (min-width: 641px) and (max-width: 1100px) {
  .scc-att-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── People list: clean, modern table ── */
.scc-people .fi-ta-header-cell { font-size: .7rem; letter-spacing: .06em; color: #8a8f98; font-weight: 600; padding-top: .7rem; padding-bottom: .7rem; background: transparent; }
.scc-people .fi-ta-header { border-bottom: 1px solid #eef0f3; }
.scc-people thead tr { background: #fafbfc; }
.scc-people .fi-ta-row { transition: background .12s; }
.scc-people .fi-ta-row:hover { background: #f7f9fc; }
.scc-people .fi-ta-row > td { border-color: #f1f3f6; }
.scc-people .fi-ta-text-description, .scc-people .fi-ta-text .fi-ta-text-description { font-size: .8rem; color: #8a8f98; }
.scc-people .fi-ta-image img { box-shadow: 0 0 0 2px #fff; }
.dark .scc-people thead tr { background: transparent; }
.dark .scc-people .fi-ta-row:hover { background: rgba(255,255,255,.03); }
.dark .scc-people .fi-ta-row > td { border-color: rgba(255,255,255,.06); }
.dark .scc-people .fi-ta-image img { box-shadow: none; }
/* one layer of padding per row (Filament stacks cell + link + text padding) */
.scc-people .fi-ta-row > .fi-ta-cell { padding-top: 0 !important; padding-bottom: 0 !important; }
.scc-people .fi-ta-col { padding-top: .7rem !important; padding-bottom: .7rem !important; }
.scc-people .fi-ta-col .fi-ta-text, .scc-people .fi-ta-col .fi-ta-image { padding-top: 0 !important; padding-bottom: 0 !important; }
.scc-people .fi-ta-text-has-descriptions { gap: .1rem; }

/* ── People: status picker (list style) ── */
.scc-status-list { display: flex; flex-direction: column; background: #f5f5f7; border-radius: 14px; padding: 4px; gap: 2px; }
.scc-status-opt { display: flex; align-items: center; gap: .8rem; width: 100%; text-align: left; border: 0; background: transparent; border-radius: 11px; padding: .65rem .8rem; cursor: pointer; transition: background .12s; }
.scc-status-opt:hover { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.scc-status-opt.is-current { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.scc-status-opt:disabled { opacity: .6; }
.scc-status-dot { flex: none; width: .7rem; height: .7rem; border-radius: 99px; background: #aeaeb2; }
.scc-status-dot.is-member { background: #34c759; }
.scc-status-dot.is-regular_attender { background: #0a84ff; }
.scc-status-dot.is-visitor { background: #ff9f0a; }
.scc-status-dot.is-past_visitor { background: #c7a27a; }
.scc-status-dot.is-child { background: #5ac8fa; }
.scc-status-dot.is-inactive { background: #aeaeb2; }
.scc-status-dot.is-deceased { background: #48484a; }
.scc-status-text { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.scc-status-text b { font-weight: 600; font-size: .92rem; color: #1d1d1f; }
.scc-status-text small { font-size: .76rem; color: #86868b; }
.scc-status-tick { width: 1.1rem; height: 1.1rem; color: #0a84ff; flex: none; }
.dark .scc-status-list { background: #2c2c2e; }
.dark .scc-status-opt:hover, .dark .scc-status-opt.is-current { background: #3a3a3c; box-shadow: none; }
.dark .scc-status-text b { color: #f5f5f7; }
.scc-status-dot.is-giver { background: #af52de; }
.scc-status-dot.is-giver { background: #af52de; }

/* ── Copyright footer ── */
.scc-copyright { text-align: center; font-size: .78rem; color: #8a8f98; padding: 1.5rem 1rem 1.75rem; letter-spacing: .01em; }
.dark .scc-copyright { color: #6e6e73; }
@media print { .scc-copyright { display: none; } }

/* ── Trends page ── */
.scc-tr-years { display: flex; justify-content: flex-end; margin-top: -.5rem; }
.scc-tr-card { background: #fff; border-radius: 16px; padding: 1.25rem 1.4rem 1.1rem; box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 1px 3px rgba(0,0,0,.05); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, sans-serif; }
.scc-tr-card header h2 { margin: 0; font-size: 1.05rem; font-weight: 700; color: #1d1d1f; }
.scc-tr-card header p { margin: .15rem 0 0; font-size: .82rem; color: #86868b; }
.scc-tr-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .6rem; margin: 1rem 0; }
.scc-tr-tiles > div { background: #f5f5f7; border-radius: 12px; padding: .7rem .9rem; display: flex; flex-direction: column; gap: .1rem; }
.scc-tr-tiles span { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: #86868b; font-weight: 600; }
.scc-tr-tiles b { font-size: 1.45rem; font-weight: 700; color: #1d1d1f; font-variant-numeric: tabular-nums; }
.scc-tr-tiles em { font-style: normal; font-size: .8rem; color: #86868b; font-weight: 600; }
.is-up { color: #248a3d !important; }
.is-down { color: #d70015 !important; }
.scc-tr-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: .4rem; height: 11rem; align-items: end; padding-top: 1.2rem; }
.scc-tr-col { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.scc-tr-col label { font-size: .72rem; color: #86868b; margin-top: .35rem; height: 1rem; }
.scc-tr-col small { font-size: .7rem; font-weight: 600; color: #1d1d1f; margin-bottom: .2rem; line-height: 1; }
.scc-tr-bar, .scc-tr-stack { width: 70%; max-width: 2.6rem; border-radius: 6px 6px 3px 3px; min-height: 3px; }
.scc-tr-bar.is-blue { background: linear-gradient(#4da3ff, #0a84ff); }
.scc-tr-bar.is-orange { background: linear-gradient(#ffb340, #ff9500); }
.scc-tr-stack { display: flex; flex-direction: column; overflow: hidden; }
.scc-tr-stack i, .scc-tr-key i { display: block; }
.scc-tr-stack .is-mem, .scc-tr-key .is-mem { background: #34c759; }
.scc-tr-stack .is-att, .scc-tr-key .is-att { background: #8fd4a0; }
.scc-tr-key { display: flex; gap: 1rem; font-size: .78rem; color: #6e6e73; margin-top: .6rem; align-items: center; flex-wrap: wrap; }
.scc-tr-key i { width: .7rem; height: .7rem; border-radius: 3px; display: inline-block; margin-right: .35rem; vertical-align: -1px; }
.scc-tr-table-wrap { overflow-x: auto; margin-top: .9rem; }
.scc-tr-table { width: 100%; border-collapse: collapse; font-size: .85rem; font-variant-numeric: tabular-nums; }
.scc-tr-table th { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: #86868b; font-weight: 600; padding: .45rem .4rem; text-align: center; border-bottom: 1px solid #ececf0; }
.scc-tr-table td { padding: .5rem .4rem; text-align: center; border-bottom: 1px solid #f2f2f5; color: #1d1d1f; }
.scc-tr-table td:first-child { text-align: left; white-space: nowrap; color: #3a3a3c; font-weight: 500; padding-right: 1rem; }
.scc-tr-table td.zero { color: #c7c7cc; }
.scc-tr-table tr.is-net td { border-top: 1.5px solid #d2d2d7; border-bottom: 0; font-weight: 700; }
.scc-tr-note { font-size: .78rem; color: #86868b; margin: .75rem 0 0; }
.scc-tr-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(26rem, 1fr)); gap: 1.5rem; }
.dark .scc-tr-card { background: #1c1c1e; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.dark .scc-tr-card header h2, .dark .scc-tr-tiles b, .dark .scc-tr-table td, .dark .scc-tr-col small { color: #f5f5f7; }
.dark .scc-tr-tiles > div { background: #2c2c2e; }
.dark .scc-tr-table th, .dark .scc-tr-table td { border-color: #2c2c2e; }
@media (max-width: 640px) { .scc-tr-two { grid-template-columns: 1fr; } .scc-tr-bars { gap: .2rem; height: 9rem; } .scc-tr-col label { font-size: .62rem; } .scc-tr-col small { font-size: .6rem; } }

/* ── Trends: clickable numbers + people list ── */
.scc-tr-num { border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; padding: .1rem .45rem; border-radius: 7px; transition: background .12s; }
.scc-tr-num:hover { background: #eef5ff; color: #0a84ff; }
.scc-tr-people { display: flex; flex-direction: column; max-height: 60vh; overflow-y: auto; margin: -.25rem 0; }
.scc-tr-person { display: flex; align-items: center; gap: .75rem; padding: .6rem .5rem; border-radius: 10px; text-decoration: none; color: inherit; }
.scc-tr-person:hover { background: #f5f5f7; }
.scc-tr-person + .scc-tr-person { border-top: 1px solid #f2f2f5; }
.scc-tr-sign { width: 1.4rem; text-align: center; font-weight: 700; font-size: 1rem; }
.scc-tr-pname { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.scc-tr-pname b { font-weight: 600; font-size: .92rem; }
.scc-tr-pname small { font-size: .78rem; color: #86868b; }
.scc-tr-pdate { font-size: .8rem; color: #86868b; white-space: nowrap; }
.dark .scc-tr-num:hover { background: #0a2540; }
.dark .scc-tr-person:hover { background: #2c2c2e; }
.dark .scc-tr-person + .scc-tr-person { border-color: #2c2c2e; }

/* ── Sunday schedule v2: modern cards ── */
.scc-sv-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); align-items: start; }
.scc-sv-card { background: #fff; border-radius: 18px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 24px rgba(15,23,42,.06); overflow: hidden; }
.scc-sv-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1rem 1.15rem .85rem; background: linear-gradient(180deg, #f5f9ff, #fff); border-bottom: 1px solid #eef1f5; }
.scc-sv-time { display: flex; align-items: center; gap: .5rem; font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; color: #1d1d1f; }
.scc-sv-clock { width: 1.15rem; height: 1.15rem; color: #0a84ff; }
.scc-sv-count { font-size: .72rem; font-weight: 600; color: #0a64d6; background: #e8f1ff; padding: .2rem .6rem; border-radius: 999px; white-space: nowrap; }
.scc-sv-ministry { padding: .8rem 1.15rem .65rem; }
.scc-sv-ministry + .scc-sv-ministry { border-top: 1px solid #f2f2f7; }
.scc-sv-mname { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6e6e73; margin-bottom: .45rem; }
.scc-sv-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--sv); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sv) 18%, transparent); }
.scc-sv-where { display: inline-flex; align-items: center; gap: .2rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: #8e8e93; }
.scc-sv-where svg { width: .8rem; height: .8rem; }
.scc-sv-row { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; align-items: center; gap: .65rem; padding: .3rem 0; }
.scc-sv-avatar { width: 2rem; height: 2rem; border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; color: var(--sv); background: color-mix(in srgb, var(--sv) 13%, #fff); }
.scc-sv-who { font-size: .92rem; font-weight: 600; color: #1d1d1f; line-height: 1.25; }
.scc-sv-pos { font-size: .75rem; font-weight: 500; color: #515154; background: #f2f2f7; padding: .2rem .55rem; border-radius: 999px; white-space: nowrap; max-width: 9.5rem; overflow: hidden; text-overflow: ellipsis; }
.scc-sv-empty { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 3rem 1rem; background: #fff; border-radius: 18px; color: #6e6e73; text-align: center; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.scc-sv-empty b { color: #1d1d1f; font-size: 1rem; }
.scc-sv-empty-icon { width: 2.2rem; height: 2.2rem; color: #c7c7cc; margin-bottom: .3rem; }
.scc-day-compact .scc-sv-grid { grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: .8rem; }
.scc-day-compact .scc-sv-card { box-shadow: none; border: 1px solid #eef1f5; }
.dark .scc-sv-card, .dark .scc-sv-empty { background: #1c1c1e; box-shadow: none; border: 1px solid #2c2c2e; }
.dark .scc-sv-head { background: linear-gradient(180deg, #0a2540, #1c1c1e); border-color: #2c2c2e; }
.dark .scc-sv-time, .dark .scc-sv-who, .dark .scc-sv-empty b { color: #f5f5f7; }
.dark .scc-sv-count { background: #0a2540; color: #64a8ff; }
.dark .scc-sv-ministry + .scc-sv-ministry { border-color: #2c2c2e; }
.dark .scc-sv-pos { background: #2c2c2e; color: #d1d1d6; }
.dark .scc-sv-avatar { background: color-mix(in srgb, var(--sv) 22%, #1c1c1e); }
@media (max-width: 640px) {
  .scc-sv-grid { grid-template-columns: 1fr; gap: .8rem; }
  .scc-sv-pos { max-width: 8.5rem; }
}
@media print {
  .scc-sv-grid { grid-template-columns: 1fr 1fr; }
  .scc-sv-card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .scc-sv-head { background: none; }
}

/* Ministry schedules: one colour per service time (10:15 / 11:00 / 1:00 …) */
.scc-sched th.scc-svc-0 { background: #dbeafe; } .scc-sched th.scc-sched-service.scc-svc-0 { background: #2563eb; color: #fff; }
.scc-sched th.scc-svc-1 { background: #dcfce7; } .scc-sched th.scc-sched-service.scc-svc-1 { background: #16a34a; color: #fff; }
.scc-sched th.scc-svc-2 { background: #fef3c7; } .scc-sched th.scc-sched-service.scc-svc-2 { background: #d97706; color: #fff; }
.scc-sched td.scc-svc-0 { background: #f5f9ff; }
.scc-sched td.scc-svc-1 { background: #f4fdf7; }
.scc-sched td.scc-svc-2 { background: #fffbeb; }
.scc-sched .scc-svc-start { border-left: 3px solid #fff !important; }
.scc-sched th.scc-sched-pos.scc-svc-0 { color: #1e40af; } .scc-sched th.scc-sched-pos.scc-svc-1 { color: #166534; } .scc-sched th.scc-sched-pos.scc-svc-2 { color: #92400e; }
.scc-sched td.scc-svc-0 .scc-sched-select:not(.is-empty) { border-color: #93c5fd; }
.scc-sched td.scc-svc-1 .scc-sched-select:not(.is-empty) { border-color: #86efac; }
.scc-sched td.scc-svc-2 .scc-sched-select:not(.is-empty) { border-color: #fcd34d; }
.dark .scc-sched th.scc-svc-0 { background: #172554; } .dark .scc-sched th.scc-svc-1 { background: #052e16; } .dark .scc-sched th.scc-svc-2 { background: #451a03; }
.dark .scc-sched td.scc-svc-0 { background: #0b1530; } .dark .scc-sched td.scc-svc-1 { background: #071d12; } .dark .scc-sched td.scc-svc-2 { background: #22140a; }
.dark .scc-sched th.scc-sched-pos.scc-svc-0 { color: #93c5fd; } .dark .scc-sched th.scc-sched-pos.scc-svc-1 { color: #86efac; } .dark .scc-sched th.scc-sched-pos.scc-svc-2 { color: #fcd34d; }
.dark .scc-sched .scc-svc-start { border-left-color: #0f172a !important; }
.scc-sched tr.is-today td.scc-svc-0, .scc-sched tr.is-today td.scc-svc-1, .scc-sched tr.is-today td.scc-svc-2 { box-shadow: inset 0 2px 0 #2d5a9b, inset 0 -2px 0 #2d5a9b; }
@media (min-width: 900px) { .scc-sched-wrap.is-narrow { width: 50%; } }
.scc-sv-section { margin: 1.5rem 0 .75rem; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #64748b; }
/* Who's serving: cards in columns (no gaps under short cards); one column in time order on phones */
.scc-sv-grid.scc-sv-cols { display: flex; flex-wrap: wrap; align-items: flex-start; }
.scc-sv-col { flex: 1 1 17rem; min-width: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.scc-day-compact .scc-sv-col { gap: .8rem; }
@media (max-width: 640px) {
  .scc-sv-grid.scc-sv-cols { flex-direction: column; align-items: stretch; gap: .8rem; }
  .scc-sv-col { display: contents; }
}
@media print { .scc-sv-grid.scc-sv-cols { display: flex; } }
/* Ministry schedules: someone booked in two places at once */
.scc-sched td.is-clash .scc-sched-select { border-color: #f59e0b !important; background: #fffbeb; box-shadow: 0 0 0 1px #f59e0b; }
.scc-sched-clash { display: block; margin-top: .2rem; padding: 0; border: 0; background: none; font-size: .7rem; font-weight: 600; color: #b45309; text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.scc-sched-clash:hover { text-decoration: underline; }
.scc-sched-clash:disabled { cursor: default; text-decoration: none; }
.dark .scc-sched td.is-clash .scc-sched-select { background: #451a03; }
.dark .scc-sched-clash { color: #fbbf24; }

/* Ministry settings */
.scc-min-head { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: .06em; }
.scc-min-hint { display: inline-flex; align-items: center; gap: .3rem; text-transform: none; letter-spacing: 0; font-weight: 500; }
.scc-min-hint svg { width: 1rem; height: 1rem; }
.scc-min-list { display: flex; flex-direction: column; gap: .65rem; }
.scc-min-card { position: relative; display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; background: #fff; border: 1px solid #e8ecf2; border-radius: 16px; box-shadow: 0 1px 2px rgba(15,23,42,.04); transition: box-shadow .15s, border-color .15s; }
.scc-min-card:hover { border-color: #d5dde8; box-shadow: 0 4px 16px rgba(15,23,42,.06); }
.scc-min-card::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c); }
.scc-min-card.sortable-ghost { opacity: .4; }
.scc-min-card.sortable-chosen { box-shadow: 0 10px 30px rgba(15,23,42,.15); }
.scc-min-handle { flex: none; display: grid; place-items: center; width: 28px; height: 36px; border: 0; background: none; color: #94a3b8; cursor: grab; border-radius: 8px; }
.scc-min-handle:hover { background: #f1f5f9; color: #475569; }
.scc-min-handle:active { cursor: grabbing; }
.scc-min-handle svg { width: 18px; height: 18px; }
.scc-min-badge { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-weight: 700; font-size: 1.05rem; color: var(--c); background: color-mix(in srgb, var(--c) 12%, white); }
.scc-min-main { flex: 1; min-width: 0; }
.scc-min-name { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .6rem; font-weight: 650; font-size: 1rem; color: #0f172a; }
.scc-min-loc { display: inline-flex; align-items: center; gap: .2rem; font-weight: 500; font-size: .8rem; color: #64748b; }
.scc-min-loc svg { width: .85rem; height: .85rem; }
.scc-min-meta { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .45rem; }
.scc-min-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .55rem; border-radius: 999px; background: #f4f6f9; color: #475569; font-size: .75rem; font-weight: 500; white-space: nowrap; }
.scc-min-chip svg { width: .8rem; height: .8rem; color: #94a3b8; }
.scc-min-chip.is-off { color: #94a3b8; }
.scc-min-chip.is-warn { background: #fffbeb; color: #b45309; }
.scc-min-chip.is-warn svg { color: #f59e0b; }
.scc-min-actions { flex: none; display: flex; align-items: center; gap: .4rem; }
.scc-min-arrows { display: none; flex-direction: column; }
.scc-min-arrows button { display: grid; place-items: center; width: 26px; height: 18px; border: 0; background: none; color: #64748b; }
.scc-min-arrows button:disabled { opacity: .3; }
.scc-min-arrows svg { width: 16px; height: 16px; }
.scc-min-empty { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 3rem 1rem; background: #fff; border: 1px dashed #cbd5e1; border-radius: 16px; color: #64748b; text-align: center; }
.scc-min-empty b { color: #0f172a; }
.scc-min-empty-icon { width: 2.25rem; height: 2.25rem; color: #94a3b8; }
@media (max-width: 900px) {
  .scc-min-card { flex-wrap: wrap; }
  .scc-min-main { flex-basis: calc(100% - 90px); }
  .scc-min-actions { width: 100%; flex-wrap: wrap; padding-left: calc(28px + 42px + 1.8rem); }
}
@media (max-width: 640px) {
  .scc-min-handle { display: none; }
  .scc-min-arrows { display: flex; margin-left: auto; }
  .scc-min-actions { padding-left: 0; }
}
.dark .scc-min-card { background: #0f172a; border-color: #1e293b; }
.dark .scc-min-name { color: #f1f5f9; }
.dark .scc-min-chip { background: #1e293b; color: #cbd5e1; }
.dark .scc-min-badge { background: color-mix(in srgb, var(--c) 20%, #0f172a); }
.dark .scc-min-handle:hover { background: #1e293b; }
.dark .scc-min-empty { background: #0f172a; border-color: #334155; }
/* Schedule helper (+ Helper) */
.scc-sched-add-helper { display: inline-block; margin-top: .3rem; padding: .1rem .5rem; border: 1px dashed #cbd5e1; border-radius: 999px; background: transparent; color: #64748b; font-size: .72rem; font-weight: 600; cursor: pointer; }
.scc-sched-add-helper:hover { border-color: #2d5a9b; color: #2d5a9b; background: #fff; }
.scc-sched-helper { display: inline-flex; align-items: center; gap: .15rem; margin-top: .3rem; padding: .1rem .2rem .1rem .55rem; border-radius: 999px; background: #eef4ff; border: 1px solid #c7d7f5; max-width: 100%; }
.scc-sched-helper-name { border: 0; background: none; padding: 0; color: #1e3a8a; font-size: .75rem; font-weight: 600; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
span.scc-sched-helper-name { cursor: default; }
.scc-sched-helper-x { border: 0; background: none; color: #64748b; font-size: .9rem; line-height: 1; width: 1.1rem; height: 1.1rem; border-radius: 999px; cursor: pointer; }
.scc-sched-helper-x:hover { background: #dbe6f7; color: #b91c1c; }
.dark .scc-sched-helper { background: #172554; border-color: #1e3a8a; }
.dark .scc-sched-helper-name { color: #bfdbfe; }
.dark .scc-sched-add-helper { border-color: #334155; color: #94a3b8; }

/* Editing a person: the title row with View / Delete / Save floats under the search bar while scrolling */
.fi-resource-edit-record-page.fi-resource-people .fi-header {
  position: sticky; top: 4rem; z-index: 25;
  margin-inline: -1rem; padding: .75rem 1rem;
  background: color-mix(in srgb, #f5f6f8 88%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
}
.dark .fi-resource-edit-record-page.fi-resource-people .fi-header { background: color-mix(in srgb, #030712 88%, transparent); }
/* Messaging: "before you send" brief on each picked person */
.scc-brief { display: flex; flex-direction: column; gap: .6rem; }
.scc-brief-card { padding: .75rem .9rem; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; }
.scc-brief-top { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; }
.scc-brief-top b { font-size: .95rem; }
.scc-brief-tag { font-size: .75rem; font-weight: 600; padding: .1rem .5rem; border-radius: 999px; background: #eef2f7; color: #475569; }
.scc-brief-tag.is-ok { background: #ecfdf5; color: #047857; }
.scc-brief-tag.is-no { background: #fef2f2; color: #b91c1c; }
.scc-brief-line { margin-top: .35rem; font-size: .85rem; color: #0f172a; }
.scc-brief-line span { display: inline-block; min-width: 0; margin-right: .35rem; font-size: .72rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #64748b; }
.scc-brief-more { font-size: .8rem; color: #64748b; }
.dark .scc-brief-card { background: #0f172a; border-color: #1e293b; }
.dark .scc-brief-line { color: #e2e8f0; }
.dark .scc-brief-tag { background: #1e293b; color: #cbd5e1; }
/* Visitors list: narrow stage picker so the table fits next to the menu on 1920×1080 */
.scc-narrow-select { max-width: 10.5rem; }
.scc-narrow-select select, .scc-narrow-select .fi-select-input { min-width: 0 !important; }

/* Long menu names (e.g. "Saturday follow-up") wrap instead of being cut off with "…". */
.fi-sidebar-item-label { white-space: nowrap !important; overflow: visible !important; text-overflow: clip !important; }

/* Profile tabs (Notes, Follow-ups, Texts…): keep the area a steady height so switching tabs doesn't jump the page. */
.fi-sc-tabs:has(.fi-resource-relation-manager) { min-height: 720px; }
.fi-resource-relation-manager { min-height: 620px; }

/* Canadian holidays / special days on schedules: light grey text beside the date */
.scc-hol-text { font-size: 11.5px; font-weight: 400; color: #94a3b8; line-height: 1.35; white-space: normal; }
.scc-hol-text span { cursor: default; }
.dark .scc-hol-text { color: #71717a; }
.scc-date-line { display: flex; align-items: baseline; gap: 8px; }
.scc-date-line > :first-child { flex: none; }


/* ---- Schedule grids (music + sermon schedules), shared ---- */
.ms-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ms-bar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.ms-link { border: 0; background: none; padding: 6px 2px; font-size: 13.5px; font-weight: 600; color: #2563eb; cursor: pointer; }
.ms-link:hover { text-decoration: underline; }
.ms-switch { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; font-size: 13.5px; font-weight: 600; color: #475569; cursor: pointer; padding: 0; }
.dark .ms-switch { color: #d4d4d8; }
.ms-switch-track { width: 34px; height: 20px; border-radius: 999px; background: #cbd5e1; padding: 2px; display: inline-flex; transition: background .15s; }
.ms-switch-knob { width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.ms-switch.on .ms-switch-track { background: #2563eb; }
.ms-switch.on .ms-switch-knob { transform: translateX(14px); }
.ms-find { width: 220px; }

.ms-month { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.dark .ms-month { background: #18181b; border-color: #3f3f46; }
.ms-month-head { display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; padding: 16px 20px 12px; }
.ms-month-head h3 { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.ms-month-head h3 span { font-weight: 500; color: #94a3b8; }
.ms-hols { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: #64748b; }
.ms-hols li { display: inline-flex; align-items: center; gap: 6px; cursor: default; }
.ms-hols li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #cbd5e1; }
.ms-hols li.k-holiday::before { background: #dc2626; }
.ms-hols li.k-special::before { background: #8b5cf6; }
.ms-hols em { font-style: normal; color: #94a3b8; }

.ms-grid { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 14px; }
.ms-grid thead th { text-align: left; font-size: 12px; font-weight: 700; color: #334155; padding: 8px 10px; background: #f8fafc; border-top: 1px solid #eef2f7; border-bottom: 1px solid #e5e7eb; }
.dark .ms-grid thead th { background: #1f1f23; color: #e4e4e7; border-color: #3f3f46; }
.ms-grid thead th:first-child { padding-left: 20px; }
.ms-grid thead th small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; line-height: 1.2; }
.ms-grid thead tr.band th { text-align: center; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; padding: 7px 10px; border-bottom: 0; }
.ms-grid thead th.pr { background: #fdf2f8; color: #9d174d; }
.ms-grid thead th.sp { background: #ecfdf5; color: #065f46; }
.ms-grid thead tr.band th.pr { background: #fce7f3; }
.ms-grid thead tr.band th.sp { background: #d1fae5; }
.dark .ms-grid thead th.pr { background: #3b1a2c; color: #fbcfe8; }
.dark .ms-grid thead th.sp { background: #10302a; color: #a7f3d0; }
.dark .ms-grid thead tr.band th.pr { background: #4a1d35; }
.dark .ms-grid thead tr.band th.sp { background: #12382c; }
.ms-grid td.pr-cell { background: #fffafc; }
.dark .ms-grid td.pr-cell { background: #1d161a; }
.ms-grid .split { border-left: 1px solid #e5e7eb; }
.dark .ms-grid .split { border-color: #3f3f46; }
.ms-grid td { border-bottom: 1px solid #f1f5f9; padding: 0; height: 46px; vertical-align: middle; }
.dark .ms-grid td { border-color: #27272a; }
.ms-grid tbody tr:last-child td { border-bottom: 0; }
.ms-grid tbody tr:hover td { background: #fafbfc; }
.dark .ms-grid tbody tr:hover td { background: #1c1c20; }
.ms-grid td.cell { position: relative; padding: 4px; }
.ms-grid input { width: 100%; border: 1px solid transparent; background: transparent; padding: 7px 8px; font-size: 14px; color: inherit; border-radius: 8px; transition: border-color .1s, background .1s; }
.ms-grid input::placeholder { color: #cbd5e1; }
.ms-grid tr:hover input:not(:disabled) { border-color: #eef2f7; }
.ms-grid input:focus { outline: none; border-color: #93c5fd !important; background: #fff; box-shadow: 0 0 0 3px rgba(59,130,246,.15); }
.dark .ms-grid input:focus { background: #0f172a; }
.ms-grid td.pr-cell input { color: #831843; }
.dark .ms-grid td.pr-cell input { color: #fbcfe8; }

.ms-grid td.date { padding: 4px 10px 4px 20px; }
.ms-grid .date-line { display: flex; align-items: center; gap: 6px; }
.ms-grid .date-line .d { font-weight: 700; white-space: nowrap; }
.ms-grid tr.past .date-line .d { color: #94a3b8; font-weight: 600; }
.ms-grid .d.is-hol, .ms-grid tr.past .d.is-hol, .ms-grid .svc-head b.is-hol { color: #dc2626; font-weight: 800; }
.dark .ms-grid .d.is-hol, .dark .ms-grid .svc-head b.is-hol { color: #f87171; }
.ms-grid .day-label { font-size: 11.5px; font-weight: 600; color: #475569; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-grid .chip-next { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: #2563eb; border-radius: 999px; padding: 1px 7px; }
.ms-grid tr.next td:first-child { box-shadow: inset 3px 0 0 #2563eb; }
.ms-grid tr.next td { background: #f5f9ff; }
.dark .ms-grid tr.next td { background: #172033; }
.ms-grid tr.found td { background: #dbeafe !important; }
.dark .ms-grid tr.found td { background: #1e3a5f !important; }
.ms-grid .slot { font-size: 12.5px; font-weight: 600; color: #94a3b8; padding-left: 2px; }
.ms-grid tr.more td { border-top: 0; }
.ms-grid tr.more td.date, .ms-grid tr.in-svc td.date { padding-left: 32px; }

.ms-songs { margin-left: auto; border: 1px solid #e2e8f0; background: #fff; color: #64748b; border-radius: 999px; font-size: 11px; font-weight: 600; padding: 1px 8px; cursor: pointer; white-space: nowrap; opacity: 0; transition: opacity .1s; }
.ms-songs.show { opacity: 1; background: #f1f5f9; border-color: #f1f5f9; }
.ms-grid tr:hover .ms-songs, .ms-songs:focus { opacity: 1; }
.ms-songs:hover { color: #1d4ed8; border-color: #bfdbfe; background: #eff6ff; }
.dark .ms-songs { background: #27272a; border-color: #3f3f46; color: #d4d4d8; }

.ms-count { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; border: 0; background: #eef2ff; color: #4338ca; font-size: 11px; font-weight: 700; cursor: pointer; opacity: 0; transition: opacity .1s; }
.ms-count.has { opacity: .8; }
.ms-grid tr:hover .ms-count { opacity: 1; }
.ms-count:hover { background: #4338ca; color: #fff; }
.dark .ms-count { background: #312e81; color: #c7d2fe; }
.ms-grid td.cell:has(.ms-count) input { padding-right: 38px; }
.ms-move { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 8px; border: 1px solid #e2e8f0; background: #fff; color: #475569; font-size: 13px; cursor: pointer; opacity: 0; transition: opacity .1s; }
.ms-grid tr:hover .ms-move, .ms-move:focus { opacity: 1; }
.ms-move:hover { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.dark .ms-move { background: #27272a; border-color: #3f3f46; color: #d4d4d8; }
.ms-grid td.cell:has(.ms-move) input { padding-right: 40px; }
@media (hover: none) { .ms-songs, .ms-count, .ms-move { opacity: .7; } }

.ms-grid tr.svc td { height: auto; background: #f8fafc !important; border-top: 1px solid #e5e7eb; border-bottom: 1px solid #eef2f7; }
.dark .ms-grid tr.svc td { background: #1f1f23 !important; border-color: #3f3f46; }
.ms-grid .svc-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px 10px 20px; }
.ms-grid .svc-tag { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #7c3aed; background: #ede9fe; border-radius: 999px; padding: 2px 8px; }
.dark .ms-grid .svc-tag { background: rgba(139,92,246,.2); color: #c4b5fd; }
.ms-grid .svc-head b { font-size: 14.5px; }
.ms-grid .svc-name { font-weight: 600; color: #334155; }
.dark .ms-grid .svc-name { color: #d4d4d8; }
.ms-grid .svc-time { font-weight: 700; color: #b45309; background: #fef3c7; border-radius: 6px; padding: 1px 8px; font-size: 12.5px; }
.ms-btn { margin-left: auto; border: 1px solid #e2e8f0; background: #fff; color: #334155; border-radius: 8px; padding: 4px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.ms-btn:hover { color: #1d4ed8; border-color: #bfdbfe; background: #eff6ff; }
.dark .ms-btn { background: #27272a; border-color: #3f3f46; color: #e4e4e7; }
@media (max-width: 900px) { .ms-grid { min-width: 820px; } .ms-bar-right { margin-left: 0; width: 100%; } }

.ms-grid thead th.am { background: #eff6ff; color: #1e40af; }
.ms-grid thead tr.band th.am { background: #dbeafe; }
.ms-grid thead th.pm { background: #f5f3ff; color: #5b21b6; }
.ms-grid thead tr.band th.pm { background: #ede9fe; }
.dark .ms-grid thead th.am { background: #172554; color: #bfdbfe; }
.dark .ms-grid thead tr.band th.am { background: #1e3a8a; }
.dark .ms-grid thead th.pm { background: #2e1065; color: #ddd6fe; }
.dark .ms-grid thead tr.band th.pm { background: #3b0764; }
.ms-grid td.title-cell input { font-weight: 600; }

@media (max-width: 900px) { .ms-month .scc-mu-scroll { overflow-x: auto; } }

.scc-sched-svc { margin-top: 3px; display: inline-block; font-size: 11px; font-weight: 700; color: #6d28d9; background: #ede9fe; border-radius: 6px; padding: 1px 6px; max-width: 150px; white-space: normal; }
.dark .scc-sched-svc { background: rgba(139,92,246,.2); color: #c4b5fd; }
.scc-sched-svc-edit { display: block; border: 0; background: none; padding: 0; margin-top: 2px; font-size: 11px; color: #2563eb; cursor: pointer; font-weight: 600; }
.scc-sched-svc-edit:hover { text-decoration: underline; }
.scc-sched-svcbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border: 1px solid #e9e5fb; background: #faf8ff; border-radius: 12px; }
.dark .scc-sched-svcbar { background: #1c1730; border-color: #3b2f63; }
.scc-sched-hols { padding: .75rem 1rem; display: grid; gap: 6px; }
.scc-sched-hols b { font-size: 13px; }
.ms-grid td.cell:has(.ms-share) input { padding-right: 40px; }
.ms-share { font-size: 12px; }
.ms-sent { position: absolute; right: 42px; top: 50%; transform: translateY(-50%); font-size: 11px; font-weight: 800; color: #16a34a; cursor: default; }

/* ── Schedules: click a holiday to jump to it ── */
.scc-hol-go { cursor: pointer; }
.scc-hol-go:hover, .scc-hol-go:focus { outline: none; color: #2563eb; text-decoration: underline; text-underline-offset: 3px; }
@keyframes scc-flash { 0%, 30% { background: #fff4c2; } 100% { background: transparent; } }
tr.scc-flash > td { animation: scc-flash 1.8s ease-out; }
@keyframes scc-flash-dark { 0%, 30% { background: #3a3000; } 100% { background: transparent; } }
.dark tr.scc-flash > td { animation-name: scc-flash-dark; }

/* ── Special days calendar ── */
.scc-cal { background: #fff; border-radius: 16px; padding: 1.1rem 1.2rem 1.2rem; box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 1px 3px rgba(0,0,0,.05); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, sans-serif; }
.scc-cal-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .9rem; }
.scc-cal-nav { display: flex; align-items: center; gap: .35rem; }
.scc-cal-nav h2 { font-size: 1.3rem; font-weight: 700; margin: 0 .5rem; min-width: 10.5rem; text-align: center; color: #1d1d1f; }
.scc-cal-nav button { border: 0; background: #f2f2f7; color: #1d1d1f; border-radius: 999px; min-width: 2.2rem; height: 2.2rem; font-size: 1.25rem; cursor: pointer; }
.scc-cal-nav button:hover { background: #e5e5ea; }
.scc-cal-nav .scc-cal-today { font-size: .85rem; font-weight: 600; padding: 0 .9rem; margin-left: .4rem; }
.scc-cal-key { display: flex; gap: 1rem; font-size: .78rem; color: #6e6e73; }
.scc-cal-key i { display: inline-block; width: .65rem; height: .65rem; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }
.scc-cal-key .k-holiday, .scc-cal-chip.k-holiday { background: #ffe5e3; color: #c4271c; }
.scc-cal-key .k-special, .scc-cal-chip.k-special { background: #f2ecfb; color: #7a3fb6; }
.scc-cal-key .k-church, .scc-cal-chip.k-church { background: #e6f2ff; color: #0a64d6; }
.scc-cal-key i.k-holiday { background: #ff6b5e; } .scc-cal-key i.k-special { background: #af52de; } .scc-cal-key i.k-church { background: #0a84ff; }
.scc-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid #ececf0; border-left: 1px solid #ececf0; border-radius: 12px; overflow: hidden; }
.scc-cal-wd { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #86868b; padding: .5rem .6rem; border-right: 1px solid #ececf0; border-bottom: 1px solid #ececf0; background: #fafafc; }
.scc-cal-day { position: relative; min-height: 6.6rem; padding: .4rem .45rem .5rem; border-right: 1px solid #ececf0; border-bottom: 1px solid #ececf0; display: flex; flex-direction: column; gap: .25rem; cursor: pointer; transition: background .12s; }
.scc-cal-day:hover { background: #f8fafe; }
.scc-cal-day.is-out { background: #fbfbfd; }
.scc-cal-day.is-out .scc-cal-num { color: #c7c7cc; }
.scc-cal-num { font-size: .82rem; font-weight: 600; color: #1d1d1f; width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border-radius: 999px; }
.scc-cal-day.is-sun .scc-cal-num { color: #0a64d6; }
.scc-cal-day.is-today .scc-cal-num { background: #0a84ff; color: #fff; }
.scc-cal-chip { display: block; width: 100%; text-align: left; border: 0; border-radius: 6px; padding: .2rem .4rem; font-size: .74rem; font-weight: 600; line-height: 1.25; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scc-cal-chip:hover { filter: brightness(.96); box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.scc-cal-chip.is-removed { background: transparent; color: #aeaeb2; text-decoration: line-through; font-weight: 500; border: 1px dashed #d2d2d7; }
.scc-cal-plus { position: absolute; top: .35rem; right: .5rem; font-size: 1rem; color: #0a84ff; opacity: 0; transition: opacity .12s; }
.scc-cal-day:hover .scc-cal-plus { opacity: 1; }
.scc-cal-list { display: none; }
.scc-cal-li { display: flex; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid #f2f2f5; align-items: baseline; }
.scc-cal-li b { min-width: 6.5rem; font-size: .88rem; }
.scc-cal-li > div { flex: 1; display: flex; flex-direction: column; gap: .3rem; }
.dark .scc-cal { background: #1c1c1e; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.dark .scc-cal-nav h2, .dark .scc-cal-num { color: #f5f5f7; }
.dark .scc-cal-nav button { background: #2c2c2e; color: #f5f5f7; }
.dark .scc-cal-grid, .dark .scc-cal-wd, .dark .scc-cal-day { border-color: #2c2c2e; }
.dark .scc-cal-wd, .dark .scc-cal-day.is-out { background: #161618; }
.dark .scc-cal-day:hover { background: #232326; }
@media (max-width: 760px) {
  .scc-cal-grid { display: none; }
  .scc-cal-list { display: block; }
  .scc-cal-nav h2 { min-width: 0; font-size: 1.1rem; }
}
.scc-cal-key i.k-gcal { background: #34c759; }
.scc-cal-chip.k-gcal { background: #e7f8ec; color: #1f7a37; }
.scc-cal-chip.is-offsched { opacity: .7; }
.scc-cal-chip.is-offsched::before { content: "⊘ "; font-weight: 700; }

/* ── Music schedule: special-service songs, fields together on the left ── */
.ms-grid td.svc-fields-cell { padding: 4px 10px 4px 0; }
.ms-grid .svc-fields { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ms-grid .svc-fields .f { position: relative; display: flex; align-items: center; gap: 4px; border-left: 1px solid #f1f5f9; padding-left: 10px; }
.ms-grid .svc-fields .f:first-child { border-left: 0; padding-left: 0; }
.ms-grid .svc-fields .who { flex: 0 0 15rem; }
.ms-grid .svc-fields .song { flex: 1 1 18rem; max-width: 28rem; }
.ms-grid .svc-fields .book { flex: 0 0 11rem; }
.ms-grid .svc-fields .page { flex: 0 0 5rem; }
.ms-grid .svc-fields input { width: 100%; }
.dark .ms-grid .svc-fields .f { border-color: #27272a; }

/* Schedule grids never widen the page: the table scrolls sideways inside its card instead. */
.ms-month { min-width: 0; max-width: 100%; }
.ms-month .scc-mu-scroll { overflow-x: auto; max-width: 100%; }
.ms-bar { min-width: 0; max-width: 100%; }
.ms-bar-right { flex-wrap: wrap; justify-content: flex-end; }
.fi-page-content:has(.ms-month) { min-width: 0; }
@media (max-width: 1280px) { .ms-grid { min-width: 860px; } }

/* ── Music schedule: autosave status + Save button ── */
.ms-save-state { font-size: 12.5px; font-weight: 600; color: #16a34a; display: inline-flex; align-items: center; white-space: nowrap; }
.ms-save-state.is-saving { color: #64748b; }
.ms-save-btn { border: 0; background: #1e3a5f; color: #fff; font-weight: 700; font-size: 13px; border-radius: 9px; padding: 7px 16px; cursor: pointer; }
.ms-save-btn:hover { background: #274b7a; }
.dark .ms-save-state { color: #4ade80; }
/* Floating save pill (bottom right, stays put while scrolling) */
.ms-save-float { position: fixed; right: 24px; bottom: 24px; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 8px 28px rgba(15,23,42,.16); }
.ms-save-float .ms-save-btn { border-radius: 999px; padding: 9px 22px; font-size: 14px; }
.dark .ms-save-float { background: rgba(28,28,30,.9); box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 8px 28px rgba(0,0,0,.5); }
@media (max-width: 640px) { .ms-save-float { right: 12px; bottom: 12px; left: 12px; justify-content: space-between; } }
@media print { .ms-save-float { display: none; } }

/* ── Order of service: colour swatches + underline / highlight ── */
.scc-swatches { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 36px; }
.scc-sw-row { display: flex; gap: 7px; flex-wrap: wrap; }
.scc-sw { width: 24px; height: 24px; border-radius: 999px; border: 0; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); transition: transform .1s; }
.scc-sw:hover { transform: scale(1.12); }
.scc-sw.is-on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c); }
.scc-sw-sep { width: 1px; height: 22px; background: #e5e7eb; }
.scc-sw-tog { width: 32px; height: 30px; border-radius: 8px; border: 1px solid #e2e8f0; background: #fff; color: #334155; display: grid; place-items: center; cursor: pointer; font-size: 14px; }
.scc-sw-tog svg { width: 16px; height: 16px; }
.scc-sw-tog.is-on { background: #1e3a5f; border-color: #1e3a5f; color: #fff; }
.dark .scc-sw.is-on { box-shadow: 0 0 0 2px #18181b, 0 0 0 4px var(--c); }
.dark .scc-sw-tog { background: #27272a; border-color: #3f3f46; color: #e4e4e7; }
.dark .scc-sw-sep { background: #3f3f46; }

/* Order of service list: hover a hymn number to see its title */
.scc-hymn-tip { position: relative; border-bottom: 1px dotted #94a3b8; cursor: default; }

/* ── Hymn pattern: one clean line per Sunday ── */
.scc-pattern-head { display: grid; grid-template-columns: 13.5rem 1fr 1fr 2.5rem; gap: 10px; padding: 0 12px 2px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; }
.scc-pattern-head span:nth-child(2) { padding-left: 2px; }
.scc-pattern .fi-fo-repeater-items { gap: 6px !important; }
.scc-pattern .fi-fo-repeater-item { display: flex; align-items: center; border-radius: 12px; box-shadow: none; border: 1px solid #eceef2; background: #fff; }
.scc-pattern .fi-fo-repeater-item-header { flex: 0 0 13.5rem; padding: 6px 4px 6px 8px; border: 0 !important; gap: 4px; order: 0; }
.scc-pattern .fi-fo-repeater-item-header .fi-fo-repeater-item-header-label { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.scc-pattern .fi-fo-repeater-item-content { flex: 1; padding: 6px 10px 6px 0 !important; border: 0 !important; }
.scc-pattern .fi-fo-repeater-item-content .fi-sc { gap: 10px !important; }
.scc-pattern .fi-fo-repeater-item-header > :last-child { order: 3; }
.scc-pt-num { display: inline-grid; place-items: center; min-width: 2rem; height: 1.6rem; border-radius: 999px; background: #f1f5f9; color: #334155; font-size: 12.5px; font-weight: 700; }
.scc-pt-num.is-next { background: #0a84ff; color: #fff; }
.scc-pt-date { font-size: 13px; color: #64748b; font-weight: 500; white-space: nowrap; }
.scc-pt-date.is-next { color: #0a64d6; font-weight: 700; }
.scc-pattern .fi-fo-repeater-item:has(.scc-pt-num.is-next) { border-color: #93c5fd; background: #f5f9ff; }
.dark .scc-pattern .fi-fo-repeater-item { background: #1c1c1e; border-color: #2c2c2e; }
.dark .scc-pt-num { background: #2c2c2e; color: #e4e4e7; }
.dark .scc-pattern .fi-fo-repeater-item:has(.scc-pt-num.is-next) { background: #0a2540; border-color: #1d4ed8; }
@media (max-width: 760px) {
  .scc-pattern-head { display: none; }
  .scc-pattern .fi-fo-repeater-item { flex-direction: column; align-items: stretch; }
  .scc-pattern .fi-fo-repeater-item-header { flex-basis: auto; }
  .scc-pattern .fi-fo-repeater-item-content { padding: 0 10px 8px !important; }
}

/* ── Hymn pattern page ── */
.hp-card { background: #fff; border-radius: 16px; padding: 1.25rem 1.4rem 1.1rem; box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 1px 3px rgba(0,0,0,.05); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, sans-serif; }
.hp-card + .hp-card { margin-top: 1.5rem; }
.hp-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.hp-head h2 { margin: 0; font-size: 1.15rem; font-weight: 700; color: #1d1d1f; }
.hp-head p { margin: .2rem 0 0; font-size: .85rem; color: #86868b; max-width: 46rem; }
.hp-controls { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
.hp-field { display: flex; align-items: center; gap: .6rem; font-size: .88rem; color: #3a3a3c; font-weight: 500; }
.hp-field input, .hp-cell input, .hp-cell select { border: 0; border-radius: 9px; background: #f5f5f7; padding: .5rem .7rem; font-size: .92rem; color: #1d1d1f; width: 100%; font-variant-numeric: tabular-nums; }
.hp-field input { width: auto; }
.hp-field input:focus, .hp-cell input:focus, .hp-cell select:focus { outline: none; background: #fff; box-shadow: 0 0 0 3px rgba(10,132,255,.3); }
.hp-switch { display: inline-flex; align-items: center; gap: .55rem; font-size: .88rem; font-weight: 500; color: #3a3a3c; cursor: pointer; user-select: none; }
.hp-switch input { position: absolute; opacity: 0; pointer-events: none; }
.hp-switch span { width: 2.4rem; height: 1.45rem; border-radius: 999px; background: #d1d1d6; position: relative; transition: background .15s; flex: none; }
.hp-switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: calc(1.45rem - 4px); height: calc(1.45rem - 4px); border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.hp-switch input:checked + span { background: #34c759; }
.hp-switch input:checked + span::after { transform: translateX(.95rem); }
.hp-table { display: flex; flex-direction: column; }
.hp-tr { display: grid; grid-template-columns: 11rem minmax(0, 1.3fr) minmax(0, 1fr) 6.5rem; gap: .9rem; align-items: start; padding: .6rem .5rem; border-radius: 12px; }
.hp-special .hp-tr { grid-template-columns: 13rem minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1.2fr) 2.5rem; }
.hp-tr + .hp-tr { border-top: 1px solid #f2f2f5; }
.hp-th { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; padding-top: 0; padding-bottom: .35rem; }
.hp-tr.is-next { background: #f2f8ff; box-shadow: inset 0 0 0 1px #bfdbfe; border-top-color: transparent; }
.hp-tr.is-next + .hp-tr { border-top-color: transparent; }
.hp-when { display: flex; align-items: center; gap: .6rem; padding-top: .3rem; }
.hp-num { display: inline-grid; place-items: center; min-width: 2.2rem; height: 1.75rem; padding: 0 .5rem; border-radius: 999px; background: #f1f5f9; color: #334155; font-size: .8rem; font-weight: 700; }
.is-next .hp-num { background: #0a84ff; color: #fff; }
.hp-date { font-size: .84rem; color: #6e6e73; white-space: nowrap; }
.is-next .hp-date { color: #0a64d6; font-weight: 700; }
.hp-titles { display: flex; flex-wrap: wrap; gap: .25rem .4rem; margin-top: .35rem; }
.hp-titles span { font-size: .74rem; color: #6e6e73; background: #fafafa; border: 1px solid #eef0f3; border-radius: 6px; padding: .05rem .4rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-titles span b { color: #1d1d1f; font-weight: 700; margin-right: .15rem; }
.hp-titles span.bad { color: #b42318; border-color: #fecaca; background: #fff5f5; }
.hp-actions { display: flex; gap: .3rem; justify-content: flex-end; padding-top: .2rem; }
.hp-actions button { width: 1.9rem; height: 1.9rem; border-radius: 8px; border: 0; background: #f5f5f7; color: #3a3a3c; cursor: pointer; font-size: .9rem; }
.hp-actions button:hover:not(:disabled) { background: #e5e5ea; }
.hp-actions button.del:hover:not(:disabled) { background: #ffe5e3; color: #c4271c; }
.hp-actions button:disabled { opacity: .35; cursor: default; }
.hp-add { margin-top: .75rem; border: 1px dashed #c7c7cc; background: transparent; color: #0a84ff; font-weight: 600; font-size: .88rem; border-radius: 10px; padding: .55rem 1rem; cursor: pointer; width: 100%; }
.hp-add:hover { background: #f5f9ff; border-color: #0a84ff; }
.hp-mini { display: flex; align-items: center; gap: .4rem; font-size: .78rem; color: #6e6e73; margin-top: .4rem; }
.hp-inline { display: grid; grid-template-columns: 1fr 7.5rem; gap: .4rem; margin-top: .4rem; }
.dark .hp-card { background: #1c1c1e; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.dark .hp-head h2 { color: #f5f5f7; }
.dark .hp-field input, .dark .hp-cell input, .dark .hp-cell select { background: #2c2c2e; color: #f5f5f7; }
.dark .hp-tr + .hp-tr { border-color: #2c2c2e; }
.dark .hp-tr.is-next { background: #0a2540; box-shadow: inset 0 0 0 1px #1d4ed8; }
.dark .hp-num, .dark .hp-actions button { background: #2c2c2e; color: #e4e4e7; }
.dark .hp-titles span { background: #232326; border-color: #2c2c2e; color: #a1a1a6; }
.dark .hp-titles span b { color: #f5f5f7; }
@media (max-width: 900px) {
  .hp-tr, .hp-special .hp-tr { grid-template-columns: 1fr; gap: .5rem; }
  .hp-th { display: none; }
  .hp-actions { justify-content: flex-start; }
}

/* ---------- Households: family tiles ---------- */
.scc-hh-card { --hh: #22385a; --hh-soft: #e8eef7; display: flex; flex-direction: column; gap: .75rem; width: 100%; min-height: 9.5rem; padding: 0 1rem; }
.fi-ta-record:has(.scc-hh-card) { border-top: 4px solid var(--hh-top, #22385a); transition: transform .12s ease, box-shadow .12s ease; }
.fi-ta-record:has(.scc-hh-card):hover { transform: translateY(-2px); box-shadow: var(--scc-shadow-lg); }
.fi-ta-record:has(.scc-hh-navy)  { --hh-top: #22385a; }
.fi-ta-record:has(.scc-hh-teal)  { --hh-top: #0f766e; }
.fi-ta-record:has(.scc-hh-plum)  { --hh-top: #7e3a8a; }
.fi-ta-record:has(.scc-hh-amber) { --hh-top: #b45309; }
.fi-ta-record:has(.scc-hh-rose)  { --hh-top: #be3455; }
.fi-ta-record:has(.scc-hh-sky)   { --hh-top: #1d6fb8; }
.fi-ta-record:has(.scc-hh-olive) { --hh-top: #5b7a1e; }
.fi-ta-record:has(.scc-hh-slate) { --hh-top: #475569; }
.scc-hh-navy  { --hh: #22385a; --hh-soft: #e6ecf5; }
.scc-hh-teal  { --hh: #0f766e; --hh-soft: #e0f2ef; }
.scc-hh-plum  { --hh: #7e3a8a; --hh-soft: #f3e8f5; }
.scc-hh-amber { --hh: #b45309; --hh-soft: #fdf0e1; }
.scc-hh-rose  { --hh: #be3455; --hh-soft: #fbe8ed; }
.scc-hh-sky   { --hh: #1d6fb8; --hh-soft: #e3effa; }
.scc-hh-olive { --hh: #5b7a1e; --hh-soft: #eef4e0; }
.scc-hh-slate { --hh: #475569; --hh-soft: #eceff3; }
.scc-hh-top { display: flex; align-items: center; gap: .75rem; }
.scc-hh-initial { flex: none; width: 2.75rem; height: 2.75rem; border-radius: 12px; display: grid; place-items: center; background: var(--hh); color: #fff; font-weight: 750; font-size: 1.25rem; }
.scc-hh-title { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.1; }
.scc-hh-family { font-size: 1.35rem; font-weight: 750; letter-spacing: -.02em; color: var(--scc-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scc-hh-label { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--hh); margin-top: .2rem; }
.scc-hh-count { flex: none; align-self: flex-start; min-width: 1.75rem; height: 1.75rem; padding: 0 .5rem; border-radius: 999px; display: grid; place-items: center; background: var(--hh-soft); color: var(--hh); font-weight: 700; font-size: .8rem; }
.scc-hh-members { display: flex; flex-wrap: wrap; gap: .35rem; }
.scc-hh-chip { font-size: .8rem; font-weight: 550; padding: .15rem .55rem; border-radius: 999px; background: var(--hh-soft); color: var(--scc-ink); }
.scc-hh-more { color: var(--hh); font-weight: 700; }
.scc-hh-empty { font-size: .8rem; color: var(--scc-muted); font-style: italic; }
.scc-hh-meta { margin-top: auto; padding-top: .6rem; border-top: 1px solid var(--scc-line); font-size: .8rem; color: var(--scc-muted); display: flex; flex-direction: column; gap: .15rem; }
.dark .scc-hh-family { color: #fff; }
.dark .scc-hh-chip { background: rgba(255,255,255,.08); color: #e2e8f0; }
.dark .scc-hh-count { background: rgba(255,255,255,.1); color: #fff; }
.dark .scc-hh-meta { border-color: rgba(255,255,255,.1); color: #94a3b8; }
.scc-hh-statuses { display: flex; flex-wrap: wrap; gap: .3rem; }
.scc-hh-status { font-size: .68rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: .12rem .45rem; border-radius: 6px; border: 1px solid currentColor; color: #64748b; }
.scc-hh-st-member { color: #15803d; background: #f0fdf4; }
.scc-hh-st-regular_attender { color: #1d6fb8; background: #eff6ff; }
.scc-hh-st-visitor { color: #b45309; background: #fffbeb; }
.scc-hh-st-child { color: #7e3a8a; background: #faf5ff; }
.scc-hh-st-giver { color: #22385a; background: #f1f5f9; }
.scc-hh-st-past_visitor, .scc-hh-st-inactive { color: #64748b; background: #f8fafc; }
.dark .scc-hh-status { background: transparent; }

/* ---------- Filters box: "Apply filters" at the top, so an open dropdown can't cover it ---------- */
.fi-ta-filters > * { order: 2; }
.fi-ta-filters > .fi-ta-filters-header { order: 0; }
.fi-ta-filters > .fi-ta-filters-actions-ctn { order: 1; padding-bottom: .9rem; border-bottom: 1px solid var(--scc-line); }
.dark .fi-ta-filters > .fi-ta-filters-actions-ctn { border-color: rgba(255,255,255,.1); }

/* ================================================================== Books */
:root { --bk-card: #fff; --bk-line: #e6eaf0; --bk-soft: #f8fafc; --bk-ink: #0f172a; --bk-mute: #64748b; --bk-in: #15803d; --bk-out: #b91c1c; --bk-navy: #1e3a5f; --bk-warn: #b45309; }
.dark { --bk-card: rgba(255,255,255,.035); --bk-line: rgba(255,255,255,.08); --bk-soft: rgba(255,255,255,.03); --bk-ink: #f1f5f9; --bk-mute: #94a3b8; --bk-in: #4ade80; --bk-out: #f87171; --bk-navy: #93c5fd; --bk-warn: #fbbf24; }
.scc-books { display: flex; flex-direction: column; gap: 18px; color: var(--bk-ink); }
.scc-books a { color: var(--bk-navy); }
.scc-books .muted, .scc-books-view .muted { color: var(--bk-mute); }
.scc-books .good { color: var(--bk-in); } .scc-books .bad { color: var(--bk-out); }
.scc-books .nowrap { white-space: nowrap; }

/* hero: bank + funds */
.scc-books-hero { display: grid; grid-template-columns: minmax(240px, 1fr) 2.4fr; gap: 16px; }
.scc-books-money { display: flex; flex-direction: column; gap: 12px; }
.scc-books-tile { border-radius: var(--scc-radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--bk-line); background: var(--bk-card); box-shadow: var(--scc-shadow); }
.scc-books-tile.is-bank { background: linear-gradient(135deg, #0f1d33 0%, #22385a 100%); border-color: #0f1d33; color: #fff; box-shadow: var(--scc-shadow-lg); }
.scc-books-tile span { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; opacity: .75; }
.scc-books-tile b { font-size: 30px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.scc-books-tile em { font-style: normal; font-size: 13px; opacity: .7; }
.scc-books-funds { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; align-content: start; }
.scc-books-fund { background: var(--bk-card); border: 1px solid var(--bk-line); border-radius: var(--scc-radius); padding: 14px 16px 16px; box-shadow: var(--scc-shadow); position: relative; overflow: hidden; }
.scc-books-fund::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--fund); }
.scc-books-fund .top { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.scc-books-fund i { font-style: normal; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--fund); background: color-mix(in srgb, var(--fund) 12%, transparent); padding: 2px 7px; border-radius: 99px; }
.scc-books-fund b { display: block; margin-top: 6px; font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.scc-books-fund b.neg { color: var(--bk-out); }

/* cards */
.scc-books-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; }
.scc-books-card { background: var(--bk-card); border: 1px solid var(--bk-line); border-radius: var(--scc-radius); box-shadow: var(--scc-shadow); padding: 18px 20px; min-width: 0; }
.scc-books-card.is-wide { grid-column: 1 / -1; }
.scc-books-card > header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.scc-books-card h3 { font-size: 15px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.scc-books-card h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--bk-mute); margin: 18px 0 8px; font-weight: 700; }
.scc-books-card > header a { font-size: 13px; font-weight: 600; text-decoration: none; }

.scc-books-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.scc-books-flow > div { background: var(--bk-soft); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.scc-books-flow span { font-size: 12px; color: var(--bk-mute); font-weight: 600; }
.scc-books-flow b { font-size: 20px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.scc-books-flow em { font-style: normal; font-size: 11.5px; color: var(--bk-mute); }
.scc-books-flow .in b { color: var(--bk-in); } .scc-books-flow .out b { color: var(--bk-out); } .scc-books-flow .net.neg b { color: var(--bk-out); }

.scc-books-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.scc-books-bars li { display: grid; grid-template-columns: 9.5rem 1fr 5.5rem; align-items: center; gap: 10px; font-size: 13px; }
.scc-books-bars span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scc-books-bars i { height: 8px; border-radius: 99px; background: linear-gradient(90deg, #22385a, #4f7cb3); }
.scc-books-bars b { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

.scc-books-budgetbar { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; margin-top: 14px; font-size: 13px; color: var(--bk-mute); }
.scc-books-budgetbar div { height: 8px; background: var(--bk-soft); border-radius: 99px; overflow: hidden; border: 1px solid var(--bk-line); }
.scc-books-budgetbar i { display: block; height: 100%; background: var(--bk-navy); }

.scc-books-chart { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; height: 120px; margin-top: 16px; align-items: end; }
.scc-books-chart .col { display: flex; flex-direction: column; height: 100%; gap: 4px; }
.scc-books-chart .bars { flex: 1; display: flex; align-items: flex-end; gap: 2px; }
.scc-books-chart .bars i { flex: 1; border-radius: 3px 3px 0 0; min-height: 2px; }
.scc-books-chart i.in { background: #34a36a; } .scc-books-chart i.out { background: #d9a2a2; }
.scc-books-chart span { font-size: 10.5px; color: var(--bk-mute); text-align: center; }
.scc-books-legend { display: flex; gap: 14px; margin-top: 8px; font-size: 12px; color: var(--bk-mute); }
.scc-books-legend .in::before, .scc-books-legend .out::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.scc-books-legend .in::before { background: #34a36a; } .scc-books-legend .out::before { background: #d9a2a2; }

.scc-books-due { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.scc-books-due li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--bk-line); align-items: center; }
.scc-books-due li:last-child { border-bottom: 0; }
.scc-books-due time { text-align: center; background: var(--bk-soft); border-radius: 8px; padding: 4px 0; line-height: 1.1; }
.scc-books-due time b { display: block; font-size: 13px; } .scc-books-due time span { font-size: 10px; color: var(--bk-mute); }
.scc-books-due a { font-weight: 600; text-decoration: none; color: var(--bk-ink) !important; font-size: 14px; }
.scc-books-due em { display: block; font-style: normal; font-size: 12.5px; color: var(--bk-mute); }
.scc-books-due li.urgent time, .scc-books-due li.late time { background: #fef2f2; color: #b91c1c; }
.dark .scc-books-due li.urgent time, .dark .scc-books-due li.late time { background: rgba(248,113,113,.12); color: #fca5a5; }

.scc-books-flag { display: block; text-decoration: none; padding: 11px 14px; border-radius: 10px; background: #fffbeb; border: 1px solid #fde68a; margin-bottom: 8px; color: #78350f !important; }
.scc-books-flag b { display: block; font-size: 14px; } .scc-books-flag span { font-size: 12.5px; }
.scc-books-flag.warn { background: #fef2f2; border-color: #fecaca; color: #7f1d1d !important; }
.dark .scc-books-flag { background: rgba(251,191,36,.08); border-color: rgba(251,191,36,.25); color: #fde68a !important; }
.dark .scc-books-flag.warn { background: rgba(248,113,113,.08); border-color: rgba(248,113,113,.25); color: #fecaca !important; }
.scc-books-ok { color: var(--bk-in); font-weight: 600; margin: 0; }

.scc-books-recent { width: 100%; border-collapse: collapse; font-size: 14px; }
.scc-books-recent td { padding: 9px 6px; border-bottom: 1px solid var(--bk-line); }
.scc-books-recent tr:last-child td { border-bottom: 0; }
.scc-books-recent .date { color: var(--bk-mute); white-space: nowrap; width: 4.5rem; }
.scc-books-recent .who { font-weight: 500; }
.scc-books-recent .amt { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.scc-books-recent .amt.out { color: var(--bk-out); } .scc-books-recent .amt.in { color: var(--bk-in); }
.scc-books .kind { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--bk-soft); border: 1px solid var(--bk-line); color: var(--bk-mute); white-space: nowrap; }
.scc-books .kind.k-expense { color: #b91c1c; } .scc-books .kind.k-deposit, .scc-books .kind.k-offering { color: #15803d; } .scc-books .kind.k-paycheque { color: #1d4ed8; }

/* tabs + filters */
.scc-books-tabs, .scc-books-kinds { display: flex; gap: 4px; flex-wrap: wrap; background: var(--bk-card); border: 1px solid var(--bk-line); border-radius: 12px; padding: 4px; box-shadow: var(--scc-shadow); width: fit-content; max-width: 100%; }
.scc-books-tabs button, .scc-books-kinds a { border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--bk-mute); padding: 8px 14px; border-radius: 9px; cursor: pointer; text-decoration: none; }
.scc-books-tabs button:hover, .scc-books-kinds a:hover { color: var(--bk-ink); background: var(--bk-soft); }
.scc-books-tabs .is-active, .scc-books-kinds .is-active { background: #0f1d33 !important; color: #fff !important; }
.scc-books-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.scc-books-filters label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--bk-mute); }
.scc-books-filters label.grow { flex: 1; min-width: 260px; }
.scc-books-filters label.check { flex-direction: row; align-items: center; gap: 8px; padding-bottom: 9px; font-size: 13.5px; color: var(--bk-ink); font-weight: 500; }
.scc-books-filters select, .scc-books-filters input[type=date], .scc-books-filters input[type=number], .scc-books-callout input[type=date] { font: inherit; font-size: 14px; color: var(--bk-ink); background: var(--bk-card); border: 1px solid var(--bk-line); border-radius: 9px; padding: 8px 10px; min-width: 150px; box-shadow: var(--scc-shadow); }
.scc-books-btn { display: inline-flex; align-items: center; font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 9px; border: 1px solid var(--bk-line); background: var(--bk-card); text-decoration: none; }
.scc-books-loading { font-size: 12.5px; color: var(--bk-mute); padding-bottom: 10px; }

/* statements */
.scc-books-statement { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 6px; }
.scc-books-statement th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--bk-mute); font-weight: 700; padding: 8px 8px; border-bottom: 1px solid var(--bk-line); }
.scc-books-statement td { padding: 7px 8px; border-bottom: 1px solid var(--bk-line); vertical-align: top; }
.scc-books-statement tbody tr:hover td { background: var(--bk-soft); }
.scc-books-statement .amt { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.scc-books-statement .pct { width: 7rem; }
.scc-books-statement tr.group td { font-weight: 650; }
.scc-books-statement tr.d1 td:first-child { padding-left: 26px; } .scc-books-statement tr.d2 td:first-child { padding-left: 44px; } .scc-books-statement tr.d3 td:first-child { padding-left: 62px; }
.scc-books-statement tr.d0:not(.group) td:first-child { font-weight: 600; }
.scc-books-statement td a { color: inherit !important; text-decoration: none; }
.scc-books-statement td a:hover { text-decoration: underline; }
.scc-books-statement tfoot td { font-weight: 700; border-top: 2px solid var(--bk-ink); border-bottom: 0; padding-top: 10px; }
.scc-books-statement small { font-size: 11px; color: var(--bk-mute); }
.scc-books-statement .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; }
.scc-books-statement .actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.scc-books-statement tr.urgent td { background: #fef2f2; }
.dark .scc-books-statement tr.urgent td { background: rgba(248,113,113,.07); }
.scc-books-statement + .scc-books-statement { margin-top: 18px; }
.scc-books .meter { height: 7px; background: var(--bk-soft); border: 1px solid var(--bk-line); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.scc-books .meter i { display: block; height: 100%; background: #34a36a; } .scc-books .meter i.over { background: #dc2626; }
.scc-books-netline { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding: 14px 16px; border-radius: 10px; background: var(--bk-soft); border: 1px solid var(--bk-line); }
.scc-books-netline span { font-weight: 600; } .scc-books-netline b { font-size: 20px; font-variant-numeric: tabular-nums; color: var(--bk-in); }
.scc-books-netline.neg b { color: var(--bk-out); } .scc-books-netline em { font-style: normal; color: var(--bk-mute); font-size: 13px; width: 100%; }
.scc-books .pill { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: #eef2f7; color: #334155; margin-left: 6px; white-space: nowrap; }
.scc-books .pill.good { background: #dcfce7; color: #166534; } .scc-books .pill.warn { background: #fef3c7; color: #92400e; } .scc-books .pill.muted { background: transparent; color: var(--bk-mute); border: 1px dashed var(--bk-line); }
.scc-books-note { font-size: 12.5px; color: var(--bk-mute); margin: 10px 0 0; line-height: 1.5; }

.scc-books-callout { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: linear-gradient(135deg, #f8fbff 0%, #eef4fb 100%); border: 1px solid #d6e2f0; border-radius: var(--scc-radius); padding: 20px 24px; }
.dark .scc-books-callout { background: rgba(147,197,253,.06); border-color: rgba(147,197,253,.18); }
.scc-books-callout h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -.01em; }
.scc-books-callout p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--bk-mute); max-width: 62rem; }
.scc-books-callout .big { text-align: right; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; min-width: 200px; }
.scc-books-callout .big span { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: var(--bk-mute); }
.scc-books-callout .big b { font-size: 32px; letter-spacing: -.02em; color: var(--bk-in); font-variant-numeric: tabular-nums; }
.scc-books-callout .big.warn b { color: var(--bk-warn); }
.scc-books-callout .big em { font-style: normal; font-size: 13px; color: var(--bk-mute); }
.scc-books-callout .big label { display: flex; flex-direction: column; gap: 4px; text-align: left; font-size: 12px; font-weight: 600; color: var(--bk-mute); }

/* reconcile + budget */
.scc-books-recon-bar { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 12px; align-items: stretch; position: sticky; top: 72px; z-index: 5; }
.scc-books-recon-bar > div { background: var(--bk-card); border: 1px solid var(--bk-line); border-radius: 12px; padding: 12px 14px; box-shadow: var(--scc-shadow); display: flex; flex-direction: column; gap: 2px; }
.scc-books-recon-bar span { font-size: 12px; font-weight: 600; color: var(--bk-mute); }
.scc-books-recon-bar b { font-size: 19px; font-variant-numeric: tabular-nums; }
.scc-books-recon-bar em { font-style: normal; font-size: 12px; color: var(--bk-mute); }
.scc-books-recon-bar .diff.ok { background: #f0fdf4; border-color: #bbf7d0; } .scc-books-recon-bar .diff.ok b { color: #15803d; }
.scc-books-recon-bar .diff.bad b { color: var(--bk-out); }
.dark .scc-books-recon-bar .diff.ok { background: rgba(74,222,128,.08); border-color: rgba(74,222,128,.25); }
.scc-books-recon-bar .act { flex-direction: row !important; align-items: center; gap: 8px; }
.scc-books-recon tr.ticked td { background: #f0fdf4; }
.dark .scc-books-recon tr.ticked td { background: rgba(74,222,128,.06); }
.scc-books-recon input[type=checkbox] { width: 18px; height: 18px; accent-color: #15803d; }
.scc-books-budget input { width: 9rem; text-align: right; font: inherit; font-variant-numeric: tabular-nums; border: 1px solid var(--bk-line); border-radius: 8px; padding: 6px 8px; background: var(--bk-card); color: var(--bk-ink); }
.scc-books-budget input:focus { outline: 2px solid #93c5fd; }
.scc-books-budgetsum { margin-left: auto; text-align: right; font-size: 13px; color: var(--bk-mute); display: flex; flex-direction: column; }
.scc-books-budgetsum b { font-size: 16px; color: var(--bk-in); } .scc-books-budgetsum.neg b { color: var(--bk-out); }

/* entry screen */
.scc-books-kinds { margin-bottom: 4px; }
.scc-books-entry { display: flex; flex-direction: column; gap: 16px; }
.scc-books-summary { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.scc-books-summary > div { background: var(--bk-card); border: 1px solid var(--bk-line); border-radius: 12px; padding: 10px 16px; box-shadow: var(--scc-shadow); display: flex; flex-direction: column; align-items: flex-end; min-width: 150px; }
.scc-books-summary span { font-size: 12px; color: var(--bk-mute); font-weight: 600; }
.scc-books-summary b { font-size: 17px; font-variant-numeric: tabular-nums; }
.scc-books-summary .big { background: #0f1d33; border-color: #0f1d33; } .scc-books-summary .big span { color: #aab6c8; } .scc-books-summary .big b { color: #fff; font-size: 22px; }
.scc-books-summary .ok b { color: var(--bk-in); } .scc-books-summary .bad b { color: var(--bk-out); }
.scc-books-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.scc-books-actions .scc-books-spacer { flex: 1; }
.scc-books-help { font-size: 13px; color: var(--bk-mute); }

/* transaction view modal */
.scc-books-view { color: var(--bk-ink); }
.scc-books-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 18px; margin: 0 0 16px; }
.scc-books-facts .wide { grid-column: 1 / -1; }
.scc-books-facts dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--bk-mute); font-weight: 700; }
.scc-books-facts dd { margin: 2px 0 0; font-size: 14px; }
.scc-books-lines { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.scc-books-lines th { text-align: left; font-size: 11px; text-transform: uppercase; color: var(--bk-mute); padding: 6px; border-bottom: 1px solid var(--bk-line); }
.scc-books-lines td { padding: 6px; border-bottom: 1px solid var(--bk-line); }
.scc-books-lines .amt { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.scc-books-lines tr.muted td { color: var(--bk-mute); font-style: italic; }
.scc-books-lines tfoot td { font-weight: 700; border-bottom: 0; }
.scc-books-history { list-style: none; padding: 0; margin: 6px 0 0; font-size: 12.5px; color: var(--bk-mute); display: flex; flex-direction: column; gap: 4px; }
.scc-books-view h4 { margin: 16px 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--bk-mute); }

@media (max-width: 900px) {
    .scc-books-hero, .scc-books-callout { grid-template-columns: 1fr; }
    .scc-books-callout .big { align-items: flex-start; text-align: left; }
    .scc-books-grid { grid-template-columns: 1fr; }
    .scc-books-flow { grid-template-columns: 1fr 1fr; }
    .scc-books-recon-bar { grid-template-columns: 1fr 1fr; position: static; }
    .scc-books-bars li { grid-template-columns: 7rem 1fr 4.5rem; }
    .scc-books-card { overflow-x: auto; }
}

/* Books · bank import */
.scc-books-dropzone .filepond--root { min-height: 132px; margin-bottom: 0; }
.scc-books-dropzone .filepond--panel-root { background: #f8fbff; border: 2px dashed #b8cbe2; }
.dark .scc-books-dropzone .filepond--panel-root { background: rgba(147,197,253,.05); border-color: rgba(147,197,253,.3); }
.scc-books-dropzone .filepond--drop-label { min-height: 132px; font-weight: 600; color: var(--bk-mute); }
.scc-books-importresult { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 12px 16px; border-radius: 12px; background: #f0fdf4; border: 1px solid #bbf7d0; font-size: 14px; }
.dark .scc-books-importresult { background: rgba(74,222,128,.07); border-color: rgba(74,222,128,.25); }
.scc-books-importresult span { font-weight: 600; } .scc-books-importresult .new { color: #1d4ed8; } .scc-books-importresult .ok { color: #15803d; }
.scc-books-tabs .count { display: inline-block; min-width: 1.5em; padding: 0 6px; margin-left: 4px; border-radius: 99px; background: var(--bk-soft); font-size: 12px; color: var(--bk-mute); }
.scc-books-tabs .is-active .count { background: rgba(255,255,255,.18); color: #fff; }
.scc-books-bankrows { overflow-x: auto; }
.scc-books-bankrows td { vertical-align: middle; }
.scc-books-bankrows .desc { min-width: 15rem; max-width: 26rem; }
.scc-books-bankrows .desc b { font-weight: 600; }
.scc-books-bankrows .why { font-size: 12px; color: #7c3aed; }
.scc-books-bankrows .amt.out { color: var(--bk-out); } .scc-books-bankrows .amt.in { color: var(--bk-in); }
.scc-books-bankrows input[type=text], .scc-books-bankrows select { font: inherit; font-size: 13.5px; color: var(--bk-ink); background: var(--bk-card); border: 1px solid var(--bk-line); border-radius: 8px; padding: 6px 8px; width: 100%; min-width: 9rem; }
.scc-books-bankrows td:nth-child(7) select { min-width: 15rem; }
.scc-books-bankrows input[type=checkbox] { width: 18px; height: 18px; accent-color: #15803d; }
.scc-books-bankrows tr.ticked td { background: #f0fdf4; }
.dark .scc-books-bankrows tr.ticked td { background: rgba(74,222,128,.05); }
.scc-books-bankrows .center { text-align: center; }
.scc-books-bankrows .maybe { margin-top: 6px; font-size: 12px; color: #b45309; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.scc-books-bankrows .maybe select { width: auto; min-width: 12rem; font-size: 12.5px; padding: 3px 6px; }
.scc-books-bankrows .linked { color: #15803d; font-weight: 600; margin-right: 6px; }
