/*================================================================================
	Item Name: Modern Admin - Clean Bootstrap 4 Dashboard HTML Template
	Author: PIXINVENT
	Author URL: http://www.themeforest.net/user/pixinvent
================================================================================

NOTE:
------
PLACE HERE YOUR OWN SCSS CODES AND IF NEEDED, OVERRIDE THE STYLES FROM THE OTHER STYLESHEETS.
WE WILL RELEASE FUTURE UPDATES SO IN ORDER TO NOT OVERWRITE YOUR STYLES IT'S BETTER LIKE THIS.  */


.select2custom {
	background-color: #fff;
	border: 1px solid #aaa;
	border-radius: 5px;
	font-family: "Quicksand", Georgia, "Times New Roman", Times, serif;
}


body {
	background-image: url("../../Content/img/Tool BG Outline Multicolor.svg");
	background-size: cover;
	background-repeat: no-repeat;
}


.menu-icon {
	width: 20px;
}

/* ============================================================= ===================
   PROCESS DATE TEXT - Below buttons in Journal Entries Test Rerun acition
   ================================================================================ */

.process-date-text {
	display: block;
	text-align: center;
	color: #6c757d;
	font-size: 0.75rem;
	font-weight: 500;
	margin-top: 0.375rem;
	line-height: 1.2;
	letter-spacing: 0.01em;
	font-style: italic;
}

.process-date-text:empty {
	display: none;
}

/* ================================================================================
   BUTTONS CENTERING - Inside divCardBtns
   ================================================================================ */

#divCardBtns .btn {
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
}

#divCardBtns .btn-block {
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
}


/* ================================================================================
   JOURNAL ENTRIES IMPORT - ACCOUNT SUMMARY MODAL STYLES
   ================================================================================
   Custom styles for the accounting dashboard modal in Journal Entries Import
   All styles are scoped with #accountSummaryModal to prevent conflicts
   ================================================================================ */

#accountSummaryModal .modal-xl {
    max-width: 60% !important;
    margin-left: 20% !important;
    margin-right: 20% !important;
}

.bg-warning {
    background-color: #faa00ab0 !important
}

.bg-light-success {
    background-color: #d4edda !important;
}

.bg-light-danger {
    background-color: #f8d7da !important;
}

#Resumen .card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#Resumen .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

#Resumen .shadow-sm {
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08) !important;
}
/* Contenedor con scroll */
.table-scroll {
    max-height: 650px; /* Ajusta el alto que quieras */
    overflow-y: auto;
}

    /* El thead se queda fijo */
    .table-scroll thead th {
        position: sticky;
        top: 0;
        background: #f8f9fa; /* mismo color del header */
        z-index: 10; /* evita que quede debajo del contenido */
    }

    /* Fijar también el footer si quieres */
    .table-scroll tfoot th {
        position: sticky;
        bottom: 0;
        background: #e9ecef;
        z-index: 10;
    }

/* ===============================================
   ACCOUNTING DASHBOARD STYLES (Modal Only)
   =============================================== */

#accountSummaryModal .accounting-dashboard {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1a1a1a;
    margin-bottom: 2rem;
}

/* Header Section */
#accountSummaryModal .dashboard-header {
    background: white;
    color: #1a1a1a;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 2rem;
}

#accountSummaryModal .header-content {
    flex: 1;
}

#accountSummaryModal .module-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.5rem;
}

#accountSummaryModal .module-dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
}

#accountSummaryModal .dashboard-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
    color: #00398a;
}

#accountSummaryModal .dashboard-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

#accountSummaryModal .header-chips {
    display: flex;
    gap: 0.75rem;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

#accountSummaryModal .info-chip {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    white-space: nowrap;
}

#accountSummaryModal .chip-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#accountSummaryModal .chip-value {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1e293b;
}

#accountSummaryModal .info-chip-success {
    background: #dcfce7;
    border-color: #22c55e;
}

#accountSummaryModal .info-chip-success .chip-value {
    color: #15803d;
}

#accountSummaryModal .info-chip-success i {
    color: #22c55e;
}

#accountSummaryModal .info-chip-danger {
    background: #fee2e2;
    border-color: #ef4444;
}

#accountSummaryModal .info-chip-danger .chip-value {
    color: #b91c1c;
}

#accountSummaryModal .info-chip-danger i {
    color: #ef4444;
}

/* Status Bar */
#accountSummaryModal .status-bar {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    border-left: 4px solid;
}

#accountSummaryModal .status-balanced {
    background: #f0fdf4;
    border-color: #22c55e;
}

#accountSummaryModal .status-unbalanced {
    background: #fef2f2;
    border-color: #ef4444;
}

#accountSummaryModal .status-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#accountSummaryModal .status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

#accountSummaryModal .status-balanced .status-indicator {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

#accountSummaryModal .status-unbalanced .status-indicator {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

#accountSummaryModal .status-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

#accountSummaryModal .status-label {
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0;
}

#accountSummaryModal .status-balanced .status-label {
    color: #15803d;
}

#accountSummaryModal .status-unbalanced .status-label {
    color: #b91c1c;
}

#accountSummaryModal .status-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: #64748b;
}

#accountSummaryModal .status-amount {
    font-size: 1.25rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

#accountSummaryModal .status-balanced .status-amount {
    color: #15803d;
}

#accountSummaryModal .status-unbalanced .status-amount {
    color: #b91c1c;
}

/* Metrics Grid */
#accountSummaryModal .metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

#accountSummaryModal .metric-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem;
    transition: all 0.2s ease;
}

#accountSummaryModal .metric-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

#accountSummaryModal .metric-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

#accountSummaryModal .metric-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.3rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#accountSummaryModal .metric-marker {
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: currentColor;
}

#accountSummaryModal .metric-card-debit .metric-marker {
    background: #22c55e;
}

#accountSummaryModal .metric-card-credit .metric-marker {
    background: #3b82f6;
}

#accountSummaryModal .metric-card-validation .metric-marker {
    background: #f59e0b;
}

