html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.row {
    font-size: 1.1rem;
}
/* Button Styling - Glassmorphism */
.btn-3rd {
    background: #414141;
    color: #fff;
    padding: 5px;
    border-radius: 10px;
    text-decoration: none;
}

.btn {
    position: relative;
    /*padding: 0.6rem 1.5rem;*/
    font-weight: 600;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    border-radius: 12px;
    border: 1px solid transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: background-color 0.2s;
    overflow: hidden;
    box-shadow: none;
    z-index: 1;
    color: black;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scroll for tables */
    content-visibility: auto;
}

.btn-function {
    display: flex;
}
/* Shine effect */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.85), rgba(37, 99, 235, 0.85));
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.unifiedPageHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 24px 28px;
    min-height: 96px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    background-image:
        radial-gradient(800px circle at 20% 20%, rgba(255,255,255,0.10), transparent 40%),
        linear-gradient(135deg, #0B1B3A 0%, #0B3A6A 45%, #0A4D8C 100%);
    color: #fff;
    margin-bottom: 16px;
}

.unifiedPageHeader__text {
    min-width: 0;
}

.unifiedPageHeader__subtitle {
    margin: 0 0 6px 0;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.70);
}

.unifiedPageHeader__title {
    margin: 0;
    font-size: 28px;
    line-height: 1.18;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.unifiedPageHeader__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

body.has-unified-header .app-main-body > .container-fluid > h1.h3,
body.has-unified-header .app-main-body > .container > h1.h3,
body.has-unified-header .app-main-body > h1.h3,
body.has-unified-header .app-main-body > .container-fluid > .d-sm-flex > h1.h3,
body.has-unified-header .app-main-body > .container-fluid > .d-sm-flex > div > h1.h3 {
    display: none;
}

@media (max-width: 640px) {
    .unifiedPageHeader {
        padding: 16px;
        min-height: 80px;
        flex-wrap: wrap;
    }

    .unifiedPageHeader__title {
        font-size: 22px;
    }

    .unifiedPageHeader__subtitle {
        font-size: 11px;
    }
}

.btn-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.85), rgba(22, 163, 74, 0.85));
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.85), rgba(220, 38, 38, 0.85));
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.85), rgba(217, 119, 6, 0.85));
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-info {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.85), rgba(8, 145, 178, 0.85));
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(100, 116, 139, 0.85), rgba(71, 85, 105, 0.85));
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-sm {
    /*padding: 0.4rem 1rem;*/
    font-size: 0.85rem;
    border-radius: 12px;
    color: black;
}

/* Grid/Table/Card Styling - Performance Optimized (Flat) */
.card, .table-responsive, .table-container {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid #e2e8f0;
    border-radius: 12px !important; /* Slightly less rounded */
    box-shadow: none; /* Kill shadow */
    overflow: hidden;
    transition: none; /* Remove transition */
    position: relative;
}

    /* Top gradient line effect for cards */
    .card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.4s ease;
        z-index: 1;
    }

    .card:hover::before {
        transform: scaleX(1);
    }

    .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.5);
        border-color: rgba(255, 255, 255, 0.8);
    }

.table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

    .table thead th {
        background: rgba(255, 255, 255, 0.5); /* Glassy header */
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        color: #334155;
        font-weight: 700;
        text-transform: uppercase;
        font-size: 0.78rem;
        letter-spacing: 0.05em;
        padding: 1.2rem 1rem;
        vertical-align: middle;
        backdrop-filter: blur(5px);
    }

        /* First header rounded corners */
        .table thead th:first-child {
            border-top-left-radius: 0.5rem;
        }

        .table thead th:last-child {
            border-top-right-radius: 0.5rem;
        }

    .table tbody td {
        padding: 1.2rem 1rem;
        vertical-align: middle;
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
        color: #475569;
        font-size: 0.9rem;
    }

/* Row Hover Effect - Enhanced */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.3);
}

.table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(4px);
    transform: scale(1.002);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    z-index: 10;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Smooth Scroll & Performance */
html {
    position: relative;
    min-height: 100%;
    /* scroll-behavior: smooth; REMOVED - Can cause jank on some mobile browsers when mixed with other effects */
    -webkit-tap-highlight-color: transparent; /* Remove blue highlight on tap */
}

/* Optimize painting and layout */
body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #f5f7fb;
    color: #0f172a;
    -webkit-font-smoothing: antialiased;
    /* text-rendering: optimizeLegibility; REMOVED - Performance hit on low-end devices */
    touch-action: manipulation; /* Improve touch response */
}

/* Remove universal transition which causes jank */
/* Specific transitions are already defined on components */

/* Global Shadow Optimization for Performance */
/* *, *::before, *::after { box-shadow: none !important; } REMOVED - Too aggressive */

/* Input Styling - Enhanced & Pop */
.form-control, .form-select {
    border-radius: 0.8rem;
    border: 1px solid #e2e8f0;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #334155;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease-in-out;
}

    .form-control:focus, .form-select:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
        background-color: #ffffff;
        transform: translateY(-1px);
    }

    .form-control::placeholder {
        color: #94a3b8;
        font-weight: 400;
    }

.input-group-text {
    border-radius: 0.8rem;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    color: #64748b;
}

