:root {
    --dizimo-bg: #f6f1e8;
    --dizimo-card: #ffffff;
    --dizimo-text: #12273d;
    --dizimo-muted: #657284;
    --dizimo-primary: #9b6a2e;
    --dizimo-primary-dark: #6f451d;
    --dizimo-navy: #062642;
    --dizimo-navy-soft: #0b385d;
    --dizimo-soft: #f0e4d0;
    --dizimo-border: #e7dccb;
    --dizimo-ok: #147a45;
    --dizimo-error: #b42318;
}

.dizimo-page { margin: 0; color: var(--dizimo-text); background: var(--dizimo-bg); font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.dizimo-page * { box-sizing: border-box; }
.dizimo-page a { color: inherit; }
.dizimo-container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.dizimo-hero-paroquia { position: relative; padding: 34px 0 76px; color: #ffffff; overflow: hidden; background:
    radial-gradient(circle at 72% 10%, rgba(191, 153, 91, .55), transparent 30%),
    linear-gradient(135deg, #061f36 0%, #082f50 55%, #9b6a2e 130%); }
.dizimo-hero-paroquia::after { content: ""; position: absolute; inset: auto -10% -42% -10%; height: 220px; background: rgba(255,255,255,.08); filter: blur(30px); transform: rotate(-3deg); }
.dizimo-hero-paroquia > .dizimo-container { position: relative; z-index: 1; }
.dizimo-subnav { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 44px; font-size: 14px; font-weight: 800; }
.dizimo-subnav a { text-decoration: none; opacity: .92; }
.dizimo-subnav a:hover { opacity: 1; text-decoration: underline; }
.dizimo-back-link { display: inline-flex; align-items: center; gap: 8px; }
.dizimo-subnav-links { display: flex; flex-wrap: wrap; gap: 18px; }
.dizimo-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.dizimo-hero-copy h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.02; margin: 12px 0 18px; letter-spacing: -0.045em; color: #ffffff; }
.dizimo-hero-copy p { font-size: 18px; line-height: 1.65; max-width: 700px; opacity: .95; }
.dizimo-kicker { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 900; opacity: .82; }
.dizimo-kicker-blue { color: var(--dizimo-navy-soft); opacity: 1; }
.dizimo-brand-panel { min-height: 280px; padding: 34px; border: 1px solid rgba(255,255,255,.24); border-radius: 30px; background: rgba(5, 25, 45, .22); box-shadow: 0 24px 80px rgba(0, 0, 0, .18); backdrop-filter: blur(8px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.dizimo-brand-logo { display: block; max-width: min(360px, 100%); max-height: 170px; width: auto; height: auto; object-fit: contain; object-position: left center; filter: drop-shadow(0 16px 26px rgba(0,0,0,.25)); }
.dizimo-brand-panel strong { font-size: 26px; line-height: 1.1; }
.dizimo-brand-panel p { margin: 22px 0 0; line-height: 1.65; color: rgba(255,255,255,.88); max-width: 440px; }

.dizimo-section { padding: 64px 0; }
.dizimo-section-white { background: #fbf8f1; }
.dizimo-soft { background: var(--dizimo-soft); }
.dizimo-cadastro-section { background: #f8f4ec; }
.dizimo-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dizimo-card, .dizimo-info-card, .dizimo-form-card, .dizimo-admin-card, .dizimo-stat, .dizimo-filter-card { background: var(--dizimo-card); color: var(--dizimo-text); border: 1px solid var(--dizimo-border); border-radius: 22px; box-shadow: 0 14px 40px rgba(9, 34, 58, .08); }
.dizimo-info-card { padding: 26px; }
.dizimo-info-card span { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 999px; background: rgba(155, 106, 46, .12); color: var(--dizimo-primary-dark); font-size: 12px; font-weight: 900; }
.dizimo-info-card h3, .dizimo-card h2 { margin-top: 14px; }
.dizimo-info-card p { color: var(--dizimo-muted); line-height: 1.55; }
.dizimo-two-cols { display: grid; grid-template-columns: .9fr 1.1fr; gap: 42px; align-items: start; }
.dizimo-form-grid { grid-template-columns: .75fr 1.25fr; }
.dizimo-form-intro { position: sticky; top: 110px; }
.dizimo-muted { color: var(--dizimo-muted); }
.dizimo-actions, .dizimo-admin-actions, .dizimo-form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.dizimo-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 20px; border: 0; border-radius: 999px; font-weight: 900; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.dizimo-btn:hover { transform: translateY(-1px); }
.dizimo-btn-primary { background: var(--dizimo-primary); color: #ffffff; box-shadow: 0 10px 24px rgba(155, 106, 46, .28); }
.dizimo-btn-primary:hover { background: var(--dizimo-primary-dark); }
.dizimo-btn-light { background: #ffffff; color: var(--dizimo-primary-dark); border: 1px solid var(--dizimo-border); }
.dizimo-full { width: 100%; }
.dizimo-inline-link { display: inline-flex; margin-top: 18px; color: var(--dizimo-navy-soft); font-weight: 900; text-decoration: none; }
.dizimo-inline-link:hover { text-decoration: underline; }
.dizimo-pix-card { padding: 26px 28px; }
.dizimo-pix-line { padding: 16px 0; border-bottom: 1px solid var(--dizimo-border); }
.dizimo-pix-line:first-child { padding-top: 0; }
.dizimo-pix-line span { display: block; color: var(--dizimo-muted); font-size: 13px; font-weight: 800; }
.dizimo-pix-line strong { display: block; margin-top: 4px; word-break: break-word; }
.dizimo-form-card { padding: 28px; }
.dizimo-page label { display: block; font-size: 13px; font-weight: 900; margin: 14px 0 6px; }
.dizimo-page input, .dizimo-page select, .dizimo-page textarea { width: 100%; min-height: 44px; border: 1px solid var(--dizimo-border); border-radius: 12px; padding: 10px 12px; font: inherit; background: white; color: var(--dizimo-text); outline: none; }
.dizimo-page input:focus, .dizimo-page select:focus, .dizimo-page textarea:focus { border-color: rgba(8, 47, 80, .5); box-shadow: 0 0 0 4px rgba(8,47,80,.08); }
.dizimo-page textarea { resize: vertical; }
.dizimo-page small { color: var(--dizimo-error); font-weight: 700; }
.dizimo-form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.dizimo-form-row-3 { grid-template-columns: 1.2fr .45fr 1fr; }
.dizimo-form-row .wide { grid-column: span 2; }
.dizimo-checkbox { display: flex !important; align-items: center; gap: 10px; font-weight: 700 !important; }
.dizimo-checkbox input { width: auto; min-height: auto; }
.dizimo-alert { padding: 14px 16px; border-radius: 14px; margin-bottom: 18px; font-weight: 800; }
.dizimo-alert-ok { background: #e7f7ee; color: var(--dizimo-ok); border: 1px solid #b8e7c9; }
.dizimo-alert-error { background: #fff0ee; color: var(--dizimo-error); border: 1px solid #fac5be; }
.dizimo-thanks-section { min-height: 66vh; display: flex; align-items: center; }
.dizimo-thanks-card { max-width: 720px; padding: 38px; margin: 0 auto; color: var(--dizimo-text); }
.dizimo-thanks-card h1 { color: var(--dizimo-text); font-size: clamp(32px, 4vw, 48px); line-height: 1.05; margin: 12px 0 18px; }
.dizimo-thanks-card p { color: var(--dizimo-muted); line-height: 1.65; }

.dizimo-admin-body { background: #f4f6f8; }
.dizimo-admin-body * { box-sizing: border-box; }
.dizimo-admin-body a { color: inherit; }
.dizimo-admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.dizimo-admin-sidebar { background: #2f261d; color: white; padding: 24px 18px; position: sticky; top: 0; height: 100vh; }
.dizimo-admin-sidebar h1 { margin: 0 0 22px; font-size: 24px; }
.dizimo-admin-sidebar nav { display: grid; gap: 8px; }
.dizimo-admin-sidebar a { display: block; padding: 12px 14px; border-radius: 12px; text-decoration: none; color: rgba(255,255,255,.82); font-weight: 700; }
.dizimo-admin-sidebar a.active, .dizimo-admin-sidebar a:hover { background: rgba(255,255,255,.12); color: white; }
.dizimo-admin-main { padding: 28px; min-width: 0; }
.dizimo-admin-header { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 22px; }
.dizimo-admin-header h2 { margin: 6px 0 0; font-size: 30px; }
.dizimo-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.dizimo-stat { padding: 20px; }
.dizimo-stat span { display: block; color: var(--dizimo-muted); font-size: 13px; font-weight: 800; }
.dizimo-stat strong { display: block; margin: 8px 0 4px; font-size: 26px; }
.dizimo-admin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.dizimo-admin-card { padding: 22px; margin-bottom: 18px; overflow-x: auto; }
.dizimo-table { width: 100%; border-collapse: collapse; }
.dizimo-table th, .dizimo-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--dizimo-border); vertical-align: top; }
.dizimo-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--dizimo-muted); }
.dizimo-filter-card { display: flex; gap: 10px; align-items: center; padding: 14px; margin-bottom: 18px; }
.dizimo-filter-card input, .dizimo-filter-card select { max-width: 260px; }
.dizimo-filter-wide { flex-wrap: wrap; }
.dizimo-admin-body label { display: block; font-size: 13px; font-weight: 800; margin: 14px 0 6px; }
.dizimo-admin-body input, .dizimo-admin-body select, .dizimo-admin-body textarea { width: 100%; min-height: 42px; border: 1px solid var(--dizimo-border); border-radius: 12px; padding: 10px 12px; font: inherit; background: white; color: var(--dizimo-text); }
.dizimo-admin-form { max-width: 980px; }
.dizimo-actions-cell { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.dizimo-actions-cell a, .dizimo-actions-cell button { border: 0; background: transparent; color: var(--dizimo-primary-dark); font-weight: 800; cursor: pointer; padding: 0; text-decoration: none; }
.dizimo-badge { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; background: #eef1f4; }
.dizimo-badge-ativo { background: #e7f7ee; color: var(--dizimo-ok); }
.dizimo-badge-inativo { background: #eef1f4; color: #59636e; }
.dizimo-badge-aguardando_contato { background: #fff4d6; color: #8a5d00; }
.dizimo-pagination { margin-top: 16px; }
.dizimo-total-line { font-size: 18px; }
.dizimo-detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dizimo-detail-grid p { margin: 0; padding: 14px; border-radius: 14px; background: #f7f3ea; }
.dizimo-detail-grid span { display: block; color: var(--dizimo-muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.dizimo-detail-grid strong { display: block; margin-top: 4px; }

@media (max-width: 900px) {
    .dizimo-subnav { align-items: flex-start; flex-direction: column; margin-bottom: 30px; }
    .dizimo-hero-grid, .dizimo-two-cols, .dizimo-form-grid, .dizimo-grid-3, .dizimo-admin-grid, .dizimo-stat-grid, .dizimo-detail-grid { grid-template-columns: 1fr; }
    .dizimo-form-intro { position: static; }
    .dizimo-brand-panel { min-height: auto; }
    .dizimo-admin-shell { grid-template-columns: 1fr; }
    .dizimo-admin-sidebar { position: static; height: auto; }
    .dizimo-admin-sidebar nav { grid-template-columns: repeat(2, 1fr); }
    .dizimo-admin-header { align-items: flex-start; flex-direction: column; }
    .dizimo-filter-card { flex-direction: column; align-items: stretch; }
    .dizimo-filter-card input, .dizimo-filter-card select { max-width: none; }
}

@media (max-width: 560px) {
    .dizimo-section, .dizimo-hero-paroquia { padding: 40px 0; }
    .dizimo-subnav-links { gap: 10px 14px; }
    .dizimo-brand-logo { max-height: 130px; }
    .dizimo-form-row, .dizimo-form-row-3 { grid-template-columns: 1fr; }
    .dizimo-form-row .wide { grid-column: auto; }
    .dizimo-form-card { padding: 20px; }
    .dizimo-admin-main { padding: 18px; }
    .dizimo-admin-sidebar nav { grid-template-columns: 1fr; }
}


/* Ajustes de integração do símbolo do dízimo */
.dizimo-brand-panel-symbol {
    min-height: 320px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(255,255,255,.3);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .18);
    align-items: center;
    text-align: center;
}
.dizimo-brand-symbol {
    display: block;
    width: min(300px, 100%);
    max-height: 240px;
    object-fit: contain;
    margin: 0 auto 10px;
}
.dizimo-brand-panel-symbol p {
    margin: 8px 0 0;
    max-width: 420px;
    color: var(--dizimo-text);
}
.dizimo-actions a.dizimo-btn,
.dizimo-actions .dizimo-btn {
    min-width: 220px;
    text-align: center;
    white-space: nowrap;
}
.dizimo-actions a.dizimo-btn-light,
.dizimo-actions .dizimo-btn-light {
    background: #ffffff !important;
    color: var(--dizimo-primary-dark) !important;
    border: 1px solid rgba(255,255,255,.65);
}
.dizimo-actions a.dizimo-btn-primary,
.dizimo-actions .dizimo-btn-primary {
    color: #ffffff !important;
}
@media (max-width: 560px) {
    .dizimo-actions a.dizimo-btn,
    .dizimo-actions .dizimo-btn { min-width: 100%; }
    .dizimo-brand-panel-symbol { min-height: auto; }
}


/* =========================================================
   ADMIN DÍZIMO · INTEGRAÇÃO VISUAL COM A GESTÃO DA PARÓQUIA
   ========================================================= */
.dizimo-admin-body {
    margin: 0;
    background: #fafafa;
    color: #161616;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dizimo-admin-topbar {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 26px;
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
    position: sticky;
    top: 0;
    z-index: 30;
}

.dizimo-admin-back,
.dizimo-topbar-link {
    text-decoration: none;
}

.dizimo-admin-back {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #161616;
}

.dizimo-admin-back > span {
    color: #8c8c94;
    font-size: 28px;
    line-height: 1;
    font-weight: 300;
}

.dizimo-admin-back strong {
    font-size: 15px;
    font-weight: 750;
}

.dizimo-admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.dizimo-topbar-link {
    color: #666674;
    font-size: 13px;
    font-weight: 650;
}

.dizimo-topbar-link:hover {
    color: #981b45;
}

.dizimo-user-chip {
    width: 31px;
    height: 31px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111111;
    color: white;
    font-size: 10px;
    font-weight: 800;
}

.dizimo-admin-shell {
    grid-template-columns: 238px minmax(0, 1fr);
    min-height: calc(100vh - 64px);
}

.dizimo-admin-sidebar {
    top: 64px;
    height: calc(100vh - 64px);
    padding: 22px 14px 18px;
    background: #ffffff;
    color: #27272a;
    border-right: 1px solid #ececef;
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

.dizimo-sidebar-brand {
    padding: 4px 10px 18px;
    border-bottom: 1px solid #f0f0f2;
    margin-bottom: 12px;
}

.dizimo-sidebar-eyebrow {
    display: block;
    color: #981b45;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 9px;
    font-weight: 850;
}

.dizimo-admin-sidebar h1 {
    margin: 4px 0 2px;
    color: #161616;
    font-size: 22px;
    letter-spacing: -.02em;
}

.dizimo-sidebar-brand p {
    margin: 0;
    color: #898995;
    font-size: 11px;
    line-height: 1.4;
}

.dizimo-admin-sidebar nav {
    gap: 4px;
}

.dizimo-nav-label {
    margin: 16px 10px 5px;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: 9px;
    font-weight: 800;
}

.dizimo-admin-sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 11px;
    border-radius: 8px;
    color: #5b5b66;
    font-size: 13px;
    font-weight: 600;
}

.dizimo-admin-sidebar a > span:first-child {
    width: 19px;
    color: #9898a3;
    text-align: center;
    font-size: 14px;
}

.dizimo-admin-sidebar a.active,
.dizimo-admin-sidebar a:hover {
    background: #f7f4f5;
    color: #981b45;
}

.dizimo-admin-sidebar a.active > span:first-child,
.dizimo-admin-sidebar a:hover > span:first-child {
    color: #d5164e;
}

.dizimo-admin-sidebar .dizimo-nav-back {
    background: #fafafa;
    border: 1px solid #ededf0;
    color: #25252a;
    margin-bottom: 2px;
}

.dizimo-sidebar-footer {
    margin-top: auto;
    padding: 16px 10px 2px;
    border-top: 1px solid #f0f0f2;
    color: #a0a0aa;
    font-size: 10px;
    line-height: 1.45;
}

.dizimo-sidebar-footer strong {
    display: block;
    color: #6c6c75;
    font-size: 11px;
}

.dizimo-admin-main {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 34px 0 60px;
}

.dizimo-module-hero {
    min-height: 170px;
    padding: 28px 32px;
    margin-bottom: 20px;
    border-radius: 18px;
    color: white;
    background: linear-gradient(105deg, #8c153c 0%, #a52749 45%, #c56b3d 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    box-shadow: 0 16px 34px rgba(127, 24, 60, .12);
}

.dizimo-module-eyebrow {
    display: block;
    text-transform: uppercase;
    letter-spacing: .13em;
    font-size: 9px;
    font-weight: 850;
    opacity: .88;
}

.dizimo-module-hero h2 {
    margin: 8px 0 5px;
    color: #fff;
    font-size: 30px;
    line-height: 1.08;
    letter-spacing: -.025em;
}

.dizimo-module-hero p {
    margin: 0;
    max-width: 650px;
    color: rgba(255,255,255,.92);
    font-size: 13px;
    line-height: 1.5;
}

.dizimo-module-hero-mark {
    width: 92px;
    height: 84px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.32);
    background: rgba(255,255,255,.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.dizimo-module-hero-mark span {
    font-size: 34px;
    font-weight: 300;
    line-height: 1;
}

.dizimo-module-hero-mark small {
    margin-top: 5px;
    color: #fff;
    font-size: 7px;
    font-weight: 850;
    letter-spacing: .02em;
}

.dizimo-admin-header {
    margin: 0 0 18px;
}

.dizimo-admin-header h2 {
    margin-top: 5px;
    font-size: 24px;
    letter-spacing: -.02em;
}

.dizimo-admin-actions {
    margin-top: 0;
}

.dizimo-btn {
    min-height: 40px;
    padding: 9px 17px;
    border-radius: 12px;
    font-size: 12px;
}

.dizimo-btn-primary {
    background: #a86b22;
    box-shadow: 0 8px 18px rgba(168,107,34,.16);
}

.dizimo-btn-primary:hover {
    background: #925814;
}

.dizimo-btn-light {
    color: #26262b;
    border-color: #e7e2df;
}

.dizimo-stat-grid {
    gap: 14px;
    margin-bottom: 18px;
}

.dizimo-stat,
.dizimo-admin-card,
.dizimo-filter-card {
    border: 1px solid #e9e6e4;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(31, 26, 24, .035);
}

.dizimo-stat {
    padding: 18px;
}

.dizimo-stat span {
    color: #71717b;
    font-size: 11px;
    font-weight: 700;
}

.dizimo-stat strong {
    margin: 7px 0 3px;
    color: #171719;
    font-size: 23px;
}

.dizimo-stat small {
    color: #8d8d96;
    font-size: 10px;
    font-weight: 600;
}

.dizimo-admin-grid {
    gap: 14px;
}

.dizimo-admin-card {
    padding: 20px;
}

.dizimo-card-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.dizimo-card-heading h3 {
    margin: 2px 0 0;
    font-size: 16px;
}

.dizimo-card-kicker {
    color: #981b45;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 8px;
    font-weight: 850;
}

.dizimo-table th {
    color: #878791;
    font-size: 10px;
}

.dizimo-table td {
    color: #35353b;
    font-size: 12px;
}

.dizimo-table th,
.dizimo-table td {
    border-bottom-color: #eee9e6;
}

.dizimo-admin-body input,
.dizimo-admin-body select,
.dizimo-admin-body textarea {
    border-color: #dfdcda;
    border-radius: 9px;
}

.dizimo-admin-body input:focus,
.dizimo-admin-body select:focus,
.dizimo-admin-body textarea:focus {
    outline: none;
    border-color: rgba(152,27,69,.55);
    box-shadow: 0 0 0 3px rgba(152,27,69,.08);
}

@media (max-width: 900px) {
    .dizimo-admin-topbar {
        height: auto;
        min-height: 58px;
        padding: 12px 16px;
    }

    .dizimo-admin-topbar-actions .dizimo-topbar-link {
        display: none;
    }

    .dizimo-admin-shell {
        min-height: auto;
    }

    .dizimo-admin-sidebar {
        position: static;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid #ececef;
    }

    .dizimo-admin-sidebar nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dizimo-nav-label,
    .dizimo-sidebar-footer {
        display: none;
    }

    .dizimo-admin-main {
        width: min(100% - 30px, 1180px);
        padding-top: 22px;
    }
}

@media (max-width: 640px) {
    .dizimo-admin-back strong {
        max-width: 230px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dizimo-admin-sidebar nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dizimo-module-hero {
        min-height: auto;
        padding: 24px;
    }

    .dizimo-module-hero-mark {
        display: none;
    }

    .dizimo-module-hero h2 {
        font-size: 26px;
    }
}


/* Ajustes finais de integração: ícones SVG e navegação limpa. */
.dizimo-admin-body .dizimo-nav-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: #9ca3af;
    vertical-align: middle;
}
.dizimo-admin-body .dizimo-admin-sidebar a.active .dizimo-nav-icon,
.dizimo-admin-body .dizimo-admin-sidebar a:hover .dizimo-nav-icon {
    color: #e11d48;
}
.dizimo-admin-body .dizimo-admin-sidebar a {
    transition: background-color .15s ease, color .15s ease;
}
.dizimo-admin-body .dizimo-admin-back .dizimo-nav-icon {
    width: 20px;
    height: 20px;
    color: #71717a;
}
.dizimo-admin-body .dizimo-module-hero {
    background: linear-gradient(110deg, #791235 0%, #9e2947 55%, #bf6a3c 100%);
}
.dizimo-admin-body .dizimo-sidebar-brand h1,
.dizimo-admin-body .dizimo-admin-header h2,
.dizimo-admin-body .dizimo-admin-card h3 {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
@media (max-width: 900px) {
    .dizimo-admin-body .dizimo-admin-sidebar nav {
        display: grid;
    }
}

/* Paleta institucional unificada — ações administrativas e públicas. */
.dizimo-admin-body .dizimo-btn-primary,
.dizimo-admin-body button.dizimo-btn-primary,
.dizimo-admin-body input[type="submit"].dizimo-btn-primary,
.dizimo-page .dizimo-btn-primary,
.dizimo-page button.dizimo-btn-primary,
.dizimo-page input[type="submit"].dizimo-btn-primary {
  background: #981b45;
  color: #fff;
  border-color: #981b45;
  box-shadow: 0 6px 16px rgba(152,27,69,.13);
}
.dizimo-admin-body .dizimo-btn-primary:hover,
.dizimo-admin-body button.dizimo-btn-primary:hover,
.dizimo-page .dizimo-btn-primary:hover,
.dizimo-page button.dizimo-btn-primary:hover {
  background: #771334;
  border-color: #771334;
}
.dizimo-admin-body .dizimo-actions-cell a,
.dizimo-admin-body .dizimo-actions-cell button,
.dizimo-admin-body .dizimo-inline-link,
.dizimo-page .dizimo-inline-link {
  color: #981b45;
}
.dizimo-admin-body .dizimo-btn-light,
.dizimo-page .dizimo-btn-light {
  color: #981b45;
  border-color: #eadfe4;
}
.dizimo-admin-body a:focus-visible,
.dizimo-admin-body button:focus-visible,
.dizimo-page a:focus-visible,
.dizimo-page button:focus-visible {
  outline: 3px solid rgba(152,27,69,.33);
  outline-offset: 2px;
}

/* Primeira devolução apresentada após o cadastro pastoral. */
.dizimo-first-payment{margin:24px 0;padding:24px;background:#f9f5f6;border:1px solid #eddde3;border-radius:16px}
.dizimo-first-payment h2{font-size:clamp(22px,3vw,30px);margin:8px 0 10px;color:#12273d}
.dizimo-first-payment form{display:grid;gap:12px;margin:18px 0}
.dizimo-first-payment form label{margin:0}
.dizimo-first-payment .dizimo-btn{justify-self:start}
.dizimo-first-payment .dizimo-muted{font-size:13px;line-height:1.6}
@media(max-width:560px){.dizimo-first-payment{padding:18px}.dizimo-first-payment .dizimo-btn{width:100%}}

/* QR Code PIX renderizado localmente, sem serviços externos. */
.dizimo-page .dizimo-qr-box {
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    background:#fff;
    border:1px solid #e8dde2;
    border-radius:16px;
    margin:20px auto;
    padding:20px;
    max-width:340px;
    min-height:180px;
}
.dizimo-page .dizimo-qr-code {width:100%;max-width:285px;}
.dizimo-page .dizimo-qr-code svg {width:100%;height:auto;display:block;background:white;image-rendering:pixelated;}
.dizimo-page .dizimo-qr-box [hidden] {display:none !important;}

/* Formulário pastoral: seleção legível, alinhada e responsiva. */
.dizimo-admin-body .dizimo-pastoral-form {max-width:1000px;width:100%}
.dizimo-admin-body .dizimo-pastoral-form .dizimo-form-row {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px;row-gap:4px}
.dizimo-admin-body .dizimo-pastoral-form .dizimo-form-row > div {min-width:0}
.dizimo-admin-body .dizimo-pastoral-form .dizimo-form-row > .wide {grid-column:1/-1}
.dizimo-admin-body .dizimo-pastoral-form .dizimo-check-row {
 display:flex !important;align-items:center;justify-content:flex-start;
 gap:12px;width:100%;margin:0;padding:12px 14px;
 border:1px solid #ede8e9;background:#fbfafb;border-radius:10px;
 font-size:13px;font-weight:600;cursor:pointer;
}
.dizimo-admin-body .dizimo-pastoral-form .dizimo-check-row input[type=checkbox] {
 appearance:auto;-webkit-appearance:checkbox;display:block;flex:0 0 18px;
 width:18px !important;height:18px !important;min-height:0 !important;
 margin:0 !important;padding:0 !important;accent-color:#981b45;box-shadow:none;
}
.dizimo-admin-body .dizimo-pastoral-form .dizimo-check-row span {flex:1;min-width:0}
.dizimo-admin-body .dizimo-pastoral-form .dizimo-checkbox-panel {margin:18px 0}
.dizimo-admin-body .dizimo-pastoral-form .dizimo-sacraments-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0 24px}
@media(max-width:640px){
 .dizimo-admin-body .dizimo-pastoral-form .dizimo-form-row,
 .dizimo-admin-body .dizimo-pastoral-form .dizimo-sacraments-grid {grid-template-columns:minmax(0,1fr)}
}
