body { font-size: 0.9rem; background-color: #f6f8fa; }
.navbar-dark { background-color: #24292f !important; }
.sidebar { width: 250px; background-color: #f6f8fa; border-right: 1px solid #d0d7de; height: 100vh;
           position: fixed; top: 56px; left: 0; padding: 1rem 1rem 3rem 1rem; overflow-y: auto;
           transition: transform 0.3s ease-in-out, width 0.3s ease-in-out; z-index: 1050; }
.sidebar.desktop-collapsed { width: 70px; overflow: hidden; }
.sidebar.desktop-collapsed .nav-link { text-align: center; }
.sidebar.desktop-collapsed .nav-link i { margin-right: 0; font-size: 1.2rem; }
.sidebar.desktop-collapsed .nav-link span { display: none; }
.content { margin-left: 250px; padding: 2rem; margin-top: 56px; transition: margin-left 0.3s ease-in-out; }
.content.expanded { margin-left: 70px; }
.overlay { display: none; position: fixed; top: 56px; left: 0; width: 100%;
           height: calc(100% - 56px); background: rgba(0,0,0,0.5); z-index: 1040; }
.overlay.show { display: block; }
#toggleSidebar { border: none !important; background: transparent !important; padding: 0.25rem 0.5rem; }
#toggleSidebar:hover { opacity: 0.8; }

/* Auth Container Styles */
.auth-container {
    background: #ffffff;
    border: 1px solid #d0d7de;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Custom Alert Styles for Auth */
.auth-container .alert {
    border: none;
    border-radius: 0.375rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
}

.auth-container .alert-error,
.auth-container .alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 3px solid #dc3545;
}

.auth-container .alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
    border-left: 3px solid #198754;
}

.auth-container .alert-info {
    background-color: #d1ecf1;
    color: #055160;
    border-left: 3px solid #0dcaf0;
}

.auth-container .alert-warning {
    background-color: #fff3cd;
    color: #664d03;
    border-left: 3px solid #ffc107;
}

/* Close button styling for alerts */
.auth-container .alert .btn-close {
    padding: 0.5rem 0.5rem;
    font-size: 0.75rem;
}

/* Form Styles for Auth */
.auth-container .form-control {
    border: 1px solid #d0d7de;
    border-radius: 0.375rem;
    font-size: 0.85rem;
}

.auth-container .form-control:focus {
    border-color: #0969da;
    box-shadow: 0 0 0 0.2rem rgba(9, 105, 218, 0.25);
}

.auth-container .form-label {
    font-weight: 600;
    color: #24292f;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

/* Button Styles for Auth */
.auth-container .btn-dark {
    background-color: #24292f;
    border-color: #24292f;
    font-size: 0.85rem;
    color: #ffffff !important;
}

.auth-container .btn-dark:hover {
    background-color: #32383f;
    border-color: #32383f;
    color: #ffffff !important;
}

/* Ensure link buttons maintain white text */
.auth-container a.btn-dark {
    color: #ffffff !important;
    text-decoration: none !important;
}

.auth-container a.btn-dark:hover {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Link Styles for Auth */
.auth-container a {
    color: #0969da;
    font-size: 0.85rem;
}

.auth-container a:hover {
    color: #0550ae;
}

/* Checkbox Styles for Auth */
.auth-container .form-check-input:checked {
    background-color: #24292f;
    border-color: #24292f;
}

.auth-container .form-check-label {
    font-size: 0.85rem;
    color: #656d76;
}

/* Password Toggle Button Styles */
.auth-container .input-group .btn-outline-secondary {
    border-color: #d0d7de;
    color: #656d76;
    background-color: #ffffff;
    font-size: 0.85rem;
    border-left: none;
}

.auth-container .input-group .btn-outline-secondary:hover {
    background-color: #f6f8fa;
    border-color: #d0d7de;
    color: #24292f;
}

.auth-container .input-group .btn-outline-secondary:focus {
    box-shadow: none;
    border-color: #d0d7de;
    color: #24292f;
    outline: none;
}

.auth-container .input-group .form-control:focus + .btn-outline-secondary {
    border-color: #d0d7de;
}

/* Language Selector Styles */
.dropdown .btn-outline-secondary {
    border-color: #d0d7de;
    color: #656d76;
    background-color: #ffffff;
}

.dropdown .btn-outline-secondary:hover {
    background-color: #f6f8fa;
    border-color: #d0d7de;
    color: #24292f;
}

.dropdown .btn-outline-secondary:focus,
.dropdown .btn-outline-secondary:active,
.dropdown .btn-outline-secondary.show {
    background-color: #f6f8fa;
    border-color: #d0d7de;
    color: #24292f;
    box-shadow: none;
}

.dropdown-menu {
    border-color: #d0d7de;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.dropdown-item {
    color: #656d76;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #f6f8fa;
    color: #24292f;
}

.dropdown-item.active {
    background-color: #24292f;
    color: #ffffff;
}

/* User Dropdown Menu Styles */
.navbar .dropdown-menu {
    border: 1px solid #d0d7de;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(140, 149, 159, 0.2);
    background-color: #ffffff;
    margin-top: 8px;
    min-width: 200px;
    padding: 8px 0;
}

.navbar .dropdown-menu.dropdown-menu-dark {
    background-color: #ffffff;
    border-color: #d0d7de;
}

.navbar .dropdown-item {
    color: #656d76;
    padding: 8px 16px;
    font-size: 14px;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background-color: #f6f8fa;
    color: #24292f;
}

.navbar .dropdown-item i {
    width: 16px;
    height: 16px;
    font-size: 14px;
    opacity: 0.8;
}

.navbar .dropdown-divider {
    border-color: #d0d7de;
    margin: 8px 0;
}

/* User dropdown toggle styling */
.navbar .nav-link.dropdown-toggle {
    color: #656d76 !important;
    border-radius: 6px;
    padding: 6px 12px;
    transition: all 0.15s ease;
}

.navbar .nav-link.dropdown-toggle:hover {
    background-color: #f6f8fa;
    color: #24292f !important;
}

.navbar .nav-link.dropdown-toggle::after {
    border-top-color: #656d76;
    margin-left: 8px;
}

.navbar .nav-link.dropdown-toggle.show {
    background-color: #f6f8fa;
    color: #24292f !important;
}

/* Navbar adjustments after removing search bar */
.navbar .navbar-nav.ms-auto {
    margin-left: auto !important;
}

.navbar .container-fluid {
    justify-content: space-between;
}

.navbar-brand {
    flex-grow: 0;
}

/* Ensure proper spacing in navbar without search */
.navbar-nav .nav-item {
    margin-left: 0.5rem;
}

.navbar-nav .nav-item:first-child {
    margin-left: 0;
}

/* Password Reset Specific Styles */
.auth-container .password-reset-icon {
    color: #0969da;
    margin-bottom: 1rem;
}

.auth-container .success-icon {
    color: #28a745;
    margin-bottom: 1rem;
}

.auth-container .password-reset-info {
    background-color: #e3f2fd;
    border-left: 3px solid #2196f3;
    padding: 1rem;
    border-radius: 0.375rem;
    margin: 1rem 0;
}

.auth-container .password-reset-info small {
    color: #1565c0;
    font-weight: 500;
}

.auth-container .password-strength-indicator {
    margin-top: 0.5rem;
}

.auth-container .password-strength-weak {
    color: #dc3545;
}

.auth-container .password-strength-medium {
    color: #ffc107;
}

.auth-container .password-strength-strong {
    color: #28a745;
}

/* Email confirmation styles */
.auth-container .email-sent-container {
    text-align: center;
    padding: 2rem 1rem;
}

.auth-container .email-sent-icon {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 1.5rem;
}

/* Email verification specific styles */
.auth-container .verification-container {
    text-align: center;
    padding: 2rem 1rem;
}

.auth-container .verification-icon {
    font-size: 3rem;
    color: #0969da;
    margin-bottom: 1.5rem;
}

.auth-container .verification-info {
    background-color: #e3f2fd;
    border-left: 3px solid #2196f3;
    padding: 1rem;
    border-radius: 0.375rem;
    margin: 1rem 0;
}

.auth-container .verification-info h6 {
    color: #1565c0;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.auth-container .verification-info p {
    color: #1565c0;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.auth-container .verification-security-note {
    background-color: #fff3cd;
    border-left: 3px solid #ffc107;
    padding: 1rem;
    border-radius: 0.375rem;
    margin: 1rem 0;
}

.auth-container .verification-security-note h6 {
    color: #664d03;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.auth-container .verification-security-note ul {
    color: #664d03;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.auth-container .verification-security-note li {
    margin-bottom: 0.25rem;
}

/* Request verification form styles */
.auth-container .verification-request-container {
    padding: 1.5rem;
}

.auth-container .verification-warning {
    background-color: #fff3cd;
    border-left: 3px solid #ffc107;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
}

.auth-container .verification-warning h6 {
    color: #664d03;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.auth-container .verification-warning p {
    color: #664d03;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.auth-container .verification-form .form-label {
    font-weight: 600;
    color: #24292f;
    margin-bottom: 0.5rem;
}

.auth-container .verification-form .form-text {
    color: #656d76;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Verification form uses standard btn-dark styling */

/* Outline secondary button for verification navigation */
.auth-container .btn-outline-secondary {
    border-color: #d0d7de;
    color: #656d76;
    background-color: #ffffff;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.auth-container .btn-outline-secondary:hover {
    background-color: #f6f8fa;
    border-color: #d0d7de;
    color: #24292f;
}

.auth-container .btn-outline-secondary:focus {
    box-shadow: 0 0 0 0.2rem rgba(36, 41, 47, 0.15);
    outline: none;
}

/* Verification success message */
.auth-container .verification-success {
    background-color: #d1e7dd;
    border-left: 3px solid #198754;
    padding: 1rem;
    border-radius: 0.375rem;
    margin: 1rem 0;
}


.auth-container .verification-success h6 {
    color: #0f5132;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.auth-container .verification-success p {
    color: #0f5132;
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Navigation links in password reset */
.auth-container .reset-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
    text-align: center;
}

.auth-container .reset-navigation a {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0.25rem;
}

.auth-container .reset-navigation a:hover {
    color: #0969da;
    text-decoration: none;
}

/* Override any blue text color for outline secondary buttons */
.auth-container .btn-outline-secondary {
    color: #656d76 !important;
    border-color: #d0d7de !important;
    background-color: #ffffff !important;
}

.auth-container .btn-outline-secondary:hover {
    color: #24292f !important;
    background-color: #f6f8fa !important;
    border-color: #d0d7de !important;
}

@media (max-width: 576px) {
    .auth-container .reset-navigation {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .auth-container .reset-navigation a {
        justify-content: center;
        width: 100%;
        max-width: 250px;
    }
    
}

/* Responsive Design - Mobile First */
@media (max-width: 767.98px) {
    /* Hide sidebar by default on mobile */
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
        z-index: 1055;
    }
    
    /* Show sidebar when toggled */
    .sidebar.show {
        transform: translateX(0);
    }
    
    /* Content takes full width on mobile */
    .content {
        margin-left: 0;
        padding: 1rem;
    }
    
    /* Overlay for mobile */
    .overlay {
        z-index: 1054;
    }
}



/* Sidebar Section Headers */
.sidebar .nav-link.text-muted {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
    cursor: pointer;
    pointer-events: auto;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
}

.sidebar .nav-link.text-muted:first-child {
    margin-top: 0;
}

.sidebar .nav-link.text-muted:hover {
    color: #495057 !important;
    background-color: #f8f9fa;
    border-radius: 4px;
}

/* Toggle Icon */
.sidebar .toggle-icon {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
    margin-left: auto;
}

.sidebar .nav-link[aria-expanded="false"] .toggle-icon {
    transform: rotate(-90deg);
}

/* Sidebar Submenu */
.sidebar .sidebar-submenu {
    overflow: hidden;
    transition: max-height 0.3s ease, margin-bottom 0.3s ease;
    max-height: 1000px;
    margin-bottom: 0.5rem;
}

.sidebar .sidebar-submenu.collapsed {
    max-height: 0;
    margin-bottom: 0;
}

/* Sidebar Subitems */
.sidebar .nav-link.ps-4 {
    font-size: 0.85rem;
    padding-left: 2.5rem !important;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
}

.sidebar .nav-link.ps-4:hover {
    border-left-color: #0969da;
    background-color: #f6f8fa;
}

.sidebar .nav-link.ps-4.active {
    border-left-color: #0969da;
    background-color: #e7f3ff;
    color: #0969da !important;
    font-weight: 500;
}

.sidebar .nav-link.ps-4 i {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Collapsed sidebar adjustments */
.sidebar.desktop-collapsed .nav-link.text-muted {
    display: none;
}

.sidebar.desktop-collapsed .sidebar-submenu {
    max-height: none !important;
    margin-bottom: 0;
}

.sidebar.desktop-collapsed .sidebar-submenu.collapsed {
    max-height: none !important;
}

.sidebar.desktop-collapsed .nav-link.ps-4 {
    padding-left: 0.5rem !important;
    text-align: center;
    border-left: none;
    margin-bottom: 0.25rem;
}

.sidebar.desktop-collapsed .nav-link.ps-4 span {
    display: none;
}

.sidebar.desktop-collapsed .nav-link.ps-4 i {
    font-size: 1.1rem;
    opacity: 1;
}

/* Dashboard Link Styles */
.card-footer a.text-decoration-none:hover {
    color: #24292f !important;
    text-decoration: underline !important;
}

.card-header a.text-decoration-none:hover {
    color: #24292f !important;
    text-decoration: underline !important;
}

.list-group-item a.text-decoration-none:hover {
    color: #24292f !important;
    text-decoration: underline !important;
}

/* Quick Actions Link Styles */
.card-body a.text-decoration-none:hover {
    color: #24292f !important;
    text-decoration: underline !important;
    transform: translateX(2px);
    transition: all 0.2s ease;
}

.card-body a.text-decoration-none {
    transition: all 0.2s ease;
}

/* Mini Link Styles for Account Cards */
.card-body a[style*="font-size: 0.75rem"]:hover {
    color: #24292f !important;
    text-decoration: underline !important;
    font-weight: 500;
    transition: all 0.15s ease;
}

.card-body a[style*="font-size: 0.75rem"] {
    transition: all 0.15s ease;
    cursor: pointer;
}

/* Create Account Link Styles */
a.fw-medium.text-decoration-none:hover {
    color: #495057 !important;
    text-decoration: underline !important;
    transform: translateX(2px);
    transition: all 0.2s ease;
}

a.fw-medium.text-decoration-none {
    transition: all 0.2s ease;
}

/* Submit Button as Link Style */
button.fw-medium.text-decoration-none:hover {
    color: #495057 !important;
    text-decoration: underline !important;
    transform: translateX(2px);
    transition: all 0.2s ease;
    cursor: pointer;
}

button.fw-medium.text-decoration-none {
    transition: all 0.2s ease;
    padding: 0;
    font-size: inherit;
}

/* Account Type Selection Cards */
.account-type-option {
    transition: all 0.2s ease;
    margin-bottom: 0;
}

.account-type-option:hover {
    border-color: #24292f !important;
    background-color: #f6f8fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.account-type-option:has(input:checked) {
    border-color: #24292f !important;
    background-color: #f6f8fa;
    box-shadow: 0 0 0 1px #24292f;
}

/* Custom Radio Button Styling */
.account-type-option .form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid #d0d7de;
    background-color: #ffffff;
    transition: all 0.2s ease;
    position: relative;
}

.account-type-option .form-check-input:checked {
    background-color: #ffffff;
    border-color: #24292f;
    background-image: none;
}

.account-type-option .form-check-input:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0.5rem;
    height: 0.5rem;
    background-color: #24292f;
    border-radius: 50%;
    opacity: 1;
    transition: all 0.2s ease;
}

.account-type-option .form-check-input:focus {
    border-color: #24292f;
    box-shadow: 0 0 0 0.15rem rgba(36, 41, 47, 0.15);
    outline: none;
}

.account-type-option .form-check-input:hover {
    border-color: #656d76;
    box-shadow: 0 0 0 0.1rem rgba(36, 41, 47, 0.1);
}

/* Enhanced visual feedback for selected state */
.account-type-option:has(input:checked) .bi {
    color: #24292f !important;
}

.account-type-option:has(input:checked) h6 {
    color: #24292f !important;
}

/* Fallback for browsers that don't support :has() */
.account-type-option.selected {
    border-color: #24292f !important;
    background-color: #f6f8fa;
    box-shadow: 0 0 0 1px #24292f;
}

.account-type-option.selected .bi {
    color: #24292f !important;
}

.account-type-option.selected h6 {
    color: #24292f !important;
}

/* Form Label Styles */
.form-label {
    font-weight: 600;
    color: #24292f;
    margin-bottom: 0.3rem;
}

/* Breadcrumb Styles */
.breadcrumb-container {
    width: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.breadcrumb-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.3), transparent);
}

.breadcrumb-nav {
    margin: 0;
    padding: 0;
}

.breadcrumb-custom {
    margin: 0 !important;
    margin-bottom: 0 !important;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border-radius: 0;
    font-size: 0.875rem;
    color: #495057;
    display: flex;
    align-items: center;
    min-height: 2.5rem;
}

.breadcrumb-custom .breadcrumb-item {
    display: inline-flex !important;
    align-items: center !important;
    position: relative;
}

.breadcrumb-custom .breadcrumb-item + .breadcrumb-item {
    padding-left: 0 !important;
}

.breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before {
    content: '';
    display: inline-block !important;
    width: 0;
    height: 0;
    border-left: 0.35rem solid #6c757d;
    border-top: 0.35rem solid transparent;
    border-bottom: 0.35rem solid transparent;
    margin: 0 0.75rem;
    opacity: 0.6;
    transition: all 0.2s ease;
    padding: 0 !important;
    float: none !important;
    vertical-align: middle !important;
}

.breadcrumb-link {
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
}

.breadcrumb-link:hover {
    color: #24292f;
    background-color: rgba(36, 41, 47, 0.08);
    text-decoration: none;
    transform: scale(1.02);
}

.breadcrumb-link:focus {
    outline: 2px solid rgba(0, 123, 255, 0.3);
    outline-offset: 2px;
}

.breadcrumb-current {
    color: #495057;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    background: rgba(108, 117, 125, 0.08);
    border-radius: 4px;
    border-left: 2px solid rgba(108, 117, 125, 0.3);
    position: relative;
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
}

.breadcrumb-custom .breadcrumb-item.active {
    color: inherit;
    display: flex !important;
    align-items: center !important;
}

/* Hover effect for breadcrumb container */
.breadcrumb-container:hover {
    border-color: #d0d7de;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* Responsive breadcrumb */
@media (max-width: 576px) {
    .breadcrumb-container {
        margin-bottom: 1rem;
    }
    
    .breadcrumb-custom {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        flex-wrap: wrap;
        min-height: auto;
    }
    
    .breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before {
        margin: 0 0.5rem;
        border-left-width: 0.3rem;
        border-top-width: 0.3rem;
        border-bottom-width: 0.3rem;
    }
    
    .breadcrumb-link,
    .breadcrumb-current {
        padding: 0.15rem 0.35rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .breadcrumb-custom {
        padding: 0.4rem 0.75rem;
    }
    
    .breadcrumb-link i {
        font-size: 0.75rem;
    }
    
    /* Stack breadcrumbs on very small screens if needed */
    .breadcrumb-custom .breadcrumb-item {
        margin-bottom: 0.2rem;
    }
}

/* Animation for breadcrumb appearance */
.breadcrumb-container {
    animation: breadcrumbSlideIn 0.3s ease-out;
}

@keyframes breadcrumbSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Desktop styles */
@media (min-width: 768px) {
    /* Default desktop sidebar */
    .sidebar {
        transform: translateX(0);
    }
    
    /* Collapsed state on desktop */
    .sidebar.desktop-collapsed {
        width: 70px;
        overflow: hidden;
    }
    
    /* Content adjustment for collapsed sidebar */
    .content.expanded {
        margin-left: 70px;
    }
}

/* Custom Checkbox Styles for Permissions */
.form-check {
    padding-left: 0;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    padding: 0.65rem 1rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.form-check:hover {
    background-color: #f6f8fa;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0;
    margin-right: 0.75rem;
    margin-left: 0;
    border: 2px solid #d0d7de;
    border-radius: 4px;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    flex-shrink: 0;
}

.form-check-input:hover {
    border-color: #8c959f;
    box-shadow: 0 0 0 2px rgba(140, 149, 159, 0.1);
}

.form-check-input:focus {
    border-color: #24292f;
    box-shadow: 0 0 0 3px rgba(36, 41, 47, 0.15);
    outline: none;
}

.form-check-input:checked {
    background-color: #24292f;
    border-color: #24292f;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}

.form-check-input:checked:hover {
    background-color: #1a1e22;
    border-color: #1a1e22;
}

.form-check-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-check-input:disabled:hover {
    border-color: #d0d7de;
    box-shadow: none;
}

.form-check-label {
    font-size: 0.9rem;
    color: #24292f;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
    line-height: 1.25rem;
    margin-bottom: 0;
}

.form-check-label:hover {
    color: #1a1e22;
}

.form-check-input:checked + .form-check-label {
    color: #24292f;
    font-weight: 600;
}

.form-check-input:disabled + .form-check-label {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Permission section styling */
.modal-body hr {
    border-color: #d0d7de;
    opacity: 0.5;
    margin: 1.25rem 0;
}

/* Permission label enhancements */
.form-label.fw-medium {
    color: #24292f;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.2px;
}

/* Add subtle animation on check */
@keyframes checkboxCheck {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.form-check-input:checked {
    animation: checkboxCheck 0.2s ease;
}

/* Account Switcher Styles */
#accountSwitcherDropdown {
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 6px 12px;
    transition: all 0.2s ease;
    background-color: rgba(255, 255, 255, 0.05);
    max-width: 250px;
}

#accountSwitcherDropdown:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

#accountSwitcherDropdown .bi-building {
    color: rgba(255, 255, 255, 0.8);
}

.navbar .dropdown-menu[aria-labelledby="accountSwitcherDropdown"] {
    min-width: 320px;
    max-height: 500px;
    overflow-y: auto;
}

.navbar .dropdown-menu[aria-labelledby="accountSwitcherDropdown"] .dropdown-item {
    white-space: normal;
    padding: 10px 16px;
}

.navbar .dropdown-menu[aria-labelledby="accountSwitcherDropdown"] .badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
}

/* Current Account Indicator in Sidebar */
.sidebar .current-account-indicator {
    background-color: rgba(0, 0, 0, 0.03);
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 1.5rem;
    transition: all 0.2s ease;
}

.sidebar .current-account-indicator:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: #d1d5da;
}

.sidebar .current-account-indicator .account-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #24292f;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.sidebar .current-account-indicator .account-role {
    font-size: 0.7rem;
    color: #586069;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.sidebar .current-account-indicator .account-icon {
    color: #586069;
    font-size: 1.1rem;
}

/* Account Switcher Badge in Account List */
.badge.bg-success {
    background-color: #2da44e !important;
    font-weight: 600;
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    letter-spacing: 0.3px;
}

/* Account Switch Button */
a[href*="switch_account"] {
    color: #0969da !important;
    font-weight: 600;
    transition: all 0.2s ease;
}

a[href*="switch_account"]:hover {
    color: #0550ae !important;
    text-decoration: underline !important;
    transform: translateX(2px);
}

/* ============================================================
   DOCUMENTS MODULE STYLES
   ============================================================ */

/* Document Cards */
.document-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #d0d7de;
}

.document-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Status Badges */
.status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-processing {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-completed {
    background-color: #d1fae5;
    color: #065f46;
}

.status-failed {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Document Type Badge */
.document-type-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 600;
    background-color: #e0e7ff;
    color: #3730a3;
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
    background-color: #f8fafc;
    cursor: pointer;
}

.upload-zone:hover {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

.upload-zone.dragover {
    border-color: #2563eb;
    background-color: #dbeafe;
    transform: scale(1.02);
}

.upload-zone .bi {
    font-size: 3rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.upload-zone:hover .bi {
    color: #3b82f6;
}

/* Upload Zone Compact - Minimalista */
.upload-zone-compact {
    border: 2px dashed #0969da;
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.2s ease;
    background-color: #ffffff;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 10px,
        #f6f8fa 10px,
        #f6f8fa 20px
    );
    cursor: pointer;
    box-shadow: 0 0 0 4px #f6f8fa inset;
}

.upload-zone-compact:hover {
    border-color: #0969da;
    background-color: #ddf4ff;
    background-image: none;
    box-shadow: 0 0 0 4px #ddf4ff inset;
    transform: translateY(-2px);
}

.upload-zone-compact.dragover {
    border-color: #0969da;
    border-width: 3px;
    background-color: #ddf4ff;
    background-image: none;
    box-shadow: 0 0 0 4px #ddf4ff inset, 0 4px 12px rgba(9, 105, 218, 0.2);
    transform: scale(1.02);
}

.upload-zone-compact.has-file {
    border-color: #1a7f37;
    border-style: solid;
    background-color: #dafbe1;
    background-image: none;
    box-shadow: 0 0 0 4px #dafbe1 inset;
}

.upload-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.upload-zone-content .bi {
    font-size: 2.5rem;
    color: #0969da;
    margin-bottom: 0.5rem;
}

.upload-zone-compact:hover .upload-zone-content .bi {
    color: #0550ae;
    transform: scale(1.1);
}

.upload-zone-content p {
    margin: 0;
    font-size: 0.875rem;
    color: #24292f;
    font-weight: 500;
}

.upload-zone-link {
    color: #0969da;
    text-decoration: underline;
    cursor: pointer;
    margin: 0;
    font-weight: 600;
}

.upload-zone-link:hover {
    color: #0550ae;
    text-decoration: none;
}

.upload-file-info {
    margin-top: 1rem;
    padding: 0.75rem;
    background-color: #ffffff;
    border-radius: 6px;
    border: 1px solid #d0d7de;
    display: none;
}

.upload-zone-compact.has-file .upload-file-info {
    display: block;
}

.upload-zone-compact.has-file .upload-zone-content {
    display: none;
}

/* Upload Preview */
.upload-preview-container {
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 1rem;
    background-color: #f6f8fa;
    text-align: center;
}

.upload-preview-image {
    max-width: 100%;
    max-height: 300px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.upload-preview-pdf {
    padding: 2rem;
}

.upload-preview-pdf .bi {
    font-size: 3rem;
}


/* Document Stats Cards */
.document-stats-card {
    border-left: 3px solid;
    transition: all 0.2s ease;
}

.document-stats-card:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.document-stats-card.stats-total {
    border-left-color: #6366f1;
}

.document-stats-card.stats-completed {
    border-left-color: #10b981;
}

.document-stats-card.stats-processing {
    border-left-color: #3b82f6;
}

.document-stats-card.stats-failed {
    border-left-color: #ef4444;
}

/* Document Preview */
.document-preview {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    padding: 1rem;
    background-color: #ffffff;
}

.document-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Transaction Table */
.transaction-table {
    font-size: 0.9rem;
}

.transaction-table th {
    background-color: #f6f8fa;
    border-bottom: 2px solid #d0d7de;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-size: 0.75rem;
    color: #586069;
}

.transaction-table td {
    vertical-align: middle;
    padding: 0.75rem 0.5rem;
}

.transaction-amount-debit {
    color: #dc2626;
    font-weight: 600;
}

.transaction-amount-credit {
    color: #16a34a;
    font-weight: 600;
}

/* Filter Form */
.filter-form {
    background-color: #f6f8fa;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.filter-form .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #24292f;
    margin-bottom: 0.5rem;
}

.filter-form .btn-primary {
    background-color: #24292f;
    border-color: #24292f;
}

.filter-form .btn-primary:hover {
    background-color: #1c2128;
    border-color: #1c2128;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6e7781;
}

.empty-state .bi {
    font-size: 4rem;
    color: #d0d7de;
    margin-bottom: 1rem;
}

.empty-state h5 {
    color: #24292f;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #6e7781;
    font-size: 0.95rem;
}

/* OCR Provider Selection Cards */
.ocr-provider-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #d0d7de;
    border-radius: 0.5rem;
}

.ocr-provider-card:hover {
    border-color: #0969da;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transform: translateY(-2px);
}

.ocr-provider-card input[type="radio"]:checked ~ label {
    font-weight: 600;
}

.ocr-provider-card:has(input[type="radio"]:checked) {
    border-color: #0969da;
    background-color: #ddf4ff;
}

/* Document Upload Utilities */
.btn-primary-dark {
    background-color: #24292f;
    border-color: #24292f;
    color: #ffffff;
}

.btn-primary-dark:hover {
    background-color: #1c2128;
    border-color: #1c2128;
    color: #ffffff;
}

.btn-secondary-outline {
    border: 1px solid #d0d7de;
    color: #656d76;
    background-color: transparent;
}

.btn-secondary-outline:hover {
    background-color: #f6f8fa;
    border-color: #656d76;
    color: #24292f;
}

.alert-danger-border {
    background-color: #f8d7da;
    border-left: 3px solid #dc3545;
    border-radius: 0.375rem;
}

.alert-info-border {
    background-color: #d1ecf1;
    border-left: 3px solid #0dcaf0;
    border-radius: 0.375rem;
}

.card-header-standard {
    background-color: #ffffff;
    border-bottom: 1px solid #d0d7de;
    font-weight: 600;
    color: #24292f;
}

.card-header-title {
    font-size: 1rem;
    font-weight: 600;
    color: #24292f;
}

.file-name-display {
    font-weight: 600;
    color: #0969da;
    margin-top: 0.5rem;
}

.preview-image {
    max-height: 300px;
    border: 1px solid #d0d7de;
    border-radius: 0.375rem;
}

.upload-icon {
    font-size: 3rem;
    color: #656d76;
    margin-bottom: 1rem;
}

.upload-zone-title {
    color: #24292f;
    font-weight: 600;
}

.upload-zone-text {
    color: #656d76;
}

.cursor-pointer {
    cursor: pointer;
}

.pdf-preview-icon {
    font-size: 5rem;
}

.sticky-sidebar {
    position: sticky;
    top: 1rem;
}

/* Document Detail Styles */
.document-card {
    border: 1px solid #d0d7de;
    border-radius: 0.375rem;
    box-shadow: 0 1px 3px rgba(27, 31, 35, 0.12);
}

.document-card .card-header {
    background-color: #ffffff;
    border-bottom: 1px solid #d0d7de;
}

.document-card .card-footer {
    background-color: #f6f8fa;
    border-top: 1px solid #d0d7de;
}

.card-footer-divider {
    border-right: 1px solid #d0d7de;
}

.document-preview-image {
    max-height: 500px;
    border: 1px solid #d0d7de;
}

.document-link-view {
    color: #24292f;
    text-decoration: none;
}

.document-link-view:hover {
    color: #0969da;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-badge.status-pending {
    background-color: #fff8e1;
    color: #f57c00;
    border: 1px solid #ffc107;
}

.status-badge.status-processing {
    background-color: #e3f2fd;
    color: #1976d2;
    border: 1px solid #2196f3;
}

.status-badge.status-completed {
    background-color: #e8f5e9;
    color: #388e3c;
    border: 1px solid #4caf50;
}

.status-badge.status-failed {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #f44336;
}

.progress-bar-text {
    font-weight: 600;
}

.raw-text-display {
    white-space: pre-wrap;
    font-size: 0.85rem;
    max-height: 400px;
    overflow-y: auto;
    background-color: #f6f8fa;
    padding: 1rem;
    border-radius: 0.375rem;
    border: 1px solid #d0d7de;
    color: #24292f;
}

.json-display {
    white-space: pre-wrap;
    font-size: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
    background-color: #24292f;
    color: #ffffff;
    padding: 1rem;
    border-radius: 0.375rem;
}

.badge-developer {
    background-color: #656d76;
    color: #ffffff;
}

.progress-high {
    height: 25px;
    background-color: #f6f8fa;
}

.strong-dark {
    color: #24292f;
    font-weight: 600;
}

.btn-warning-custom {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #664d03;
}

.btn-warning-custom:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    color: #664d03;
}

/* ===============================
   Document Detail Tables
   =============================== */

.table-document {
    border: 1px solid #d0d7de;
    border-radius: 0.375rem;
    overflow: hidden;
    margin-bottom: 0;
}

.table-document thead {
    background-color: #f6f8fa;
    border-bottom: 2px solid #d0d7de;
}

.table-document thead th {
    color: #24292f;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.75rem;
    border-bottom: 2px solid #d0d7de;
}

.table-document tbody tr {
    border-bottom: 1px solid #d0d7de;
}

.table-document tbody tr:last-child {
    border-bottom: none;
}

.table-document tbody td {
    color: #24292f;
    padding: 0.75rem;
    vertical-align: middle;
}

.table-document tbody tr:hover {
    background-color: #f6f8fa;
}

.table-document-summary {
    border: 1px solid #d0d7de;
    border-radius: 0.375rem;
    overflow: hidden;
    margin-bottom: 0;
}

.table-document-summary td {
    padding: 0.5rem 0.75rem;
    color: #24292f;
    border-bottom: 1px solid #d0d7de;
}

.table-document-summary tr:last-child td {
    border-bottom: none;
}

.table-document-summary .table-row-total {
    background-color: #f6f8fa;
    font-weight: 600;
}

.table-document-summary .table-row-total td {
    padding: 0.75rem;
    font-size: 1.1rem;
}

/* ============================================================
   MANAGEMENT MODULE STYLES
   ============================================================ */

/* Content Wrapper */
.content-wrapper {
    padding: 1.5rem;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #d0d7de;
}

.page-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #24292f;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-header h2 i {
    color: #656d76;
}

/* Management Table */
.management-table {
    font-size: 0.9rem;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    overflow: hidden;
}

.management-table thead {
    background-color: #f6f8fa;
}

.management-table thead th {
    color: #24292f;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.75rem;
    border-bottom: 2px solid #d0d7de;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.management-table tbody tr {
    border-bottom: 1px solid #d0d7de;
    transition: background-color 0.15s ease;
}

.management-table tbody tr:last-child {
    border-bottom: none;
}

.management-table tbody tr:hover {
    background-color: #f6f8fa;
}

.management-table tbody td {
    padding: 0.75rem;
    vertical-align: middle;
}

/* Color Badge */
.color-badge {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Code Badge */
.code-badge {
    background-color: #f6f8fa;
    color: #24292f;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    border: 1px solid #d0d7de;
}

/* Currency Badge */
.currency-badge {
    background-color: #e0e7ff;
    color: #3730a3;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
}

/* Balance Card */
.balance-card {
    background: linear-gradient(135deg, #f6f8fa 0%, #ffffff 100%);
    border: 1px solid #d0d7de;
    border-radius: 8px;
    padding: 1.25rem;
    transition: all 0.2s ease;
}

.balance-card:hover {
    border-color: #24292f;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.balance-label {
    font-size: 0.85rem;
    color: #656d76;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.balance-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #24292f;
}

/* ============================================================
   ACCOUNT SELECTION STYLES
   ============================================================ */

/* Account Selection Page Container */
.account-selection-body {
    background-color: #f6f8fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.account-selection-card {
    background: #ffffff;
    border: 1px solid #d0d7de;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    max-width: 900px;
    width: 100%;
    padding: 2.5rem 2rem;
}

/* Account Items */
.account-item {
    border: 1px solid #d0d7de;
    border-radius: 0.5rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    background: #ffffff;
}

.account-item:hover {
    border-color: #24292f;
    box-shadow: 0 4px 12px rgba(36, 41, 47, 0.15);
    transform: translateY(-1px);
}

.account-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #f6f8fa;
    border: 2px solid #d0d7de;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #24292f;
    font-size: 1.4rem;
}

/* Role Badges */
.role-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
    font-weight: 600;
    text-transform: uppercase;
}

.role-owner {
    background-color: #fff8c5;
    color: #9a6700;
    border: 1px solid #d4a72c;
}

.role-admin {
    background-color: #ddf4ff;
    color: #0969da;
    border: 1px solid #54aeff;
}

.role-member {
    background-color: #f6f8fa;
    color: #656d76;
    border: 1px solid #d0d7de;
}

.role-viewer {
    background-color: #f6f8fa;
    color: #656d76;
    border: 1px solid #d0d7de;
}

/* Select Button - Ghost Style */
.btn-select {
    background-color: transparent;
    border: 1px solid #d0d7de;
    color: #24292f;
    padding: 0.4rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.btn-select:hover {
    background-color: #f6f8fa;
    border-color: #24292f;
    color: #24292f;
}

/* Page Title and Subtitle */
.page-title {
    color: #24292f;
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: #656d76;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* Account Name and Details */
.account-name {
    color: #24292f;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.account-details {
    color: #656d76;
    font-size: 0.8rem;
}

/* Footer Links */
.footer-links {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #d0d7de;
    text-align: center;
}

.footer-links a {
    color: #24292f;
    font-size: 0.85rem;
    text-decoration: none;
    margin: 0 0.75rem;
}

.footer-links a:hover {
    color: #656d76;
    text-decoration: underline;
}

.balance-value {
    font-family: 'Courier New', monospace;
}

/* Form Card */
.form-card {
    background-color: #ffffff;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-section-title {
    color: #24292f;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #d0d7de;
}

.form-section-title:first-child {
    margin-top: 0;
}

/* Form Actions */
.form-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #d0d7de;
    display: flex;
    gap: 0.75rem;
}

/* Delete Confirmation */
.delete-confirmation {
    background-color: #ffffff;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.detail-box {
    background-color: #f6f8fa;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.detail-item {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-item:last-child {
    margin-bottom: 0;
}

/* Breadcrumb Override for Management */
.breadcrumb {
    background-color: transparent;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.breadcrumb-item a {
    color: #656d76;
    text-decoration: none;
    transition: color 0.15s ease;
}

.breadcrumb-item a:hover {
    color: #24292f;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #24292f;
    font-weight: 600;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: #656d76;
}

/* Empty State Override for Management */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #656d76;
}

.empty-state i {
    font-size: 4rem;
    color: #d0d7de;
    margin-bottom: 1rem;
}

.empty-state h4 {
    color: #24292f;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #656d76;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 1rem;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .page-header h2 {
        font-size: 1.25rem;
    }
    
    .management-table {
        font-size: 0.85rem;
    }
    
    .form-card {
        padding: 1.5rem;
    }
    
    .delete-confirmation {
        padding: 1.5rem;
    }
}

/* ============================================================
   GITHUB-STYLE PAGINATION
   ============================================================ */

/* Container */
.pagination-github {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #d0d7de;
}

.pagination-github-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Previous/Next Links */
.pagination-github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    color: #656d76;
    text-decoration: none;
    background-color: transparent;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.pagination-github-link:hover {
    color: #24292f;
    text-decoration: none;
}

.pagination-github-link i {
    font-size: 0.875rem;
}

/* Disabled State */
.pagination-github-disabled {
    color: #d0d7de;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination-github-disabled:hover {
    color: #d0d7de;
}

/* Page Numbers Container */
.pagination-github-numbers {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

/* Page Number Links */
.pagination-github-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    color: #656d76;
    text-decoration: none;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.pagination-github-number:hover {
    background-color: #f6f8fa;
    border-color: #d0d7de;
    text-decoration: none;
    color: #24292f;
}

.pagination-github-number:focus {
    outline: 2px solid #656d76;
    outline-offset: 2px;
}

/* Active Page Number */
.pagination-github-active {
    color: #24292f;
    background-color: #ffffff;
    border-color: #d0d7de;
    font-weight: 600;
}

.pagination-github-active:hover {
    background-color: #ffffff;
    border-color: #d0d7de;
    color: #24292f;
}

/* Ellipsis */
.pagination-github-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
    color: #8c959f;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 576px) {
    .pagination-github-container {
        gap: 0.375rem;
    }
    
    .pagination-github-link {
        padding: 0.25rem 0.5rem;
        font-size: 0.8125rem;
    }
    
    .pagination-github-number {
        min-width: 1.75rem;
        padding: 0.25rem 0.375rem;
        font-size: 0.8125rem;
    }
    
    .pagination-github-ellipsis {
        min-width: 1.75rem;
        padding: 0.25rem 0.375rem;
        font-size: 0.8125rem;
    }
}

@media (max-width: 400px) {
    .pagination-github-link {
        padding: 0.25rem 0.375rem;
        font-size: 0.75rem;
    }
    
    .pagination-github-link i {
        font-size: 0.75rem;
    }
    
    .pagination-github-number {
        min-width: 1.5rem;
        padding: 0.25rem 0.25rem;
        font-size: 0.75rem;
    }
}

/* ============================================================
   FILTER BUTTON LINKS (MINIMAL STYLE)
   ============================================================ */

.btn-filter-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    color: #656d76;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}

.btn-filter-link:hover {
    color: #24292f;
    background-color: #f6f8fa;
    text-decoration: none;
}

.btn-filter-link:focus {
    outline: 2px solid #656d76;
    outline-offset: 2px;
}

.btn-filter-link:active {
    background-color: #e1e4e8;
}

.btn-filter-link i {
    font-size: 1rem;
}

/* ============================================================
   INVOICE DOCUMENT STYLES - ADDITIONAL CHARGES
   ============================================================ */

.invoice-additional-charges {
    background-color: #f6f8fa;
    border-left: 3px solid #0969da;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0.375rem;
}

.invoice-additional-charges h6 {
    color: #24292f;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.invoice-additional-charges h6 i {
    color: #0969da;
    font-size: 1.1rem;
}

.invoice-additional-charges-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.invoice-additional-charges-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e1e4e8;
    font-size: 0.9rem;
}

