/* =============================================================
   User Main CSS
   Pixel-perfect alignment with Next.js source styles
   ============================================================= */

:root {
    /* Colors — matches tailwind.config primary */
    --primary: #f90606;
    --primary-hover: #cc0000;
    --primary-soft: #ffeaea;

    /* Slate scale — matches Next.js Tailwind slate colors */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    --sidebar-width: 288px;
    /* w-72 from user-sidebar.tsx */
    --header-height: 70px;

    /* Typography */
    --font-main: 'Public Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: #f8f5f5;
    /* bg-[#f8f5f5] from page.tsx */
    color: var(--gray-900);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body.suxali-citizen-body {
    margin-top: -3rem !important;
}

/* Typography Helpers */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
}

/* Layout
   Next.js: flex min-h-screen w-full flex-row overflow-hidden bg-[#f8f5f5] */
.user-layout {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: #f8f5f5;
}

/* Main Content
   Next.js: flex-1 flex flex-col min-w-0 h-screen overflow-y-auto relative */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100vh;
    overflow-y: auto;
    position: relative;
}

/* Desktop Header
   height: 72px, padding: 0 40px, border-bottom: rgba(0,0,0,0.05), bg: #ffffff */
.desktop-header {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Title: font-size 18px, font-weight 600, line-height 24px */
.desktop-header h2 {
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    color: var(--gray-900);
    margin: 0;
}

/* Content Scroll Area
   Next.js: flex-1 overflow-y-auto p-4 md:p-8 lg:p-12 */
.content-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 3rem;
    /* lg:p-12 */
}

/* Max Width Container
   Next.js: max-w-5xl mx-auto space-y-8 pb-20 */
.max-w-5xl {
    max-width: 64rem;
    /* max-w-5xl */
    margin-left: auto;
    margin-right: auto;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.space-y-8>*+* {
    margin-top: 2rem;
    /* space-y-8 */
}

.pb-20 {
    padding-bottom: 5rem;
}

@media (max-width: 1024px) {
    .content-scroll {
        padding: 1rem;
        /* p-4 */
        padding-bottom: 5rem;
    }

    .desktop-header {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .content-scroll {
        padding: 2rem;
        /* md:p-8 */
    }
}

/* =============================================================
   Components
   ============================================================= */

/* Card
   Next.js: bg-white rounded-xl shadow-sm border border-slate-200 */
.card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    /* rounded-xl = 12px */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    /* shadow-sm */
}

/* Primary Button
   Next.js: px-6 py-2.5 bg-[#ff0000] hover:bg-[#cc0000] text-white font-semibold rounded-lg */
.btn-primary {
    background-color: #ff0000;
    color: #fff;
    padding: 0.625rem 1.5rem;
    /* py-2.5 px-6 */
    border-radius: 0.5rem;
    /* rounded-lg */
    border: none;
    font-weight: 600;
    /* font-semibold */
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background-color: #cc0000;
}

/* Badge
   Next.js: inline-flex items-center gap-1 px-2 py-0.5 bg-green-100 text-green-700 rounded-full text-xs font-semibold */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    /* py-0.5 px-2 */
    border-radius: 9999px;
    /* rounded-full */
    font-size: 0.75rem;
    /* text-xs */
    font-weight: 600;
    /* font-semibold */
}

.badge-success {
    background-color: #dcfce7;
    /* bg-green-100 */
    color: #15803d;
    /* text-green-700 */
}

/* Utility helpers */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.gap-2 {
    gap: 0.5rem;
}

/* =============================================================
   Breadcrumbs
   ============================================================= */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--gray-400);
}