#accountSummaryModal .metric-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.625rem;
    background: #f1f5f9;
    color: #475569;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

#accountSummaryModal .metric-badge.stat-tag-success {
    background: #dcfce7;
    color: #15803d;
}

#accountSummaryModal .metric-badge.stat-tag-warning {
    background: #fef3c7;
    color: #b45309;
}

#accountSummaryModal .metric-content {
    margin-bottom: 0.75rem;
}

#accountSummaryModal .metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

#accountSummaryModal .metric-value-success {
    color: #15803d;
}

#accountSummaryModal .metric-value-info {
    color: #1d4ed8;
}

#accountSummaryModal .metric-value-danger {
    color: #b91c1c;
}

#accountSummaryModal .metric-details {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

#accountSummaryModal .metric-details span {
    display: block;
    margin-bottom: 0.25rem;
}

#accountSummaryModal .validation-status {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

#accountSummaryModal .validation-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

#accountSummaryModal .validation-badge.badge-success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #86efac;
}

#accountSummaryModal .validation-badge.badge-danger {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

#accountSummaryModal .validation-badge.badge-warning {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fcd34d;
}

#accountSummaryModal .validation-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* Stats Grid */
#accountSummaryModal .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

#accountSummaryModal .stat-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

#accountSummaryModal .stat-main {
    flex: 1;
}

#accountSummaryModal .stat-label {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.375rem;
    font-weight: 600;
}

#accountSummaryModal .stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    font-variant-numeric: tabular-nums;
}

#accountSummaryModal .stat-tag {
    font-size: 0.7rem;
    padding: 0.25rem 0.625rem;
    background: #e0e7ff;
    color: #4338ca;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    flex-shrink: 0;
}

#accountSummaryModal .stat-tag-success {
    background: #dcfce7;
    color: #15803d;
}

#accountSummaryModal .stat-tag-warning {
    background: #fef3c7;
    color: #b45309;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    #accountSummaryModal .metrics-grid {
        grid-template-columns: 1fr;
    }

    #accountSummaryModal .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

#exchangeRateModal .accounting-dashboard {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1a1a1a;
    margin-bottom: 2rem;
}

/* Header Section */
#exchangeRateModal .dashboard-header {
    background: white;
    color: #1a1a1a;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 2rem;
}

#exchangeRateModal .header-content {
    flex: 1;
}

#exchangeRateModal .module-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.5rem;
}

#exchangeRateModal .module-dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
}

#exchangeRateModal .dashboard-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
    color: #00398a;
}

#exchangeRateModal .dashboard-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

#exchangeRateModal .header-chips {
    display: flex;
    gap: 0.75rem;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

#exchangeRateModal .info-chip {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    white-space: nowrap;
}

#exchangeRateModal .chip-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#exchangeRateModal .chip-value {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1e293b;
}

#exchangeRateModal .info-chip-success {
    background: #dcfce7;
    border-color: #22c55e;
}

#exchangeRateModal .info-chip-success .chip-value {
    color: #15803d;
}

#exchangeRateModal .info-chip-success i {
    color: #22c55e;
}

#exchangeRateModal .info-chip-danger {
    background: #fee2e2;
    border-color: #ef4444;
}

#exchangeRateModal .info-chip-danger .chip-value {
    color: #b91c1c;
}

#exchangeRateModal .info-chip-danger i {
    color: #ef4444;
}

/* Status Bar */
#exchangeRateModal .status-bar {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    border-left: 4px solid;
}

#exchangeRateModal .status-balanced {
    background: #f0fdf4;
    border-color: #22c55e;
}

#exchangeRateModal .status-unbalanced {
    background: #fef2f2;
    border-color: #ef4444;
}

#exchangeRateModal .status-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#exchangeRateModal .status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

#exchangeRateModal .status-balanced .status-indicator {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

#exchangeRateModal .status-unbalanced .status-indicator {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

#exchangeRateModal .status-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

#exchangeRateModal .status-label {
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0;
}

#exchangeRateModal .status-balanced .status-label {
    color: #15803d;
}

#exchangeRateModal .status-unbalanced .status-label {
    color: #b91c1c;
}

#exchangeRateModal .status-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: #64748b;
}

#exchangeRateModal .status-amount {
    font-size: 1.25rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

#exchangeRateModal .status-balanced .status-amount {
    color: #15803d;
}

#exchangeRateModal .status-unbalanced .status-amount {
    color: #b91c1c;
}

/* Metrics Grid */
#exchangeRateModal .metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

#exchangeRateModal .metric-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem;
    transition: all 0.2s ease;
}

#exchangeRateModal .metric-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

#exchangeRateModal .metric-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

#exchangeRateModal .metric-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.3rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#exchangeRateModal .metric-marker {
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: currentColor;
}

#exchangeRateModal .metric-card-debit .metric-marker {
    background: #22c55e;
}

#exchangeRateModal .metric-card-credit .metric-marker {
    background: #3b82f6;
}

#exchangeRateModal .metric-card-validation .metric-marker {
    background: #f59e0b;
}

#exchangeRateModal .metric-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.625rem;
    background: #f1f5f9;
    color: #475569;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

#exchangeRateModal .metric-badge.stat-tag-success {
    background: #dcfce7;
    color: #15803d;
}

#exchangeRateModal .metric-badge.stat-tag-warning {
    background: #fef3c7;
    color: #b45309;
}

#exchangeRateModal .metric-content {
    margin-bottom: 0.75rem;
}

#exchangeRateModal .metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

#exchangeRateModal .metric-value-success {
    color: #15803d;
}

#exchangeRateModal .metric-value-info {
    color: #1d4ed8;
}

#exchangeRateModal .metric-value-danger {
    color: #b91c1c;
}

#exchangeRateModal .metric-details {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

#exchangeRateModal .metric-details span {
    display: block;
    margin-bottom: 0.25rem;
}

/* Financial Stats Cards Styling */
#financestats-div .metrics-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