/* Fix input groups with rounded corners */
.input-group .form-control:not(:first-child),
.input-group .form-select:not(:first-child),
.input-group .input-group-text:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group .form-control:not(:last-child),
.input-group .form-select:not(:last-child),
.input-group .input-group-text:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.app-shell {
    display: flex;
    min-height: 100vh;
    background: radial-gradient(circle at top left, #e0f2fe 0, #f5f7fb 40%, #f9fafb 100%);
}

/* Auto-expand Sidebar on Hover (Desktop) - Ultra Smooth */
@media (min-width: 992px) {
    /* Base collapsed state - Only icons visible */
    body:not(.sidebar-open) .app-sidebar {
        width: 90px;
        padding: 1.5rem 0.75rem;
        /* Custom spring-like bezier for elasticity */
        transition: width 0.3s cubic-bezier(0.2, 0, 0, 1);
        z-index: 100;
        contain: layout paint;
        /* Ensure sub-pixel rendering for smoothness */
        transform: translateZ(0);
        will-change: width;
    }

    /* Fixed container for inner content to prevent reflow during width transition */
    .app-sidebar-inner-content {
        width: 260px; /* Fixed width slightly smaller than expanded sidebar */
        overflow: hidden;
        white-space: nowrap;
    }

        /* Hide text in collapsed state */
        body:not(.sidebar-open) .app-sidebar .app-brand-title,
        body:not(.sidebar-open) .app-sidebar .app-brand-subtitle,
        body:not(.sidebar-open) .app-sidebar .app-menu-text,
        body:not(.sidebar-open) .app-sidebar .app-sidebar-footer-label,
        body:not(.sidebar-open) .app-sidebar .bi-chevron-down {
            opacity: 0;
            visibility: hidden;
            /* width: 0;  REMOVED to prevent reflow */
            /* height: 0; REMOVED to prevent reflow */
            /* overflow: hidden; REMOVED */
            /* white-space: nowrap; Kept in parent */
            transform: translateX(-10px); /* Slight slide out */
            transition: opacity 0.15s ease-out, transform 0.15s ease-out;
            position: absolute; /* Take out of flow to prevent layout shift */
            pointer-events: none;
        }

        /* Center icons in collapsed state */
        body:not(.sidebar-open) .app-sidebar .app-menu-section,
        body:not(.sidebar-open) .app-sidebar .app-menu-item {
            justify-content: center;
            padding-left: 0;
            padding-right: 0;
            margin-left: 0;
            transition: padding 0.3s cubic-bezier(0.2, 0, 0, 1);
        }

        body:not(.sidebar-open) .app-sidebar .app-menu-icon {
            margin-right: 0;
            width: 44px; /* Slightly larger in collapsed for easier click */
            height: 44px;
            font-size: 1.25rem;
            transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
        }

        /* Expand on hover */
        body:not(.sidebar-open) .app-sidebar:hover {
            width: 280px;
            padding: 1.5rem 1rem;
            background: #ffffff;
            box-shadow: 15px 0 40px rgba(0, 0, 0, 0.05);
            transition-delay: 0.05s; /* Optimized delay prevents flicker */
        }

            /* Show text on hover */
            body:not(.sidebar-open) .app-sidebar:hover .app-brand-title,
            body:not(.sidebar-open) .app-sidebar:hover .app-brand-subtitle,
            body:not(.sidebar-open) .app-sidebar:hover .app-menu-text,
            body:not(.sidebar-open) .app-sidebar:hover .app-sidebar-footer-label,
            body:not(.sidebar-open) .app-sidebar:hover .bi-chevron-down {
                opacity: 1;
                visibility: visible;
                /* width: auto; REMOVED */
                /* height: auto; REMOVED */
                transform: translateX(0);
                /* Staggered fade in for content */
                transition: opacity 0.3s ease-out 0.1s, transform 0.3s cubic-bezier(0.2, 0, 0, 1) 0.1s;
                position: static; /* Restore flow */
                pointer-events: auto;
            }

            /* Restore layout on hover */
            body:not(.sidebar-open) .app-sidebar:hover .app-menu-section,
            body:not(.sidebar-open) .app-sidebar:hover .app-menu-item {
                justify-content: flex-start;
                padding-left: 1rem;
                padding-right: 1rem;
            }

            body:not(.sidebar-open) .app-sidebar:hover .app-menu-item {
                margin-left: 0.5rem; /* Restore indentation */
            }

            body:not(.sidebar-open) .app-sidebar:hover .app-menu-icon {
                margin-right: 1rem;
                width: 28px; /* Restore size */
                height: 28px;
                font-size: 1rem;
            }

            body:not(.sidebar-open) .app-sidebar:hover .app-menu-section .app-menu-icon {
                width: 36px;
                height: 36px;
                font-size: 1.2rem;
            }
}

/* Glassmorphism Sidebar - Light Theme - PERFORMANCE OPTIMIZED */
.app-sidebar {
    width: 280px;
    background: #ffffff; /* Solid white */
    backdrop-filter: none; /* Removed blur */
    -webkit-backdrop-filter: none;
    border-right: 1px solid #e2e8f0;
    color: #1e293b;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: none; /* Removed shadow */
    z-index: 20;
    transition: width 0.2s linear; /* Faster, linear transition */
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    will-change: width; /* Optimize for width changes if they happen */
}

    /* Hide scrollbar Webkit */
    .app-sidebar::-webkit-scrollbar {
        display: none;
    }

.app-brand {
    display: flex;
    align-items: center;
    justify-content: center; /* Center content horizontally */
    padding: 0 0.5rem;
    margin-bottom: 1rem;
    position: relative;
    flex-direction: column; /* Stack logo and text vertically */
    text-align: center; /* Center text alignment */
}

.app-brand-logo {
    width: 56px; /* Slightly larger logo */
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
    margin-bottom: 0.5rem; /* Add spacing below logo */
}

.app-brand-text-group {
    margin-left: 0; /* Remove left margin */
    transition: opacity 0.3s;
}

.app-brand-title {
    font-weight: 800;
    font-size: 1.15rem; /* Adjust font size */
    letter-spacing: 0.5px;
    background: linear-gradient(to right, #0f172a, #475569); /* Dark gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.app-brand-subtitle {
    font-size: 0.75rem;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

/* Menu Items */
.app-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Parent Menu Item (Section) - Styled to be Distinct */
.app-menu-section {
    display: flex;
    align-items: center;
    padding: 0.9rem 1rem;
    color: #1e293b; /* Darker text */
    font-weight: 700; /* Bolder font */
    font-size: 1rem; /* Larger font size */
    text-transform: none;
    letter-spacing: 0.3px;
    cursor: pointer;
    border-radius: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.4); /* Slight background to distinguish */
    margin-bottom: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.5); /* Subtle border */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

    .app-menu-section:hover {
        background: rgba(255, 255, 255, 0.6);
        color: #0f172a;
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    }

    .app-menu-section .app-menu-icon {
        width: 30px;
        height: 30px;
        background: rgba(0, 0, 0, 0.04);
        color: #475569;
        font-size: 1.1rem;
        box-shadow: none;
        margin-right: 0.8rem;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .app-menu-section:hover .app-menu-icon {
        background: rgba(0, 0, 0, 0.08);
        color: #0f172a;
        transform: scale(1.05);
    }

/* Child Menu Items - Indented and Smaller */
.app-menu-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #475569; /* Slightly lighter text */
    text-decoration: none;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-bottom: 0.2rem;
    margin-left: 0.5rem; /* Indentation */
    font-size: 0.9rem;
    border: 1px solid transparent;
}

    .app-menu-item:hover {
        background: rgba(255, 255, 255, 0.5);
        color: #0f172a;
        transform: translateX(4px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
        border-color: rgba(255, 255, 255, 0.6);
    }

    .app-menu-item.active {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
        border: 1px solid rgba(59, 130, 246, 0.2);
        color: #2563eb;
        backdrop-filter: blur(4px);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
    }

        .app-menu-item.active::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 3px;
            background: #3b82f6;
            box-shadow: 0 0 8px #3b82f6;
            border-top-right-radius: 4px;
            border-bottom-right-radius: 4px;
        }

.app-menu-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-right: 0.8rem;
    transition: all 0.3s ease;
    color: #64748b;
    flex-shrink: 0;
}

.app-menu-item:hover .app-menu-icon {
    background: rgba(0, 0, 0, 0.08);
    color: #0f172a;
    transform: scale(1.1);
}

.app-menu-item.active .app-menu-icon {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.app-menu-text {
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

/* Sidebar Footer */
.app-sidebar-footer {
    margin-top: auto;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s;
}

    .app-sidebar-footer:hover {
        background: rgba(0, 0, 0, 0.05);
    }

.app-sidebar-footer-label {
    font-size: 0.85rem;
    color: #475569;
    font-weight: 600;
    background: transparent;
    padding: 0;
}

/* Collapsed State Adjustments */
body.sidebar-collapsed .app-sidebar-footer {
    justify-content: center;
    background: transparent;
    border: none;
}

body.sidebar-collapsed .app-menu-item {
    justify-content: center;
    padding: 0.85rem;
}

body.sidebar-collapsed .app-menu-icon {
    margin-right: 0;
}

/* Remove gradient backgrounds from mobile to keep consistency if needed, 
   but mobile.css overrides this usually. */

.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.app-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 2rem 1rem;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 15;
}

.app-topbar .btn.btn-link {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--gray-500);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.app-topbar .btn.btn-link:hover {
    border-color: var(--blue-400);
    color: var(--blue-600);
    background: var(--blue-50);
}

.app-topbar-left {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.app-page-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    display: none;
}

.app-page-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
}

.app-topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.app-branch-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background-color: #f3f4ff;
    border: 1px solid #e5e7eb;
    font-size: 0.8rem;
}

.app-branch-label {
    color: #6b7280;
}

.app-branch-value {
    font-weight: 600;
    color: #111827;
}

.app-user {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.25rem 0.4rem;
    border-radius: 999px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
}

.app-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.app-user-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.app-user-name {
    font-size: 0.85rem;
    font-weight: 600;
}

.app-user-role {
    font-size: 0.78rem;
    color: #6b7280;
}

.app-user-action {
    font-size: 0.78rem;
    color: #ef4444;
    text-decoration: none;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    border: 1px solid transparent;
}

    .app-user-action:hover {
        background-color: #fee2e2;
        border-color: #fecaca;
    }

.app-content {
    flex: 1;
    /*padding: 1.25rem 2rem 1.5rem;*/
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /*margin-left: 1rem;*/
}

.app-main-body {
    flex: 1;
}

.app-footer {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.8rem;
    color: #9ca3af;
}

    .app-footer a {
        color: #6366f1;
        text-decoration: none;
    }

        .app-footer a:hover {
            text-decoration: underline;
        }

.page-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

@media (max-width: 767.98px) {
    .page-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .page-header-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

.page-header-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.page-title-main {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
}

.page-title-sub {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
}

.page-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.overview-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 1.2rem;
}

.overview-card {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 12px;
    padding: 1.2rem;
    box-shadow: none;
    border: 1px solid #e2e8f0;
    transition: none;
}

    .overview-card:hover {
        transform: none;
        box-shadow: none;
        border-color: #cbd5e1;
    }

.overview-card-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    margin-bottom: 0.3rem;
}

.overview-card-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}

.overview-card-meta {
    margin-top: 0.25rem;
    font-size: 0.78rem;
    color: #6b7280;
}

.equipment-analytics .overview-cards-grid,
.report-analytics .overview-cards-grid {
    gap: 1rem;
}

.equipment-analytics .overview-card,
.report-analytics .overview-card {
    position: relative;
    background: linear-gradient(180deg, rgba(235,244,255,0.86) 0%, rgba(255,255,255,0.96) 50%, rgba(255,255,255,1) 100%);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(30,111,217,0.16);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.equipment-analytics .overview-card::before,
.report-analytics .overview-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0% 0%, rgba(21,88,168,0.18), transparent 55%);
    pointer-events: none;
}

.equipment-analytics .overview-card::after,
.report-analytics .overview-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, rgba(10,22,40,0.95), rgba(30,111,217,0.85));
}

.equipment-analytics .overview-card:hover,
.report-analytics .overview-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(30,111,217,0.26);
}

.equipment-analytics .overview-card-label,
.report-analytics .overview-card-label {
    color: rgba(10,22,40,0.92);
    font-weight: 900;
    letter-spacing: 0.9px;
    font-size: 11px;
}

.equipment-analytics .overview-card-value,
.report-analytics .overview-card-value {
    font-weight: 900;
    letter-spacing: 0.2px;
    color: rgba(21,88,168,0.92);
}

.equipment-analytics .overview-card-top,
.report-analytics .overview-card-top {
    margin-bottom: 6px;
}

.equipment-analytics .overview-card-icon,
.report-analytics .overview-card-icon {
    color: rgba(10,22,40,0.72);
}

.equipment-analytics .overview-cards-grid .overview-card:nth-child(1) .overview-card-value,
.report-analytics .overview-cards-grid .overview-card:nth-child(1) .overview-card-value {
    color: rgba(30,111,217,0.92);
}

.equipment-analytics .overview-cards-grid .overview-card:nth-child(2) .overview-card-value,
.report-analytics .overview-cards-grid .overview-card:nth-child(2) .overview-card-value {
    color: rgba(231,176,0,0.92);
}

.equipment-analytics .overview-cards-grid .overview-card:nth-child(3) .overview-card-value,
.report-analytics .overview-cards-grid .overview-card:nth-child(3) .overview-card-value {
    color: rgba(14,165,164,0.92);
}

.equipment-analytics .overview-cards-grid .overview-card:nth-child(4) .overview-card-value,
.report-analytics .overview-cards-grid .overview-card:nth-child(4) .overview-card-value {
    color: rgba(155,13,36,0.92);
}

