﻿/* claims.css - Create claim form, claims page, advanced filter bar, advanced filters panel */

/* ==================== CREATE CLAIM STYLES ==================== */
.step-nav {
    width: 280px;
    flex-shrink: 0;
    padding: 2.5rem 1.5rem 2.5rem 2.5rem;
    background: #fff;
    position: fixed;
    left: var(--sidebar-width-expanded);
    top: var(--header-height);
    bottom: 50px; /* Above footer */
    overflow-y: auto;
    z-index: 10;
    border-right: 1px solid #f0f0f0;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Collapsed sidebar state */
.sidebar-collapsed .step-nav {
    left: var(--sidebar-width-collapsed);
}

.step-item {
    display: flex;
    align-items: center;
    position: relative;
    padding-bottom: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-item:last-child {
    padding-bottom: 0;
}

/* Connecting line */
.step-item::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 50px;
    bottom: -6px;
    width: 2px;
    background-color: #dee2e6;
    transition: background-color 0.3s ease;
}

.step-item:last-child::before {
    display: none;
}

/* Completed step line turns green */
.step-item.completed::before {
    background-color: #198754;
}

.step-number {
    font-size: 1.1rem;
    font-weight: 600;
    color: #6b7280;
    margin-right: 1rem;
    min-width: 46px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    background: #fff;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

/* Active step - larger and highlighted */
.step-item.active .step-number {
    color: #1f2937;
    border-color: #9ca3af;
    background-color: #f9fafb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Completed step - green circle with checkmark */
.step-item.completed .step-number {
    color: #fff;
    border-color: #198754;
    background: #fff;
    border-width: 2.5px;
}

.step-item.completed .step-number::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1.1rem;
    color: #198754;
}

.step-item.completed .step-number span {
    display: none;
}

.step-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: #9ca3af;
    transition: all 0.3s ease;
}

.step-item:hover .step-label {
    color: #6b7280;
}

.step-item.active .step-label {
    color: #1f2937;
    text-decoration: underline;
    text-decoration-color: #198754;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

.step-item.completed .step-label {
    color: #1f2937;
}

.form-area {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2.5rem 3rem 2rem 0;
    overflow-y: auto;
}

.form-content {
    width: 100%;
    max-width: 650px;
}

.step-title {
    font-size: 2.25rem;
    font-weight: 400;
    color: #212529;
    margin-bottom: 2rem;
}

.form-label {
    font-weight: 400;
    color: #212529;
    margin-bottom: 0.625rem;
    font-size: 1.125rem;
}

.form-label .required {
    color: #dc3545;
}

.form-select, .form-control {
    font-size: 1.125rem;
    padding: 0.625rem 1rem;
    border-color: #ced4da;
    border-radius: 0.25rem;
}

.form-select:focus, .form-control:focus {
    border-color: #198754;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.15);
}

.contact-section {
    margin-top: 2.25rem;
}

.contact-section h5 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.375rem;
    color: #212529;
}

.contact-section .update-link {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
}

.contact-section .update-link a {
    color: #0d6efd;
    text-decoration: underline;
    cursor: pointer;
}

.contact-name {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.375rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.1rem;
}

.contact-info-item i {
    width: 18px;
    font-size: 1rem;
}

.contact-info-item .fa-phone { color: #17a2b8; }
.contact-info-item .fa-envelope { color: #6c757d; }

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.radio-group .form-check {
    margin-bottom: 0;
}

.radio-group .form-check-label {
    font-size: 1.05rem;
    color: #212529;
}

.form-check-input:checked {
    background-color: #198754;
    border-color: #198754;
}

.info-notes {
    margin-top: 1.5rem;
}

.info-notes-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #212529;
    margin-bottom: 0.5rem;
}

.info-note-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 0.375rem;
}

.info-note-item i {
    color: #6c757d;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.add-card {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1.5rem;
    margin-top: 1rem;
}

.add-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.add-card-header i {
    color: #198754;
}

.list-table-header {
    display: flex;
    justify-content: space-between;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: #6c757d;
}

.add-link {
    color: #198754;
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
}

.add-link:hover {
    text-decoration: underline;
}

.card-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

.form-nav {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
}

.form-nav .save-draft-link {
    margin-left: auto;
    color: #6c757d;
    text-decoration: none;
    cursor: pointer;
}

.form-nav .save-draft-link:hover {
    text-decoration: underline;
}

.form-nav .btn-submit-claim {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #6c757d;
}

.btn-next, .btn-prev {
    padding: 0.5rem 1.5rem;
    font-size: 1.125rem;
}

.input-with-toggle {
    position: relative;
}

.input-with-toggle input {
    padding-right: 40px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
}


/* ==================== CLAIMS PAGE STYLES ==================== */
.claims-page {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 2rem;
    border-radius: 1rem;
}

.claims-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(25, 135, 84, 0.1);
}