#financestats-div .metric-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem;
    transition: all 0.2s ease;
}

#financestats-div .metric-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

#financestats-div .metric-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

#financestats-div .metric-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#financestats-div .metric-marker {
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: currentColor;
}

#financestats-div .metric-card-assets .metric-marker {
    background: #22c55e;
}

#financestats-div .metric-card-liabilities .metric-marker {
    background: #ef4444;
}

#financestats-div .metric-card-equity .metric-marker {
    background: #3b82f6;
}

#financestats-div .metric-card-revenue .metric-marker {
    background: #10b981;
}

#financestats-div .metric-card-expenses .metric-marker {
    background: #f59e0b;
}

#financestats-div .metric-badge {
    font-size: 1rem;
    padding: 0.25rem 0.625rem;
    background: #f1f5f9;
    color: #475569;
    border-radius: 12px;
}

#financestats-div .metric-content {
    display: flex;
    flex-direction: column;
}

#financestats-div .metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    line-height: 1.4;
}

#financestats-div .metric-value-success {
    color: #15803d;
}

#financestats-div .metric-value-danger {
    color: #b91c1c;
}

#financestats-div .metric-value-info {
    color: #1d4ed8;
}

#financestats-div .metric-value-warning {
    color: #d97706;
}

#financestats-div .metric-details {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

#financestats-div .metric-details span {
    display: block;
    margin-bottom: 0.25rem;
}

/* Responsive adjustments for Financial Stats */
@media (max-width: 1400px) {
    #financestats-div .metrics-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    #financestats-div .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    #financestats-div .metrics-grid {
        grid-template-columns: 1fr;
    }
}

#exchangeRateModal .validation-status {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

#exchangeRateModal .validation-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

#exchangeRateModal .validation-badge.badge-success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #86efac;
}

#exchangeRateModal .validation-badge.badge-danger {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

#exchangeRateModal .validation-badge.badge-warning {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fcd34d;
}

#exchangeRateModal .validation-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* Stats Grid */
#exchangeRateModal .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

#exchangeRateModal .stat-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

#exchangeRateModal .stat-main {
    flex: 1;
}

#exchangeRateModal .stat-label {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.375rem;
    font-weight: 600;
}

#exchangeRateModal .stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    font-variant-numeric: tabular-nums;
}

#exchangeRateModal .stat-tag {
    font-size: 0.7rem;
    padding: 0.25rem 0.625rem;
    background: #e0e7ff;
    color: #4338ca;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    flex-shrink: 0;
}

#exchangeRateModal .stat-tag-success {
    background: #dcfce7;
    color: #15803d;
}

#exchangeRateModal .stat-tag-warning {
    background: #fef3c7;
    color: #b45309;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    #exchangeRateModal .metrics-grid {
        grid-template-columns: 1fr;
    }

    #exchangeRateModal .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

#reverseModal .accounting-dashboard {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1a1a1a;
    margin-bottom: 2rem;
}

/* Header Section */
#reverseModal .dashboard-header {
    background: white;
    color: #1a1a1a;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 2rem;
}

#reverseModal .header-content {
    flex: 1;
}

#reverseModal .module-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.5rem;
}

#reverseModal .module-dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
}

#reverseModal .dashboard-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
    color: #00398a;
}

#reverseModal .dashboard-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

#reverseModal .header-chips {
    display: flex;
    gap: 0.75rem;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

#reverseModal .info-chip {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    white-space: nowrap;
}

#reverseModal .chip-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#reverseModal .chip-value {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1e293b;
}

#reverseModal .info-chip-success {
    background: #dcfce7;
    border-color: #22c55e;
}

#reverseModal .info-chip-success .chip-value {
    color: #15803d;
}

#reverseModal .info-chip-success i {
    color: #22c55e;
}

#reverseModal .info-chip-danger {
    background: #fee2e2;
    border-color: #ef4444;
}

#reverseModal .info-chip-danger .chip-value {
    color: #b91c1c;
}

#reverseModal .info-chip-danger i {
    color: #ef4444;
}

/* Status Bar */
#reverseModal .status-bar {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    border-left: 4px solid;
}

#reverseModal .status-balanced {
    background: #f0fdf4;
    border-color: #22c55e;
}

#reverseModal .status-unbalanced {
    background: #fef2f2;
    border-color: #ef4444;
}

#reverseModal .status-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#reverseModal .status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

#reverseModal .status-balanced .status-indicator {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

#reverseModal .status-unbalanced .status-indicator {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

#reverseModal .status-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

#reverseModal .status-label {
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0;
}

#reverseModal .status-balanced .status-label {
    color: #15803d;
}

#reverseModal .status-unbalanced .status-label {
    color: #b91c1c;
}

#reverseModal .status-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: #64748b;
}

#reverseModal .status-amount {
    font-size: 1.25rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

#reverseModal .status-balanced .status-amount {
    color: #15803d;
}

#reverseModal .status-unbalanced .status-amount {
    color: #b91c1c;
}

/* Metrics Grid */
#reverseModal .metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

#reverseModal .metric-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem;
    transition: all 0.2s ease;
}

#reverseModal .metric-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

#reverseModal .metric-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

#reverseModal .metric-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.3rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#reverseModal .metric-marker {
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: currentColor;
}

#reverseModal .metric-card-debit .metric-marker {
    background: #22c55e;
}

#reverseModal .metric-card-credit .metric-marker {
    background: #3b82f6;
}

#reverseModal .metric-card-validation .metric-marker {
    background: #f59e0b;
}

#reverseModal .metric-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.625rem;
    background: #f1f5f9;
    color: #475569;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

#reverseModal .metric-badge.stat-tag-success {
    background: #dcfce7;
    color: #15803d;
}

#reverseModal .metric-badge.stat-tag-warning {
    background: #fef3c7;
    color: #b45309;
}

#reverseModal .metric-content {
    margin-bottom: 0.75rem;
}

#reverseModal .metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

#reverseModal .metric-value-success {
    color: #15803d;
}

