/* ═══════════════════════════════════════════
   DGINL Admin v2 — Workspace Components CSS
   ═══════════════════════════════════════════ */

/* ── Workspace containers ── */
.workspace-content { display: none; }
.workspace-content.active { display: block; animation: fadeIn .2s ease; }

.ws-header {
    display: none; /* Title already shown in top header bar */
}

/* ── Tabs ── */
.ws-tabs {
    display: flex; gap: 6px; padding: 5px;
    background: var(--bg); border-radius: 14px; border: 1px solid var(--border-light);
    margin-bottom: 18px; overflow-x: auto; flex-wrap: nowrap;
}
.ws-tab {
    padding: 10px 20px; border: none; background: transparent;
    border-radius: 10px; cursor: pointer; font-family: inherit;
    font-size: .84rem; font-weight: 700; color: var(--text-muted);
    transition: all .2s ease; white-space: nowrap; display: flex;
    align-items: center; gap: 8px;
}
.ws-tab:hover { background: rgba(255,255,255,.8); color: var(--text); }
.ws-tab.active {
    background: var(--card); color: var(--accent); box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.ws-tab i { font-size: .78rem; }
.tab-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; border-radius: 10px; padding: 0 6px;
    font-size: .65rem; font-weight: 800; background: var(--bg);
    color: var(--text-muted);
}
.ws-tab.active .tab-count { background: rgba(99,102,241,.1); color: var(--accent); }

/* ── Filter bar ── */
.ws-filter-bar {
    display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
    padding: 12px 16px; background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); margin-bottom: 12px;
}
.ws-filter-search { flex: 1; min-width: 200px; }
.ws-filter-search .form-control { height: 36px; font-size: .82rem; }
.ws-filter-select .form-control { height: 36px; font-size: .82rem; min-width: 140px; }
.ws-filter-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ws-filter-count { font-size: .8rem; color: var(--text-muted); white-space: nowrap; }

/* Chips */
.ws-chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 12px; border-radius: 20px; border: 1.5px solid var(--border);
    background: var(--card); color: var(--text-muted); font-size: .75rem;
    font-weight: 600; cursor: pointer; transition: all .15s; font-family: inherit;
    white-space: nowrap;
}
.ws-chip:hover { border-color: var(--accent); color: var(--accent); }
.ws-chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.ws-chip i { font-size: .7rem; }
.chip-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; border-radius: 9px; padding: 0 4px;
    font-size: .65rem; background: rgba(0,0,0,.08); font-weight: 700;
}
.ws-chip.active .chip-count { background: rgba(255,255,255,.3); }