.invoice-additional-charges-item:last-child {
    border-bottom: none;
}

.invoice-additional-charges-label {
    color: #656d76;
    font-weight: 500;
}

.invoice-additional-charges-amount {
    color: #24292f;
    font-weight: 600;
}

/* Table row styles for invoice totals */
.table-row-total td {
    padding: 0.75rem;
    font-weight: 600;
    color: #24292f;
    border-top: 2px solid #d0d7de;
}

.table-row-total td:last-child {
    text-align: right;
}

.table-summary-info td {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    color: #656d76;
}

.table-summary-info td:last-child {
    text-align: right;
    font-weight: 500;
    color: #24292f;
}

/* ============================================================
   EDITABLE FIELD STYLES
   ============================================================ */

/* Editable field cursor */
.editable-field {
    cursor: pointer;
}

/* Edit icon styles */
.editable-field .bi-pencil {
    font-size: 0.7em;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.editable-field:hover .bi-pencil {
    opacity: 1;
}

/* Edit icon in badge (currency) - white with better contrast */
.badge .bi-pencil {
    font-size: 0.75em;
    color: #ffffff;
    font-weight: 600;
    opacity: 0.9;
}

.badge:hover .bi-pencil {
    opacity: 1;
}

/* Document preview image */
.document-preview-image {
    max-height: 400px;
}

/* PDF icon large */
.pdf-icon-large {
    font-size: 4rem;
}

/* Progress bar heights */
.progress-thin {
    height: 4px;
}

.progress-medium {
    height: 8px;
}

/* Notification alert fixed position */
.notification-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
}

