/* ==========================================================================
   ValidityIQ Enterprise Core Layout CSS
   ========================================================================== */

:root {
    --fa-topbar-height: 60px;
    --fa-sidebar-width: 260px;
    --fa-sidebar-collapsed-width: 70px;
    /* Brand Theme Palette */
    --brand-primary: #000099;
    --brand-secondary: #0055ff;
    --brand-dark: #1e1e2f;
    --brand-light: #f8f9fa;
    --brand-border: #dddddd;
    --brand-side-bar: #E3E4FA;
    /* Functional Colors */
    --text-main: #333333;
    --text-muted: #6c757d;
    --bg-surface: #ffffff;
    --transition-speed: 0.25s;
    --side-icon-color: #29465B;
}


/* ==========================================================================
   Global Bootstrap Primary Overrides (.btn-primary Engine Transformation)
   ========================================================================== */

/* Overrides the baseline initialization state */
.btn-primary {
    background: linear-gradient(135deg, #7C9D8E 0%, #3C565B 100%) !important;
    border: 0px solid #0a58ca !important;
    color: #ffffff !important;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 7px 15px;
    border-radius: 8px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 2px 5px rgba(13, 110, 253, 0.15);
    /* Native physical timing transition logic for button expansion physics */
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

    /* Overrides focus, hover, and operational hover state shifts */
    .btn-primary:hover {
        background: linear-gradient(135deg, #00A36C 0%, #1B5448 100%) !important;
        border-color: #04419c !important;
        box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25) !important;
        transform: translateY(-1px);
    }

    /* Overrides active mouse down / execution click pressures */
    .btn-primary:active,
    .btn-primary:focus-visible {
        transform: translateY(1px) scale(0.97) !important;
        box-shadow: 0 1px 3px rgba(13, 110, 253, 0.15) !important;
        outline: none !important;
    }

    /* Overrides administrative system disabled scenarios */
    .btn-primary:disabled {
        background: #e9ecef !important;
        color: #adb5bd !important;
        border-color: #dee2e6 !important;
        cursor: not-allowed !important;
        transform: none !important;
        box-shadow: none !important;
    }



/* Base Global Utilities for Layout Wrapper */
.fa-layout-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: Arial, Helvetica, "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    background-color: #f4f6f9;
}

/* ==========================================================================
   1. Header / Top Bar Styles
   ========================================================================== */
.fa-top-bar {
    height: var(--fa-topbar-height);
    background-color: var(--bg-surface);
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    border-bottom: 1px solid var(--fa-brand-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.fa-brand-zone {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-primary);
    letter-spacing: -0.5px;
    margin-right: 1rem;
    user-select: none;
}

.fa-brand-zone  {
    color: var(--brand-secondary);
}

.fa-toggle-sidebar-btn {
    background: none;
    border: none;
    font-size: 1.35rem;
    color: var(--text-muted);
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all var(--transition-speed);
    margin-right: 1.5rem;
}

.fa-toggle-sidebar-btn:hover {
    background-color: var(--brand-light);
    color: var(--brand-primary);
}

/* Workspace Pill Badge */
.fa-context-pill {
    background-color: rgba(0, 0, 153, 0.07);
    color: var(--brand-primary);
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.825rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    margin-left: 1rem;
}

/* Top Bar Utilities - Right-Aligned Area */
.fa-top-bar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.marble-date-badge {
    background-color: var(--brand-light);
    border: 1px solid var(--fa-brand-border);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.action-icon-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-muted);
    position: relative;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-speed);
}

.action-icon-btn:hover {
    background-color: var(--brand-light);
    color: var(--brand-primary);
}

.notification-indicator {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 8px;
    height: 8px;
    background-color: #dc3545;
    border-radius: 50%;
    border: 1px solid var(--bg-surface);
}

/* ==========================================================================
   2. Reusable Dropdown System & Cards (Quick Access & Profile)
   ========================================================================== */

.dropdown-container {
    position: relative;
    display: inline-block;
}

/* Quick Access Trigger */
.btn-quick-access {
    background-color: var(--bg-surface);
    border: 1px solid var(--fa-brand-border);
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: border-color var(--transition-speed);
}