/* ── Summary strip ── */
.ws-summary-strip {
    display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px;
}
.ws-summary-item {
    display: flex; flex-direction: column; align-items: center;
    padding: 10px 18px; background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); min-width: 80px;
}
.ws-summary-item strong { font-size: 1.1rem; font-weight: 700; }
.ws-summary-item span { font-size: .72rem; color: var(--text-muted); }
.ws-summary-item.success strong { color: #16a34a; }
.ws-summary-item.warning strong { color: #d97706; }
.ws-summary-item.danger strong { color: #dc2626; }
.ws-summary-item.info strong { color: #2563eb; }
.ws-summary-item.purple strong { color: #7c3aed; }

/* ── Summary groups ── */
.ws-summary-group {
    flex: 1; min-width: 280px; padding: 14px 16px;
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.ws-summary-group-label {
    font-size: .78rem; font-weight: 700; color: var(--text-muted);
    margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}
.ws-summary-group-label i { font-size: .72rem; }
.ws-summary-group-items { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Tables in workspaces ── */
.ws-table { width: 100%; }
.ws-table th { font-size: .75rem; font-weight: 700; color: var(--text-muted); text-transform: none; }
.ws-table td { font-size: .82rem; vertical-align: top; }
.ws-row:hover { background: var(--bg); }

/* ── Sortable table headers ── */
.ws-table th.th-sortable { cursor: pointer; user-select: none; white-space: nowrap; transition: color .15s, background .15s; }
.ws-table th.th-sortable:hover { color: var(--primary, #6366f1); background: rgba(99,102,241,.04); }
.ws-table th.th-sorted { color: var(--primary, #6366f1); }
.ws-table th .sort-arrow { font-size: .6rem; margin-right: 2px; opacity: .3; transition: opacity .15s; }
.ws-table th .sort-arrow.active { opacity: 1; color: var(--primary, #6366f1); }

/* ── Side Panel ── */
.side-panel {
    position: fixed; top: 0; left: 0; width: 880px; max-width: 94vw;
    height: 100vh; background: var(--card); box-shadow: -4px 0 24px rgba(0,0,0,.12);
    z-index: 200; transform: translateX(-100%); transition: transform .25s ease;
    display: flex; flex-direction: column; overflow: hidden;
}
[dir="rtl"] .side-panel {
    left: auto; right: 0; transform: translateX(100%);
    box-shadow: 4px 0 24px rgba(0,0,0,.12);
}
.side-panel.open { transform: translateX(0); }
.side-panel-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.3);
    z-index: 199; opacity: 0; pointer-events: none; transition: opacity .25s;
}
.side-panel-overlay.open { opacity: 1; pointer-events: auto; }

.side-panel-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.side-panel-header h3 { font-size: 1rem; font-weight: 700; margin: 0; }
.side-panel-close {
    width: 32px; height: 32px; border: none; background: var(--bg);
    border-radius: 8px; font-size: 1.2rem; cursor: pointer; color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
}
.side-panel-close:hover { background: var(--border); }

.side-panel-body {
    flex: 1; overflow-y: auto; padding: 16px 20px;
}
.side-panel-footer {
    padding: 12px 20px; border-top: 1px solid var(--border); flex-shrink: 0;
}

/* ── Dashboard action board ── */
.dash-action-banner {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 20px; border-radius: var(--radius-sm);
    margin-bottom: 20px; border: 1.5px solid;
}
.dash-action-banner.severe { background: #fef2f2; border-color: #fca5a5; color: #991b1b; }
.dash-action-banner.moderate { background: #fffbeb; border-color: #fcd34d; color: #92400e; }
.dash-action-banner.clear { background: #f0fdf4; border-color: #86efac; color: #166534; }
.dash-action-banner-icon { font-size: 1.5rem; }
.dash-action-banner-text strong { display: block; font-size: 1rem; margin-bottom: 2px; }
.dash-action-banner-text span { font-size: .82rem; opacity: .8; }

.dash-section { margin-bottom: 24px; }
.dash-section-secondary { opacity: .85; }
.dash-section-title { font-size: .95rem; font-weight: 700; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; color: var(--text); }
.dash-section-title i { color: var(--text-muted); font-size: .85rem; }

.dash-queue-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px;
}
.dash-queue-card {
    padding: 16px; border-radius: var(--radius-sm); background: var(--card);
    border: 1.5px solid var(--border); transition: all .15s;
}
.dash-queue-card:hover { box-shadow: var(--shadow-sm); }
.dash-queue-card[style*="cursor"] { cursor: pointer; }
.dash-queue-card.warning { border-color: #fbbf24; background: #fffbeb; }
.dash-queue-card.danger { border-color: #f87171; background: #fef2f2; }
.dash-queue-card.success { border-color: #86efac; background: #f0fdf4; }
.dash-queue-card.info { border-color: #93c5fd; background: #eff6ff; }
.dash-queue-count { font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; }
.dash-queue-label { font-size: .78rem; color: var(--text-muted); line-height: 1.4; }
.dash-queue-amount { font-size: .75rem; color: #dc2626; margin-top: 4px; font-weight: 600; }

.dash-dual-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.dash-dual-card {
    padding: 18px; background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.dash-dual-card .dash-section-title { margin-bottom: 14px; }
.dash-ops-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px;
}
.dash-ops-card {
    padding: 14px; background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); text-align: center;
}
.dash-ops-value { font-size: 1.15rem; font-weight: 800; }
.dash-ops-label { font-size: .72rem; color: var(--text-muted); margin-top: 2px; }

/* ── Tri-source validation grid ── */
.dash-validation-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px;
}
.dash-validation-card {
    padding: 16px; border-radius: var(--radius-sm); background: var(--card);
    border: 1.5px solid var(--border); text-align: center;
}
.dash-validation-value { font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; }
.dash-validation-label { font-size: .76rem; color: var(--text-secondary); line-height: 1.4; }
.dash-validation-source { font-size: .65rem; color: var(--text-muted); margin-top: 6px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.dash-validation-card.total { border-color: #93c5fd; background: #eff6ff; }
.dash-validation-card.total .dash-validation-value { color: #2563eb; }
.dash-validation-card.success { border-color: #86efac; background: #f0fdf4; }
.dash-validation-card.success .dash-validation-value { color: #16a34a; }
.dash-validation-card.purple { border-color: #c4b5fd; background: #f5f3ff; }
.dash-validation-card.purple .dash-validation-value { color: #7c3aed; }
.dash-validation-card.warning { border-color: #fcd34d; background: #fffbeb; }
.dash-validation-card.warning .dash-validation-value { color: #d97706; }
.dash-validation-card.danger { border-color: #fca5a5; background: #fef2f2; }
.dash-validation-card.danger .dash-validation-value { color: #dc2626; }
.text-success { color: #16a34a; }
.text-primary { color: var(--accent); }

.dash-health-row { display: flex; gap: 16px; flex-wrap: wrap; }
.dash-health-item { display: flex; align-items: center; gap: 8px; font-size: .82rem; }
.dash-health-dot {
    width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.dash-health-item.healthy .dash-health-dot { background: #16a34a; }
.dash-health-item.error .dash-health-dot { background: #dc2626; }

/* ── Pagination ── */
.pagination-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 0; gap: 12px; flex-wrap: wrap;
}
.pagination-info { font-size: .8rem; color: var(--text-muted); }
.pagination-buttons { display: flex; gap: 4px; }
.pagination-btn {
    min-width: 32px; height: 32px; border: 1px solid var(--border);
    background: var(--card); border-radius: 6px; cursor: pointer;
    font-size: .8rem; font-family: inherit; display: flex;
    align-items: center; justify-content: center;
}
.pagination-btn:hover { border-color: var(--accent); color: var(--accent); }
.pagination-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── Forms catalog ── */
.forms-catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.form-catalog-card {
    padding: 16px; background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); transition: box-shadow .15s;
}
.form-catalog-card:hover { box-shadow: var(--shadow-sm); }
.form-catalog-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.form-catalog-count { font-size: .75rem; color: var(--text-muted); }
.form-catalog-title { font-size: .9rem; font-weight: 700; margin-bottom: 6px; line-height: 1.4; }
.form-catalog-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: .72rem; color: var(--text-muted); }

/* ── Export grid ── */
.export-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.export-card {
    padding: 24px; background: var(--card); border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); text-align: center; cursor: pointer;
    transition: all .15s;
}
.export-card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.export-card i { font-size: 2rem; color: var(--accent); margin-bottom: 12px; display: block; }
.export-card h4 { font-size: .95rem; font-weight: 700; margin: 0 0 6px; }
.export-card p { font-size: .78rem; color: var(--text-muted); margin: 0; }

/* ── Health grid ── */
.health-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.health-dot.green { background: #16a34a; }
.health-dot.red { background: #dc2626; }

/* ── Spreadsheet tab buttons (reuse) ── */
.ss-tab { background: var(--bg); color: var(--text-muted); border: 1.5px solid var(--border); cursor: pointer; padding: 6px 12px; font-size: .75rem; border-radius: 8px; font-family: inherit; font-weight: 600; }
.ss-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.ss-tab:hover:not(.active) { background: var(--border); }

/* ════════════════════════════════════════════════════════════
   SIDEBAR NAV — Flat Compact (always visible, no scroll)
   ════════════════════════════════════════════════════════════ */

/* Color palette per group */
.nav-clr-emerald { --gc: #34d399; --gc-dim: rgba(52,211,153,.5); }
.nav-clr-blue    { --gc: #60a5fa; --gc-dim: rgba(96,165,250,.5); }
.nav-clr-violet  { --gc: #a78bfa; --gc-dim: rgba(167,139,250,.5); }
.nav-clr-rose    { --gc: #fb7185; --gc-dim: rgba(251,113,133,.5); }
.nav-clr-slate   { --gc: #94a3b8; --gc-dim: rgba(148,163,184,.5); }
.nav-clr-amber   { --gc: #f59e0b; --gc-dim: rgba(245,158,11,.5); }

/* ── Nav Separator ── */
.nav-separator {
    height: 1px;
    margin: 8px 18px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.08) 30%, rgba(255,255,255,.08) 70%, transparent 100%);
}

/* ── Nav Group ── */
.nav-group {
    margin: 0 6px;
    padding: 0;
}

/* ── Group Label (colored section divider) ── */
.nav-group-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 12px 4px;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--gc-dim, rgba(255,255,255,.32));
    cursor: pointer;
    user-select: none;
    transition: color .15s;
}
.nav-group-label:hover { color: var(--gc, rgba(255,255,255,.7)); }
.nav-group.active-group .nav-group-label { color: var(--gc, rgba(255,255,255,.65)); }

/* Group icon */
.ng-icon {
    font-size: .65rem;
    color: var(--gc, rgba(255,255,255,.35));
    opacity: .6;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}
.nav-group.active-group .ng-icon { opacity: 1; }

/* ── Sub-items ── */
.nav-subitem {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 14px;
    border-radius: 8px;
    color: rgba(255,255,255,.55);
    font-size: .88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .12s ease;
    text-decoration: none;
    position: relative;
}
.nav-subitem i {
    width: 16px;
    text-align: center;
    font-size: .72rem;
    color: var(--gc, rgba(255,255,255,.35));
    opacity: .5;
    transition: all .12s;
}
.nav-subitem:hover {
    color: rgba(255,255,255,.92);
    background: rgba(255,255,255,.06);
}
.nav-subitem:hover i { opacity: .85; }

/* Active sub-item */
.nav-subitem.active {
    color: #fff;
    background: rgba(255,255,255,.08);
    font-weight: 700;
}
.nav-subitem.active::before {
    content: '';
    position: absolute;
    right: 0; top: 50%; transform: translateY(-50%);
    width: 3px; height: 55%;
    background: var(--gc, #818cf8);
    border-radius: 3px 0 0 3px;
}
html[dir="ltr"] .nav-subitem.active::before {
    right: auto; left: 0;
    border-radius: 0 3px 3px 0;
}
.nav-subitem.active i { opacity: 1; color: var(--gc, #818cf8); }

/* ── Responsive ── */
/* ── Communication Workspace ── */
.compose-ch-btn { border: 1.5px solid var(--border); background: var(--card); color: var(--text); transition: all .15s; }
.compose-ch-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.notif-tab-btn { border: 1.5px solid var(--border); background: var(--card); color: var(--text); transition: all .15s; border-radius: 8px; }
.notif-tab-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.ws-row { transition: background .12s; }
.ws-row:hover { background: rgba(99,102,241,.04); }

/* ════════════════════════════════════════════════════════════
   DASHBOARD v2 — Modern Redesign
   ════════════════════════════════════════════════════════════ */

/* Hero strip */
.dash2-hero {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px;
}
.dash2-hero-card {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 16px; border-radius: 14px;
    background: var(--card); border: 1px solid var(--border);
    transition: box-shadow .15s;
}
.dash2-hero-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.dash2-hero-icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
}
.dash2-hero-card.primary .dash2-hero-icon { background: rgba(99,102,241,.1); color: #6366f1; }
.dash2-hero-card.green .dash2-hero-icon { background: rgba(22,163,106,.1); color: #16a34a; }
.dash2-hero-card.blue .dash2-hero-icon { background: rgba(37,99,235,.1); color: #2563eb; }
.dash2-hero-card.purple .dash2-hero-icon { background: rgba(124,58,237,.1); color: #7c3aed; }
.dash2-hero-value { font-size: 1.3rem; font-weight: 800; color: var(--text); line-height: 1.2; }
.dash2-hero-label { font-size: .76rem; color: var(--text-muted); font-weight: 600; }
.dash2-hero-sub { font-size: .68rem; color: var(--text-muted); opacity: .7; margin-top: 2px; }

/* Sections */
.dash2-section {
    background: var(--card); border: 1px solid var(--border); border-radius: 16px;
    overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.dash2-section-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px 12px; border-bottom: 1px solid var(--border-light);
}
.dash2-section-head h3 {
    font-size: .92rem; font-weight: 800; margin: 0;
    display: flex; align-items: center; gap: 8px; color: var(--text);
}
.dash2-section-head h3 i { font-size: .8rem; color: var(--accent); }
.dash2-badge-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 24px; height: 24px; border-radius: 12px; padding: 0 8px;
    font-size: .72rem; font-weight: 800; background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff;
    box-shadow: 0 2px 6px rgba(220,38,38,.25);
}
/* Attention section highlight */
.dash2-attention-section {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 14px;
}
.dash2-attention-section .dash2-section-head { margin-bottom: 12px; }
.dash2-attention-section .dash2-section-head h3 i { color: #d97706; }
.dash2-link-btn {
    border: 1px solid rgba(99,102,241,.15); background: rgba(99,102,241,.04);
    color: var(--accent); font-size: .76rem; font-weight: 700; cursor: pointer;
    font-family: inherit; display: flex; align-items: center; gap: 5px;
    padding: 5px 12px; border-radius: 8px; transition: all .15s;
}
.dash2-link-btn:hover { background: rgba(99,102,241,.1); border-color: rgba(99,102,241,.3); }
.dash2-link-btn i { font-size: .62rem; }

/* Two-column layout */
.dash2-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.dash2-columns > .dash2-section { margin-bottom: 0; }

/* All-clear */
.dash2-all-clear {
    display: flex; align-items: center; gap: 10px; padding: 10px 0;
    font-size: .88rem; color: #16a34a; font-weight: 600;
}
.dash2-all-clear i { font-size: 1.1rem; }

/* Action cards */
.dash2-action-grid { display: flex; flex-direction: column; gap: 8px; }
.dash2-action-card {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 16px; border-radius: 10px;
    border: 1px solid var(--border); transition: all .15s; cursor: pointer;
}
.dash2-action-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.dash2-action-card.warning { background: #fffbeb; border-color: #fde68a; }
.dash2-action-card.danger { background: #fef2f2; border-color: #fecaca; }
.dash2-action-card.info { background: #eff6ff; border-color: #bfdbfe; }
.dash2-action-card.clear { background: #f0fdf4; border-color: #bbf7d0; }
.dash2-action-icon {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem; flex-shrink: 0;
}
.dash2-action-card.warning .dash2-action-icon { background: rgba(245,158,11,.12); color: #d97706; }
.dash2-action-card.danger .dash2-action-icon { background: rgba(239,68,68,.12); color: #dc2626; }
.dash2-action-card.info .dash2-action-icon { background: rgba(59,130,246,.12); color: #2563eb; }
.dash2-action-card.clear .dash2-action-icon { background: rgba(34,197,94,.12); color: #16a34a; }
.dash2-action-body { flex: 1; }
.dash2-action-count { font-size: 1.15rem; font-weight: 800; line-height: 1.2; }
.dash2-action-label { font-size: .78rem; color: var(--text-muted); }
.dash2-action-amount { font-size: .72rem; color: #dc2626; font-weight: 600; margin-top: 2px; }
.dash2-action-arrow { color: var(--text-muted); font-size: .7rem; opacity: .5; }

/* Upcoming / Recent lists */
.dash2-upcoming-list, .dash2-recent-list, .dash2-failed-list {
    display: flex; flex-direction: column; gap: 0;
}
.dash2-upcoming-row, .dash2-recent-row, .dash2-failed-row {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 4px; border-bottom: 1px solid var(--border);
}
.dash2-upcoming-row:last-child, .dash2-recent-row:last-child, .dash2-failed-row:last-child { border-bottom: none; }
.dash2-upcoming-name, .dash2-recent-name, .dash2-failed-name { font-size: .84rem; font-weight: 600; }
.dash2-upcoming-meta, .dash2-recent-meta, .dash2-failed-meta { font-size: .72rem; color: var(--text-muted); margin-top: 2px; }
.dash2-upcoming-meta code, .dash2-recent-meta code, .dash2-failed-meta code { font-size: .68rem; color: #6366f1; background: rgba(99,102,241,.06); padding: 1px 5px; border-radius: 4px; }
.dash2-recent-icon { flex-shrink: 0; font-size: .9rem; }
.dash2-recent-amount { font-size: .9rem; font-weight: 700; color: #16a34a; white-space: nowrap; }
.dash2-upcoming-actions { display: flex; gap: 5px; flex-shrink: 0; }
.dash2-quick-btn {
    width: 30px; height: 30px; border: 1px solid var(--border);
    background: var(--card); border-radius: 8px; cursor: pointer;
    font-size: .72rem; color: var(--accent); display: flex;
    align-items: center; justify-content: center; transition: all .12s;
}
.dash2-quick-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.dash2-quick-btn.warn { color: #d97706; border-color: #fde68a; }
.dash2-quick-btn.warn:hover { background: #d97706; color: #fff; border-color: #d97706; }
.dash2-empty-mini { padding: 30px 20px; text-align: center; color: var(--text-muted); font-size: .84rem; }
.dash2-empty-mini i { margin-left: 6px; font-size: 1.2rem; display: block; margin-bottom: 8px; opacity: .4; }

/* Stat grid */
.dash2-stat-grid { display: grid; gap: 8px; }
.dash2-stat-grid.three { grid-template-columns: repeat(3, 1fr); }
.dash2-stat-grid.four { grid-template-columns: repeat(4, 1fr); }
.dash2-stat { text-align: center; padding: 12px 8px; background: var(--bg); border-radius: 10px; }
.dash2-stat-val { font-size: 1.3rem; font-weight: 800; line-height: 1.2; }
.dash2-stat-val.green { color: #16a34a; }
.dash2-stat-val.orange { color: #d97706; }
.dash2-stat-val.blue { color: #2563eb; }
.dash2-stat-val.purple { color: #7c3aed; }
.dash2-stat-val.red { color: #dc2626; }
.dash2-stat-lbl { font-size: .7rem; color: var(--text-muted); font-weight: 600; margin-top: 3px; }

/* Mini bar */
.dash2-mini-bar {
    display: flex; height: 6px; border-radius: 3px;
    background: var(--bg); overflow: hidden; margin: 10px 0 6px;
}
.dash2-bar-fill { height: 100%; transition: width .4s ease; }
.dash2-bar-fill.green { background: #16a34a; }
.dash2-bar-fill.purple { background: #7c3aed; }
.dash2-bar-fill.orange { background: #d97706; }
.dash2-stat-footer { font-size: .72rem; color: var(--text-muted); text-align: center; }

/* Payment breakdown */
.dash2-breakdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.dash2-breakdown-card {
    border-radius: 10px; overflow: hidden; background: var(--bg);
    border: 1px solid var(--border);
}
.dash2-breakdown-bar { height: 4px; }
.dash2-breakdown-body { padding: 12px; text-align: center; }
.dash2-breakdown-count { font-size: 1.15rem; font-weight: 800; }
.dash2-breakdown-label { font-size: .72rem; color: var(--text-muted); margin: 2px 0; }
.dash2-breakdown-total { font-size: .82rem; font-weight: 700; color: #16a34a; }

/* Validation strip */
.dash2-validation-strip {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    justify-content: center;
}
.dash2-vstrip-item {
    display: flex; flex-direction: column; align-items: center;
    padding: 10px 16px; border-radius: 10px; min-width: 90px;
}
.dash2-vstrip-item.total { background: #eff6ff; }
.dash2-vstrip-item.ok { background: #f0fdf4; }
.dash2-vstrip-item.great { background: #f5f3ff; }
.dash2-vstrip-item.warn { background: #fffbeb; }
.dash2-vstrip-item.err { background: #fef2f2; }
.dash2-vstrip-val { font-size: 1.2rem; font-weight: 800; }
.dash2-vstrip-item.total .dash2-vstrip-val { color: #2563eb; }
.dash2-vstrip-item.ok .dash2-vstrip-val { color: #16a34a; }
.dash2-vstrip-item.great .dash2-vstrip-val { color: #7c3aed; }
.dash2-vstrip-item.warn .dash2-vstrip-val { color: #d97706; }
.dash2-vstrip-item.err .dash2-vstrip-val { color: #dc2626; }
.dash2-vstrip-lbl { font-size: .68rem; color: var(--text-muted); text-align: center; margin-top: 2px; }
.dash2-vstrip-sep { color: var(--text-muted); font-size: .7rem; opacity: .4; }

/* Health strip */
.dash2-health-strip {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    padding: 10px 16px; background: var(--card); border: 1px solid var(--border);
    border-radius: 10px; margin-bottom: 14px;
}
.dash2-health-item { display: flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 500; }
.dash2-health-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dash2-health-item.healthy .dash2-health-dot { background: #16a34a; box-shadow: 0 0 6px rgba(22,163,106,.4); }
.dash2-health-item.warning .dash2-health-dot { background: #d97706; }
.dash2-health-item.error .dash2-health-dot { background: #dc2626; box-shadow: 0 0 6px rgba(220,38,38,.4); }
.dash2-health-time { margin-right: auto; font-size: .72rem; color: var(--text-muted); opacity: .6; }
html[dir="ltr"] .dash2-health-time { margin-right: 0; margin-left: auto; }

/* ════════════════════════════════════════════════════════════
   FORMS WORKSPACE v3 — Pro Redesign
   ════════════════════════════════════════════════════════════ */

/* ── Hero summary cards ── */
.forms3-hero {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
    margin-bottom: 24px;
}
.forms3-hero-card {
    position: relative; overflow: hidden;
    padding: 20px 18px; border-radius: 16px;
    background: var(--card); border: 1px solid var(--border);
    display: flex; align-items: center; gap: 16px;
    transition: all .2s ease;
}
.forms3-hero-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.forms3-hero-card::after {
    content: ''; position: absolute; inset: 0;
    background: var(--hero-grad, transparent); opacity: .04;
    pointer-events: none; border-radius: 16px;
}
.forms3-hero-card.primary { --hero-grad: linear-gradient(135deg, #6366f1, #818cf8); --hero-clr: #6366f1; }
.forms3-hero-card.green   { --hero-grad: linear-gradient(135deg, #16a34a, #22c55e); --hero-clr: #16a34a; }
.forms3-hero-card.blue    { --hero-grad: linear-gradient(135deg, #2563eb, #60a5fa); --hero-clr: #2563eb; }
.forms3-hero-card.purple  { --hero-grad: linear-gradient(135deg, #7c3aed, #a78bfa); --hero-clr: #7c3aed; }
.forms3-hero-icon {
    width: 48px; height: 48px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem; flex-shrink: 0;
    background: color-mix(in srgb, var(--hero-clr, #6366f1) 10%, transparent);
    color: var(--hero-clr, #6366f1);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--hero-clr, #6366f1) 5%, transparent);
}
.forms3-hero-body { flex: 1; min-width: 0; }
.forms3-hero-value {
    font-size: 1.5rem; font-weight: 800; color: var(--text);
    line-height: 1.15; letter-spacing: -.02em;
}
.forms3-hero-label { font-size: .76rem; color: var(--text-muted); font-weight: 600; margin-top: 2px; }
.forms3-hero-sub { font-size: .68rem; color: var(--text-muted); opacity: .7; margin-top: 1px; }

/* ── Filter bar (catalog) ── */
.forms3-filter-bar {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 10px 16px; background: var(--card); border: 1px solid var(--border);
    border-radius: 14px; margin-bottom: 22px;
}
.forms3-filter-bar .ws-filter-search { flex: 1; min-width: 200px; }
.forms3-filter-bar .ws-filter-chips { display: flex; gap: 6px; }

/* ── Category group ── */
.forms2-group { margin-bottom: 28px; }
.forms2-group-head {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 16px; padding: 14px 18px;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 14px; position: relative; overflow: hidden;
}
.forms2-group-head::before {
    content: ''; position: absolute; top: 0; right: 0;
    width: 4px; height: 100%; border-radius: 0 14px 14px 0;
    background: var(--group-clr, var(--border));
}
html[dir="ltr"] .forms2-group-head::before { right: auto; left: 0; border-radius: 14px 0 0 14px; }
.forms2-group-icon {
    width: 42px; height: 42px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; flex-shrink: 0;
}
.forms2-group-icon.mollie { background: rgba(99,102,241,.1); color: #6366f1; }
.forms2-group-icon.paypal { background: rgba(0,112,243,.1); color: #0070f3; }
.forms2-group-icon.other { background: rgba(148,163,184,.1); color: #64748b; }
.forms2-group-head-text { flex: 1; }
.forms2-group-title { font-size: .92rem; font-weight: 700; color: var(--text); }
.forms2-group-sub { font-size: .74rem; color: var(--text-muted); margin-top: 2px; }
.forms2-group-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 28px; height: 28px; border-radius: 8px; padding: 0 8px;
    font-size: .72rem; font-weight: 700;
    background: var(--bg); color: var(--text-muted); flex-shrink: 0;
}

/* Enhanced group header colors */
.forms2-group-head.forms2-group-mollie { --group-clr: #6366f1; }
.forms2-group-head.forms2-group-paypal { --group-clr: #0070f3; }
.forms2-group-head.forms2-group-other  { --group-clr: #94a3b8; }

/* ── Form cards grid ── */
.forms2-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}
.forms2-card {
    padding: 0; border-radius: 14px; overflow: hidden;
    background: var(--card); border: 1px solid var(--border);
    cursor: pointer; transition: all .22s ease; position: relative;
    display: flex; flex-direction: column;
}
.forms2-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(99,102,241,.1), 0 2px 8px rgba(0,0,0,.04);
    transform: translateY(-3px);
}
.forms2-card.disabled { opacity: .55; filter: grayscale(.3); }
.forms2-card.disabled:hover { opacity: .75; filter: none; }

/* Accent bar at top of card */
.forms2-card-accent {
    height: 4px; width: 100%;
    background: linear-gradient(90deg, var(--border) 0%, var(--border) 100%);
    transition: background .2s;
}
.forms2-card:hover .forms2-card-accent { background: linear-gradient(90deg, var(--accent), #818cf8); }
.forms2-card-integrated .forms2-card-accent { background: linear-gradient(90deg, #6366f1, #818cf8); }
.forms2-card-has-new .forms2-card-accent { background: linear-gradient(90deg, #16a34a, #4ade80); }

/* Card inner content */
.forms2-card-inner { padding: 16px 18px 14px; flex: 1; display: flex; flex-direction: column; }
.forms2-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.forms2-card-icon {
    width: 38px; height: 38px; border-radius: 11px;
    background: var(--bg); display: flex; align-items: center;
    justify-content: center; font-size: .9rem; color: var(--text-muted);
    transition: all .2s;
}
.forms2-card:hover .forms2-card-icon { background: rgba(99,102,241,.08); color: var(--accent); }
.forms2-card-badges { display: flex; gap: 4px; flex-wrap: wrap; }
.forms2-card-badge {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 3px 8px; border-radius: 6px;
    font-size: .62rem; font-weight: 700; letter-spacing: .01em;
}
.forms2-card-badge.active { background: rgba(22,163,74,.08); color: #16a34a; }
.forms2-card-badge.disabled { background: rgba(148,163,184,.1); color: #94a3b8; }
.forms2-card-badge.integrated { background: rgba(99,102,241,.08); color: #6366f1; }
.forms2-card-badge.new-badge { background: rgba(22,163,74,.1); color: #16a34a; }

.forms2-card-title {
    font-size: .88rem; font-weight: 700; line-height: 1.45;
    margin-bottom: 6px; color: var(--text);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.forms2-card-desc { font-size: .72rem; color: var(--text-muted); margin-bottom: 8px; }

/* Card footer with stats + action */
.forms2-card-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 18px; border-top: 1px solid var(--border);
    background: var(--bg); margin-top: auto;
}
.forms2-card-stats {
    display: flex; gap: 14px; font-size: .74rem; color: var(--text-muted);
}
.forms2-card-stats span { display: flex; align-items: center; gap: 4px; }
.forms2-card-stats i { font-size: .62rem; opacity: .7; }
.forms2-card-meta { font-size: .68rem; color: var(--text-muted); opacity: .7; margin-top: 4px; }
.forms2-card-action {
    display: flex; align-items: center; gap: 5px;
    font-size: .73rem; color: var(--accent); font-weight: 600;
    opacity: 0; transform: translateX(4px);
    transition: all .2s ease;
}
.forms2-card:hover .forms2-card-action { opacity: 1; transform: translateX(0); }
.forms2-card-action i { font-size: .58rem; }

/* New count styling */
.forms2-new-count { color: #16a34a; font-weight: 700; }
.forms2-new-count i { margin-left: 2px; font-size: .55rem; }

/* ── Submission view — stats strip ── */
.forms2-stats-strip {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px; margin-bottom: 16px;
}
.forms2-stat-item {
    padding: 16px 14px; text-align: center;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 12px; position: relative; overflow: hidden;
    transition: all .15s;
}
.forms2-stat-item:hover { border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); }
.forms2-stat-icon {
    width: 32px; height: 32px; border-radius: 9px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .78rem; margin-bottom: 8px;
    background: var(--bg); color: var(--text-muted);
}
.forms2-stat-value { font-size: 1.25rem; font-weight: 800; color: var(--text); line-height: 1.2; }
.forms2-stat-label { font-size: .7rem; color: var(--text-muted); margin-top: 4px; font-weight: 500; }
.forms2-stat-highlight { border-color: rgba(22,163,74,.3); background: rgba(22,163,74,.02); }
.forms2-stat-highlight .forms2-stat-icon { background: rgba(22,163,74,.08); color: #16a34a; }
.forms2-stat-highlight .forms2-stat-value { color: #16a34a; }

/* ── Date range filter ── */
.forms2-date-range {
    display: flex; align-items: center; gap: 6px;
}
.forms2-date-range input[type="date"] {
    width: 130px; padding: 5px 10px; font-size: .75rem;
    border: 1px solid var(--border); border-radius: 8px;
    background: var(--bg); color: var(--text); font-family: inherit;
    transition: border-color .15s;
}
.forms2-date-range input[type="date"]:focus { border-color: var(--accent); outline: none; }

/* ── New submission indicators ── */
.forms2-row-new { background: rgba(22,163,74,.03); }
.forms2-row-new:hover { background: rgba(22,163,74,.07); }
.forms2-new-dot {
    display: inline-block; width: 7px; height: 7px; border-radius: 50%;
    background: #16a34a; margin-right: 6px; vertical-align: middle;
    box-shadow: 0 0 0 3px rgba(22,163,74,.15);
    animation: forms2-pulse 2s infinite;
}
@keyframes forms2-pulse { 0%, 100% { opacity: 1; box-shadow: 0 0 0 3px rgba(22,163,74,.15); } 50% { opacity: .5; box-shadow: 0 0 0 6px rgba(22,163,74,.05); } }
.forms2-new-badge {
    display: inline-block; font-size: .6rem; font-weight: 700;
    background: linear-gradient(135deg, #16a34a, #22c55e); color: #fff;
    padding: 2px 10px; border-radius: 10px;
    margin-right: 6px; vertical-align: middle;
}

/* ── File/image rendering in side panel ── */
.forms2-file-list { display: flex; flex-wrap: wrap; gap: 10px; }
.forms2-file-thumb {
    width: 110px; border-radius: 10px; overflow: hidden;
    border: 1px solid var(--border); text-align: center;
    transition: all .15s;
}
.forms2-file-thumb:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.forms2-file-thumb img { width: 100%; height: 85px; object-fit: cover; display: block; }
.forms2-file-fallback {
    width: 100%; height: 85px; display: flex; align-items: center;
    justify-content: center; background: var(--bg); color: var(--text-muted); font-size: 1.5rem;
}
.forms2-file-name {
    display: block; font-size: .65rem; padding: 5px; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap; color: var(--accent);
    text-decoration: none;
}
.forms2-file-link {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: .78rem; color: var(--accent); text-decoration: none;
    padding: 7px 14px; border: 1px solid var(--border); border-radius: 10px;
    transition: all .15s;
}
.forms2-file-link:hover { background: rgba(99,102,241,.04); border-color: var(--accent); }

/* ── Submissions sub-header ── */
.forms2-subheader {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 20px; background: var(--card); border: 1px solid var(--border);
    border-radius: 16px; margin-bottom: 16px; flex-wrap: wrap;
    box-shadow: var(--shadow-xs);
}
.forms2-back-btn {
    border: 1px solid var(--border); background: var(--card);
    border-radius: 10px; padding: 8px 16px; cursor: pointer;
    font-size: .8rem; font-family: inherit; font-weight: 600;
    color: var(--text-muted); display: flex; align-items: center; gap: 6px;
    transition: all .15s;
}
.forms2-back-btn:hover {
    border-color: var(--accent); color: var(--accent);
    background: rgba(99,102,241,.04);
}
.forms2-back-btn i { font-size: .7rem; }
.forms2-subheader-info { flex: 1; }
.forms2-subheader-title {
    font-size: 1.05rem; font-weight: 700; display: flex; align-items: center; gap: 8px;
}
.forms2-subheader-title i { font-size: .9rem; color: var(--accent); }
.forms2-subheader-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; }

/* ════════════════════════════════════════════════════════════
   REPORTS & ANALYTICS
   ════════════════════════════════════════════════════════════ */

/* Report cards grid */
.rpt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.rpt-card {
    padding: 16px; border-radius: 12px;
    background: var(--card); border: 1px solid var(--border);
    transition: all .15s; cursor: default;
}
.rpt-card:hover { border-color: var(--accent); box-shadow: 0 4px 14px rgba(99,102,241,.06); }
.rpt-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.rpt-card-icon {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem;
}
.rpt-dl-btn {
    border: 1px solid var(--border); background: var(--bg);
    border-radius: 8px; padding: 5px 12px; cursor: pointer;
    font-size: .75rem; font-family: inherit; font-weight: 600;
    color: var(--accent); display: flex; align-items: center; gap: 5px;
    transition: all .12s;
}
.rpt-dl-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.rpt-dl-btn i { font-size: .7rem; }
.rpt-card-title { font-size: .88rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.rpt-card-desc { font-size: .76rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 8px; }
.rpt-card-fields {
    font-size: .68rem; color: var(--text-muted); opacity: .7;
    display: flex; align-items: flex-start; gap: 5px; line-height: 1.5;
}
.rpt-card-fields i { margin-top: 2px; flex-shrink: 0; font-size: .6rem; }

/* Analytics chart (simple bar) */
.ana-chart {
    display: flex; align-items: flex-end; gap: 4px;
    height: 180px; padding: 8px 0;
}
.ana-chart-col {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: flex-end; height: 100%;
}
.ana-chart-val { font-size: .62rem; color: var(--text-muted); margin-bottom: 4px; white-space: nowrap; }
.ana-chart-bar {
    width: 100%; min-height: 4px; border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, #6366f1, #818cf8); transition: height .4s ease;
}
.ana-chart-label { font-size: .65rem; color: var(--text-muted); margin-top: 6px; font-weight: 600; }

/* Analytics status grid */
.ana-status-grid { display: flex; gap: 12px; flex-wrap: wrap; }
.ana-status-item {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 14px; background: var(--bg); border-radius: 8px;
    font-size: .82rem;
}
.ana-status-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.ana-status-label { color: var(--text-muted); }
.ana-status-count { font-weight: 700; }

/* Responsive */
@media (max-width: 1100px) {
    .dash2-hero { grid-template-columns: repeat(2, 1fr); }
    .dash2-columns { grid-template-columns: 1fr; }
    .dash2-breakdown-grid { grid-template-columns: repeat(2, 1fr); }
    .dash2-stat-grid.four { grid-template-columns: repeat(2, 1fr); }
    .forms3-hero { grid-template-columns: repeat(2, 1fr); }
    .forms2-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
    .forms2-stats-strip { grid-template-columns: repeat(3, 1fr); }
    .rpt-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}
@media (max-width: 768px) {
    .side-panel { width: 100%; }
    .ws-filter-bar { flex-direction: column; gap: 8px; }
    .ws-filter-search { min-width: 100%; }
    .dash2-hero { grid-template-columns: 1fr; }
    .dash2-stat-grid.three { grid-template-columns: repeat(3, 1fr); }
    .dash2-breakdown-grid { grid-template-columns: 1fr 1fr; }
    .dash2-validation-strip { flex-direction: column; }
    .forms3-hero { grid-template-columns: 1fr 1fr; }
    .forms3-filter-bar { flex-direction: column; }
    .forms2-grid { grid-template-columns: 1fr; }
    .forms2-stats-strip { grid-template-columns: repeat(2, 1fr); }
    .forms2-subheader { flex-direction: column; align-items: flex-start; }
    .rpt-grid { grid-template-columns: 1fr; }
    .ana-chart { height: 120px; }
    .sys-users-grid { grid-template-columns: 1fr; }
    .sys-settings-grid { grid-template-columns: 1fr; }
    .sys-field-row { flex-direction: column; }
}

/* ═══════════════════════════════════════════════════════
   System Workspace — Settings
   ═══════════════════════════════════════════════════════ */
.sys-settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.sys-settings-section {
    background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px;
    overflow: hidden; transition: border-color .2s;
}
.sys-settings-section:hover { border-color: var(--accent); }
.sys-settings-header {
    display: flex; align-items: center; gap: 12px; padding: 16px 18px;
    border-bottom: 1px solid var(--border); background: var(--bg);
}
.sys-settings-header h3 { font-size: .88rem; font-weight: 700; margin: 0; color: var(--text); }
.sys-settings-header p { font-size: .72rem; color: var(--text-muted); margin: 2px 0 0; }
.sys-settings-icon {
    width: 38px; height: 38px; border-radius: 10px; display: flex;
    align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0;
}
.sys-settings-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.sys-settings-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

.sys-field { display: flex; flex-direction: column; gap: 4px; }
.sys-field label { font-size: .78rem; font-weight: 600; color: var(--text-muted); }
.sys-field-row { display: flex; gap: 12px; }
.sys-field-row .sys-field { flex: 1; }

.sys-email-list { display: flex; flex-direction: column; gap: 8px; }
.sys-email-row {
    display: flex; align-items: center; gap: 10px; padding: 8px 10px;
    border-radius: 8px; background: var(--bg);
}
.sys-email-avatar {
    width: 32px; height: 32px; border-radius: 8px; display: flex;
    align-items: center; justify-content: center; font-size: .8rem;
    background: rgba(96,165,250,.12); color: #2563eb;
}
.sys-email-info { flex: 1; min-width: 0; }
.sys-email-info strong { display: block; font-size: .82rem; font-weight: 600; }
.sys-email-info span { font-size: .72rem; color: var(--text-muted); }

.sys-info-grid { display: flex; flex-direction: column; gap: 8px; }
.sys-info-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 10px; border-radius: 6px; background: var(--bg);
}
.sys-info-label { font-size: .78rem; color: var(--text-muted); font-weight: 500; }
.sys-info-val { font-size: .78rem; font-weight: 700; color: var(--text); }

/* ═══════════════════════════════════════════════════════
   System Workspace — Users & Sessions
   ═══════════════════════════════════════════════════════ */
.sys-section { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.sys-section-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--bg);
}
.sys-section-header h3 { font-size: .88rem; font-weight: 700; margin: 0; color: var(--text); }
.sys-section-header p { font-size: .72rem; color: var(--text-muted); margin: 2px 0 0; }

.sys-users-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0; }
.sys-user-card {
    padding: 16px 18px; border-bottom: 1px solid var(--border);
    border-left: 1px solid var(--border); position: relative; transition: background .15s;
}
.sys-user-card:hover { background: var(--bg); }
.sys-user-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sys-user-card-info { flex: 1; min-width: 0; }
.sys-user-card-info strong { display: block; font-size: .86rem; font-weight: 700; }
.sys-user-email { font-size: .72rem; color: var(--text-muted); }
.sys-user-card-meta { display: flex; flex-direction: column; gap: 6px; }
.sys-user-meta-row { font-size: .72rem; color: var(--text-muted); }
.sys-user-meta-row i { width: 14px; margin-left: 4px; }
.sys-user-menu-btn { opacity: .4; transition: opacity .15s; }
.sys-user-card:hover .sys-user-menu-btn { opacity: 1; }

.sys-avatar {
    width: 38px; height: 38px; border-radius: 10px; display: flex;
    align-items: center; justify-content: center; color: #fff;
    font-size: .92rem; font-weight: 700; flex-shrink: 0;
}

.sys-user-menu {
    position: absolute; top: 10px; left: 10px; background: #fff;
    border: 1px solid #e8e8ef; border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,.12), 0 0 0 1px rgba(0,0,0,.03);
    z-index: 20; min-width: 190px; overflow: hidden;
    padding: 6px;
}
.sys-user-menu a {
    display: flex; align-items: center; gap: 10px; padding: 9px 14px;
    font-size: .8rem; font-weight: 500; color: #334155; cursor: pointer;
    transition: all .12s; border-radius: 8px;
}
.sys-user-menu a:hover { background: #f0f0ff; color: #4f46e5; }
.sys-user-menu a.text-danger { color: #e11d48; }
.sys-user-menu a.text-danger:hover { background: #fef2f2; color: #be123c; }
.sys-user-menu a i { width: 16px; text-align: center; font-size: .78rem; }

/* Badges */
.sys-badge {
    display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px;
    border-radius: 6px; font-size: .72rem; font-weight: 600;
}
.sys-badge i { font-size: .6rem; }
.sys-badge-purple { background: rgba(139,92,246,.12); color: #7c3aed; }
.sys-badge-blue { background: rgba(59,130,246,.12); color: #2563eb; }
.sys-badge-green { background: rgba(16,185,129,.12); color: #059669; }
.sys-badge-amber { background: rgba(245,158,11,.12); color: #d97706; }
.sys-badge-gray { background: rgba(100,116,139,.1); color: #64748b; }

/* RBAC Role Badges */
.role-badge-super_admin { background: rgba(220,38,38,.12); color: #dc2626; }
.role-badge-admin { background: rgba(37,99,235,.12); color: #2563eb; }
.role-badge-manager { background: rgba(22,163,74,.12); color: #16a34a; }
.role-badge-accountant { background: rgba(217,119,6,.12); color: #d97706; }
.role-badge-viewer { background: rgba(107,114,128,.1); color: #6b7280; }
.role-badge-uitvaart { background: rgba(124,58,237,.12); color: #7c3aed; }
.role-badge-event_manager { background: rgba(234,88,12,.12); color: #ea580c; }
.role-badge-communication { background: rgba(6,182,212,.12); color: #0891b2; }

/* Sessions */
.sys-sessions-list { padding: 6px 0; }
.sys-session-row {
    display: flex; align-items: center; gap: 12px; padding: 10px 18px;
    border-bottom: 1px solid var(--border); transition: background .15s;
}
.sys-session-row:last-child { border-bottom: none; }
.sys-session-row:hover { background: var(--bg); }
.sys-session-browser {
    width: 34px; height: 34px; border-radius: 8px; background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    font-size: .92rem; color: var(--text-muted); flex-shrink: 0;
}
.sys-session-info { flex: 1; min-width: 0; }
.sys-session-main { display: flex; align-items: baseline; gap: 8px; }
.sys-session-main strong { font-size: .82rem; }
.sys-session-detail { font-size: .72rem; color: var(--text-muted); }
.sys-session-meta {
    display: flex; flex-wrap: wrap; gap: 12px; margin-top: 3px;
    font-size: .7rem; color: var(--text-muted);
}
.sys-session-meta i { margin-left: 3px; font-size: .6rem; }

/* Modal */
.sys-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.45);
    display: flex; align-items: center; justify-content: center; z-index: 999;
    backdrop-filter: blur(2px);
}
.sys-modal {
    background: var(--card-bg); border-radius: 14px; width: 100%; max-width: 460px;
    box-shadow: 0 20px 60px rgba(0,0,0,.2); overflow: hidden;
    animation: sysModalIn .2s ease-out;
}
@keyframes sysModalIn { from { opacity: 0; transform: scale(.95) translateY(10px); } to { opacity: 1; transform: none; } }
.sys-modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.sys-modal-header h3 { font-size: .92rem; font-weight: 700; margin: 0; }
.sys-modal-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.sys-modal-footer {
    display: flex; justify-content: flex-end; gap: 8px;
    padding: 14px 20px; border-top: 1px solid var(--border); background: var(--bg);
}

/* ── User Modal Redesign ── */
.user-modal {
    max-width: 540px;
    border-radius: 16px;
    background: #fff;
    border: none;
    box-shadow: 0 25px 60px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.05);
}
.user-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #fff;
    border-radius: 16px 16px 0 0;
}
.user-modal-header-icon {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.2);
    border-radius: 10px;
    font-size: 1rem;
    backdrop-filter: blur(4px);
}
.user-modal-header h3 {
    flex: 1;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}
.user-modal-close {
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    width: 32px; height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
    font-size: .85rem;
}
.user-modal-close:hover { background: rgba(255,255,255,.3); }
.user-modal-body {
    padding: 24px;
    display: flex; flex-direction: column; gap: 20px;
    max-height: 65vh;
    overflow-y: auto;
    background: #fff;
}
.user-form-section {
    display: flex; flex-direction: column; gap: 12px;
    padding: 16px;
    background: #fafbff;
    border-radius: 12px;
    border: 1px solid #eef0ff;
}
.user-form-section-title {
    font-size: .73rem;
    font-weight: 700;
    color: #4f46e5;
    letter-spacing: .3px;
    display: flex; align-items: center; gap: 6px;
    margin-bottom: 2px;
}
.user-form-section-title i { font-size: .7rem; }
.user-form-row {
    display: flex; gap: 12px;
}
.user-form-row .user-form-field { flex: 1; }
.user-form-field {
    display: flex; flex-direction: column; gap: 5px;
}
.user-form-field label {
    font-size: .76rem;
    font-weight: 600;
    color: #374151;
}
.user-form-field label .req { color: #ef4444; font-weight: 700; }
.user-form-input,
.user-form-select {
    padding: 10px 14px;
    border: 1.5px solid #ddd6fe;
    border-radius: 10px;
    font-size: .84rem;
    font-family: inherit;
    background: #fff;
    color: #1e293b;
    transition: border-color .15s, box-shadow .15s;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}
.user-form-input::placeholder { color: #b0b8c8; }
.user-form-input:focus,
.user-form-select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,.12);
    background: #fff;
}
.user-form-select {
    font-weight: 600;
    cursor: pointer;
    appearance: auto;
    background: #fff;
}
.role-access-preview {
    display: flex; flex-direction: column; gap: 6px;
    margin-top: 8px;
}
.role-ws-group {
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
}
.role-ws-label {
    font-size: .7rem; font-weight: 700; color: #4f46e5;
    min-width: 52px; margin-left: 4px;
}
.role-perm-tag {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 11px;
    border-radius: 20px;
    font-size: .7rem;
    font-weight: 600;
}
.role-perm-tag i { font-size: .55rem; }
.role-perm-write {
    background: #dcfce7; color: #166534;
    border: 1px solid #bbf7d0;
}
.role-perm-read {
    background: #f0f0ff; color: #6366f1;
    border: 1px solid #e0e1ff;
}
.user-password-wrap {
    position: relative;
}
.user-password-wrap .user-form-input {
    padding-left: 42px;
}
.user-password-toggle {
    position: absolute;
    left: 10px; top: 50%; transform: translateY(-50%);
    background: none; border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    font-size: .85rem;
    transition: color .15s;
}
.user-password-toggle:hover { color: #6366f1; }
.user-invite-check {
    padding: 12px 16px;
    background: #f0f0ff;
    border: 1.5px solid #ddd6fe;
    border-radius: 11px;
}
.user-invite-check label {
    display: flex; align-items: center; gap: 10px;
    cursor: pointer;
    font-size: .82rem;
    font-weight: 600;
    color: #1e293b;
}
.user-invite-check input[type="checkbox"] {
    width: 18px; height: 18px;
    accent-color: #6366f1;
    cursor: pointer;
}
.user-invite-check i {
    color: #6366f1;
    font-size: .8rem;
}
.user-modal-footer {
    display: flex; justify-content: flex-end; gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid #eef0ff;
    background: #fafbff;
    border-radius: 0 0 16px 16px;
}
.user-btn {
    padding: 10px 22px;
    border-radius: 10px;
    font-size: .84rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
    transition: all .15s;
}
.user-btn-cancel {
    background: #fff;
    color: #64748b;
    border: 1.5px solid #e2e8f0;
}
.user-btn-cancel:hover { background: #f8fafc; border-color: #cbd5e1; }
.user-btn-save {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    box-shadow: 0 3px 12px rgba(99,102,241,.35);
}
.user-btn-save:hover {
    background: linear-gradient(135deg, #4338ca, #6d28d9);
    box-shadow: 0 5px 16px rgba(99,102,241,.45);
    transform: translateY(-1px);
}
.user-btn-save:disabled {
    opacity: .6; cursor: not-allowed; transform: none;
}
/* Member search dropdown in add-user modal */
.member-search-results {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    max-height: 240px;
    overflow-y: auto;
    z-index: 100;
    margin-top: 4px;
}
.member-search-item {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: background .1s;
}
.member-search-item:last-child { border-bottom: none; }
.member-search-item:hover { background: #f0edff; }
.member-search-item strong { font-size: .88rem; color: #1e293b; }
.member-search-item span { font-size: .78rem; color: #94a3b8; direction: ltr; text-align: right; }

@media (max-width: 600px) {
    .user-form-row { flex-direction: column; }
    .user-modal { max-width: 95vw; }
    .user-modal-body { padding: 16px; }
}

/* ── Finance workspace redesign ── */
.fin-header {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px;
    margin-bottom: 10px;
}
.fin-source-card {
    padding: 14px 16px; border-radius: 12px;
    display: flex; flex-direction: column; gap: 10px;
    position: relative; overflow: hidden;
    color: #fff; border: none;
    box-shadow: 0 2px 12px rgba(0,0,0,.12);
    transition: transform .15s, box-shadow .15s;
}
.fin-source-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.18);
}

/* Mollie — brand: dark navy #0a0a23 with green accents */
.fin-source-card.fin-src-mollie {
    background: linear-gradient(135deg, #0a0a23 0%, #131340 100%);
}
.fin-source-card.fin-src-mollie .fin-source-stat {
    background: rgba(255,255,255,.08);
}

/* ING — brand: #ff6200 orange */
.fin-source-card.fin-src-ing {
    background: linear-gradient(135deg, #ff6200 0%, #e85600 60%, #cc4b00 100%);
}
.fin-source-card.fin-src-ing .fin-source-stat {
    background: rgba(255,255,255,.15);
}

/* PayPal — brand: #003087 navy + #009cde blue */
.fin-source-card.fin-src-paypal {
    background: linear-gradient(135deg, #003087 0%, #0054a0 50%, #009cde 100%);
}
.fin-source-card.fin-src-paypal .fin-source-stat {
    background: rgba(255,255,255,.1);
}

/* Transactions — dark slate/charcoal */
.fin-source-card.fin-src-transactions {
    background: linear-gradient(135deg, #1e293b 0%, #334155 60%, #475569 100%);
}
.fin-source-card.fin-src-transactions .fin-source-stat {
    background: rgba(255,255,255,.08);
}

/* Uitvaartfonds — dark emerald green */
.fin-source-card.fin-src-uitvaart {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #047857 100%);
}
.fin-source-card.fin-src-uitvaart .fin-source-stat {
    background: rgba(255,255,255,.1);
}

/* Page hero: full-width single card at top of tab, 3-col stats grid */
.fin-page-hero {
    margin-bottom: 16px;
}
.fin-page-hero .fin-source-stats {
    grid-template-columns: repeat(3, 1fr);
}
.fin-page-hero .fin-source-stat.fin-stat-primary .fin-source-stat-val {
    font-size: 1.2rem;
}

/* Ledger/accounting card — deep indigo/purple */
.fin-source-card.fin-src-ledger {
    background: linear-gradient(135deg, #312e81 0%, #3730a3 50%, #4338ca 100%);
}
.fin-source-card.fin-src-ledger .fin-source-stat {
    background: rgba(255,255,255,.1);
}

/* Contributions card — reuse ING orange but with clipboard icon context */
.fin-source-card.fin-src-contributions {
    background: linear-gradient(135deg, #ff6200 0%, #e85600 60%, #cc4b00 100%);
}
.fin-source-card.fin-src-contributions .fin-source-stat {
    background: rgba(255,255,255,.15);
}

/* ── Ledger tab: overview cards ── */
.fin-ledger-overview { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 16px; }
.fin-ledger-ov-card {
    padding: 14px 16px; border-radius: 10px; cursor: pointer; transition: all .15s;
    background: color-mix(in srgb, var(--ov-c, #131340) 5%, var(--card-bg));
    border: 1px solid color-mix(in srgb, var(--ov-c, #131340) 18%, var(--border));
    border-right: 3px solid var(--ov-c, #131340);
}
.fin-ledger-ov-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); transform: translateY(-1px); }
.fin-ledger-ov-head { font-size: .78rem; font-weight: 600; color: var(--ov-c, #131340); display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.fin-ledger-ov-acct { font-family: monospace; font-size: .68rem; color: var(--text-muted); font-weight: 400; }
.fin-ledger-ov-val { font-size: 1.15rem; font-weight: 800; color: var(--text); line-height: 1.2; }
.fin-ledger-ov-sub { font-size: .72rem; color: var(--text-muted); margin-top: 4px; }

/* ── Ledger tab: account table sections ── */
.fin-ledger-section { margin-bottom: 12px; }
.fin-ledger-section-head {
    font-size: .88rem; font-weight: 700; color: var(--text);
    padding: 10px 14px; display: flex; align-items: center; gap: 8px;
    border-right: 3px solid var(--sec-c, var(--accent)); background: var(--card-bg);
    border-radius: var(--radius) var(--radius) 0 0; border: 1px solid var(--border);
}
.fin-ledger-section-count {
    font-size: .72rem; font-weight: 600; color: var(--text-muted);
    background: var(--bg-secondary); padding: 2px 8px; border-radius: 10px;
}
.fin-ledger-section-total {
    margin-right: auto; font-size: .9rem; font-weight: 800; color: #059669;
}
.fin-ledger-table { font-size: .84rem; }
.fin-ledger-trow { transition: background .1s; }
.fin-ledger-trow:hover { background: var(--bg-secondary); }
.fin-ledger-tcode code { font-weight: 700; color: #6366f1; font-size: .82rem; }
.fin-ledger-tdesc { color: var(--text); }
.fin-ledger-tbal { text-align: left; white-space: nowrap; }
.fin-ledger-tbal.positive strong { color: #059669; }
.fin-ledger-tbal.negative strong { color: #dc2626; }
.fin-ledger-cat-badge {
    display: inline-block; font-size: .68rem; font-weight: 600; padding: 2px 8px;
    border-radius: 4px; color: var(--cat-c, #94a3b8);
    background: color-mix(in srgb, var(--cat-c, #94a3b8) 10%, transparent);
}

.fin-source-top {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.fin-source-logo {
    display: flex; align-items: center; gap: 8px;
    font-weight: 700; font-size: .92rem; color: #fff;
    letter-spacing: .02em;
}
.fin-source-logo svg { flex-shrink: 0; }
.fin-source-logo i { font-size: 1.2rem; }
.fin-ing-logo {
    height: 28px; width: auto; object-fit: contain;
    mix-blend-mode: multiply; /* removes white JPG background on the orange card */
}
.fin-source-badge {
    font-size: .65rem; padding: 3px 8px; border-radius: 20px;
    font-weight: 600; letter-spacing: .02em;
}
.fin-source-badge.connected { background: #16a34a; color: #fff; }
.fin-source-badge.disconnected { background: rgba(220,38,38,.3); color: #fecaca; }

.fin-source-stats {
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.fin-source-stat {
    padding: 8px 10px; border-radius: 8px;
}
.fin-source-stat-val {
    font-size: 1.15rem; font-weight: 700; line-height: 1.2;
    color: #fff !important;
}
.fin-source-stat-lbl { font-size: .68rem; color: rgba(255,255,255,.65); }

/* Highlight the primary stat in each card */
.fin-source-stat.fin-stat-primary { background: rgba(255,255,255,.18); }
.fin-source-stat.fin-stat-primary .fin-source-stat-val { font-size: 1.3rem; }

/* Combined totals strip */
.fin-totals-strip {
    display: flex; align-items: center; gap: 0;
    margin-bottom: 10px; border-radius: 10px;
    background: var(--card-bg); border: 2px solid #e2e8f0;
    overflow: hidden;
}
.fin-total-item {
    flex: 1; padding: 10px 14px; text-align: center;
    border-left: 1px solid var(--border);
}
.fin-total-item:last-child { border-left: none; }
.fin-total-val { font-size: 1.3rem; font-weight: 700; line-height: 1.2; }
.fin-total-lbl { font-size: .72rem; color: var(--text-muted); margin-top: 1px; }
.fin-total-sub { font-size: .65rem; color: var(--text-muted); opacity: .7; }

/* Payment classification bar */
.fin-class-bar {
    display: flex; gap: 0; margin-bottom: 10px;
    background: var(--card-bg); border-radius: 10px; border: 2px solid #e2e8f0;
    overflow: hidden;
}
.fin-class-item {
    flex: 1; display: flex; align-items: center; gap: 8px;
    padding: 8px 12px;
    border-left: 1px solid var(--border);
}
.fin-class-item:last-child { border-left: none; }
.fin-class-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.fin-class-body { flex: 1; min-width: 0; }
.fin-class-count { font-size: 1rem; font-weight: 700; color: var(--text); margin-left: 4px; }
.fin-class-label { font-size: .68rem; color: var(--text-muted); display: block; }
.fin-class-total { font-size: .8rem; font-weight: 600; color: #059669; white-space: nowrap; }

@media (max-width: 1100px) {
    .fin-header { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .fin-class-bar { flex-direction: column; }
    .fin-class-item { border-left: none; border-bottom: 1px solid var(--border); }
    .fin-class-item:last-child { border-bottom: none; }
    .fin-totals-strip { flex-direction: column; }
    .fin-total-item { border-left: none; border-bottom: 1px solid var(--border); }
    .fin-total-item:last-child { border-bottom: none; }
}

/* ── Real balance / estimate badges on ING card ── */
.fin-real-badge {
    display: inline-block; font-size: .55rem; padding: 1px 6px; border-radius: 10px;
    background: rgba(16,185,129,.35); color: #d1fae5; font-weight: 600;
    margin-right: 4px; vertical-align: middle;
}
.fin-estimate-badge {
    display: inline-block; font-size: .55rem; padding: 1px 6px; border-radius: 10px;
    background: rgba(255,255,255,.2); color: rgba(255,255,255,.7); font-weight: 600;
    margin-right: 4px; vertical-align: middle;
}

/* ── Bank accounts breakdown section ── */
.fin-bank-breakdown {
    margin-bottom: 10px; border-radius: 10px;
    background: var(--card-bg); border: 2px solid #e2e8f0;
    overflow: hidden;
}
.fin-bank-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 16px; font-size: .82rem; font-weight: 600; color: var(--text);
    border-bottom: 1px solid var(--border); background: rgba(79,70,229,.03);
}
.fin-bank-total { font-size: .9rem; color: #059669; }
.fin-bank-rows {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0;
}
.fin-bank-row {
    display: flex; align-items: center; gap: 10px; padding: 8px 16px;
    border-bottom: 1px solid var(--border); border-left: 1px solid var(--border);
    font-size: .82rem;
}
.fin-bank-row:last-child { border-bottom: none; }
.fin-bank-code {
    font-family: monospace; font-size: .75rem; color: #6366f1; font-weight: 700;
    min-width: 38px;
}
.fin-bank-desc { flex: 1; color: var(--text-muted); font-size: .78rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fin-bank-bal { font-weight: 700; color: var(--text); white-space: nowrap; }
.fin-bank-bal.fin-bank-highlight { color: #059669; font-size: .9rem; }

/* ── Uitvaartfonds tab ── */
.fin-uitvaart-summary {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
    margin-bottom: 12px;
}
.fin-uitvaart-card {
    padding: 18px 16px; border-radius: 12px;
    background: linear-gradient(135deg, #065f46 0%, #047857 100%);
    color: #fff; display: flex; align-items: center; gap: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,.12);
    transition: transform .15s, box-shadow .15s;
}
.fin-uitvaart-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.fin-uitvaart-card.fin-uitvaart-primary {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 60%, #047857 100%);
}
.fin-uitvaart-card.fin-uitvaart-total {
    background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 100%);
}
.fin-uitvaart-card-icon { font-size: 1.6rem; opacity: .6; flex-shrink: 0; }
.fin-uitvaart-card-body { flex: 1; min-width: 0; }
.fin-uitvaart-card-val { font-size: 1.4rem; font-weight: 700; line-height: 1.2; }
.fin-uitvaart-card-lbl { font-size: .75rem; color: rgba(255,255,255,.7); margin-top: 2px; }
.fin-uitvaart-card-code { font-size: .65rem; color: rgba(255,255,255,.45); font-family: monospace; margin-top: 2px; }

.fin-uitvaart-metrics {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
    margin-bottom: 12px; border-radius: 10px;
    background: var(--card-bg); border: 2px solid #e2e8f0;
    overflow: hidden;
}
.fin-uitvaart-metric {
    padding: 12px 16px; text-align: center;
    border-left: 1px solid var(--border);
}
.fin-uitvaart-metric:last-child { border-left: none; }
.fin-uitvaart-metric-val { font-size: 1.3rem; font-weight: 700; line-height: 1.2; }
.fin-uitvaart-metric-lbl { font-size: .72rem; color: var(--text-muted); margin-top: 2px; }
.fin-uitvaart-metric-sub { font-size: .65rem; color: var(--text-muted); margin-top: 1px; }

@media (max-width: 900px) {
    .fin-uitvaart-summary { grid-template-columns: 1fr; }
    .fin-uitvaart-metrics { grid-template-columns: 1fr; }
    .fin-uitvaart-metric { border-left: none; border-bottom: 1px solid var(--border); }
    .fin-uitvaart-metric:last-child { border-bottom: none; }
    .fin-bank-rows { grid-template-columns: 1fr; }
}

/* ── Finance section blocks ── */
.fin-section-block {
    margin-bottom: 4px;
}
.fin-section-title {
    font-size: .92rem; font-weight: 700; color: var(--text);
    margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}
.fin-section-title span {
    font-weight: 400;
}

/* Subscription date badges */
.fin-date-badge {
    display: inline-block; padding: 2px 8px; border-radius: 4px;
    font-size: .78rem; font-weight: 600;
}
.fin-date-badge.overdue { background: #fee2e2; color: #dc2626; }
.fin-date-badge.soon { background: #dcfce7; color: #16a34a; }
.fin-date-badge.future { background: #fef3c7; color: #d97706; }
.fin-date-badge.far { background: #f1f5f9; color: #64748b; }
.fin-zero-alert {
    display: inline-flex; align-items: center; gap: 4px;
    color: #dc2626; font-size: .72rem; font-weight: 600;
}
.fin-zero-alert i { font-size: .65rem; }

/* ── Mollie tab section switcher ── */
.fin-section-btn {
    background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
    font-size: .82rem; font-weight: 500; color: var(--text-secondary);
    padding: 6px 14px; cursor: pointer; transition: all .15s;
}
.fin-section-btn:hover { background: var(--bg-subtle); border-color: var(--accent); color: var(--accent); }
.fin-section-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.fin-section-btn .badge { vertical-align: middle; }

/* ── Subscription action buttons ── */
.sub-action-btn {
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); background: var(--bg);
    transition: all .15s; cursor: pointer;
}
.sub-action-btn:hover { box-shadow: 0 2px 6px rgba(0,0,0,.1); transform: translateY(-1px); }
.sub-action-btn[data-action="cancel"]:hover { background: #fee2e2; border-color: #fecaca; }
.sub-action-btn[data-action="edit"]:hover { background: #eff6ff; border-color: #bfdbfe; }
.sub-action-btn[data-action="view"]:hover { background: var(--bg-subtle); }

/* ── Invoice PDF button & indicators ── */
.fin-pdf-btn {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 12px; font-size: .75rem; font-weight: 600;
    background: #4f46e5; color: #fff !important; border: none; border-radius: 5px;
    text-decoration: none; cursor: pointer; transition: all .15s;
    white-space: nowrap;
}
.fin-pdf-btn:hover { background: #4338ca; transform: translateY(-1px); box-shadow: 0 2px 6px rgba(79,70,229,.3); }
.fin-pdf-btn i { font-size: .72rem; }
.fin-no-pdf { color: #cbd5e1; font-size: .8rem; }
.fin-invoice-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 6px;
    background: linear-gradient(135deg, #ede9fe, #e0e7ff); color: #6366f1;
    font-size: .82rem; cursor: pointer; transition: all .15s;
}
.fin-invoice-badge:hover { background: linear-gradient(135deg, #c4b5fd, #a5b4fc); transform: scale(1.15); box-shadow: 0 2px 8px rgba(99,102,241,.25); }

/* ── Data quality badges ── */
.dq-badge {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 3px 8px; border-radius: 12px; font-size: .7rem; font-weight: 600;
    cursor: help; white-space: nowrap;
}
.dq-perfect { background: #dcfce7; color: #16a34a; }
.dq-error { background: #fee2e2; color: #dc2626; }
.dq-warn { background: #fef3c7; color: #d97706; }
.dq-info { background: #e0e7ff; color: #6366f1; }
.dq-summary-bar {
    display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
    padding: 10px 14px; background: var(--surface); border-radius: 8px;
    margin-bottom: 12px; font-size: .82rem;
}
.dq-summary-bar .dq-badge { font-size: .76rem; }
.dq-summary-label {
    display: flex; align-items: center; gap: 5px;
    font-weight: 600; color: var(--text-secondary); font-size: .82rem;
    padding-left: 8px; border-left: 2px solid var(--border);
}

/* ── Advanced revenue chart ── */
.fin-chart-card { overflow: visible; position: relative; }
.fin-chart-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.fin-chart-title { font-weight: 700; font-size: .95rem; }
.fin-chart-controls { display: flex; align-items: center; gap: 8px; }

.fin-chart-view-toggle {
    display: flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden;
}
.fin-chart-view-btn {
    border: none; background: var(--bg); color: var(--text-muted);
    padding: 5px 10px; font-size: .78rem; cursor: pointer; transition: all .15s;
    display: flex; align-items: center; gap: 4px;
}
.fin-chart-view-btn + .fin-chart-view-btn { border-right: 1px solid var(--border); }
.fin-chart-view-btn:hover { background: #f1f5f9; }
.fin-chart-view-btn.active { background: #6366f1; color: #fff; }

.fin-chart-summary {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
    padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--bg);
}
.fin-chart-kpi { text-align: center; padding: 4px 0; }
.fin-chart-kpi-val { font-size: 1.1rem; font-weight: 700; line-height: 1.2; }
.fin-chart-kpi-lbl { font-size: .68rem; color: var(--text-muted); }

.fin-chart-legend {
    display: flex; gap: 6px; padding: 10px 16px; flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
}
.fin-legend-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 6px;
    border: 1.5px solid var(--lc, #ccc); background: transparent;
    font-size: .75rem; font-weight: 600; cursor: pointer;
    color: var(--text-muted); transition: all .15s; font-family: inherit;
}
.fin-legend-btn.active {
    background: color-mix(in srgb, var(--lc) 12%, transparent);
    color: var(--text); border-color: var(--lc);
}
.fin-legend-btn:not(.active) { opacity: .45; text-decoration: line-through; }
.fin-legend-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.fin-legend-total { font-weight: 700; color: #059669; margin-right: 2px; }

.fin-chart-area { padding: 12px 8px 8px; }
.fin-chart-area canvas { width: 100%; display: block; }

.fin-chart-tooltip {
    position: fixed; z-index: 1000;
    background: #1e293b; color: #f8fafc;
    padding: 10px 14px; border-radius: 8px;
    font-size: .82rem; pointer-events: none;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
    min-width: 180px; max-width: 280px;
    direction: rtl;
}

@media (max-width: 700px) {
    .fin-chart-summary { grid-template-columns: repeat(2, 1fr); }
    .fin-chart-header { flex-direction: column; gap: 8px; }
}

/* ═══ Tooltip enhancements for [title] attributes ═══ */
.kpi-label[title],
.fin-metric-lbl[title],
.dash2-stat-lbl[title],
.dash2-hero-label[title] {
    cursor: help;
    border-bottom: 1px dotted var(--text-muted);
    display: inline-block;
}
/* Tooltip indicator icon */
.kpi-label[title]::after,
.fin-metric-lbl[title]::after,
.dash2-stat-lbl[title]::after {
    content: '\f059';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: .6rem;
    color: var(--text-muted);
    margin-right: 4px;
    opacity: .5;
    vertical-align: super;
}

/* ═══ Events & Reservations Workspace ═══ */

/* Event cards grid */
.events-event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    padding: 4px;
}
.events-event-card {
    position: relative;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    background: var(--card-bg);
}
.events-event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.events-event-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}
.events-event-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.events-event-info h3 {
    margin: 0 0 4px; font-size: 1.05rem; font-weight: 700; color: var(--text-primary);
}
.events-event-subtitle {
    margin: 0 0 2px; font-size: .85rem; color: var(--text-muted);
}
.events-event-date {
    margin: 0; font-size: .82rem; color: var(--text-secondary);
}
.events-event-date i { margin-left: 4px; }
.events-event-stats {
    display: flex; gap: 12px; flex-wrap: wrap;
    border-top: 1px solid var(--border);
    padding-top: 14px;
}
.events-event-stat {
    flex: 1; min-width: 60px; text-align: center;
}
.events-event-stat strong {
    display: block; font-size: 1.2rem; font-weight: 700; color: var(--text-primary);
}
.events-event-stat span {
    font-size: .75rem; color: var(--text-muted);
}
.events-event-badge {
    position: absolute; top: 12px; left: 12px;
}

/* Clickable registration rows */
.events-reg-row { cursor: pointer; }
.events-reg-row:hover { background: var(--hover-bg, rgba(0,0,0,.03)); }

/* Registrations header with back + title + export */
.events-reg-header {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 16px; flex-wrap: wrap;
}
.events-reg-header h3 {
    flex: 1; margin: 0; font-size: 1.1rem; font-weight: 700; color: var(--text-primary);
}
.events-reg-header h3 i { margin-left: 6px; color: #f59e0b; }
.events-back-btn { white-space: nowrap; }

/* Check-in stats bar */
.events-checkin-stats {
    display: flex; gap: 16px; flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 14px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.events-checkin-stat {
    text-align: center; min-width: 80px;
}
.events-checkin-stat strong {
    display: block; font-size: 1.4rem; font-weight: 700;
    color: var(--stat-color, var(--text-primary));
}
.events-checkin-stat span {
    font-size: .8rem; color: var(--text-muted);
}

/* Check-in filter chips */
.events-checkin-chips {
    display: flex; gap: 6px; flex-wrap: wrap;
}

/* Check-in card grid */
.events-checkin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    padding: 4px;
}
.events-checkin-card {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    background: var(--card-bg);
    transition: border-color .2s, background .2s;
}
.events-checkin-card.status-not_arrived {
    border-color: #f59e0b;
    background: rgba(245,158,11,.04);
}
.events-checkin-card.status-checked_in {
    border-color: #16a34a;
    background: rgba(22,163,74,.04);
}
.events-checkin-card.status-no_show {
    border-color: #dc2626;
    background: rgba(220,38,38,.04);
}
.events-checkin-card-top {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 8px;
}
.events-checkin-name {
    font-size: 1.05rem; font-weight: 700; color: var(--text-primary);
}
.events-checkin-card-contact {
    display: flex; flex-direction: column; gap: 3px;
    margin-bottom: 10px; font-size: .82rem; color: var(--text-secondary);
}
.events-checkin-card-contact i {
    margin-left: 6px; width: 14px; text-align: center; color: var(--text-muted);
}
.events-checkin-card-meta {
    display: flex; gap: 14px; margin-bottom: 12px;
    font-size: .82rem; color: var(--text-secondary);
}
.events-checkin-card-meta i { margin-left: 4px; color: var(--text-muted); }

/* Status toggle buttons (shared between check-in card and side panel) */
.events-status-toggle {
    display: flex; gap: 6px;
}
.events-status-btn {
    flex: 1;
    padding: 7px 4px;
    border: 2px solid var(--btn-color, var(--border));
    border-radius: 8px;
    background: transparent;
    color: var(--btn-color, var(--text-secondary));
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, color .15s;
    font-family: inherit;
}
.events-status-btn:hover {
    background: rgba(0,0,0,.06);
    background: color-mix(in srgb, var(--btn-color) 12%, transparent);
}
.events-status-btn.active {
    background: var(--btn-color);
    color: #fff;
}

/* ── Stats Breakdown Cards ── */
.events-stats-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.events-stats-card {
    padding: 16px;
}
.events-stats-card h4 {
    font-size: .88rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary);
}
.events-stats-card h4 i {
    color: var(--text-muted);
    font-size: .82rem;
}
.events-stats-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.events-stats-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
}
.events-stats-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.events-stats-label {
    flex: 1;
    min-width: 0;
}
.events-stats-value {
    font-weight: 700;
    flex-shrink: 0;
}
.events-stats-sub {
    font-size: .75rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ── Walk-in FAB ── */
.events-walkin-fab {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 28px;
    background: #f59e0b;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(245,158,11,.4);
    z-index: 90;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
}
.events-walkin-fab:hover {
    background: #d97706;
}

/* ── Walk-in Modal Overlay ── */
.events-walkin-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 200;
    align-items: center;
    justify-content: center;
}
.events-walkin-overlay.open {
    display: flex;
}
.events-walkin-sheet {
    width: 95%;
    max-width: 520px;
    max-height: 90dvh;
    background: var(--card-bg, #fff);
    border-radius: 16px;
    overflow-y: auto;
    box-shadow: 0 16px 48px rgba(0,0,0,.2);
}
.events-walkin-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 0;
}
.events-walkin-sheet-header h3 {
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.events-walkin-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.events-walkin-form-body {
    padding: 16px 20px 20px;
}
.events-walkin-field {
    margin-bottom: 12px;
}
.events-walkin-field label {
    display: block;
    font-size: .8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 600;
}
.events-walkin-field input,
.events-walkin-field select,
.events-walkin-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: .9rem;
    font-family: inherit;
    background: var(--bg, #f8fafc);
    color: var(--text-primary);
}
.events-walkin-field input:focus,
.events-walkin-field select:focus,
.events-walkin-field textarea:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245,158,11,.15);
}
.events-walkin-field textarea {
    resize: vertical;
    min-height: 50px;
}
.events-walkin-total {
    background: #fffbeb;
    border: 2px solid #f59e0b;
    border-radius: 10px;
    padding: 12px 16px;
    text-align: center;
    margin: 16px 0 12px;
}
.events-walkin-total .total-label {
    font-size: .8rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.events-walkin-total .total-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}
.events-walkin-submit {
    width: 100%;
    padding: 12px;
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.events-walkin-submit:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* Walk-in payment method cards */
.events-walkin-payment-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.events-walkin-payment-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 10px;
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all .2s;
    background: var(--bg-primary);
    font-size: .85rem;
    font-weight: 600;
}
.events-walkin-payment-card i {
    font-size: 1.4rem;
    color: var(--text-muted);
    transition: color .2s;
}
.events-walkin-payment-card:hover {
    border-color: #f59e0b;
    background: rgba(245,158,11,.04);
}
.events-walkin-payment-card.active {
    border-color: #f59e0b;
    background: rgba(245,158,11,.08);
    box-shadow: 0 0 0 3px rgba(245,158,11,.15);
}
.events-walkin-payment-card.active i {
    color: #f59e0b;
}

/* QR payment modal overlay (admin) */
.events-qr-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity .25s;
}
.events-qr-overlay.open { opacity: 1; }
.events-qr-sheet {
    background: var(--bg-primary);
    border-radius: 16px;
    width: 340px;
    max-width: 92vw;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    animation: eventsQrIn .3s ease;
}
@keyframes eventsQrIn {
    from { transform: scale(.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.events-qr-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}
.events-qr-header h3 {
    margin: 0;
    font-size: 1rem;
    color: #fff;
}
.events-qr-header i { color: #fff !important; }
.events-qr-body {
    padding: 24px 20px;
    text-align: center;
}
.events-qr-body canvas {
    border-radius: 8px;
    border: 3px solid var(--border);
}

/* ═══ Profile Page ═══ */
.profile-page { max-width: 680px; margin: 0 auto; padding: 20px 0; }
.profile-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.profile-header { display: flex; align-items: center; gap: 16px; padding: 24px; background: linear-gradient(135deg, #f8fafc, #f1f5f9); border-bottom: 1px solid var(--border); }
.profile-avatar-lg { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 700; color: #fff; flex-shrink: 0; }
.profile-header-info h2 { margin: 0; font-size: 1.1rem; }
.profile-role { font-size: .78rem; color: var(--text-muted); background: var(--bg); padding: 2px 10px; border-radius: 12px; }
.profile-section { padding: 20px 24px; border-bottom: 1px solid var(--border-light); }
.profile-section:last-child { border-bottom: none; }
.profile-section h3 { font-size: .88rem; font-weight: 700; margin: 0 0 14px 0; display: flex; align-items: center; gap: 8px; color: var(--text); }
.profile-section h3 i { color: var(--primary); font-size: .82rem; }
.profile-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 14px; }
.profile-form-group label { display: block; font-size: .76rem; font-weight: 600; color: var(--text-muted); margin-bottom: 4px; }
.profile-form-group .form-control { width: 100%; }
.profile-color-options { display: flex; gap: 8px; flex-wrap: wrap; }
.profile-color-opt { width: 36px; height: 36px; border-radius: 50%; cursor: pointer; border: 3px solid transparent; transition: all .15s; }
.profile-color-opt:hover { transform: scale(1.15); }
.profile-color-opt.active { border-color: var(--text); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--text); }
.profile-readonly { background: #f8fafc; }
.profile-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.profile-info-grid > div { display: flex; flex-direction: column; gap: 2px; }
.profile-info-label { font-size: .72rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.profile-info-grid span:last-child { font-size: .85rem; font-weight: 600; }
/* Header compact user menu */
.user-menu-compact { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 10px; transition: background .15s; }
.user-menu-compact:hover { background: rgba(0,0,0,.04); }

/* ═══ Dashboard Attention Strip (Compact) ═══ */
.dash2-attn-strip { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 12px; background: #fff; border: 1px solid #e5e7eb; box-shadow: 0 1px 3px rgba(0,0,0,.04); margin-bottom: 16px; overflow-x: auto; white-space: nowrap; }
.dash2-attn-strip.dash2-attn-clear { background: #f0fdf4; border-color: #86efac; }
.dash2-attn-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; border-radius: 8px; font-weight: 900; font-size: .82rem; color: #fff; flex-shrink: 0; padding: 0 6px; background: linear-gradient(135deg, #ef4444, #f97316); }
.dash2-attn-badge.clear { background: linear-gradient(135deg, #22c55e, #06b6d4); }
.dash2-attn-label { font-size: .84rem; font-weight: 700; color: var(--text); white-space: nowrap; flex-shrink: 0; }
.dash2-attn-divider { width: 1px; height: 22px; background: #e5e7eb; flex-shrink: 0; }
.dash2-attn-chips { display: flex; gap: 6px; flex-shrink: 0; }
.dash2-attn-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 20px; font-size: .74rem; font-weight: 600; cursor: pointer; transition: all .15s; border: 1px solid transparent; white-space: nowrap; flex-shrink: 0; }
.dash2-attn-chip:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.dash2-attn-chip.critical { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.dash2-attn-chip.warning { background: #fff7ed; color: #ea580c; border-color: #fed7aa; }
.dash2-attn-chip.info { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; }
.dash2-attn-chip i { font-size: .65rem; }
.dash2-attn-chip-count { font-weight: 900; }
.dash2-attn-chip-amount { font-size: .68rem; opacity: .8; }
.dash2-attn-note { color: #94a3b8; font-size: .78rem; cursor: help; flex-shrink: 0; }
.dash2-attn-note:hover { color: #64748b; }

/* ═══ Attention Info Bar ═══ */
.dash2-attn-info-bar { font-size: .72rem; color: #94a3b8; padding: 6px 16px; margin: -10px 0 14px; display: flex; align-items: center; gap: 6px; }
.dash2-attn-info-bar i { color: #cbd5e1; }

/* ═══ Payment Tables ═══ */
/* ═══ Payment Tables — Polished Design ═══ */
.dash2-pay-table { display: flex; flex-direction: column; gap: 2px; }
.dash2-pay-row {
    display: flex; align-items: flex-start; gap: 14px; padding: 14px 18px;
    border-radius: 10px; transition: all .15s; background: var(--card);
    border: 1px solid transparent; position: relative;
}
.dash2-pay-row:hover { background: #f8fafc; border-color: var(--border); box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.dash2-pay-row.upcoming { border-right: 3px solid #3b82f6; }
.dash2-pay-row.upcoming:hover { border-right-color: #2563eb; }
.dash2-pay-row.recent { border-right: 3px solid #16a34a; }
.dash2-pay-row.recent:hover { border-right-color: #15803d; }
.dash2-pay-row.failed { background: #fef2f2; border-right: 3px solid #dc2626; }
.dash2-pay-row.failed:hover { background: #fee2e2; }

.dash2-pay-col-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dash2-pay-name { font-size: .88rem; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pay-type-tag {
    font-size: .6rem; font-weight: 700; color: #fff; padding: 2px 9px; border-radius: 10px;
    text-transform: uppercase; letter-spacing: .3px; white-space: nowrap;
    background: linear-gradient(135deg, #6366f1, #818cf8);
}
.dash2-pay-desc {
    font-size: .68rem; color: #94a3b8; white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; max-width: 340px; font-style: italic;
}
.dash2-pay-sub-info { line-height: 1.5; }
.pay-ids-text {
    font-size: .73rem; font-weight: 700; color: #334155;
    font-family: 'Inter', monospace; letter-spacing: .4px;
    background: #f1f5f9; padding: 1px 8px; border-radius: 6px; display: inline-block;
}
.pay-contact-text { font-size: .7rem; color: #64748b; direction: ltr; display: inline-flex; align-items: center; gap: 8px; }
.pay-contact-text i { font-size: .58rem; color: #94a3b8; }

.dash2-pay-col-end {
    flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    min-width: 100px;
}
.dash2-pay-amount {
    font-size: 1rem; font-weight: 800; white-space: nowrap;
    font-family: 'Inter', sans-serif; letter-spacing: -.3px;
}
.dash2-pay-amount.green { color: #16a34a; }
.dash2-pay-amount.red { color: #dc2626; }
.dash2-pay-timing { font-size: .7rem; color: #94a3b8; }
.pay-days-text { font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.pay-days-text::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.pay-days-text.urgent { color: #dc2626; }
.pay-days-text.urgent::before { background: #dc2626; animation: pulse-dot 1.5s infinite; }
.pay-days-text.soon { color: #ea580c; }
.pay-days-text.soon::before { background: #ea580c; }
.pay-days-text.normal { color: #64748b; }
.pay-days-text.normal::before { background: #94a3b8; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.dash2-pay-confirm {
    font-size: .66rem; font-weight: 700; display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 8px; border-radius: 8px;
}
.dash2-pay-confirm.ok { color: #16a34a; background: rgba(22,163,74,.06); }
.dash2-pay-confirm.wait { color: #d97706; background: rgba(217,119,6,.06); }

.dash2-pay-sms-status { font-size: .66rem; }
.sms-sent {
    color: #16a34a; font-weight: 700; display: inline-flex; align-items: center; gap: 3px;
    background: rgba(22,163,74,.06); padding: 2px 8px; border-radius: 8px;
}
.sms-pending {
    color: #94a3b8; font-weight: 600; display: inline-flex; align-items: center; gap: 3px;
    background: rgba(148,163,184,.06); padding: 2px 8px; border-radius: 8px;
}

.dash2-sms-auto-notice {
    font-size: .74rem; color: #15803d; padding: 10px 16px; margin-bottom: 10px;
    background: linear-gradient(135deg, rgba(22,163,74,.04), rgba(74,222,128,.06));
    border: 1px solid rgba(22,163,74,.15); border-radius: 10px;
    display: flex; align-items: center; gap: 8px; font-weight: 600;
}
.dash2-sms-auto-notice i { color: #16a34a; font-size: .85rem; }

.dash2-pay-acts { display: flex; gap: 5px; margin-top: 2px; }
.dash2-act-btn {
    width: 30px; height: 30px; border-radius: 8px; border: 1px solid #e2e8f0;
    background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: .75rem; color: #64748b; transition: all .15s; box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.dash2-act-btn:hover { background: #eff6ff; color: #2563eb; border-color: #93c5fd; transform: translateY(-1px); box-shadow: 0 2px 6px rgba(37,99,235,.12); }
.dash2-act-btn.warn { border-color: #fed7aa; }
.dash2-act-btn.warn:hover { color: #dc2626; border-color: #fca5a5; background: #fef2f2; box-shadow: 0 2px 6px rgba(220,38,38,.12); }

/* SMS scheduled status */
.sms-scheduled {
    color: #2563eb; font-weight: 600; display: inline-flex; align-items: center; gap: 3px;
    background: rgba(37,99,235,.06); padding: 2px 8px; border-radius: 8px;
}

/* ── SMS Reminder Log Section ── */
.dash2-sms-log-section {
    margin: 16px 8px 8px; border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--card); overflow: hidden;
}
.dash2-sms-log-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; background: linear-gradient(135deg, rgba(99,102,241,.04), rgba(139,92,246,.04));
    border-bottom: 1px solid var(--border); font-size: .78rem; font-weight: 700; color: var(--text);
}
.dash2-sms-log-head i { color: var(--accent); margin-left: 6px; }
.dash2-sms-log-body { max-height: 280px; overflow-y: auto; }
.dash2-sms-log-row {
    display: flex; align-items: center; gap: 10px; padding: 8px 14px;
    border-bottom: 1px solid rgba(0,0,0,.04); font-size: .75rem; transition: background .1s;
}
.dash2-sms-log-row:last-child { border-bottom: none; }
.dash2-sms-log-row:hover { background: rgba(99,102,241,.02); }
.dash2-sms-log-icon { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: .7rem; flex-shrink: 0; }
.dash2-sms-log-icon.ok { background: rgba(22,163,74,.08); color: #16a34a; }
.dash2-sms-log-icon.fail { background: rgba(220,38,38,.08); color: #dc2626; }
.dash2-sms-log-icon.pending { background: rgba(217,119,6,.08); color: #d97706; }
.dash2-sms-log-info { flex: 1; min-width: 0; }
.dash2-sms-log-name { font-weight: 700; color: var(--text); }
.dash2-sms-log-msg { color: var(--text-muted); font-size: .7rem; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; }
.dash2-sms-log-meta { text-align: left; flex-shrink: 0; color: var(--text-muted); font-size: .68rem; }
.dash2-sms-log-status { font-weight: 700; }
.dash2-sms-log-status.delivered { color: #16a34a; }
.dash2-sms-log-status.failed { color: #dc2626; }
.dash2-sms-log-status.sent { color: #2563eb; }
.dash2-sms-log-status.queued { color: #d97706; }
.dash2-sms-log-empty { text-align: center; padding: 20px; color: var(--text-muted); font-size: .78rem; }
.dash2-sms-log-empty i { font-size: 1.2rem; display: block; margin-bottom: 6px; color: #d1d5db; }

/* ── Reminder Preview Panel ── */
.remind-preview-channel { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: rgba(99,102,241,.04); border-radius: 10px; margin-bottom: 14px; font-size: .8rem; font-weight: 700; color: var(--accent); }
.remind-preview-channel i { font-size: 1rem; }
.remind-preview-to { font-size: .78rem; color: var(--text-muted); margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.remind-preview-to strong { color: var(--text); }
.remind-preview-field { margin-bottom: 12px; }
.remind-preview-field label { display: block; font-size: .72rem; font-weight: 700; color: var(--text-muted); margin-bottom: 4px; }
.remind-preview-field input,
.remind-preview-field textarea {
    width: 100%; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px;
    font-family: inherit; font-size: .8rem; background: var(--bg); color: var(--text);
    transition: border-color .15s;
}
.remind-preview-field input:focus,
.remind-preview-field textarea:focus { outline: none; border-color: var(--accent); }
.remind-preview-field textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.remind-preview-char-count { font-size: .65rem; color: var(--text-muted); text-align: left; margin-top: 2px; }
.remind-preview-actions { display: flex; gap: 8px; padding-top: 8px; }
.remind-preview-actions .btn { flex: 1; }

/* ═══ Fund & Membership Overview Cards ═══ */
.dash2-fund-overview { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 16px; }
@media (max-width: 900px) { .dash2-fund-overview { grid-template-columns: 1fr; } }
.dash2-fund-card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 18px 20px; cursor: pointer; transition: all .2s;
    display: flex; flex-direction: column; gap: 14px;
}
.dash2-fund-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); transform: translateY(-2px); border-color: rgba(0,0,0,.12); }
.dash2-fund-header { display: flex; align-items: center; gap: 12px; }
.dash2-fund-icon {
    width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: #fff;
}
.dash2-fund-label { font-size: .9rem; font-weight: 800; color: var(--text); }
.dash2-fund-sublabel { font-size: .7rem; color: var(--text-muted); margin-top: 1px; }
.dash2-fund-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.dash2-fund-metric {
    text-align: center; padding: 8px 4px; border-radius: 8px;
    background: var(--bg-secondary); border: 1px solid var(--border);
}
.dash2-fund-metric.main { background: #f0fdf4; border-color: #bbf7d0; }
.dash2-fund-metric-val { font-size: 1.2rem; font-weight: 800; line-height: 1.2; }
.dash2-fund-metric-lbl { font-size: .62rem; color: var(--text-muted); margin-top: 2px; font-weight: 500; }
.dash2-fund-footer { display: flex; flex-direction: column; gap: 4px; }
.dash2-fund-rev { font-size: .78rem; color: var(--text-secondary); font-weight: 500; }
.dash2-fund-bar { height: 5px; background: #f1f5f9; border-radius: 3px; overflow: hidden; }
.dash2-fund-bar-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, #059669, #34d399); transition: width .4s; }
.dash2-fund-bar-label { font-size: .65rem; color: #94a3b8; text-align: left; }

/* ═══ Quick Stats Strip ═══ */
.dash2-quick-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
@media (max-width: 900px) { .dash2-quick-stats { grid-template-columns: 1fr; } }
.dash2-qs-card { display: flex; gap: 12px; padding: 14px 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: all .15s; }
.dash2-qs-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.06); transform: translateY(-1px); }
.dash2-qs-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: .95rem; flex-shrink: 0; }
.dash2-qs-body { flex: 1; min-width: 0; }
.dash2-qs-title { font-size: .78rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.dash2-qs-row { font-size: .72rem; color: #64748b; line-height: 1.5; }
.dash2-qs-val { font-weight: 800; }
.dash2-qs-val.green { color: #16a34a; }
.dash2-qs-val.purple { color: #7c3aed; }
.dash2-qs-val.orange { color: #ea580c; }
.dash2-qs-val.blue { color: #2563eb; }
.dash2-qs-sep { color: #d1d5db; margin: 0 1px; }
.dash2-qs-bar { height: 3px; background: #f1f5f9; border-radius: 2px; margin: 6px 0 3px; overflow: hidden; }
.dash2-qs-bar-fill { height: 100%; border-radius: 2px; transition: width .3s; }
.dash2-qs-sub { font-size: .66rem; color: #94a3b8; }
.dash2-qs-amounts { font-size: .68rem; color: #94a3b8; margin-top: 2px; }

/* ═══════════════════════════════════════════════
   Forms v4 — Redesigned Catalog & Detail
   ═══════════════════════════════════════════════ */

/* Header */
.forms4-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.forms4-header-title h2 { font-size: 1.15rem; font-weight: 700; display: flex; align-items: center; gap: 8px; margin: 0; }
.forms4-header-title h2 i { color: var(--accent); font-size: .95rem; }
.forms4-header-date { font-size: .78rem; color: var(--text-muted); margin-top: 2px; display: block; }

/* Stats strip */
.forms4-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.forms4-stat {
    background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px;
    display: flex; flex-direction: column; align-items: center; text-align: center; transition: all .2s;
}
.forms4-stat:hover { border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); transform: translateY(-1px); }
.forms4-stat-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: .85rem; background: rgba(99,102,241,.08); color: #6366f1; margin-bottom: 8px; }
.forms4-stat.green .forms4-stat-icon { background: rgba(22,163,74,.08); color: #16a34a; }
.forms4-stat.blue .forms4-stat-icon { background: rgba(37,99,235,.08); color: #2563eb; }
.forms4-stat.purple .forms4-stat-icon { background: rgba(124,58,237,.08); color: #7c3aed; }
.forms4-stat-num { font-size: 1.4rem; font-weight: 800; color: var(--text); line-height: 1.2; }
.forms4-stat-label { font-size: .72rem; color: var(--text-muted); font-weight: 600; margin-top: 2px; }
.forms4-stat-sub { font-size: .66rem; color: var(--text-muted); margin-top: 1px; }
.forms4-stat-sub.highlight { color: #16a34a; font-weight: 700; }

/* Toolbar */
.forms4-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.forms4-search {
    flex: 1; min-width: 200px; position: relative; display: flex; align-items: center;
    background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 0 12px;
    transition: border-color .2s;
}
.forms4-search:focus-within { border-color: var(--accent); }
.forms4-search i { color: var(--text-muted); font-size: .8rem; }
.forms4-search input {
    border: 0; background: transparent; padding: 9px 10px; font-size: .84rem; width: 100%;
    outline: none; font-family: inherit; color: var(--text);
}
.forms4-chips { display: flex; gap: 6px; }
.forms4-chip {
    display: flex; align-items: center; gap: 5px; padding: 7px 14px; border-radius: 20px;
    border: 1px solid var(--border); background: var(--card); font-size: .78rem; font-weight: 600;
    cursor: pointer; transition: all .15s; color: var(--text-muted); font-family: inherit;
}
.forms4-chip:hover { border-color: var(--accent); color: var(--text); }
.forms4-chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.forms4-chip i { font-size: .35rem; }
.forms4-chip.green i { color: #16a34a; }
.forms4-chip.muted i { color: #94a3b8; }
.forms4-chip.active i { color: #fff; }
.forms4-chip span { font-weight: 700; }

/* Featured new forms section */
.forms4-featured { margin-bottom: 24px; }
.forms4-featured-head {
    display: flex; align-items: center; gap: 8px; padding: 10px 16px; margin-bottom: 12px;
    background: linear-gradient(135deg, rgba(22,163,74,.06), rgba(74,222,128,.04));
    border: 1px solid rgba(22,163,74,.15); border-radius: 10px;
    font-size: .84rem; font-weight: 700; color: #16a34a;
}
.forms4-featured-head i { font-size: .75rem; }
.forms4-featured-count {
    margin-right: auto; background: #16a34a; color: #fff; padding: 2px 8px;
    border-radius: 10px; font-size: .7rem; font-weight: 700;
}
.forms4-featured-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.forms4-feat-card {
    background: var(--card); border: 1px solid rgba(22,163,74,.2); border-radius: 10px;
    padding: 14px; cursor: pointer; transition: all .2s; position: relative; overflow: hidden;
}
.forms4-feat-card::before {
    content: ''; position: absolute; top: 0; right: 0; width: 3px; height: 100%;
    background: linear-gradient(180deg, #16a34a, #4ade80);
}
.forms4-feat-card:hover { border-color: #16a34a; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(22,163,74,.1); }
.forms4-feat-card.disabled { opacity: .5; border-color: var(--border); }
.forms4-feat-card.disabled::before { background: #94a3b8; }
.forms4-feat-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.forms4-feat-icon { width: 32px; height: 32px; border-radius: 8px; background: rgba(22,163,74,.08); color: #16a34a; display: flex; align-items: center; justify-content: center; font-size: .8rem; }
.forms4-feat-badges { display: flex; gap: 4px; }
.forms4-feat-new { font-size: .64rem; font-weight: 700; color: #16a34a; background: rgba(22,163,74,.08); padding: 2px 7px; border-radius: 8px; display: flex; align-items: center; gap: 3px; }
.forms4-feat-new i { font-size: .3rem; }
.forms4-feat-disabled { font-size: .64rem; color: #94a3b8; background: rgba(148,163,184,.1); padding: 2px 7px; border-radius: 8px; }
.forms4-feat-title { font-size: .82rem; font-weight: 700; color: var(--text); line-height: 1.3; margin-bottom: 6px; }
.forms4-feat-meta { display: flex; align-items: center; gap: 10px; font-size: .7rem; color: var(--text-muted); }
.forms4-feat-meta i { font-size: .6rem; }

/* Groups */
.forms4-group { margin-bottom: 28px; }
.forms4-group-head {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px;
    background: var(--card); border: 1px solid var(--border); border-radius: 12px;
    margin-bottom: 14px; position: relative; overflow: hidden;
}
.forms4-group-head::before { content: ''; position: absolute; top: 0; right: 0; width: 4px; height: 100%; background: var(--group-clr, var(--accent)); }
.forms4-group-head.mollie { --group-clr: #6366f1; }
.forms4-group-head.paypal { --group-clr: #0070f3; }
.forms4-group-head.other { --group-clr: #94a3b8; }
.forms4-group-icon {
    width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center;
    justify-content: center; font-size: .9rem;
}
.forms4-group-icon.mollie { background: rgba(99,102,241,.08); color: #6366f1; }
.forms4-group-icon.paypal { background: rgba(0,112,243,.08); color: #0070f3; }
.forms4-group-icon.other { background: rgba(148,163,184,.08); color: #64748b; }
.forms4-group-info { flex: 1; }
.forms4-group-title { font-size: .9rem; font-weight: 700; color: var(--text); }
.forms4-group-sub { font-size: .74rem; color: var(--text-muted); margin-top: 2px; }
.forms4-group-count {
    min-width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center;
    justify-content: center; font-size: .85rem; font-weight: 800; color: var(--text);
    background: var(--bg); border: 1px solid var(--border);
}

/* Cards grid */
.forms4-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.forms4-card {
    background: var(--card); border: 1px solid var(--border); border-radius: 12px;
    cursor: pointer; transition: all .2s; display: flex; flex-direction: column;
    overflow: hidden; position: relative;
}
.forms4-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.forms4-card-off { opacity: .45; filter: grayscale(.2); }
.forms4-card-off:hover { opacity: .7; filter: none; }
.forms4-card-status { height: 3px; width: 100%; }
.forms4-card-status.on { background: linear-gradient(90deg, #16a34a, #4ade80); }
.forms4-card-status.off { background: linear-gradient(90deg, #94a3b8, #cbd5e1); }
.forms4-card-body { padding: 14px 16px 10px; flex: 1; display: flex; flex-direction: column; }
.forms4-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.forms4-card-icon {
    width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center;
    justify-content: center; font-size: .85rem; background: var(--bg); color: var(--text-muted);
}
.forms4-card-icon.integrated { background: rgba(99,102,241,.08); color: #6366f1; }
.forms4-card-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.forms4-tag {
    font-size: .62rem; font-weight: 700; padding: 2px 8px; border-radius: 8px;
    text-transform: uppercase; letter-spacing: .3px;
}
.forms4-tag.green { background: rgba(22,163,74,.08); color: #16a34a; }
.forms4-tag.muted { background: rgba(148,163,184,.08); color: #94a3b8; }
.forms4-tag.purple { background: rgba(99,102,241,.08); color: #6366f1; }
.forms4-tag.new { background: rgba(22,163,74,.1); color: #16a34a; display: flex; align-items: center; gap: 3px; }
.forms4-tag.new i { font-size: .3rem; }
.forms4-card-title { font-size: .84rem; font-weight: 700; color: var(--text); line-height: 1.3; margin-bottom: 4px; }
.forms4-card-desc { font-size: .72rem; color: var(--text-muted); margin-bottom: 4px; }
.forms4-card-meta { font-size: .68rem; color: var(--text-muted); opacity: .7; margin-top: auto; padding-top: 4px; }
.forms4-card-foot {
    display: flex; align-items: center; gap: 8px; padding: 10px 16px;
    border-top: 1px solid var(--border); font-size: .74rem; color: var(--text-muted);
}
.forms4-card-count { display: flex; align-items: center; gap: 4px; }
.forms4-card-count i { font-size: .6rem; }
.forms4-card-new { color: #16a34a; font-weight: 700; font-size: .72rem; }
.forms4-card-arrow {
    margin-right: auto; opacity: 0; transform: translateX(4px); transition: all .2s;
    font-size: .7rem; color: var(--accent);
}
.forms4-card:hover .forms4-card-arrow { opacity: 1; transform: translateX(0); }

/* Payment parsed display in side panel */
.forms4-payment-box { padding: 4px 0; }
.forms4-pay-items { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.forms4-pay-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 12px; background: rgba(22,163,74,.03); border-radius: 8px;
    border: 1px solid rgba(22,163,74,.1);
}
.forms4-pay-item-name { font-size: .82rem; font-weight: 600; color: var(--text); }
.forms4-pay-item-amount { font-size: .84rem; font-weight: 700; color: #16a34a; direction: ltr; font-family: 'Inter', monospace; }
.forms4-pay-total {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 14px; background: rgba(22,163,74,.06); border-radius: 10px;
    border: 1px solid rgba(22,163,74,.15); margin-bottom: 10px;
}
.forms4-pay-total span { font-size: .78rem; color: var(--text-muted); font-weight: 600; }
.forms4-pay-total strong { font-size: 1rem; color: #16a34a; direction: ltr; font-family: 'Inter', monospace; }
.forms4-pay-detail {
    display: flex; align-items: center; gap: 6px; padding: 6px 12px;
    font-size: .78rem; color: var(--text-muted);
}
.forms4-pay-detail i { font-size: .7rem; width: 16px; text-align: center; }

/* Field rows in side panel */
.forms4-field-row {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 10px 14px; background: var(--bg); border-radius: 10px; gap: 12px;
    border: 1px solid transparent; transition: border-color .15s;
}
.forms4-field-row:hover { border-color: var(--border); }
.forms4-field-label { font-size: .78rem; color: var(--text-muted); flex-shrink: 0; max-width: 40%; font-weight: 500; }
.forms4-field-value { font-size: .84rem; font-weight: 600; text-align: left; direction: ltr; word-break: break-word; color: var(--text); }

/* Responsive */
@media (max-width: 768px) {
    .forms4-stats { grid-template-columns: repeat(2, 1fr); }
    .forms4-toolbar { flex-direction: column; }
    .forms4-featured-grid { grid-template-columns: 1fr; }
    .forms4-grid { grid-template-columns: 1fr; }
}
