/* Finance Management Styles */

.finance-content,
.expense-requests-content {
    padding: 20px;
    background-color: #f8f9fa;
    min-height: calc(100vh - 60px);
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stat-icon.pending {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-icon.approved {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-icon.rejected {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.stat-icon.paused {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.stat-icon.expense {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.stat-icon.balance {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.stat-icon.pause-expense {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.stat-icon.total {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-icon i {
    font-size: 24px;
}

.stat-content h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

.stat-content p {
    margin: 5px 0 0 0;
    color: #7f8c8d;
    font-size: 14px;
}

/* Filter Section */
.filter-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #2c3e50;
}

.filter-group .form-control {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 14px;
}

/* Table Container */
.table-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.table-header h3 {
    margin: 0;
    color: #2c3e50;
    font-weight: 600;
}

.table-actions {
    display: flex;
    gap: 10px;
}

/* Table Styles */
.table {
    margin: 0;
}

.table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #2c3e50;
    padding: 12px 15px;
}

.table td {
    padding: 12px 15px;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Status Badges */
.badge {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-warning {
    background-color: #fff3cd;
    color: #856404;
}

.badge-success {
    background-color: #d4edda;
    color: #155724;
}

.badge-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.badge-secondary {
    background-color: #e2e3e5;
    color: #383d41;
}

/* Enhanced Finance Manager and Expense Requests Styles */

/* Improved Modal Responsive Design */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 1.75rem auto;
    pointer-events: none;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-xl {
    max-width: 1200px;
}

.modal-lg {
    max-width: 800px;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    border: none;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    outline: 0;
    overflow: hidden;
    max-height: 90vh;
}

/* Enhanced Modal Header - More Subtle */
.modal-header {
    flex-shrink: 0 !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    color: #495057 !important;
    border-bottom: 1px solid #dee2e6 !important;
    width: 100% !important;
    border-radius: 20px 20px 0 0 !important;
    padding: 25px 30px !important;
    position: relative;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.95) 0%, rgba(233, 236, 239, 0.95) 100%);
    z-index: -1;
}

.modal-title {
    font-size: 22px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    color: #495057 !important;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-title i {
    font-size: 24px;
    color: #6c757d;
}

.close {
    background: rgba(108, 117, 125, 0.1) !important;
    border: none !important;
    color: #6c757d !important;
    font-size: 20px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    padding: 10px !important;
    margin: 0 !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}

.close:hover {
    background: rgba(108, 117, 125, 0.2) !important;
    transform: scale(1.05) !important;
    color: #495057 !important;
}

/* Enhanced Modal Body */
.modal-body {
    flex: 1 1 auto;
    padding: 30px !important;
    overflow-y: auto;
    background: #ffffff;
}

/* Redesigned Request Details Section - Full Width */
.request-details {
    background: #ffffff;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.request-details h6 {
    color: #495057;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 8px;
}

.request-details h6::before {
    content: '';
    width: 3px;
    height: 16px;
    background: #6c757d;
    border-radius: 2px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.2s ease;
}

.detail-row:hover {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px 15px;
    margin: 0 -15px;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 500;
    color: #6c757d;
    min-width: 140px;
    font-size: 14px;
}

.detail-value {
    color: #212529;
    font-weight: 500;
    text-align: right;
    flex: 1;
    margin-left: 20px;
    word-break: break-word;
}

/* Status Badge - More Subtle */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-badge.approved {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status-badge.rejected {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-badge.paused {
    background: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

/* Enhanced Files List - More Subtle */
.files-list {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
    margin-bottom: 30px;
}

.files-list h6 {
    color: #495057;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
    cursor: pointer;
}

.file-item:hover {
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #dee2e6;
}

.file-item:last-child {
    margin-bottom: 0;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.file-icon {
    width: 40px;
    height: 40px;
    background: #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 16px;
}

.file-details {
    flex: 1;
}

.file-name {
    font-weight: 500;
    color: #212529;
    margin-bottom: 2px;
    font-size: 14px;
}

.file-meta {
    font-size: 12px;
    color: #6c757d;
    display: flex;
    gap: 12px;
}

.file-actions {
    display: flex;
    gap: 6px;
}

.file-action-btn {
    padding: 6px 10px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    background: #ffffff;
    color: #6c757d;
}

.file-action-btn.preview {
    border-color: #bee5eb;
    color: #0c5460;
}

.file-action-btn.preview:hover {
    background: #d1ecf1;
    border-color: #86cfda;
}

.file-action-btn.download {
    border-color: #c3e6cb;
    color: #155724;
}

.file-action-btn.download:hover {
    background: #d4edda;
    border-color: #a1d8a1;
}

/* Actions Section - At Bottom */
.actions-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e9ecef;
    margin-top: 20px;
}

.actions-section h6 {
    color: #495057;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.action-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: none;
    letter-spacing: 0.3px;
}

.action-btn.approve {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.action-btn.approve:hover {
    background: #c3e6cb;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(21, 87, 36, 0.15);
}

.action-btn.reject {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.action-btn.reject:hover {
    background: #f5c6cb;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(114, 28, 36, 0.15);
}

.action-btn.pause {
    background: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

.action-btn.pause:hover {
    background: #d6d8db;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(56, 61, 65, 0.15);
}

.action-btn.edit {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.action-btn.edit:hover {
    background: #ffeaa7;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(133, 100, 4, 0.15);
}

.action-btn.delete {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.action-btn.delete:hover {
    background: #f5c6cb;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(114, 28, 36, 0.15);
}

/* Enhanced Modal Footer */
.modal-footer {
    flex-shrink: 0;
    padding: 20px 30px !important;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.modal-footer .btn {
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
    text-transform: none !important;
    letter-spacing: 0.3px !important;
}

.modal-footer .btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Reason Popup Modal - More Subtle */
.reason-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1060;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.reason-modal.show {
    opacity: 1;
    visibility: visible;
}

.reason-modal-content {
    background: white;
    border-radius: 16px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.reason-modal.show .reason-modal-content {
    transform: scale(1);
}

.reason-modal-header {
    background: #f8f9fa;
    color: #495057;
    padding: 20px 25px;
    border-radius: 16px 16px 0 0;
    position: relative;
    border-bottom: 1px solid #e9ecef;
}

.reason-modal-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #495057;
}

.reason-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(108, 117, 125, 0.1);
    border: none;
    color: #6c757d;
    font-size: 18px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reason-modal-close:hover {
    background: rgba(108, 117, 125, 0.2);
    transform: scale(1.05);
}

.reason-modal-body {
    padding: 25px;
}

.reason-form-group {
    margin-bottom: 20px;
}

.reason-form-group label {
    display: block;
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
    font-size: 14px;
}

.reason-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
    transition: all 0.2s ease;
    background: #ffffff;
}

.reason-form-group textarea:focus {
    outline: none;
    border-color: #6c757d;
    box-shadow: 0 0 0 2px rgba(108, 117, 125, 0.1);
}

.reason-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 0 0 16px 16px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.reason-modal-footer .btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: 0.3px;
}

/* Enhanced File Preview Modal */
#filePreviewModal .modal-content {
    max-height: 95vh;
}

#filePreviewContent {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
    padding: 40px;
    text-align: center;
}

#filePreviewContent iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#filePreviewContent img {
    max-width: 100%;
    max-height: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive Design Improvements */
@media (max-width: 1200px) {
    .modal-xl {
        max-width: 95vw;
    }
    
    .modal-lg {
        max-width: 90vw;
    }
}

@media (max-width: 768px) {
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100vw - 1rem);
        max-height: calc(100vh - 1rem);
    }
    
    .modal-content {
        max-height: calc(100vh - 1rem);
    }
    
    .modal-header {
        padding: 20px !important;
    }
    
    .modal-title {
        font-size: 18px !important;
    }
    
    .modal-body {
        padding: 20px !important;
    }
    
    .modal-footer {
        padding: 15px 20px !important;
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .request-details {
        padding: 0;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .detail-label {
        min-width: auto;
        font-weight: 600;
        color: #495057;
    }
    
    .detail-value {
        text-align: left;
        margin-left: 0;
        font-weight: 500;
    }
    
    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .file-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .reason-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .reason-modal-header {
        padding: 20px;
    }
    
    .reason-modal-body {
        padding: 20px;
    }
    
    .reason-modal-footer {
        padding: 15px 20px;
        flex-direction: column;
    }
    
    .reason-modal-footer .btn {
        width: 100%;
        margin-bottom: 8px;
    }
}

@media (max-width: 576px) {
    .modal-dialog {
        margin: 0;
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .modal-content {
        border-radius: 0;
        max-height: 100vh;
    }
    
    .modal-header {
        border-radius: 0 !important;
    }
    
    .reason-modal-content {
        width: 100%;
        margin: 0;
        border-radius: 0;
    }
    
    .reason-modal-header {
        border-radius: 0;
    }
}

/* Enhanced Loading States */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    z-index: 10;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #6c757d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal.show .modal-content {
    animation: slideInUp 0.3s ease;
}

.reason-modal.show .reason-modal-content {
    animation: slideInUp 0.3s ease;
}

/* Enhanced Focus States for Accessibility */
.modal:focus,
.reason-modal:focus {
    outline: none;
}

.modal-content:focus,
.reason-modal-content:focus {
    outline: 2px solid #6c757d;
    outline-offset: 2px;
}

/* Enhanced Scrollbar for Modal Body */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    display: block;
}

.form-control {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px 12px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-control-file {
    border: 2px dashed #ddd;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    transition: border-color 0.2s ease;
}

.form-control-file:hover {
    border-color: #667eea;
}

/* File Items */
.file-item {
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-item i {
    color: #667eea;
    font-size: 16px;
}

/* Request Details */
.request-details {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    padding: 25px !important;
    border-radius: 15px !important;
    margin-bottom: 25px !important;
    width: 100% !important;
    border: 1px solid rgba(34, 197, 94, 0.1) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
}

.request-details h6 {
    color: #22c55e !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    border-bottom: 3px solid #22c55e !important;
    padding-bottom: 12px !important;
    font-size: 1.2rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.detail-row {
    display: flex !important;
    margin-bottom: 15px !important;
    align-items: flex-start !important;
    width: 100% !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid rgba(34, 197, 94, 0.1) !important;
}

.detail-row:last-child {
    border-bottom: none !important;
}

.detail-label {
    font-weight: 700 !important;
    color: #22c55e !important;
    min-width: 150px !important;
    margin-right: 20px !important;
    flex-shrink: 0 !important;
    font-size: 0.95rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
}

.detail-value {
    color: #374151 !important;
    flex: 1 !important;
    word-wrap: break-word !important;
    font-weight: 500 !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
}

/* Request Actions Styling */
.request-actions {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
    padding: 25px !important;
    border-radius: 15px !important;
    height: fit-content !important;
    width: 100% !important;
    border: 1px solid rgba(234, 179, 8, 0.2) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
}

.request-actions h6 {
    color: #eab308 !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    border-bottom: 3px solid #eab308 !important;
    padding-bottom: 12px !important;
    font-size: 1.2rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.btn-group-vertical .btn {
    margin-bottom: 12px !important;
    text-align: left !important;
    padding: 15px 20px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    width: 100% !important;
    transition: all 0.3s ease !important;
    border: none !important;
    position: relative !important;
    overflow: hidden !important;
}

.btn-group-vertical .btn:last-child {
    margin-bottom: 0 !important;
}

.btn-group-vertical .btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

/* View More Modal Layout Fixes */
#viewExpenseRequestModal .row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin: 0 !important;
    width: 100% !important;
}

#viewExpenseRequestModal .col-md-8 {
    flex: 0 0 66.666667% !important;
    max-width: 66.666667% !important;
    padding: 0 15px !important;
}

#viewExpenseRequestModal .col-md-4 {
    flex: 0 0 33.333333% !important;
    max-width: 33.333333% !important;
    padding: 0 15px !important;
}

/* Responsive fixes for smaller screens */
@media (max-width: 768px) {
    #viewExpenseRequestModal .col-md-8,
    #viewExpenseRequestModal .col-md-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px !important;
    }
    
    #viewExpenseRequestModal .modal-dialog {
        max-width: 98% !important;
        width: 98% !important;
        margin: 5px auto !important;
    }
    
    .detail-row {
        flex-direction: column !important;
    }
    
    .detail-label {
        min-width: auto !important;
        margin-bottom: 5px !important;
    }
}

/* Files List Styling */
.files-list {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border: 2px solid rgba(34, 197, 94, 0.1) !important;
    border-radius: 15px !important;
    padding: 20px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
}

.files-list h6 {
    color: #22c55e !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    border-bottom: 3px solid #22c55e !important;
    padding-bottom: 12px !important;
    font-size: 1.2rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.file-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
    border: 1px solid rgba(34, 197, 94, 0.15) !important;
    border-radius: 12px !important;
    padding: 15px !important;
    margin-bottom: 12px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.file-item:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.15) !important;
    border-color: rgba(34, 197, 94, 0.3) !important;
}

.file-item:last-child {
    margin-bottom: 0 !important;
}

.file-item .d-flex {
    align-items: center !important;
}

.file-item i {
    color: #22c55e !important;
    margin-right: 12px !important;
    font-size: 1.2rem !important;
}

.file-item .btn-group-sm .btn {
    padding: 6px 12px !important;
    font-size: 12px !important;
    margin-left: 8px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.file-item .btn-group-sm .btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* PDF Container Styling */
.pdf-container {
    border: 1px solid #dee2e6 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: white !important;
}

.pdf-container embed {
    display: block !important;
    width: 100% !important;
    height: 600px !important;
    border: none !important;
}

/* Text Content Styling */
.text-content pre {
    background: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    border-radius: 6px !important;
    font-family: 'Courier New', monospace !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

/* Table Styling */
.table-responsive {
    border: 1px solid #dee2e6 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.table {
    margin-bottom: 0 !important;
}

.table thead th {
    background: #f8f9fa !important;
    border-bottom: 2px solid #dee2e6 !important;
    font-weight: 600 !important;
    color: #495057 !important;
}

.table tbody td {
    vertical-align: middle !important;
}

/* Alert Styling */
.alert {
    border-radius: 6px !important;
    border: none !important;
    padding: 12px 16px !important;
    margin-bottom: 15px !important;
}

.alert-info {
    background: #d1ecf1 !important;
    color: #0c5460 !important;
}

.alert-warning {
    background: #fff3cd !important;
    color: #856404 !important;
}

/* Button Styling */
.btn-primary {
    background: linear-gradient(135deg, #22c55e 0%, #eab308 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3) !important;
    background: linear-gradient(135deg, #16a34a 0%, #ca8a04 100%) !important;
}

.btn-secondary {
    background: #6c757d !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    color: #fff;
    transition: all 0.3s ease !important;
}

.btn-secondary:hover {
    background: #5a6268 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.btn-outline-primary {
    border: 2px solid #22c55e !important;
    color: #22c55e !important;
    border-radius: 8px !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    background: transparent !important;
    transition: all 0.3s ease !important;
}

.btn-outline-primary:hover {
    background: #22c55e !important;
    border-color: #22c55e !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3) !important;
}

.btn-outline-secondary {
    border: 2px solid #eab308 !important;
    color: #eab308 !important;
    border-radius: 8px !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    background: transparent !important;
    transition: all 0.3s ease !important;
}

.btn-outline-secondary:hover {
    background: #eab308 !important;
    border-color: #eab308 !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.3) !important;
}

.btn-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    color: white !important;
}

.btn-success:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3) !important;
}

.btn-warning {
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    color: white !important;
}

.btn-warning:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(234, 179, 8, 0.3) !important;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    color: white !important;
}

.btn-danger:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3) !important;
}

/* Empty State Styling */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 16px;
    margin: 0;
    font-weight: 500;
}

/* Form and Select Improvements */
select.form-control,
.form-group select,
input.form-control,
textarea.form-control {
    background-color: #ffffff !important;
    color: #212529 !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

select.form-control:focus,
input.form-control:focus,
textarea.form-control:focus {
    border-color: #22c55e !important;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.15) !important;
}

/* Ensure select option legibility */
select.form-control option {
    background: #ffffff;
    color: #212529;
}

/* Placeholder/help text */
.form-text,
.form-text.text-muted {
    color: #6c757d !important;
}

/* Modal Structure - Matching Projects Page */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99990;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.modal-title {
    margin: 0;
    font-size: 20px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 5px;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #eee;
}

/* File Preview Toolbar */
.preview-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 12px;
}

.preview-toolbar .btn,
.preview-toolbar button,
.preview-toolbar a {
    padding: 6px 10px;
    border: 1px solid #dee2e6;
    background: #fff;
    border-radius: 6px;
    font-size: 12px;
    color: #495057;
    cursor: pointer;
}

.preview-toolbar .btn:hover,
.preview-toolbar button:hover,
.preview-toolbar a:hover {
    background: #f1f3f5;
}

.preview-viewport {
    width: 100%;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: auto;
    transform-origin: top left;
    min-height: 400px;
}

.preview-viewport.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    background: #ffffff;
    padding: 0;
    margin: 0;
}

.pdf-container, .doc-container, .iframe-container {
    width: 100%;
    height: 100%;
}