.claims-header-left h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
}

.claims-header-left h2 i {
    color: #198754;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    padding: 0.75rem;
    border-radius: 0.75rem;
}

.claims-header-left p {
    margin: 0.5rem 0 0 0;
    color: #6b7280;
}

/* Reports Page Header */
.reports-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(25, 135, 84, 0.1);
}

.reports-header-left h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
}

.reports-header-left h2 i {
    color: #198754;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    padding: 0.75rem;
    border-radius: 0.75rem;
}

.reports-header-left p {
    margin: 0.5rem 0 0 0;
    color: #6b7280;
}

.reports-header-actions {
    display: flex;
    gap: 0.75rem;
}

/* ==================== ADVANCED FILTER BAR ==================== */
.claims-content .claims-filter-bar {
    position: fixed;
    top: var(--header-height);
    left: var(--sidebar-width-expanded);
    right: 0;
    z-index: 100;
    margin: 0;
    padding: 0;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: left 0.3s ease;
}

.sidebar-collapsed .claims-content .claims-filter-bar {
    left: var(--sidebar-width-collapsed);
}

.claims-content {
    padding-top: 90px;
    transition: padding-top 0.3s ease;
}

.claims-content.filters-open {
    padding-top: 500px;
}

@media (max-width: 991.98px) {
    .claims-content .claims-filter-bar {
        left: 0;
    }
}

/* Filter Bar Top Row */
.filter-bar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

/* Search Box */
.filter-search-box {
    flex: 1;
    max-width: 400px;
    position: relative;
    display: flex;
    align-items: center;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0 1rem;
    transition: all 0.2s ease;
}

.filter-search-box:focus-within {
    background: #fff;
    border-color: #198754;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.1);
}

.filter-search-box i {
    color: #9ca3af;
    font-size: 0.9rem;
}

.filter-search-box input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
    outline: none;
}

.filter-search-box input::placeholder {
    color: #9ca3af;
}

.search-shortcut {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    background: #e5e7eb;
    border-radius: 4px;
    color: #6b7280;
    font-weight: 500;
}

/* Filter Bar Actions */
.filter-bar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-toggle-btn:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e5e7eb 100%);
    border-color: #d1d5db;
}

.filter-toggle-btn.active {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
    border-color: #198754;
    color: #fff;
}

.filter-toggle-btn .filter-count {
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
}

/* Sort Control (Advanced) */
.sort-control {
    position: relative;
}

.sort-trigger-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-trigger-btn:hover {
    border-color: #198754;
    background: #fff;
}

.sort-trigger-btn.active {
    border-color: #198754;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.1);
}

.sort-trigger-btn i:first-child {
    color: #198754;
}

.sort-chevron {
    font-size: 0.65rem;
    color: #9ca3af;
    transition: transform 0.2s ease;
}

.sort-trigger-btn.active .sort-chevron {
    transform: rotate(180deg);
}

/* Sort Panel */
.sort-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
    z-index: 1000;
    display: none;
    overflow: hidden;
    animation: sortPanelIn 0.2s ease-out;
}

.sort-panel.open {
    display: block;
}

@keyframes sortPanelIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sort-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
}

.sort-panel-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.sort-panel-close:hover {
    background: rgba(255,255,255,0.3);
}

.sort-panel-body {
    padding: 1rem;
}

.sort-section-group {
    margin-bottom: 1rem;
}

.sort-section-group:last-child {
    margin-bottom: 0;
}

.sort-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

.sort-select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #374151;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-select:hover {
    border-color: #d1d5db;
}

.sort-select:focus {
    outline: none;
    border-color: #198754;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.1);
}

.sort-select optgroup {
    font-weight: 600;
    color: #374151;
}