.breadcrumbs a {
    color: var(--gray-500);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs .bc-sep {
    font-size: 1rem;
    color: var(--gray-300);
}

.breadcrumbs .current {
    color: var(--gray-800);
    font-weight: 600;
}

/* =============================================================
   Page Header
   ============================================================= */
.page-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.page-header-between {
    justify-content: space-between;
    align-items: center;
}

.page-badge {
    display: inline-block;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.page-title {
    font-size: 1.875rem;
    font-weight: 900;
    color: var(--gray-900);
    line-height: 1.2;
}

.btn-primary-sm {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 1.25rem;
    background: var(--primary);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    box-shadow: 0 4px 6px rgba(255, 0, 0, 0.2);
}

.btn-primary-sm:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-primary-sm .material-symbols-outlined {
    font-size: 1.125rem;
}

.btn-primary-lg {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    box-shadow: 0 10px 15px rgba(255, 0, 0, 0.2);
}

.btn-primary-lg:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-primary-lg .material-symbols-outlined {
    font-size: 1.25rem;
}

/* =============================================================
   KPI Cards
   ============================================================= */
.kpi-grid {
    display: grid;
    gap: 1.5rem;
}

.kpi-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.kpi-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s;
}

.kpi-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.kpi-body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.kpi-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.kpi-value {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--gray-900);
    line-height: 1;
}

.kpi-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kpi-icon .material-symbols-outlined {
    font-size: 1.25rem;
}

.kpi-icon-red {
    background: var(--primary-soft);
    color: var(--primary);
}

.kpi-icon-blue {
    background: #dbeafe;
    color: #2563eb;
}

/* KPI Progress */
.kpi-progress {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.progress-bar {
    height: 6px;
    background: var(--gray-100);
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.6s ease;
}

.progress-green {
    background: #22c55e;
}

.progress-blue {
    background: #3b82f6;
}

.progress-label {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* =============================================================
   Search Input
   ============================================================= */
.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    color: var(--gray-400);
    font-size: 1.25rem;
    pointer-events: none;
}

.search-input.suxali-input {
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--gray-900);
    outline: none;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.1);
}

.search-input-lg {
    flex: 1;
}

/* =============================================================
   Toolbar
   ============================================================= */
.toolbar-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toolbar-row-wrap {
    flex-wrap: wrap;
}

.filter-select {
    padding: 0.625rem 2rem 0.625rem 1rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--gray-900);
    outline: none;
    appearance: none;
    cursor: pointer;
}

.filter-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.1);
}

/* =============================================================
   Filter Chips
   ============================================================= */
.filter-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 9999px;
    background: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.filter-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-chip.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* =============================================================
   Table Card (Dons)
   ============================================================= */
.table-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.table-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.table-card-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
}

.table-card-header .search-input-wrap {
    width: 240px;
}

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table thead th {
    text-align: left;
    padding: 0.75rem 1.5rem;
    color: var(--gray-500);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--gray-100);
    background: var(--gray-50);
}

.data-table tbody td {
    padding: 0.875rem 1.5rem;
    border-bottom: 1px solid var(--gray-50);
    color: var(--gray-700);
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background: var(--gray-50);
}