.report-analytics .overview-cards-grid .overview-card:nth-child(5) .overview-card-value {
    color: rgba(14,165,164,0.92);
}

.report-analytics .overview-cards-grid .overview-card:nth-child(6) .overview-card-value {
    color: rgba(231,176,0,0.92);
}

.equipment-analytics .card.shadow,
.equipment-analytics .card.shadow-sm,
.report-analytics .card.shadow,
.report-analytics .card.shadow-sm {
    border-radius: var(--radius-xl);
    border: 1px solid rgba(30,111,217,0.14);
    box-shadow: var(--shadow-sm);
}

.equipment-analytics .card-header.bg-white,
.report-analytics .card-header.bg-white {
    background: linear-gradient(90deg, rgba(21,88,168,0.22), rgba(255,255,255,0.96)) !important;
    border-bottom: 1px solid rgba(30,111,217,0.12);
}

.equipment-analytics h5.text-primary,
.equipment-analytics h6.text-primary,
.report-analytics h5.text-primary,
.report-analytics h6.text-primary {
    color: var(--blue-900) !important;
}

.equipment-analytics .kpi-grid,
.report-analytics .kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 991.98px) {
    .equipment-analytics .kpi-grid,
    .report-analytics .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .equipment-analytics .kpi-grid,
    .report-analytics .kpi-grid {
        grid-template-columns: 1fr;
    }
}

.equipment-analytics .kpi-card,
.report-analytics .kpi-card {
    position: relative;
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(235,244,255,0.86) 0%, rgba(255,255,255,0.96) 50%, rgba(255,255,255,1) 100%);
    border: 1px solid rgba(30,111,217,0.16);
    box-shadow: var(--shadow-sm);
    padding: 1rem 1.05rem;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.equipment-analytics .kpi-card::before,
.report-analytics .kpi-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0% 0%, rgba(21,88,168,0.20), transparent 56%);
    pointer-events: none;
}

.equipment-analytics .kpi-card::after,
.report-analytics .kpi-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, rgba(10,22,40,0.95), rgba(30,111,217,0.85));
}

.equipment-analytics .kpi-card:hover,
.report-analytics .kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(30,111,217,0.26);
}

.equipment-analytics .kpi-top,
.report-analytics .kpi-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.equipment-analytics .kpi-icon,
.report-analytics .kpi-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    color: rgba(10,22,40,0.88);
    font-size: 18px;
}

.equipment-analytics .kpi-label,
.report-analytics .kpi-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: rgba(10,22,40,0.92);
    font-weight: 900;
}

.equipment-analytics .kpi-value,
.report-analytics .kpi-value {
    margin-top: 10px;
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0.2px;
    color: rgba(21,88,168,0.92);
}

.equipment-analytics .kpi-unit,
.report-analytics .kpi-unit {
    font-size: 0.85rem;
    font-weight: 800;
    color: rgba(16,58,107,0.76);
}

.equipment-analytics .kpi-card--mttr .kpi-value,
.report-analytics .kpi-card--mttr .kpi-value {
    color: rgba(14,165,164,0.92);
}

.equipment-analytics .kpi-card--mtbf .kpi-value,
.report-analytics .kpi-card--mtbf .kpi-value {
    color: rgba(30,111,217,0.92);
}

.equipment-analytics .kpi-card--fuel .kpi-value,
.report-analytics .kpi-card--fuel .kpi-value {
    color: rgba(231,176,0,0.92);
}

.equipment-analytics .kpi-card--life .kpi-value,
.report-analytics .kpi-card--life .kpi-value {
    color: rgba(100,116,139,0.92);
}

.equipment-analytics .kpi-sub,
.report-analytics .kpi-sub {
    margin-top: 6px;
    font-size: 12px;
    color: var(--gray-600);
}

.equipment-analytics .kpi-card--mttr::after,
.report-analytics .kpi-card--mttr::after {
    background: linear-gradient(180deg, rgba(10,22,40,0.95), rgba(14,165,164,0.84));
}

.equipment-analytics .kpi-card--mtbf::after,
.report-analytics .kpi-card--mtbf::after {
    background: linear-gradient(180deg, rgba(10,22,40,0.95), rgba(30,111,217,0.86));
}

.equipment-analytics .kpi-card--fuel::after,
.report-analytics .kpi-card--fuel::after {
    background: linear-gradient(180deg, rgba(10,22,40,0.95), rgba(231,176,0,0.84));
}

.equipment-analytics .kpi-card--life::after,
.report-analytics .kpi-card--life::after {
    background: linear-gradient(180deg, rgba(10,22,40,0.95), rgba(100,116,139,0.84));
}

.equipment-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
    gap: 1rem;
}

.equipment-list-column {
    min-width: 0;
}

.equipment-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.equipment-list-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.equipment-card-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    content-visibility: auto; /* Performance boost */
    contain-intrinsic-size: 1px 150px;
}

.equipment-card {
    background-color: #ffffff;
    border-radius: 0.9rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.equipment-card-main {
    display: flex;
    gap: 0.85rem;
}

.equipment-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 0.9rem;
    background: radial-gradient(circle at 0 0, #eff6ff, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
}

.equipment-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.equipment-card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.equipment-card-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.equipment-card-status {
    font-size: 0.75rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    border: 1px solid transparent;
}

.equipment-card-status-active {
    background-color: #dcfce7;
    color: #15803d;
    border-color: #bbf7d0;
}

.equipment-card-status-repairing {
    background-color: #fef3c7;
    color: #b45309;
    border-color: #fde68a;
}

.equipment-card-status-inactive,
.equipment-card-status-disposed {
    background-color: #fee2e2;
    color: #b91c1c;
    border-color: #fecaca;
}

.equipment-card-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.equipment-card-meta-pill {
    font-size: 0.75rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background-color: #f3f4f6;
    color: #4b5563;
}

.equipment-card-cost-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.equipment-card-cost-label {
    font-size: 0.75rem;
    color: #9ca3af;
}

.equipment-card-cost-value {
    font-size: 0.85rem;
    font-weight: 600;
}

.equipment-card-cost-total {
    color: #0ea5e9;
}

.equipment-card-footer {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.4rem;
    font-size: 0.78rem;
    color: #6b7280;
}

.equipment-card-link {
    color: #6366f1;
    text-decoration: none;
}

    .equipment-card-link:hover {
        text-decoration: underline;
    }

.equipment-card-footer-sep {
    color: #d1d5db;
}

.equipment-side-column {
    min-width: 0;
}

.equipment-side-card {
    background-color: #ffffff;
    border-radius: 0.9rem;
    padding: 0.9rem 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.equipment-side-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.equipment-side-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    font-size: 0.85rem;
    color: #4b5563;
}

    .equipment-side-list li + li {
        margin-top: 0.25rem;
    }

.filter-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.filter-toolbar-left {
    flex: 1;
}

.filter-toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-search-input {
    max-width: 360px;
    font-size: 0.9rem;
}

.filter-select {
    width: 190px;
    font-size: 0.85rem;
}

@media (max-width: 991.98px) {
    .app-shell {
        flex-direction: column;
    }

    .app-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        transform: translateX(-100%);
        transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    }

    body.sidebar-open .app-sidebar {
        transform: translateX(0);
        box-shadow: 12px 0 30px rgba(15, 23, 42, 0.5);
    }

    .app-topbar {
        padding: 0.75rem 1rem;
    }

    .app-content {
        /*padding: 1rem;*/
    }

    .app-topbar-left {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }

    .app-page-title {
        font-size: 1.1rem;
        display: none;
    }

    .app-page-subtitle {
        font-size: 0.8rem;
    }

    .overview-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .equipment-layout-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767.98px) {
    /* .app-topbar-right {
    display: none; 
  } Removed to show header icons on mobile */

    .app-topbar-right {
        gap: 0.5rem; /* Reduce gap on mobile */
    }

    .overview-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-toolbar-left {
        width: 100%;
    }

    .filter-toolbar-right {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .filter-search-input {
        max-width: 100%;
    }
}

.app-topbar-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    color: #0f172a;
    padding: 0;
}

    .app-topbar-menu-toggle i {
        font-size: 1.2rem;
    }

@media (max-width: 991.98px) {
    .app-topbar-menu-toggle {
        display: inline-flex;
    }
}

/* Data Card / List View Styling */
.data-card-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /* content-visibility removed to fix white flash on fast scroll */
}

.data-card {
    background: linear-gradient(180deg, rgba(235,244,255,0.85) 0%, rgba(255,255,255,0.96) 48%, rgba(255,255,255,1) 100%);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(30,111,217,0.16);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .data-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
        border-color: rgba(30,111,217,0.26);
    }

.data-card-header {
    padding: 1rem 1.25rem;
    background: linear-gradient(90deg, rgba(21,88,168,0.18) 0%, rgba(235,244,255,0.72) 55%, rgba(255,255,255,0.92) 100%) !important;
    border-bottom: 1px solid rgba(30,111,217,0.14) !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 6px solid var(--blue-600) !important;
}

.data-card-title {
    font-weight: 600;
    font-size: 1rem; /* Giảm kích thước để tránh xuống dòng */
    color: var(--blue-800) !important;
    margin: 0;
    letter-spacing: 0.01em;
    line-height: 1.3;
}

.data-card-body {
    padding: 1rem;
}

.data-row {
    display: flex;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    align-items: baseline;
}

    .data-row:last-child {
        margin-bottom: 0;
    }

.data-label {
    width: 35%;
    color: var(--gray-500);
    font-weight: 500;
    flex-shrink: 0;
}

.data-value {
    flex: 1;
    color: var(--gray-700);
    font-weight: 600;
    word-break: break-word;
}