/* Quick Sort Presets */
.sort-quick-section {
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
}

.sort-preset-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.sort-preset-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.6rem 0.5rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-preset-btn i {
    font-size: 0.9rem;
    color: #9ca3af;
    transition: color 0.2s ease;
}

.sort-preset-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.sort-preset-btn:hover i {
    color: #198754;
}

.sort-preset-btn.active {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: #198754;
    color: #065f46;
}

.sort-preset-btn.active i {
    color: #198754;
}

/* Quick Filter Presets */
.quick-filter-presets {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.5rem 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    border-top: 1px solid #f3f4f6;
}

.quick-filter-presets::-webkit-scrollbar {
    display: none;
}

.quick-filter-chip {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.quick-filter-chip:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.quick-filter-chip.active,
.quick-filter-presets .quick-filter-chip.active {
    background: #198754 !important;
    border-color: #198754 !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(25, 135, 84, 0.3);
}

.quick-filter-chip.active i,
.quick-filter-chip.active span {
    color: #fff !important;
}

.quick-filter-chip i {
    font-size: 0.75rem;
}

.quick-filter-chip .chip-count {
    background: rgba(0, 0, 0, 0.1);
    padding: 0.1rem 0.45rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.1rem;
}

.quick-filter-chip.active .chip-count {
    background: rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
}

/* Active Filters Row */
.active-filters-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.5rem;
    background: #fefce8;
    border-top: 1px solid #fef08a;
}

.active-filters-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #854d0e;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.active-filters-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    flex: 1;
}

.active-filter-chip {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    background: #fff;
    border: 1px solid #fde047;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #713f12;
}

.active-filter-chip .remove-filter {
    cursor: pointer;
    margin-left: 0.2rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.active-filter-chip .remove-filter:hover {
    opacity: 1;
}

.clear-all-filters-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.7rem;
    background: transparent;
    border: 1px solid #fbbf24;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #92400e;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clear-all-filters-btn:hover {
    background: #fef3c7;
}

/* ==================== ADVANCED FILTERS PANEL ==================== */
.advanced-filters-panel {
    max-height: calc(100vh - var(--header-height) - 200px);
    max-height: calc(100dvh - var(--header-height) - 200px);
    background: #fff;
    border-top: 1px solid #e5e7eb;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.advanced-filters-panel.open {
    display: flex;
}

/* Filters Grid - Scrollable */
.advanced-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    overflow-y: auto;
    flex: 1;
    align-content: start;
}

@media (min-width: 1400px) {
    .advanced-filters-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .advanced-filters-grid {
        grid-template-columns: repeat(3, minmax(160px, 1fr));
    }
}

@media (max-width: 900px) {
    .advanced-filters-grid {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
    }
}

@media (max-width: 600px) {
    .advanced-filters-grid {
        grid-template-columns: 1fr;
    }

    .filter-section-wide {
        grid-column: span 1 !important;
    }
}

/* Filter Section */
.filter-section {
    background: #f9fafb;
    border-radius: 8px;
    padding: 0.65rem;
    border: 1px solid #e5e7eb;
    min-width: 0;
    height: fit-content;
}

.filter-section-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #e5e7eb;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.filter-section-header i {
    color: #198754;
    font-size: 0.75rem;
}

/* Filter Checkbox Group */
.filter-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.filter-checkbox-group.scrollable {
    max-height: 100px;
    overflow-y: auto;
    padding-right: 0.25rem;
    scrollbar-width: thin;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    padding: 0.25rem 0.35rem;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.filter-checkbox:hover {
    background: #e5e7eb;
}

.filter-checkbox input {
    display: none;
}

.checkbox-custom {
    width: 16px;
    height: 16px;
    border: 2px solid #d1d5db;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.filter-checkbox input:checked + .checkbox-custom {
    background: #198754;
    border-color: #198754;
}

.filter-checkbox input:checked + .checkbox-custom::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.55rem;
    color: #fff;
}

.checkbox-label {
    font-size: 0.75rem;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkbox-label i {
    font-size: 0.7rem;
}

/* Date Filter */
.filter-date-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}