#reverseModal .metric-value-info {
    color: #1d4ed8;
}

#reverseModal .metric-value-danger {
    color: #b91c1c;
}

#reverseModal .metric-details {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

#reverseModal .metric-details span {
    display: block;
    margin-bottom: 0.25rem;
}

#reverseModal .validation-status {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

#reverseModal .validation-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

#reverseModal .validation-badge.badge-success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #86efac;
}

#reverseModal .validation-badge.badge-danger {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

#reverseModal .validation-badge.badge-warning {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fcd34d;
}

#reverseModal .validation-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* Stats Grid */
#reverseModal .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

#reverseModal .stat-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

#reverseModal .stat-main {
    flex: 1;
}

#reverseModal .stat-label {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.375rem;
    font-weight: 600;
}

#reverseModal .stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    font-variant-numeric: tabular-nums;
}

#reverseModal .stat-tag {
    font-size: 0.7rem;
    padding: 0.25rem 0.625rem;
    background: #e0e7ff;
    color: #4338ca;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    flex-shrink: 0;
}

#reverseModal .stat-tag-success {
    background: #dcfce7;
    color: #15803d;
}

#reverseModal .stat-tag-warning {
    background: #fef3c7;
    color: #b45309;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    #reverseModal .metrics-grid {
        grid-template-columns: 1fr;
    }

    #reverseModal .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
#realizedModal .info-chip-success {
    background: #dcfce7;
    border-color: #22c55e;
}

#realizedModal .info-chip-success .chip-value {
    color: #15803d;
}

#realizedModal .info-chip-success i {
    color: #22c55e;
}

#realizedModal .info-chip-danger {
    background: #fee2e2;
    border-color: #ef4444;
}

#realizedModal .info-chip-danger .chip-value {
    color: #b91c1c;
}

#realizedModal .info-chip-danger i {
    color: #ef4444;
}

/* Status Bar */
#realizedModal .status-bar {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    border-left: 4px solid;
}

#realizedModal .status-balanced {
    background: #f0fdf4;
    border-color: #22c55e;
}

#realizedModal .status-unbalanced {
    background: #fef2f2;
    border-color: #ef4444;
}

#realizedModal .status-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#realizedModal .status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

#realizedModal .status-balanced .status-indicator {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

#realizedModal .status-unbalanced .status-indicator {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

#realizedModal .status-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

#realizedModal .status-label {
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0;
}

#realizedModal .status-balanced .status-label {
    color: #15803d;
}

#realizedModal .status-unbalanced .status-label {
    color: #b91c1c;
}

#realizedModal .status-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: #64748b;
}

#realizedModal .status-amount {
    font-size: 1.25rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

#realizedModal .status-balanced .status-amount {
    color: #15803d;
}

#realizedModal .status-unbalanced .status-amount {
    color: #b91c1c;
}

/* Metrics Grid */
#realizedModal .metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

#realizedModal .metric-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem;
    transition: all 0.2s ease;
}

#realizedModal .metric-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

#realizedModal .metric-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

#realizedModal .metric-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.3rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#realizedModal .metric-marker {
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: currentColor;
}

#realizedModal .metric-card-debit .metric-marker {
    background: #22c55e;
}

#realizedModal .metric-card-credit .metric-marker {
    background: #3b82f6;
}

#realizedModal .metric-card-validation .metric-marker {
    background: #f59e0b;
}

#realizedModal .metric-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.625rem;
    background: #f1f5f9;
    color: #475569;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

#realizedModal .metric-badge.stat-tag-success {
    background: #dcfce7;
    color: #15803d;
}

#realizedModal .metric-badge.stat-tag-warning {
    background: #fef3c7;
    color: #b45309;
}

#realizedModal .metric-content {
    margin-bottom: 0.75rem;
}

#realizedModal .metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

#realizedModal .metric-value-success {
    color: #15803d;
}

#realizedModal .metric-value-info {
    color: #1d4ed8;
}

#realizedModal .metric-value-danger {
    color: #b91c1c;
}

#realizedModal .metric-details {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

#realizedModal .metric-details span {
    display: block;
    margin-bottom: 0.25rem;
}

#realizedModal .validation-status {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

#realizedModal .validation-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

#realizedModal .validation-badge.badge-success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #86efac;
}

#realizedModal .validation-badge.badge-danger {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

#realizedModal .validation-badge.badge-warning {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fcd34d;
}

#realizedModal .validation-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* Stats Grid */
#realizedModal .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

#realizedModal .stat-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

#realizedModal .stat-main {
    flex: 1;
}

#realizedModal .stat-label {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.375rem;
    font-weight: 600;
}

#realizedModal .stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    font-variant-numeric: tabular-nums;
}

#realizedModal .stat-tag {
    font-size: 0.7rem;
    padding: 0.25rem 0.625rem;
    background: #e0e7ff;
    color: #4338ca;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    flex-shrink: 0;
}

#realizedModal .stat-tag-success {
    background: #dcfce7;
    color: #15803d;
}

#realizedModal .stat-tag-warning {
    background: #fef3c7;
    color: #b45309;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    #realizedModal .metrics-grid {
        grid-template-columns: 1fr;
    }

    #realizedModal .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
#realizedModal .info-chip-success {
    background: #dcfce7;
    border-color: #22c55e;
}

#realizedModal .info-chip-success .chip-value {
    color: #15803d;
}

#realizedModal .info-chip-success i {
    color: #22c55e;
}

#realizedModal .info-chip-danger {
    background: #fee2e2;
    border-color: #ef4444;
}

#realizedModal .info-chip-danger .chip-value {
    color: #b91c1c;
}

#realizedModal .info-chip-danger i {
    color: #ef4444;
}

/* Status Bar */
#realizedModal .status-bar {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    border-left: 4px solid;
}

#realizedModal .status-balanced {
    background: #f0fdf4;
    border-color: #22c55e;
}

#realizedModal .status-unbalanced {
    background: #fef2f2;
    border-color: #ef4444;
}