.data-card-footer {
    padding: 0.75rem 1rem;
    background: rgba(235,244,255,0.55);
    border-top: 1px solid rgba(30,111,217,0.12);
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.modal-header {
    background: linear-gradient(90deg, rgba(21,88,168,0.22) 0%, rgba(235,244,255,0.84) 55%, rgba(255,255,255,0.98) 100%) !important;
    border-bottom: 1px solid rgba(30,111,217,0.16) !important;
    border-left: 6px solid var(--blue-600);
    color: var(--blue-900);
}

.modal-header .modal-title {
    color: var(--blue-900);
    font-weight: 700;
}

.modal-header .btn-close {
    filter: none;
    opacity: 0.8;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-header .pr-status,
.modal-header .app-status {
    border: 1px solid rgba(10,22,40,0.14);
}

.modal-header .pr-status-draft,
.modal-header .pr-status-default {
    background: rgba(155,165,190,0.18);
    color: var(--blue-900);
}

.modal-header .pr-status-pending {
    background: rgba(231,176,0,0.20);
    color: #5C4300;
}

.modal-header .pr-status-approved,
.modal-header .pr-status-completed {
    background: rgba(20,184,166,0.20);
    color: #0F5E57;
}

.modal-header .pr-status-ordered {
    background: rgba(30,111,217,0.20);
    color: var(--blue-900);
}

.modal-header .pr-status-rejected {
    background: rgba(227,24,55,0.20);
    color: #7A0F1F;
}

.pr-detail-modal {
    border-radius: var(--radius-xl);
    border: 1px solid rgba(30,111,217,0.18);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.app-detail-modal {
    border-radius: var(--radius-xl);
    border: 1px solid rgba(30,111,217,0.18);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.pr-detail-modal-header {
    background: linear-gradient(90deg, rgba(21,88,168,0.22) 0%, rgba(235,244,255,0.84) 55%, rgba(255,255,255,0.98) 100%) !important;
    color: var(--blue-900);
    border-bottom: 1px solid rgba(30,111,217,0.16) !important;
    border-left: 6px solid var(--blue-600);
}

.app-detail-modal-header {
    background: linear-gradient(90deg, rgba(21,88,168,0.22) 0%, rgba(235,244,255,0.84) 55%, rgba(255,255,255,0.98) 100%) !important;
    color: var(--blue-900);
    border-bottom: 1px solid rgba(30,111,217,0.16) !important;
    border-left: 6px solid var(--blue-600);
}

.pr-detail-modal-header .btn-close {
    filter: none;
    opacity: 0.8;
}

.app-detail-modal-header .btn-close {
    filter: none;
    opacity: 0.8;
}

.pr-detail-modal-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(21,88,168,0.10);
    border: 1px solid rgba(21,88,168,0.22);
    color: var(--blue-800);
}

.app-detail-modal-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(21,88,168,0.10);
    border: 1px solid rgba(21,88,168,0.22);
    color: var(--blue-800);
}

.pr-detail-modal-subtitle {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 2px;
}

.app-detail-modal-subtitle {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 2px;
}

.pr-detail-status {
    font-weight: 800;
    letter-spacing: 0.4px;
    border-radius: 999px;
    padding: 7px 10px;
}

.app-detail-status {
    font-weight: 800;
    letter-spacing: 0.4px;
    border-radius: 999px;
    padding: 7px 10px;
}

.pr-status {
    border: 1px solid rgba(255,255,255,0.14);
}

.app-status {
    border: 1px solid rgba(255,255,255,0.14);
}

.pr-detail-modal .modal-footer,
.app-detail-modal .modal-footer {
    padding: 0.85rem 1rem;
    background: rgba(235,244,255,0.55);
    border-top: 1px solid rgba(30,111,217,0.12);
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.pr-detail-modal .modal-footer .btn,
.app-detail-modal .modal-footer .btn {
    border-radius: var(--radius-lg);
    font-weight: 800;
    letter-spacing: 0.2px;
}

.user-detail-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 18px;
}

@media (max-width: 991.98px) {
    .user-detail-layout {
        grid-template-columns: 1fr;
    }
}

.user-detail-left {
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(10,22,40,0.92), rgba(16,58,107,0.86));
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: var(--shadow-lg);
    padding: 16px;
    color: var(--white);
}

.user-detail-avatar-wrap {
    display: flex;
    justify-content: center;
    margin-top: 6px;
    margin-bottom: 12px;
}

.user-detail-avatar {
    width: 120px;
    height: 120px;
    border-radius: 999px;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.22);
    box-shadow: 0 14px 40px rgba(10,22,40,0.28);
}

.user-detail-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 42px;
    letter-spacing: 1px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.14);
}

.user-detail-name {
    text-align: center;
    font-weight: 900;
    font-size: 18px;
    letter-spacing: 0.2px;
}

.user-detail-code {
    text-align: center;
    margin-top: 4px;
    font-size: 12px;
    color: rgba(255,255,255,0.72);
}

.user-detail-active {
    text-align: center;
    margin-top: 10px;
}

.user-detail-contact {
    margin-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 12px;
    display: grid;
    gap: 8px;
}

.user-detail-line {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255,255,255,0.86);
}

.user-detail-line i {
    width: 18px;
    text-align: center;
    color: rgba(255,255,255,0.70);
}

.user-detail-right {
    border-radius: var(--radius-xl);
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(30,111,217,0.14);
    box-shadow: var(--shadow-sm);
    padding: 16px;
}

.user-detail-section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: var(--gray-500);
    font-weight: 900;
    margin-bottom: 12px;
}

.user-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 767.98px) {
    .user-detail-grid {
        grid-template-columns: 1fr;
    }
}

.user-detail-card {
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(235,244,255,0.78), rgba(255,255,255,1));
    border: 1px solid rgba(30,111,217,0.12);
    box-shadow: var(--shadow-sm);
    padding: 12px 14px;
}

.user-detail-card.full {
    grid-column: span 2;
}

@media (max-width: 767.98px) {
    .user-detail-card.full {
        grid-column: auto;
    }
}

.user-detail-card-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--gray-500);
    font-weight: 900;
}

.user-detail-card-value {
    margin-top: 6px;
    font-weight: 800;
    color: var(--blue-900);
    line-height: 1.4;
    white-space: pre-wrap;
}

.home-dashboard .home-hero {
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(10,22,40,0.96), rgba(16,58,107,0.94));
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: var(--shadow-lg);
    padding: 18px 18px;
    color: rgba(255,255,255,0.92);
}

.equipment-dashboard .depr-panel {
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(10,22,40,0.96), rgba(138,90,0,0.92));
    border: 1px solid rgba(231,176,0,0.28);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.equipment-dashboard .depr-panel-header {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.10);
}

.equipment-dashboard .depr-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.equipment-dashboard .depr-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.92);
    flex: 0 0 auto;
}

.equipment-dashboard .depr-heading {
    font-weight: 900;
    letter-spacing: 0.4px;
    color: rgba(255,255,255,0.94);
    line-height: 1.2;
}

.equipment-dashboard .depr-sub {
    margin-top: 4px;
    font-size: 12px;
    color: rgba(255,255,255,0.72);
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.equipment-dashboard .depr-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.92);
    font-weight: 900;
    letter-spacing: 0.4px;
}

.equipment-dashboard .depr-panel-body {
    padding: 12px 12px 14px 12px;
}

.equipment-dashboard .depr-list {
    display: grid;
    gap: 10px;
}

.equipment-dashboard .depr-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 12px 12px;
}

.equipment-dashboard .depr-item:hover {
    background: rgba(255,255,255,0.10);
    border-color: rgba(255,255,255,0.18);
}

.equipment-dashboard .depr-item-main {
    min-width: 0;
}

.equipment-dashboard .depr-item-name {
    font-weight: 900;
    color: rgba(255,255,255,0.94);
    letter-spacing: 0.2px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.equipment-dashboard .depr-item-code {
    font-weight: 800;
    font-size: 12px;
    color: rgba(255,255,255,0.74);
    border: 1px solid rgba(255,255,255,0.14);
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(10,22,40,0.18);
}

.equipment-dashboard .depr-item-meta {
    margin-top: 6px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 12px;
    color: rgba(255,255,255,0.72);
}

.equipment-dashboard .depr-item-meta i {
    margin-right: 6px;
    color: rgba(255,255,255,0.72);
}

.equipment-dashboard .depr-item-action {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.equipment-dashboard .depr-more {
    margin-top: 10px;
    font-size: 12px;
    color: rgba(255,255,255,0.74);
    text-align: right;
}

.home-dashboard .home-hero-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.home-dashboard--home .home-hero-content {
    align-items: center;
}

.home-dashboard .home-hero-left {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.home-dashboard--home .home-hero-left {
    align-items: center;
}

@media (max-width: 991.98px) {
    .home-dashboard .home-hero-content {
        flex-direction: column;
        align-items: stretch;
    }
}

.home-dashboard .home-hero-title {
    font-weight: 900;
    letter-spacing: 0.4px;
    font-size: 20px;
    line-height: 1.25;
}

.home-dashboard--home .home-hero-title {
    font-size: 16px;
    letter-spacing: 0.8px;
}

.home-dashboard .home-hero-sub {
    margin-top: 6px;
    color: rgba(255,255,255,0.70);
    font-weight: 700;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    font-size: 12px;
}

.home-dashboard--home .home-hero-sub {
    letter-spacing: 1.1px;
}

.home-dashboard .home-hero-right {
    display: flex;
    align-items: center;
    gap: 14px;
}


@media (max-width: 991.98px) {
    .home-dashboard .home-hero-right {
        justify-content: flex-start;
    }
}

.home-dashboard .home-hero-logo {
    max-height: 56px;
    max-width: 140px;
    object-fit: contain;
    filter: drop-shadow(0 14px 30px rgba(0,0,0,0.25));
}

.home-dashboard .home-hero-info {
    display: grid;
    gap: 6px;
    padding: 10px 12px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.10);
}

.home-dashboard .home-hero-line {
    display: flex;
    gap: 10px;
    align-items: baseline;
    font-size: 13px;
    color: rgba(255,255,255,0.86);
}

.home-dashboard .home-hero-line i {
    width: 16px;
    text-align: center;
    color: rgba(255,255,255,0.70);
}

.home-dashboard .home-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 575.98px) {
    .home-dashboard .home-actions-grid {
        grid-template-columns: 1fr;
    }
}

.home-dashboard .home-action {
    display: grid;
    grid-template-columns: 22px 1fr 18px;
    align-items: center;
    gap: 10px;
    padding: 12px 12px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(235,244,255,0.82), rgba(255,255,255,1));
    border: 1px solid rgba(30,111,217,0.14);
    box-shadow: var(--shadow-sm);
    color: var(--blue-900);
    text-decoration: none;
    font-weight: 800;
}

