/* Financial Summary System - Modern Sleek Frontend Styles */

/* Global Variables */
:root {
    --primary-color: #FF0000;
    --primary-light: #ff3333;
    --primary-dark: #cc0000;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    box-sizing: border-box;
}

/* Main Container */
.fss-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Header Styles */
.fss-header {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.fss-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.fss-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.fss-user-info {
    flex: 1;
}

.fss-welcome {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fss-datetime {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

#fss-current-date {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-700);
    background: var(--gray-100);
    padding: 8px 16px;
    border-radius: 8px;
}

#fss-current-time {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

/* Form Styles */
.fss-form {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.fss-form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fss-form-row label {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fss-form-row input {
    padding: 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
    background: var(--white);
    color: var(--gray-900);
    box-shadow: var(--shadow-sm);
}

.fss-form-row input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 0, 0, 0.1), var(--shadow-md);
    transform: translateY(-1px);
}

.fss-form-row input[readonly] {
    background: var(--gray-50);
    color: var(--gray-600);
    cursor: not-allowed;
    border-color: var(--gray-300);
}

.fss-form-row input[readonly]:focus {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-sm);
    transform: none;
}

/* Form Actions */
.fss-form-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

/* Button Styles */
.fss-submit-btn,
.fss-history-btn,
.fss-btn {
    padding: 16px 32px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 140px;
    box-shadow: var(--shadow);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fss-submit-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.fss-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.fss-submit-btn:hover::before {
    left: 100%;
}

.fss-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.fss-history-btn,
.fss-btn {
    background: var(--white);
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
}

.fss-history-btn:hover,
.fss-btn:hover {
    background: var(--gray-50);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Dashboard Widgets */
.fss-dashboard-widgets {
    margin: 32px 0;
}

.fss-widget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.fss-widget {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.fss-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.fss-widget:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.fss-widget h3 {
    margin: 0 0 20px 0;
    color: var(--gray-900);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fss-widget-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fss-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.fss-stat:hover {
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateX(4px);
}

.fss-stat-label {
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 500;
}

.fss-stat-value {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 18px;
    font-family: 'Courier New', monospace;
}

/* Quick Actions */
.fss-quick-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fss-quick-btn {
    padding: 12px 20px;
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-700);
}

.fss-quick-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

/* Activity List */
.fss-activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fss-activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.fss-activity-item:hover {
    background: var(--white);
    box-shadow: var(--shadow);
}

.fss-activity-time {
    color: var(--gray-500);
    font-weight: 600;
    font-size: 12px;
    min-width: 50px;
    background: var(--white);
    padding: 4px 8px;
    border-radius: 6px;
    text-align: center;
}

.fss-activity-desc {
    color: var(--gray-700);
    font-size: 14px;
    flex: 1;
}

/* Analytics Container */
.fss-analytics-container {
    margin: 32px 0;
}

.fss-analytics-header {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 24px 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.fss-analytics-header h2 {
    margin: 0;
    color: var(--gray-900);
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fss-analytics-filters {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.fss-analytics-filters select {
    padding: 10px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    background: var(--white);
    color: var(--gray-700);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.fss-analytics-filters select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

.fss-analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

/* Chart Containers */
.fss-chart-container {
    background: var(--white);
    padding: 24px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.fss-chart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.fss-chart-container:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.fss-chart-container h3 {
    margin: 0 0 20px 0;
    color: var(--gray-900);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fss-chart-container canvas {
    max-height: 300px;
    border-radius: var(--border-radius);
}

/* Metrics Container */
.fss-metrics-container {
    background: var(--white);
    padding: 24px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    grid-column: 1 / -1;
}

.fss-metrics-container h3 {
    margin: 0 0 24px 0;
    color: var(--gray-900);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#key-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.fss-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.fss-metric:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: var(--white);
}

.fss-metric-label {
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fss-metric-value {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 18px;
    font-family: 'Courier New', monospace;
}

.fss-metric-value.positive {
    color: var(--success);
}

.fss-metric-value.negative {
    color: var(--error);
}

/* History Container */
.fss-history-container {
    margin: 32px 0;
}

.fss-history-header {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 24px 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.fss-history-header h2 {
    margin: 0;
    color: var(--gray-900);
    font-size: 24px;
    font-weight: 700;
}

.fss-history-filters {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.fss-history-filters input {
    padding: 10px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    background: var(--white);
    color: var(--gray-700);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.fss-history-filters input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

.fss-history-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.fss-history-table th,
.fss-history-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.fss-history-table th {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    font-weight: 700;
    color: var(--gray-900);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fss-history-table tr:hover {
    background: var(--gray-50);
}

.fss-history-table tr:last-child td {
    border-bottom: none;
}

/* Pagination */
.fss-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.fss-page-btn {
    padding: 10px 16px;
    border: 2px solid var(--gray-300);
    background: var(--white);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 600;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fss-page-btn:hover,
.fss-page-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Loading States */
.fss-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.fss-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid var(--gray-200);
    border-top: 6px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal Styles */
.fss-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.fss-modal-content {
    background: var(--white);
    padding: 32px;
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
}

.fss-close {
    position: absolute;
    top: 20px;
    right: 24px;
    color: var(--gray-400);
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.fss-close:hover {
    color: var(--primary-color);
    background: var(--gray-100);
}

/* Notification Styles */
.fss-notification {
    position: fixed;
    top: 24px;
    right: 24px;
    padding: 16px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    z-index: 10001;
    cursor: pointer;
    box-shadow: var(--shadow-xl);
    animation: slideInRight 0.3s ease-out;
    max-width: 400px;
    border: 1px solid;
}

.fss-notification-success {
    background: var(--white);
    color: var(--success);
    border-color: var(--success);
}

.fss-notification-error {
    background: var(--white);
    color: var(--error);
    border-color: var(--error);
}

@keyframes slideInRight {
    from { 
        transform: translateX(100%); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0); 
        opacity: 1; 
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .fss-container {
        padding: 16px;
    }
    
    .fss-header {
        padding: 24px;
    }
    
    .fss-header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .fss-datetime {
        align-items: center;
    }
    
    .fss-form {
        grid-template-columns: 1fr;
        padding: 24px;
    }
    
    .fss-form-actions {
        flex-direction: column;
    }
    
    .fss-widget-grid {
        grid-template-columns: 1fr;
    }
    
    .fss-analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .fss-analytics-header {
        flex-direction: column;
        text-align: center;
    }
    
    .fss-history-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .fss-history-filters {
        flex-direction: column;
        width: 100%;
    }
    
    .fss-history-filters input,
    .fss-history-filters button,
    .fss-analytics-filters select {
        width: 100%;
    }
    
    .fss-modal-content {
        width: 95%;
        padding: 24px;
        margin: 16px;
    }
    
    #key-metrics {
        grid-template-columns: 1fr;
    }
    
    .fss-chart-container {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .fss-welcome {
        font-size: 24px;
    }
    
    #fss-current-time {
        font-size: 20px;
    }
    
    .fss-form-row input {
        padding: 14px;
        font-size: 16px;
    }
    
    .fss-submit-btn,
    .fss-history-btn,
    .fss-btn {
        padding: 14px 24px;
        font-size: 14px;
    }
    
    .fss-notification {
        top: 16px;
        right: 16px;
        left: 16px;
        max-width: none;
    }
}

/* Print Styles */
@media print {
    .fss-container {
        background: white;
        box-shadow: none;
        padding: 0;
    }
    
    .fss-form-actions,
    .fss-quick-actions,
    .fss-analytics-filters,
    .fss-history-filters {
        display: none;
    }
    
    .fss-widget,
    .fss-chart-container,
    .fss-form {
        box-shadow: none;
        border: 1px solid var(--gray-300);
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States for Accessibility */
.fss-submit-btn:focus,
.fss-history-btn:focus,
.fss-btn:focus,
.fss-quick-btn:focus {
    outline: 3px solid rgba(255, 0, 0, 0.3);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 8px 0 rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 8px 16px 0 rgba(0, 0, 0, 0.3);
        --shadow-xl: 0 16px 32px 0 rgba(0, 0, 0, 0.3);
    }
    
    .fss-container,
    .fss-widget,
    .fss-form,
    .fss-chart-container {
        border: 2px solid var(--gray-900);
    }
}

/* View Details Button */
.fss-btn-small {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    border: 1px solid #007cba;
    background: #007cba;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.fss-btn-small:hover {
    background: #005a87;
    border-color: #005a87;
    transform: translateY(-1px);
}

.fss-btn-small .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Enhanced Modal Styles */
.fss-modal {
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    animation: modalFadeIn 0.3s ease-out;
}

.fss-modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.fss-modal-header {
    padding: 24px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.fss-modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 20px;
    font-weight: 700;
}

.fss-modal-close {
    font-size: 32px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.fss-modal-close:hover {
    color: #FF0000;
    background: #f0f0f0;
    transform: scale(1.1);
}

.fss-modal-body {
    padding: 24px;
    max-height: calc(85vh - 120px);
    overflow-y: auto;
}

/* Detail Sections */
.detail-section {
    margin-bottom: 24px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #FF0000;
}

.detail-section h3 {
    margin: 0 0 16px 0;
    color: #333;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-section h3::before {
    font-size: 18px;
}

.detail-section.order-data h3::before { content: '📊'; }
.detail-section.manual-entries h3::before { content: '✏️'; }
.detail-section.cash-flow h3::before { content: '💰'; }
.detail-section.history-entries h3::before { content: '📋'; }

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.detail-item {
    background: white;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.detail-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.detail-item-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.detail-item-value {
    font-size: 18px;
    font-weight: 700;
    color: #FF0000;
    margin-bottom: 4px;
}

.detail-item-remark {
    font-size: 12px;
    color: #888;
    font-style: italic;
    max-height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-entry {
    background: white;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-bottom: 12px;
}

.history-entry:last-child {
    margin-bottom: 0;
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.entry-user {
    font-weight: 600;
    color: #333;
}

.entry-time {
    font-size: 12px;
    color: #666;
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
}

.entry-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.entry-detail {
    font-size: 14px;
}

.entry-detail strong {
    color: #333;
}

.loading-spinner {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #666;
}

.loading-spinner::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #FF0000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

/* Animations */
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from { 
        transform: scale(0.7) translateY(-50px); 
        opacity: 0; 
    }
    to { 
        transform: scale(1) translateY(0); 
        opacity: 1; 
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .fss-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .fss-modal-header {
        padding: 16px;
    }
    
    .fss-modal-body {
        padding: 16px;
    }
    
    .detail-section {
        padding: 16px;
    }
    
    .entry-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .entry-details {
        grid-template-columns: 1fr;
    }
}

/* View Details Button - Updated with Red Color */
.fss-btn-small {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    border: 1px solid #FF0000;
    background: #FF0000;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.fss-btn-small:hover {
    background: #CC0000;
    border-color: #CC0000;
    transform: translateY(-1px);
}

.fss-btn-small .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Admin View Details Button - For Admin Panel */
.admin-view-details {
    background: #FF0000 !important;
    border-color: #FF0000 !important;
    color: white !important;
}

.admin-view-details:hover {
    background: #CC0000 !important;
    border-color: #CC0000 !important;
}

/* Make sure the view buttons in the table have consistent styling */
.view-details-btn {
    background: #FF0000 !important;
    border: 1px solid #FF0000 !important;
    color: white !important;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
}

.view-details-btn:hover {
    background: #CC0000 !important;
    border-color: #CC0000 !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(255, 0, 0, 0.3);
}

.view-details-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.2);
}

.view-details-btn .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.fss-page-btn {
    cursor: pointer;
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    text-decoration: none;
    color: #333;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.fss-page-btn:hover {
    background: #f8f9fa;
    border-color: #FF0000;
}

.fss-page-btn.active {
    background: #FF0000;
    color: #fff;
    border-color: #FF0000;
    pointer-events: none;
}