.table-cell-with-icon {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.table-icon-badge {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.table-icon-badge .material-symbols-outlined {
    font-size: 1rem;
}

.table-icon-storefront {
    background: #fef3c7;
    color: #d97706;
}

.table-icon-school {
    background: #dbeafe;
    color: #2563eb;
}

.table-icon-medical_services {
    background: #fce7f3;
    color: #db2777;
}

.table-icon-traffic {
    background: #d1fae5;
    color: #059669;
}

.table-cell-label {
    font-weight: 600;
    color: var(--gray-900);
}

.td-amount {
    font-weight: 700;
    color: var(--gray-900);
}

.td-muted {
    color: var(--gray-500);
}

.ref-badge {
    display: inline-block;
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 0.125rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-family: monospace;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-valid,
.status-green {
    background: #dcfce7;
    color: #15803d;
}

.status-yellow {
    background: #fef9c3;
    color: #a16207;
}

.status-blue {
    background: #dbeafe;
    color: #1d4ed8;
}

/* Table footer / pagination */
.table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    border-top: 1px solid var(--gray-100);
}

.table-footer-text {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.table-pagination {
    display: flex;
    gap: 0.25rem;
}

.pag-btn {
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray-500);
    transition: all 0.2s;
}

.pag-btn:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

.pag-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pag-btn .material-symbols-outlined {
    font-size: 1rem;
}

/* =============================================================
   Support Footer
   ============================================================= */
.support-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    padding: 1.5rem;
    color: var(--gray-500);
    font-size: 0.875rem;
}

.support-footer .material-symbols-outlined {
    font-size: 1.25rem;
}

.support-footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.support-footer a:hover {
    text-decoration: underline;
}

/* =============================================================
   Opportunities Page — Pixel-perfect
   ============================================================= */

/* Remove header for opp page */
.opp-content-scroll {
    padding-top: 2rem;
}

/* ESPACE CITOYEN label */
.espace-citoyen-label {
    font-size: 13px;
    font-weight: 600;
    color: #ff0000;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.espace-citoyen-label .material-symbols-outlined {
    font-size: 18px;
    color: #ff0000;
}

/* Page title */
.opp-page-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.2;
}

/* Subtitle */
.opp-page-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Search bar */
.opp-search-bar-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 56px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.opp-search-icon {
    position: absolute;
    left: 16px;
    color: #9ca3af;
    font-size: 20px;
}

.opp-search-bar.suxali-input {
    flex: 1;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: 0 16px 0 48px;
    font-size: 15px;
    color: #111827;
    font-family: inherit;
}

.opp-search-bar.suxali-input::placeholder {
    color: #9ca3af;
}

.opp-status-filter {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 16px;
    height: 100%;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
}

.opp-status-filter .material-symbols-outlined {
    font-size: 18px;
    color: #9ca3af;
}

/* Status dropdown menu */
.opp-status-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 100;
    overflow: hidden;
    padding: 4px;
}

.opp-status-dropdown-open {
    display: block;
}

.opp-status-option {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-family: inherit;
    color: #374151;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.1s;
}

.opp-status-option:hover {
    background: #f3f4f6;
}

.opp-status-option-active {
    background: #2563eb;
    color: #ffffff;
}

.opp-status-option-active:hover {
    background: #1d4ed8;
}

/* Filter chips */
.opp-filter-chips {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.opp-chip {
    height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
    font-family: inherit;
    background: #f3f4f6;
    color: #374151;
}

.opp-chip:hover {
    background: #e5e7eb;
}

.opp-chip .material-symbols-outlined {
    font-size: 16px;
}

.opp-chip-active {
    background: #111827;
    color: #ffffff;
}

.opp-chip-active:hover {
    background: #1f2937;
}

/* Opportunity cards grid */
.opp-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Individual card */
.opp-card-v2 {
    width: 100%;
    max-width: 340px;
    border-radius: 16px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: all 0.2s;
}

.opp-card-v2:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Card header: icon + status */
.opp-card-v2-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.opp-card-v2-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.opp-card-v2-icon .material-symbols-outlined {
    font-size: 22px;
}

/* Icon color variants */
.opp-card-v2-icon-blue {
    background: #dbeafe;
    color: #2563eb;
}

.opp-card-v2-icon-purple {
    background: #ede9fe;
    color: #7c3aed;
}

.opp-card-v2-icon-emerald {
    background: #d1fae5;
    color: #059669;
}

/* Status badge */
.opp-card-v2-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
}

.opp-card-v2-status-active {
    background: #f0fdf4;
    color: #16a34a;
}

.opp-card-v2-status-done {
    background: #f3f4f6;
    color: #6b7280;
}

.opp-status-dot-green {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
}

.opp-status-check {
    font-size: 14px !important;
}

/* Card title */
.opp-card-v2-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
    line-height: 1.3;
}

/* Card org */
.opp-card-v2-org {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 0;
}