.home-dashboard .home-action:hover {
    border-color: rgba(30,111,217,0.26);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.home-dashboard .home-action i:first-child {
    color: rgba(10,22,40,0.78);
    font-size: 18px;
}

.home-dashboard .home-action i:last-child {
    color: rgba(10,22,40,0.45);
}

.pr-edit-page .pr-edit-table-wrapper {
    border-radius: var(--radius-xl);
    border: 1px solid rgba(30,111,217,0.14);
    overflow: visible;
    box-shadow: var(--shadow-sm);
    background: rgba(255,255,255,0.96);
}

.pr-edit-page .pr-edit-table-wrapper .table {
    margin-bottom: 0;
    border-radius: var(--radius-xl);
}

.pr-edit-page .pr-edit-table-wrapper .table thead th:first-child {
    border-top-left-radius: calc(var(--radius-xl) - 1px);
}

.pr-edit-page .pr-edit-table-wrapper .table thead th:last-child {
    border-top-right-radius: calc(var(--radius-xl) - 1px);
}

.pr-edit-page .card {
    overflow: visible !important;
}

.pr-edit-page .card-header {
    border-top-left-radius: calc(var(--radius-xl) - 1px);
    border-top-right-radius: calc(var(--radius-xl) - 1px);
}

.pr-edit-page .pr-edit-table-wrapper .table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(245, 249, 255, 1);
    border-bottom: 1px solid rgba(30,111,217,0.12);
    font-weight: 900;
    letter-spacing: 0.3px;
    color: rgba(10,22,40,0.90);
}

.pr-edit-page .pr-edit-total {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(235,244,255,0.86), rgba(255,255,255,1));
    border: 1px solid rgba(30,111,217,0.14);
    box-shadow: var(--shadow-sm);
    padding: 12px 14px;
}

.pr-edit-page .pr-edit-total-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: rgba(10,22,40,0.92);
    font-weight: 900;
}

.pr-edit-page .pr-edit-total-value {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.2px;
    color: rgba(21,88,168,0.92);
}

.pr-edit-page .pr-edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 8px;
}

@media (max-width: 575.98px) {
    .pr-edit-page .pr-edit-actions {
        justify-content: space-between;
    }
}

.form-page .card.shadow,
.form-page .card.shadow-sm,
.form-page .card.shadow {
    border-radius: var(--radius-xl);
    border: 1px solid rgba(30,111,217,0.14);
    box-shadow: var(--shadow-sm);
}

.form-page .card-header {
    background: linear-gradient(90deg, rgba(21,88,168,0.12), rgba(255,255,255,0.96)) !important;
    border-bottom: 1px solid rgba(30,111,217,0.12);
}

.form-page .acceptance-participants .acceptance-role-header {
    background: linear-gradient(90deg, rgba(21,88,168,0.18) 0%, rgba(235,244,255,0.80) 62%, rgba(255,255,255,0.98) 100%) !important;
    border-bottom: 1px solid rgba(30,111,217,0.14);
    color: var(--blue-900);
}

.form-page .acceptance-participants .acceptance-role-header h6 {
    color: var(--blue-900);
    font-weight: 800;
}

.form-page .acceptance-participants .acceptance-role-header small {
    color: rgba(55,66,97,0.82);
    font-weight: 600;
}

.form-page .acceptance-participants .acceptance-role-committee {
    border-left: 6px solid var(--blue-600);
}

.form-page .acceptance-participants .acceptance-role-manager {
    border-left: 6px solid #198754;
}

.form-page .acceptance-participants .acceptance-role-director {
    border-left: 6px solid #dc3545;
}

.form-page .card-header.py-3 {
    padding-top: 0.95rem !important;
    padding-bottom: 0.95rem !important;
}

.form-page h1.h3,
.form-page h2.h3 {
    color: rgba(10,22,40,0.92);
    font-weight: 900;
}

.form-page .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 8px;
}

.branch-details .page-title-main {
    line-height: 1.2;
}

.branch-details .data-card {
    border-radius: var(--radius-xl);
}

.branch-details .data-card-title {
    font-weight: 800;
    color: var(--blue-900) !important;
}

.branch-details .kpi-grid.kpi-grid--mini {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1199.98px) {
    .branch-details .kpi-grid.kpi-grid--mini {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .branch-details .kpi-grid.kpi-grid--mini {
        grid-template-columns: 1fr;
    }
}

.branch-details .kpi-card.kpi-card--mini {
    padding: 0.88rem 0.95rem;
}

.branch-details .kpi-card.kpi-card--mini .kpi-value {
    font-size: 1.08rem;
}

.branch-details .kpi-card--spend .kpi-value {
    color: rgba(21,88,168,0.92);
}

.branch-details .kpi-card--spend::after {
    background: linear-gradient(180deg, rgba(10,22,40,0.95), rgba(21,88,168,0.86));
}

.branch-details .kpi-card--ops .kpi-value {
    color: rgba(14,165,164,0.92);
}

.branch-details .kpi-card--ops::after {
    background: linear-gradient(180deg, rgba(10,22,40,0.95), rgba(14,165,164,0.84));
}

.branch-details .kpi-card--proc .kpi-value {
    color: rgba(100,116,139,0.92);
}

.branch-details .kpi-card--proc::after {
    background: linear-gradient(180deg, rgba(10,22,40,0.95), rgba(100,116,139,0.84));
}

.branch-details .kpi-card--stock .kpi-value {
    color: rgba(30,111,217,0.92);
}

.branch-details .kpi-card--stock::after {
    background: linear-gradient(180deg, rgba(10,22,40,0.95), rgba(30,111,217,0.86));
}

.branch-details .branch-metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 991.98px) {
    .branch-details .branch-metric-grid {
        grid-template-columns: 1fr;
    }
}

.branch-details .branch-metric-panel {
    border: 1px solid rgba(30,111,217,0.14);
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(235,244,255,0.62) 0%, rgba(255,255,255,0.96) 55%, rgba(255,255,255,1) 100%);
    box-shadow: var(--shadow-sm);
    padding: 12px 14px;
}

.branch-details .branch-metric-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    color: rgba(10,22,40,0.92);
    margin-bottom: 10px;
}

.branch-details .branch-metric-title i {
    color: rgba(21,88,168,0.88);
    font-size: 16px;
}

.branch-details .branch-metric-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
    border-top: 1px solid rgba(15,23,42,0.06);
}

.branch-details .branch-metric-row:first-of-type {
    border-top: 0;
}

.branch-details .branch-metric-row span {
    color: rgba(55,66,97,0.82);
}

.branch-details .branch-metric-row strong {
    color: rgba(10,22,40,0.92);
    font-weight: 900;
}

.branch-details .branch-metric-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(30,111,217,0.18), transparent);
    margin: 14px 0;
}

.table-responsive.table-card {
    border: 1px solid rgba(30,111,217,0.14);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: rgba(255,255,255,0.98);
}

.table-responsive.table-card .table {
    margin-bottom: 0;
}

.table-responsive.table-card .table thead {
    background: linear-gradient(90deg, rgba(21,88,168,0.12), rgba(255,255,255,0.96));
}