.btn-quick-access:hover {
    border-color: var(--brand-secondary);
    background-color: var(--brand-light);
}

.style-chevron {
    font-size: 0.75rem;
    transition: transform var(--transition-speed);
}

/* Standardized Base Dropdown Card Menu */
.dropdown-card-menu,
.profile-card-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background-color: var(--bg-surface);
    border: 1px solid var(--fa-brand-border);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 320px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity var(--transition-speed), transform var(--transition-speed), visibility var(--transition-speed);
    z-index: 1050;
}

.profile-card-dropdown {
    left: auto;
    right: 0;
    min-width: 280px;
}

/* Active Dropdown Display Classes */
.dropdown-card-menu.show,
.profile-card-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-card-header,
.profile-card-header {
    background-color: var(--brand-light);
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--brand-primary);
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    border-bottom: 1px solid var(--fa-brand-border);
}

/* Quick Access Grid Settings */
.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 1rem;
}

.quick-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.85rem;
    border: 1px solid transparent;
    border-radius: 6px;
    background-color: var(--brand-light);
    text-decoration: none !important;
    color: var(--text-main);
    transition: all var(--transition-speed);
}

.quick-grid-item:hover {
    background-color: rgba(0, 0, 153, 0.05);
    border-color: rgba(0, 0, 153, 0.15);
    transform: translateY(-2px);
}

.quick-grid-item span {
    font-size: 0.8rem;
    font-weight: 500;
}

.grid-icon-wrapper {
    font-size: 1.35rem;
    color: var(--brand-primary);
    margin-bottom: 0.25rem;
}

/* Avatar Components */
.avatar-trigger-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    border-radius: 50%;
}

.avatar-circle {
    width: 36px;
    height: 36px;
    background-color: var(--brand-primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    transition: opacity var(--transition-speed);
}

.avatar-trigger-btn:hover .avatar-circle {
    opacity: 0.9;
}

/* Advanced Profile Card Inner Configurations */
.profile-card-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem;
}