/* Divider */
.opp-card-v2-divider {
    height: 1px;
    background: #f3f4f6;
    margin: 16px 0;
}

/* Date */
.opp-card-v2-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #9ca3af;
}

.opp-card-v2-date .material-symbols-outlined {
    font-size: 16px;
    color: #d1d5db;
}

/* Voir les détails link */
.opp-card-v2-link {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    text-decoration: none;
    margin-top: 16px;
    transition: gap 0.2s;
}

.opp-card-v2-link:hover {
    gap: 8px;
}

.opp-card-v2-link .material-symbols-outlined {
    font-size: 16px;
}

/* =============================================================
   Dons Page — Pixel-perfect
   ============================================================= */

.dons-content-scroll {
    padding-top: 2rem;
}

/* Header row: title + CTA */
.dons-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 16px;
}

.dons-page-title {
    font-size: 30px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.2;
}

.dons-page-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.dons-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ff0000;
    color: #fff;
    height: 48px;
    padding: 0 20px;
    border-radius: 10px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}

.dons-cta-btn:hover {
    background: #dc2626;
}

.dons-cta-btn .material-symbols-outlined {
    font-size: 20px;
}

/* KPI Cards */
.dons-kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.dons-kpi-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.dons-kpi-body {
    flex: 1;
}

.dons-kpi-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.dons-kpi-value {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    line-height: 1;
    margin: 0;
}

.dons-kpi-unit {
    font-size: 16px;
    font-weight: 500;
    color: #6b7280;
}

.dons-kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #6b7280;
}

.dons-kpi-icon .material-symbols-outlined {
    font-size: 22px;
}

/* Transactions Table Card */
.dons-table-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 24px;
}

.dons-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dons-table-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.dons-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    height: 40px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    background: #fff;
}

.dons-search-wrap .material-symbols-outlined {
    font-size: 18px;
    color: #9ca3af;
}

.dons-search-input.suxali-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #111827;
    font-family: inherit;
    width: 200px;
}

.dons-search-input.suxali-input::placeholder {
    color: #9ca3af;
}

/* Data table */
.dons-data-table {
    width: 100%;
    border-collapse: collapse;
}

.dons-data-table thead {
    background: #f9fafb;
}

.dons-data-table th {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 24px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-left: none;
    /* Ajoutez ces lignes */
    border-right: none;
    border-top: none;

}

.dons-data-table td {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 14px;
    color: #374151;
    vertical-align: middle;
    border: none;
    /* ou border: 0; */

}

.dons-data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Date column */
.dons-td-date {
    color: #374151;
    white-space: nowrap;
}

/* Campaign cell with icon */
.dons-campaign-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dons-campaign-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f0fdf4;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dons-campaign-icon .material-symbols-outlined {
    font-size: 16px;
}

.dons-campaign-name {
    font-weight: 600;
    color: #111827;
}

/* Amount column */
.dons-td-amount {
    font-weight: 600;
    color: #111827;
}

/* Reference column */
.dons-td-ref {
    color: #9ca3af;
}

/* Status badge */
.dons-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
    font-weight: 600;
    font-size: 13px;
    border-radius: 999px;
    padding: 4px 12px;
}

.dons-status-icon {
    font-size: 14px !important;
}

/* Table footer */
.dons-table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.dons-table-footer-text {
    font-size: 13px;
    color: #9ca3af;
}

.dons-table-pagination {
    display: flex;
    gap: 4px;
}

.dons-pag-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.1s;
}

.dons-pag-btn:hover:not(:disabled) {
    background: #f3f4f6;
}

.dons-pag-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.dons-pag-btn .material-symbols-outlined {
    font-size: 18px;
}

/* Support footer */
.dons-support-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 20px 0;
    font-size: 14px;
    color: #6b7280;
}

.dons-support-footer p {
    margin: 0;
}

.dons-support-footer .material-symbols-outlined {
    font-size: 18px;
    color: #9ca3af;
}