.table-responsive.table-card .table thead th {
    font-weight: 900;
    color: rgba(10,22,40,0.86);
    border-bottom-color: rgba(30,111,217,0.14);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.table-responsive.table-card .table tbody tr:hover {
    background: rgba(235,244,255,0.55);
}

.card.shadow-sm > .table-responsive.table-card,
.card.shadow > .table-responsive.table-card,
.card.shadow-sm > .card-body.p-0 > .table-responsive.table-card,
.card.shadow > .card-body.p-0 > .table-responsive.table-card {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top: 0;
    box-shadow: none;
}

.table-responsive.table-card.table-card-scroll-400 {
    max-height: 400px;
    overflow-y: auto;
}

.branch-details .table-responsive.table-card {
    border: 1px solid rgba(30,111,217,0.14);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.branch-details .table-responsive.table-card .table {
    margin-bottom: 0;
}

.branch-details .table-responsive.table-card .table thead {
    background: linear-gradient(90deg, rgba(21,88,168,0.12), rgba(255,255,255,0.96));
}

.branch-details .table-responsive.table-card .table thead th {
    font-weight: 900;
    color: rgba(10,22,40,0.86);
    border-bottom-color: rgba(30,111,217,0.14);
}

.branch-details .table-responsive.table-card .table tbody tr:hover {
    background: rgba(235,244,255,0.55);
}

.branch-details .branch-report-card .branch-tabs .nav-tabs {
    border-bottom: 0;
    background: linear-gradient(90deg, rgba(21,88,168,0.10), rgba(255,255,255,0.92));
    border: 1px solid rgba(30,111,217,0.14);
    border-radius: var(--radius-xl);
    padding: 8px;
    gap: 8px;
    flex-wrap: wrap;
}

.branch-details .branch-report-card .branch-tabs .nav-tabs .nav-item {
    margin-bottom: 0;
}

.branch-details .branch-report-card .branch-tabs .nav-tabs .nav-link {
    border: 0;
    border-radius: 999px;
    padding: 0.52rem 0.85rem;
    color: rgba(10,22,40,0.82);
    font-weight: 800;
    background: rgba(255,255,255,0.78);
    box-shadow: 0 1px 0 rgba(15,23,42,0.04);
}

.branch-details .branch-report-card .branch-tabs .nav-tabs .nav-link:hover {
    background: rgba(235,244,255,0.88);
    color: rgba(21,88,168,0.92);
}

.branch-details .branch-report-card .branch-tabs .nav-tabs .nav-link.active {
    color: rgba(255,255,255,0.98);
    background: linear-gradient(90deg, rgba(21,88,168,0.92), rgba(30,111,217,0.86));
    box-shadow: 0 10px 24px rgba(21,88,168,0.18);
}

.branch-details .branch-report-card .branch-tabs .nav-tabs .nav-link i {
    opacity: 0.92;
}

.branch-details .branch-report-card .tab-content {
    border-radius: var(--radius-xl);
}

.branch-details .branch-report-card .table-responsive.table-card {
    box-shadow: 0 10px 28px rgba(10,22,40,0.08);
}

.branch-details .row.g-3 > [class*="col-"] > .card.shadow-sm > .table-responsive.table-card {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top: 0;
    box-shadow: none;
}

.branch-details .table-responsive.table-card .table thead th {
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.premium-tabs .nav-tabs {
    border-bottom: 0;
    background: linear-gradient(90deg, rgba(21,88,168,0.10), rgba(255,255,255,0.92));
    border: 1px solid rgba(30,111,217,0.14);
    border-radius: var(--radius-xl);
    padding: 8px;
    gap: 8px;
    flex-wrap: wrap;
}

.premium-tabs .nav-tabs .nav-item {
    margin-bottom: 0;
}

.premium-tabs .nav-tabs .nav-link {
    border: 0;
    border-radius: 999px;
    padding: 0.52rem 0.85rem;
    color: rgba(10,22,40,0.82);
    font-weight: 800;
    background: rgba(255,255,255,0.78);
    box-shadow: 0 1px 0 rgba(15,23,42,0.04);
}

.premium-tabs .nav-tabs .nav-link:hover {
    background: rgba(235,244,255,0.88);
    color: rgba(21,88,168,0.92);
}

.premium-tabs .nav-tabs .nav-link.active {
    color: rgba(255,255,255,0.98);
    background: linear-gradient(90deg, rgba(21,88,168,0.92), rgba(30,111,217,0.86));
    box-shadow: 0 10px 24px rgba(21,88,168,0.18);
}

.premium-tabs .nav-tabs .nav-link i {
    opacity: 0.92;
}

.branch-details .metric-amount {
    font-weight: 900;
    letter-spacing: 0.2px;
}

.branch-details .metric-amount--money {
    color: rgba(21,88,168,0.92);
}

.branch-details .table-responsive.table-card td.text-end {
    color: rgba(16,58,107,0.90);
}

.branch-details .table-responsive.table-card td.text-end .metric-amount {
    color: rgba(21,88,168,0.92);
}

.branch-details .badge-soft {
    background: rgba(148,163,184,0.22);
    color: rgba(10,22,40,0.86);
    border: 1px solid rgba(148,163,184,0.35);
}

.branch-details .badge-soft-success {
    background: rgba(34,197,94,0.16);
    color: rgba(22,101,52,0.92);
    border: 1px solid rgba(34,197,94,0.32);
}

.branch-details .badge-soft-danger {
    background: rgba(239,68,68,0.14);
    color: rgba(153,27,27,0.92);
    border: 1px solid rgba(239,68,68,0.30);
}

.branch-details .badge-soft-warning {
    background: rgba(234,179,8,0.18);
    color: rgba(120,53,15,0.92);
    border: 1px solid rgba(234,179,8,0.34);
}

.branch-details .cost-overview-card .metric-amount--money {
    color: rgba(10,22,40,0.92);
}

.branch-details .cost-overview-card .metric-amount--danger {
    color: rgba(153,27,27,0.92);
}

.branch-details .cost-overview-card .metric-amount--warning {
    color: rgba(120,53,15,0.92);
}

.branch-details .cost-overview-card .metric-amount--primary {
    color: rgba(21,88,168,0.92);
}

.branch-details .cost-overview-card .metric-amount--success {
    color: rgba(22,101,52,0.92);
}

.branch-details .cost-overview-card .metric-amount--slate {
    color: rgba(51,65,85,0.92);
}

.branch-details .branch-report-card .card-body {
    padding: 0;
}

.card.shadow-sm > .card-header.bg-white,
.card.shadow-sm > .card-header.bg-light,
.card.shadow > .card-header.bg-white,
.card.shadow > .card-header.bg-light {
    border-bottom: 1px solid rgba(15,23,42,0.08);
    padding: 0.85rem 1rem;
}

.card.shadow-sm > .card-header.bg-white h6,
.card.shadow-sm > .card-header.bg-light h6,
.card.shadow > .card-header.bg-white h6,
.card.shadow > .card-header.bg-light h6 {
    margin-bottom: 0;
    font-weight: 800;
}

@media (max-width: 575.98px) {
    .form-page .form-actions {
        justify-content: space-between;
    }
}

.pr-status-draft {
    background: rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.90);
}

.pr-status-pending {
    background: rgba(231,176,0,0.16);
    color: #FFE8A3;
}

.pr-status-approved,
.pr-status-completed {
    background: rgba(20,184,166,0.16);
    color: #B2F5EA;
}

.pr-status-ordered {
    background: rgba(30,111,217,0.16);
    color: #CFE3FF;
}

.pr-status-rejected {
    background: rgba(227,24,55,0.18);
    color: #FFD0D8;
}

.pr-status-default {
    background: rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.90);
}

.pr-detail-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 16px;
}

.app-detail-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 16px;
}

@media (max-width: 991.98px) {
    .pr-detail-top {
        grid-template-columns: 1fr;
    }

    .app-detail-top {
        grid-template-columns: 1fr;
    }
}

.pr-detail-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.app-detail-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 991.98px) {
    .pr-detail-metrics {
        grid-template-columns: 1fr;
    }

    .app-detail-metrics {
        grid-template-columns: 1fr;
    }
}

.pr-metric {
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(235,244,255,0.80), rgba(255,255,255,1));
    border: 1px solid rgba(30,111,217,0.14);
    box-shadow: var(--shadow-sm);
    padding: 12px 14px;
}

.app-metric {
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(235,244,255,0.80), rgba(255,255,255,1));
    border: 1px solid rgba(30,111,217,0.14);
    box-shadow: var(--shadow-sm);
    padding: 12px 14px;
}

.pr-metric-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--gray-500);
    font-weight: 800;
}

.app-metric-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--gray-500);
    font-weight: 800;
}

.pr-metric-value {
    margin-top: 6px;
    font-weight: 800;
    color: var(--blue-900);
}

.app-metric-value {
    margin-top: 6px;
    font-weight: 800;
    color: var(--blue-900);
}

.pr-metric-note .pr-metric-value {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
}

.app-metric-note .app-metric-value {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
}

.pr-detail-note {
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.90);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    padding: 12px 14px;
}

.pr-detail-note-body {
    margin-top: 6px;
    color: var(--gray-700);
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
}

.pr-detail-attachments {
    margin-top: 14px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.90);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    padding: 12px 14px;
}

.pr-detail-section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: var(--gray-500);
    font-weight: 900;
    margin-bottom: 10px;
}

.pr-detail-items-wrapper {
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.90);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    max-height: 52vh;
}

.pr-detail-table {
    margin-bottom: 0;
}

.pr-detail-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: linear-gradient(90deg, rgba(21,88,168,0.16), rgba(255,255,255,0.96));
    border-bottom: 1px solid rgba(30,111,217,0.14);
}

.pr-detail-total-row {
    background: rgba(235,244,255,0.75);
}

.pr-money {
    color: var(--blue-900);
}

.pr-detail-skeleton {
    display: grid;
    gap: 14px;
}

.pr-skel-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 991.98px) {
    .pr-skel-row {
        grid-template-columns: 1fr;
    }
}

.pr-skel-card,
.pr-skel-block {
    border-radius: var(--radius-lg);
    height: 72px;
    background: linear-gradient(90deg, rgba(235,244,255,0.65) 0%, rgba(255,255,255,0.90) 50%, rgba(235,244,255,0.65) 100%);
    background-size: 200% 100%;
    animation: prSkel 1.1s ease-in-out infinite;
    border: 1px solid rgba(30,111,217,0.12);
}

.pr-skel-block {
    height: 120px;
}