#realizedModal .status-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#realizedModal .status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

#realizedModal .status-balanced .status-indicator {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

#realizedModal .status-unbalanced .status-indicator {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

#realizedModal .status-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

#realizedModal .status-label {
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0;
}

#realizedModal .status-balanced .status-label {
    color: #15803d;
}

#realizedModal .status-unbalanced .status-label {
    color: #b91c1c;
}

#realizedModal .status-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    border-radius: 50%;
    display: inline-block;
}

#realizedModal .dashboard-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
    color: #00398a;
}

#realizedModal .dashboard-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

#realizedModal .header-chips {
    display: flex;
    gap: 0.75rem;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

#realizedModal .info-chip {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    white-space: nowrap;
}

#realizedModal .chip-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#realizedModal .chip-value {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1e293b;
}

#realizedModal .accounting-dashboard {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1a1a1a;
    margin-bottom: 2rem;
}

/* Header Section */
#realizedModal .dashboard-header {
    background: white;
    color: #1a1a1a;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 2rem;
}

#realizedModal .header-content {
    flex: 1;
}

#realizedModal .module-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.5rem;
}

#realizedModal .module-dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
}

#realizedModal .dashboard-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
    color: #00398a;
}

#realizedModal .dashboard-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

#realizedModal .header-chips {
    display: flex;
    gap: 0.75rem;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

#realizedModal .info-chip {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    white-space: nowrap;
}

#realizedModal .chip-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#realizedModal .chip-value {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1e293b;
}

#unrealizedModal .info-chip-success {
    background: #dcfce7;
    border-color: #22c55e;
}

#unrealizedModal .info-chip-success .chip-value {
    color: #15803d;
}

#unrealizedModal .info-chip-success i {
    color: #22c55e;
}

#unrealizedModal .info-chip-danger {
    background: #fee2e2;
    border-color: #ef4444;
}

#unrealizedModal .info-chip-danger .chip-value {
    color: #b91c1c;
}

#unrealizedModal .info-chip-danger i {
    color: #ef4444;
}

/* Status Bar */
#unrealizedModal .status-bar {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    border-left: 4px solid;
}

#unrealizedModal .status-balanced {
    background: #f0fdf4;
    border-color: #22c55e;
}

#unrealizedModal .status-unbalanced {
    background: #fef2f2;
    border-color: #ef4444;
}

#unrealizedModal .status-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#unrealizedModal .status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

#unrealizedModal .status-balanced .status-indicator {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

#unrealizedModal .status-unbalanced .status-indicator {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

#unrealizedModal .status-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

#unrealizedModal .status-label {
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0;
}

#unrealizedModal .status-balanced .status-label {
    color: #15803d;
}

#unrealizedModal .status-unbalanced .status-label {
    color: #b91c1c;
}

#unrealizedModal .status-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: #64748b;
}

#unrealizedModal .status-amount {
    font-size: 1.25rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

#unrealizedModal .status-balanced .status-amount {
    color: #15803d;
}

#unrealizedModal .status-unbalanced .status-amount {
    color: #b91c1c;
}

/* Metrics Grid */
#unrealizedModal .metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

#unrealizedModal .metric-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem;
    transition: all 0.2s ease;
}

#unrealizedModal .metric-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

#unrealizedModal .metric-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

#unrealizedModal .metric-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.3rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#unrealizedModal .metric-marker {
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: currentColor;
}

#unrealizedModal .metric-card-debit .metric-marker {
    background: #22c55e;
}

#unrealizedModal .metric-card-credit .metric-marker {
    background: #3b82f6;
}

#unrealizedModal .metric-card-validation .metric-marker {
    background: #f59e0b;
}

#unrealizedModal .metric-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.625rem;
    background: #f1f5f9;
    color: #475569;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

#unrealizedModal .metric-badge.stat-tag-success {
    background: #dcfce7;
    color: #15803d;
}

#unrealizedModal .metric-badge.stat-tag-warning {
    background: #fef3c7;
    color: #b45309;
}

#unrealizedModal .metric-content {
    margin-bottom: 0.75rem;
}

#unrealizedModal .metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

#unrealizedModal .metric-value-success {
    color: #15803d;
}

#unrealizedModal .metric-value-info {
    color: #1d4ed8;
}

#unrealizedModal .metric-value-danger {
    color: #b91c1c;
}

#unrealizedModal .metric-details {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

#unrealizedModal .metric-details span {
    display: block;
    margin-bottom: 0.25rem;
}

#unrealizedModal .validation-status {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

#unrealizedModal .validation-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

#unrealizedModal .validation-badge.badge-success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #86efac;
}

#unrealizedModal .validation-badge.badge-danger {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

#unrealizedModal .validation-badge.badge-warning {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fcd34d;
}

#unrealizedModal .validation-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* Stats Grid */
#unrealizedModal .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

#unrealizedModal .stat-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

#unrealizedModal .stat-main {
    flex: 1;
}

#unrealizedModal .stat-label {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.375rem;
    font-weight: 600;
}

#unrealizedModal .stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    font-variant-numeric: tabular-nums;
}

#unrealizedModal .stat-tag {
    font-size: 0.7rem;
    padding: 0.25rem 0.625rem;
    background: #e0e7ff;
    color: #4338ca;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    flex-shrink: 0;
}

#unrealizedModal .stat-tag-success {
    background: #dcfce7;
    color: #15803d;
}

#unrealizedModal .stat-tag-warning {
    background: #fef3c7;
    color: #b45309;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    #unrealizedModal .metrics-grid {
        grid-template-columns: 1fr;
    }

    #unrealizedModal .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
#unrealizedModal .info-chip-success {
    background: #dcfce7;
    border-color: #22c55e;
}

#unrealizedModal .info-chip-success .chip-value {
    color: #15803d;
}

#unrealizedModal .info-chip-success i {
    color: #22c55e;
}

#unrealizedModal .info-chip-danger {
    background: #fee2e2;
    border-color: #ef4444;
}

