/*
 * Sistema de Dizimo Paroquial — Design System CSS
 * Versao: 1.1.42
 * Mobile-first | WCAG AA | Acessivel para idosos
 * -----------------------------------------------
 */

/* ============================================================
   1. CSS VARIABLES (Design Tokens)
   ============================================================ */
:root {
    --dz-bg:           #f1f0e8;
    --dz-panel:        #f8f6ef;
    --dz-line:         #ddbeb4;
    --dz-ink:          #251d12;
    --dz-sub:          #5a4e44;
    --dz-brand:        #1687b8;
    --dz-brand-dark:   #0f6d98;
    --dz-accent:       #25b8d1;
    --dz-green:        #2f9154;
    --dz-green-light:  #67bb7d;
    --dz-gold:         #c9a800;
    --dz-brown:        #944433;
    --dz-error:        #b42318;
    --dz-error-bg:     #fff1f2;
    --dz-error-border: #fecdd3;
    --dz-success:      #166534;
    --dz-success-bg:   #ecfdf3;
    --dz-success-border:#86efac;
    --dz-white:        #ffffff;
    --dz-border:       #d8deea;

    /* Typography */
    --dz-font:         "Segoe UI", "Trebuchet MS", Arial, sans-serif;
    --dz-font-base:    15px;
    --dz-font-sm:      13px;
    --dz-font-xs:      12px;
    --dz-font-xxs:     11px;

    /* Spacing */
    --dz-gap:          12px;
    --dz-gap-sm:       8px;
    --dz-gap-xs:       6px;
    --dz-radius:       12px;
    --dz-radius-sm:    8px;

    /* Touch targets (WCAG 2.5.5 — min 44px) */
    --dz-touch:        44px;
    --dz-touch-sm:     38px;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

.dizimo-portal {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 10px;
    font-family: var(--dz-font);
    font-size: var(--dz-font-base);
    color: var(--dz-ink);
    background: var(--dz-bg);
    overflow-x: hidden;
    line-height: 1.5;
}

.dizimo-portal h1 { font-size: clamp(20px, 4vw, 28px); margin: 0 0 12px; color: #1a2a3d; line-height: 1.2; }
.dizimo-portal h2 { font-size: clamp(17px, 3.2vw, 22px); margin: 0 0 10px; color: #25324a; line-height: 1.25; }
.dizimo-portal h3 { font-size: clamp(15px, 2.6vw, 18px); margin: 0 0 8px; color: #2f3a52; line-height: 1.3; }
.dizimo-portal h4 { font-size: clamp(14px, 2vw, 16px); margin: 0 0 6px; color: #1f2a44; }
.dizimo-portal p  { margin: 0 0 8px; color: var(--dz-sub); }
.dizimo-portal a  { color: var(--dz-brand); }

/* ============================================================
   3. LAYOUT — SHELL
   ============================================================ */
.dizimo-dashboard-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: var(--dz-gap);
    align-items: start;
}

.dizimo-main-board {
    background: var(--dz-bg);
    border: 1px solid var(--dz-line);
    border-radius: var(--dz-radius);
    padding: 12px;
    min-width: 0;
}

/* ============================================================
   4. TOPBAR
   ============================================================ */
.dizimo-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(90deg, #1687b8, #25b8d1);
    border-radius: var(--dz-radius);
    color: #fff;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.dizimo-topbar h2 {
    color: #fff;
    margin: 0;
    font-size: clamp(16px, 3vw, 20px);
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dizimo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--dz-touch);
    min-width: 44px;
    padding: 0 16px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: var(--dz-font-sm);
    background: rgba(37,29,18,.18);
    border: 1px solid rgba(241,240,232,.35);
    border-radius: 10px;
    flex-shrink: 0;
    white-space: nowrap;
}

.dizimo-link:hover { background: rgba(37,29,18,.28); }

/* ============================================================
   5. SIDE MENU (Desktop)
   ============================================================ */
.dizimo-metric-rail {
    background: var(--dz-bg);
    border: 1px solid var(--dz-line);
    border-radius: var(--dz-radius);
    padding: 10px;
    position: sticky;
    top: 10px;
    align-self: start;
    max-height: none;
    overflow: visible;
}

.dizimo-mini-menu { margin-bottom: 12px; }

.dizimo-mini-menu .dizimo-menu-section {
    display: block;
    margin: 12px 0 6px;
    padding: 7px 10px;
    border-radius: var(--dz-radius-sm);
    font-size: var(--dz-font-xxs);
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.dizimo-mini-menu .dizimo-menu-section.is-dizimo {
    background: #edf7fb;
    color: #0d6f96;
    border: 1px solid #c7e5f0;
}

.dizimo-mini-menu .dizimo-menu-section.is-caixa {
    background: #eef7ef;
    color: #1d6d44;
    border: 1px solid #cfe7d7;
}

.dizimo-mini-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #23324d;
    background: var(--dz-white);
    border: 1px solid var(--dz-border);
    border-radius: var(--dz-radius-sm);
    padding: 9px 11px;
    margin-bottom: 5px;
    font-weight: 700;
    font-size: var(--dz-font-xs);
    min-height: var(--dz-touch-sm);
    transition: background .15s, border-color .15s;
}

.dizimo-mini-menu a.dizimo-menu-link-dizimo { border-left: 4px solid #28a7c9; }
.dizimo-mini-menu a.dizimo-menu-link-caixa   { border-left: 4px solid #4ca56a; background: #fbfefb; }
.dizimo-mini-menu .dashicons               { color: var(--dz-brand); font-size: 16px; width: 16px; height: 16px; line-height: 1; flex-shrink: 0; }
.dizimo-mini-menu a:hover                  { background: #ebf7fb; border-color: #b0d9e8; }
.dizimo-mini-menu a.dizimo-menu-link-caixa:hover { background: #eef8f0; }

.dizimo-mini-menu a.active {
    background: linear-gradient(135deg, #1687b8, #25b8d1);
    border-color: #1687b8;
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(22,135,184,.25);
}

.dizimo-mini-menu a.dizimo-menu-link-caixa.active {
    background: linear-gradient(135deg, #2f9154, #67bb7d);
    border-color: #2f9154;
    box-shadow: 0 6px 14px rgba(47,145,84,.25);
}

.dizimo-mini-menu a.active .dashicons { color: #ffffff; }

/* ============================================================
   6. RAIL PANELS & KPI
   ============================================================ */
.dizimo-rail-panel {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid var(--dz-border);
    border-radius: 10px;
    background: var(--dz-white);
}

.dizimo-rail-panel h3 { margin: 0 0 8px; font-size: var(--dz-font-sm); color: #1f2a44; }
.dizimo-rail-panel p  { margin: 0 0 8px; font-size: var(--dz-font-xs); color: #64748b; }

.dizimo-kpi {
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #1687b8, #25b8d1);
    color: #fff;
    box-shadow: 0 6px 12px rgba(22,135,184,.2);
}

.dizimo-kpi h3          { margin: 0; font-size: var(--dz-font-xxs); text-transform: uppercase; letter-spacing: .05em; opacity: .9; }
.dizimo-kpi p.metric    { margin: 4px 0 0; font-size: 24px; font-weight: 800; line-height: 1.1; color: #fff; }

.dizimo-kpi-premium {
    background: linear-gradient(135deg, #eade25, #b5aa84);
    color: #251d12;
    box-shadow: 0 8px 16px rgba(234,222,37,.28);
    border: 1px solid rgba(37,29,18,.18);
}

.dizimo-kpi-premium h3,
.dizimo-kpi-premium p.metric { color: #251d12; opacity: 1; }

.dizimo-kpi-premium .premium-sub {
    display: block;
    margin-top: 4px;
    font-size: var(--dz-font-xxs);
    font-weight: 700;
    color: #4d412f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================================
   7. BUTTONS & CHIPS
   ============================================================ */
.dizimo-form button,
button.dizimo-btn,
.dizimo-chip-link,
.dizimo-chip-muted,
.dizimo-status-button,
.dizimo-danger-button,
.dizimo-table-search button,
.dizimo-filters button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--dz-touch);
    padding: 0 16px;
    border-radius: var(--dz-radius-sm);
    font-weight: 700;
    font-size: var(--dz-font-sm);
    cursor: pointer;
    border: none;
    transition: transform .12s, box-shadow .18s, filter .18s;
    white-space: nowrap;
    text-decoration: none;
}

.dizimo-form button,
button.dizimo-btn,
.dizimo-filters button,
.dizimo-table-search button {
    background: linear-gradient(135deg, var(--dz-brand), #4368e0);
    color: #fff;
}

.dizimo-form button:hover,
.dizimo-filters button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(22,135,184,.28);
    filter: brightness(1.04);
}

.dizimo-form button:active { transform: translateY(0); }

.dizimo-chip-link {
    background: linear-gradient(135deg, #547b7c, #3d6265) !important;
    color: #fff !important;
    border: none !important;
    text-decoration: none !important;
}

.dizimo-chip-link:hover { filter: brightness(1.08); box-shadow: 0 6px 14px rgba(0,0,0,.18); }

.dizimo-chip-muted {
    background: #f4f7f8 !important;
    border: 1px solid #dae5e7 !important;
    color: #607176 !important;
}

.dizimo-chip-muted:hover { background: #e8eef0 !important; border-color: #c0ced0 !important; }

.dizimo-chip-danger {
    background: #fff1f2 !important;
    border: 1.5px solid #fca5a5 !important;
    color: #b91c1c !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--dz-touch);
    padding: 0 16px;
    border-radius: var(--dz-radius-sm);
    font-weight: 700;
    font-size: var(--dz-font-sm);
    cursor: pointer;
    transition: transform .12s, box-shadow .18s, filter .18s;
    white-space: nowrap;
}

.dizimo-chip-danger:hover { background: #fee2e2 !important; border-color: #f87171 !important; }

.dizimo-status-button {
    background: var(--dz-success-bg);
    color: var(--dz-success);
    border: 1px solid var(--dz-success-border);
}

.dizimo-status-button.is-blocked {
    background: #fff7ed;
    color: #9a3412;
    border-color: #fdba74;
}

.dizimo-danger-button {
    background: var(--dz-error-bg);
    color: var(--dz-error);
    border: 1px solid var(--dz-error-border);
}

.dizimo-danger-button:hover { background: #ffe4e6; }

/* Small chips (tags/badges links) — still accessible */
.dizimo-campaign-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--dz-touch-sm);
    padding: 0 12px;
    border-radius: var(--dz-radius-sm);
    text-decoration: none;
    background: #f2f7f8;
    border: 1px solid #d6e5e8;
    color: #567377;
    font-size: var(--dz-font-xs);
    font-weight: 700;
}

/* ============================================================
   8. FORMS
   ============================================================ */
.dizimo-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
    color: #243b53;
    font-size: var(--dz-font-sm);
}

.dizimo-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.dizimo-form select,
.dizimo-form textarea {
    width: 100%;
    min-height: var(--dz-touch);
    padding: 10px 12px;
    border: 1.5px solid #c8d1df;
    border-radius: var(--dz-radius-sm);
    margin-bottom: 12px;
    background: var(--dz-white);
    font-size: var(--dz-font-base);
    font-family: var(--dz-font);
    color: var(--dz-ink);
    box-sizing: border-box;
    transition: border-color .18s, box-shadow .18s, transform .12s;
    -webkit-appearance: none;
    appearance: none;
}

.dizimo-form textarea {
    min-height: 100px;
    resize: vertical;
}

.dizimo-form input:focus,
.dizimo-form select:focus,
.dizimo-form textarea:focus {
    border-color: var(--dz-accent);
    box-shadow: 0 0 0 3px rgba(37,184,209,.18);
    outline: none;
    transform: translateY(-1px);
}

.dizimo-form input[type="checkbox"],
.dizimo-form input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--dz-brand);
    cursor: pointer;
    margin: 0;
}

.dizimo-form small,
.dizimo-month-grid-card .dizimo-help-text {
    margin-top: 10px;
    margin-bottom: 0;
}

.dizimo-help-text {
    display: block;
    margin: 6px 0 10px;
    font-size: var(--dz-font-xs);
    line-height: 1.45;
    color: #5f6f88;
    font-weight: 500;
}
.dizimo-form .dizimo-help-text {
    margin-top: -8px;
}

.dizimo-form-two-col  { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.dizimo-form-top-gap  { margin-top: 12px; }
.dizimo-form-bottom-gap { margin-bottom: 18px; }
.dizimo-grid-full     { grid-column: 1 / -1; }
.dizimo-form-section {
    grid-column: 1 / -1;
    margin: 4px 0 8px;
    padding-top: 10px;
    border-top: 1px solid #e7edf3;
    color: #314c58;
    font-size: var(--dz-font-xs);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ============================================================
   9. NOTES / ALERTS
   ============================================================ */
.dizimo-note {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: var(--dz-font-sm);
    line-height: 1.5;
    background: #ebf7fb;
    border: 1px solid #9ed9e7;
    color: #0f5674;
}

.dizimo-error {
    background: var(--dz-error-bg);
    border-color: var(--dz-error-border);
    color: var(--dz-error);
}

/* ============================================================
   10. PANELS & CARDS
   ============================================================ */
.dizimo-panel {
    background: var(--dz-panel);
    border: 1px solid var(--dz-line);
    border-radius: var(--dz-radius);
    padding: 14px;
    margin-bottom: 12px;
}

.dizimo-panel h3 { margin: 0 0 8px; color: #2f3a52; font-size: var(--dz-font-base); }
.dizimo-panel p  { color: var(--dz-sub); font-size: var(--dz-font-sm); }

.dizimo-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e4eaf3;
    flex-wrap: wrap;
}

.dizimo-panel-head-info h3 { margin: 0; font-size: var(--dz-font-base); color: #1f2a44; }
.dizimo-panel-head-info span { font-size: var(--dz-font-xs); color: #6b7a97; display: block; margin-top: 2px; }

/* View tabs (Usuarios / Permissoes / Relatorio) */
.dizimo-view-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #e2e8f2;
    margin: 0 0 20px;
    padding: 0;
}

.dizimo-view-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #5d6f88 !important;
    text-decoration: none !important;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    border-radius: 6px 6px 0 0;
    transition: color .15s, border-color .15s, background .15s;
    white-space: nowrap;
    background: transparent !important;
}

.dizimo-view-tab:hover {
    color: #1687b8 !important;
    background: #f0f7fa !important;
}

.dizimo-view-tab.is-active {
    color: #1687b8 !important;
    border-bottom-color: #1687b8;
    background: #f0f7fa !important;
}

.dizimo-view-tab .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.dizimo-panel-head-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* Config cards */
.dizimo-config-card {
    background: var(--dz-white);
    border: 1px solid var(--dz-border);
    border-radius: var(--dz-radius);
    padding: 14px;
}

.dizimo-config-card > h4 {
    margin: 0 0 12px;
    padding: 9px 12px;
    border-radius: var(--dz-radius-sm);
    border: 1px solid var(--dz-border);
    background: linear-gradient(135deg, #f4fbff, #ecf5fb);
    color: #184364;
    font-size: var(--dz-font-sm);
    font-weight: 800;
}

.dizimo-config-card textarea { min-height: 88px; }
.dizimo-config-card textarea[readonly] { background: #f8fafc; color: #475569; }
.dizimo-config-card-top-gap { margin-top: 14px; }

/* Hero panels */
.dizimo-hero-panel {
    background: var(--dz-white);
    border: 1px solid var(--dz-border);
    border-radius: var(--dz-radius);
    padding: 14px;
}

.dizimo-hero-title {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.dizimo-hero-title h4,
.dizimo-side-card h4,
.dizimo-pay-panel h4 { margin: 0; font-size: var(--dz-font-sm); color: #1f2a44; }

.dizimo-hero-title p,
.dizimo-side-card p,
.dizimo-pay-panel p { margin: 3px 0 0; font-size: var(--dz-font-xs); color: #6b7280; }

.dizimo-side-stack { display: grid; gap: 14px; }

.dizimo-side-card {
    background: var(--dz-white);
    border: 1px solid var(--dz-border);
    border-radius: var(--dz-radius);
    padding: 14px;
}

/* Pill */
.dizimo-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #edf7fb;
    border: 1px solid #cfe7f0;
    color: #0d5f82;
    font-size: var(--dz-font-xs);
    font-weight: 700;
    white-space: nowrap;
}

/* ============================================================
   11. TABLES
   ============================================================ */
.dizimo-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
    border: 1px solid var(--dz-border);
    background: var(--dz-white);
}

.dizimo-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--dz-white);
    font-size: var(--dz-font-sm);
}

.dizimo-table th {
    padding: 11px 13px;
    background: #f0f4f8;
    color: #243b53;
    font-size: var(--dz-font-xs);
    font-weight: 700;
    text-align: left;
    border-bottom: 1px solid #dde5ef;
    white-space: nowrap;
}

.dizimo-table tbody td {
    padding: 11px 13px;
    border-bottom: 1px solid #edf1f7;
    color: var(--dz-ink);
    font-size: var(--dz-font-sm);
    vertical-align: middle;
    min-height: var(--dz-touch-sm);
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.dizimo-table tbody tr:last-child td { border-bottom: none; }
.dizimo-table tbody tr:hover { background: #f5f8fc; }

/* Badges */
.dizimo-status-badge,
.dizimo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: var(--dz-font-xs);
    font-weight: 700;
    border: 1px solid transparent;
    white-space: nowrap;
}

.dizimo-status-badge.ok  { background: var(--dz-success-bg); color: var(--dz-success); border-color: var(--dz-success-border); }
.dizimo-status-badge.warn { background: var(--dz-error-bg); color: var(--dz-error); border-color: var(--dz-error-border); }

/* Forma payment badges */
.forma-pix          { background: #e6f5ec; color: #1d6d44; border: 1px solid #a3d9b5; border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 700; }
.forma-transferencia { background: #eaf0fb; color: #1e4fa0; border: 1px solid #adc3ef; border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 700; }
.forma-dinheiro     { background: #fdf4e6; color: #855a0a; border: 1px solid #e8cfa0; border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 700; }

/* Mobile cards pattern */
.dizimo-mobile-cards,
.dizimo-users-table {
    table-layout: auto;
}

/* ============================================================
   12. PAGINATION
   ============================================================ */
.dizimo-pagination {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 12px;
    flex-wrap: wrap;
}

.dizimo-pagination a,
.dizimo-pagination span {
    min-height: var(--dz-touch-sm);
    padding: 6px 12px;
    border: 1px solid #cfd8e6;
    border-radius: var(--dz-radius-sm);
    background: var(--dz-white);
    color: #23324d;
    text-decoration: none;
    font-size: var(--dz-font-xs);
    display: inline-flex;
    align-items: center;
}

.dizimo-pagination .current {
    background: #dff3f9;
    border-color: #25b8d1;
    color: #0d5f82;
    font-weight: 700;
}

/* ============================================================
   13. FILTERS & TOOLBAR
   ============================================================ */
.dizimo-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 10px;
    align-items: end;
}

.dizimo-filters label  { display: block; margin-bottom: 4px; font-size: var(--dz-font-sm); font-weight: 700; color: #4f5f79; }
.dizimo-filters select,
.dizimo-filters input  { width: 100%; min-height: var(--dz-touch); padding: 10px 12px; border: 1.5px solid #c8d1df; border-radius: var(--dz-radius-sm); font-size: var(--dz-font-sm); }

.dizimo-rail-filters   { display: grid; gap: 10px; }

.dizimo-filters-inline {
    display: flex;
    gap: 8px;
    align-items: stretch;
    flex-wrap: nowrap;
    margin-bottom: 12px;
}

.dizimo-filters-inline input,
.dizimo-filters-inline select {
    flex: 1;
    min-width: 0;
    min-height: var(--dz-touch);
    box-sizing: border-box;
    margin: 0;
    font-size: var(--dz-font-sm);
    padding: 10px 12px;
    border: 1.5px solid #c8d1df;
    border-radius: var(--dz-radius-sm);
}

.dizimo-filters-inline button,
.dizimo-filters-inline a.dizimo-chip-muted {
    flex-shrink: 0;
    min-height: var(--dz-touch);
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.dizimo-filters-inline .fin-search { flex: 2; }

.dizimo-contrib-filters {
    display: grid;
    grid-template-columns: minmax(150px, 190px) minmax(280px, 1fr) auto;
    gap: 8px;
    align-items: stretch;
    grid-auto-rows: 48px;
    width: 100%;
}

.dizimo-contrib-filters.dizimo-contrib-filters-admin {
    grid-template-columns: minmax(145px, 185px) minmax(165px, 220px) minmax(260px, 1fr) auto;
}

.dizimo-contrib-filters select,
.dizimo-contrib-filters input,
.dizimo-contrib-filters button {
    width: 100%;
    min-height: 48px;
    height: 48px;
    margin: 0;
    line-height: 1.2;
    box-sizing: border-box;
}
.dizimo-contrib-filters input[type="text"],
.dizimo-contrib-filters select {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.dizimo-portal .dizimo-contrib-filters input[type="text"],
.dizimo-portal .dizimo-contrib-filters select,
.dizimo-portal .dizimo-contrib-filters button {
    min-height: 48px !important;
    height: 48px !important;
}

.dizimo-contrib-filters .dz-contrib-control:focus,
.dizimo-contrib-filters .dz-contrib-control:active {
    transform: none !important;
}

.dizimo-contrib-filters .fin-search.dz-contrib-control {
    margin-bottom: 0 !important;
}

.dizimo-contrib-filters button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding-inline: 16px;
}

.dizimo-contrib-actions .dizimo-chip-link,
.dizimo-contrib-actions button {
    min-height: var(--dz-touch);
    height: var(--dz-touch);
    min-width: 132px;
    justify-content: center;
}

.dizimo-kpi-inline.dz-contrib-summary {
    margin: 0 0 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.dz-contrib-summary-card {
    min-height: 86px;
}

.dizimo-contrib-filters .dz-contrib-control {
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    box-sizing: border-box;
    align-self: stretch;
}

.dizimo-contrib-filters select.dz-contrib-control,
.dizimo-contrib-filters input.dz-contrib-control {
    padding: 0 12px !important;
    line-height: 1.2 !important;
}

.dizimo-contrib-filters button.dz-contrib-control {
    padding: 0 18px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1 !important;
}

.dz-contrib-footnote {
    margin: 8px 0 0;
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
}

.dz-contrib-ajax-panel.is-loading {
    opacity: .65;
    transition: opacity .15s ease;
}

@media print {
    .dz-contrib-summary {
        display: none !important;
    }

    .dz-contrib-footnote {
        margin-top: 6px;
        color: #4b5563;
    }
}

.dizimo-toolbar-slim {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.dizimo-toolbar-slim-top-gap { margin-top: 18px; }

.dizimo-toolbar-actions       { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dizimo-toolbar-actions-top   { margin-top: 14px; }
.dizimo-toolbar-actions-qr    { margin: 8px 0 10px; }
.dizimo-table-toolbar-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dizimo-print-sheet-actions   { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

/* List filters row */
.dizimo-list-filters {
    display: grid;
    grid-template-columns: 1.1fr .8fr .8fr auto auto;
    gap: 8px;
    align-items: end;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid var(--dz-border);
    border-radius: 10px;
    background: var(--dz-white);
}

.dizimo-list-filters .dizimo-chip-muted {
    text-decoration: none;
    text-align: center;
    min-height: var(--dz-touch);
    padding: 0 12px;
}

/* ============================================================
   14. TOP HIGHLIGHT & KPI GRID
   ============================================================ */
.dizimo-top-highlight {
    margin-bottom: 12px;
    border: 2px solid #7fd0ea;
    border-radius: var(--dz-radius);
    background: linear-gradient(115deg, #0b5f8c 0%, #1687b8 45%, #25b8d1 100%);
    color: #ffffff;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 12px 24px rgba(10,96,141,.35);
}

.dizimo-top-highlight h3    { margin: 0; font-size: var(--dz-font-xs); text-transform: uppercase; letter-spacing: .08em; opacity: .95; }
.dizimo-top-highlight strong { display: block; margin-top: 4px; font-size: clamp(24px, 4vw, 34px); font-weight: 800; line-height: 1.1; }
.dizimo-top-highlight p      { margin: 4px 0 0; color: rgba(255,255,255,.92); font-size: var(--dz-font-sm); }

.dizimo-top-highlight .dizimo-pill {
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.38);
    color: #ffffff;
    font-size: var(--dz-font-xs);
    padding: 8px 12px;
    min-height: var(--dz-touch-sm);
}

.dizimo-top-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.dizimo-top-kpi-grid.four-col {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dizimo-kpi-emphasis {
    border: 2px solid rgba(255,255,255,.2);
    box-shadow: 0 10px 18px rgba(22,135,184,.3);
}

/* ============================================================
   15. DASHBOARD HERO
   ============================================================ */
.dizimo-dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, .85fr);
    gap: 14px;
    align-items: stretch;
}

.dizimo-area-chart {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(237,247,251,.6), rgba(255,255,255,.95));
}

/* ============================================================
   16. COMPACT CARDS & INSIGHTS
   ============================================================ */
.dizimo-compact-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.dizimo-compact-grid.three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dizimo-compact-grid.two-col   { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.dizimo-compact-card {
    border: 1px solid #cfd9ea;
    border-radius: var(--dz-radius);
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    box-shadow: 0 4px 14px rgba(15,35,64,.06);
    padding: 14px;
    display: grid;
    gap: 9px;
}

.dizimo-compact-card span   { font-size: var(--dz-font-xxs); text-transform: uppercase; letter-spacing: .06em; color: #4b5f7e; font-weight: 700; }
.dizimo-compact-card strong { font-size: clamp(20px, 2vw, 28px); color: #102a4f; line-height: 1.08; font-weight: 800; }
.dizimo-compact-card small  { display: block; font-size: var(--dz-font-xs); color: #4f6078; line-height: 1.35; }

.dizimo-compact-meta  { display: flex; justify-content: space-between; gap: 8px; font-size: var(--dz-font-xs); color: #36485f; font-weight: 600; }
.dizimo-compact-track { height: 9px; border-radius: 999px; background: #dde6f1; overflow: hidden; }
.dizimo-compact-fill  { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #f0b58f 0%, #6eb391 100%); }

.dizimo-insight-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }

.dizimo-insight-card {
    position: relative;
    border: 1px solid #cfd9ea;
    border-radius: var(--dz-radius);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 4px 14px rgba(15,35,64,.06);
    padding: 16px;
    overflow: hidden;
}

.dizimo-insight-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, #1a7da5 0%, #28b8cc 100%);
}

.dizimo-insight-card span   { display: block; font-size: var(--dz-font-xxs); text-transform: uppercase; letter-spacing: .06em; color: #4b5f7e; font-weight: 700; margin-bottom: 6px; }
.dizimo-insight-card strong { display: block; font-size: clamp(28px, 2.5vw, 36px); line-height: 1.05; color: #102a4f; font-weight: 800; }
.dizimo-insight-card small  { display: block; margin-top: 4px; font-size: var(--dz-font-xs); color: #4f6078; line-height: 1.35; }

/* ============================================================
   17. CHARTS
   ============================================================ */
.dizimo-chart-row   { margin-bottom: 12px; }
.dizimo-chart-label { display: flex; justify-content: space-between; gap: 12px; font-size: var(--dz-font-xs); color: #45556c; margin-bottom: 5px; }
.dizimo-chart-track { height: 12px; border-radius: 999px; background: #e4ecf3; overflow: hidden; }
.dizimo-chart-fill  { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #1687b8 0%, #25b8d1 100%); }

/* Vertical bar chart */
.dizimo-chart-vertical {
    height: 190px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
    padding: 8px 4px 2px;
}

.dizimo-vbar         { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.dizimo-vbar-track   { width: 100%; max-width: 36px; height: 140px; border-radius: 10px; background: #e5ebf2; display: flex; align-items: flex-end; overflow: hidden; }
.dizimo-vbar-fill    { width: 100%; min-height: 6px; border-radius: 10px; background: linear-gradient(180deg, #25b8d1 0%, #1687b8 100%); }
.dizimo-vbar-label   { font-size: 10px; color: #4b5a73; text-align: center; white-space: nowrap; }
.dizimo-vbar-value   { font-size: 10px; font-weight: 700; color: #1e3a8a; text-align: center; }

/* Donut chart */
.dizimo-donut-layout { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.dizimo-donut {
    width: 160px; height: 160px;
    border-radius: 50%;
    position: relative;
    flex: 0 0 auto;
    border: 1px solid var(--dz-border);
}

.dizimo-donut-hole {
    position: absolute;
    inset: 24px;
    border-radius: 50%;
    background: #f8f6ef;
    border: 1px solid #e3d7d1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: var(--dz-font-xxs);
    font-weight: 700;
    color: #5a4a3b;
    line-height: 1.2;
    padding: 6px;
}

.dizimo-donut-legend     { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 200px; }
.dizimo-donut-legend li  { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: var(--dz-font-xs); }
.dizimo-dot              { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; }

/* Payment bars */
.dizimo-payment-bar-list  { margin-top: 10px; display: grid; gap: 8px; }
.dizimo-payment-bar-item  { opacity: .45; transition: opacity .2s; }
.dizimo-payment-bar-item.is-top { opacity: 1; }

.dizimo-payment-bar-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: var(--dz-font-xxs);
    color: #43536d;
    margin-bottom: 4px;
}

.dizimo-payment-bar-meta strong { font-size: var(--dz-font-xxs); font-weight: 700; color: #1e3659; line-height: 1.2; }
.dizimo-payment-bar-track { height: 6px; border-radius: 999px; background: #e1e9f3; overflow: hidden; }
.dizimo-payment-bar-fill  { height: 100%; border-radius: 999px; background: #b8c6da; }
.dizimo-payment-bar-item.is-top .dizimo-payment-bar-fill { box-shadow: 0 1px 8px rgba(33,144,177,.35); }

/* ============================================================
   18. KPI INLINE & BOTTOM GRID
   ============================================================ */
.dizimo-kpi-inline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.dizimo-kpi-inline div    { border: 1px solid #e5ebf2; border-radius: 10px; padding: 12px; background: #f8fbfd; }
.dizimo-kpi-inline span   { display: block; font-size: var(--dz-font-xs); color: #6b7280; margin-bottom: 4px; }
.dizimo-kpi-inline strong { font-size: 20px; color: #1f2a44; }

.dizimo-micro-row      { margin-top: 10px; }
.dizimo-micro-row:first-child { margin-top: 0; }
.dizimo-micro-row-head { display: flex; justify-content: space-between; gap: 10px; font-size: var(--dz-font-xs); color: #475569; margin-bottom: 4px; }

.dizimo-bottom-grid {
    display: grid;
    grid-template-columns: .92fr 1.08fr;
    gap: 14px;
    margin-top: 14px;
}

/* ============================================================
   19. PAY PANELS & BANK CARDS
   ============================================================ */
.dizimo-pay-grid  { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }

.dizimo-pay-panel {
    background: var(--dz-white);
    border: 1px solid var(--dz-border);
    border-radius: var(--dz-radius);
    padding: 14px;
}

.dizimo-bank-card {
    border: 1px solid var(--dz-border);
    border-radius: var(--dz-radius);
    padding: 14px;
    background: linear-gradient(180deg, #ffffff, #f8fbfd);
}

.dizimo-bank-card strong { display: block; margin-bottom: 8px; color: #1f2a44; font-size: var(--dz-font-sm); }
.dizimo-bank-meta        { display: grid; gap: 4px; font-size: var(--dz-font-xs); color: #4b5563; }
.dizimo-bank-meta span b { color: #1f2a44; }

.dizimo-qr-box {
    border: 1px dashed #cbd5e1;
    border-radius: var(--dz-radius);
    padding: 14px;
    display: grid;
    gap: 8px;
    background: #f8fafc;
}

.dizimo-qr-preview {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 10px;
    background: var(--dz-white);
    border: 1px solid #e2e8f0;
    padding: 8px;
    box-sizing: border-box;
}

/* ============================================================
   20. CONFIG GRIDS & CAMPAIGN CARDS
   ============================================================ */
.dizimo-config-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dizimo-full-row    { grid-column: 1 / -1; }
.dizimo-config-grid-top-gap { margin-top: 14px; }

.dizimo-bank-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dizimo-bank-form-grid .full { grid-column: 1 / -1; }

.dizimo-campaign-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }

.dizimo-campaign-card {
    background: var(--dz-white);
    border: 1px solid var(--dz-border);
    border-radius: var(--dz-radius);
    padding: 14px;
    display: grid;
    gap: 10px;
}

.dizimo-campaign-top   { display: flex; justify-content: space-between; gap: 8px; font-size: var(--dz-font-xs); color: #475569; }
.dizimo-campaign-title { margin: 0; font-size: var(--dz-font-sm); color: #1f2a44; }
.dizimo-campaign-meta  { display: flex; justify-content: space-between; gap: 8px; font-size: var(--dz-font-xxs); color: #64748b; }

/* ============================================================
   21. USER MANAGEMENT
   ============================================================ */
.dizimo-user-management {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

/* full-row fica redundante mas inofensivo */
.dizimo-user-management .dizimo-full-row { grid-column: 1 / -1; }

/* Formulário de usuário — 2 colunas no desktop */
.dizimo-form-user-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}
.dizimo-form-user-grid > div { display: flex; flex-direction: column; }
.dizimo-form-user-grid > div label { margin-bottom: 4px; }
.dizimo-form-user-grid .dizimo-grid-full { grid-column: 1 / -1; }

/* Toggle buttons de Perfil / Status */
.dz-role-toggle {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.dizimo-form .dz-role-toggle .dz-role-btn {
    flex: 1;
    min-width: 140px;
    padding: 10px 16px;
    border-radius: 8px;
    border: 2px solid var(--dz-border);
    background: var(--dz-white);
    color: var(--dz-ink);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
    text-align: center;
}
.dizimo-form .dz-role-toggle .dz-role-btn:hover { border-color: var(--dz-brand); color: var(--dz-brand); }
.dizimo-form .dz-role-toggle .dz-role-btn.is-active { border-color: var(--dz-brand); background: var(--dz-brand); color: #fff; }
/* Status: Ativo = verde, Bloqueado = vermelho */
.dizimo-form .dz-status-toggle .dz-role-active.is-active  { border-color: #16a34a; background: #16a34a; color: #fff; }
.dizimo-form .dz-status-toggle .dz-role-active:hover      { border-color: #16a34a; color: #16a34a; }
.dizimo-form .dz-status-toggle .dz-role-blocked.is-active { border-color: #dc2626; background: #dc2626; color: #fff; }
.dizimo-form .dz-status-toggle .dz-role-blocked:hover     { border-color: #dc2626; color: #dc2626; }

@media (max-width: 900px) {
    .dizimo-form-user-grid { grid-template-columns: 1fr; }
    .dizimo-form .dz-role-toggle .dz-role-btn { min-width: 0; }
}

.dizimo-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 8px;
}

/* Pill toggle — esconde o checkbox nativo e estiliza o label */
.dizimo-checkbox-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1.5px solid var(--dz-border);
    background: var(--dz-white);
    color: var(--dz-muted);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
    text-align: center;
    line-height: 1.3;
    user-select: none;
}
.dizimo-checkbox-item:hover {
    border-color: var(--dz-brand);
    color: var(--dz-brand);
}
.dizimo-checkbox-item:has(input:checked) {
    background: var(--dz-brand);
    border-color: var(--dz-brand);
    color: #fff;
    font-weight: 600;
}
.dizimo-checkbox-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.dizimo-user-search {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin: 10px 0 14px;
}

.dizimo-user-search input { min-width: 220px; flex: 1; }

.dizimo-user-capelas-box {
    margin-top: 6px;
    padding: 14px 16px;
    border: 1px solid #d8e5ec;
    border-radius: 10px;
    background: #f7fbfd;
}

.dizimo-user-capelas-box .dizimo-checkbox-grid { margin-top: 0; }

.dizimo-user-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.dizimo-user-actions       { display: contents; }
.dizimo-user-actions-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    flex-wrap: wrap;
}

/* Users table — layout full-width, sem min-width fixo */
.dizimo-users-table {
    table-layout: auto;
    width: 100%;
}

.dizimo-users-table th {
    white-space: nowrap;
    vertical-align: middle;
    padding: 10px 8px;
}

.dizimo-users-table td {
    white-space: normal;
    vertical-align: middle;
    overflow-wrap: anywhere;
    word-break: break-word;
    padding: 10px 8px;
}

/* Colunas 4-col: Nome/login | Perfil | ● Status | Acoes */
.dizimo-users-table th:nth-child(1),
.dizimo-users-table td:nth-child(1) { width: 44%; }
.dizimo-users-table th:nth-child(2),
.dizimo-users-table td:nth-child(2) { width: 26%; }
.dizimo-users-table th:nth-child(3),
.dizimo-users-table td:nth-child(3) { width: 6%; text-align: center; }
.dizimo-users-table th:nth-child(4),
.dizimo-users-table td:nth-child(4) { width: 24%; }

.dizimo-users-capelas   { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* --- Nome cell --- */
.dz-user-name  { display: block; font-weight: 600; font-size: 13px; }
.dz-user-login { display: block; font-size: 11px; color: var(--dz-muted); margin-top: 1px; }

/* --- Status dot --- */
.dz-status-dot  { display: inline-block; width: 11px; height: 11px; border-radius: 50%; vertical-align: middle; }
.dz-dot-ok   { background: #1a9c4f; box-shadow: 0 0 0 2px #d1fae5; }
.dz-dot-warn { background: #dc2626; box-shadow: 0 0 0 2px #fee2e2; }

/* --- Perfil badge --- */
.dz-perfil-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: #eaf0fb;
    color: #1e4fa0;
    border: 1px solid #adc3ef;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* --- Icon buttons --- */
.dz-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1.5px solid transparent;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    background: transparent;
    transition: opacity .15s, transform .1s;
    flex-shrink: 0;
}
.dz-icon-btn:hover { opacity: .75; transform: scale(1.08); }
.dz-icon-btn:active { transform: scale(.96); }

.dz-icon-btn-edit    { background: var(--dz-brand) !important; border-color: var(--dz-brand) !important; color: #fff !important; }
.dz-icon-btn-block   { background: #fff7ed !important; border-color: #f97316 !important; color: #c2410c !important; }
.dz-icon-btn-unblock { background: #f0fdf4 !important; border-color: #22c55e !important; color: #15803d !important; }
.dz-icon-btn-delete  { background: #fff1f2 !important; border-color: #f43f5e !important; color: #be123c !important; }

.dizimo-capela-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid #cfe1ea;
    background: #eff7fb;
    color: #24566f;
    font-size: var(--dz-font-xs);
    font-weight: 700;
    line-height: 1.2;
}

.dizimo-capela-empty { color: #6b7280; font-size: var(--dz-font-xs); }

/* ============================================================
   22. CHAPEL SELECTOR (multi-chapel)
   ============================================================ */
.dizimo-chapel-selector {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 16px;
    background: #f0f7fa;
    border-bottom: 1px solid #d8e8ed;
}

.dizimo-chapel-selector-label {
    font-size: var(--dz-font-xs);
    color: #6b8da0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.dizimo-chapel-tab {
    padding: 7px 16px;
    border-radius: 20px;
    font-size: var(--dz-font-sm);
    font-weight: 600;
    border: 1px solid #c3d9e4;
    background: var(--dz-white);
    color: var(--dz-brand);
    text-decoration: none;
    min-height: var(--dz-touch-sm);
    display: inline-flex;
    align-items: center;
    transition: all .15s;
}

.dizimo-chapel-tab:hover { background: #e0f2f8; }
.dizimo-chapel-tab.is-active { background: var(--dz-brand); color: var(--dz-white); border-color: var(--dz-brand); }

/* ============================================================
   23. MONTH GRID & SHORTCUTS
   ============================================================ */
.dizimo-month-shortcuts { display: grid; gap: 6px; margin-bottom: 4px; }

.dizimo-month-shortcuts a {
    display: block;
    text-decoration: none;
    text-align: center;
    border: 1px solid #c8d1df;
    border-radius: var(--dz-radius-sm);
    background: var(--dz-white);
    color: #23324d;
    padding: 8px;
    font-size: var(--dz-font-xs);
    font-weight: 700;
    min-height: var(--dz-touch-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dizimo-month-shortcuts a.is-active { background: linear-gradient(135deg, #1687b8, #25b8d1); border-color: #1687b8; color: var(--dz-white); }
.dizimo-month-shortcuts a:hover     { border-color: #25b8d1; background: #ebf7fb; }

.dizimo-month-toggle {
    width: 100%;
    margin: 6px 0 8px;
    border: 1px dashed #9ec6d6;
    border-radius: var(--dz-radius-sm);
    background: #f3fbff;
    color: #0d5f82;
    font-size: var(--dz-font-xs);
    font-weight: 700;
    padding: 10px;
    cursor: pointer;
    min-height: var(--dz-touch-sm);
}

.dizimo-month-select-wrap { margin-bottom: 4px; }

/* Month grid card container */
.dizimo-month-grid-card {
    border: 1px solid #d8deea;
    border-radius: 10px;
    background: #f9fbfe;
    padding: 12px;
}

.dizimo-month-grid-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.dizimo-month-grid-head h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #1f3650;
}

.dizimo-month-grid-year {
    width: 90px;
    padding: 6px 8px;
    border: 1px solid #c7d5e4;
    border-radius: 8px;
    background: #ffffff;
    color: #1f3650;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.dizimo-month-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.dizimo-form .dizimo-month-grid-card > .dizimo-help-text {
    display: block;
    margin-top: 16px !important;
    margin-bottom: 0 !important;
    padding-top: 0;
    line-height: 1.5;
}

/* Month chip — especificidade elevada para sobrescrever estilos do tema */
.dizimo-portal .dizimo-month-chip,
.dizimo-portal button.dizimo-month-chip {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 10px 4px !important;
    border: 1.5px solid #cbd8e7 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    background-image: none !important;
    color: #1f3650 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background .15s, border-color .15s !important;
    min-height: 58px !important;
    text-align: center !important;
    box-shadow: none !important;
    text-shadow: none !important;
    letter-spacing: 0 !important;
    line-height: 1.3 !important;
    width: 100% !important;
}

.dizimo-portal .dizimo-month-chip span {
    display: block !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: #1f3650 !important;
    text-transform: none !important;
}

.dizimo-portal .dizimo-month-chip small {
    display: block !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .03em !important;
    color: #5d6f86 !important;
    line-height: 1.2 !important;
}

.dizimo-portal .dizimo-month-chip.is-paid,
.dizimo-portal button.dizimo-month-chip.is-paid {
    border-color: #61b483 !important;
    background: #eaf8ef !important;
    background-image: none !important;
    color: #177245 !important;
}

.dizimo-portal .dizimo-month-chip.is-paid span  { color: #177245 !important; }
.dizimo-portal .dizimo-month-chip.is-paid small { color: #177245 !important; font-weight: 800 !important; }

.dizimo-portal .dizimo-month-chip.is-selected,
.dizimo-portal button.dizimo-month-chip.is-selected,
.dizimo-portal .dizimo-month-chip.is-selected:hover,
.dizimo-portal button.dizimo-month-chip.is-selected:hover {
    border-color: #1687b8 !important;
    background-color: #1687b8 !important;
    background: linear-gradient(135deg, #1687b8, #25b8d1) !important;
    background-image: linear-gradient(135deg, #1687b8, #25b8d1) !important;
    box-shadow: 0 3px 10px rgba(22,135,184,.35) !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
}

.dizimo-portal .dizimo-month-chip.is-selected span,
.dizimo-portal .dizimo-month-chip.is-selected:hover span  { color: #fff !important; }
.dizimo-portal .dizimo-month-chip.is-selected small,
.dizimo-portal .dizimo-month-chip.is-selected:hover small { color: rgba(255,255,255,.85) !important; }

.dizimo-portal .dizimo-month-chip:hover:not(.is-paid):not(.is-selected),
.dizimo-portal button.dizimo-month-chip:hover:not(.is-paid):not(.is-selected) {
    background: #f0f7fa !important;
    border-color: #9ec6d9 !important;
}

@media (max-width: 560px) {
    .dizimo-month-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ============================================================
   24. DIZIMISTA LOOKUP (Launch Widget)
   ============================================================ */
.dizimo-dizimista-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    background: var(--dz-white);
    border: 1px solid var(--dz-border);
    border-radius: var(--dz-radius-sm);
    padding: 10px 12px;
    margin-bottom: 6px;
    cursor: pointer;
    text-align: left;
    transition: background .15s, border-color .15s;
    min-height: var(--dz-touch);
    font-size: var(--dz-font-sm);
}

.dizimo-dizimista-item strong { color: #1f2a44; font-size: var(--dz-font-sm); }
.dizimo-dizimista-item small  { font-size: var(--dz-font-xs); color: #64748b; }
.dizimo-dizimista-item:hover  { background: #f0f7fa; border-color: #b0d4e3; }

.dizimo-dizimista-item.is-active {
    background: linear-gradient(135deg, #edf7fb, #d8eff8);
    border-color: #1687b8;
    border-left-width: 4px;
}

.dizimo-dizimista-empty { color: #6b7280; font-size: var(--dz-font-sm); text-align: center; padding: 16px 0; }

/* ============================================================
   25. CHAPEL FILTER PILLS
   ============================================================ */
.dizimo-chapel-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }

.dizimo-chapel-filter-btn {
    padding: 7px 16px;
    border-radius: 999px;
    border: 1.5px solid #c8d1df;
    background: var(--dz-white);
    color: #23324d;
    font-size: var(--dz-font-xs);
    font-weight: 700;
    cursor: pointer;
    transition: all .15s;
    min-height: var(--dz-touch-sm);
    display: inline-flex;
    align-items: center;
}

.dizimo-chapel-filter-btn:hover   { background: #ebf7fb; border-color: #25b8d1; }
.dizimo-chapel-filter-btn.is-active { background: linear-gradient(135deg, #1687b8, #25b8d1); border-color: #1687b8; color: var(--dz-white); }

/* ============================================================
   26. LOGIN PAGE
   ============================================================ */
.dizimo-login-screen {
    min-height: 100dvh;
    width: 100%;
    margin: 0;
    padding: 20px 16px;
    box-sizing: border-box;
    background: radial-gradient(circle at top right, #25b8d1 0%, #1687b8 45%, #251d12 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

.dizimo-login-shell {
    width: 100%;
    max-width: 960px;
    min-height: 520px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--dz-white);
    border: 1px solid var(--dz-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 36px rgba(8,23,53,.38);
    animation: dz-fade-up .55s ease both;
}

.dizimo-login-side {
    background: linear-gradient(160deg, #25b8d1 0%, #1687b8 100%);
    color: var(--dz-white);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: dz-slide-left .6s cubic-bezier(.2,.7,.2,1) both;
}

.dizimo-login-side-inner  { width: 100%; max-width: 400px; margin: 0 auto; }
.dizimo-login-side h2     { margin: 0 0 10px; font-size: clamp(22px, 3vw, 32px); line-height: 1.2; }
.dizimo-login-side p      { margin: 0 0 20px; font-size: clamp(14px, 1.6vw, 17px); opacity: .95; }

.dizimo-login-tags        { display: grid; gap: 8px; }

.dizimo-login-tags span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 14px;
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 999px;
    font-size: var(--dz-font-sm);
    font-weight: 700;
}

.dizimo-login-card {
    width: 100%;
    background: var(--dz-white);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    animation: dz-slide-right .6s cubic-bezier(.2,.7,.2,1) .05s both;
    overflow: hidden;
    box-sizing: border-box;
}

.dizimo-login-form-wrap { width: 100%; max-width: none; box-sizing: border-box; }

.dizimo-login-card h2  { margin: 0 0 6px; font-size: 20px; color: #1f2a44; }
.dizimo-login-card p   { margin: 0 0 12px; font-size: var(--dz-font-sm); color: #5b6b84; }

.dizimo-login-access {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
    width: 100%;
    box-sizing: border-box;
}

.dizimo-login-tab {
    background: #f3f6ff;
    border: 1.5px solid #d5def6;
    border-radius: var(--dz-radius-sm);
    padding: 10px;
    font-size: var(--dz-font-sm);
    color: #33415e;
    text-align: center;
    font-weight: 700;
    cursor: pointer;
    min-height: var(--dz-touch);
    width: 100%;
    white-space: nowrap;
    transition: all .18s;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.dizimo-login-tab:hover  { border-color: #25b8d1; background: #ebf7fb; }

.dizimo-login-tab.active {
    background: linear-gradient(135deg, #1687b8, #25b8d1);
    border-color: #1687b8;
    color: var(--dz-white);
    box-shadow: 0 6px 14px rgba(22,135,184,.24);
}

.dizimo-login-tab:focus-visible { outline: 3px solid #1687b8; outline-offset: 2px; }

.dizimo-login-hint { margin: 3px 0 12px; font-size: var(--dz-font-xs); color: #667085; }

.dizimo-login-submit {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: var(--dz-touch) !important;
    margin-top: 8px;
    font-size: var(--dz-font-base) !important;
    font-weight: 700;
    color: var(--dz-white) !important;
    background: linear-gradient(135deg, #1687b8, #25b8d1) !important;
    border: 1px solid #1687b8 !important;
    border-radius: 10px;
    visibility: visible !important;
    opacity: 1 !important;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

/* ============================================================
   27. SOFT PANEL / ANALYTIC HEAD
   ============================================================ */
.dizimo-soft-panel { border: 1px solid var(--dz-border); border-radius: 10px; background: var(--dz-white); padding: 12px; }
.dizimo-soft-panel h4 { margin: 0 0 8px; font-size: var(--dz-font-sm); color: #2f3a52; }
.dizimo-soft-panel p  { margin: 0; font-size: var(--dz-font-xs); color: #6b7280; }

.dizimo-analytic-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.dizimo-analytic-head p { margin: 0; font-size: var(--dz-font-xs); color: #5a6b84; max-width: 720px; }

/* ============================================================
   28. GRID UTILITIES
   ============================================================ */
.dizimo-grid     { display: grid; gap: 12px; }
.dizimo-grid.two-col   { grid-template-columns: 1fr 1fr; }
.dizimo-grid.three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dizimo-grid.four-col  { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dizimo-grid.top-align { align-items: start; }
.dizimo-grid-top-gap   { margin-top: 12px; }
.dizimo-grid-relative  { position: relative; }
.dizimo-span-2 { grid-column: span 2; }
.dizimo-span-3 { grid-column: span 3; }

/* ============================================================
   29. PRINT
   ============================================================ */
.dizimo-screen-only { display: block; }
.dizimo-print-only  { display: none; }
.dizimo-print-header { display: none; margin-bottom: 18px; }

/* Brand bar */
.dizimo-print-header-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #102a4f;
    color: #fff;
    padding: 10px 16px;
    border-radius: 6px 6px 0 0;
    font-weight: 700;
    letter-spacing: .03em;
}
.dizimo-print-brand-name { font-size: 15px; font-weight: 800; letter-spacing: .04em; }
.dizimo-print-brand-date { font-size: 11px; opacity: .85; }

/* Body do cabeçalho */
.dizimo-print-header-body {
    padding: 12px 16px 14px;
    border: 1px solid #c7d9ef;
    border-top: none;
    border-radius: 0 0 6px 6px;
    background: #f5f9ff;
}
.dizimo-print-header-body h2 { margin: 0; font-size: 18px; font-weight: 800; color: #102a4f; }
.dizimo-print-header-body p  { margin: 5px 0 0; font-size: 12px; color: #486581; }

.dizimo-print-meta { margin-top: 6px; font-size: 12px; color: #334e68; display: flex; justify-content: space-between; gap: 12px; }

@media print {
    @page { size: A4 portrait; margin: 12mm; }
    body * { visibility: hidden !important; }
    .dizimo-print-sheet,
    .dizimo-print-sheet * { visibility: visible !important; }
    .dizimo-screen-only { display: none !important; }
    .dizimo-print-only  { display: block !important; }
    .dizimo-print-header { display: block !important; }
    .dizimo-print-sheet {
        position: absolute;
        left: 0; top: 0;
        width: 100%;
        background: #fff;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    /* Oculta elementos de UI de tela */
    .dizimo-topbar,
    .dizimo-metric-rail,
    .dizimo-note,
    .dizimo-table-toolbar,
    .dizimo-pagination,
    .dizimo-print-sheet-actions,
    .dizimo-list-filters,
    .dizimo-preview-filter,
    .dizimo-panel-head-actions,
    .dizimo-panel-head,
    .dizimo-print-sheet > h3 { display: none !important; }
    /* Mostra título da seção de lançamentos */
    .dizimo-toolbar-slim { display: block !important; visibility: visible !important; margin: 18px 0 8px !important; border-top: 1px solid #c7d9ef !important; padding-top: 12px !important; }
    .dizimo-toolbar-slim h4 { font-size: 13px !important; color: #102a4f !important; font-weight: 800 !important; }
    /* KPI meta-cards */
    .dz-contrib-unified { border: 1px solid #c7d9ef !important; box-shadow: none !important; background: #fff !important; margin-bottom: 16px !important; }
    .dz-contrib-unified-meta { grid-template-columns: repeat(3, 1fr) !important; gap: 8px !important; margin-bottom: 12px !important; }
    .dz-contrib-meta-card { background: #f5f9ff !important; border: 1px solid #c7d9ef !important; padding: 8px 10px !important; }
    .dz-contrib-meta-card span   { font-size: 9px !important; }
    .dz-contrib-meta-card strong { font-size: 16px !important; }
    .dz-contrib-meta-card small  { font-size: 9px !important; }
    /* Tabela */
    .dizimo-table th { background: #102a4f !important; color: #fff !important; font-size: 10px !important; padding: 7px 8px !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .dizimo-table td { font-size: 11px !important; padding: 6px 8px !important; }
    .dizimo-table tbody tr:nth-child(even) td { background: #f5f9ff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .dizimo-panel   { border: none !important; padding: 0 !important; }
    .dizimo-table   { width: 100% !important; border-collapse: collapse !important; }
    .dizimo-table thead { display: table-header-group !important; }
    .dizimo-table tr,
    .dizimo-table td,
    .dizimo-table th { page-break-inside: avoid !important; break-inside: avoid !important; }
}

/* ============================================================
   30. ANIMATIONS
   ============================================================ */
@keyframes dz-fade-up {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes dz-slide-left {
    from { opacity: 0; transform: translateX(-18px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes dz-slide-right {
    from { opacity: 0; transform: translateX(18px); }
    to   { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .dizimo-login-shell,
    .dizimo-login-side,
    .dizimo-login-card,
    .dizimo-login-tab,
    .dizimo-form input,
    .dizimo-form select,
    .dizimo-form textarea,
    .dizimo-form button { animation: none !important; transition: none !important; }
}

/* ============================================================
   31. RESPONSIVE — LARGE TABLET (≤1080px)
   ============================================================ */
@media (max-width: 1080px) {
    .dizimo-dashboard-layout {
        grid-template-columns: 1fr;
    }

    .dizimo-metric-rail {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        position: static;
        max-height: none;
        overflow: visible;
    }

    .dizimo-mini-menu {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 8px;
    }

    .dizimo-mini-menu .dizimo-menu-section {
        grid-column: 1 / -1;
        margin: 6px 0 2px;
    }

    .dizimo-mini-menu a { margin-bottom: 0; }

    .dizimo-kpi { margin-bottom: 0; }

    .dizimo-top-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .dizimo-dashboard-hero,
    .dizimo-bottom-grid,
    .dizimo-config-grid,
    .dizimo-pay-grid,
    .dizimo-campaign-grid { grid-template-columns: 1fr; }

    .dizimo-grid.three-col,
    .dizimo-grid.four-col { grid-template-columns: 1fr 1fr; }

    .dizimo-span-2,
    .dizimo-span-3 { grid-column: auto; }
}

/* ============================================================
   32. RESPONSIVE — TABLET (≤920px)
   ============================================================ */
@media (max-width: 920px) {
    .dizimo-filters { grid-template-columns: 1fr 1fr; }

    .dizimo-bank-form-grid,
    .dizimo-kpi-inline,
    .dizimo-insight-grid,
    .dizimo-compact-grid,
    .dizimo-compact-grid.three-col,
    .dizimo-compact-grid.two-col,
    .dizimo-user-summary { grid-template-columns: 1fr 1fr; }

    .dizimo-grid.two-col { grid-template-columns: 1fr; }
}

/* ============================================================
   33. RESPONSIVE — SMALL TABLET / LARGE PHONE (≤760px)
   ============================================================ */
@media (max-width: 760px) {
    .dizimo-portal { padding: 8px; }

    /* Topbar */
    .dizimo-topbar {
        padding: 10px 12px;
        gap: 8px;
    }

    .dizimo-topbar h2 {
        font-size: 16px;
        white-space: normal;
        flex: 1 1 100%;
    }

    .dizimo-topbar .dizimo-link {
        min-height: var(--dz-touch);
        padding: 0 14px;
        font-size: var(--dz-font-sm);
    }

    /* Menu — horizontal scroll on narrow screens */
    .dizimo-mini-menu {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 6px;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }

    .dizimo-mini-menu::-webkit-scrollbar { height: 3px; }
    .dizimo-mini-menu::-webkit-scrollbar-thumb { background: #b0c4d8; border-radius: 999px; }

    .dizimo-mini-menu .dizimo-menu-section {
        flex: 0 0 100%;
        order: -1;
        margin: 0 0 4px;
    }

    .dizimo-mini-menu a {
        flex: 0 0 auto;
        min-width: 100px;
        margin: 0;
        padding: 8px 12px;
        min-height: var(--dz-touch);
        border-radius: 10px;
        font-size: var(--dz-font-xs);
        white-space: nowrap;
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 3px;
    }

    .dizimo-mini-menu .dashicons { font-size: 18px; width: 18px; height: 18px; line-height: 1; }

    /* Grids */
    .dizimo-toggle-grid,
    .dizimo-list-filters,
    .dizimo-top-kpi-grid,
    .dizimo-top-highlight,
    .dizimo-insight-grid,
    .dizimo-compact-grid,
    .dizimo-compact-grid.three-col,
    .dizimo-compact-grid.two-col,
    .dizimo-grid.three-col,
    .dizimo-grid.four-col { grid-template-columns: 1fr 1fr; }

    .dizimo-filters { grid-template-columns: 1fr; }

    /* Panel head */
    .dizimo-panel-head { flex-direction: column; align-items: stretch; }
    .dizimo-panel-head-info { width: 100%; }
    .dizimo-panel-head-info span { display: block; line-height: 1.4; }

    .dizimo-panel-head-actions {
        width: 100%;
        justify-content: flex-start;
        align-items: stretch;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .dizimo-panel-head-actions .dizimo-chip-link,
    .dizimo-panel-head-actions .dizimo-chip-muted,
    .dizimo-panel-head-actions .dizimo-form button,
    .dizimo-panel-head-actions button {
        min-height: var(--dz-touch);
        width: 100%;
        justify-content: center;
    }

    /* Filters inline */
    .dizimo-filters-inline {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        align-items: stretch;
    }

    .dizimo-filters-inline input,
    .dizimo-filters-inline .fin-search {
        grid-column: 1 / -1;
        max-width: 100%;
        min-width: 0;
    }

    .dizimo-filters-inline select,
    .dizimo-filters-inline button,
    .dizimo-filters-inline a.dizimo-chip-muted {
        min-width: 0;
        justify-content: center;
        width: 100%;
    }

    .dizimo-contrib-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dizimo-contrib-filters .fin-search {
        grid-column: 1 / -1;
    }

    /* Tables → mobile-cards pattern */
    .dizimo-users-table {
        min-width: 0;
        border: 0;
        background: transparent;
        table-layout: auto;
    }

    .dizimo-users-table thead { display: none; }

    .dizimo-users-table tbody,
    .dizimo-users-table tr,
    .dizimo-users-table td { display: block; width: 100%; }

    .dizimo-users-table tr {
        background: var(--dz-white);
        border: 1px solid var(--dz-border);
        border-radius: var(--dz-radius);
        padding: 12px;
        margin-bottom: 10px;
    }

    .dizimo-users-table td {
        border: 0;
        padding: 7px 0;
        font-size: var(--dz-font-sm);
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .dizimo-users-table td[data-label] {
        display: flex;
        gap: 10px;
        align-items: flex-start;
        justify-content: space-between;
    }

    .dizimo-users-table td[data-label]::before {
        content: attr(data-label);
        flex: 0 0 90px;
        color: #5f6f88;
        font-size: var(--dz-font-xs);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .03em;
        padding-top: 1px;
    }

    .dizimo-users-table .dizimo-users-capelas { justify-content: flex-end; }
    .dizimo-users-table .dizimo-users-empty-row { display: block; text-align: center; padding: 16px 8px; color: #6b7280; }
    .dizimo-users-table .dizimo-users-empty-row::before { content: none; }

    .dizimo-users-table .dizimo-user-actions-group {
        width: auto;
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        gap: 6px;
    }

    /* Mobile-cards table */
    .dizimo-mobile-cards {
        min-width: 0;
        border: 0;
        background: transparent;
    }

    .dizimo-mobile-cards thead { display: none; }

    .dizimo-mobile-cards tbody,
    .dizimo-mobile-cards tr,
    .dizimo-mobile-cards td { display: block; width: 100%; }

    .dizimo-mobile-cards tr {
        background: var(--dz-white);
        border: 1px solid var(--dz-border);
        border-radius: var(--dz-radius);
        padding: 12px;
        margin-bottom: 10px;
    }

    .dizimo-mobile-cards td {
        border: 0;
        padding: 7px 0;
        font-size: var(--dz-font-sm);
        height: auto;
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .dizimo-mobile-cards td[data-label] {
        display: grid;
        grid-template-columns: 90px minmax(0, 1fr);
        gap: 10px;
        align-items: flex-start;
    }

    .dizimo-mobile-cards td[data-label]::before {
        content: attr(data-label);
        grid-column: 1;
        color: #5f6f88;
        font-size: var(--dz-font-xs);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .03em;
        line-height: 1.3;
        padding-top: 2px;
    }

    .dizimo-mobile-cards td[data-label] > * {
        grid-column: 2;
        min-width: 0;
        max-width: 100%;
        justify-self: end;
        text-align: right;
    }

    .dizimo-mobile-cards td[data-label] .dizimo-status-badge,
    .dizimo-mobile-cards td[data-label] .dizimo-badge,
    .dizimo-mobile-cards td[data-label] .dizimo-chip-link,
    .dizimo-mobile-cards td[data-label] .dizimo-chip-muted {
        white-space: normal;
        max-width: 100%;
    }

    .dizimo-mobile-cards .dizimo-mobile-empty-row td { display: block; text-align: center; color: #6f7f99; padding: 4px 0; }
    .dizimo-mobile-cards.dizimo-log-table td:last-child { min-width: 0; }

    /* Payment bar */
    .dizimo-payment-bar-meta { flex-wrap: wrap; align-items: flex-start; gap: 2px 8px; }
    .dizimo-payment-bar-meta span,
    .dizimo-payment-bar-meta strong { width: 100%; }
}

/* ============================================================
   34. RESPONSIVE — LOGIN (≤900px)
   ============================================================ */
@media (max-width: 900px) {
    .dizimo-login-shell {
        grid-template-columns: 1fr;
        min-height: auto;
        max-width: 480px;
    }

    .dizimo-login-side { display: none; }

    .dizimo-login-card {
        padding: 28px 24px;
        justify-content: flex-start;
    }

    .dizimo-login-form-wrap,
    .dizimo-login-side-inner { max-width: none; }
}

/* ============================================================
   35. RESPONSIVE — PHONE (≤560px)
   ============================================================ */
@media (max-width: 560px) {
    :root {
        --dz-font-base: 14px;
        --dz-font-sm:   13px;
        --dz-font-xs:   12px;
        --dz-font-xxs:  11px;
    }

    .dizimo-portal { padding: 6px; }

    .dizimo-insight-grid { grid-template-columns: 1fr; }

    .dizimo-panel { padding: 10px; border-radius: 10px; }
    .dizimo-panel-head { margin-bottom: 10px; padding-bottom: 8px; }
    .dizimo-panel-head-info h3 { font-size: 15px; }

    .dizimo-topbar  { flex-wrap: wrap; gap: 8px; padding: 10px 12px; }

    .dizimo-compact-grid,
    .dizimo-compact-grid.three-col,
    .dizimo-compact-grid.two-col,
    .dizimo-grid.three-col,
    .dizimo-grid.four-col { grid-template-columns: 1fr; }

    .dizimo-table th,
    .dizimo-table td { font-size: var(--dz-font-xs); padding: 9px 10px; }

    .dizimo-status-badge,
    .dizimo-badge { font-size: 11px; padding: 4px 8px; }

    .dizimo-pagination a,
    .dizimo-pagination span { padding: 6px 10px; font-size: var(--dz-font-xs); }

    .dizimo-chip-link,
    .dizimo-chip-muted,
    .dizimo-form button { font-size: var(--dz-font-xs); }

    .dizimo-list-filters {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   36. RESPONSIVE — EXTRA SMALL PHONE (≤400px)
   ============================================================ */
@media (max-width: 400px) {
    :root {
        --dz-font-base: 14px;
        --dz-touch:     42px;
    }

    .dizimo-portal { padding: 4px; }

    .dizimo-main-board,
    .dizimo-panel,
    .dizimo-config-card,
    .dizimo-hero-panel,
    .dizimo-side-card,
    .dizimo-pay-panel,
    .dizimo-compact-card,
    .dizimo-top-highlight {
        border-radius: 8px;
        padding: 10px;
    }

    .dizimo-topbar { padding: 8px 10px; gap: 6px; }
    .dizimo-topbar h2 { font-size: 15px; }
    .dizimo-topbar .dizimo-link { min-height: 40px; padding: 0 12px; font-size: var(--dz-font-xs); }

    .dizimo-mini-menu a { min-height: 40px; min-width: 86px; font-size: 11px; }

    .dizimo-top-kpi-grid,
    .dizimo-compact-grid,
    .dizimo-compact-grid.three-col,
    .dizimo-compact-grid.two-col,
    .dizimo-grid.two-col,
    .dizimo-grid.three-col,
    .dizimo-grid.four-col,
    .dizimo-dashboard-hero,
    .dizimo-bottom-grid,
    .dizimo-pay-grid,
    .dizimo-campaign-grid,
    .dizimo-user-management {
        gap: 8px;
        grid-template-columns: 1fr;
    }

    .dizimo-kpi { padding: 8px 10px; }
    .dizimo-kpi p.metric,
    .dizimo-compact-card strong,
    .dizimo-top-highlight strong { font-size: 20px; }

    .dizimo-filters-inline {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .dizimo-filters-inline input,
    .dizimo-filters-inline select,
    .dizimo-filters-inline button,
    .dizimo-filters-inline a.dizimo-chip-muted {
        grid-column: 1 / -1;
        min-width: 0;
        width: 100%;
    }

    .dizimo-contrib-filters {
        grid-template-columns: 1fr;
    }

    .dizimo-panel-head-actions { grid-template-columns: 1fr; }
    .dizimo-pagination { gap: 4px; }
    .dizimo-pagination a,
    .dizimo-pagination span { padding: 5px 8px; font-size: 11px; }

    .dizimo-mobile-cards td[data-label] { grid-template-columns: 78px minmax(0, 1fr); }
    .dizimo-mobile-cards td[data-label]::before { font-size: 10px; }
    .dizimo-users-table td[data-label]::before  { flex-basis: 78px; font-size: 10px; }
}

/* ============================================================
   37. FOCUS ACCESSIBILITY (WCAG 2.4.7)
   ============================================================ */
:focus-visible {
    outline: 3px solid #1687b8;
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #1687b8;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(22,135,184,.2);
}

/* ============================================================
   38. MISC UTILITIES
   ============================================================ */
.dizimo-toggle-grid { display: grid; gap: 10px; }
.dizimo-chapel-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.dizimo-preview-filter { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }

.dizimo-table-wrap + .dizimo-pagination { margin-top: 10px; }

/* Table search row */
.dizimo-table-search { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.dizimo-table-search input { flex: 1; min-width: 160px; }

/* Dashboard panels layout bottom */
.dizimo-dashboard-layout .dizimo-main-board > *:first-child { margin-top: 0; }

/* Recebimento compact */
.dizimo-receiving-compact { padding: 12px; }
.dizimo-receiving-compact > h4 { margin-bottom: 8px; }
.dizimo-receiving-compact h4:not(:first-child) { margin-top: 10px; }
.dizimo-receiving-compact label { margin-bottom: 4px; font-size: var(--dz-font-xs); }
.dizimo-receiving-compact input:not([type="checkbox"]):not([type="radio"]),
.dizimo-receiving-compact textarea,
.dizimo-receiving-compact select { padding: 9px 10px; margin-bottom: 8px; }
.dizimo-receiving-compact textarea { min-height: 64px; }
.dizimo-receiving-compact .dizimo-qr-preview { max-height: 150px; padding: 6px; margin-bottom: 6px; }

/* Monthly contributors panel */
.dizimo-monthly-contrib-card { overflow-x: auto; }

/* ============================================================
   CLASSES MIGRADAS DO CSS INLINE — adicionadas na v1.1.25
   ============================================================ */

/* Dashboard — seletor de capelas */
.dizimo-dashboard-capela-quick {
    margin: 0 0 10px;
    border: 1px solid #d8deea;
    border-radius: 10px;
    background: #ffffff;
    padding: 10px;
}
.dizimo-dashboard-capela-quick p {
    margin: 0 0 8px;
    font-size: 12px;
    color: #4f5f79;
}
.dizimo-dashboard-capela-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}
.dizimo-dashboard-capela-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid #c6d4e4;
    border-radius: 10px;
    background: #ffffff;
    color: #24415d;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s, border-color .15s;
}
.dizimo-dashboard-capela-chip.is-all { grid-column: span 2; }
.dizimo-dashboard-capela-chip.is-active {
    border-color: #1687b8;
    background: linear-gradient(135deg, #1687b8, #25b8d1);
    color: #ffffff;
}
.dizimo-dashboard-capela-chip:hover:not(.is-active) {
    background: #ebf7fb;
    border-color: #25b8d1;
}

/* Lista de dizimistas (painel de lançamento) */
.dizimo-dizimista-list {
    display: grid;
    gap: 8px;
    max-height: 280px;
    overflow: auto;
    padding: 6px;
    border: 1px solid #d8deea;
    border-radius: 10px;
    background: #f9fbfe;
}
#dz-capela-dizimista-list {
    min-height: 520px;
    max-height: 520px;
}

/* Ranking */
.dizimo-ranking { list-style: none; margin: 0; padding: 0; }
.dizimo-ranking li { display: flex; justify-content: space-between; gap: 8px; border: 1px solid #d8deea; border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; background: #fff; }
.dizimo-ranking .pos { width: 30px; font-weight: 700; color: #4f5f79; }
.dizimo-ranking .name { flex: 1; color: #1f2a3c; }
.dizimo-ranking .val { font-weight: 700; color: #1687b8; }
.dizimo-ranking li.rank-top1 {
    border-color: #eade25;
    background: linear-gradient(90deg, rgba(234,222,37,.22), rgba(255,255,255,1));
    box-shadow: 0 4px 10px rgba(234,222,37,.25);
}
.dizimo-ranking li.rank-top1 .pos {
    color: #251d12;
    background: #eade25;
    border-radius: 999px;
    text-align: center;
    font-weight: 800;
    padding: 2px 0;
}
.dizimo-ranking li.rank-top2 { border-left: 3px solid #a6a7a8; }
.dizimo-ranking li.rank-top3 { border-left: 3px solid #b5aa84; }

/* Tabela de toolbar extra */
.dizimo-table-wrap-top { margin-top: 18px; }

/* Status/muted */
.dizimo-muted-empty {
    padding: 16px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
}
.dizimo-status-list { display: grid; gap: 10px; }
.dizimo-status-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    color: #45556c;
    margin-bottom: 4px;
}

/* Log */
.dizimo-log-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.dizimo-log-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #4f5f79;
}
.dizimo-log-clear-form { margin: 0; }
.dizimo-log-title { margin: 0; }
.dizimo-log-table th, .dizimo-log-table td { white-space: normal; vertical-align: top; }
.dizimo-log-table th:nth-child(4), .dizimo-log-table td:nth-child(4) { white-space: nowrap; min-width: 120px; }
.dizimo-log-table th:last-child, .dizimo-log-table td:last-child { word-break: break-word; overflow-wrap: anywhere; min-width: 420px; }

/* Toggle switches */
.dizimo-toggle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid #d8deea;
    border-radius: 8px;
    background: #ffffff;
    color: #243b53;
    font-weight: 700;
    line-height: 1.2;
    min-height: 40px;
}
.dizimo-switch-copy {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.dizimo-switch-label { margin: 0; line-height: 1.2; }
.dizimo-switch-state { margin: 0; font-size: 11px; font-weight: 600; color: #5f6f88; white-space: nowrap; }
.dizimo-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    align-self: center;
}
.dizimo-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.dizimo-switch-slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #d7e1ec;
    border: 1px solid #b7c5d6;
    transition: .2s ease;
    cursor: pointer;
}
.dizimo-switch-slider:before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 2px;
    top: 2px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0,0,0,.2);
    transition: .2s ease;
}
.dizimo-switch input:checked + .dizimo-switch-slider {
    background: linear-gradient(135deg, #1687b8, #25b8d1);
    border-color: #1687b8;
}
.dizimo-switch input:checked + .dizimo-switch-slider:before { transform: translateX(20px); }
.dizimo-switch input:focus-visible + .dizimo-switch-slider { box-shadow: 0 0 0 3px rgba(37,184,209,.22); }
.dizimo-perms-menu-box {
    border: 1px solid #d8e4f0;
    border-radius: 10px;
    background: #f8fbff;
    padding: 12px;
}
.dizimo-perms-menu-section {
    margin-top: 12px;
}
.dizimo-perms-menu-section > strong {
    display: block;
    margin-bottom: 8px;
    color: #16324f;
    font-size: 13px;
}
.dizimo-perms-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.dizimo-menu-perm-item span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.dizimo-menu-perm-item .dashicons {
    color: #1687b8;
    font-size: 17px;
    width: 17px;
    height: 17px;
}

/* Botoes de acao */
.dizimo-add-recipient {
    margin-top: 12px;
    background: #28a745;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 700;
}
.dizimo-remove-recipient {
    margin-top: 8px;
    background: #dc3545;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}
.dizimo-secondary-action {
    background: #eef5fb;
    color: #184364;
    border: 1px solid #bcd1e3;
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: 700;
    cursor: pointer;
}
.dizimo-card-action { margin-top: 10px; display: flex; justify-content: flex-start; }

/* Sub-cabeçalho dos cards de aniversariantes */
.dizimo-card-sub-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.dizimo-card-sub-head-info h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #1f2a44;
}
.dizimo-card-sub-head-info span {
    display: block;
    font-size: 12px;
    color: #6b7a97;
    margin-top: 2px;
}

/* Aniversariantes */
.dizimo-birthday-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.dizimo-birthday-actions-top { margin-top: 14px; }
.dizimo-birthday-help { margin: 0 0 10px; font-size: 12px; color: #4f5f79; }
.dizimo-birthday-card-title {
    margin: 0 0 10px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #d8deea;
    background: linear-gradient(135deg, #f4fbff, #ecf5fb);
    color: #184364;
    font-size: 13px;
    font-weight: 800;
}

/* Advanced toggle (details/summary) */
.dizimo-advanced-toggle {
    border: 1px solid #d8deea;
    border-radius: 10px;
    background: #fff;
    padding: 8px 10px;
    margin-bottom: 10px;
}
.dizimo-advanced-toggle-top { margin-top: 10px; }
.dizimo-advanced-toggle > summary {
    cursor: pointer;
    font-weight: 700;
    color: #1f2a44;
    list-style: none;
}
.dizimo-advanced-toggle > summary::-webkit-details-marker { display: none; }
.dizimo-advanced-toggle > summary::before { content: "+"; display: inline-block; width: 18px; color: #1687b8; font-weight: 800; }
.dizimo-advanced-toggle[open] > summary::before { content: "-"; }
.dizimo-advanced-content { margin-top: 10px; }

/* Headings */
.dizimo-heading-tight { margin: 0 0 10px; }
.dizimo-heading-spaced { margin: 16px 0 10px; }
.dizimo-compact-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #243b53;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* QR */
.dizimo-qr-label { display: block; font-size: 11px; font-weight: 600; color: #243b53; margin-top: 8px; }
.dizimo-qr-thumb { max-width: 120px; border-radius: 8px; border: 1px solid #e1e9f3; margin-top: 4px; }

/* Novo lancamento */
.dizimo-novo-left-stack { display: grid; gap: 10px; }
.dizimo-capela-pills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.dizimo-capela-pills > .dizimo-capela-filter-btn:first-child {
    grid-column: 1 / -1;
}
.dizimo-capela-actions { margin-top: 8px; display: flex; justify-content: flex-end; }
.dizimo-capela-filter-btn {
    border: 1px solid #c6d4e4;
    background: #ffffff;
    color: #24415d;
    border-radius: 10px;
    min-height: 40px;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    width: 100%;
}
.dizimo-capela-filter-btn.is-active {
    border-color: #1687b8;
    background: linear-gradient(135deg, #1687b8, #25b8d1);
    color: #ffffff;
}
.dizimo-capela-list-block { margin-top: 10px; border-top: 1px solid #d8deea; padding-top: 10px; }
.dizimo-capela-list-block.is-hidden { display: none; }

/* Print */
.dizimo-print-sheet { background: #fff; }
@media print {
    @page { size: A4 portrait; margin: 12mm; }
    body * { visibility: hidden !important; }
    .dizimo-print-sheet, .dizimo-print-sheet * { visibility: visible !important; }
    .dizimo-screen-only { display: none !important; }
    .dizimo-print-only { display: block !important; }
    .dizimo-print-header { display: block !important; }
    .dizimo-print-sheet {
        position: absolute; left: 0; top: 0; width: 100%;
        border: none !important; box-shadow: none !important;
        padding: 0 !important; margin: 0 !important;
    }
    .dizimo-topbar, .dizimo-metric-rail, .dizimo-note, .dizimo-table-toolbar,
    .dizimo-pagination, .dizimo-print-sheet-actions, .dizimo-list-filters,
    .dizimo-preview-filter, .dizimo-panel-head-actions, .dizimo-panel-head,
    .dizimo-print-sheet > h3 { display: none !important; }
    .dizimo-toolbar-slim { display: block !important; visibility: visible !important; margin: 18px 0 8px !important; border-top: 1px solid #c7d9ef !important; padding-top: 12px !important; }
    .dizimo-toolbar-slim h4 { font-size: 13px !important; color: #102a4f !important; font-weight: 800 !important; }
    .dz-contrib-unified { border: 1px solid #c7d9ef !important; box-shadow: none !important; background: #fff !important; margin-bottom: 16px !important; }
    .dz-contrib-unified-meta { grid-template-columns: repeat(3, 1fr) !important; gap: 8px !important; }
    .dz-contrib-meta-card { background: #f5f9ff !important; border: 1px solid #c7d9ef !important; padding: 8px 10px !important; }
    .dz-contrib-meta-card span { font-size: 9px !important; }
    .dz-contrib-meta-card strong { font-size: 16px !important; }
    .dz-contrib-meta-card small { font-size: 9px !important; }
    .dizimo-table th { background: #102a4f !important; color: #fff !important; font-size: 10px !important; padding: 7px 8px !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .dizimo-table td { font-size: 11px !important; padding: 6px 8px !important; }
    .dizimo-table tbody tr:nth-child(even) td { background: #f5f9ff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .dizimo-table { width: 100% !important; border-collapse: collapse !important; }
    .dizimo-table thead { display: table-header-group !important; }
    .dizimo-table tr, .dizimo-table td, .dizimo-table th { page-break-inside: avoid !important; }
}

/* Caixa da Copa */
.dizimo-caixa-action-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.dizimo-caixa-big-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px; min-height: 110px; border: none; border-radius: 16px;
    font-size: 18px; font-weight: 800; color: #fff; cursor: pointer;
    letter-spacing: .3px; box-shadow: 0 4px 16px rgba(0,0,0,.13);
    transition: transform .1s, box-shadow .1s;
}
.dizimo-caixa-big-btn:active { transform: scale(.97); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.dizimo-caixa-big-btn .caixa-btn-icon {
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255,255,255,.25); display: flex; align-items: center;
    justify-content: center; font-size: 28px; font-weight: 900; line-height: 1;
}
.dizimo-caixa-big-btn.entrada { background: linear-gradient(135deg,#34a853,#27875f); }
.dizimo-caixa-big-btn.saida   { background: linear-gradient(135deg,#e53935,#b71c1c); }
.dizimo-caixa-big-btn.is-active { outline: 4px solid #1687b8; outline-offset: 2px; }
.dizimo-caixa-inline-form {
    display: none;
    background: #f4f8fc; border: 1px solid #c7d5e4; border-radius: 12px;
    padding: 18px; margin-bottom: 18px;
}
.dizimo-caixa-inline-form.is-visible { display: block; }
.dizimo-caixa-cat-row { display: flex; gap: 8px; align-items: flex-end; }
.dizimo-caixa-cat-row select { flex: 1; }
.dizimo-caixa-cat-row .dizimo-add-cat-btn {
    white-space: nowrap; padding: 0 14px; height: 42px;
    border-radius: 8px; border: 1px solid #c7d5e4; background: #fff;
    color: #1f3650; font-weight: 700; cursor: pointer; font-size: 20px;
}
.dizimo-caixa-mes-bar {
    display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap;
}
.dizimo-caixa-mes-bar label { font-weight: 700; color: #1f3650; white-space: nowrap; }
.dizimo-caixa-mes-bar select {
    min-width: 180px;
    min-height: 42px;
    padding: 0 40px 0 12px;
    border: 1px solid #9fb9d7;
    border-radius: 10px;
    background-color: #fff;
    color: #14314f;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 1px 2px rgba(20, 49, 79, 0.08);
    appearance: none;
    -webkit-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #2d5f89 50%),
        linear-gradient(135deg, #2d5f89 50%, transparent 50%),
        linear-gradient(to right, #d7e3ef, #d7e3ef);
    background-position:
        calc(100% - 18px) calc(50% - 2px),
        calc(100% - 12px) calc(50% - 2px),
        calc(100% - 32px) 50%;
    background-size: 6px 6px, 6px 6px, 1px 24px;
    background-repeat: no-repeat;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.dizimo-caixa-mes-bar select:hover {
    border-color: #7ea4cc;
}
.dizimo-caixa-mes-bar select:focus {
    border-color: #2f7abf;
    outline: none;
    box-shadow: 0 0 0 3px rgba(47, 122, 191, 0.18);
}
.dizimo-caixa-kpi-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 16px; }
.dizimo-caixa-kpi-row.is-four { grid-template-columns: repeat(4,1fr); }
.dizimo-kpi-entrada {
    background: linear-gradient(135deg, #1d8f4f, #23a35b);
    color: #fff;
}
.dizimo-kpi-saida {
    background: linear-gradient(135deg, #c62828, #e53935);
    color: #fff;
}
.dizimo-kpi-entrada h3,
.dizimo-kpi-entrada p.metric,
.dizimo-kpi-saida h3,
.dizimo-kpi-saida p.metric {
    color: #fff;
    opacity: 1;
}
.dz-js .js-dz-hide-when-js { display: none !important; }
.dz-caixa-resumo-fixo {
    position: sticky;
    top: 8px;
    z-index: 5;
    background: rgba(245, 250, 255, 0.96);
    border: 1px solid #c9d8ea;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 14px;
    backdrop-filter: blur(2px);
}
.dz-caixa-resumo-head {
    font-size: 12px;
    font-weight: 800;
    color: #1f3d63;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 8px;
}
.dz-caixa-saldo-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 150px auto auto;
    gap: 10px;
    align-items: center;
    border-top: 1px solid #d9e5f2;
    margin-top: 10px;
    padding-top: 10px;
}
.dz-caixa-saldo-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #1f3650;
}
.dz-caixa-saldo-copy strong {
    font-size: 13px;
    font-weight: 800;
}
.dz-caixa-saldo-copy span {
    color: #5f6f83;
    font-size: 12px;
}
.dz-caixa-saldo-form input {
    min-height: 40px;
    border: 1px solid #b8c9de;
    border-radius: 8px;
    padding: 0 12px;
}
.dz-caixa-saldo-form button {
    min-height: 40px;
    border-radius: 8px;
    border: 1px solid transparent;
    padding: 0 14px;
    font-weight: 800;
    cursor: pointer;
}
.dz-caixa-saldo-save {
    background: #1f7a4d;
    color: #fff;
}
.dz-caixa-saldo-zero {
    background: #fff4f4;
    border-color: #f2a6a6 !important;
    color: #b91c1c;
}
.dz-caixa-capela-panel .dizimo-form label {
    font-size: 13px;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 4px;
}
.dz-caixa-capela-panel .dizimo-form input,
.dz-caixa-capela-panel .dizimo-form select {
    border-color: #b8c9de;
}
.dz-caixa-capela-panel .dizimo-help-text {
    display: block;
    margin-top: 6px;
    color: #5f6f83;
    font-size: 12px;
}
.dz-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid transparent;
    letter-spacing: .01em;
    white-space: nowrap;
}
.dz-status-pending { background: #fff4cc; border-color: #f0c95a; color: #73510d; }
.dz-status-closed { background: #dbf6e6; border-color: #7bc79c; color: #145c33; }
.dz-status-nocash { background: #eef2f7; border-color: #c8d2de; color: #425466; }
.dz-admin-close-alert {
    margin: 0 0 10px;
    padding: 10px 12px;
    border: 1px solid #f0b4b4;
    border-left: 4px solid #c62828;
    border-radius: 10px;
    background: #fff2f2;
    color: #8b1f1f;
}
.dz-caixa-admin-panel .dz-admin-close-alert {
    position: sticky;
    top: 8px;
    z-index: 6;
    box-shadow: 0 3px 10px rgba(139, 31, 31, 0.15);
}
.dz-admin-close-alert p {
    margin: 0 0 6px;
    color: #8b1f1f;
}
.dz-admin-close-alert p:last-child { margin-bottom: 0; }

/* Responsivo extra */
@media (max-width: 920px) {
    .dizimo-dashboard-capela-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dizimo-dashboard-capela-chip.is-all { grid-column: auto; }
    .dizimo-capela-pills { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .dizimo-toggle-grid { grid-template-columns: 1fr; }
    .dizimo-perms-menu-grid { grid-template-columns: 1fr; }
    .dizimo-caixa-action-btns { gap: 10px; }
    .dizimo-caixa-big-btn { min-height: 90px; font-size: 15px; }
    .dizimo-caixa-kpi-row { grid-template-columns: 1fr; }
    .dizimo-caixa-mes-bar select { width: 100%; }
    .dz-caixa-saldo-form { grid-template-columns: 1fr; }
    .dz-caixa-saldo-form button { width: 100%; }
    .dz-caixa-resumo-fixo { position: static; }
    .dz-caixa-admin-panel .dz-admin-close-alert { position: static; }
    .dz-status-badge { min-width: 0; width: fit-content; }
}

/* ============================================================
   39. BOTÃO SAIR — ACESSÍVEL E ALTO CONTRASTE
   ============================================================ */
.dizimo-link.dizimo-logout-btn {
    background: rgba(220, 38, 38, 0.18);
    border: 1.5px solid rgba(255, 200, 200, 0.7);
    color: #ffffff;
    font-weight: 800;
    min-height: var(--dz-touch);
    padding: 0 18px;
    border-radius: 10px;
    letter-spacing: .02em;
}
.dizimo-link.dizimo-logout-btn:hover {
    background: rgba(220, 38, 38, 0.36);
    border-color: rgba(255, 180, 180, 0.9);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.28);
}
.dizimo-link.dizimo-logout-btn:active {
    background: rgba(185, 28, 28, 0.5);
    transform: scale(0.98);
}

/* Topbar com botão sair melhorado */
.dizimo-topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* ============================================================
   40. DRAWER MENU MOBILE
   ============================================================ */

/* Botão hambúrguer — visível só no mobile */
.dizimo-mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,.18);
    border: 1.5px solid rgba(255,255,255,.4);
    border-radius: 10px;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    color: #ffffff;
    transition: background .15s;
}
.dizimo-mobile-menu-btn:hover { background: rgba(255,255,255,.28); }
.dizimo-mobile-menu-btn svg { width: 22px; height: 22px; }

/* Overlay escuro ao abrir drawer */
.dizimo-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 40, 0.55);
    z-index: 9998;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    animation: dz-fade-in .22s ease;
}
.dizimo-drawer-overlay.is-open { display: block; }

/* Drawer sidebar */
.dizimo-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(310px, 88vw);
    background: #fff;
    z-index: 9999;
    box-shadow: 4px 0 32px rgba(10, 20, 40, 0.25);
    transform: translateX(-100%);
    transition: transform .28s cubic-bezier(.25,.8,.25,1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.dizimo-drawer.is-open { transform: translateX(0); }

/* Cabeçalho do drawer */
.dizimo-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: linear-gradient(135deg, #1687b8, #25b8d1);
    color: #fff;
    flex-shrink: 0;
}
.dizimo-drawer-head-info { flex: 1; min-width: 0; }
.dizimo-drawer-head-info h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dizimo-drawer-head-info span {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,.85);
    margin-top: 2px;
}

/* Botão fechar drawer */
.dizimo-drawer-close {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,.2);
    border: 1.5px solid rgba(255,255,255,.4);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    transition: background .15s;
    padding: 0;
}
.dizimo-drawer-close:hover { background: rgba(255,255,255,.32); }
.dizimo-drawer-close svg { width: 20px; height: 20px; }

/* Conteúdo scrollável do drawer */
.dizimo-drawer-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px;
    -webkit-overflow-scrolling: touch;
}

/* Seções dentro do drawer */
.dizimo-drawer-section-label {
    display: block;
    padding: 6px 10px 5px;
    margin: 10px 0 6px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.dizimo-drawer-section-label.is-dizimo {
    background: #edf7fb;
    color: #0d6f96;
    border: 1px solid #c7e5f0;
}
.dizimo-drawer-section-label.is-caixa {
    background: #eef7ef;
    color: #1d6d44;
    border: 1px solid #cfe7d7;
}

/* Links do drawer — tamanho confortável para idosos */
.dizimo-drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #1f2a44;
    background: #f8fafc;
    border: 1px solid #dde5ef;
    border-radius: 12px;
    padding: 13px 14px;
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 15px;
    min-height: 52px;
    transition: background .15s, border-color .15s, transform .1s;
}
.dizimo-drawer-link:hover {
    background: #ebf7fb;
    border-color: #b0d9e8;
    transform: translateX(3px);
}
.dizimo-drawer-link.is-dizimo { border-left: 4px solid #28a7c9; }
.dizimo-drawer-link.is-caixa  { border-left: 4px solid #4ca56a; background: #fbfefb; }
.dizimo-drawer-link.is-caixa:hover { background: #eef8f0; }

.dizimo-drawer-link.active {
    background: linear-gradient(135deg, #1687b8, #25b8d1);
    border-color: #1687b8;
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(22,135,184,.25);
}
.dizimo-drawer-link.active.is-caixa {
    background: linear-gradient(135deg, #2f9154, #67bb7d);
    border-color: #2f9154;
    box-shadow: 0 6px 14px rgba(47,145,84,.25);
}
.dizimo-drawer-link .dashicons,
.dizimo-drawer-link .dz-drawer-icon {
    font-size: 22px;
    width: 22px;
    height: 22px;
    line-height: 1;
    flex-shrink: 0;
    color: var(--dz-brand);
}
.dizimo-drawer-link.active .dashicons,
.dizimo-drawer-link.active .dz-drawer-icon { color: #ffffff; }

/* Rodapé do drawer — botão sair */
.dizimo-drawer-footer {
    padding: 12px;
    border-top: 1px solid #e4eaf3;
    flex-shrink: 0;
    background: #f9fbfd;
}
.dizimo-drawer-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(185, 28, 28, 0.25);
    transition: filter .18s, transform .12s, box-shadow .18s;
}
.dizimo-drawer-logout:hover {
    filter: brightness(1.08);
    box-shadow: 0 6px 16px rgba(185, 28, 28, 0.35);
    transform: translateY(-1px);
}
.dizimo-drawer-logout:active { transform: scale(0.98); }
.dizimo-drawer-logout .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    line-height: 1;
    color: #fff;
}

@keyframes dz-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ============================================================
   41. CARD CONTRIBUIÇÕES UNIFICADO (dz-contrib-unified)
   ============================================================ */
.dz-contrib-unified {
    background: var(--dz-white);
    border: 1px solid var(--dz-border);
    border-radius: var(--dz-radius);
    padding: 16px;
    margin-bottom: 12px;
}
.dz-contrib-unified-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e4eaf3;
}
.dz-contrib-unified-title { margin: 0; font-size: 16px; color: #1f2a44; font-weight: 800; }
.dz-contrib-unified-sub   { margin: 3px 0 0; font-size: 13px; color: #6b7280; }
.dz-contrib-unified-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    flex-shrink: 0;
}
.dz-contrib-unified-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}
.dz-contrib-meta-card {
    background: linear-gradient(180deg, #f5f9ff, #edf3fb);
    border: 1px solid #d2dff2;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}
.dz-contrib-meta-card span   { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #5d6f88; font-weight: 700; margin-bottom: 4px; }
.dz-contrib-meta-card strong { display: block; font-size: 22px; font-weight: 800; color: #102a4f; line-height: 1.1; }
.dz-contrib-meta-card small  { display: block; font-size: 11px; color: #6b7280; margin-top: 3px; }
@media (max-width: 560px) {
    .dz-contrib-unified-meta { grid-template-columns: 1fr 1fr; }
    .dz-contrib-unified-head { flex-direction: column; }
    .dz-contrib-unified-actions { width: 100%; }
    .dz-contrib-unified-actions > * { flex: 1; justify-content: center; }
}

/* ============================================================
   42. MENU MOBILE — ATIVA DRAWER ABAIXO DE 760px
   ============================================================ */
@media (max-width: 760px) {
    /* Oculta o rail lateral; o drawer substitui */
    .dizimo-metric-rail { display: none !important; }

    /* Mostra o botão hambúrguer */
    .dizimo-mobile-menu-btn { display: flex; }

    /* Topbar fica em linha única com o hambúrguer */
    .dizimo-topbar {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: nowrap;
    }
    .dizimo-topbar h2 {
        flex: 1 1 auto;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: clamp(14px, 4vw, 18px);
    }
    /* O botão Sair da topbar fica oculto no mobile (vai para o drawer) */
    .dizimo-topbar > .dizimo-link.dizimo-logout-btn {
        display: none;
    }

    /* Layout de 1 coluna limpa */
    .dizimo-dashboard-layout {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   43. ACESSIBILIDADE IDOSOS — fontes, espaçamentos, alvos
   ============================================================ */
@media (max-width: 760px) {
    /* Tamanho de fonte base maior em mobile */
    :root {
        --dz-font-base: 16px;
        --dz-font-sm:   15px;
        --dz-font-xs:   13px;
        --dz-touch:     48px;
        --dz-touch-sm:  42px;
    }

    /* Botões principais mais altos */
    .dizimo-form button,
    button.dizimo-btn,
    .dizimo-chip-link,
    .dizimo-chip-muted,
    .dizimo-status-button,
    .dizimo-danger-button,
    .dizimo-filters-inline button,
    .dizimo-panel-head-actions button,
    .dizimo-panel-head-actions .dizimo-chip-link,
    .dizimo-panel-head-actions .dizimo-chip-muted {
        min-height: 48px;
        font-size: 15px;
        padding: 0 18px;
    }

    /* Inputs maiores */
    .dizimo-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
    .dizimo-form select,
    .dizimo-form textarea,
    .dizimo-filters-inline input,
    .dizimo-filters-inline select {
        min-height: 48px;
        font-size: 15px;
        padding: 12px 14px;
    }

    /* Labels mais visíveis */
    .dizimo-form label { font-size: 15px; margin-bottom: 6px; }

    /* Links do menu mini maiores */
    .dizimo-mini-menu a { min-height: 48px; font-size: 13px; }

    /* Padding maior nos cards */
    .dizimo-panel { padding: 14px; }
    .dizimo-compact-card { padding: 16px; }

    /* Texto das tabelas mais legível */
    .dizimo-table tbody td { font-size: 14px; padding: 12px 13px; }
    .dizimo-mobile-cards tr { padding: 14px; }
    .dizimo-mobile-cards td { font-size: 14px; }
}