@keyframes prSkel {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

@media (max-width: 767.98px) {
    .pr-detail-modal .table-responsive,
    .app-detail-modal .table-responsive {
        overflow-x: visible;
    }

    .pr-detail-modal .pr-detail-items-wrapper,
    .app-detail-modal .pr-detail-items-wrapper {
        max-height: none;
        overflow: visible;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .pr-detail-modal .pr-detail-table,
    .app-detail-modal .pr-detail-table {
        border: 0;
    }

    .pr-detail-modal .pr-detail-table thead,
    .app-detail-modal .pr-detail-table thead {
        display: none;
    }

    .pr-detail-modal .pr-detail-table tbody,
    .pr-detail-modal .pr-detail-table tr,
    .pr-detail-modal .pr-detail-table td,
    .app-detail-modal .pr-detail-table tbody,
    .app-detail-modal .pr-detail-table tr,
    .app-detail-modal .pr-detail-table td {
        display: block;
        width: 100%;
    }

    .pr-detail-modal .pr-detail-table tr,
    .app-detail-modal .pr-detail-table tr {
        background: rgba(255, 255, 255, 0.92);
        border: 1px solid rgba(30, 111, 217, 0.14);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-sm);
        overflow: hidden;
        margin-bottom: 12px;
    }

    .pr-detail-modal .pr-detail-table td,
    .app-detail-modal .pr-detail-table td {
        border: 0;
        border-bottom: 1px solid rgba(30, 111, 217, 0.10);
        padding: 10px 12px;
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 14px;
    }

    .pr-detail-modal .pr-detail-table td:last-child,
    .app-detail-modal .pr-detail-table td:last-child {
        border-bottom: 0;
    }

    .pr-detail-modal .pr-detail-table td::before,
    .app-detail-modal .pr-detail-table td::before {
        content: attr(data-label);
        flex: 0 0 auto;
        font-size: 10px;
        font-weight: 900;
        letter-spacing: 0.8px;
        text-transform: uppercase;
        color: var(--gray-500);
        max-width: 45%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .pr-detail-modal .pr-detail-table td:not([data-label])::before,
    .pr-detail-modal .pr-detail-table td[data-label=""]::before,
    .app-detail-modal .pr-detail-table td:not([data-label])::before,
    .app-detail-modal .pr-detail-table td[data-label=""]::before {
        content: none;
    }

    .pr-detail-modal .pr-detail-total-row,
    .app-detail-modal .pr-detail-total-row {
        background: rgba(235, 244, 255, 0.85);
        border-color: rgba(30, 111, 217, 0.18);
    }

    .pr-detail-modal .pr-detail-total-row td,
    .app-detail-modal .pr-detail-total-row td {
        justify-content: flex-end;
        gap: 10px;
        font-weight: 900;
    }

    .pr-detail-modal .pr-detail-total-row td::before,
    .app-detail-modal .pr-detail-total-row td::before {
        content: none;
    }
}

/* Responsive Grid for Desktop */
@media (min-width: 992px) {
    .data-card-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 columns on large screens */
    }
}

@media (min-width: 1400px) {
    .data-card-list {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on extra large screens */
    }
}

/* Chart Wrapper for Responsive Canvas */
.chart-wrapper {
    position: relative;
    height: 300px;
    width: 100%;
}

label.control-label:after {
    content: " *";
    color: var(--red-500);
    visibility: hidden;
}

label.required:after {
    visibility: visible;
}

:root {
    --white: #FFFFFF;
    --off-white: #F7F8FC;
    --blue-900: #0A1628;
    --blue-800: #0D2244;
    --blue-700: #103A6B;
    --blue-600: #1558A8;
    --blue-500: #1E6FD9;
    --blue-400: #4A90E2;
    --blue-100: #D6E8FF;
    --blue-50: #EBF4FF;
    --red-600: #C8102E;
    --red-500: #E31837;
    --red-400: #FF3B55;
    --red-100: #FFD9DF;
    --gray-50: #F9FAFB;
    --gray-100: #F0F2F7;
    --gray-200: #E2E6EF;
    --gray-300: #C9D0DF;
    --gray-400: #9BA5BE;
    --gray-500: #6B7594;
    --gray-700: #374261;
    --shadow-sm: 0 1px 3px rgba(10,22,40,0.08), 0 1px 2px rgba(10,22,40,0.05);
    --shadow-md: 0 4px 16px rgba(10,22,40,0.10), 0 1px 4px rgba(10,22,40,0.06);
    --shadow-lg: 0 12px 40px rgba(10,22,40,0.14), 0 4px 12px rgba(10,22,40,0.08);
    --shadow-blue: 0 4px 20px rgba(21,88,168,0.25);
    --shadow-red: 0 4px 20px rgba(200,16,46,0.25);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
}

html {
    position: relative;
    min-height: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    font-family: 'Be Vietnam Pro', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--off-white);
    color: var(--blue-900);
    min-height: 100vh;
    overflow: hidden;
}

.app-shell {
    display: flex;
    min-height: 100vh;
    height: 100vh;
    background: var(--off-white);
}

.app-shell,
.app-main,
.app-content,
.app-main-body {
    min-height: 0;
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--off-white);
}

.auth-body {
    width: 100%;
    max-width: 520px;
}

.app-sidebar {
    width: 260px;
    min-height: 100vh;
    background: var(--blue-900);
    color: rgba(255,255,255,0.55);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    border-right: none;
    padding: 0;
    box-shadow: none;
}

.app-sidebar::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(21,88,168,0.4) 0%, transparent 70%);
    pointer-events: none;
}

.app-sidebar::after {
    content: '';
    position: absolute;
    bottom: 60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(200,16,46,0.2) 0%, transparent 70%);
    pointer-events: none;
}

.app-brand {
    padding: 28px 24px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    position: relative;
    z-index: 1;
    margin: 0;
}

.app-brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.app-brand-logo,
.app-brand-logo-img {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.app-brand-logo {
    background: linear-gradient(135deg, var(--blue-500), var(--blue-400));
    box-shadow: var(--shadow-blue);
    position: relative;
    overflow: hidden;
}

.app-brand-logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.app-brand-text-group {
    margin-left: 0;
}

.app-brand-title {
    font-family: 'Oswald', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 2.5px;
    line-height: 1;
    -webkit-text-fill-color: initial;
}

.app-brand-subtitle {
    font-size: 9px;
    font-weight: 700;
    color: var(--blue-400);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 2px;
}

.app-menu {
    padding: 20px 16px 8px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.app-menu::-webkit-scrollbar {
    width: 8px;
}

.app-menu::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.12);
    border-radius: 999px;
}

.app-menu::-webkit-scrollbar-track {
    background: transparent;
}

.app-menu-group {
    padding-bottom: 10px;
}

.app-menu-section,
.app-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.18s ease;
    position: relative;
    margin-bottom: 2px;
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-decoration: none;
    background: transparent;
    border: none;
    box-shadow: none;
}

.app-menu-section:hover,
.app-menu-item:hover {
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.9);
}

.app-menu-item.active,
.app-menu-section:not(.collapsed) {
    background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
    color: var(--white);
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(21,88,168,0.35);
}

.app-menu-item.active::before,
.app-menu-section:not(.collapsed)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 18px;
    background: var(--blue-400);
    border-radius: 0 3px 3px 0;
}

.app-menu-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
}

.app-sidebar-footer {
    margin-top: auto;
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.07);
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(255,255,255,0.6);
}

.app-sidebar-footer:hover {
    background: rgba(255,255,255,0.06);
}

.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

.app-topbar {
    height: 64px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    padding: 0 28px;
    gap: 16px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.app-topbar-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-700);
    box-shadow: none;
}

.app-topbar-menu-toggle:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

.app-page-title {
    font-family: 'Oswald', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--blue-900);
}

.app-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.app-main-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 28px;
    background: linear-gradient(180deg, rgba(21,88,168,0.10) 0%, rgba(235,244,255,0.65) 35%, var(--off-white) 100%);
}

.app-main-body > .container,
.app-main-body > .container-fluid {
    padding-left: 0;
    padding-right: 0;
}

.app-main-body h1.h3,
.app-main-body h1.h4,
.app-main-body h1.h5 {
    font-family: 'Oswald', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--blue-900);
}

.app-footer {
    border-top: 1px solid var(--gray-200);
    background: var(--white);
    padding: 10px 28px;
    color: var(--gray-500);
    font-size: 12px;
}

.btn::before {
    content: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-family: 'Be Vietnam Pro', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.18s ease;
    border: 1px solid rgba(255,255,255,0.14);
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(10,22,40,0.22);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, rgba(10,22,40,0.96), rgba(16,58,107,0.94));
    color: rgba(255,255,255,0.92) !important;
    border-color: rgba(255,255,255,0.14);
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(16,58,107,0.96), rgba(10,22,40,0.96));
    border-color: rgba(255,255,255,0.18);
    box-shadow: 0 12px 34px rgba(10,22,40,0.30);
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(71,85,105,0.92), rgba(51,65,85,0.92));
    color: rgba(255,255,255,0.92) !important;
    border-color: rgba(255,255,255,0.14);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(51,65,85,0.95), rgba(30,41,59,0.95));
    border-color: rgba(255,255,255,0.18);
}

.btn-success {
    background: linear-gradient(135deg, rgba(11,107,87,0.95), rgba(14,165,164,0.90));
    color: rgba(255,255,255,0.92) !important;
    border-color: rgba(255,255,255,0.14);
}

.btn-success:hover {
    background: linear-gradient(135deg, rgba(8,94,78,0.97), rgba(11,107,87,0.95));
    border-color: rgba(255,255,255,0.18);
}

