:root {
  font-family: Aptos, "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #232538;
  background: #f4f5f9;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --primary: #4c55b8;
  --primary-deep: #39417e;
  --primary-soft: #efeffd;
  --accent: #b9904d;
  --surface: #ffffff;
  --surface-soft: #fafaff;
  --border: #e5e7ef;
  --muted: #777b8d;
  --success: #2f8f70;
  --success-soft: #e8f6f0;
  --danger: #c45e6d;
  --danger-soft: #fdecef;
  --info: #4f7fc7;
  --info-soft: #edf4ff;
  --shadow: 0 12px 34px rgba(34, 38, 82, .07);
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #f4f5f9; font-size: 15px; line-height: 1.48; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; }
svg { display: block; }

.startup-placeholder { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 7px; color: #65697b; }
.startup-placeholder strong { font-size: 19px; font-weight: 650; color: #2d3046; }
.startup-placeholder small { font-size: 13px; }
.startup-mark { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 7px; border-radius: 18px; background: linear-gradient(145deg, #5660c8, #39417e); color: #fff; font-size: 18px; font-weight: 700; letter-spacing: -.04em; box-shadow: 0 14px 26px rgba(58, 66, 136, .22); }

.app-shell { min-height: 100vh; }
.topbar { min-height: 74px; position: sticky; top: 0; z-index: 40; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 10px 20px; color: #fff; background: linear-gradient(104deg, #39417e 0%, #4852a8 54%, #565fc1 100%); box-shadow: 0 4px 18px rgba(38, 43, 93, .22); }
.brand-button { display: flex; align-items: center; gap: 12px; min-width: 0; border: 0; padding: 0; color: inherit; background: transparent; text-align: left; }
.brand-mark { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border-radius: 13px; color: #424b99; background: #fff; font-size: 16px; font-weight: 700; letter-spacing: -.045em; box-shadow: 0 8px 20px rgba(24, 28, 70, .19); }
.brand-copy { min-width: 0; }
.brand-copy strong, .brand-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-copy strong { font-size: 17px; font-weight: 650; letter-spacing: -.012em; }
.brand-copy small { margin-top: 1px; color: rgba(255,255,255,.72); font-size: 11px; font-weight: 450; }
.topbar-spacer { min-width: 16px; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.church-chip { max-width: 290px; display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 6px 11px; border: 1px solid rgba(255,255,255,.20); border-radius: 12px; background: rgba(255,255,255,.09); }
.church-chip svg { flex: 0 0 auto; opacity: .88; }
.church-chip-copy { min-width: 0; }
.church-chip-copy strong, .church-chip-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.church-chip-copy strong { font-size: 12px; font-weight: 600; }
.church-chip-copy small { color: rgba(255,255,255,.68); font-size: 10px; }
.topbar-icon-button { width: 43px; height: 43px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 12px; color: #fff; background: rgba(255,255,255,.08); }
.topbar-icon-button:hover, .topbar-icon-button:focus-visible { background: rgba(255,255,255,.16); }
.topbar-icon-button:focus-visible, .brand-button:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(197, 157, 83, .32); outline-offset: 2px; }

.page-container { width: min(1480px, calc(100% - 34px)); margin: 25px auto 52px; }
.hero-card, .panel, .metric-card, .feature-card { border: 1px solid var(--border); border-radius: 19px; background: var(--surface); box-shadow: var(--shadow); }
.hero-card { min-height: 156px; display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; padding: 28px 30px; background: linear-gradient(135deg, #fff 0%, #fbfbff 72%, #f2f2ff 100%); }
.hero-card.compact { min-height: auto; }
.hero-card h1 { margin: 7px 0 9px; font-size: clamp(28px, 3vw, 38px); line-height: 1.12; font-weight: 650; letter-spacing: -.032em; }
.hero-card p { max-width: 820px; margin: 0; color: #6f7385; line-height: 1.58; }
.eyebrow { color: var(--primary); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.period-chip { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; padding: 9px 13px; border: 1px solid #dedff1; border-radius: 999px; color: #54586c; background: #fff; font-size: 12px; font-weight: 600; box-shadow: 0 7px 20px rgba(42,44,82,.045); }
.hero-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 17px 0; }
.metric-card { min-height: 129px; padding: 19px 20px; overflow: hidden; position: relative; color: #fff; border: 0; background: linear-gradient(135deg, #585fb9, #7773cb); }
.metric-card::after { content: ""; width: 118px; height: 118px; position: absolute; right: -40px; bottom: -53px; border-radius: 50%; background: rgba(255,255,255,.11); }
.metric-card span, .metric-card small, .metric-card strong { position: relative; z-index: 1; display: block; }
.metric-card span { color: rgba(255,255,255,.82); font-size: 12px; }
.metric-card strong { margin: 8px 0 4px; font-size: clamp(24px, 2.4vw, 30px); font-weight: 650; letter-spacing: -.03em; }
.metric-card small { color: rgba(255,255,255,.75); font-size: 11px; }
.metric-card.income { background: linear-gradient(135deg, #3b9574, #4fb695); }
.metric-card.expense { background: linear-gradient(135deg, #be6470, #d9818b); }
.metric-card.cash { background: linear-gradient(135deg, #4f76b6, #5e97cf); }
.metric-card.attendance { background: linear-gradient(135deg, #585fb9, #7773cb); }
/* 1.1.3 HF1 — semantic themes used by report/cash summary cards */
.metric-card.funds,
.metric-card.wallet { background: linear-gradient(135deg, #3b9574, #4fb695); }
.metric-card.donors,
.metric-card.activity,
.metric-card.calendar,
.metric-card.groups,
.metric-card.check { background: linear-gradient(135deg, #585fb9, #7773cb); }
.metric-card.church,
.metric-card.accounts,
.metric-card.transfer,
.metric-card.reports { background: linear-gradient(135deg, #4f76b6, #5e97cf); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 17px; margin-bottom: 17px; }
.dashboard-grid.equal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel { padding: 22px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid #eceef3; }
.panel-heading.no-border { padding-bottom: 0; border-bottom: 0; }
.panel-heading h2 { margin: 4px 0 0; font-size: 20px; font-weight: 650; letter-spacing: -.018em; }
.panel-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.panel-heading > span { color: var(--muted); font-size: 11px; }

.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 12px; padding-top: 17px; }
.quick-card { min-height: 142px; display: grid; justify-items: center; align-content: center; gap: 6px; border: 1px solid #e7e8f0; border-radius: 15px; padding: 14px 10px; color: #303247; text-align: center; background: #fbfbfe; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.quick-card:hover { transform: translateY(-2px); border-color: #cacbf0; box-shadow: 0 9px 20px rgba(67, 72, 157, .08); }
.quick-card > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: var(--primary); background: var(--primary-soft); }
.quick-card strong { font-size: 13px; font-weight: 650; }
.quick-card small { color: #85899a; font-size: 10px; line-height: 1.35; }

.setup-list { display: grid; gap: 10px; padding-top: 15px; }
.setup-row { display: grid; grid-template-columns: 32px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 10px 11px; border: 1px solid #eaebf1; border-radius: 12px; background: #fcfcfe; }
.setup-index { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: #f0f1fa; color: #60658a; font-size: 11px; font-weight: 700; }
.setup-row.done .setup-index { color: var(--success); background: var(--success-soft); }
.setup-copy strong, .setup-copy small { display: block; }
.setup-copy strong { font-size: 12px; font-weight: 600; }
.setup-copy small { margin-top: 1px; color: #8a8d9c; font-size: 10px; }
.setup-state { color: #888c9c; font-size: 10px; }
.setup-row.done .setup-state { color: var(--success); font-weight: 600; }

.ministry-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; padding-top: 17px; }
.ministry-card { min-height: 116px; border: 1px solid #e7e8f0; border-radius: 14px; padding: 15px; background: #fcfcfe; }
.ministry-card header { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.ministry-card header span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: var(--primary); background: var(--primary-soft); }
.ministry-card strong { display: block; margin-top: 12px; font-size: 17px; font-weight: 650; }
.ministry-card small { color: #8b8e9f; font-size: 10px; }

.empty-state { min-height: 186px; display: grid; place-items: center; align-content: center; gap: 6px; padding: 28px; color: #828697; text-align: center; }
.empty-state > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; color: var(--primary); background: var(--primary-soft); }
.empty-state strong { margin-top: 3px; color: #45485c; font-size: 14px; font-weight: 650; }
.empty-state p { max-width: 470px; margin: 0; font-size: 11px; line-height: 1.5; }

.primary-button, .secondary-button, .ghost-button, .danger-button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 11px; padding: 9px 14px; font-weight: 600; font-size: 12px; }
.primary-button { border: 1px solid var(--primary); color: #fff; background: var(--primary); box-shadow: 0 8px 18px rgba(76, 85, 184, .17); }
.primary-button:hover { background: #434ca8; }
.secondary-button { border: 1px solid #dfe1e9; color: #4c5063; background: #fff; }
.secondary-button:hover { border-color: #c9cbe0; background: #fafaff; }
.ghost-button { border: 0; color: var(--primary); background: transparent; padding-left: 8px; padding-right: 8px; }
.danger-button { border: 1px solid #f0c9cf; color: #a64d5b; background: #fff4f6; }
.icon-only-button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #dfe1e9; border-radius: 10px; color: #555a71; background: #fff; }

.page-panel { margin-top: 17px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 17px; }
.feature-card { min-height: 178px; padding: 20px; }
.feature-card > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; color: var(--primary); background: var(--primary-soft); }
.feature-card h3 { margin: 14px 0 6px; font-size: 16px; font-weight: 650; }
.feature-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.feature-card footer { margin-top: 15px; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px; font-size: 10px; font-weight: 600; }
.status-pill.neutral { color: #64687b; background: #f0f1f5; }
.status-pill.active { color: #277458; background: #e8f6f0; }

.form-card { max-width: 980px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; padding-top: 18px; }
.field-label { min-width: 0; display: grid; gap: 6px; color: #4d5165; font-size: 11px; font-weight: 600; }
.field-label.full { grid-column: 1 / -1; }
.field-label input, .field-label select, .field-label textarea { width: 100%; min-height: 42px; border: 1px solid #dfe1e9; border-radius: 10px; padding: 9px 11px; outline: 0; color: #2e3144; background: #fff; font-weight: 450; }
.field-label textarea { min-height: 80px; resize: vertical; }
.field-label input:focus, .field-label select:focus, .field-label textarea:focus { border-color: #a8ace0; box-shadow: 0 0 0 3px rgba(76,85,184,.08); }
.field-help { margin-top: -2px; color: #9295a4; font-size: 9px; font-weight: 450; line-height: 1.4; }
.form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 9px; padding-top: 5px; }
.profile-summary { display: flex; align-items: center; gap: 13px; margin-top: 17px; padding: 14px; border: 1px solid #e7e8ef; border-radius: 13px; background: #fbfbfd; }
.profile-summary > span { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 13px; color: var(--primary); background: var(--primary-soft); }
.profile-summary strong, .profile-summary small { display: block; }
.profile-summary strong { font-size: 13px; font-weight: 650; }
.profile-summary small { margin-top: 2px; color: #85899a; font-size: 10px; }

.launcher-backdrop { position: fixed; inset: 0; z-index: 100; display: flex; justify-content: flex-end; background: rgba(19, 21, 44, .48); backdrop-filter: blur(2px); }
.launcher-panel { width: min(570px, 100%); height: 100%; display: flex; flex-direction: column; background: #f7f8fb; box-shadow: -18px 0 55px rgba(16, 18, 42, .24); animation: slideIn .18s ease-out; }
@keyframes slideIn { from { transform: translateX(30px); opacity: .84; } to { transform: translateX(0); opacity: 1; } }
.launcher-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 23px 23px 17px; background: #fff; border-bottom: 1px solid #e6e7ee; }
.launcher-header h2 { margin: 5px 0 3px; font-size: 22px; font-weight: 650; letter-spacing: -.02em; }
.launcher-header p { margin: 0; color: #86899a; font-size: 11px; }
.close-button { width: 39px; height: 39px; flex: 0 0 39px; display: grid; place-items: center; border: 1px solid #e2e3eb; border-radius: 11px; color: #565a6f; background: #fff; }
.launcher-groups { overflow-y: auto; padding: 15px 16px 28px; }
.launcher-group { margin-bottom: 10px; border: 1px solid #e4e6ed; border-radius: 15px; overflow: hidden; background: #fff; }
.launcher-group-heading { width: 100%; min-height: 52px; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; border: 0; padding: 9px 12px; color: #3e4258; background: #fff; text-align: left; }
.launcher-group-heading:hover { background: #fafaff; }
.launcher-count { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: var(--primary); background: var(--primary-soft); font-size: 10px; font-weight: 700; }
.launcher-group-heading strong { font-size: 12px; font-weight: 650; }
.launcher-chevron { transition: transform .16s ease; color: #777b8d; }
.launcher-group.expanded .launcher-chevron { transform: rotate(180deg); }
.launcher-grid { display: grid; gap: 7px; padding: 0 9px 10px; }
.launcher-grid[hidden] { display: none; }
.launcher-item { width: 100%; min-height: 62px; display: grid; grid-template-columns: 38px minmax(0,1fr); align-items: center; gap: 10px; border: 1px solid transparent; border-radius: 12px; padding: 9px 10px; color: #3c4055; background: #fafafd; text-align: left; }
.launcher-item:hover { border-color: #d9daf0; background: #f7f7ff; }
.launcher-item.active { border-color: #cfd1ef; background: #f3f3ff; }
.launcher-item > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: var(--primary); background: #ededfb; }
.launcher-item strong, .launcher-item small { display: block; }
.launcher-item strong { font-size: 11px; font-weight: 650; }
.launcher-item small { margin-top: 2px; color: #8b8e9f; font-size: 9px; line-height: 1.35; }

.onboarding-backdrop { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px; background: radial-gradient(circle at 15% 10%, #eef0ff 0, transparent 36%), radial-gradient(circle at 90% 80%, #f6efe4 0, transparent 32%), #f5f6fa; }
.onboarding-card { width: min(850px, 100%); display: grid; grid-template-columns: .82fr 1.18fr; overflow: hidden; border: 1px solid #e1e3ec; border-radius: 24px; background: #fff; box-shadow: 0 24px 70px rgba(33, 37, 81, .12); }
.onboarding-brand { padding: 36px 31px; color: #fff; background: linear-gradient(145deg, #39417e, #555fc0); }
.onboarding-brand .brand-mark { width: 56px; height: 56px; margin-bottom: 22px; color: #424b99; font-size: 18px; }
.onboarding-brand h1 { margin: 8px 0 10px; font-size: 30px; line-height: 1.15; font-weight: 650; letter-spacing: -.03em; }
.onboarding-brand p { margin: 0; color: rgba(255,255,255,.76); font-size: 12px; line-height: 1.6; }
.onboarding-features { display: grid; gap: 10px; margin-top: 28px; }
.onboarding-features div { display: grid; grid-template-columns: 28px 1fr; gap: 9px; align-items: center; }
.onboarding-features span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.12); }
.onboarding-features strong { font-size: 10px; font-weight: 600; }
.onboarding-form { padding: 34px 34px 31px; }
.onboarding-form h2 { margin: 5px 0 7px; font-size: 23px; font-weight: 650; letter-spacing: -.02em; }
.onboarding-form > p { margin: 0 0 18px; color: #777b8d; font-size: 11px; line-height: 1.55; }
.onboarding-form .form-grid { grid-template-columns: 1fr 1fr; }
.onboarding-form .form-actions { justify-content: stretch; }
.onboarding-form .primary-button { width: 100%; min-height: 44px; }

.toast-region { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: grid; gap: 8px; width: min(390px, calc(100vw - 36px)); pointer-events: none; }
.toast { display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 10px; align-items: flex-start; padding: 12px 13px; border: 1px solid #dedfe8; border-radius: 13px; background: #fff; box-shadow: 0 16px 38px rgba(28, 32, 71, .16); animation: toastIn .16s ease-out; pointer-events: auto; }
@keyframes toastIn { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.toast > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: var(--primary); background: var(--primary-soft); }
.toast strong, .toast small { display: block; }
.toast strong { color: #414559; font-size: 11px; font-weight: 650; }
.toast small { margin-top: 2px; color: #85899a; font-size: 9px; line-height: 1.4; }

@media (max-width: 1120px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dashboard-grid, .dashboard-grid.equal { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .topbar { grid-template-columns: 1fr auto; gap: 10px; padding: 9px 12px; }
  .topbar-spacer { display: none; }
  .church-chip { display: none; }
  .brand-copy strong { font-size: 14px; }
  .brand-copy small { font-size: 10px; }
  .brand-mark { width: 40px; height: 40px; flex-basis: 40px; }
  .page-container { width: min(100% - 20px, 1480px); margin-top: 15px; }
  .hero-card { display: grid; gap: 18px; padding: 22px 20px; }
  .period-chip { justify-self: start; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric-card { min-height: 112px; padding: 16px; }
  .panel { padding: 17px; }
  .quick-grid { gap: 9px; }
  .quick-card { min-height: 128px; }
  .ministry-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field-label.full, .form-actions { grid-column: auto; }
  .form-actions { justify-content: stretch; }
  .form-actions .primary-button, .form-actions .secondary-button { flex: 1; }
  .onboarding-card { grid-template-columns: 1fr; }
  .onboarding-brand { padding: 28px 24px; }
  .onboarding-features { display: none; }
  .onboarding-form { padding: 27px 24px; }
}

@media (max-width: 520px) {
  .brand-copy small { display: none; }
  .metric-grid { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .quick-card { min-height: 118px; }
  .quick-card small { display: none; }
  .hero-card h1 { font-size: 28px; }
  .panel-heading { display: grid; }
  .onboarding-form .form-grid { grid-template-columns: 1fr; }
}

/* F3 — Catálogos y configuración */
.catalog-panel { overflow: hidden; }
.catalog-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 16px 0 13px; }
.catalog-search { min-width: min(360px, 100%); flex: 1 1 280px; min-height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid #dfe1e9; border-radius: 11px; color: #777b8d; background: #fff; }
.catalog-search input { width: 100%; border: 0; outline: 0; background: transparent; color: #303348; font-weight: 450; }
.catalog-filter { min-height: 42px; border: 1px solid #dfe1e9; border-radius: 11px; padding: 0 11px; color: #4b4f63; background: #fff; font-weight: 500; }
.data-table-wrap { width: 100%; overflow-x: auto; border: 1px solid #e4e6ed; border-radius: 13px; background: #fff; }
.data-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.data-table th { padding: 10px 12px; border-bottom: 1px solid #e4e6ed; color: #777b8d; background: #f8f8fb; font-size: 9px; font-weight: 650; text-align: left; letter-spacing: .02em; text-transform: uppercase; }
.data-table td { padding: 11px 12px; border-bottom: 1px solid #ececf2; color: #3f4358; font-size: 10px; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr[hidden] { display: none; }
.table-primary { min-width: 190px; }
.table-primary strong, .table-primary small { display: block; }
.table-primary strong { color: #383c50; font-size: 11px; font-weight: 650; }
.table-primary small { margin-top: 3px; color: #8a8e9f; font-size: 9px; line-height: 1.4; max-width: 430px; }
.table-muted { color: #74788b; font-size: 10px; line-height: 1.45; }
.row-actions { display: flex; justify-content: flex-end; gap: 6px; min-width: 145px; }
.table-action { min-height: 31px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid #dfe1e9; border-radius: 9px; padding: 5px 9px; color: #4d5167; background: #fff; font-size: 9px; font-weight: 600; white-space: nowrap; }
.table-action:hover { border-color: #c9cce5; background: #f8f8ff; }
.table-action.subtle { color: #707487; background: #fafafd; }
.mini-tag { display: inline-flex; align-items: center; min-height: 22px; padding: 4px 7px; border-radius: 999px; color: #4d579d; background: #efeffb; font-size: 8px; font-weight: 650; line-height: 1; }
.mini-tag.neutral { color: #707487; background: #f0f1f5; }
.mini-tag.income-tag { color: #277458; background: #e8f6f0; }
.mini-tag.expense-tag { color: #985463; background: #faedf0; }
.category-name-cell { padding-left: calc(var(--category-depth, 0) * 16px); }
.tree-mark { display: inline-block; margin-right: 6px; color: #9a9daf; font-weight: 500; }
.catalog-no-results { margin-top: 12px; padding: 14px; border: 1px dashed #dfe1e9; border-radius: 11px; color: #85899a; background: #fbfbfd; font-size: 10px; text-align: center; }
.empty-state.compact { min-height: 140px; }
.center-actions { display: flex; justify-content: center; margin-top: 12px; }
.ministry-config-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.ministry-config-card { padding: 16px; border: 1px solid #e3e5ed; border-radius: 14px; background: #fff; }
.ministry-config-card[hidden] { display: none; }
.ministry-config-card header { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.ministry-config-card h3 { margin: 8px 0 3px; color: #393d52; font-size: 15px; font-weight: 650; }
.ministry-config-card p { margin: 0; color: #878b9c; font-size: 9px; }
.ministry-config-card footer { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.metric-chip-list { display: flex; flex-wrap: wrap; gap: 6px; min-height: 32px; margin-top: 13px; }
.metric-chip { min-height: 28px; border: 1px solid #dadcec; border-radius: 999px; padding: 5px 9px; color: #555c9f; background: #f6f6ff; font-size: 9px; font-weight: 600; }
.metric-chip.inactive { color: #8a8d9c; background: #f5f5f7; text-decoration: line-through; }
.modal-backdrop { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 18px; background: rgba(19,21,44,.52); backdrop-filter: blur(2px); }
.modal-card { width: min(720px, 100%); max-height: calc(100vh - 36px); overflow: hidden; display: flex; flex-direction: column; border: 1px solid #e0e2ea; border-radius: 20px; background: #fff; box-shadow: 0 24px 72px rgba(23,26,61,.24); }
.modal-header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 20px 21px 15px; border-bottom: 1px solid #e8e9ef; }
.modal-header h2 { margin: 4px 0 4px; color: #34384d; font-size: 21px; font-weight: 650; letter-spacing: -.02em; }
.modal-header p { margin: 0; color: #85899a; font-size: 10px; line-height: 1.5; }
.modal-form { min-height: 0; display: flex; flex-direction: column; }
.modal-form > .form-grid { overflow-y: auto; padding: 18px 21px 6px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 21px 18px; border-top: 1px solid #ececf2; background: #fbfbfd; }
.check-field { min-height: 54px; display: flex; align-items: flex-start; gap: 10px; padding: 10px 11px; border: 1px solid #e2e4eb; border-radius: 11px; color: #4c5064; background: #fbfbfd; }
.check-field.full { grid-column: 1 / -1; }
.check-field input { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--primary); }
.check-field strong, .check-field small { display: block; }
.check-field strong { font-size: 10px; font-weight: 650; }
.check-field small { margin-top: 2px; color: #8b8e9e; font-size: 9px; line-height: 1.4; }

@media (max-width: 760px) {
  .catalog-toolbar { display: grid; grid-template-columns: 1fr 1fr; }
  .catalog-search { grid-column: 1 / -1; min-width: 0; }
  .catalog-filter { width: 100%; }
  .ministry-config-grid { grid-template-columns: 1fr; }
  .modal-backdrop { padding: 8px; align-items: end; }
  .modal-card { width: 100%; max-height: 92vh; border-radius: 18px 18px 0 0; }
  .modal-header { padding: 18px 17px 13px; }
  .modal-form > .form-grid { padding: 16px 17px 5px; }
  .modal-actions { padding: 12px 17px 16px; }
}

@media (max-width: 520px) {
  .catalog-toolbar { grid-template-columns: 1fr; }
  .catalog-search { grid-column: auto; }
  .panel-heading .primary-button { width: 100%; margin-top: 8px; }
  .modal-actions .primary-button, .modal-actions .secondary-button { flex: 1; }
}

/* F5 — Ingresos, gastos y transferencias */
.financial-summary-row { display: grid; grid-template-columns: minmax(220px,.72fr) minmax(320px,1.28fr); gap: 12px; margin: 17px 0 0; }
.financial-summary-row > article { min-height: 96px; padding: 16px 18px; border: 1px solid #e3e5ed; border-radius: 15px; background: #fff; }
.financial-summary-row > article > span, .financial-summary-row > article > small { display: block; color: #828697; font-size: 9px; }
.financial-summary-row > article > strong { display: block; margin: 5px 0 4px; color: #35394e; font-size: 23px; font-weight: 650; letter-spacing: -.02em; }
.financial-summary-row .financial-tip { display: flex; align-items: center; gap: 12px; background: #f8f8ff; }
.financial-tip > span { width: 38px; height: 38px; flex: 0 0 auto; display: grid !important; place-items: center; border-radius: 11px; color: #535ca0 !important; background: #ececfa; }
.financial-tip p { margin: 0; color: #656a7f; font-size: 10px; line-height: 1.55; }
.movement-balance-strip { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 9px; margin-top: 11px; }
.movement-balance-strip > div { padding: 11px 13px; border: 1px solid #e5e6ee; border-radius: 12px; background: #fff; }
.movement-balance-strip span, .movement-balance-strip small { display: block; color: #8a8e9f; font-size: 8px; }
.movement-balance-strip strong { display: block; margin: 4px 0 2px; color: #3e4257; font-size: 13px; font-weight: 650; }
.movement-toolbar { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin: 15px 0 13px; }
.movement-toolbar .catalog-search { min-width: min(460px,100%); }
.movement-table { min-width: 930px; }
.amount-cell { text-align: right; white-space: nowrap; }
.amount-cell strong { font-size: 11px; font-weight: 650; }
.amount-cell.income strong { color: #277458; }
.amount-cell.expense strong { color: #9a5262; }
.amount-cell.transfer strong { color: #51598f; }
.movement-modal-card { width: min(920px,100%); }
.movement-form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.select-with-add { display: grid; grid-template-columns: minmax(0,1fr) 40px; gap: 7px; align-items: stretch; }
.inline-add-button { min-height: 40px; display: grid; place-items: center; border: 1px solid #d7d9e8; border-radius: 10px; color: #4f589c; background: #f7f7ff; }
.inline-add-button:hover { background: #eeeeff; }
.split-editor { padding: 12px; border: 1px solid #e2e4ec; border-radius: 13px; background: #fafafe; }
.split-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 9px; }
.split-heading strong, .split-heading small { display: block; }
.split-heading strong { color: #3d4155; font-size: 11px; font-weight: 650; }
.split-heading small { margin-top: 2px; color: #898d9d; font-size: 8px; line-height: 1.4; }
.compact-button { min-height: 32px; padding: 6px 9px; font-size: 9px; white-space: nowrap; }
.split-line { position: relative; display: grid; grid-template-columns: minmax(170px,1.35fr) minmax(130px,.9fr) minmax(105px,.62fr) minmax(140px,1fr) 31px; gap: 8px; align-items: end; padding: 9px 0; border-top: 1px solid #e7e8ef; }
.split-line:first-child { border-top: 0; }
.split-line .field-label { gap: 4px; }
.split-line .field-label > span, .split-line .field-label { font-size: 8px; }
.split-remove { width: 31px; height: 40px; display: grid; place-items: center; border: 1px solid #eadde0; border-radius: 9px; color: #9d5d68; background: #fff7f8; }
.split-remove[hidden] { visibility: hidden; display: grid; }
.split-total { display: flex; justify-content: flex-end; align-items: baseline; gap: 12px; padding-top: 9px; border-top: 1px solid #e0e2e9; }
.split-total span { color: #7d8193; font-size: 9px; }
.split-total strong { color: #35394e; font-size: 14px; font-weight: 650; }
.nested-modal { z-index: 340; background: rgba(19,21,44,.62); }
.quick-modal-card { width: min(540px,100%); }
.void-summary { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; margin: 16px 21px 0; padding: 11px 12px; border: 1px solid #e5e6ed; border-radius: 11px; background: #fafafd; }
.void-summary span { color: #85899a; font-size: 9px; }
.void-summary strong { color: #45495f; font-size: 10px; font-weight: 600; }
.void-summary b { color: #3d4156; font-size: 11px; font-weight: 650; }
.account-balance-list { display: grid; gap: 2px; margin-top: 7px; }
.account-balance-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid #ececf2; }
.account-balance-row:last-child { border-bottom: 0; }
.account-balance-row span strong, .account-balance-row span small { display: block; }
.account-balance-row span strong { color: #44485d; font-size: 10px; font-weight: 600; }
.account-balance-row span small { margin-top: 2px; color: #9295a4; font-size: 8px; }
.account-balance-row > strong { color: #373b50; font-size: 11px; font-weight: 650; }
.recent-movement-list { display: grid; margin-top: 2px; }
.recent-movement { width: 100%; display: grid; grid-template-columns: 32px minmax(0,1fr) auto; gap: 9px; align-items: center; padding: 9px 3px; border: 0; border-bottom: 1px solid #ececf2; color: inherit; background: transparent; text-align: left; }
.recent-movement:last-child { border-bottom: 0; }
.recent-movement:hover { background: #fafafe; }
.recent-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; background: #f0f1f5; }
.recent-icon.income { color: #2e765b; background: #ebf7f2; }
.recent-icon.expense { color: #9a5262; background: #fbf0f2; }
.recent-icon.transfer { color: #535c9c; background: #f0f0fb; }
.recent-copy strong, .recent-copy small { display: block; }
.recent-copy strong { color: #42465b; font-size: 9px; font-weight: 600; }
.recent-copy small { margin-top: 2px; color: #9093a2; font-size: 8px; }
.recent-amount { font-size: 9px; font-weight: 650; white-space: nowrap; }
.recent-amount.income { color: #2e765b; }
.recent-amount.expense { color: #9a5262; }
.recent-amount.transfer { color: #565e98; }

@media (max-width: 860px) {
  .financial-summary-row { grid-template-columns: 1fr; }
  .split-line { grid-template-columns: 1fr 1fr; padding-right: 38px; }
  .split-remove { position: absolute; right: 0; top: 26px; }
  .movement-modal-card { width: 100%; }
}
@media (max-width: 620px) {
  .movement-form-grid { grid-template-columns: 1fr; }
  .movement-form-grid > div:empty { display: none; }
  .split-heading { display: grid; }
  .split-line { grid-template-columns: 1fr; padding-right: 0; padding-top: 13px; }
  .split-remove { position: static; width: 100%; height: 32px; }
  .split-remove[hidden] { display: none; }
  .void-summary { grid-template-columns: 1fr; }
  .recent-movement { grid-template-columns: 30px minmax(0,1fr); }
  .recent-amount { grid-column: 2; }
}

/* F5 — Diezmos, ofrendas y donantes */
.giving-tag { margin-left: 6px; color: #66552d; background: #faf3df; border-color: #ead9aa; }
.giving-overview-grid { grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr); }
.giving-guide-card { background: linear-gradient(145deg,#fff,#fbfbff); }
.giving-guide-list { display: grid; gap: 9px; padding-top: 15px; }
.giving-guide-list > div { display: grid; grid-template-columns: 36px minmax(0,1fr); gap: 10px; align-items: center; padding: 10px 11px; border: 1px solid #e9eaf1; border-radius: 12px; background: #fcfcff; }
.giving-guide-list > div > svg { width: 34px; height: 34px; padding: 8px; border-radius: 10px; color: var(--primary); background: var(--primary-soft); }
.giving-guide-list strong,.giving-guide-list small { display:block; }
.giving-guide-list strong { color:#44485d; font-size:11px; font-weight:650; }
.giving-guide-list small { margin-top:2px; color:#898d9d; font-size:9px; line-height:1.42; }
.giving-breakdown-row { display:grid; grid-template-columns:minmax(130px,1fr) minmax(100px,1.15fr) auto; gap:12px; align-items:center; padding:11px 0; border-bottom:1px solid #ececf2; }
.giving-breakdown-row:last-child { border-bottom:0; }
.giving-breakdown-row span strong,.giving-breakdown-row span small { display:block; }
.giving-breakdown-row span strong { color:#45495e; font-size:10px; font-weight:600; }
.giving-breakdown-row span small { margin-top:2px; color:#9295a4; font-size:8px; }
.giving-breakdown-row > strong { color:#35394f; font-size:10px; font-weight:650; white-space:nowrap; }
.giving-bar { height:7px; overflow:hidden; border-radius:999px; background:#eeeeF5; }
.giving-bar i { display:block; width:var(--giving-width,0%); height:100%; border-radius:inherit; background:linear-gradient(90deg,#5962c2,#8c84d3); }
.giving-line { grid-template-columns:minmax(185px,1.45fr) minmax(150px,1fr) minmax(115px,.65fr) 31px; }
.giving-split-editor { margin-top:2px; }
.giving-modal-card { width:min(920px,100%); }
.modal-action-spacer { flex:1; }
.donor-history-card { width:min(860px,100%); max-height:min(84vh,820px); overflow:auto; }
.donor-history-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; padding:15px 21px; }
.donor-history-summary > div { padding:12px 13px; border:1px solid #e7e8ef; border-radius:12px; background:#fafafe; }
.donor-history-summary span,.donor-history-summary strong { display:block; }
.donor-history-summary span { color:#8b8f9f; font-size:9px; }
.donor-history-summary strong { margin-top:4px; color:#3f4358; font-size:13px; font-weight:650; }
.donor-history-table { margin:0 21px 21px; }
.giving-row .mini-tag + .mini-tag { margin-left:5px; }

@media (max-width: 920px) {
  .giving-overview-grid { grid-template-columns:1fr; }
  .giving-line { grid-template-columns:1fr 1fr; padding-right:38px; }
  .donor-history-summary { grid-template-columns:1fr; }
}
@media (max-width: 620px) {
  .giving-line { grid-template-columns:1fr; padding-right:0; }
  .giving-line .split-remove { position:static; width:100%; height:32px; }
  .giving-breakdown-row { grid-template-columns:1fr auto; }
  .giving-bar { grid-column:1 / -1; grid-row:2; }
}

/* F6 — actividad ministerial */
.ministry-metric-grid{margin-top:18px}.ministry-activity-table th:nth-child(3){min-width:230px}.ministry-activity-table th:nth-child(4){min-width:170px}.ministry-metric-stack{display:flex;flex-wrap:wrap;gap:7px}.ministry-metric-stack span{display:inline-flex;align-items:baseline;gap:5px;padding:6px 9px;border:1px solid var(--border);border-radius:10px;background:var(--surface-soft)}.ministry-metric-stack small{font-size:11px;color:var(--muted)}.ministry-metric-stack strong{font-size:13px;font-weight:650;color:var(--text)}.ministry-groups-panel{margin-top:18px}.ministry-modal-card{max-width:940px}.ministry-metrics-section,.ministry-offering-section{padding:18px;border:1px solid var(--border);border-radius:16px;background:var(--surface-soft)}.ministry-offering-section{background:var(--surface)}.ministry-metric-input-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}.compact-form-grid{margin-top:14px}.ministry-metric-input input{font-variant-numeric:tabular-nums}
@media (max-width:760px){.ministry-metric-input-grid{grid-template-columns:1fr}.ministry-activity-table{min-width:860px}.ministry-metrics-section,.ministry-offering-section{padding:14px}}


/* F7 — Caja, bancos y control de efectivo */
.cash-overview-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.cash-account-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}.cash-account-card{border:1px solid var(--border);border-radius:16px;padding:16px;background:var(--surface-soft);display:flex;flex-direction:column;gap:5px}.cash-account-card.selected{border-color:rgba(66,75,153,.42);box-shadow:0 0 0 3px rgba(66,75,153,.07)}.cash-account-card span,.cash-account-card small,.cash-count-summary span,.ledger-summary-strip span,.cash-count-comparison span{font-size:12px;color:var(--muted)}.cash-account-card strong{font-size:14px}.cash-account-card b{font-size:22px;font-weight:700;letter-spacing:-.02em}.cash-control-layout{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.3fr);gap:18px;align-items:start}.cash-count-summary,.ledger-summary-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 16px}.cash-count-summary>div,.ledger-summary-strip>div{padding:12px 14px;border:1px solid var(--border);border-radius:14px;background:var(--surface-soft);display:flex;flex-direction:column;gap:4px}.ledger-summary-strip{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:4px}.cash-count-summary strong,.ledger-summary-strip strong{font-size:15px;font-weight:700}.cash-ledger-filters{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:10px;margin-bottom:12px}.ledger-link{appearance:none;border:0;background:transparent;padding:0;text-align:left;color:inherit;cursor:pointer;display:flex;flex-direction:column;gap:3px}.ledger-link strong{font-weight:650}.ledger-link small{color:var(--muted)}.ledger-link:hover strong{text-decoration:underline}.cash-difference{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:650;white-space:nowrap}.cash-difference.balanced{background:rgba(35,130,90,.10);color:#226b4e}.cash-difference.positive{background:rgba(35,130,90,.10);color:#226b4e}.cash-difference.negative{background:rgba(190,65,65,.10);color:#a43e3e}.cash-count-comparison{display:grid;grid-template-columns:1fr 1fr;gap:10px}.cash-count-comparison>div{border:1px solid var(--border);border-radius:14px;padding:13px 14px;background:var(--surface-soft);display:flex;flex-direction:column;gap:5px}.cash-count-comparison strong{font-size:18px;font-weight:700}.cash-count-table td,.cash-ledger-table td{vertical-align:middle}.cash-ledger-table .amount-cell{white-space:nowrap}.cash-count-modal{max-width:650px}
@media(max-width:1050px){.cash-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cash-control-layout{grid-template-columns:1fr}.ledger-summary-strip{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.cash-overview-grid{grid-template-columns:1fr}.cash-ledger-filters,.cash-count-summary,.cash-count-comparison{grid-template-columns:1fr}.ledger-summary-strip{grid-template-columns:1fr 1fr}.cash-account-grid{grid-template-columns:1fr}.cash-control-layout{gap:14px}}


/* F8 - Reportes financieros y PDF */
.report-filter-panel{margin-bottom:18px}.report-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;padding:0 22px 22px}.report-filter-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:10px}.report-metrics{margin-top:18px}.report-two-column{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);gap:18px;margin-top:18px}.report-category-name{padding-left:calc(var(--depth,0)*14px)}.report-note{display:flex;align-items:center;gap:8px;margin:12px 0 0;padding:11px 14px;border:1px solid var(--border,#e5e7ef);border-radius:12px;background:#f8f9fc;color:var(--muted,#666b7b);font-size:13px}.report-top-actions{display:flex;justify-content:flex-end;margin:-4px 0 14px}.report-two-column .page-panel{margin-top:0}.report-two-column table{min-width:560px}@media(max-width:980px){.report-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.report-two-column{grid-template-columns:1fr}}@media(max-width:620px){.report-filter-grid{grid-template-columns:1fr;padding:0 16px 18px}.report-filter-actions{flex-direction:column-reverse}.report-filter-actions button{width:100%}.report-top-actions .primary-button{width:100%}.report-two-column{gap:14px}}

/* F9 — reportes de iglesia y contribuciones */
.panel-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.report-stat-list{display:flex;gap:6px;flex-wrap:wrap;align-items:center}.report-stat-chip{display:inline-flex;align-items:baseline;gap:5px;padding:5px 8px;border:1px solid var(--line,#e6e8ef);border-radius:9px;background:#fafbfe;font-size:.76rem}.report-stat-chip strong{font-weight:650}.report-stat-chip small{color:var(--muted,#6b7280);font-size:.69rem}.muted-text{color:var(--muted,#6b7280)}.comparison-cards{display:grid;gap:10px;padding:8px 0}.comparison-cards>div{padding:14px;border:1px solid var(--line,#e6e8ef);border-radius:12px;background:#fafbfe}.comparison-cards span{display:block;color:var(--muted,#6b7280);font-size:.78rem;margin-bottom:5px}.comparison-cards strong{font-size:1rem;font-weight:650}.empty-state.compact{min-height:auto;padding:24px 10px}@media(max-width:760px){.panel-actions{width:100%}.panel-actions button{flex:1}.report-stat-chip{white-space:normal}}


/* F10 — Dashboard y análisis */
.dashboard-filter-panel{margin:0 0 16px;padding:15px 17px}.dashboard-filter-grid{display:grid;grid-template-columns:1.1fr 1fr 1fr 1.2fr auto;gap:10px;align-items:end}.dashboard-filter-grid .field-label{margin:0}.dashboard-apply{min-height:42px;white-space:nowrap}.dashboard-period-note{display:flex;align-items:center;gap:7px;margin-top:10px;padding-top:10px;border-top:1px solid var(--border);font-size:12px;color:var(--muted)}
.analysis-metric-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px;margin-bottom:17px}.analysis-metric-card{border:1px solid var(--border);border-radius:18px;padding:15px;background:var(--surface);box-shadow:var(--shadow-sm);min-width:0}.analysis-metric-card header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:13px}.analysis-metric-icon{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:var(--surface-soft);color:var(--primary)}.analysis-metric-card>strong{display:block;font-size:24px;line-height:1.1;letter-spacing:-.025em;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.analysis-metric-card>span:not(.analysis-metric-icon){display:block;margin-top:7px;font-size:13px;font-weight:650}.analysis-metric-card>small{display:block;margin-top:4px;color:var(--muted);font-size:11px;line-height:1.35}.analysis-change{display:inline-flex;align-items:center;border-radius:999px;padding:4px 7px;font-size:10px;font-weight:650;white-space:nowrap;background:var(--surface-soft);color:var(--muted)}.analysis-change.up{background:rgba(35,130,90,.09);color:#226b4e}.analysis-change.down{background:rgba(190,65,65,.08);color:#9b4141}.analysis-change.neutral{background:var(--surface-soft);color:var(--muted)}
.analysis-panel{min-width:0}.analytics-main-grid{grid-template-columns:minmax(0,1.45fr) minmax(310px,.55fr)}.analysis-chart{height:270px;display:flex;flex-direction:column}.analysis-chart-legend{display:flex;justify-content:flex-end;gap:14px;font-size:11px;color:var(--muted);margin-bottom:8px}.analysis-chart-legend span{display:flex;align-items:center;gap:5px}.analysis-chart-legend i{width:8px;height:8px;border-radius:3px;display:inline-block}.analysis-chart-legend i.income{background:var(--primary)}.analysis-chart-legend i.expense{background:#b86565}.analysis-bar-groups{flex:1;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(36px,1fr);gap:8px;align-items:end;border-bottom:1px solid var(--border);padding:10px 2px 0;overflow-x:auto}.analysis-bar-group{height:100%;min-width:36px;display:flex;flex-direction:column;justify-content:flex-end;gap:7px}.analysis-bars{height:calc(100% - 26px);display:flex;align-items:flex-end;justify-content:center;gap:4px}.analysis-bar{display:block;width:min(15px,38%);min-height:3px;border-radius:5px 5px 2px 2px;transition:height .2s ease}.analysis-bar.income{background:var(--primary)}.analysis-bar.expense{background:#b86565}.analysis-bar-group small{text-align:center;color:var(--muted);font-size:9px;white-space:nowrap}
.balance-summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:13px}.balance-summary-grid>div{border:1px solid var(--border);border-radius:13px;padding:11px 12px;background:var(--surface-soft);display:flex;flex-direction:column;gap:4px}.balance-summary-grid span{font-size:11px;color:var(--muted)}.balance-summary-grid strong{font-size:15px;font-weight:700}.compact-list .account-balance-row{padding:9px 0}.compact-list .account-balance-row strong{font-size:12px}
.giving-identity{margin-bottom:17px}.giving-identity-bar{height:12px;border-radius:999px;overflow:hidden;background:var(--surface-soft);display:flex}.giving-identity-bar span.identified{background:var(--primary)}.giving-identity-bar span.general{background:#a8adcc}.giving-identity-legend{display:flex;gap:14px;flex-wrap:wrap;margin-top:8px}.giving-identity-legend>span{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--muted)}.giving-identity-legend i{width:7px;height:7px;border-radius:999px}.giving-identity-legend i.identified{background:var(--primary)}.giving-identity-legend i.general{background:#a8adcc}.giving-identity-legend strong{font-weight:650;color:var(--text)}.analysis-distribution{display:flex;flex-direction:column;gap:11px}.analysis-distribution-row{display:grid;grid-template-columns:minmax(130px,1fr) minmax(100px,1.3fr) auto;gap:10px;align-items:center}.analysis-distribution-row>div:first-child{display:flex;flex-direction:column;gap:2px}.analysis-distribution-row strong{font-size:12px}.analysis-distribution-row small{font-size:10px;color:var(--muted)}.analysis-distribution-row b{font-size:11px;font-weight:700}.analysis-progress{height:7px;border-radius:999px;overflow:hidden;background:var(--surface-soft)}.analysis-progress span{display:block;height:100%;border-radius:999px;background:var(--primary)}
.ministry-summary-line{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:12px}.ministry-summary-line>span:not(.analysis-change){display:flex;align-items:baseline;gap:5px}.ministry-summary-line strong{font-size:16px}.ministry-summary-line small{font-size:10px;color:var(--muted)}.ministry-trend-chart{height:190px;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(34px,1fr);gap:7px;align-items:end;border-bottom:1px solid var(--border);overflow-x:auto;padding:8px 1px 0}.ministry-trend-item{height:100%;display:grid;grid-template-rows:1fr auto auto;gap:3px;min-width:34px;text-align:center}.ministry-trend-track{display:flex;align-items:flex-end;justify-content:center}.ministry-trend-track span{display:block;width:min(24px,68%);min-height:4px;border-radius:6px 6px 2px 2px;background:linear-gradient(180deg,var(--primary),rgba(66,75,153,.62))}.ministry-trend-item strong{font-size:10px;font-weight:650}.ministry-trend-item small{font-size:9px;color:var(--muted);white-space:nowrap}
.ministry-overview-panel{margin-bottom:17px}.ministry-analysis-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}.ministry-analysis-card{border:1px solid var(--border);border-radius:16px;padding:14px;background:var(--surface-soft)}.ministry-analysis-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.ministry-analysis-card header>div{display:flex;align-items:center;gap:7px}.ministry-analysis-card header>div>span{color:var(--primary)}.ministry-analysis-card header strong{font-size:13px;font-weight:650}.ministry-analysis-main{display:grid;grid-template-columns:auto 1fr auto 1fr;gap:5px;align-items:baseline;margin:13px 0}.ministry-analysis-main b,.ministry-analysis-main strong{font-size:16px;font-weight:700}.ministry-analysis-main small{font-size:10px;color:var(--muted)}.ministry-analysis-metrics{display:grid;grid-template-columns:1fr 1fr;gap:7px}.ministry-analysis-metrics>span{border:1px solid var(--border);background:var(--surface);border-radius:11px;padding:8px;display:flex;flex-direction:column;gap:2px}.ministry-analysis-metrics small{font-size:9px;color:var(--muted)}.ministry-analysis-metrics strong{font-size:13px;font-weight:700}.ministry-analysis-metrics em{font-style:normal;font-size:9px;color:var(--muted)}
.top-group-list{display:flex;flex-direction:column}.top-group-row{display:grid;grid-template-columns:28px 1fr auto;gap:9px;align-items:center;padding:10px 0;border-bottom:1px solid var(--border)}.top-group-row:last-child{border-bottom:0}.top-group-rank{width:25px;height:25px;border-radius:9px;background:var(--surface-soft);display:grid;place-items:center;font-size:10px;font-weight:700;color:var(--primary)}.top-group-row>div{display:flex;flex-direction:column;gap:2px}.top-group-row strong{font-size:12px}.top-group-row small{font-size:10px;color:var(--muted)}.top-group-row b{font-size:13px;font-weight:700}.compact-quick-grid{grid-template-columns:1fr 1fr}.recent-dashboard-block{border-top:1px solid var(--border);margin-top:15px;padding-top:14px}.recent-dashboard-block>header{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:7px}.recent-dashboard-block>header strong{font-size:12px}.recent-dashboard-block>header small{font-size:10px;color:var(--muted)}
@media(max-width:1100px){.analysis-metric-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-filter-grid{grid-template-columns:1fr 1fr 1fr}.dashboard-apply{width:100%}.analytics-main-grid{grid-template-columns:1fr}}
@media(max-width:760px){.analysis-metric-grid{grid-template-columns:1fr 1fr}.dashboard-filter-grid{grid-template-columns:1fr 1fr}.dashboard-filter-grid .field-label:first-child,.dashboard-filter-grid .field-label:nth-child(4),.dashboard-apply{grid-column:1/-1}.analysis-chart{height:220px}.analysis-distribution-row{grid-template-columns:1fr auto}.analysis-progress{grid-column:1/-1;grid-row:2}.ministry-analysis-grid{grid-template-columns:1fr}.compact-quick-grid{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.analysis-metric-grid{grid-template-columns:1fr}.dashboard-filter-grid{grid-template-columns:1fr}.dashboard-filter-grid .field-label,.dashboard-apply{grid-column:auto}.analysis-metric-card>strong{font-size:22px}.balance-summary-grid{grid-template-columns:1fr}.compact-quick-grid{grid-template-columns:1fr}.giving-identity-legend{flex-direction:column;gap:5px}}


/* F11 — Protección, administración y acceso OFI */
.protection-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}.protection-card{border:1px solid #e3e5ed;border-radius:16px;background:#fff;padding:17px;display:flex;flex-direction:column;gap:5px;min-width:0}.protection-card>span{width:35px;height:35px;border-radius:11px;background:#f0f1fb;color:#4b559c;display:grid;place-items:center;margin-bottom:5px}.protection-card small{color:#8a8e9f;font-size:10px}.protection-card strong{font-size:18px;font-weight:650;color:#34384d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.protection-card p{margin:0;color:#85899a;font-size:10px;line-height:1.5}.panel-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.protection-note{margin:0 20px 20px;border:1px solid #e4e6ef;border-radius:13px;background:#f8f8fc;padding:12px 14px;display:flex;gap:9px;align-items:flex-start;color:#676c82}.protection-note>span{color:#515b9f;flex:0 0 auto}.protection-note p{margin:0;font-size:11px;line-height:1.55}.protection-note.warning{background:#fffaf1;border-color:#f0dfba;color:#7a6540}.protection-event-list{padding:0 20px 20px;display:flex;flex-direction:column}.protection-event{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:10px;align-items:center;padding:11px 0;border-bottom:1px solid #eceef4}.protection-event:last-child{border-bottom:0}.protection-event>span{width:31px;height:31px;border-radius:10px;background:#f1f2fa;color:#535d9f;display:grid;place-items:center}.protection-event div{min-width:0}.protection-event strong{display:block;color:#3b3f54;font-size:12px;font-weight:650}.protection-event small{display:block;color:#8a8e9e;font-size:10px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.protection-event b{font-size:10px;color:#666b7e;font-weight:600}.history-search{max-width:290px}.history-list{padding:0 20px 20px}.history-row{display:grid;grid-template-columns:12px minmax(0,1fr) auto;gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid #eceef4}.history-row:last-child{border-bottom:0}.history-dot{width:8px;height:8px;border-radius:50%;background:#7780bb;box-shadow:0 0 0 4px #f0f1f8}.history-row strong{display:block;color:#3b3f54;font-size:12px;font-weight:650}.history-row small{display:block;color:#8a8e9e;font-size:10px;margin-top:3px}.history-meta{text-align:right}.history-meta b{display:block;color:#64697d;font-size:10px;font-weight:600}.demo-feature-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:0 20px 20px}.demo-feature-grid>div{border:1px solid #e7e8ef;border-radius:14px;padding:14px;background:#fcfcfe;display:grid;gap:5px}.demo-feature-grid span{color:#515b9f}.demo-feature-grid strong{font-size:11px;color:#3d4156;font-weight:650}.demo-feature-grid small{font-size:9.5px;line-height:1.5;color:#8b8f9f}.access-status-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:0 20px 20px}.access-status-grid>div{border:1px solid #e6e8ef;border-radius:14px;padding:14px;display:grid;gap:4px}.access-status-grid span{color:#515b9f}.access-status-grid small{font-size:9px;color:#9296a6}.access-status-grid strong{font-size:12px;color:#3b3f54;font-weight:650;overflow-wrap:anywhere}.restore-confirm-body{padding:18px 21px;display:grid;grid-template-columns:1fr 1fr;gap:12px}.restore-confirm-body>div{border:1px solid #e6e8ef;border-radius:12px;padding:12px;display:grid;gap:4px}.restore-confirm-body small{color:#9296a6;font-size:9px}.restore-confirm-body strong{color:#3d4155;font-size:11px;font-weight:650;overflow-wrap:anywhere}.restore-confirm-body p{grid-column:1/-1;margin:0;color:#6e7387;font-size:10px;line-height:1.5;background:#f7f7fb;border-radius:12px;padding:11px 12px}
@media(max-width:900px){.protection-summary-grid,.demo-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.panel-actions{justify-content:flex-start}.access-status-grid{grid-template-columns:1fr}}
@media(max-width:600px){.protection-summary-grid,.demo-feature-grid{grid-template-columns:1fr}.history-row{grid-template-columns:12px minmax(0,1fr)}.history-meta{grid-column:2;text-align:left}.restore-confirm-body{grid-template-columns:1fr}.panel-actions{width:100%}.panel-actions .primary-button,.panel-actions .secondary-button{flex:1}.history-search{max-width:none;width:100%}}

/* F12 — guía breve para primer uso */
.pilot-banner{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;margin:0 0 18px;border:1px solid rgba(66,75,153,.18);background:linear-gradient(135deg,rgba(66,75,153,.07),rgba(255,255,255,.96));border-radius:18px;box-shadow:0 8px 24px rgba(25,34,74,.05)}
.pilot-banner>div:first-child{display:flex;align-items:center;gap:12px;min-width:0}.pilot-banner>div:first-child>span{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:rgba(66,75,153,.1);color:#424b99;flex:0 0 auto}.pilot-banner strong{display:block;font-weight:700;color:#20284e}.pilot-banner small{display:block;margin-top:3px;color:#68708c;line-height:1.45}.pilot-banner-actions{display:flex;gap:8px;flex-wrap:wrap}.pilot-banner.demo-active{border-color:rgba(32,139,105,.2);background:linear-gradient(135deg,rgba(32,139,105,.08),rgba(255,255,255,.97))}.pilot-banner.demo-active>div:first-child>span{background:rgba(32,139,105,.11);color:#1f8064}@media(max-width:760px){.pilot-banner{align-items:stretch;flex-direction:column}.pilot-banner-actions,.pilot-banner>button{width:100%}.pilot-banner-actions button,.pilot-banner>button{flex:1}}

/* HF4 diagnostic panel — visible only on startup failure */
.diagnostic-details{margin-top:14px;border:1px solid #dfe2ee;border-radius:14px;padding:12px 14px;background:#fafbff}.diagnostic-details summary{cursor:pointer;font-weight:650}.diagnostic-details pre{white-space:pre-wrap;word-break:break-word;max-height:220px;overflow:auto;font-size:12px;line-height:1.5;background:#f3f5fb;border-radius:10px;padding:12px;margin:10px 0}.storage-error-card .status-pill{display:inline-flex;margin-top:14px;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.14);font-size:12px;font-weight:650}.secondary-button.compact{width:auto;padding:9px 12px;font-size:13px}


/* F12 RC1 HF7 — refinamiento de navegación y reportes */
.status-pill.movement-type{margin:0;white-space:nowrap}
.status-pill.movement-type.income{color:#277458;background:#e8f6f0}
.status-pill.movement-type.expense{color:#9f4343;background:#faecec}
.status-pill.movement-type.transfer{color:#4c5699;background:#eef0fb}
.status-pill.movement-type.neutral{color:#64687b;background:#f0f1f5}

.launcher-panel{width:min(540px,100%);background:#f7f8fb}
.launcher-header{padding:26px 28px 20px}
.launcher-header h2{font-size:24px}
.launcher-header p{font-size:12px;line-height:1.45}
.launcher-groups{padding:18px 20px 30px}
.launcher-group{margin-bottom:12px;border-radius:17px}
.launcher-group-heading{min-height:58px;grid-template-columns:32px minmax(0,1fr) auto;gap:12px;padding:11px 14px}
.launcher-count{width:30px;height:30px;border-radius:10px;font-size:11px}
.launcher-group-heading strong{font-size:13px;line-height:1.25}
.launcher-grid{gap:8px;padding:0 10px 12px}
.launcher-item{min-height:70px;grid-template-columns:42px minmax(0,1fr);gap:12px;padding:11px 13px;border-radius:13px;overflow:hidden}
.launcher-item>.launcher-item-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;color:var(--primary);background:#ededfb;align-self:start}
.launcher-item>.launcher-item-copy{display:block;min-width:0;width:auto;height:auto;background:transparent;color:inherit;border-radius:0;padding:1px 0 0}
.launcher-item-copy strong{display:block;font-size:13px;line-height:1.28;font-weight:650;color:#3c4055;overflow-wrap:normal;word-break:normal}
.launcher-item-copy small{display:-webkit-box;margin-top:4px;color:#85899a;font-size:10.5px;line-height:1.42;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal}
.launcher-item:hover>.launcher-item-icon,.launcher-item.active>.launcher-item-icon{background:#e7e9fb}
.launcher-item.active{border-color:#cfd3f1;background:#f5f6ff;box-shadow:inset 3px 0 0 var(--primary)}

@media(max-width:620px){
  .launcher-panel{width:100%}
  .launcher-header{padding:22px 20px 17px}
  .launcher-groups{padding:14px 12px 24px}
  .launcher-item{grid-template-columns:40px minmax(0,1fr);padding:10px 11px;min-height:66px}
  .launcher-item>.launcher-item-icon{width:38px;height:38px}
  .launcher-item-copy strong{font-size:12.5px}
  .launcher-item-copy small{font-size:10px}
}


/* F12 RC1 HF12 — CxC-inspired visual refinement + fuller demo */
.hf10-topbar{min-height:64px;padding:7px 12px;background:linear-gradient(100deg,#4439d0 0%,#5146df 48%,#473bd2 100%);box-shadow:0 3px 12px rgba(50,43,135,.22)}
.hf10-topbar .brand-mark{width:38px;height:38px;flex-basis:38px;border-radius:10px;font-size:14px;box-shadow:none}
.hf10-topbar .brand-copy strong{font-size:15px;font-weight:650}.hf10-topbar .brand-copy small{font-size:10px;color:rgba(255,255,255,.76)}
.hf10-topbar-actions{gap:8px}.hf10-church-control{max-width:310px;min-width:240px;min-height:44px;padding:5px 9px;border:1px solid rgba(255,255,255,.55);border-radius:12px;background:#fff;color:#31344b;box-shadow:0 2px 7px rgba(24,21,75,.10)}
.hf10-church-control:hover{background:#fbfbff}.hf10-church-control .church-control-icon{width:28px;height:28px;display:grid;place-items:center;color:#5960a5}.hf10-church-control .church-chip-copy{flex:1;text-align:left}.hf10-church-control .church-chip-copy strong{font-size:12px;color:#34364b}.hf10-church-control .church-chip-copy small{font-size:9.5px;color:#8a8da0}.church-control-arrow{display:grid;place-items:center;color:#65697c;transform:rotate(90deg)}
.hf10-menu-button{width:44px;height:44px;border-color:rgba(255,255,255,.34);background:rgba(255,255,255,.10)}
.hf10-workspace-strip{min-height:31px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:5px 16px;border-bottom:1px solid #dce5f0;background:#f3f8fd;color:#34465f;font-size:10.5px}.hf10-workspace-strip strong{font-weight:650}.hf10-workspace-strip button{border:0;padding:2px 0;background:transparent;color:#3c4fcb;font:inherit;font-weight:600;cursor:pointer}
.hf12-shell .page-container{margin-top:14px}
.hf10-dashboard-hero{min-height:112px;align-items:center;padding:20px 22px;background:linear-gradient(135deg,#fff 0%,#fbfbff 70%,#f2f1ff 100%)}.hf10-dashboard-hero h1{margin:5px 0 5px;font-size:31px}.hf10-dashboard-hero p{font-size:11.5px}.hf10-dashboard-hero .hero-actions{justify-content:flex-end}
.hf10-filter-panel{padding:14px 16px;margin-top:12px}.hf10-filter-panel .dashboard-filter-grid{gap:9px}.hf10-filter-panel .field-label{font-size:9.5px}.hf10-filter-panel select,.hf10-filter-panel input{min-height:38px}.hf10-filter-panel .dashboard-period-note{margin-top:8px;font-size:9.5px}
.hf10-primary-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin:12px 0 9px}.hf10-primary-kpi{position:relative;overflow:hidden;min-height:124px;padding:15px 16px;border-radius:15px;color:#fff;box-shadow:0 8px 20px rgba(44,42,101,.10)}.hf10-primary-kpi:after{content:"";position:absolute;width:105px;height:105px;right:-32px;bottom:-47px;border-radius:50%;background:rgba(255,255,255,.12)}.hf10-primary-kpi.violet{background:linear-gradient(135deg,#6551d9,#8268de)}.hf10-primary-kpi.rose{background:linear-gradient(135deg,#ca4d73,#d96688)}.hf10-primary-kpi.blue{background:linear-gradient(135deg,#3b8bd0,#39a9e8)}.hf10-primary-kpi.green{background:linear-gradient(135deg,#24ad7d,#38c89b)}.hf10-primary-kpi header{position:relative;z-index:1;display:flex;justify-content:space-between;align-items:center;gap:8px}.hf10-primary-kpi-icon{width:31px;height:31px;display:grid;place-items:center;border-radius:9px;background:rgba(255,255,255,.17)}.hf10-primary-kpi>span,.hf10-primary-kpi>strong,.hf10-primary-kpi>small{position:relative;z-index:1;display:block}.hf10-primary-kpi>span{margin-top:10px;font-size:11px;color:rgba(255,255,255,.88)}.hf10-primary-kpi>strong{margin-top:2px;font-size:25px;line-height:1.1;font-weight:650;letter-spacing:-.025em}.hf10-primary-kpi>small{margin-top:4px;font-size:9.5px;color:rgba(255,255,255,.78)}.hf10-kpi-change{padding:4px 7px;border-radius:999px;background:rgba(255,255,255,.15);font-size:8.5px;font-weight:600;white-space:nowrap}.hf10-kpi-change.up,.hf10-kpi-change.down,.hf10-kpi-change.neutral{color:#fff}
.hf10-mini-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-bottom:11px}.hf10-mini-kpi{min-height:70px;padding:11px 14px;border:1px solid #e4e6ed;border-radius:12px;background:#fff;box-shadow:0 5px 13px rgba(42,45,88,.04)}.hf10-mini-kpi span,.hf10-mini-kpi strong,.hf10-mini-kpi small{display:block}.hf10-mini-kpi span{font-size:9.5px;color:#606477}.hf10-mini-kpi strong{margin:3px 0 2px;font-size:17px;font-weight:650;color:#282b3f}.hf10-mini-kpi small{font-size:8.8px;color:#9295a5}
.hf10-dashboard-main{grid-template-columns:minmax(330px,.72fr) minmax(0,1.28fr);gap:11px;margin-bottom:11px}.hf10-dashboard-mid,.hf10-dashboard-lists,.hf10-dashboard-bottom{gap:11px;margin-bottom:11px}.hf12-shell .panel{border-radius:14px;box-shadow:0 5px 16px rgba(41,44,92,.045)}.hf10-shell .panel-heading{padding-bottom:10px}.hf10-shell .panel-heading h2{font-size:16px}.hf12-shell .panel-heading p{font-size:10px}.hf12-shell .eyebrow{font-size:8.5px}.hf12-shell .ghost-button{font-size:9.5px}
.hf10-donut-layout{display:grid;grid-template-columns:180px minmax(0,1fr);gap:18px;align-items:center;padding:18px 4px 12px}.hf10-donut{width:172px;aspect-ratio:1;border-radius:50%;display:grid;place-items:center}.hf10-donut>div{width:116px;aspect-ratio:1;border-radius:50%;display:grid;place-items:center;align-content:center;background:#fff;box-shadow:0 0 0 1px #eef0f5;text-align:center}.hf10-donut span,.hf10-donut strong,.hf10-donut small{display:block}.hf10-donut span{font-size:8.5px;color:#9295a5}.hf10-donut strong{font-size:15px;font-weight:650}.hf10-donut small{font-size:8px;color:#8d90a0}.hf10-donut-legend{display:grid;gap:0}.hf10-donut-legend>div{display:grid;grid-template-columns:9px minmax(0,1fr) auto;gap:8px;align-items:center;padding:8px 0;border-bottom:1px solid #eef0f4}.hf10-donut-legend>div:last-child{border-bottom:0}.hf10-donut-legend i{width:8px;height:8px;border-radius:50%}.hf10-donut-legend span{font-size:9.5px;color:#55596e}.hf10-donut-legend strong{font-size:9.5px;font-weight:650}.hf10-contribution-panel .giving-identity{padding-top:7px}
.hf10-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.hf10-quick-grid .quick-card{min-height:88px;grid-template-columns:38px minmax(0,1fr);grid-template-rows:auto auto;justify-items:start;align-content:center;text-align:left;padding:10px 12px}.hf10-quick-grid .quick-card>span{grid-row:1/3;width:36px;height:36px;border-radius:10px}.hf10-quick-grid .quick-card strong{font-size:11px}.hf10-quick-grid .quick-card small{font-size:9px}
.hf10-demo-feature-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.launcher-panel{width:min(850px,100%);background:#f7f8fb}.launcher-header{padding:24px 28px 18px}.launcher-header h2{font-size:25px}.launcher-groups{padding:16px 24px 28px}.launcher-group{border-radius:15px;margin-bottom:12px}.launcher-group-heading{min-height:58px;grid-template-columns:34px minmax(0,1fr) 30px;padding:10px 14px}.launcher-count{width:30px;height:30px;border-radius:10px;font-size:11px}.launcher-group-heading strong{font-size:13px}.launcher-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0;padding:2px 10px 12px;background:#f1f2f8;border-radius:0 0 14px 14px}.launcher-item{min-height:84px;grid-template-columns:48px minmax(0,1fr) 20px;gap:12px;padding:12px 14px;border-radius:0;border:0;border-bottom:1px solid #e5e7ee;background:#fff}.launcher-item:nth-child(odd){border-right:1px solid #e5e7ee}.launcher-item:hover{background:#fbfaff}.launcher-item.active{background:#f5f4ff;box-shadow:inset 3px 0 0 #5146d8}.launcher-item>.launcher-item-icon{width:44px;height:44px;border-radius:13px;background:#efedff}.launcher-item-copy strong{font-size:13.5px}.launcher-item-copy small{font-size:10.5px;line-height:1.35}.launcher-item-arrow{display:grid;place-items:center;color:#777b8e}.launcher-item:hover .launcher-item-arrow{color:#5146d8}.launcher-group.expanded .launcher-group-heading{background:#fff;color:#4338ca;border-bottom:1px solid #e5e3fb}.launcher-group.expanded{border-color:#d8d4fb}
@media(max-width:900px){.hf10-primary-kpi-grid,.hf10-mini-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hf10-dashboard-main{grid-template-columns:1fr}.hf10-donut-layout{grid-template-columns:170px minmax(0,1fr)}.launcher-panel{width:min(680px,100%)}}
@media(max-width:720px){.hf10-topbar{min-height:58px;padding:7px 9px}.hf10-church-control{min-width:0;max-width:210px}.hf10-church-control .church-chip-copy small{display:none}.hf10-workspace-strip{padding:5px 10px}.hf10-dashboard-hero{display:grid}.hf10-dashboard-hero .hero-actions{justify-content:start}.hf10-primary-kpi-grid,.hf10-mini-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hf10-donut-layout{grid-template-columns:1fr;justify-items:center}.hf10-donut-legend{width:100%}.launcher-panel{width:100%}.launcher-groups{padding:14px 12px 24px}.launcher-grid{grid-template-columns:1fr}.launcher-item:nth-child(odd){border-right:0}.launcher-item{min-height:76px}}
@media(max-width:480px){.brand-copy small{display:none}.hf10-church-control{max-width:160px}.hf10-primary-kpi-grid,.hf10-mini-kpi-grid{grid-template-columns:1fr}.hf10-primary-kpi{min-height:110px}.hf10-dashboard-hero h1{font-size:26px}}


/* F12 RC1 HF12 — refinamiento final de menú + ajustes complementarios del dashboard */
.launcher-panel{
  width:min(710px,72vw);
  max-width:710px;
  background:#f7f8fb;
}
.launcher-header{padding:22px 24px 17px}
.launcher-header h2{font-size:24px}
.launcher-groups{padding:15px 18px 26px}
.launcher-group{margin-bottom:10px;border-radius:15px}
.launcher-group-heading{
  min-height:56px;
  grid-template-columns:32px minmax(0,1fr) 28px;
  gap:11px;
  padding:10px 13px;
  text-align:left;
}
.launcher-group-heading strong{justify-self:start;text-align:left;font-size:13px}
.launcher-chevron{width:28px;height:28px;display:grid;place-items:center;justify-self:end;overflow:visible}
.launcher-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  padding:10px;
  background:#f4f5f9;
  border-radius:0 0 14px 14px;
}
.launcher-item{
  width:100%;
  min-width:0;
  min-height:76px;
  grid-template-columns:42px minmax(0,1fr) 30px;
  align-items:center;
  gap:11px;
  padding:11px 11px 11px 12px;
  border:1px solid #e3e5ed;
  border-radius:12px;
  background:#fff;
  text-align:left;
  overflow:visible;
}
.launcher-item:nth-child(odd){border-right:1px solid #e3e5ed}
.launcher-item:last-child:nth-child(odd){grid-column:1/-1}
.launcher-item:hover{border-color:#d5d7ea;background:#fafaff;box-shadow:0 5px 13px rgba(45,48,91,.05)}
.launcher-item.active{border-color:#cfd1ef;background:#f5f4ff;box-shadow:inset 3px 0 0 #5146d8}
.launcher-item>.launcher-item-icon{
  width:40px;height:40px;
  align-self:center;
  border-radius:11px;
  background:#efedff;
  flex:none;
}
.launcher-item>.launcher-item-copy{
  display:block;
  min-width:0;
  width:100%;height:auto;
  justify-self:stretch;
  text-align:left;
  background:transparent;
  color:inherit;
  border-radius:0;
  padding:0;
}
.launcher-item-copy strong{
  display:block;
  width:100%;
  margin:0;
  color:#363a50;
  font-size:13px;
  line-height:1.28;
  font-weight:650;
  text-align:left;
  white-space:normal;
}
.launcher-item-copy small{
  display:-webkit-box;
  width:100%;
  margin-top:3px;
  color:#85899a;
  font-size:10px;
  line-height:1.36;
  text-align:left;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.launcher-item-arrow{
  width:30px;height:30px;
  display:grid;
  place-items:center;
  justify-self:end;
  align-self:center;
  flex:none;
  color:#73778a;
  background:#f2f2fb;
  border-radius:10px;
  overflow:visible;
}
.launcher-item-arrow svg,.launcher-chevron svg{display:block;overflow:visible}
.launcher-item:hover .launcher-item-arrow,.launcher-item.active .launcher-item-arrow{color:#5146d8;background:#ebeafd}

/* Dashboard: tighten hierarchy without making the view dense. */
.hf10-shell .page-container{max-width:1520px;margin-left:auto;margin-right:auto;padding-left:12px;padding-right:12px}
.hf10-dashboard-hero{padding:18px 20px;min-height:104px}
.hf10-dashboard-hero h1{font-size:30px}
.hf10-primary-kpi-grid{gap:10px;margin-top:11px}
.hf10-primary-kpi{min-height:116px;padding:14px 15px}
.hf10-mini-kpi-grid{gap:8px;margin-bottom:10px}
.hf10-mini-kpi{min-height:66px;padding:10px 13px}
.hf10-dashboard-main,.hf10-dashboard-mid,.hf10-dashboard-lists,.hf10-dashboard-bottom{gap:10px;margin-bottom:10px}
.hf10-shell .panel{border-color:#e5e7ee;box-shadow:0 4px 13px rgba(41,44,92,.04)}
.hf10-shell .panel-heading{padding-bottom:9px}
.hf10-shell .panel-heading h2{font-size:15.5px}
.hf10-donut-layout{grid-template-columns:166px minmax(0,1fr);gap:15px;padding:14px 2px 9px}
.hf10-donut{width:158px}.hf10-donut>div{width:106px}
.hf10-quick-grid .quick-card{min-height:82px}

@media(max-width:1050px){
  .launcher-panel{width:min(660px,76vw);max-width:660px}
}
@media(max-width:780px){
  .launcher-panel{width:100%;max-width:none}
  .launcher-header{padding:20px 18px 15px}
  .launcher-groups{padding:13px 11px 22px}
  .launcher-grid{grid-template-columns:1fr;gap:7px;padding:8px}
  .launcher-item:last-child:nth-child(odd){grid-column:auto}
  .launcher-item{min-height:70px;grid-template-columns:40px minmax(0,1fr) 30px;padding:10px 10px}
  .launcher-item>.launcher-item-icon{width:38px;height:38px}
  .launcher-item-copy strong{font-size:12.5px}
}
@media(max-width:520px){
  .launcher-item{grid-template-columns:38px minmax(0,1fr) 28px;gap:9px}
  .launcher-item-arrow{width:28px;height:28px}
  .hf10-shell .page-container{padding-left:8px;padding-right:8px}
}

/* F12 RC1 HF12 — auditoría integral de formularios */
.modal-form { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.modal-form > .form-grid { flex: 1 1 auto; min-height: 0; align-items: start; column-gap: 18px; row-gap: 16px; }
.form-grid > .full { grid-column: 1 / -1; min-width: 0; width: 100%; }
.form-grid > .full > * { min-width: 0; }
.field-label { align-content: start; }
.field-label > span:first-child { min-height: 14px; }
.field-label input,
.field-label select,
.field-label textarea { box-sizing: border-box; }
.compact-control-field > select { max-width: 260px; }

/* Los formularios principales mantienen una retícula estable de dos columnas. */
.movement-modal-card,
.giving-modal-card,
.ministry-modal-card { width: min(960px, calc(100vw - 36px)); }
.movement-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.movement-form-grid .select-with-add { width: 100%; }
.movement-distribution-section,
.split-editor,
.ministry-metrics-section,
.ministry-offering-section,
.cash-count-comparison { box-sizing: border-box; width: 100%; min-width: 0; }

/* La distribución nunca debe desbordarse hacia la segunda columna del formulario. */
.split-line {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(96px, .68fr) minmax(0, 1.08fr) 34px;
  gap: 10px;
}
.split-line .field-label,
.split-line .field-label input,
.split-line .field-label select { min-width: 0; }
.split-remove { width: 34px; }

/* Secciones internas: el contenido de ofrendas e indicadores conserva su propia retícula. */
.ministry-offering-section .form-grid,
.compact-form-grid { padding-top: 0; column-gap: 14px; row-gap: 14px; }
.ministry-metrics-section .split-heading,
.ministry-offering-section .split-heading { margin-bottom: 0; }

/* Resúmenes y ayudas de formularios quedan alineados con el ancho útil del modal. */
.cash-count-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cash-count-comparison > div { min-width: 0; }
.void-summary { margin-bottom: 0; }

/* La barra de acciones permanece estable aunque el formulario sea largo. */
.modal-actions { flex: 0 0 auto; align-items: center; }
.modal-action-spacer { flex: 1 1 auto; }

@media (max-width: 860px) {
  .movement-modal-card,
  .giving-modal-card,
  .ministry-modal-card { width: 100%; }
  .split-line { grid-template-columns: 1fr 1fr; padding-right: 42px; }
}

@media (max-width: 620px) {
  .modal-form > .form-grid { column-gap: 0; row-gap: 14px; }
  .movement-form-grid { grid-template-columns: 1fr; }
  .form-grid > .full { grid-column: auto; }
  .compact-control-field > select { max-width: none; }
  .cash-count-comparison { grid-template-columns: 1fr; }
  .split-line { grid-template-columns: 1fr; padding-right: 0; }
}

/* F12 RC1 HF12 — compactación de pantallas operativas */
/* Objetivo: que el contenido accionable (filtros, tablas y registros) aparezca antes, sin perder jerarquía. */
.hf12-shell .page-container{
  margin-top:16px;
  margin-bottom:38px;
}

/* Encabezados de páginas (dashboard excluido). */
.hf12-shell .hero-card.compact:not(.hf10-dashboard-hero){
  min-height:88px;
  padding:15px 19px;
  align-items:center;
  gap:18px;
  border-radius:16px;
}
.hf12-shell .hero-card.compact:not(.hf10-dashboard-hero) .eyebrow{
  font-size:9px;
  letter-spacing:.105em;
}
.hf12-shell .hero-card.compact:not(.hf10-dashboard-hero) h1{
  margin:4px 0 5px;
  font-size:clamp(24px,2.25vw,30px);
  line-height:1.08;
  letter-spacing:-.026em;
}
.hf12-shell .hero-card.compact:not(.hf10-dashboard-hero) p{
  max-width:900px;
  font-size:11px;
  line-height:1.45;
}
.hf12-shell .hero-card.compact:not(.hf10-dashboard-hero) .period-chip{
  min-height:34px;
  padding:7px 11px;
  font-size:10.5px;
  box-shadow:none;
}

/* Resumen superior de Ingresos / Gastos / Transferencias. */
.hf12-shell .financial-summary-row{
  grid-template-columns:minmax(190px,.55fr) minmax(360px,1.45fr);
  gap:9px;
  margin-top:9px;
}
.hf12-shell .financial-summary-row > article{
  min-height:66px;
  padding:10px 14px;
  border-radius:13px;
}
.hf12-shell .financial-summary-row > article > span,
.hf12-shell .financial-summary-row > article > small{
  font-size:8.5px;
}
.hf12-shell .financial-summary-row > article > strong{
  margin:3px 0 2px;
  font-size:20px;
}
.hf12-shell .financial-summary-row .financial-tip{
  gap:10px;
}
.hf12-shell .financial-tip > span{
  width:32px;
  height:32px;
  border-radius:9px;
}
.hf12-shell .financial-tip p{
  font-size:9.5px;
  line-height:1.42;
}
.hf12-shell .movement-balance-strip{
  gap:7px;
  margin-top:8px;
}
.hf12-shell .movement-balance-strip > div{
  padding:8px 11px;
  border-radius:10px;
}
.hf12-shell .movement-balance-strip strong{
  margin:2px 0 1px;
  font-size:12px;
}

/* Paneles operativos: menos altura antes de la tabla. */
.hf12-shell .page-panel{
  margin-top:10px;
  padding:16px 18px;
  border-radius:16px;
}
.hf12-shell .page-panel .panel-heading{
  gap:12px;
  padding-bottom:9px;
  align-items:center;
}
.hf12-shell .page-panel .panel-heading h2{
  margin-top:2px;
  font-size:17px;
}
.hf12-shell .page-panel .panel-heading p{
  margin-top:3px;
  font-size:10px;
  line-height:1.4;
}
.hf12-shell .page-panel .panel-heading .eyebrow{
  font-size:8.5px;
}
.hf12-shell .page-panel .panel-heading .primary-button,
.hf12-shell .page-panel .panel-heading .secondary-button,
.hf12-shell .page-panel .panel-heading .danger-button{
  min-height:36px;
  padding:7px 12px;
  border-radius:10px;
  font-size:11px;
}
.hf12-shell .movement-toolbar{
  gap:8px;
  margin:10px 0 9px;
}
.hf12-shell .movement-toolbar .catalog-search,
.hf12-shell .movement-toolbar .catalog-filter,
.hf12-shell .page-panel .catalog-search,
.hf12-shell .page-panel .catalog-filter{
  min-height:38px;
}
.hf12-shell .catalog-search{
  border-radius:10px;
}
.hf12-shell .catalog-filter{
  border-radius:10px;
}

/* Las tablas son el contenido principal: más filas visibles por pantalla. */
.hf12-shell .data-table th{
  padding:8px 10px;
  font-size:8.5px;
}
.hf12-shell .data-table td{
  padding:9px 10px;
  font-size:9.5px;
}
.hf12-shell .table-primary{
  gap:2px;
}
.hf12-shell .table-primary small{
  font-size:8.5px;
}
.hf12-shell .row-actions{
  gap:5px;
}
.hf12-shell .table-action{
  min-height:31px;
  padding:6px 9px;
  font-size:9.5px;
}

/* Tarjetas de resumen usadas por contribuciones y reportes. */
.hf12-shell .metric-grid{
  gap:10px;
  margin:10px 0;
}
.hf12-shell .metric-card{
  min-height:88px;
  padding:12px 14px;
  border-radius:14px;
}
.hf12-shell .metric-card span{
  font-size:10px;
}
.hf12-shell .metric-card strong{
  margin:4px 0 2px;
  font-size:21px;
}
.hf12-shell .metric-card small{
  font-size:9px;
}

/* Caja, bancos y reportes: compactar controles y resúmenes antes del detalle. */
.hf12-shell .cash-overview-grid{
  gap:9px;
  margin-bottom:10px;
}
.hf12-shell .cash-account-card{
  padding:11px 13px;
  border-radius:13px;
  gap:3px;
}
.hf12-shell .cash-account-card b{
  font-size:18px;
}
.hf12-shell .cash-control-layout{
  gap:11px;
}
.hf12-shell .cash-count-summary,
.hf12-shell .ledger-summary-strip{
  gap:7px;
  margin-bottom:10px;
}
.hf12-shell .cash-count-summary > div,
.hf12-shell .ledger-summary-strip > div{
  padding:9px 11px;
  border-radius:11px;
}
.hf12-shell .cash-count-summary span,
.hf12-shell .ledger-summary-strip span{
  font-size:9.5px;
}
.hf12-shell .cash-count-summary strong,
.hf12-shell .ledger-summary-strip strong{
  font-size:13px;
}
.hf12-shell .cash-ledger-filters{
  gap:8px;
  margin-bottom:9px;
}

.hf12-shell .report-filter-panel{
  margin-bottom:10px;
}
.hf12-shell .report-filter-grid{
  gap:9px;
  padding:0 18px 14px;
}
.hf12-shell .report-filter-actions{
  gap:7px;
}
.hf12-shell .report-metrics{
  margin-top:10px;
}
.hf12-shell .report-two-column{
  gap:10px;
  margin-top:10px;
}
.hf12-shell .report-top-actions{
  margin:0 0 8px;
}
.hf12-shell .report-note{
  margin-top:8px;
  padding:8px 11px;
  font-size:10px;
}

/* Catálogos, administración y pantallas informativas. */
.hf12-shell .feature-grid{
  gap:10px;
  margin-top:10px;
}
.hf12-shell .feature-card{
  min-height:138px;
  padding:15px;
  border-radius:15px;
}
.hf12-shell .feature-card > span{
  width:38px;
  height:38px;
  border-radius:11px;
}
.hf12-shell .feature-card h3{
  margin:10px 0 4px;
  font-size:14px;
}
.hf12-shell .feature-card p{
  font-size:10px;
  line-height:1.45;
}
.hf12-shell .feature-card footer{
  margin-top:10px;
}
.hf12-shell .protection-summary-grid{
  gap:8px;
  margin:10px 0;
}
.hf12-shell .protection-card{
  padding:12px;
  border-radius:13px;
}
.hf12-shell .protection-card > span{
  width:31px;
  height:31px;
  border-radius:9px;
  margin-bottom:2px;
}
.hf12-shell .protection-card strong{
  font-size:15px;
}
.hf12-shell .demo-feature-grid,
.hf12-shell .access-status-grid{
  gap:8px;
  padding:0 18px 14px;
}
.hf12-shell .demo-feature-grid > div,
.hf12-shell .access-status-grid > div{
  padding:11px;
  border-radius:12px;
}

/* Tablet / móvil: mantener comodidad táctil aunque la vista sea compacta. */
@media(max-width:900px){
  .hf12-shell .hero-card.compact:not(.hf10-dashboard-hero){padding:14px 16px}
  .hf12-shell .financial-summary-row{grid-template-columns:1fr 1.25fr}
}
@media(max-width:700px){
  .hf12-shell .page-container{margin-top:11px}
  .hf12-shell .hero-card.compact:not(.hf10-dashboard-hero){display:grid;min-height:auto;padding:13px 14px}
  .hf12-shell .hero-card.compact:not(.hf10-dashboard-hero) h1{font-size:24px}
  .hf12-shell .financial-summary-row{grid-template-columns:1fr}
  .hf12-shell .financial-summary-row > article{min-height:62px}
  .hf12-shell .page-panel{padding:14px}
  .hf12-shell .page-panel .panel-heading{align-items:flex-start}
  .hf12-shell .data-table th{padding:8px 9px}
  .hf12-shell .data-table td{padding:9px}
}

/* F12 RC1 HF12 — QA visual final cross-screen + compactación final del encabezado operativo */
/* El dashboard conserva su jerarquía; estas reglas solo afectan páginas operativas. */
.hf12-shell .page-container{
  margin-top:12px;
}
.hf12-shell .hero-card.compact:not(.hf10-dashboard-hero){
  min-height:72px;
  padding:10px 16px;
  gap:14px;
  border-radius:15px;
}
.hf12-shell .hero-card.compact:not(.hf10-dashboard-hero) .eyebrow{
  font-size:8px;
  letter-spacing:.11em;
}
.hf12-shell .hero-card.compact:not(.hf10-dashboard-hero) h1{
  margin:2px 0 3px;
  font-size:clamp(22px,1.9vw,27px);
  line-height:1.04;
  letter-spacing:-.024em;
}
.hf12-shell .hero-card.compact:not(.hf10-dashboard-hero) p{
  max-width:980px;
  font-size:10px;
  line-height:1.36;
}
.hf12-shell .hero-card.compact:not(.hf10-dashboard-hero) .period-chip{
  min-height:30px;
  padding:5px 9px;
  font-size:9.5px;
  border-radius:999px;
}

/* Ajustes finales de densidad para que tabla y filtros sean protagonistas. */
.hf12-shell .financial-summary-row{
  margin-top:8px;
  gap:8px;
}
.hf12-shell .financial-summary-row > article{
  min-height:60px;
  padding:9px 13px;
}
.hf12-shell .financial-summary-row > article > strong{
  font-size:19px;
}
.hf12-shell .page-panel{
  margin-top:9px;
}
.hf12-shell .movement-toolbar{
  margin:8px 0;
}

/* QA cross-screen: evita compresión, solapes y controles truncados. */
.hf12-shell .hero-card.compact:not(.hf10-dashboard-hero) > div:first-child{
  min-width:0;
}
.hf12-shell .hero-card.compact:not(.hf10-dashboard-hero) .period-chip{
  flex:0 0 auto;
  white-space:nowrap;
}
.hf12-shell .movement-toolbar > *{
  min-width:0;
}
.hf12-shell .page-panel .panel-heading > div{
  min-width:0;
}
.hf12-shell .page-panel .panel-heading h2,
.hf12-shell .page-panel .panel-heading p{
  overflow-wrap:anywhere;
}
.hf12-shell .data-table-wrap{
  scrollbar-gutter:stable both-edges;
}

@media(max-width:1050px){
  .hf12-shell .hero-card.compact:not(.hf10-dashboard-hero){min-height:68px;padding:10px 14px}
  .hf12-shell .hero-card.compact:not(.hf10-dashboard-hero) h1{font-size:24px}
}
@media(max-width:760px){
  .hf12-shell .page-container{margin-top:9px}
  .hf12-shell .hero-card.compact:not(.hf10-dashboard-hero){
    display:grid;
    grid-template-columns:1fr auto;
    min-height:auto;
    padding:10px 12px;
    gap:8px 12px;
  }
  .hf12-shell .hero-card.compact:not(.hf10-dashboard-hero) h1{font-size:22px}
  .hf12-shell .hero-card.compact:not(.hf10-dashboard-hero) p{font-size:9.5px}
  .hf12-shell .financial-summary-row{grid-template-columns:1fr}
  .hf12-shell .financial-summary-row > article{min-height:58px}
}
@media(max-width:520px){
  .hf12-shell .hero-card.compact:not(.hf10-dashboard-hero){grid-template-columns:1fr;padding:9px 11px}
  .hf12-shell .hero-card.compact:not(.hf10-dashboard-hero) .period-chip{justify-self:start}
  .hf12-shell .hero-card.compact:not(.hf10-dashboard-hero) h1{font-size:21px}
  .hf12-shell .movement-toolbar{align-items:stretch}
  .hf12-shell .movement-toolbar .catalog-search,
  .hf12-shell .movement-toolbar .catalog-filter{width:100%;flex:1 1 100%}
}

/* F12 RC1 HF13 — tipografía de formularios normalizada y más legible */
/* Conserva la compactación HF10-HF12: aumenta la lectura sin agrandar el layout. */
:root{
  --form-label-size:12.5px;
  --form-control-size:14px;
  --form-help-size:10.5px;
  --form-action-size:13px;
}

/* La familia ya es local/system-first: Aptos / Segoe UI / system-ui. */
.field-label{
  font-size:var(--form-label-size);
  line-height:1.35;
}
.field-label > span:first-child{
  min-height:16px;
}
.field-label input,
.field-label select,
.field-label textarea{
  font-size:var(--form-control-size);
  line-height:1.35;
  font-weight:450;
  letter-spacing:-.005em;
}
.field-label select{
  padding-right:34px;
}
.field-help{
  font-size:var(--form-help-size);
  line-height:1.42;
}

/* Encabezados y acciones dentro de modales. */
.modal-header .eyebrow{
  font-size:9.5px;
}
.modal-header h2{
  font-size:22px;
}
.modal-header p{
  font-size:11.5px;
  line-height:1.48;
}
.modal-actions .primary-button,
.modal-actions .secondary-button,
.modal-actions .ghost-button,
.modal-actions .danger-button,
.modal-form .primary-button,
.modal-form .secondary-button,
.modal-form .ghost-button,
.modal-form .danger-button{
  font-size:var(--form-action-size);
}

/* Selectores rápidos, filtros y búsquedas: misma escala de lectura. */
.catalog-search input,
.catalog-filter,
.report-filter-panel input,
.report-filter-panel select,
.dashboard-filter-grid input,
.dashboard-filter-grid select,
.cash-ledger-filters input,
.cash-ledger-filters select{
  font-size:13.5px;
}

/* Formularios con checkbox / opciones. */
.check-field strong{
  font-size:12px;
}
.check-field small{
  font-size:10.5px;
  line-height:1.42;
}

/* Editor de distribuciones: conserva densidad, pero evita microtipografía. */
.split-line .field-label{
  font-size:11.5px;
}
.split-line .field-label input,
.split-line .field-label select{
  font-size:13px;
}
.split-line .field-help{
  font-size:10px;
}
.split-total,
.distribution-summary,
.form-summary{
  font-size:11.5px;
}

/* Onboarding y formularios fuera del shell principal. */
.onboarding-form .field-label{
  font-size:12.5px;
}
.onboarding-form .field-label input,
.onboarding-form .field-label select,
.onboarding-form .field-label textarea{
  font-size:14px;
}
.onboarding-form .field-help{
  font-size:10.5px;
}

/* Mantener comodidad táctil en móvil sin deshacer la compactación. */
@media(max-width:700px){
  .field-label{font-size:13px}
  .field-label input,
  .field-label select,
  .field-label textarea{font-size:14px}
  .field-help{font-size:10.5px}
}


/* Ledger Church 1.1.0 F1 HF2 — recuperación desde onboarding */
.onboarding-restore{margin-top:14px;padding-top:14px;border-top:1px solid #e8e9f0;display:grid;gap:7px}.onboarding-restore>span{font-size:10.5px;font-weight:650;color:#4b4f63}.onboarding-restore .secondary-button{width:100%;min-height:41px;justify-content:center}.onboarding-restore>small{font-size:9.5px;line-height:1.45;color:#9296a6}

/* Ledger Church 1.1.0 F2 — Trabajo entre equipos */
.roaming-workspace-strip.editing{background:linear-gradient(90deg,rgba(34,197,94,.08),rgba(66,75,153,.05));}
.roaming-workspace-strip.readonly{background:linear-gradient(90deg,rgba(245,158,11,.08),rgba(66,75,153,.04));}
.roaming-banner{display:flex;align-items:center;gap:16px;margin:0 0 16px;padding:14px 16px;border:1px solid var(--line,#dfe3ee);border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(30,41,59,.05);}
.roaming-banner-main{display:flex;align-items:center;gap:12px;min-width:0;flex:1;}
.roaming-banner-icon{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;flex:0 0 auto;background:rgba(66,75,153,.09);color:#424b99;}
.roaming-banner-main>div{display:grid;gap:2px;min-width:0;}
.roaming-banner-main strong{font-size:14px;font-weight:700;color:#172033;}
.roaming-banner-main small{font-size:12px;line-height:1.45;color:#657089;}
.roaming-banner-meta{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;}
.roaming-banner-meta span{font-size:11px;font-weight:600;color:#59637a;background:#f5f7fb;border:1px solid #e5e8f0;border-radius:999px;padding:5px 8px;white-space:nowrap;}
.roaming-banner-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;}
.roaming-banner.tone-success{border-color:rgba(34,197,94,.24);background:linear-gradient(90deg,rgba(34,197,94,.055),#fff 34%);}
.roaming-banner.tone-success .roaming-banner-icon{background:rgba(34,197,94,.12);color:#168447;}
.roaming-banner.tone-warning{border-color:rgba(245,158,11,.28);background:linear-gradient(90deg,rgba(245,158,11,.06),#fff 34%);}
.roaming-banner.tone-warning .roaming-banner-icon{background:rgba(245,158,11,.13);color:#a96607;}
.roaming-banner.tone-danger{border-color:rgba(220,38,38,.22);background:linear-gradient(90deg,rgba(220,38,38,.05),#fff 34%);}
.roaming-banner.tone-danger .roaming-banner-icon{background:rgba(220,38,38,.1);color:#b42318;}
.roaming-onboarding{margin-top:10px;border-top:1px solid #e5e8f0;padding-top:16px;}
@media (max-width:900px){.roaming-banner{align-items:flex-start;flex-wrap:wrap}.roaming-banner-main{flex-basis:100%}.roaming-banner-meta{justify-content:flex-start}.roaming-banner-actions{margin-left:auto}}
@media (max-width:620px){.roaming-banner{padding:13px}.roaming-banner-actions{width:100%;margin-left:0}.roaming-banner-actions button{flex:1}.roaming-banner-meta{width:100%}}

/* Ledger Church 1.1.1 F1 — Continúa donde quedaste */
.entry-gate-f1{min-height:100vh;display:grid;grid-template-columns:minmax(350px,.88fr) minmax(560px,1.12fr);background:#f6f7fb;color:#171b2f}
.entry-brand-f1{position:relative;overflow:hidden;display:grid;align-content:center;gap:18px;padding:clamp(42px,5vw,78px);color:#fff;background:radial-gradient(circle at 18% 12%,rgba(255,255,255,.17),transparent 30%),linear-gradient(150deg,#4d46d5,#4c46c8 48%,#2f90be)}
.entry-brand-f1::after{content:"";position:absolute;width:430px;height:430px;right:-195px;bottom:-190px;border:1px solid rgba(255,255,255,.14);border-radius:50%;box-shadow:0 0 0 82px rgba(255,255,255,.035),0 0 0 165px rgba(255,255,255,.018)}
.entry-brand-f1>*{position:relative;z-index:1}.entry-brand-f1 .brand-mark{width:70px;height:70px;margin-bottom:2px;border-radius:20px;font-size:23px;box-shadow:none}
.entry-brand-f1>.eyebrow{color:rgba(255,255,255,.72);font-size:10px;letter-spacing:.14em}
.entry-brand-f1 h1{max-width:610px;margin:0;font-size:clamp(38px,4.4vw,58px);line-height:1.03;font-weight:570;letter-spacing:-.045em}
.entry-brand-f1>p{max-width:600px;margin:0;color:rgba(255,255,255,.82);font-size:15px;line-height:1.65}
.entry-feature-list-f1{display:grid;gap:10px;max-width:600px;margin-top:8px}.entry-feature-list-f1>div{display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center;gap:12px;padding:12px 14px;border:1px solid rgba(255,255,255,.15);border-radius:14px;background:rgba(255,255,255,.08)}
.entry-feature-list-f1>div>span{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:rgba(255,255,255,.12)}.entry-feature-list-f1>div>div{display:grid;gap:3px}.entry-feature-list-f1 strong{font-size:13px;font-weight:590}.entry-feature-list-f1 small{color:rgba(255,255,255,.69);font-size:11px;line-height:1.4}
.entry-action-panel-f1{display:grid;align-content:center;justify-items:center;gap:14px;padding:clamp(28px,4vw,62px)}.entry-action-card-f1{width:min(720px,100%);padding:clamp(28px,3.8vw,44px);border:1px solid #e1e4ed;border-radius:24px;background:#fff;box-shadow:0 24px 70px rgba(38,40,78,.11)}
.entry-action-card-f1>h2{margin:7px 0 8px;color:#20243d;font-size:31px;line-height:1.1;font-weight:590;letter-spacing:-.035em}.entry-action-card-f1>p{margin:0 0 18px;color:#74798b;font-size:13px;line-height:1.6}
.entry-overview-f1{overflow:hidden;margin:0 0 14px;border:1px solid #e2e5ee;border-radius:15px;background:#fcfcff}.entry-plan-row-f1{padding:13px 15px}.entry-plan-row-f1>span{display:grid;gap:3px}.entry-plan-row-f1 small,.entry-account-copy-f1 small{color:#727991;font-size:10px;font-weight:620;letter-spacing:.08em;text-transform:uppercase}.entry-plan-row-f1 strong{font-size:18px;font-weight:590;color:#18243f}.entry-plan-row-f1 em{color:#757b8f;font-size:11px;font-style:normal}.entry-divider-f1{height:1px;background:#eceef5}
.entry-account-row-f1{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px 15px}.entry-avatar-f1{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#eceaff;color:#5146d8;font-size:12px;font-weight:650}.entry-account-copy-f1{display:grid;min-width:0;gap:2px}.entry-account-copy-f1 strong,.entry-account-copy-f1 em{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.entry-account-copy-f1 strong{font-size:12.5px;font-weight:590;color:#2d3047}.entry-account-copy-f1 em{font-size:11px;font-style:normal;color:#828697}.entry-switch-account-f1{min-height:38px;white-space:nowrap;font-weight:540}
.entry-resume-card-f1{display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:12px;margin:14px 0;padding:13px 14px;border:1px solid #dfe3ed;border-radius:15px;background:#fafbfe}.entry-resume-icon-f1{width:46px;height:46px;display:grid;place-items:center;border-radius:13px;background:#ecebff;color:#5146d9}.entry-resume-card-f1>div{display:grid;min-width:0;gap:3px}.entry-resume-card-f1 small{font-size:9.5px;font-weight:650;letter-spacing:.07em;color:#727990}.entry-resume-card-f1 strong{font-size:14px;font-weight:590;color:#2c3047}.entry-resume-card-f1>div>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#7c8194;font-size:10.5px}.entry-ready-f1{padding:6px 10px;border-radius:999px;background:#eaf8f1;color:#247452;font-size:10px;font-weight:650;white-space:nowrap}
.entry-primary-actions-f1{display:grid;grid-template-columns:1fr 1fr;gap:12px}.entry-primary-actions-f1 button{min-height:50px}.entry-tertiary-f1{display:flex;justify-content:center;margin-top:8px}.entry-tertiary-f1 button,.entry-secondary-f1 button{display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;color:#5146d9;font:inherit;font-size:11.5px;font-weight:570;cursor:pointer}.entry-tertiary-f1 button:hover,.entry-secondary-f1 button:hover{text-decoration:underline}
.entry-secondary-f1{display:grid;gap:8px;margin-top:14px;padding:12px 14px;border:1px dashed #dddff0;border-radius:14px;background:#fbfbfe}.entry-secondary-f1>small{color:#74798d;font-size:10px;font-weight:610;letter-spacing:.035em;text-transform:uppercase}.entry-secondary-f1 button{justify-self:start;padding:0}.entry-footnote-f1{width:min(720px,100%);margin:0;color:#868a9a;font-size:10.5px;line-height:1.5;text-align:center}
.entry-manager-modal-f1{width:min(700px,calc(100vw - 30px))}.entry-managed-list-f1{display:grid;gap:10px;padding:0 24px 10px}.entry-managed-church-f1{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:12px;padding:13px;border:1px solid #e4e6ee;border-radius:13px;background:#fafbfe}.entry-managed-church-f1>span{width:42px;height:42px;display:grid;place-items:center;border-radius:11px;background:#ecebff;color:#5146d9}.entry-managed-church-f1>div{display:grid;gap:3px}.entry-managed-church-f1 strong{font-size:13px;font-weight:590;color:#2c3047}.entry-managed-church-f1 small{font-size:11px;color:#7d8193}
@media(max-width:980px){.entry-gate-f1{grid-template-columns:1fr}.entry-brand-f1{min-height:390px;padding:42px 30px}.entry-brand-f1 h1{font-size:clamp(34px,7vw,48px)}.entry-action-panel-f1{padding:24px 18px 36px}}
@media(max-width:620px){.entry-brand-f1{min-height:auto;padding:34px 24px}.entry-brand-f1 .brand-mark{width:58px;height:58px;border-radius:17px;font-size:19px}.entry-brand-f1 h1{font-size:34px}.entry-brand-f1>p{font-size:13px}.entry-feature-list-f1{display:none}.entry-action-card-f1{padding:25px 20px;border-radius:20px}.entry-action-card-f1>h2{font-size:27px}.entry-primary-actions-f1{grid-template-columns:1fr}.entry-account-row-f1{grid-template-columns:38px minmax(0,1fr)}.entry-avatar-f1{width:38px;height:38px}.entry-switch-account-f1{grid-column:1/-1;width:100%}.entry-resume-card-f1{grid-template-columns:42px minmax(0,1fr)}.entry-resume-icon-f1{width:42px;height:42px}.entry-ready-f1{grid-column:2;justify-self:start}.entry-resume-card-f1>div>span{white-space:normal}.entry-manager-modal-f1 .modal-actions{display:grid}.entry-manager-modal-f1 .modal-actions button{width:100%}}


/* Ledger Church 1.1.1 F2 — account, plan and church workspace header */
.topbar-f2-account{padding-right:10px}
.topbar-actions-f2{gap:8px}
.topbar-account-f2{display:flex;align-items:center;gap:8px;max-width:280px;min-height:44px;padding:4px 8px 4px 4px;border:1px solid rgba(255,255,255,.14);border-radius:12px;color:#fff;background:rgba(255,255,255,.08);font:inherit;text-align:left;cursor:pointer;transition:.16s ease}
.topbar-account-f2:hover,.topbar-account-f2:focus-visible{background:rgba(255,255,255,.15);border-color:rgba(255,255,255,.24)}
.topbar-account-avatar-f2{width:35px;height:35px;display:grid;place-items:center;flex:0 0 auto;border-radius:10px;background:linear-gradient(145deg,#35c7f0,#168cca);font-size:11px;font-weight:700}
.topbar-account-copy-f2{min-width:0;display:block}
.topbar-account-copy-f2 strong,.topbar-account-copy-f2 small{display:block;max-width:185px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.topbar-account-copy-f2 strong{font-size:12px;font-weight:650}.topbar-account-copy-f2 small{font-size:10px;color:rgba(255,255,255,.72)}
.topbar-account-f2 i{display:grid;place-items:center;color:rgba(255,255,255,.76);font-style:normal}
.topbar-close-church-f2{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:0 14px;border:1px solid rgba(255,255,255,.24);border-radius:12px;background:#fff;color:#424a82;font:inherit;font-size:12px;font-weight:650;cursor:pointer;white-space:nowrap}
.topbar-close-church-f2:hover,.topbar-close-church-f2:focus-visible{background:#f7f8ff}
.plan-strip-f2{min-height:34px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:6px 18px;border-bottom:1px solid #d6e3f2;background:#f1f7fd;color:#294b68;font-size:11px}
.plan-strip-f2 strong{font-weight:700}.plan-strip-f2 button{border:0;padding:2px 0;background:transparent;color:#315fc8;font:inherit;font-weight:650;cursor:pointer}
.plan-strip-f2 button:hover{text-decoration:underline}
.topbar-popover-layer-f2{position:fixed;inset:0;z-index:85;background:transparent}
.topbar-popover-f2{position:absolute;top:68px;right:318px;width:min(360px,calc(100vw - 24px));overflow:hidden;border:1px solid #e0e3ef;border-radius:16px;background:#fff;color:#1c2136;box-shadow:0 22px 52px rgba(22,27,58,.22)}
.topbar-popover-f2>header{display:grid;gap:3px;padding:16px 17px 12px;border-bottom:1px solid #eef0f6}.topbar-popover-f2>header strong{font-size:15px}.topbar-popover-f2>header small{color:#797e91;font-size:11px}
.topbar-church-list-f2{padding:10px}.topbar-church-row-f2{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px;border:1px solid #eceef5;border-radius:12px;background:#fafbfe}.topbar-church-row-f2>span{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;background:#eef0ff;color:#525bc0}.topbar-church-row-f2 strong,.topbar-church-row-f2 small{display:block}.topbar-church-row-f2 strong{font-size:13px}.topbar-church-row-f2 small{margin-top:2px;color:#85899b;font-size:10px}.topbar-church-row-f2 em{padding:4px 8px;border-radius:999px;background:#eaf8ef;color:#27804d;font-size:9px;font-style:normal;font-weight:700}
.topbar-popover-actions-f2{display:grid;padding:5px 10px 12px}.topbar-popover-actions-f2 button{display:flex;align-items:center;gap:9px;width:100%;padding:10px 11px;border:0;border-radius:10px;background:transparent;color:#3c4264;font:inherit;font-size:12px;text-align:left;cursor:pointer}.topbar-popover-actions-f2 button:hover{background:#f4f5fb;color:#424cc0}
@media(max-width:1120px){.topbar-account-copy-f2{display:none}.topbar-account-f2{padding-right:4px}.topbar-account-f2 i{display:none}.topbar-popover-f2{right:190px}}
@media(max-width:820px){.topbar-f2-account{grid-template-columns:auto 1fr auto}.topbar-actions-f2{gap:5px}.topbar-close-church-f2{width:42px;padding:0}.topbar-close-church-f2 span{display:none}.topbar-church-selector-f2{display:flex!important;min-width:0;max-width:190px}.topbar-church-selector-f2 .church-chip-copy small{display:none}.topbar-popover-f2{top:61px;right:58px}.plan-strip-f2{padding-inline:11px}}
@media(max-width:560px){.brand-copy small{display:none}.topbar-account-f2{display:none}.topbar-church-selector-f2{max-width:155px}.topbar-church-selector-f2 .church-control-icon{display:none}.topbar-popover-f2{right:10px;top:60px}.plan-strip-f2{font-size:10px}.plan-strip-f2 span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.plan-strip-f2 button{flex:0 0 auto}}


/* Ledger Church 1.1.2 RC1 — dashboard header cleanup */
.topbar-roaming-status-f112{
  display:flex;align-items:center;gap:7px;min-height:44px;padding:4px 9px 4px 5px;
  border:1px solid rgba(255,255,255,.18);border-radius:12px;background:rgba(255,255,255,.09);
  color:#fff;font:inherit;text-align:left;cursor:pointer;transition:.16s ease;white-space:nowrap
}
.topbar-roaming-status-f112:hover,.topbar-roaming-status-f112:focus-visible{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.28)}
.topbar-roaming-icon-f112{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:rgba(255,255,255,.13);flex:0 0 auto}
.topbar-roaming-status-f112.tone-success .topbar-roaming-icon-f112{background:rgba(111,239,173,.19);color:#c9ffe1}
.topbar-roaming-status-f112.tone-warning .topbar-roaming-icon-f112{background:rgba(255,210,92,.18);color:#ffe7a4}
.topbar-roaming-status-f112.tone-danger .topbar-roaming-icon-f112{background:rgba(255,133,133,.18);color:#ffd2d2}
.topbar-roaming-copy-f112{display:block;min-width:0}
.topbar-roaming-copy-f112 strong,.topbar-roaming-copy-f112 small{display:block}
.topbar-roaming-copy-f112 strong{font-size:10.5px;font-weight:650;line-height:1.15}
.topbar-roaming-copy-f112 small{margin-top:2px;font-size:9px;color:rgba(255,255,255,.72)}
.topbar-roaming-layer-f112{position:fixed;inset:0;z-index:92;background:transparent}
.topbar-roaming-popover-f112{position:fixed;overflow:hidden;border:1px solid #e0e3ef;border-radius:16px;background:#fff;color:#1c2136;box-shadow:0 22px 52px rgba(22,27,58,.22)}
.topbar-roaming-popover-f112>header{display:flex;align-items:flex-start;gap:11px;padding:16px 16px 13px;border-bottom:1px solid #eef0f6}
.topbar-roaming-popover-icon-f112{width:36px;height:36px;display:grid;place-items:center;flex:0 0 auto;border-radius:11px;background:#eef0ff;color:#5059c8}
.topbar-roaming-popover-f112.tone-success .topbar-roaming-popover-icon-f112{background:#e7f7ee;color:#168249}
.topbar-roaming-popover-f112.tone-warning .topbar-roaming-popover-icon-f112{background:#fff5da;color:#9b6a09}
.topbar-roaming-popover-f112.tone-danger .topbar-roaming-popover-icon-f112{background:#fdeceb;color:#b2271f}
.topbar-roaming-popover-f112 header>div{display:grid;gap:3px;min-width:0}
.topbar-roaming-popover-f112 header strong{font-size:14px;font-weight:700}
.topbar-roaming-popover-f112 header small{font-size:11px;line-height:1.45;color:#6f768d}
.topbar-roaming-meta-f112{display:flex;gap:7px;flex-wrap:wrap;padding:11px 16px 4px}
.topbar-roaming-meta-f112 span{padding:5px 8px;border:1px solid #e6e8ef;border-radius:999px;background:#f7f8fb;color:#60677d;font-size:10px;font-weight:600}
.topbar-roaming-actions-f112{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;padding:11px 16px 15px}
.plan-strip-f112{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:14px}
.plan-strip-summary-f112{justify-self:start}
.plan-strip-center-f112{min-width:1px}
.plan-demo-status-f112{justify-self:center!important;display:inline-flex!important;align-items:center;gap:6px!important;padding:4px 9px!important;border:1px solid rgba(31,128,100,.16)!important;border-radius:999px!important;background:rgba(31,128,100,.07)!important;color:#1f8064!important;text-decoration:none!important;font-size:10px!important;font-weight:650!important;white-space:nowrap}
.plan-demo-status-f112:hover{background:rgba(31,128,100,.12)!important;text-decoration:none!important}
.plan-strip-actions-f112{justify-self:end;display:flex;align-items:center;gap:15px}
.hf12-shell .page-container{margin-top:14px}

@media(max-width:1280px){
  .topbar-roaming-copy-f112{display:none}
  .topbar-roaming-status-f112{padding-right:5px}
}
@media(max-width:900px){
  .plan-strip-f112{grid-template-columns:minmax(0,1fr) auto}
  .plan-demo-status-f112{grid-column:1/-1;grid-row:2;justify-self:center!important;margin:-1px 0 1px}
  .plan-strip-actions-f112{justify-self:end}
}
@media(max-width:820px){
  .topbar-roaming-status-f112{min-height:42px}
  .topbar-roaming-icon-f112{width:32px;height:32px}
}
@media(max-width:620px){
  .topbar-roaming-status-f112{display:none}
  .plan-strip-f112{grid-template-columns:minmax(0,1fr) auto;gap:6px 10px}
  .plan-strip-actions-f112{gap:10px}
  .plan-strip-actions-f112 button:first-child{display:none}
  .plan-demo-status-f112{font-size:9px!important}
}


/* Ledger Church 1.1.3 F1 — Caja y bancos: vistas separadas */
.cash-tabs-shell-f1{
  display:flex;
  justify-content:center;
  margin:18px 0 12px;
}
.cash-tabs-f1{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:4px;
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--surface);
  box-shadow:0 8px 22px rgba(30,36,72,.05);
}
.cash-tab-f1{
  appearance:none;
  border:0;
  border-radius:10px;
  background:transparent;
  color:var(--muted-strong);
  min-height:40px;
  padding:9px 15px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  font:inherit;
  font-size:12px;
  font-weight:650;
  cursor:pointer;
  transition:background .16s ease,color .16s ease,box-shadow .16s ease;
}
.cash-tab-f1:hover{
  background:var(--surface-soft);
  color:var(--text);
}
.cash-tab-f1.active{
  background:var(--primary);
  color:#fff;
  box-shadow:0 7px 17px rgba(66,75,153,.18);
}
.cash-tab-content-f1{
  width:100%;
}
.cash-tab-panel-f1{
  width:100%;
  margin:0;
}
.cash-tab-content-f1 .cash-count-summary{
  max-width:880px;
}
.cash-tab-content-f1 .cash-ledger-filters{
  max-width:none;
}
@media(max-width:620px){
  .cash-tabs-shell-f1{justify-content:stretch}
  .cash-tabs-f1{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .cash-tab-f1{padding:9px 8px;font-size:11px}
}


/* Ledger Church 1.1.3 F2 — acciones contextuales de Caja y bancos */
.cash-ledger-actions-f2{
  justify-content:flex-end;
  flex:0 0 auto;
}
.cash-ledger-actions-f2 .secondary-button,
.cash-ledger-actions-f2 .primary-button{
  min-height:40px;
}
.cash-count-panel .panel-heading > .primary-button{
  flex:0 0 auto;
}
@media(max-width:760px){
  .cash-ledger-panel .panel-heading,
  .cash-count-panel .panel-heading{
    flex-direction:column;
    align-items:stretch;
  }
  .cash-ledger-actions-f2{
    width:100%;
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .cash-ledger-actions-f2 button,
  .cash-count-panel .panel-heading > .primary-button{
    width:100%;
  }
}
@media(max-width:520px){
  .cash-ledger-actions-f2{
    grid-template-columns:1fr;
  }
}


/* Ledger Church 1.1.3 F3 — refinamiento final de Caja y bancos */
.cash-page-f3{
  display:grid;
  gap:12px;
}
.cash-page-f3 > .hero-card,
.cash-page-f3 > .cash-overview-grid,
.cash-page-f3 > .cash-accounts-panel,
.cash-page-f3 > .cash-tabs-shell-f1,
.cash-page-f3 > .cash-tab-content-f1{
  margin-top:0;
  margin-bottom:0;
}

.cash-page-f3 .cash-overview-grid{
  gap:10px;
}
.cash-page-f3 .metric-card{
  min-height:112px;
  padding:16px 17px;
}
.cash-page-f3 .metric-card strong,
.cash-page-f3 .metric-card .metric-value{
  line-height:1.05;
}
.cash-page-f3 .metric-card small{
  margin-top:5px;
}

.cash-page-f3 .cash-accounts-panel{
  padding:17px 18px 15px;
}
.cash-page-f3 .cash-accounts-panel .panel-heading{
  margin-bottom:10px;
}
.cash-page-f3 .cash-accounts-panel .panel-heading h2{
  margin-bottom:3px;
}
.cash-page-f3 .cash-account-grid-f3{
  gap:8px;
}
.cash-page-f3 .cash-account-card{
  min-height:92px;
  padding:12px 14px;
  border-radius:13px;
}
.cash-page-f3 .cash-account-card span{
  margin-bottom:3px;
}
.cash-page-f3 .cash-account-card strong{
  margin-bottom:2px;
}
.cash-page-f3 .cash-account-card b{
  font-size:18px;
}
.cash-page-f3 .cash-account-card small{
  margin-top:4px;
}

.cash-page-f3 .cash-tabs-shell-f1{
  margin:2px 0 0;
}
.cash-page-f3 .cash-tabs-f1{
  padding:3px;
  border-radius:13px;
}
.cash-page-f3 .cash-tab-f1{
  min-height:38px;
  padding:8px 14px;
  border-radius:9px;
}

.cash-page-f3 .cash-tab-content-f1{
  margin-top:-2px;
}
.cash-page-f3 .cash-tab-panel-f1{
  border-top-left-radius:18px;
  border-top-right-radius:18px;
  padding:17px 18px 18px;
}
.cash-page-f3 .cash-tab-panel-f1 .panel-heading{
  margin-bottom:12px;
  gap:14px;
}
.cash-page-f3 .cash-tab-panel-f1 .panel-heading h2{
  margin-bottom:3px;
}
.cash-page-f3 .cash-tab-panel-f1 .panel-heading p{
  max-width:760px;
}

.cash-page-f3 .cash-count-summary,
.cash-page-f3 .ledger-summary-strip{
  gap:8px;
  margin-bottom:10px;
}
.cash-page-f3 .cash-count-summary > div,
.cash-page-f3 .ledger-summary-strip > div{
  min-height:64px;
  padding:10px 12px;
  border-radius:11px;
}
.cash-page-f3 .cash-count-summary span,
.cash-page-f3 .ledger-summary-strip span{
  font-size:10px;
}
.cash-page-f3 .cash-count-summary strong,
.cash-page-f3 .ledger-summary-strip strong{
  margin-top:3px;
  font-size:14px;
}

.cash-page-f3 .cash-ledger-filters{
  gap:8px;
  margin-bottom:10px;
}
.cash-page-f3 .cash-ledger-filters .field-label{
  gap:5px;
}
.cash-page-f3 .cash-ledger-filters select,
.cash-page-f3 .cash-ledger-filters input{
  min-height:40px;
}

.cash-page-f3 .data-table-wrap{
  border-radius:12px;
}
.cash-page-f3 .data-table th{
  padding-top:9px;
  padding-bottom:9px;
}
.cash-page-f3 .data-table td{
  padding-top:10px;
  padding-bottom:10px;
}

.cash-page-f3 .cash-ledger-actions-f2{
  gap:7px;
}
.cash-page-f3 .cash-ledger-actions-f2 .secondary-button,
.cash-page-f3 .cash-ledger-actions-f2 .primary-button,
.cash-page-f3 .cash-count-panel .panel-heading > .primary-button{
  min-height:38px;
  padding-top:8px;
  padding-bottom:8px;
}

@media(max-width:980px){
  .cash-page-f3{
    gap:10px;
  }
  .cash-page-f3 .cash-overview-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:760px){
  .cash-page-f3 .cash-accounts-panel,
  .cash-page-f3 .cash-tab-panel-f1{
    padding:15px;
  }
  .cash-page-f3 .cash-account-grid-f3{
    grid-template-columns:1fr;
  }
  .cash-page-f3 .cash-ledger-actions-f2{
    margin-top:4px;
  }
  .cash-page-f3 .cash-count-summary,
  .cash-page-f3 .ledger-summary-strip{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:520px){
  .cash-page-f3 .cash-overview-grid,
  .cash-page-f3 .cash-count-summary,
  .cash-page-f3 .ledger-summary-strip{
    grid-template-columns:1fr;
  }
  .cash-page-f3 .cash-tabs-f1{
    gap:2px;
  }
  .cash-page-f3 .cash-tab-f1{
    min-height:36px;
    padding:7px 6px;
  }
}

/* Ledger Church 1.2.0 F1 — demo público temporal */
.public-demo-strip-f1{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;padding:9px 18px;border-bottom:1px solid rgba(66,75,153,.15);background:linear-gradient(90deg,#f7f7ff,#fff);color:#34384d}.public-demo-badge-f1{display:inline-flex;align-items:center;justify-content:center;padding:4px 8px;border-radius:999px;background:#424b99;color:#fff;font-size:9px;font-weight:700;letter-spacing:.08em}.public-demo-strip-f1 strong{display:block;font-size:11px;font-weight:650}.public-demo-strip-f1 small{display:block;margin-top:2px;color:#73788d;font-size:9.5px;line-height:1.4}.public-demo-actions-f1{display:flex;align-items:center;gap:8px}.public-demo-actions-f1 button,.public-demo-actions-f1 a,.public-demo-exit-f1{border:1px solid #d9dbea;border-radius:9px;background:#fff;color:#454d8f;padding:7px 10px;text-decoration:none;font:inherit;font-size:9.5px;font-weight:650;cursor:pointer}.public-demo-actions-f1 button:hover,.public-demo-actions-f1 a:hover,.public-demo-exit-f1:hover{background:#f1f2fb}.public-demo-topbar-chip-f1{display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border-radius:999px;background:rgba(255,255,255,.12);color:#fff;font-size:9.5px;font-weight:650}.public-demo-exit-f1{border-color:rgba(255,255,255,.28);background:rgba(255,255,255,.08);color:#fff}.public-demo-church-chip-f1{opacity:1!important;cursor:default!important}.public-demo-shell-f1 .plan-demo-status-f112{display:none!important}@media(max-width:760px){.public-demo-strip-f1{grid-template-columns:auto minmax(0,1fr)}.public-demo-actions-f1{grid-column:1/-1;justify-content:flex-end}.public-demo-topbar-chip-f1{display:none}.public-demo-exit-f1{padding:6px 8px}.public-demo-strip-f1 small{font-size:9px}}

/* Ledger Church 1.2.0 F3 — Documentos y comprobantes */
.attachment-box-f3{border:1px solid var(--line,#dfe3eb);border-radius:14px;padding:14px;background:var(--surface-soft,#f8f9fc);display:grid;gap:11px;margin-top:2px}
.attachment-heading-f3{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.attachment-heading-f3>div{display:flex;align-items:flex-start;gap:9px;min-width:0}
.attachment-heading-f3>div>span{display:grid;place-items:center;width:31px;height:31px;border-radius:9px;background:#fff;border:1px solid var(--line,#dfe3eb);flex:0 0 auto}
.attachment-heading-f3 strong,.attachment-heading-f3 small{display:block}.attachment-heading-f3 small{margin-top:3px;color:var(--text-muted,#667085);font-size:12px;line-height:1.4}
.attachment-folder-note-f3{display:flex;align-items:center;gap:7px;padding:8px 10px;border-radius:10px;background:#fff;border:1px solid var(--line,#e4e7ec);color:var(--text-muted,#667085);font-size:12px}
.attachment-list-f3{display:grid;gap:7px}.attachment-empty-f3{display:flex;align-items:center;gap:7px;color:var(--text-muted,#667085);font-size:12px;padding:4px 2px}
.attachment-item-f3{display:flex;align-items:center;gap:9px;padding:9px 10px;border-radius:10px;background:#fff;border:1px solid var(--line,#e4e7ec)}.attachment-item-f3.missing{border-style:dashed;opacity:.76}
.attachment-file-icon-f3{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:var(--surface-soft,#f3f5f9);flex:0 0 auto}.attachment-file-copy-f3{min-width:0;flex:1}.attachment-file-copy-f3 strong,.attachment-file-copy-f3 small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attachment-file-copy-f3 strong{font-size:13px;font-weight:650}.attachment-file-copy-f3 small{font-size:11px;color:var(--text-muted,#667085);margin-top:2px}.attachment-item-actions-f3{display:flex;align-items:center;gap:5px;flex:0 0 auto}
.attachment-picker-f3{position:relative;display:flex;align-items:center;border:1px dashed #bcc3d4;border-radius:11px;background:#fff;cursor:pointer;padding:10px 12px}.attachment-picker-f3 input{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}.attachment-picker-f3>span{display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:7px;width:100%;font-size:12px}.attachment-picker-f3>span strong{font-weight:650}.attachment-picker-f3>span small{justify-self:end;color:var(--text-muted,#667085);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:300px}.attachment-picker-f3:hover{border-color:#8b92bd;background:#fbfbfe}.attachment-picker-f3.disabled{opacity:.55;cursor:not-allowed;pointer-events:none}.attachment-demo-note-f3{font-size:12px;color:var(--text-muted,#667085);padding:8px 10px;background:#fff;border-radius:10px;border:1px dashed var(--line,#e4e7ec)}
.attachment-settings-f3{margin-top:16px}.attachment-settings-status-f3{display:flex;align-items:center;gap:11px;padding:13px;border:1px solid var(--line,#e4e7ec);border-radius:12px;background:var(--surface-soft,#f8f9fc)}.attachment-settings-icon-f3{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#fff;border:1px solid var(--line,#e4e7ec);flex:0 0 auto}.attachment-settings-status-f3>div{min-width:0;flex:1}.attachment-settings-status-f3 strong,.attachment-settings-status-f3 small{display:block}.attachment-settings-status-f3 strong{font-size:14px}.attachment-settings-status-f3 small{font-size:12px;color:var(--text-muted,#667085);margin-top:3px}.attachment-settings-metrics-f3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:11px}.attachment-settings-metrics-f3>div{padding:11px 12px;border:1px solid var(--line,#e4e7ec);border-radius:10px;background:#fff}.attachment-settings-metrics-f3 small,.attachment-settings-metrics-f3 strong{display:block}.attachment-settings-metrics-f3 small{color:var(--text-muted,#667085);font-size:11px}.attachment-settings-metrics-f3 strong{font-size:17px;margin-top:3px}.attachment-settings-actions-f3{display:flex;align-items:center;gap:8px;margin-top:12px;flex-wrap:wrap}.attachment-settings-help-f3{font-size:12px;color:var(--text-muted,#667085);margin:10px 0 0}.attachment-demo-settings-f3{display:flex;gap:10px;align-items:flex-start;padding:13px;border-radius:12px;background:var(--surface-soft,#f8f9fc);border:1px solid var(--line,#e4e7ec)}.attachment-demo-settings-f3 strong,.attachment-demo-settings-f3 small{display:block}.attachment-demo-settings-f3 small{font-size:12px;color:var(--text-muted,#667085);margin-top:3px}
@media (max-width:720px){.attachment-heading-f3{flex-direction:column}.attachment-heading-f3 .secondary-button{width:100%}.attachment-item-f3{align-items:flex-start;flex-wrap:wrap}.attachment-item-actions-f3{width:100%;justify-content:flex-end}.attachment-picker-f3>span{grid-template-columns:auto 1fr}.attachment-picker-f3>span small{grid-column:1/-1;justify-self:start;max-width:100%}.attachment-settings-metrics-f3{grid-template-columns:1fr}.attachment-settings-actions-f3>*{width:100%}.attachment-settings-status-f3{align-items:flex-start;flex-wrap:wrap}.attachment-settings-status-f3 .status-pill{margin-left:49px}}
/* Ledger Church 1.2.0 F6 HF2 — attachment selection feedback */
.attachment-pending-list-f3{margin-top:10px}
.attachment-pending-list-f3 .attachment-item-f3{border-style:dashed;background:rgba(79,89,201,.035)}
.attachment-pending-list-f3 .status-pill{margin-left:auto;white-space:nowrap}

/* Ledger Church 1.2.0 B2 — Bank Transactions */
.bank-toolbar-b2{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:16px}
.bank-account-filter-b2{display:grid;grid-template-columns:minmax(220px,320px) minmax(220px,360px);gap:14px;align-items:end;flex:1}
.bank-search-field-b2{max-width:360px}
.bank-summary-grid-b2{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 16px}
.bank-summary-card-b2{appearance:none;border:1px solid var(--border,#dfe6e3);background:var(--surface,#fff);border-radius:14px;padding:15px 16px;text-align:left;color:inherit;cursor:pointer;display:grid;gap:4px;transition:.18s ease}
.bank-summary-card-b2:hover{border-color:#93aaa3;transform:translateY(-1px)}
.bank-summary-card-b2.active{border-color:#4d776c;box-shadow:0 0 0 2px rgba(77,119,108,.12)}
.bank-summary-card-b2 span{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted,#687771);font-weight:700}
.bank-summary-card-b2 strong{font-size:25px;line-height:1.05;font-weight:700}
.bank-summary-card-b2 small{color:var(--muted,#687771);font-size:12px}
.bank-feed-table-b2 td{vertical-align:middle}
.bank-description-b2{display:grid;gap:7px;min-width:260px}
.bank-description-b2>strong{font-weight:650;line-height:1.35}
.bank-suggestion-b2{display:inline-flex;align-items:center;gap:5px;width:max-content;max-width:100%;font-size:11.5px;font-weight:650;border-radius:999px;padding:4px 8px;background:#f2f6f4;color:#41625a}
.bank-suggestion-b2.high{background:#e8f3ee;color:#25594b}
.bank-suggestion-b2.medium{background:#f1f5f2;color:#426359}
.bank-suggestion-b2.low{background:#f5f5f3;color:#626860}
.bank-feed-amount{white-space:nowrap;font-weight:700}.bank-feed-amount.in{color:#246b50}.bank-feed-amount.out{color:#8a3e3e}
.bank-row-actions-b2{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}.bank-reviewed-action-b2{display:grid;gap:4px;justify-items:end}.bank-reviewed-action-b2>strong{font-size:12px;font-weight:700;color:#4d655e}
.bank-import-panel-b2{margin-bottom:16px;padding-bottom:18px}.bank-import-grid-b2{display:grid;gap:14px}.bank-import-step-b2{display:flex;align-items:center;gap:10px;margin-top:4px}.bank-import-step-b2>span{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#e9f0ed;color:#315d52;font-weight:700;font-size:12px}.bank-import-step-b2>div{display:grid;gap:2px}.bank-import-step-b2 strong{font-weight:700}.bank-import-step-b2 small{color:var(--muted,#687771)}
.ofi-file-picker{position:relative;display:block;width:100%}.ofi-file-picker>input[type="file"]{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;opacity:0!important;pointer-events:none!important}.file-picker-button{width:100%;min-height:56px;display:flex;align-items:center;gap:11px;padding:11px 14px;border:1px dashed #bcc3d4;border-radius:12px;background:#fff;color:var(--text,#25283a);font:inherit;text-align:left;cursor:pointer;transition:border-color .16s ease,background .16s ease,box-shadow .16s ease}.file-picker-button>svg{flex:0 0 auto;color:var(--primary,#4c55b8)}.file-picker-button>span{min-width:0;display:grid;gap:2px}.file-picker-button strong{font-size:12px;font-weight:650;color:var(--text,#25283a)}.file-picker-button small{font-size:10.5px;line-height:1.35;color:var(--muted,#687083);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-picker-button:hover{border-color:#8b92bd;background:#fbfbfe}.file-picker-button:focus-visible{outline:0;border-color:var(--primary,#4c55b8);box-shadow:0 0 0 3px rgba(76,85,184,.13)}@media(max-width:620px){.file-picker-button{min-height:54px}.file-picker-button small{white-space:normal}}

.bank-import-source-b2,.bank-import-review-b2{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:12px;border:1px solid var(--border,#dfe6e3);border-radius:12px;background:#fafcfb}.bank-import-source-b2>div,.bank-import-review-b2>div{display:grid;gap:3px;min-width:0}.bank-import-source-b2 span,.bank-import-review-b2 span{font-size:11px;color:var(--muted,#687771);text-transform:uppercase;letter-spacing:.04em}.bank-import-source-b2 strong,.bank-import-review-b2 strong{font-size:13px;overflow-wrap:anywhere;font-weight:650}.bank-import-review-b2{grid-template-columns:repeat(5,minmax(0,1fr))}.bank-mapping-grid-b2{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.bank-import-actions-b2{display:flex;justify-content:flex-end;gap:10px}
.bank-match-modal-b2{max-width:760px}.bank-match-list-b2{display:grid;gap:10px;padding:0 22px 18px;max-height:min(62vh,620px);overflow:auto}.bank-match-card-b2{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;border:1px solid var(--border,#dfe6e3);border-radius:13px;padding:13px 14px;background:#fff}.bank-match-card-b2>div{display:grid;gap:3px}.bank-match-card-b2>div:last-child{text-align:right;justify-items:end}.bank-match-card-b2 span,.bank-match-card-b2 small{color:var(--muted,#687771);font-size:11.5px}.bank-match-card-b2 strong{font-weight:650}
@media(max-width:900px){.bank-toolbar-b2{align-items:stretch;flex-direction:column}.bank-account-filter-b2{grid-template-columns:1fr}.bank-summary-grid-b2{grid-template-columns:1fr}.bank-import-review-b2{grid-template-columns:repeat(2,minmax(0,1fr))}.bank-mapping-grid-b2{grid-template-columns:1fr 1fr}.bank-match-card-b2{grid-template-columns:1fr}.bank-match-card-b2>div:last-child{text-align:left;justify-items:start}}
@media(max-width:620px){.bank-import-source-b2,.bank-import-review-b2,.bank-mapping-grid-b2{grid-template-columns:1fr}.bank-row-actions-b2{justify-content:flex-start}.bank-reviewed-action-b2{justify-items:start}.bank-feed-table-b2{min-width:760px}}
.bank-toolbar-actions-b3{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
@media(max-width:900px){.bank-toolbar-actions-b3{justify-content:stretch}.bank-toolbar-actions-b3 .primary-button,.bank-toolbar-actions-b3 .secondary-button{flex:1 1 220px}}

/* Ledger Church 1.2.0 B3 — Safe bank matching */


/* B3 HF4 — compact bank review + provenance-aware matching */
.bank-feed-table-b2{table-layout:fixed;width:100%}
.bank-feed-table-b2 .bank-date-head-b4,.bank-feed-table-b2 .bank-date-cell-b4{width:132px}
.bank-feed-table-b2 .bank-amount-head-b4,.bank-feed-table-b2 .bank-amount-cell-b4{width:118px;text-align:right}
.bank-feed-table-b2 .bank-actions-head-b4,.bank-feed-table-b2 .bank-actions-cell-b4{width:286px;text-align:right}
.bank-feed-row-b4>td{padding:8px 12px!important;border-bottom:1px solid #eceff3}
.bank-feed-row-b4 .table-primary{gap:1px}.bank-feed-row-b4 .table-primary strong{font-size:12px;line-height:1.25}.bank-feed-row-b4 .table-primary small{font-size:9.5px;margin-top:1px;color:#8a909d}
.bank-description-b4{display:flex!important;align-items:center;gap:8px!important;min-width:0}.bank-description-b4>strong{font-size:12px;line-height:1.28;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;flex:1}
.bank-row-hint-b4{display:inline-flex;align-items:center;gap:4px;flex:0 0 auto;border-radius:999px;padding:2px 6px;font-size:9.5px;font-weight:700;line-height:1.25;background:#f2f5f4;color:#53655f;border:1px solid #e4eae7}.bank-row-hint-b4.safe,.bank-row-hint-b4.origin{background:#edf7f2;color:#2f6657;border-color:#d9ebe3}.bank-row-hint-b4.review{background:#f6f5f1;color:#6c6655;border-color:#ece8dc}
.bank-feed-amount{font-size:12px}.bank-row-actions-b2{gap:5px;flex-wrap:nowrap}.bank-row-actions-b2 .compact-button{min-height:30px;padding:6px 9px;font-size:10px;border-radius:9px;white-space:nowrap}.bank-action-exclude-b4{background:#fff!important;color:#6b7180!important;border-color:#e3e6ec!important;box-shadow:none!important}.bank-action-exclude-b4:hover{background:#f7f8fa!important;color:#454b59!important;border-color:#d4d8e0!important}.bank-action-match-b4{background:#fff}.bank-action-register-b4{box-shadow:none}
.bank-match-modal-b4{max-width:900px}.bank-match-header-b4 h2{font-size:24px;line-height:1.2;max-width:760px}.bank-match-list-b4{gap:7px;padding-top:10px}.bank-match-card-b4{padding:10px 12px;border-radius:12px;gap:12px}.bank-match-card-b4.provenance{border-color:#9dc9b7;background:#f7fcf9;box-shadow:0 0 0 2px rgba(72,128,105,.08)}.bank-match-main-b4{min-width:0}.bank-match-main-b4>strong{font-size:13px}.bank-match-main-b4>small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:620px}.bank-match-side-b4{display:flex!important;align-items:center;gap:12px!important;justify-content:flex-end}.bank-match-side-b4>strong{font-size:15px}.bank-origin-badge-b4,.bank-origin-callout-b4{display:inline-flex;align-items:center;gap:5px;color:#2d6655;font-weight:700}.bank-origin-badge-b4{font-size:10px;margin-top:3px}.bank-origin-callout-b4{margin-top:8px;padding:7px 9px;border-radius:9px;background:#edf7f2;border:1px solid #d9ebe3;font-size:11px}.bank-match-reasons-b4{display:flex;gap:5px;flex-wrap:wrap;margin-top:3px}.bank-match-reasons-b4 span{font-size:9.5px;color:#6f7583;background:#f5f6f8;border:1px solid #e9ebef;border-radius:999px;padding:2px 6px}
.bank-safe-summary-b4{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:14px}.bank-safe-summary-b4 article{border:1px solid #e4e7ed;border-radius:12px;background:#fafbfc;padding:11px 12px;display:flex;align-items:baseline;justify-content:space-between;gap:12px}.bank-safe-summary-b4 small{font-size:10px;color:#777e8d}.bank-safe-summary-b4 strong{font-size:17px;color:#303547;font-weight:700}
@media(max-width:1050px){.bank-feed-table-b2 .bank-actions-head-b4,.bank-feed-table-b2 .bank-actions-cell-b4{width:250px}.bank-row-actions-b2 .compact-button{padding:6px 7px}.bank-action-match-b4 svg{display:none}}
@media(max-width:760px){.bank-feed-table-b2{min-width:760px}.bank-safe-summary-b4{grid-template-columns:1fr}.bank-match-side-b4{justify-content:flex-start}.bank-match-main-b4>small{max-width:100%}}