.date-preset-btn {
    padding: 0.2rem 0.5rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.date-preset-btn:hover,
.date-preset-btn.active {
    background: #198754;
    border-color: #198754;
    color: #fff;
}

.filter-date-inputs {
    display: flex;
    gap: 0.35rem;
}

.date-input-group {
    flex: 1;
    min-width: 0;
}

.date-input-group label {
    display: block;
    font-size: 0.65rem;
    color: #6b7280;
    margin-bottom: 0.2rem;
}

.date-input-group input {
    width: 100%;
    padding: 0.3rem 0.4rem;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 0.7rem;
    background: #fff;
}

.date-input-group input:focus {
    outline: none;
    border-color: #198754;
}

/* Amount Filter */
.filter-amount-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}

.amount-preset-btn {
    padding: 0.2rem 0.5rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.amount-preset-btn:hover,
.amount-preset-btn.active {
    background: #198754;
    border-color: #198754;
    color: #fff;
}

.filter-range-inputs {
    display: flex;
    align-items: flex-end;
    gap: 0.35rem;
}

.range-input-group {
    flex: 1;
    min-width: 0;
}

.range-input-group label {
    display: block;
    font-size: 0.65rem;
    color: #6b7280;
    margin-bottom: 0.2rem;
}

.currency-input {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.currency-input span {
    padding: 0.4rem 0.5rem;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.8rem;
    border-right: 1px solid #e5e7eb;
}

.currency-input input {
    flex: 1;
    border: none;
    padding: 0.4rem 0.5rem;
    font-size: 0.8rem;
    outline: none;
    width: 100%;
    min-width: 0;
}

.range-separator {
    color: #9ca3af;
    padding-bottom: 0.4rem;
}

/* Fee Slider */
.filter-slider-container {
    padding: 0.5rem 0;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.slider-labels span:nth-child(2) {
    font-weight: 600;
    color: #198754;
}

.filter-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, #198754 0%, #e5e7eb 0%);
    outline: none;
}

.filter-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #198754;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}

.filter-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.fee-filter-options {
    margin-top: 0.75rem;
}

/* Search Select */
.filter-search-select {
    margin-bottom: 0.5rem;
}

.filter-search-select input {
    width: 100%;
    padding: 0.4rem 0.6rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.8rem;
    background: #fff;
}

.filter-search-select input:focus {
    outline: none;
    border-color: #198754;
}

/* Sort Options */
.filter-sort-options select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.85rem;
    background: #fff;
    cursor: pointer;
    color: #374151;
}

.filter-sort-options select:focus {
    outline: none;
    border-color: #198754;
}

/* Full-width Select for Sort */
.filter-select-full {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.8rem;
    background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") right 0.5rem center/12px no-repeat;
    cursor: pointer;
    color: #374151;
    appearance: none;
}

.filter-select-full:focus {
    outline: none;
    border-color: #198754;
    box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.1);
}

.filter-select-full optgroup {
    font-weight: 600;
    color: #374151;
    background: #f9fafb;
}

.filter-select-full option {
    font-weight: normal;
    padding: 0.5rem;
}

/* Comprehensive Sort Section */
.filter-section-wide {
    grid-column: span 2;
}

@media (max-width: 1100px) {
    .filter-section-wide {
        grid-column: span 1;
    }
}

.filter-sort-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 500px) {
    .filter-sort-grid {
        grid-template-columns: 1fr;
    }
}

.sort-group label {
    display: block;
    font-size: 0.7rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.sort-group select {
    width: 100%;
    padding: 0.45rem 0.6rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.8rem;
    background: #fff;
    cursor: pointer;
    color: #374151;
}

.sort-group select:focus {
    outline: none;
    border-color: #198754;
    box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.1);
}

.sort-group select optgroup {
    font-weight: 600;
    color: #374151;
}

.sort-group select option {
    font-weight: normal;
    padding: 0.5rem;
}

.sort-quick-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.sort-quick-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3rem 0.55rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    font-size: 0.65rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-quick-btn:hover {
    background: #198754;
    border-color: #198754;
    color: #fff;
}

.sort-quick-btn.active {
    background: #198754;
    border-color: #198754;
    color: #fff;
}

.sort-quick-btn i {
    font-size: 0.6rem;
}

/* Filter Panel Actions - Fixed at bottom */
.filter-panel-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.filter-panel-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-panel-btn.secondary {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #4b5563;
}

.filter-panel-btn.secondary:hover {
    background: #e5e7eb;
}