#unrealizedModal .info-chip-danger .chip-value {
    color: #b91c1c;
}

#unrealizedModal .info-chip-danger i {
    color: #ef4444;
}

/* Status Bar */
#unrealizedModal .status-bar {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    border-left: 4px solid;
}

#unrealizedModal .status-balanced {
    background: #f0fdf4;
    border-color: #22c55e;
}

#unrealizedModal .status-unbalanced {
    background: #fef2f2;
    border-color: #ef4444;
}

#unrealizedModal .status-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#unrealizedModal .status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

#unrealizedModal .status-balanced .status-indicator {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

#unrealizedModal .status-unbalanced .status-indicator {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

#unrealizedModal .status-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

#unrealizedModal .status-label {
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0;
}

#unrealizedModal .status-balanced .status-label {
    color: #15803d;
}

#unrealizedModal .status-unbalanced .status-label {
    color: #b91c1c;
}

#unrealizedModal .status-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    border-radius: 50%;
    display: inline-block;
}

#unrealizedModal .dashboard-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
    color: #00398a;
}

#unrealizedModal .dashboard-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

#unrealizedModal .header-chips {
    display: flex;
    gap: 0.75rem;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

#unrealizedModal .info-chip {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    white-space: nowrap;
}

#unrealizedModal .chip-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#unrealizedModal .chip-value {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1e293b;
}

#unrealizedModal .accounting-dashboard {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1a1a1a;
    margin-bottom: 2rem;
}

/* Header Section */
#unrealizedModal .dashboard-header {
    background: white;
    color: #1a1a1a;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 2rem;
}

#unrealizedModal .header-content {
    flex: 1;
}

#unrealizedModal .module-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.5rem;
}

#unrealizedModal .module-dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
}

#unrealizedModal .dashboard-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
    color: #00398a;
}

#unrealizedModal .dashboard-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

#unrealizedModal .header-chips {
    display: flex;
    gap: 0.75rem;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

#unrealizedModal .info-chip {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    white-space: nowrap;
}

#unrealizedModal .chip-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#unrealizedModal .chip-value {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1e293b;
}


/* ================================
   SCAR Modal Styles (Matching Unrealized Modal)
   ================================ */

#scarModal .accounting-dashboard {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1a1a1a;
    margin-bottom: 2rem;
}

/* Header Section */
#scarModal .dashboard-header {
    background: white;
    color: #1a1a1a;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 2rem;
}

#scarModal .header-content {
    flex: 1;
}

#scarModal .module-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.5rem;
}

#scarModal .module-dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
}

#scarModal .dashboard-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
    color: #00398a;
}

#scarModal .dashboard-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

#scarModal .header-chips {
    display: flex;
    gap: 0.75rem;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

#scarModal .info-chip {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    white-space: nowrap;
}

#scarModal .chip-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#scarModal .chip-value {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1e293b;
}

#scarModal .info-chip-success {
    background: #dcfce7;
    border-color: #22c55e;
}

#scarModal .info-chip-success .chip-value {
    color: #15803d;
}

#scarModal .info-chip-success i {
    color: #22c55e;
}

/* Status Bar */
#scarModal .status-bar {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    border-left: 4px solid;
}

#scarModal .status-balanced {
    background: #f0fdf4;
    border-color: #22c55e;
}

#scarModal .status-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#scarModal .status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

#scarModal .status-balanced .status-indicator {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

#scarModal .status-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

#scarModal .status-label {
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0;
}

#scarModal .status-balanced .status-label {
    color: #15803d;
}

#scarModal .status-amount {
    font-size: 1.25rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

#scarModal .status-balanced .status-amount {
    color: #15803d;
}

/* Metrics Grid */
#scarModal .metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

#scarModal .metric-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem;
    transition: all 0.2s ease;
}

#scarModal .metric-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

#scarModal .metric-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

#scarModal .metric-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.3rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#scarModal .metric-marker {
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: currentColor;
}

#scarModal .metric-card-debit .metric-marker {
    background: #22c55e;
}

#scarModal .metric-card-credit .metric-marker {
    background: #3b82f6;
}

#scarModal .metric-card-validation .metric-marker {
    background: #f59e0b;
}

#scarModal .validation-ok .metric-marker {
    background: #22c55e;
}

#scarModal .validation-error .metric-marker {
    background: #ef4444;
}

#scarModal .text-bold-700 {
    font-weight: 700;
}

#scarModal .metric-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.625rem;
    background: #f1f5f9;
    color: #475569;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

#scarModal .metric-content {
    margin-bottom: 0.75rem;
}

#scarModal .metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

#scarModal .metric-value-success {
    color: #15803d;
}

#scarModal .metric-value-info {
    color: #1d4ed8;
}

#scarModal .metric-value-danger {
    color: #b91c1c;
}

#scarModal .metric-details {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

#scarModal .metric-details span {
    display: block;
    margin-bottom: 0.25rem;
}

/* Table Styling */
#scarModal .table-scroll {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#scarModal .table-scroll::-webkit-scrollbar {
    width: 8px;
}

#scarModal .table-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
}

#scarModal .table-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

#scarModal .table-scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ========================================
   Clean US GAAP Modal Styles (Matching Unrealized/SCAR)
   ======================================== */

/* Clean Modal Styles */
#cleanModal .accounting-dashboard {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1a1a1a;
    margin-bottom: 2rem;
}

#cleanModal .dashboard-header {
    background: white;
    color: #1a1a1a;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 2rem;
}

#cleanModal .header-content {
    flex: 1;
}

#cleanModal .module-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.5rem;
}

#cleanModal .module-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
}

#cleanModal .dashboard-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
    color: #00398a;
}

#cleanModal .dashboard-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

#cleanModal .header-chips {
    display: flex;
    gap: 0.75rem;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

#cleanModal .info-chip {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    white-space: nowrap;
}

#cleanModal .chip-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#cleanModal .chip-value {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1e293b;
}