.btn-danger {
    background: linear-gradient(135deg, rgba(155,13,36,0.95), rgba(239,68,68,0.90));
    color: rgba(255,255,255,0.92) !important;
    border-color: rgba(255,255,255,0.14);
}

.btn-danger:hover {
    background: linear-gradient(135deg, rgba(120,10,30,0.98), rgba(155,13,36,0.95));
    border-color: rgba(255,255,255,0.18);
}

.btn-warning {
    background: linear-gradient(135deg, rgba(138,90,0,0.95), rgba(231,176,0,0.90));
    color: rgba(255,255,255,0.92) !important;
    border-color: rgba(255,255,255,0.14);
}

.btn-warning:hover {
    background: linear-gradient(135deg, rgba(110,72,0,0.98), rgba(138,90,0,0.95));
    border-color: rgba(255,255,255,0.18);
}

.btn-info {
    background: linear-gradient(135deg, rgba(30,111,217,0.92), rgba(14,165,233,0.88));
    color: rgba(255,255,255,0.92) !important;
    border-color: rgba(255,255,255,0.14);
}

.btn-info:hover {
    background: linear-gradient(135deg, rgba(16,58,107,0.96), rgba(30,111,217,0.92));
    border-color: rgba(255,255,255,0.18);
}

.btn-dark {
    background: linear-gradient(135deg, rgba(2,6,23,0.98), rgba(10,22,40,0.98));
    color: rgba(255,255,255,0.92) !important;
    border-color: rgba(255,255,255,0.14);
}

.btn-dark:hover {
    background: linear-gradient(135deg, rgba(10,22,40,0.98), rgba(2,6,23,0.98));
    border-color: rgba(255,255,255,0.18);
}

.btn-outline-primary {
    background: linear-gradient(135deg, rgba(85, 146, 237, 0.96), rgba(16,58,107,0.94));
    color: rgba(255,255,255,0.92) !important;
    border-color: rgba(255,255,255,0.14);
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, rgba(16,58,107,0.96), rgba(10,22,40,0.96));
    border-color: rgba(255,255,255,0.18);
}

.btn-outline-secondary {
    background: linear-gradient(135deg, rgba(71,85,105,0.92), rgba(51,65,85,0.92));
    color: rgba(255,255,255,0.92) !important;
    border-color: rgba(255,255,255,0.14);
}

.btn-outline-secondary:hover {
    background: linear-gradient(135deg, rgba(51,65,85,0.95), rgba(30,41,59,0.95));
    border-color: rgba(255,255,255,0.18);
}

.btn-outline-success {
    background: linear-gradient(135deg, rgba(11,107,87,0.95), rgba(14,165,164,0.90));
    color: rgba(255,255,255,0.92) !important;
    border-color: rgba(255,255,255,0.14);
}

.btn-outline-success:hover {
    background: linear-gradient(135deg, rgba(8,94,78,0.97), rgba(11,107,87,0.95));
    border-color: rgba(255,255,255,0.18);
}

.btn-outline-danger {
    background: linear-gradient(135deg, rgba(155,13,36,0.95), rgba(239,68,68,0.90));
    color: rgba(255,255,255,0.92) !important;
    border-color: rgba(255,255,255,0.14);
}

.btn-outline-danger:hover {
    background: linear-gradient(135deg, rgba(120,10,30,0.98), rgba(155,13,36,0.95));
    border-color: rgba(255,255,255,0.18);
}

.btn-outline-warning {
    background: linear-gradient(135deg, rgba(138,90,0,0.95), rgba(231,176,0,0.90));
    color: rgba(255,255,255,0.92) !important;
    border-color: rgba(255,255,255,0.14);
}

.btn-outline-warning:hover {
    background: linear-gradient(135deg, rgba(110,72,0,0.98), rgba(138,90,0,0.95));
    border-color: rgba(255,255,255,0.18);
}

.btn-outline-info {
    background: linear-gradient(135deg, rgba(16,58,107,0.96), rgba(14,165,233,0.88));
    color: rgba(255,255,255,0.92) !important;
    border-color: rgba(255,255,255,0.14);
}

.btn-outline-info:hover {
    background: linear-gradient(135deg, rgba(16,58,107,0.96), rgba(30,111,217,0.92));
    border-color: rgba(255,255,255,0.18);
}

.btn-outline-dark {
    background: linear-gradient(135deg, rgba(2,6,23,0.98), rgba(10,22,40,0.98));
    color: rgba(255,255,255,0.92) !important;
    border-color: rgba(255,255,255,0.14);
}

.btn-outline-dark:hover {
    background: linear-gradient(135deg, rgba(10,22,40,0.98), rgba(2,6,23,0.98));
    border-color: rgba(255,255,255,0.18);
}

.btn:disabled,
.btn.disabled {
    opacity: 0.55;
    transform: none;
    box-shadow: none;
}

.btn-link {
    border: none;
    background: transparent;
    box-shadow: none;
}

.app-topbar .btn.btn-link {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
}

.app-topbar .btn.btn-link:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}



.btn-sm {
    padding: 5px 11px;
    font-size: 12px;
    border-radius: var(--radius-sm);
}

.card,
.table-responsive,
.table-container {
    background: var(--white);
    border-radius: var(--radius-lg) !important;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card::before {
    content: none;
}

.card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
    border-color: var(--gray-200);
}

.card-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--gray-100);
    background: var(--white);
}

.table thead th {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-400);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 10.5px;
    letter-spacing: 1px;
    padding: 10px 16px;
    vertical-align: middle;
}

.table tbody td {
    padding: 12px 16px;
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
    font-size: 13px;
}

.table-bordered > :not(caption) > * {
    border-color: var(--gray-200);
}

.table-hover tbody tr:hover {
    background-color: var(--gray-50) !important;
    transform: none;
    box-shadow: none;
}

.list-group {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.list-group-item {
    border-color: var(--gray-100);
    padding: 12px 16px;
    color: var(--gray-700);
}

.list-group-item:hover {
    background: var(--gray-50);
}

.pagination .page-link {
    border-radius: var(--radius-sm);
    border-color: var(--gray-200);
    color: var(--gray-700);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
    border-color: transparent;
    box-shadow: var(--shadow-blue);
}

@media (min-width: 992px) {
    body:not(.sidebar-open) .app-sidebar {
        width: 84px;
        padding: 0;
        background: var(--blue-900);
        transition: width 0.18s ease;
    }

    body:not(.sidebar-open) .app-sidebar:hover {
        width: 260px;
        box-shadow: var(--shadow-lg);
        padding: 0;
        background: var(--blue-900);
    }

    body:not(.sidebar-open) .app-sidebar .app-brand {
        padding: 24px 14px;
    }

    body:not(.sidebar-open) .app-sidebar:hover .app-brand {
        padding: 28px 24px 24px;
    }

    body:not(.sidebar-open) .app-sidebar .app-brand-text-group,
    body:not(.sidebar-open) .app-sidebar .app-menu-text,
    body:not(.sidebar-open) .app-sidebar .app-sidebar-footer-label,
    body:not(.sidebar-open) .app-sidebar .bi-chevron-down {
        opacity: 0;
        visibility: hidden;
        transform: translateX(-6px);
        transition: opacity 0.15s ease, transform 0.15s ease;
    }

    body:not(.sidebar-open) .app-sidebar:hover .app-brand-text-group,
    body:not(.sidebar-open) .app-sidebar:hover .app-menu-text,
    body:not(.sidebar-open) .app-sidebar:hover .app-sidebar-footer-label,
    body:not(.sidebar-open) .app-sidebar:hover .bi-chevron-down {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    body:not(.sidebar-open) .app-sidebar .app-menu-section,
    body:not(.sidebar-open) .app-sidebar .app-menu-item {
        justify-content: center;
        padding-left: 10px;
        padding-right: 10px;
    }

    body:not(.sidebar-open) .app-sidebar:hover .app-menu-section,
    body:not(.sidebar-open) .app-sidebar:hover .app-menu-item {
        justify-content: flex-start;
        padding-left: 12px;
        padding-right: 12px;
    }

    body:not(.sidebar-open) .app-sidebar .app-menu-item {
        margin-left: 0;
    }

    body:not(.sidebar-open) .app-sidebar .collapse {
        display: none !important;
    }

    body:not(.sidebar-open) .app-sidebar:hover .collapse.show {
        display: block !important;
    }

    body:not(.sidebar-open) .app-sidebar-footer {
        justify-content: center;
        gap: 0;
    }

    body:not(.sidebar-open) .app-sidebar:hover .app-sidebar-footer {
        justify-content: space-between;
        gap: 12px;
    }
}

.form-control,
.form-select {
    border-radius: var(--radius-md);
    border: 1.5px solid var(--gray-200);
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--blue-900);
    background-color: var(--white);
    box-shadow: none;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--blue-400);
    box-shadow: 0 0 0 3px rgba(30,111,217,0.12);
    transform: none;
}

.input-group-text {
    border-radius: var(--radius-md);
    border: 1.5px solid var(--gray-200);
    background: var(--gray-100);
    color: var(--gray-500);
}

.overview-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

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

@media (max-width: 768px) {
    body {
        overflow: auto;
    }
    .app-shell {
        min-height: auto;
    }
    .app-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.2s ease;
        z-index: 1100;
    }
    body.sidebar-open .app-sidebar {
        transform: translateX(0);
    }
    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(10,22,40,0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
        z-index: 1090;
    }
    .sidebar-overlay.show {
        opacity: 1;
        pointer-events: auto;
    }
    .app-main-body {
        padding: 16px;
    }
    .app-topbar {
        padding: 0 16px;
    }
}