.filter-panel-btn.primary {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
    border: none;
    color: #fff;
}

.filter-panel-btn.primary:hover {
    background: linear-gradient(135deg, #157347 0%, #0f5132 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}

.claims-kpis-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 1200px) { .claims-kpis-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .claims-kpis-grid { grid-template-columns: 1fr; } }

.claims-kpi-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 1rem;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.claims-kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.claims-kpi-icon {
    width: 50px;
    height: 50px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.claims-kpi-icon.total { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); color: #4338ca; }
.claims-kpi-icon.funded { background: linear-gradient(135deg, #dcfce7, #bbf7d0); color: #166534; }
.claims-kpi-icon.processing { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #d97706; }
.claims-kpi-icon.value { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1d4ed8; }

.claims-kpi-content { display: flex; flex-direction: column; }
.claims-kpi-value { font-size: 1.5rem; font-weight: 700; color: #1f2937; }
.claims-kpi-label { font-size: 0.8rem; color: #6b7280; font-weight: 500; }

.claims-filter-bar {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 1rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.04);
}

.claims-filter-group { display: flex; align-items: center; }

.claims-search-wrapper {
    position: relative;
    width: 280px;
}

.claims-search-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.claims-search-input {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.claims-search-input:focus {
    outline: none;
    border-color: #198754;
    box-shadow: 0 0 0 4px rgba(25, 135, 84, 0.1);
}

.claims-filter-select {
    padding: 0.65rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    min-width: 140px;
    transition: all 0.2s ease;
}

.claims-filter-select:focus {
    outline: none;
    border-color: #198754;
    box-shadow: 0 0 0 4px rgba(25, 135, 84, 0.1);
}

.claims-filter-actions {
    display: flex;
    gap: 0.75rem;
    margin-left: auto;
}

.claims-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.25s ease;
}

.claims-action-btn:hover {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-color: #198754;
    color: #198754;
    transform: translateY(-2px);
}

.claims-action-btn.primary {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
    border-color: transparent;
    color: #fff;
}

.claims-action-btn.primary:hover {
    background: linear-gradient(135deg, #157347 0%, #0f5132 100%);
    transform: translateY(-2px);
}

.claims-table-container {
    background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.04);
}

.claims-table-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.claims-table-header h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #166534;
}

.claims-table-info {
    font-size: 0.85rem;
    color: #166534;
    font-weight: 500;
    background: #fff;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
}

.claims-table-wrap {
    overflow-x: auto;
    max-height: 500px;
}

.claims-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.claims-table th {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 1rem 1.25rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    border-bottom: 2px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.claims-table td {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.claims-table tbody tr {
    transition: all 0.2s ease;
    cursor: pointer;
}

.claims-table tbody tr:hover {
    background: linear-gradient(135deg, #f0fdf4 0%, #f8fafc 100%);
}

.claims-table .claim-id-link {
    color: #198754;
    font-weight: 600;
    text-decoration: none;
}

.claims-table .claim-id-link:hover {
    text-decoration: underline;
}

.claims-pagination-nav {
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 0 0 1rem 1rem;
}

/* Claims & Reports Tabs */
.claims-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.25rem;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 0.75rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.04);
    width: fit-content;
}

.claims-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    background: transparent;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.25s ease;
}

.claims-tab:hover {
    color: #198754;
    background: rgba(25, 135, 84, 0.05);
}

.claims-tab.active {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.3);
}

.claims-tab i {
    font-size: 1rem;
}

.claims-tab-content {
    display: none;
}

.claims-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Reports KPIs Grid */
.reports-kpis-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.reports-kpis-grid.financial-grid {
    grid-template-columns: repeat(6, 1fr);
}

@media (max-width: 1400px) { .reports-kpis-grid.financial-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1200px) { .reports-kpis-grid { grid-template-columns: repeat(2, 1fr); } .reports-kpis-grid.financial-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .reports-kpis-grid { grid-template-columns: 1fr; } .reports-kpis-grid.financial-grid { grid-template-columns: 1fr; } }

.reports-kpi-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 1rem;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.reports-kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.reports-kpi-icon {
    width: 50px;
    height: 50px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    color: #4338ca;
}

.reports-kpi-card.success .reports-kpi-icon { background: linear-gradient(135deg, #dcfce7, #bbf7d0); color: #166534; }
.reports-kpi-card.info .reports-kpi-icon { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1d4ed8; }
.reports-kpi-card.warning .reports-kpi-icon { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #d97706; }

.reports-kpi-content { display: flex; flex-direction: column; }
.reports-kpi-value { font-size: 1.5rem; font-weight: 700; color: #1f2937; }
.reports-kpi-label { font-size: 0.8rem; color: #6b7280; font-weight: 500; }

/* Reports Charts */
.reports-charts-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 992px) { .reports-charts-row { grid-template-columns: 1fr; } }

.reports-chart-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.04);
    overflow: hidden;
}

.reports-chart-card.full-width {
    margin-bottom: 1.5rem;
}

.reports-chart-header {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reports-chart-header h5 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #166534;
}

.chart-legend {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: #6b7280;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-dot.funded { background: #22c55e; }
.legend-dot.processing { background: #f59e0b; }
.legend-dot.closed { background: #6366f1; }

.reports-chart-body {
    padding: 1.25rem;
}

/* Reports Data Section */
.reports-data-section {
    background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.04);
}

.reports-data-header {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reports-data-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #166534;
}

.column-manager {
    position: relative;
}

.reports-action-btn.small {
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
}

.column-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    padding: 0.75rem;
    min-width: 180px;
    z-index: 100;
}

.column-dropdown.show {
    display: block;
}

.column-dropdown label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem;
    font-size: 0.8rem;
    cursor: pointer;
    border-radius: 0.25rem;
}

.column-dropdown label:hover {
    background: #f3f4f6;
}

.reports-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.reports-detail-table th {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 0.85rem 1rem;
    text-align: left;
    font-size: 0.7rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.reports-detail-table th.sortable {
    cursor: pointer;
    transition: background 0.2s ease;
}

.reports-detail-table th.sortable:hover {
    background: #e2e8f0;
}

.reports-detail-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.reports-detail-table tbody tr {
    transition: all 0.2s ease;
    cursor: pointer;
}

.reports-detail-table tbody tr:hover {
    background: linear-gradient(135deg, #f0fdf4 0%, #f8fafc 100%);
}

.reports-table-footer {
    padding: 1rem 1.25rem;
    background: #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.reports-footer-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.reports-showing {
    font-size: 0.8rem;
    color: #6b7280;
}

.reports-per-page {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.reports-per-page select {
    padding: 0.25rem 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.8rem;
    background: #fff;
    cursor: pointer;
}

.reports-per-page select:focus {
    outline: none;
    border-color: #198754;
}

/* Dynamic Chart Styles */
.simple-bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 180px;
    padding: 0 10px;
}

.bar-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 80px;
}

.bar-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.bar {
    width: 40px;
    min-height: 10px;
    border-radius: 4px 4px 0 0;
    transition: height 0.5s ease;
}

.bar-label {
    font-size: 0.7rem;
    color: #6b7280;
    margin-top: 0.5rem;
    text-align: center;
}

.donut-chart-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.5rem;
}

.donut-chart {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.donut-total {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}

.donut-label {
    font-size: 0.65rem;
    color: #6b7280;
}

.donut-legend {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.legend-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-name {
    color: #374151;
    flex: 1;
    min-width: 80px;
}

.legend-count {
    font-weight: 600;
    color: #1f2937;
}

.trend-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 130px;
    padding: 0 5px;
}

.trend-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.trend-bar-stack {
    width: 20px;
    display: flex;
    flex-direction: column;
    border-radius: 3px 3px 0 0;
    overflow: hidden;
    min-height: 5px;
}

.trend-segment {
    min-height: 0;
}

.trend-segment.funded { background: #22c55e; }
.trend-segment.processing { background: #f59e0b; }
.trend-segment.closed { background: #6366f1; }

.trend-label {
    font-size: 0.65rem;
    color: #6b7280;
    margin-top: 0.35rem;
}

/* Mini badges for reports */
.mini-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.mini-badge.funded { background: #dcfce7; color: #166534; }
.mini-badge.processing { background: #fef3c7; color: #d97706; }
.mini-badge.closed { background: #e0e7ff; color: #4338ca; }
.mini-badge.withdrawn { background: #fee2e2; color: #dc2626; }