#cleanModal .info-chip-success {
    background: #dcfce7;
    border-color: #22c55e;
}

#cleanModal .info-chip-success .chip-value {
    color: #15803d;
}

#cleanModal .info-chip-success i {
    color: #22c55e;
}

#cleanModal .info-chip-danger {
    background: #fee2e2;
    border-color: #ef4444;
}

#cleanModal .info-chip-danger .chip-value {
    color: #b91c1c;
}

#cleanModal .info-chip-danger i {
    color: #ef4444;
}

#cleanModal .status-bar {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    border-left: 4px solid;
}

#cleanModal .status-balanced {
    background: #f0fdf4;
    border-color: #22c55e;
}

#cleanModal .status-unbalanced {
    background: #fef2f2;
    border-color: #ef4444;
}

#cleanModal .status-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#cleanModal .status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

#cleanModal .status-balanced .status-indicator {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

#cleanModal .status-unbalanced .status-indicator {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

#cleanModal .status-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

#cleanModal .status-label {
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0;
}

#cleanModal .status-balanced .status-label {
    color: #15803d;
}

#cleanModal .status-unbalanced .status-label {
    color: #b91c1c;
}

#cleanModal .status-amount {
    font-size: 1.25rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

#cleanModal .status-balanced .status-amount {
    color: #15803d;
}

#cleanModal .status-unbalanced .status-amount {
    color: #b91c1c;
}

#cleanModal .metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

#cleanModal .metric-card {
    background: white;
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#cleanModal .metric-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

#cleanModal .metric-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.3rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#cleanModal .metric-marker {
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: currentColor;
}

#cleanModal .metric-card-debit .metric-marker {
    background: #22c55e;
}

#cleanModal .metric-card-credit .metric-marker {
    background: #3b82f6;
}

#cleanModal .metric-card-validation .metric-marker {
    background: #f59e0b;
}

#cleanModal .metric-card-count .metric-marker {
    background: #8b5cf6;
}

#cleanModal .metric-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.625rem;
    background: #f1f5f9;
    color: #475569;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

#cleanModal .metric-badge.stat-tag-success {
    background: #dcfce7;
    color: #15803d;
}

#cleanModal .metric-badge.stat-tag-warning {
    background: #fef3c7;
    color: #b45309;
}

#cleanModal .metric-content {
    margin-bottom: 0.75rem;
}

#cleanModal .metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0.5rem 0;
    color: #1a1a1a;
}

#cleanModal .metric-value-success {
    color: #059669;
}

#cleanModal .metric-value-info {
    color: #1d4ed8;
}

#cleanModal .metric-value-danger {
    color: #b91c1c;
}

#cleanModal .metric-details {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

#cleanModal .metric-details span {
    display: block;
    margin-bottom: 0.25rem;
}

/* Table Styling */
#cleanModal .table-scroll {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#cleanModal .table-scroll::-webkit-scrollbar {
    width: 8px;
}

#cleanModal .table-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
}

#cleanModal .table-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

#cleanModal .table-scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ========================================
   SCAR Exchange Rate Modal Styles
   ======================================== */

#scarExchangeRateModal .exchange-rate-dashboard {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1a1a1a;
}

#scarExchangeRateModal .dashboard-header {
    background: white;
    color: #1a1a1a;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 2rem;
}

#scarExchangeRateModal .header-content {
    flex: 1;
}

#scarExchangeRateModal .module-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.5rem;
}

#scarExchangeRateModal .module-dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
}

#scarExchangeRateModal .dashboard-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
    color: #00398a;
}

#scarExchangeRateModal .dashboard-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

#scarExchangeRateModal .header-chips {
    display: flex;
    gap: 0.75rem;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

#scarExchangeRateModal .info-chip {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    white-space: nowrap;
}

#scarExchangeRateModal .chip-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#scarExchangeRateModal .chip-value {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1e293b;
}

/* Info Banner */
#scarExchangeRateModal .info-banner {
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
    border: 1px solid #93c5fd;
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

#scarExchangeRateModal .info-banner-icon {
    color: #3b82f6;
    font-size: 1.25rem;
    flex-shrink: 0;
    padding-top: 0.125rem;
}

#scarExchangeRateModal .info-banner-content {
    font-size: 0.9rem;
    color: #1e3a8a;
    line-height: 1.5;
}

#scarExchangeRateModal .info-banner-content strong {
    color: #1e40af;
    font-weight: 600;
}

/* Rate History Section */
#scarExchangeRateModal .rate-history-section {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

#scarExchangeRateModal .section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.75rem;
}

#scarExchangeRateModal .section-header i {
    color: #3b82f6;
}

#scarExchangeRateModal .history-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

#scarExchangeRateModal .history-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 1px solid #cbd5e1;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #475569;
}

#scarExchangeRateModal .history-badge i {
    color: #64748b;
    font-size: 0.75rem;
}

#scarExchangeRateModal .history-badge .rate-value {
    font-weight: 600;
    color: #1e293b;
    font-family: 'Courier New', monospace;
}

/* Rate Input Section */
#scarExchangeRateModal .rate-input-section {
    margin-bottom: 1rem;
}

#scarExchangeRateModal .input-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#scarExchangeRateModal .input-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

#scarExchangeRateModal .input-label i {
    color: #3b82f6;
}

#scarExchangeRateModal .rate-input {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.05em;
}

#scarExchangeRateModal .rate-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

#scarExchangeRateModal .input-help {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
    text-align: center;
}

/* ========================================
   Clean Config Modal Styles
   ======================================== */

#cleanConfigModal .clean-config-dashboard {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1a1a1a;
}

#cleanConfigModal .dashboard-header {
    background: white;
    color: #1a1a1a;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 2rem;
}

#cleanConfigModal .header-content {
    flex: 1;
}

#cleanConfigModal .module-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.5rem;
}

#cleanConfigModal .module-dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
}

#cleanConfigModal .dashboard-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
    color: #00398a;
}

#cleanConfigModal .dashboard-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