.dons-support-footer a {
    color: #ff0000;
    font-weight: 600;
    text-decoration: none;
}

.dons-support-footer a:hover {
    text-decoration: underline;
}

/* =============================================================
   Suggestion Cards
   ============================================================= */
.suggestion-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.suggestion-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    transition: all 0.2s;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.suggestion-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.suggestion-card.border-yellow {
    border-left: 4px solid #eab308;
}

.suggestion-card.border-blue {
    border-left: 4px solid #3b82f6;
}

.suggestion-card.border-green {
    border-left: 4px solid #22c55e;
}

.suggestion-card-body {
    flex: 1;
    padding: 1.25rem 1.5rem;
}

.suggestion-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.suggestion-icon-wrap {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.suggestion-icon-wrap .material-symbols-outlined {
    font-size: 1.25rem;
}

.icon-yellow {
    background: #fef9c3;
    color: #a16207;
}

.icon-blue {
    background: #dbeafe;
    color: #2563eb;
}

.suggestion-meta-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.sug-type-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
}

.sug-date {
    font-size: 0.75rem;
    color: var(--gray-400);
}

.sug-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.3;
}

.sug-description {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.sug-footer {
    display: flex;
    align-items: center;
}

.suggestion-chevron {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    color: var(--gray-300);
}

.suggestion-card:hover .suggestion-chevron {
    color: var(--primary);
}

/* =============================================================
   Paramètres Page — Pixel-perfect
   ============================================================= */

.params-content-scroll {
    padding-top: 2rem;
}

.params-container {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 100px;
}

.params-page-title {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.2;
}

.params-page-subtitle {
    font-size: 16px;
    color: #ef4444;
    font-weight: 500;
    margin-bottom: 32px;
}

.params-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    margin-bottom: 24px;
    overflow: hidden;
}

.params-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
}

.params-card-icon {
    width: 36px;
    height: 36px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.params-card-icon .material-symbols-outlined {
    font-size: 20px;
}

.params-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.params-card-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.05);
    margin: 0 24px;
}

.params-card-body {
    padding: 24px;
}

.params-section-label {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 20px;
}

.params-form-group {
    margin-bottom: 20px;
}

.params-form-group:last-child {
    margin-bottom: 0;
}

.params-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.params-input {
    width: 100%;
    height: 48px;
    padding: 12px 16px;
    border: 1px solid #fca5a5;
    border-radius: 12px;
    font-size: 15px;
    color: #111827;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
}

.params-input:focus {
    border-color: #ef4444;
}

/* Support Technique Section */
.params-support-desc {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
}

.params-support-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    margin-bottom: 12px;
}

.params-support-btn-outline {
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #374151;
}

.params-support-btn-outline:hover {
    background: #f9fafb;
}

.params-support-btn-red {
    background: #fff;
    border: 1px solid #ef4444;
    color: #ef4444;
    justify-content: center;
}

.params-support-btn-red:hover {
    background: #fee2e2;
}

.params-contact-label {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    margin-top: 24px;
    margin-bottom: 12px;
}

/* Floating Save Button */
.params-save-floating {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 50;
}

.params-save-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0 24px;
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    transition: transform 0.2s, background 0.2s;
}

.params-save-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.params-save-btn .material-symbols-outlined {
    font-size: 20px;
}

/* =============================================================
   QR Pass Layout
   ============================================================= */

/* Remove header for QR page */
.qr-content-scroll {
    padding-top: 2rem;
}

.qr-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 2rem;
    align-items: flex-start;
}

/* Pass Card — exact specs */
.pass-card {
    width: 420px;
    max-width: 100%;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.pass-top-bar {
    height: 6px;
    background: #ff0000;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.pass-body {
    padding: 32px 28px;
    text-align: center;
}

.pass-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
}

