* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', Arial, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

.header {
    background-color: #003328;
    color: white;
    padding: 16px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info span {
    font-size: 14px;
}

.logout-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

.logout-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
    flex: 1;
    width: 100%;
    box-sizing: border-box;
}

.welcome-card {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    margin-bottom: 30px;
}

.welcome-card h2 {
    color: #003328;
    margin-bottom: 20px;
    font-size: 24px;
}

.role-badge {
    display: inline-block;
    background-color: #ffc107;
    color: #333;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 500;
}

.user-details {
    text-align: left;
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.user-details p {
    margin: 10px 0;
    font-size: 14px;
}

.user-details strong {
    color: #003328;
    display: inline-block;
    width: 100px;
    font-weight: 600;
}

.page-section {
    margin-bottom: 25px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.menu-item {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.menu-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.menu-item-link:hover {
    text-decoration: none;
    color: inherit;
}

.menu-item i {
    font-size: 40px;
    margin-bottom: 15px;
    color: #007bff;
}

.menu-item h3 {
    color: #333;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.menu-item a {
    text-decoration: none;
    color: inherit;
}

.search-container {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.search-row {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.search-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.search-group label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.search-group input,
.search-group select {
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    min-width: 160px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.search-group input:focus,
.search-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

.search-btn {
    background-color: #003328;
    color: white;
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: #002920;
}

.add-btn {
    background-color: #003328;
    color: white;
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s;
}

.add-btn:hover {
    background-color: #002920;
}

.home-btn {
    background-color: #003328;
    color: white;
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s;
}

.home-btn:hover {
    background-color: #002920;
}

.reset-btn {
    background-color: #003328;
    color: white;
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s;
}

.reset-btn:hover {
    background-color: #002920;
}

.table-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background-color: #f8f9fa;
    padding: 14px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e9ecef;
    font-size: 14px;
}

td {
    padding: 12px 14px;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
}

tr:hover {
    background-color: #f8f9fa;
}

.action-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-links a {
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 13px;
    text-decoration: none;
    transition: opacity 0.3s;
}

.view-link {
    background-color: #003328;
    color: white;
    text-align: center;
}

.view-link:hover {
    background-color: #002920;
}

.edit-link {
    background-color: #003328;
    color: white;
    text-align: center;
}

.edit-link:hover {
    background-color: #002920;
}

.delete-link {
    background-color: #dc3545;
    color: white;
    text-align: center;
}

.delete-link:hover {
    background-color: #c82333;
}

.view-btn {
    display: inline-block;
    padding: 6px 12px;
    background-color: #003328;
    color: white;
    border-radius: 3px;
    font-size: 13px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s;
}

.view-btn:hover {
    background-color: #002920;
}

.approve-btn {
    display: inline-block;
    padding: 6px 12px;
    background-color: #003328;
    color: white;
    border-radius: 3px;
    font-size: 13px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s;
}

.reset-btn:hover {
    background-color: #002920;
}

.export-btn {
    background-color: #003328;
    color: white;
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

button.export-btn {
    min-height: 40px;
}

.export-btn:hover {
    background-color: #002920;
}

.reject-btn {
    display: inline-block;
    padding: 6px 12px;
    background-color: #dc3545;
    color: white;
    border-radius: 3px;
    font-size: 13px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s;
}

.reject-btn:hover {
    background-color: #c82333;
}

.banner {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 12px 30px;
    text-align: center;
    font-size: 14px;
    color: #6c757d;
    margin-top: 30px;
}

.banner-content {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.banner-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.banner-item strong {
    color: #495057;
}

.notification-container {
    position: fixed;
    top: 100px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    max-width: 400px;
    animation: slideIn 0.3s ease-out, fadeOut 0.3s ease-in 3.5s forwards;
}

.notification.success {
    background-color: #52c41a;
}

.notification.error {
    background-color: #ff4d4f;
}

.notification.warning {
    background-color: #faad14;
}

.notification.info {
    background-color: #1890ff;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    padding: 15px;
    gap: 5px;
}

.pagination a {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: background-color 0.3s;
}

.pagination a:hover {
    background-color: #f0f0f0;
}

.pagination .current {
    background-color: #003328;
    color: white;
    border-color: #003328;
}

.pagination span {
    padding: 8px 12px;
    font-size: 14px;
}

.form-container {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #003328;
}

.form-header h2 {
    color: #003328;
    margin: 0;
    font-size: 20px;
}

.form-nav {
    display: flex;
    gap: 10px;
}

.nav-btn {
    padding: 8px 16px;
    background-color: #003328;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    transition: background-color 0.3s;
}

.nav-btn:hover {
    background-color: #002920;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

.file-upload {
    padding: 25px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s, background-color 0.3s;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.file-upload:hover {
    border-color: #007bff;
    background-color: #f8fcff;
}

.file-upload.loading {
    border-color: #28a745;
    background-color: #f0fff0;
    cursor: not-allowed;
}

.file-upload.has-file {
    border-color: #28a745;
    background-color: #f0fff0;
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload-label {
    color: #666;
    font-size: 16px;
    font-weight: 500;
}

.file-upload:hover .file-upload-label {
    color: #007bff;
}

.file-upload.loading .file-upload-label {
    color: #28a745;
}

.file-upload.has-file .file-upload-label {
    color: #28a745;
}

.upload-hint {
    font-size: 12px;
    color: #888;
    margin-top: 8px;
    display: none;
}

.file-upload.loading .upload-hint,
.file-upload.has-file .upload-hint {
    display: block;
}

.button-group {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.submit-btn {
    background-color: #003328;
    color: white;
    padding: 16px 40px;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s, transform 0.2s;
    min-width: 140px;
}

.submit-btn:hover {
    background-color: #002920;
    transform: translateY(-1px);
}

.cancel-btn {
    background-color: #6c757d;
    color: white;
    padding: 16px 40px;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s, transform 0.2s;
    min-width: 140px;
}

.cancel-btn:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
}

.messages {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    text-align: center;
}

.messages li {
    padding: 16px 24px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 15px;
    font-weight: 500;
    display: inline-block;
    min-width: 200px;
}

.messages .success {
    background-color: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #a5d6a7;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.15);
}

.messages .error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.15);
}

.messages .warning {
    background-color: #fff3e0;
    color: #e65100;
    border: 1px solid #ffcc80;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.15);
}

.status-pending {
    color: #ffc107;
    font-weight: 600;
}

.status-approved {
    color: #28a745;
    font-weight: 600;
}

.status-rejected {
    color: #dc3545;
    font-weight: 600;
}

.stock-high {
    color: #28a745;
    font-weight: 600;
}

.stock-medium {
    color: #ffc107;
    font-weight: 600;
}

.stock-low {
    color: #dc3545;
    font-weight: 600;
}

.stats-card {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.stat-item {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.stat-item .stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #003328;
}

.stat-item .stat-label {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}

.login-container {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.login-container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #003328;
    font-size: 22px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.login-form label {
    font-weight: 600;
    color: #333;
}

.login-form input {
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.login-form input:focus {
    outline: none;
    border-color: #007bff;
}

.login-form button {
    background-color: #003328;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.login-form button:hover {
    background-color: #002920;
}

.no-permission-container {
    text-align: center;
    padding: 60px 20px;
}

.no-permission-container h2 {
    color: #dc3545;
    margin-bottom: 20px;
    font-size: 28px;
}

.no-permission-container p {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

.no-permission-container .btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    transition: background-color 0.3s;
}

.no-permission-container .btn:hover {
    background-color: #0056b3;
}

.detail-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.detail-header h2 {
    margin: 0;
    color: #003328;
    font-size: 20px;
}

.detail-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-item label {
    font-weight: 600;
    color: #666;
    font-size: 14px;
}

.detail-item span {
    color: #333;
    font-size: 14px;
}

.detail-file {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f8f9fa;
    color: #007bff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.detail-file:hover {
    background-color: #e9ecef;
}

.charts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.chart-card {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    min-width: 0;
}

.chart-card h3 {
    margin: 0 0 20px 0;
    color: #003328;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

@media (max-width: 768px) {
    .header {
        padding: 12px 15px;
    }
    
    .header h1 {
        font-size: 18px;
    }
    
    .search-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-group input,
    .search-group select {
        width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .detail-row {
        grid-template-columns: 1fr;
    }
    
    .stats-card {
        grid-template-columns: 1fr;
    }
    
    .menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .action-links {
        flex-direction: column;
    }
    
    th, td {
        padding: 8px 6px;
        font-size: 12px;
    }
    
    .button-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .submit-btn,
    .cancel-btn {
        width: 100%;
        padding: 18px 24px;
        font-size: 17px;
        min-width: auto;
    }
    
    .file-upload {
        padding: 20px;
        min-height: 70px;
    }
    
    .file-upload-label {
        font-size: 14px;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .charts-container {
        grid-template-columns: 1fr;
    }
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    text-align: center;
    color: white;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:nth-child(2) {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.2);
}

.stat-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.2);
}

.stat-card:nth-child(4) {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    box-shadow: 0 4px 15px rgba(250, 112, 154, 0.2);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-card .stat-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-card .stat-value.unpaid {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.stat-card .stat-label {
    font-size: 14px;
    opacity: 0.9;
}

.charts-section {
    margin-top: 30px;
}

.section-title {
    color: #003328;
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.chart-container {
    background-color: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .charts-row {
        grid-template-columns: 1fr;
    }
    
    .stat-card .stat-value {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .stats-row {
        grid-template-columns: 1fr;
    }
}

.finance-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 25px;
}

.finance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f1f5f9;
}

.finance-title-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.finance-label {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    align-self: flex-start;
}

.finance-main-title {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.finance-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

.finance-time-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 15px 22px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.finance-time-badge svg {
    width: 20px;
    height: 20px;
    color: #6366f1;
    flex-shrink: 0;
}

.finance-time-badge span {
    font-size: 13px;
    color: #475569;
    font-weight: 600;
    white-space: nowrap;
}

.stats-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.finance-stat-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.finance-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s;
}

.finance-stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.finance-stat-card:hover::before {
    opacity: 1;
}

.stat-card-inner {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 26px;
    height: 26px;
}

.stat-icon.blue {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.12));
    color: #6366f1;
}

.stat-icon.green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(6, 182, 212, 0.12));
    color: #10b981;
}

.stat-icon.purple {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(109, 40, 217, 0.12));
    color: #7c3aed;
}

.stat-icon.orange {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(239, 68, 68, 0.12));
    color: #f97316;
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-number {
    font-size: 30px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.stat-number.warning {
    color: #f97316;
}

.stat-label {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

.stat-trend {
    display: flex;
    align-items: center;
    font-size: 13px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.stat-trend.up {
    color: #10b981;
}

.stat-trend.warning {
    color: #f97316;
}

.stat-trend span {
    margin-right: 6px;
    font-size: 8px;
}

.finance-cards-grid {
    margin-bottom: 30px;
}

.finance-menu-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.menu-card-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 25px 0;
}

.menu-items-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.menu-item-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid transparent;
}

.menu-item-card:hover {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.menu-item-card:hover h4 {
    color: white;
}

.menu-item-icon {
    font-size: 28px;
    margin-bottom: 10px;
    transition: transform 0.3s;
}

.menu-item-card:hover .menu-item-icon {
    transform: scale(1.15);
}

.menu-item-card h4 {
    font-size: 15px;
    font-weight: 600;
    color: #475569;
    margin: 0;
    transition: color 0.3s;
}

.charts-cards-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.chart-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.chart-card-header {
    margin-bottom: 20px;
}

.chart-card-header h3 {
    font-size: 17px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
}

.chart-icon {
    margin-right: 10px;
}

@media (max-width: 1200px) {
    .stats-cards-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .charts-cards-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .finance-container {
        padding: 15px;
    }
    
    .finance-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 25px;
        padding-bottom: 20px;
    }
    
    .finance-main-title {
        font-size: 24px;
    }
    
    .finance-time-badge {
        width: 100%;
        justify-content: center;
    }
    
    .stats-cards-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-number {
        font-size: 22px;
    }
    
    .menu-items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .charts-cards-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .chart-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .stats-cards-wrapper {
        grid-template-columns: 1fr;
    }
    
    .menu-items-grid {
        grid-template-columns: 1fr;
    }
}