#cleanConfigModal .header-chips {
    display: flex;
    gap: 0.75rem;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

#cleanConfigModal .info-chip {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    white-space: nowrap;
}

#cleanConfigModal .chip-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#cleanConfigModal .chip-value {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1e293b;
}

#cleanConfigModal .info-chip-success {
    background: #dcfce7;
    border-color: #22c55e;
}

#cleanConfigModal .info-chip-success .chip-value {
    color: #15803d;
}

#cleanConfigModal .info-chip-success i {
    color: #22c55e;
}

/* Config Sections */
#cleanConfigModal .config-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#cleanConfigModal .section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}

#cleanConfigModal .section-title i {
    color: #3b82f6;
    font-size: 1rem;
}

/* Exchange Rate Input */
#cleanConfigModal .input-card {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem;
}

#cleanConfigModal .input-label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

#cleanConfigModal .rate-input {
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.05em;
    max-width: 250px;
    margin: 0 auto;
    display: block;
}

#cleanConfigModal .rate-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

#cleanConfigModal .input-help {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
    text-align: center;
}

/* Selection Controls */
#cleanConfigModal .selection-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 8px;
}

#cleanConfigModal .form-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#cleanConfigModal .form-check-input {
    width: 20px;
    height: 20px;
    border: 2px solid #3b82f6;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0;
    flex-shrink: 0;
}

#cleanConfigModal .form-check-input:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}

#cleanConfigModal .form-check-input:hover {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#cleanConfigModal .form-check-label {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    line-height: 20px;
}

#cleanConfigModal .form-check-label strong {
    color: #1e40af;
}

#cleanConfigModal .form-check-label i {
    color: #3b82f6;
    font-size: 1rem;
}

#cleanConfigModal .search-tip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
    padding: 0.5rem 0.75rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

#cleanConfigModal .search-tip i {
    color: #f59e0b;
    font-size: 1rem;
}

/* Table Container */
#cleanConfigModal .table-container {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#cleanConfigModal .table-container table {
    margin-bottom: 0;
}

#cleanConfigModal .table-container thead {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

#cleanConfigModal .table-container thead th {
    font-weight: 700;
    color: #1e293b;
    border-bottom: 2px solid #cbd5e1;
    padding: 1rem 0.75rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

#cleanConfigModal .table-container thead th:first-child {
    width: 50px;
    text-align: center;
    padding: 1rem 0.5rem;
    vertical-align: middle;
}

#cleanConfigModal .table-container tbody td {
    padding: 0.875rem 0.75rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

#cleanConfigModal .table-container tbody td:first-child {
    text-align: center;
}

#cleanConfigModal .table-container tbody tr {
    transition: all 0.2s ease;
    cursor: pointer;
}

#cleanConfigModal .table-container tbody tr:hover {
    background-color: #f0f9ff;
    box-shadow: inset 0 0 0 2px #bae6fd;
    transform: translateX(2px);
}

#cleanConfigModal .table-container tbody tr:last-child td {
    border-bottom: none;
}

/* Checkboxes in table */
#cleanConfigModal .table-container .clean-entry-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #94a3b8;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    background-color: white;
    position: relative;
    margin: 0;
    vertical-align: middle;
    display: inline-block;
}

#cleanConfigModal .table-container .clean-entry-checkbox:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

#cleanConfigModal .table-container .clean-entry-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

#cleanConfigModal .table-container .clean-entry-checkbox:hover {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Header checkbox (Select All in table) */
#cleanConfigModal .table-container #selectAllEntriesCheck {
    width: 20px;
    height: 20px;
    border: 2px solid #3b82f6;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    background-color: white;
    position: relative;
    margin: 0;
    vertical-align: middle;
    display: inline-block;
}

#cleanConfigModal .table-container #selectAllEntriesCheck:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

#cleanConfigModal .table-container #selectAllEntriesCheck:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

#cleanConfigModal .table-container #selectAllEntriesCheck:hover {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* DataTables Customization for this modal */
#cleanConfigModal .dataTables_wrapper {
    padding: 1rem;
    background: #fafbfc;
    border-top: 1px solid #e5e7eb;
}

#cleanConfigModal .dataTables_wrapper .dataTables_length {
    margin-bottom: 1rem;
}

#cleanConfigModal .dataTables_wrapper .dataTables_length label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
}

#cleanConfigModal .dataTables_wrapper .dataTables_length select {
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    padding: 0.375rem 0.75rem;
    font-weight: 600;
    color: #1e293b;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

#cleanConfigModal .dataTables_wrapper .dataTables_length select:hover {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#cleanConfigModal .dataTables_wrapper .dataTables_filter {
    margin-bottom: 1rem;
}

#cleanConfigModal .dataTables_wrapper .dataTables_filter label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
}

#cleanConfigModal .dataTables_wrapper .dataTables_filter input {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
    border: 2px solid #fbbf24 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    color: #92400e !important;
    min-width: 250px !important;
    transition: all 0.2s ease !important;
}

#cleanConfigModal .dataTables_wrapper .dataTables_filter input::placeholder {
    color: #d97706;
}

#cleanConfigModal .dataTables_wrapper .dataTables_filter input:focus {
    border-color: #f59e0b !important;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2) !important;
    outline: none !important;
}

#cleanConfigModal .dataTables_wrapper .dataTables_info {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.75rem 0;
}

#cleanConfigModal .dataTables_wrapper .dataTables_paginate {
    padding: 0.75rem 0;
}

#cleanConfigModal .dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 6px;
    border: 2px solid #e5e7eb;
    margin: 0 3px;
    padding: 0.5rem 0.875rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: #64748b !important;
    background: white;
    transition: all 0.2s ease;
}

#cleanConfigModal .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white !important;
    border-color: #3b82f6;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

#cleanConfigModal .dataTables_wrapper .dataTables_paginate .paginate_button:hover:not(.current):not(.disabled) {
    background: #f0f9ff;
    border-color: #3b82f6;
    color: #1e40af !important;
}

#cleanConfigModal .dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