.pass-name {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.pass-role {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

/* QR container — exact specs */
.pass-qr-area {
    width: 240px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #fafafa;
    border-radius: 16px;
    border: 1px dashed rgba(0, 0, 0, 0.1);
    margin: 0 auto 24px;
}

.qr-svg {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

/* Identifiant — exact specs */
.pass-id {
    margin-bottom: 0;
}

.pass-id-label {
    display: block;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.6;
    color: var(--gray-900);
    margin-bottom: 0;
}

.pass-id-value {
    display: block;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--gray-900);
    margin-top: 6px;
}

/* Status — exact specs */
.pass-status-section {
    margin-top: 20px;
}

.pass-status-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.pass-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #16a34a;
}

.status-dot-green {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* QR Page Title — no header bar */
.qr-page-title {
    font-size: 1.875rem;
    font-weight: 900;
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: 0;
}

/* Subtitle — RED #ff0000, weight 500, margins 8/24 */
.qr-page-subtitle {
    font-size: 1rem;
    color: #ff0000;
    font-weight: 500;
    margin-top: 8px;
    margin-bottom: 24px;
}

/* Pass card title */
.pass-title-main {
    font-size: 1rem;
    font-weight: 800;
    color: var(--gray-900);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.pass-subtitle-org {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}

/* Instructions card — exact specs */
.qr-instructions-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.qr-instructions-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.instructions-intro {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Horizontal 3-column steps */
.instruction-steps-horizontal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.instruction-step-h {
    text-align: center;
}

/* Icons — 48x48, rgba red bg, 12px radius */
.instruction-step-icon-h {
    width: 48px;
    height: 48px;
    background: rgba(255, 0, 0, 0.08);
    color: #ff0000;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.instruction-step-icon-h .material-symbols-outlined {
    font-size: 1.375rem;
}

.instruction-step-h h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 6px;
}

.instruction-step-h p {
    font-size: 0.8125rem;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.5;
}

/* Vertical steps (kept for reuse) */
.instruction-steps {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.instruction-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.instruction-step-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.instruction-step-icon .material-symbols-outlined {
    font-size: 1.25rem;
}

.instruction-step h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.25rem;
}

.instruction-step p {
    font-size: 0.8125rem;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.5;
}

/* Info box — exact specs */
.qr-info-box {
    display: flex;
    gap: 0.75rem;
    padding: 20px;
    background: #f0f7ff;
    border: 1px solid #dbeafe;
    border-radius: 12px;
}

.qr-info-box>.material-symbols-outlined {
    color: #3b82f6;
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.qr-info-box p {
    font-size: 14px;
    color: #1e40af;
    margin: 0;
    line-height: 1.6;
}

.qr-info-box strong {
    color: #1d4ed8;
    font-weight: 600;
}

/* =============================================================
   Mobile Responsive
   ============================================================= */
@media (max-width: 768px) {
    .kpi-grid-2 {
        grid-template-columns: 1fr;
    }

    .opp-cards-grid {
        grid-template-columns: 1fr;
    }

    .opp-card-v2 {
        max-width: 100%;
    }

    .opp-search-bar-wrap {
        flex-direction: column;
        height: auto;
    }

    .opp-search-bar {
        height: 48px;
        padding-left: 48px;
    }

    .opp-status-filter {
        border-left: none;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        height: 44px;
        justify-content: center;
    }

    .qr-layout {
        grid-template-columns: 1fr;
    }

    .pass-card {
        width: 100%;
    }

    .toolbar-row {
        flex-direction: column;
        align-items: stretch;
    }

    .table-card-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }

    .table-card-header .search-input-wrap {
        width: 100%;
    }

    .page-header-between {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .instruction-steps-horizontal {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .dons-header-row {
        flex-direction: column;
    }

    .dons-cta-btn {
        width: 100%;
        justify-content: center;
    }

    .dons-kpi-grid {
        grid-template-columns: 1fr;
    }

    .dons-table-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .dons-search-input.suxali-input {
        width: 100%;
    }
}