.profile-avatar-large {
    width: 48px;
    height: 48px;
    background-color: var(--brand-secondary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.15rem;
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.profile-name {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

.profile-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.profile-card-body {
    padding: 0.5rem 0;
}

.profile-section-title {
    font-size: 0.725rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem 0.25rem 1rem;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--text-main);
    text-decoration: none !important;
    transition: background-color var(--transition-speed);
}

.profile-menu-item i {
    font-size: 1rem;
    color: var(--text-muted);
    width: 1.25rem;
}

.profile-menu-item:hover {
    background-color: var(--brand-light);
    color: var(--brand-primary);
}

.profile-menu-item:hover i {
    color: var(--brand-primary);
}

.dropdown-divider {
    height: 1px;
    background-color: var(--fa-brand-border);
    margin: 0.5rem 0;
}

.logout-item {
    color: #dc3545;
}

.logout-item:hover {
    background-color: #fdf2f2;
    color: #dc3545;
}

.logout-item i {
    color: #dc3545;
}


/* ==========================================================================
   3. Workspace Layout Mechanics (Sidebar and Main Windows Container)
   ========================================================================== */

.fa-workspace-container {
    display: flex;
    flex: 1;
    margin-top: var(--fa-topbar-height);
    position: relative;
}

/* Sidebar Framework */
.fa-sidebar {
    width: var(--fa-sidebar-width);
    background-color: var(--bg-surface);
    border-right: 1px solid var(--fa-brand-border);
    box-shadow: 4px 0 8px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    top: var(--fa-topbar-height);
    bottom: 0;
    left: 0;
    z-index: 1020;
    transition: width var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

/* Handle Collapsed State Modifier */
.fa-sidebar.collapsed {
    width: var(--fa-sidebar-collapsed-width);
}

.sidebar-scroller {
    flex: 1;
    overflow-y: auto;
    padding-top: 1rem;
}

/* Navigation Heading Blocks */
.fa-nav-heading {
    font-size: 0.725rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    padding: 0.75rem 1.25rem 0.25rem 1.25rem;
    white-space: nowrap;
    transition: opacity var(--transition-speed);
}

.fa-sidebar.collapsed .fa-nav-heading {
    opacity: 0;
    pointer-events: none;
}

/* Main Sidebar Navigation Link Actions */
.fa-nav-item {
    display: flex;
    align-items: center;
    padding: 0.65rem 1.25rem;
    color: var(--text-main);
    text-decoration: none !important;
    font-size: 0.875rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    background: none;
    border-top: none;
    border-right: none;
    border-bottom: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.fa-nav-item span {
    white-space: nowrap;
    opacity: 1;
    transition: opacity var(--transition-speed);
}

.fa-sidebar.collapsed .fa-nav-item span {
    opacity: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none;
}

.nav-icon-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    border: solid #efefef 0.5px;
    border-radius: 50%;
    background-color: rgba(0, 0, 153, 0.05); /* Faint visual background circle */
    color: #778899;
    margin-right: 12px;
    transition: all 0.2s ease;
}

/* Rounded Very Faint Avatar Background for Sidebar Icons */
.nav-icon-avatar-round {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 20%;
    border: solid #efefef 0.5px;
    background-color: rgba(0, 0, 153, 0.05); /* Faint visual background circle */
    color: #778899;
    margin-right: 10px;
    transition: all 0.2s ease;
}


.fa-sidebar.collapsed .nav-icon-avatar .nav-icon-avatar-round {
    margin-right: 0;
}

/* Interactive States & Blazor .active handling */
.fa-nav-item:hover {
    background-color: var(--brand-side-bar);
    color: var(--brand-dark);
}

.fa-nav-item.active {
    background-color: var(--brand-side-bar);
    color: var(--brand-dark);
    font-weight: 600;
    border-left: solid 0px var(--brand-secondary);
    /*border-left-color: var(--brand-primary);*/
}

/* Multi-level Tree Component Items */
.fa-composite-trigger {
    justify-content: space-between;
}

.fa-composite-trigger .chevron {
    font-size: 0.75rem;
    transition: transform var(--transition-speed);
}

.fa-composite-trigger.open .chevron {
    transform: rotate(900deg); /* Visual Rotation down */
}

.fa-sidebar.collapsed .fa-composite-trigger .chevron {
    display: none;
}

.fa-sub-menu {
    list-style: none;
    padding: 0 0 0 calc(1.25rem + 24px);
    margin: 0;
    background-color: rgba(0, 0, 0, 0.01);
}

.fa-sidebar.collapsed .fa-sub-menu {
    display: none !important; /* Safety constraint for user workspace */
}

.fa-sub-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
    color: var(--text-main);
    text-decoration: none !important;
    font-weight: 500;
    transition: color var(--transition-speed);
}

.fa-sub-link i {
    font-size: 0.35rem; /* Turn the circle into a tidy bullet point */
    color: var(--text-muted);
}

.fa-sub-link:hover, 
.fa-sub-link.active {
    color: var(--brand-secondary);
}

.fa-sub-link:hover i, 
.fa-sub-link.active i {
    color: var(--brand-secondary);
}

/* Persistent Footer Section inside Sidebar */
.sidebar-footer-static {
    padding-bottom: 1rem;
    background-color: var(--bg-surface);
}

.footer-item {
    padding: 0.5rem 1.25rem;
}

.footer-text-stack {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    transition: opacity var(--transition-speed);
}

.footer-main-text {
    font-size: 0.8rem;
    font-weight: 600;
}

.footer-sub-text {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.fa-sidebar.collapsed .footer-text-stack {
    opacity: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none;
}


/* ==========================================================================
   4. Core Application Canvas Surface
   ========================================================================== */

.fa-main-content-surface {
    flex: 1;
    margin-left: var(--fa-sidebar-width);
    transition: margin-left var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 0; /* Prevents flex-items blowout */
}

.fa-main-content-surface.expanded {
    margin-left: var(--fa-sidebar-collapsed-width);
}

.content-body-padding {
    padding: 2rem;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .fa-sidebar {
        transform: translateX(-100%);
        width: var(--fa-sidebar-width) !important;
    }
    
    .fa-sidebar.collapsed {
        transform: translateX(0);
    }
    
    .fa-main-content-surface {
        margin-left: 0 !important;
    }
    
    .fa-context-pill {
        display: none;
    }
}

/* Base Structural Mechanics */
.fa-layout-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    /*font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;*/
}

.fa-top-bar {
    display: flex;
    align-items: center;
    height: 60px;
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 20px;
    z-index: 100;
    gap: 16px;
}

.fa-workspace-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Refined Sidebar Surface (Matching Off-Blue/Whitish Main Content area) */
.fa-sidebar {
    width: 260px;
    background-color: #f8fafc; /* Content Body matching off-blue/white */
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

    .fa-sidebar.collapsed {
        width: 68px;
    }

.sidebar-scroller {
    flex: 1;
    overflow-y: auto;
    padding-top: 12px;
}

/* Left and Right Pill Margin Layout Configuration */
.fa-nav-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 44px;
    margin: 4px 12px; /* Leaves clean margins on left and right side */
    padding: 0 10px;
    border-radius: 8px;
    color: #475569;
    text-decoration: none;
    background: transparent;
    border: none;
    width: calc(100% - 24px);
    transition: all 0.2s ease;
    cursor: pointer;
}

/* Rounded Very Faint Avatar Background for Sidebar Icons */
.nav-icon-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background-color: rgba(0, 0, 153, 0.05); /* Faint visual background circle */
    color: #000099;
    margin-right: 12px;
    transition: all 0.2s ease;
}

.fa-nav-item span {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.15s ease;
}

.fa-sidebar.collapsed .fa-nav-item span,
.fa-sidebar.collapsed .fa-nav-heading,
.fa-sidebar.collapsed .chevron,
.fa-sidebar.collapsed .footer-sub-text {
    display: none !important;
}

.fa-sidebar.collapsed .fa-nav-item {
    justify-content: center;
    padding: 0;
}

.fa-sidebar.collapsed .nav-icon-avatar {
    margin-right: 0;
}

/* Marble Color Transitions on Hover & Active States zzz */
/*.fa-nav-item:hover, .fa-nav-item.active {
    background-color: #A0D6B4;*/ /* Soft Light Marble Background Accent */
    /*color: #344054;*/ /* Slate/Polished Dark Marble Text Color */
/*}

    .fa-nav-item:hover .nav-icon-avatar, .fa-nav-item.active .nav-icon-avatar {
        background-color: rgba(52, 64, 84, 0.12);*/ /* Polished gray-marble avatar circle */
        /*color: #344054;
    }*/

.fa-nav-heading {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    padding: 16px 22px 6px 22px;
    font-weight: 700;
}

/* Composite Collapsible Setup Items styling */
.fa-composite-trigger {
    justify-content: space-between;
}

.chevron {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.fa-composite-trigger.open .chevron {
    transform: rotate(90deg);
}

.fa-sub-menu {
    list-style: none;
    padding: 2px 0 6px 0;
    margin: 0;
}

.fa-sub-link {
    display: flex;
    align-items: center;
    height: 32px;
    margin: 2px 12px 2px 24px;
    padding: 0 12px;
    color: #64748b;
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 6px;
    transition: all 0.2s;
}

    .fa-sub-link i {
        font-size: 0.35rem;
        margin-right: 10px;
        color: #cbd5e1;
    }

    .fa-sub-link:hover {
        background-color: #f2f4f7; /* Marble hover logic on sub-items */
        color: #344054;
    }

/* Static Footer Settings & Thicker Borders */
.sidebar-footer-static {
    padding: 8px 0;
    background-color: transparent;
}

/* Increased Thickness of the Top Border on Bottom Items */
.border-top-thick {
    border-top: 2px solid #e2e8f0 !important;
    border-radius: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    padding: 8px 16px !important;
    height: auto !important;
}

.footer-text-stack {
    display: flex;
    flex-direction: column;
}

.footer-main-text {
    font-size: 0.85rem;
    font-weight: 600;
}

.footer-sub-text {
    font-size: 0.72rem;
    color: #94a3b8;
}

/* Surface Application Viewports */
.fa-main-content-surface {
    flex: 1;
    background-color: #f8fafc;
    overflow-y: auto;
    transition: padding 0.25s ease;
}

.content-body-padding {
    padding: 24px;
}

/* Top Bar Elements Styling definitions */
.fa-brand-zone {
    font-weight: 800;
    font-size: 1.25rem;
    color: #0f172a;
    letter-spacing: -0.02em;
}

/*.brand-iq {
    color: #000099;
}*/

.fa-toggle-sidebar-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #475569;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
}

    .fa-toggle-sidebar-btn:hover {
        background-color: #f1f5f9;
    }

.fa-context-pill {
    background-color: #f1f5f9;
    color: #334155;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.fa-top-bar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.marble-date-badge {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.action-icon-btn {
    background: none;
    border: none;
    position: relative;
    font-size: 1.15rem;
    color: #475569;
    cursor: pointer;
}

.notification-indicator {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
}

/* Dropdown UI Cards styling architectures */
.dropdown-container {
    position: relative;
}

.btn-quick-access {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
}

.style-chevron {
    font-size: 0.7rem;
    color: #94a3b8;
}

.dropdown-card-menu, .profile-card-dropdown {
    position: absolute;
    top: 45px;
    left: 0;
    width: 280px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 110;
}

.profile-card-dropdown {
    left: auto;
    right: 0;
    width: 260px;
}

    .dropdown-card-menu.show, .profile-card-dropdown.show {
        display: block;
    }

.dropdown-card-header, .profile-card-header {
    padding: 12px 16px;
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 12px;
}

.quick-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    color: #475569;
    transition: background 0.15s;
}

    .quick-grid-item:hover {
        background-color: #f8fafc;
    }