/* Date input inline editing */
.date-input-inline {
    width: 200px;
    display: inline-block;
}

/* Disable pointer events */
.pointer-events-none {
    pointer-events: none;
}

/* Upload Progress Section */
#upload-progress-section {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

#upload-progress-section h5 {
    color: #24292f;
    font-weight: 600;
}

#overall-progress-bar {
    transition: width 0.3s ease;
}

#file-progress-list .list-group-item {
    border: 1px solid #dee2e6;
    margin-bottom: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

#file-progress-list .list-group-item-success {
    background-color: #d1e7dd;
    border-color: #a3cfbb;
}

#file-progress-list .list-group-item-danger {
    background-color: #f8d7da;
    border-color: #f1aeb5;
}

#file-progress-list .progress {
    height: 4px;
    background-color: rgba(0, 0, 0, 0.1);
}

#file-progress-list .progress-bar {
    background-color: #0d6efd;
}

#file-progress-list .status-icon {
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animation for smooth transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#upload-progress-section {
    animation: fadeIn 0.3s ease;
}

/* Document Type Change Radio Cards */
.radio-card-type {
    transition: all 0.2s ease;
    cursor: pointer;
}

.radio-card-type:hover {
    border-color: #000 !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075) !important;
}

.btn-check:checked + .radio-card-type {
    border-color: #000 !important;
    box-shadow: 0 0.125rem 0.5rem rgba(0,0,0,0.15) !important;
}

.radio-card-type .card-icon {
    font-size: 1.5rem;
}

.radio-card-type .card-title {
    font-size: 1.1rem;
    font-weight: bold;
}

.radio-card-type .card-description {
    font-size: 0.98rem;
}