.grid-icon-wrapper {
    width: 32px;
    height: 32px;
    background-color: #e0e7ff;
    color: #4f46e5;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    font-size: 1.1rem;
}

.quick-grid-item span {
    font-size: 0.78rem;
    font-weight: 500;
}

/* Account / Avatar configurations */
.avatar-trigger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.avatar-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: #000099;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.profile-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.profile-avatar-large {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #e0e7ff;
    color: #000099;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.profile-name {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
}

.profile-role {
    font-size: 0.72rem;
    color: #64748b;
}

.profile-card-body {
    padding: 8px 0;
}

.profile-section-title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    padding: 8px 16px 4px 16px;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    color: #475569;
    text-decoration: none;
    font-size: 0.85rem;
}

    .profile-menu-item:hover {
        background-color: #f8fafc;
        color: #1e293b;
    }

.dropdown-divider {
    height: 1px;
    background-color: #e2e8f0;
    margin: 6px 0;
}

.logout-item {
    color: #ef4444;
}

    .logout-item:hover {
        background-color: #fef2f2;
        color: #ef4444;
    }


.form-switch .form-check-input {
    width: 45px !important;
    height: 26px !important; /* Proportional height for a 25px width */
    margin-top: 0.25em;
    background-color: #B6B6B4 !important; /* Universal Gray for 'Off' */
    border-color: #B6B6B4 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e") !important;
    cursor: pointer;
    transition: background-position 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

    /* Universal 'On' state */
    .form-switch .form-check-input:checked {
        background-color: #659EC7 !important; /* Universal Blue for 'On' */
        border-color: #659EC7 !important;
        background-position: right center !important;
    }

    /* Focused state (glow effect) */
    .form-switch .form-check-input:focus {
        border-color: #659EC7;
        outline: 0;
        box-shadow: 0 0 0 0.25rem rgba(0, 0, 153, 0.15);
    }

/* Adjusting the label alignment for smaller switches */
.form-switch .form-check-label {
    cursor: pointer;
    padding-top: 2px;
    font-size: 0.9rem;
}

.summary-strip {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.summary-card {
    background: white;
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: 0 4px 14px rgba(0,0,0,.06);
}

.summary-label {
    font-size: .82rem;
    color: #6b7280;
    margin-bottom: 6px;
}

.summary-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
}

    .summary-value.money {
        color: #0f766e;
    }

    .summary-value.phase {
        color: #1d4ed8;
    }

    .summary-value.status {
        color: #b45309;
    }


.work-center,
.right-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.work-card,
.side-card {
    background: white;
}


.work-center,
.right-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Slightly narrower right */
.right-panel {
    min-width: 260px;
    max-width: 280px;
}

.work-card,
.side-card {
    background: white;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.hero-card {
    min-height: 240px;
}

/* Brighter, bolder headers */
.card-title {
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: .2px;
    margin-bottom: 14px;
}

}

.placeholder-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

    .placeholder-tabs button {
        border: none;
        border-radius: 14px;
        padding: 10px 14px;
        background: #eef4ff;
        font-weight: 700;
    }

.doc-placeholder {
    border: 2px dashed #cbd5e1;
    padding: 30px;
    border-radius: 16px;
    color: #64748b;
}

.snapshot-list,
.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .snapshot-list li,
    .check-list li {
        padding: 10px 0;
        border-bottom: 1px solid #eef2f7;
        color: #334155;
    }

    .snapshot-list span {
        font-weight: 700;
        color: #64748b;
        margin-right: 8px;
    }

.metric-box {
    background: #f8fafc;
    padding: 12px;
    border-radius: 14px;
    margin-top: 10px;
    color: #334155;
    font-weight: 700;
}

/* only stack on true small screens */
@media(max-width:700px) {
    .workspace-grid {
        grid-template-columns: 1fr;
    }

    .right-panel {
        max-width: none;
    }

    .left-pane-shadow {
        border-right: none;
        box-shadow: none;
        padding-right: 0;
    }
}

.file-no {
    font-size: .95rem;
    font-weight: 600;
    color: #475569;
}

.file-no-courier {
    padding: 6px 12px;
    border-radius: 12px;
    background: #728FCE; /*marble*/
    color: #fefefe; /*smoke white*/
    font-weight: 700;
}

/*This is the border used in the Appplication's pages Main work area*/
.z-wrk-area-card {
    max-width: 1280px;
    width: 100%;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 -5px 15px -6px rgba(0, 0, 0, 0.12), 0 -1px 3px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.soft-card {
    background: #ffffff;
    border-radius: 30px;
    border: 0px solid #e5e7eb;
    border-bottom: 0px;
    box-shadow: 0 5px 14px rgba(0,0,0,0.08);
    padding: 16px;
}


/* =========================================
   TOAST CONTAINER
========================================= */

.toast-container-custom {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 14px;
}


/* =========================================
   TOAST CARD
========================================= */

.toast-custom {
    min-width: 340px;
    max-width: 420px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border-radius: 14px;
    color: white;
    animation: toast-slide .25s ease;
    box-shadow: 0 12px 28px rgba(0,0,0,.16);
    backdrop-filter: blur(10px);
}


/* =========================================
   TOAST TYPES
========================================= */

.toast-success {
    /*background: linear-gradient( 135deg, #18a058, #128048);*/
    background: linear-gradient( 135deg, #14532d, #166534);
}




.toast-danger {
    background: linear-gradient( 135deg, #d64550, #bb2e3a);
}

.toast-warning {
    background: linear-gradient( 135deg, #f0a202, #d98f00);
}

.toast-info {
    background: linear-gradient( 135deg, #3f7ae0, #2e67cb);
}


/* =========================================
   ICON
========================================= */

.toast-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.14);
    font-size: 1.15rem;
    line-height: 1;
}


/* =========================================
   BODY
========================================= */

.toast-body-custom {
    flex: 1;
}


/* =========================================
   HEADER
========================================= */

.toast-header-custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}


/* =========================================
   TITLE
========================================= */

.toast-title {
    font-weight: 700;
    font-size: .98rem;
}


/* =========================================
   MESSAGE
========================================= */

.toast-message {
    font-size: .92rem;
    opacity: .96;
    line-height: 1.45;
}


/* =========================================
   CLOSE BUTTON
========================================= */

.toast-close {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,.14);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .18s ease;
    font-size: .72rem;
}

    .toast-close:hover {
        background: rgba(255,255,255,.24);
        transform: scale(1.05);
    }

    .toast-close:active {
        transform: scale(.96);
    }


/* =========================================
   ANIMATION
========================================= */

@keyframes toast-slide {

    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.header-shadow {
    position: relative;
    background-color: white;
    box-shadow: 0 1px 6px -2px #003366;
}

    .header-shadow::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient( to bottom, rgba(0, 51, 102, 0.25) 0%, rgba(0, 51, 102, 0.15) 40%, rgba(0, 51, 102, 0.05) 70%, rgba(0, 51, 102, 0) 100% );
        pointer-events: none;
    }




    /* =======================================================================================*/
    /* THE STYLES BELOW ARE FOR DATA INPUT FORMS CONTROL SETTINGS*/
    /* =======================================================================================*/

/* 1. Target your custom textbox elements (Slightly reduced) */
.form-control-compact {
    height: 31px !important;
    padding: 0.375rem 0.75rem !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    margin-top: 0px !important;
}

/* 2. Target the select tags nested inside your DDLookupComponent wrapper (Slightly increased) */
.lookup-dropdown-group .form-select-sm {
    height: 31px !important;
    padding-top: 0.375rem !important;
    padding-bottom: 0.375rem !important;
    padding-left: 0.75rem !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    margin-top: 0px !important;
}

.form-control-compact-textarea {
    height: auto !important; /* Prevents 36px restriction from truncating rows */
    min-height: 40px; /* Gives a comfortable default 3-row depth feel */
    width: 100% !important; /* Forces full container width starting from the left edge */
    display: block;
    margin-top: 0px !important;
}

/* 1. Fainter, professional slate-gray for labels */
.form-label-custom {
    color: #64748b !important; /* Fainter muted gray-blue */
    font-weight: 500 !important; /* Medium weight so it's readable but not aggressive */
    font-size: 0.84rem !important; /* Slightly smaller footprint */
    letter-spacing: 0.01em; /* Clean letter tracking */
    margin-bottom: 5px;
    display: inline-block;
    margin-bottom: 0px !important;
}

/* 2. Pronounced high-contrast text color for input fields */
.form-control-compact {
    color: #0f172a !important; /* Near-black deep navy/slate for maximum readability */
    font-weight: 600 !important; /* Bold/Semi-bold data entry look */
    background-color: #ffffff !important;
}

/* 3. Match the same pronounced text color for dropdown options */
.lookup-dropdown-group .form-select-sm {
    color: #0f172a !important; /* Matches textboxes exactly */
    font-weight: 600 !important;
}

/* 4. Ensure textarea inherits the same high-contrast data styling */
.form-control-compact-textarea {
    color: #0f172a !important;
    font-weight: 600 !important;
}

/* Make input placeholders look like actual hints */
.form-control-compact::placeholder {
    color: #bbbbbb !important;
    font-weight: 400 !important;
    font-size: 0.85rem !important;
}

/* De-emphasize the unselected first option in your DDLookup dropdown */
.lookup-dropdown-group select[value="0"],
.lookup-dropdown-group select option:first-child {
    color: #94a3b8 !important;
    font-weight: 400 !important;
}

form-control-compact:focus,
.lookup-dropdown-group .form-select-sm:focus {
    outline: none !important;
    border-color: #000099 !important;
    box-shadow: 0 0 0 3px rgba(0, 0, 153, 0.1) !important;
    background-color: #ffffff !important;
}

.input-disabled-bg {
    background-color: #e9ecef !important; /* Darker grey background */
    cursor: not-allowed;
}

.totals-bkg {
    border: solid 0px #cdcdcd !important; 
    background-color: #DBE9FA !important;
    color: #000080 !important;    
}
/* Blazor Server reconnect state */
#components-reconnect-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, .36);
}

#components-reconnect-modal.components-reconnect-show,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected {
    display: flex;
}

#components-reconnect-modal.components-reconnect-hide {
    display: none;
}

.viq-reconnect-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    max-width: 34rem;
    margin: 1rem;
    padding: 1rem 1.25rem;
    border-radius: .5rem;
    background: #fff;
    box-shadow: 0 .75rem 2rem rgba(15, 23, 42, .22);
}

#components-reconnect-modal:not(.components-reconnect-show) .components-reconnect-show,
#components-reconnect-modal:not(.components-reconnect-failed) .components-reconnect-failed,
#components-reconnect-modal:not(.components-reconnect-rejected) .components-reconnect-rejected {
    display: none;
}