﻿/* Global Styles for CUVM2 Web Application */

:root {
    --cuvm-purple: #8D4CC6;
    --cuvm-blue: #2F4FAA;
    --cuvm-body-background: #f5faff;
}

body {
    background-color: var(--cuvm-body-background);
}

a {
    color: #773B94;
}

.btn-link {
    font-weight: bold !important;
    color: var(--cuvm-purple);
}

.table-light th {
    font-weight: bold;
    font-size: 12px;
    opacity: .6;
}
/* Header and Navigation Layout*/

/* Reset for header and its children */
/* Header layout */
.header {
    width: 100%;
    background: linear-gradient(90deg, #2F4FAA 75%, #7B3F98);
}

.col-auto {
    display: flex;
    justify-content: center; /* horizontal center */
    align-items: center; /* vertical center if needed */
}

.header .row {
    min-height: 72px; /* Adjust based on your design needs */
}

/* TopNav styling */
.header .col.text-center nav,
.header .col.text-center ul {
    display: inline-block;
    background-color: transparent !important; /* Force transparent background */
}

    .header .col.text-center ul li {
        display: inline-block;
        margin: 0 10px;
    }

/* Ensure vertical alignment */
.header .row.align-items-center > div {
    display: flex;
    align-items: center;
}

/* For responsive design */
@media (max-width: 768px) {
    .header .row {
        flex-direction: column;
    }

    .header .col.text-center {
        margin: 10px 0;
    }
}

/* ===== HEADER ELEMENTS ===== */

/* Fix container-fluid to extend fully to edges */
.modern-header .container-fluid {
    width: 100%;
    height: 100%;
    padding-right: 0 !important; /* Remove right padding */
    max-width: none; /* Ensure no max-width constraint */
}

/* Logo container - left aligned, full height */
.header-logo {
    float: left;
    height: 79px;
    display: flex;
    align-items: center;
    padding-right: 5px; /* Space between logo and nav */
    background-color: transparent;
}

    .header-logo img {
        max-height: 65px;
        width: auto;
        vertical-align: middle;
    }

/* Navigation container - positioned to the right of logo */
.header-nav {
    float: left;
    height: 79px;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

/* Client logo container - right aligned */
.header-client {
    float: right;
    height: 79px;
    display: flex;
    align-items: center;
}

    .header-client img {
        max-height: 50px;
        width: auto;
        vertical-align: middle;
    }

/* ===== TOPNAV ELEMENTS ===== */

/* Fixed centering for modern header navigation */
.modern-header .col.header-nav.text-center {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-direction: column !important;
    float: none !important;
    text-align: center !important;
    height: 100% !important;
}

    /* Target all possible navigation containers in the modern header */
    .modern-header .col.header-nav.text-center > ul,
    .modern-header .col.header-nav.text-center > div > ul,
    .modern-header .col.header-nav.text-center > nav > ul,
    .modern-header .col.header-nav.text-center > * > * > ul {
        display: inline-flex !important;
        padding-left: 0 !important;
        margin: 0 auto !important;
        justify-content: center !important;
        float: none !important;
    }

    /* Target all navigation items */
    .modern-header .col.header-nav.text-center li {
        float: none !important;
        display: inline-flex !important;
    }


/* ===== MAIN CONTENT ===== */

/* Main content container */
main.container, #main-content, .content-main {
    clear: both !important; /* Force clear any floats */
    display: block !important; /* Ensure block display */
    position: relative !important; /* Add positioning context */
    padding: 15px 30px 15px 30px;
    width: 100%;
    max-width: 1850px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    z-index: 1; /* Ensure content is below header in stacking context */
}

    /* Add clearfix for main content to prevent float issues */
    main.container:before,
    #main-content:before,
    .content-main:before {
        content: "";
        display: table;
        clear: both;
    }

/* Class for wrapping main content after the header */
.after-header {
    clear: both !important;
    display: block !important;
    width: 100% !important;
}

/* ===== HEADER CLEARFIX ===== */

/* Clear the floats inside header */
.header:after, .legacy-header:after {
    content: "";
    display: table;
    clear: both;
}

/* ===== MEDIA QUERIES ===== */

/* Mobile adjustments */
@media (max-width: 767px) {
    /* Header becomes taller on mobile */
    .header, .legacy-header {
        height: auto;
        min-height: 79px;
        padding: 10px 15px;
        margin-bottom: 10px;
    }

    .header-logo,
    .header-nav,
    .header-client {
        float: none;
        display: block;
        width: 100%;
        height: auto;
        text-align: center;
        margin: 5px 0;
    }

    .header-logo {
        padding-right: 0;
    }

    .header-nav ul,
    .topnav,
    #topnav,
    .top-nav,
    #top-nav,
    .header-nav > ul {
        padding: 0 !important;
        justify-content: center !important;
    }

    /* Ensure main content has proper spacing on mobile */
    main.container, #main-content, .content-main {
        margin-top: 15px !important;
    }

    /* This creates a visible separator between header and content on mobile */
    .after-header {
        border-top: 1px solid #eee;
        margin-top: 5px;
        padding-top: 5px;
    }
}

/* If TopNav adds wrapping elements */
.header-nav > div,
.header-nav > span {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

/* If TopNav is inside another container */
.header-nav div ul {
    display: inline-flex !important;
    align-items: center !important;
}

.header-content-separator {
    display: block;
    clear: both;
    width: 100%;
    height: 0;
    line-height: 0;
    font-size: 0;
    margin: 0;
    padding: 0;
    border: none;
}

/* ===== MODERN HEADER WITH GRADIENT BACKGROUND ===== */
.modern-header {
    background: linear-gradient(90deg, #2F4FAA 75%, #7B3F98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    /*padding-bottom: 10px;*/
    position: relative;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
}

    /* Row layout for modern header */
    .modern-header .row.align-items-center {
        display: flex;
        flex-wrap: nowrap;
        height: 60px;
        width: 100%;
        align-items: center !important; /* Force vertical centering */
    }

    /* ===== LOGO STYLES ===== */
    .modern-header .header-logo {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        height: 100%;
        float: none;
        padding-left: 50px;
    }

        .modern-header .header-logo a {
            display: flex;
            align-items: center;
            text-decoration: none;
        }

        .modern-header .header-logo .logo {
            max-height: 40px;
            width: auto;
            transition: transform 0.3s ease;
            /* Ensures logo has transparent background */
            background-color: transparent;
        }

            .modern-header .header-logo .logo:hover {
                transform: scale(1.05);
            }

/* ===== NAVIGATION STYLES ===== */
.header ul {
    float: left;
    margin: 0px;
    padding: 0 250px;
    width: 100%;
    /* min-width: 1000px; -- Removed to allow dynamic sizing based on content */
    min-height: 72px;
    background: #102e69;
    position: absolute;
    left: 0;
    top: 0;
}

.modern-header .header-nav {
    flex: 1;
    overflow-x: auto;
    min-width: 0; /* Important to allow proper shrinking */
    padding-right: 15px;
    padding-left: 15px;
    display: flex;
    justify-content: center !important; /* Center the content horizontally */
    align-items: center;
}

    .modern-header .header-nav::-webkit-scrollbar {
        display: none; /* Hide scrollbar in Chrome, Safari and Opera */
    }

/* Navigation menu styles moved to header.css to avoid duplication */

/* ===== USER INFORMATION STYLES ===== */
.modern-header .header-user {
    display: flex;
    justify-content: flex-end;
    align-items: center !important; /* Force vertical centering */
    float: none;
    height: 100% !important;
    padding-right: 15px;
    margin-left: auto;
    /* Add these properties to ensure vertical centering */
    align-self: center !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

    .modern-header .header-user .user-info {
        color: #ffffff;
        font-weight: 500;
        display: flex;
        align-items: center;
        white-space: nowrap;
    }

    .modern-header .header-user .user-name {
        margin: 0 10px;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* User icon styling */
    .modern-header .header-user .fa-user-circle {
        font-size: 18px;
        color: rgba(255, 255, 255, 0.9);
    }

/* User welcome styling with initials circle */
.user-info-container {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

.user-initials-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #717680;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 10px;
    font-size: 14px;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease;
}

.user-welcome-text {
    color: white;
    /* Text sm/Semibold */ /*
    font-family: var(--Font-family-font-family-body, Inter);*/
    font-size: var(--Font-size-text-sm, 14px);
    font-style: normal;
    font-weight: 600;
    line-height: var(--Line-height-text-sm, 20px); /* 142.857% */
    padding-right: 5px;
    ;
}

/* User profile popup styling */
.user-profile-wrapper {
    position: relative;
    cursor: pointer;
}

.user-profile-popup {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    border-radius: 4px;
    padding: 5px 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    white-space: nowrap;
    z-index: 1000;
    margin-top: 5px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

    .user-profile-popup:after {
        content: '';
        position: absolute;
        top: -5px;
        left: 50%;
        margin-left: -5px;
        width: 0;
        height: 0;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-bottom: 5px solid white;
    }

    .user-profile-popup a {
        color: #2a4b8d;
        text-decoration: none;
        font-weight: 600;
        font-size: 14px;
    }

        .user-profile-popup a:hover {
            text-decoration: underline;
        }

/* Show popup on hover */
.user-profile-wrapper:hover .user-profile-popup {
    opacity: 1;
    visibility: visible;
}

.user-profile-wrapper:hover .user-initials-circle {
    transform: scale(1.05);
}

/* Ensure consistent height across user elements */
.user-welcome-text,
.user-initials-circle,
.modern-header .header-user .btn-outline-light {
    margin-top: auto !important;
    margin-bottom: auto !important;
}

.modern-header .user-info-container {
    height: 100%;
    display: flex;
    align-items: center;
}

.modern-header .user-welcome {
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Logout text - can be hidden on smaller screens */
.modern-header .logout-text {
    display: inline-block;
    margin-left: 3px;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
/* Navigation responsive styles moved to header.css to avoid duplication */

/* Fix for any potential spacing issues */
.modern-header * {
    box-sizing: border-box;
}

/* ===== Buttons ===== */

/* Purple Button */
.purple-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px !important;
    background: var(--cuvm-purple) !important;
    color: white !important;
    border: 1px solid var(--cuvm-purple) !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.purple-button:disabled {
    background: gray !important;
}

    .purple-button:hover {
        background: #7b3eb1 !important;
        border-color: #7b3eb1 !important;
    }

    .purple-button img {
        width: 16px;
        height: 16px;
    }

.btn.btn-primary {
    background: var(--cuvm-purple);
    border-color: var(--cuvm-purple);
    color: white !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.btn.btn-primary:hover {
    background: #7b3eb1;
    border-color: #7b3eb1;
    color: white;
}

.btn.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    background: #FFF;
    color: #414651;
    border: 1px solid #D5D7DA;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 0px 0px 0px 1px rgba(10, 13, 18, 0.18);
}

.btn.btn-secondary:hover {
    background: #E9EAEB;
    border-color: #A4A7AE;
    color: #414651;
    text-decoration: none;
}

.btn.btn-secondary:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(65, 70, 81, 0.2);
}

.btn.btn-secondary:active {
    background: #D5D7DA;
    border-color: #A4A7AE;
    transform: translateY(1px);
}

/* Dashboard Table Styles (Task Dashboard) */
.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e7e7e7;
    margin: 0 auto 20px auto;
    background: #fff;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

    .dashboard-table th {
        background: #fff !important;
        color: #717680 !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        padding: 8px 10px;
        border: 1px solid #e7e7e7;
        text-align: left;
    }

        .dashboard-table th a {
            color: #717680 !important;
            font-size: 12px !important;
            font-weight: 600 !important;
        }

    .dashboard-table td {
        font-size: 14px !important;
        font-weight: 500 !important;
        padding: 8px 10px;
        border: 1px solid #e7e7e7;
        word-break: break-word;
    }

    .dashboard-table tr.row-alt,
    .dashboard-table tr:nth-child(even) {
        background-color: #f8f9fa;
    }

    .dashboard-table tr:nth-child(odd) {
        background-color: #ffffff;
    }

    .dashboard-table .text-wrap {
        white-space: normal;
        word-break: break-word;
        max-width: 400px;
    }

    .dashboard-table .col-actions {
        width: 60px;
        text-align: center;
    }

    .dashboard-table .col-lg {
        width: 140px;
    }

    .dashboard-table .col-md {
        width: 120px;
    }

    .dashboard-table .col-sm {
        width: 100px;
    }

    .dashboard-table .col-xs {
        width: 80px;
    }

.dashboard-actions-menu {
    position: relative;
    display: inline-block;
}

.dashboard-actions-trigger {
    width: 20px;
    height: 20px;
    cursor: pointer;
    vertical-align: middle;
}

.dashboard-actions-popup {
    display: none;
    position: absolute;
    left: -60px; /* adjust as needed for your layout */
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    padding: 6px 8px;
    z-index: 100;
    min-width: 40px;
    white-space: nowrap;
}

.dashboard-actions-popup i {
    padding: 4px;
}

.dashboard-action-icon {
    margin: 0 4px;
    cursor: pointer;
    vertical-align: middle;
}

.dashboard-actions-menu.open .dashboard-actions-popup {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Action button color classes */
.action-complete {
    filter: brightness(0) saturate(100%) invert(64%) sepia(37%) saturate(481%) hue-rotate(75deg) brightness(94%) contrast(86%);
}

.action-complete:hover {
    filter: brightness(0) saturate(100%) invert(47%) sepia(99%) saturate(371%) hue-rotate(75deg) brightness(95%) contrast(86%);
}

.action-reassign {
    filter: brightness(0) saturate(100%) invert(72%) sepia(15%) saturate(1650%) hue-rotate(150deg) brightness(103%) contrast(86%);
}

.action-reassign:hover {
    filter: brightness(0) saturate(100%) invert(52%) sepia(45%) saturate(1650%) hue-rotate(150deg) brightness(98%) contrast(86%);
}

.action-cancel {
    filter: brightness(0) saturate(100%) invert(37%) sepia(93%) saturate(588%) hue-rotate(332deg) brightness(92%) contrast(96%);
}

.action-cancel:hover {
    filter: brightness(0) saturate(100%) invert(27%) sepia(93%) saturate(1200%) hue-rotate(332deg) brightness(85%) contrast(96%);
}

.sort-icon {
    width: 12px;
    height: 12px;
    vertical-align: middle;
    margin-left: 4px;
}

.cluetip-ajax-basic {
    color: inherit;
    text-decoration: none;
}

/* Styling for modern cluetips */
.cluetip-modern #cluetip-outer {
    border: 1px solid #D5D7DA;
    background-color: #FFF;
    border-radius: 8px;
    box-shadow: 0px 1px 2px 0px rgba(10, 13, 18, 0.05);
}

.cluetip-modern h3#cluetip-title {
    background-color: #F8F9FA; /* Light background for header */
    color: #414651;
    border-bottom: 1px solid #E7E7E7;
    padding: 8px 12px;
    font-size: 16px;
    font-weight: 600;
}

.cluetip-modern #cluetip-inner {
    padding: 12px 16px;
    color: #414651;
    font-size: 14px;
    line-height: 20px;
}

.cluetip-modern .cluetip-arrows {
    display: none; /* Hide default arrows for a cleaner modern look */
}


/* ===== PAGINATION STYLES ===== */
.pagination-container {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
    padding: 0 10px; /* Match table cell padding */
    min-width: 800px;
    max-width: 1200px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative; /* Add this to help with positioning */
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination-link,
.pagination-current,
.pagination-ellipsis {
    display: inline-block;
    min-width: 28px;
    text-align: center;
    padding: 4px 8px;
    margin: 0 2px;
    border-radius: 4px;
    vertical-align: middle;
}

.pagination-link {
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
}

    .pagination-link:hover {
        background: #e0e0e0;
    }

.pagination-current {
    background: #673ab7;
    /*color: #fff;*/
    color: white !important;
    font-weight: bold;
}

.pagination-ellipsis {
    color: #888;
    pointer-events: none;
    background: none;
}

.pagination-prev,
.pagination-next {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #414651;
    position: relative;
    z-index: 1;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #D5D7DA;
    background: #FFF;
    box-shadow: 0px 0px 0px 1px rgba(10, 13, 18, 0.18) inset, 0px -2px 0px 0px rgba(10, 13, 18, 0.05) inset, 0px 1px 2px 0px rgba(10, 13, 18, 0.05);
}

    .pagination-prev img,
    .pagination-next img {
        width: 16px;
        height: 16px;
    }

    .pagination-prev.disabled,
    .pagination-next.disabled {
        color: #A4A7AE;
        cursor: not-allowed;
        border-color: #D5D7DA;
        background: #F5F5F5;
    }

.pagination > .disabled > span {
    background-color: transparent;
}

    .pagination > .disabled > span:hover {
        background-color: transparent;
    }

.pagination-prev.disabled img,
.pagination-next.disabled img {
    opacity: 0.5;
}

/* Keep existing styles for page numbers */
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

/*.pagination-current {
    background-color: #007bff;
    color: white !important;
}*/

/*.pagination-ellipsis {
    color: #666;
}*/

.mb-3 {
    padding-bottom: 20px;
}

.field-validation-error {
    color: #a94442;
}

/* ---------- Toast Notification Styles ---------- */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    pointer-events: none;
}

.toast {
    /*background: #22C55E;*/
    color: white;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    min-width: 300px;
    pointer-events: auto;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .toast.show {
        opacity: 1;
        transform: translateX(0);
    }

    .toast.toast-success {
        background: #3B82F6; /* #22C55E*/
    }

    .toast.toast-error {
        background: #EF4444;
    }

    .toast.toast-warning {
        background: #F59E0B;
    }

    .toast.toast-info {
        background: #3B82F6;
    }

.toast-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

    .toast-icon img {
        width: 24px;
        height: 24px;
        margin: 5px;
        color: white;
    }

.toast-message {
    flex: 1;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    font-size: 18px;
    line-height: 1;
    opacity: 0.8;
    margin-left: 10px;
    float: right;
}

    .toast-close:hover {
        opacity: 1;
    }

/* Responsive adjustments for toast */
@media (max-width: 480px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: auto;
        width: 100%;
    }
}


/* jQuery UI Autocomplete Styles for Modal */
.ui-autocomplete {
    z-index: 9999 !important;
    max-height: 200px;
    overflow-y: auto;
    font-size: 14px;
}

.ui-menu-item {
    padding: 8px 12px;
}

.ui-menu-item-wrapper {
    padding: 8px 12px;
}

.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active {
    background: #8D4CC6 !important;
    border: 1px solid #8D4CC6 !important;
    color: white !important;
}

/* Shared risk pill and dot styles */
.risk-score-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs, 4px);
    padding: var(--spacing-xxs, 2px) var(--spacing-sm, 6px);
    border-radius: var(--radius-sm, 6px);
    border: 1px solid var(--Colors-Border-border-primary, #D5D7DA);
    background: var(--Colors-Background-bg-primary, #FFF);
    box-shadow: 0px 1px 2px 0px var(--Colors-Effects-Shadows-shadow-xs, rgba(10, 13, 18, 0.05));
    width: fit-content;
    margin: 0 auto;
}

.risk-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
}

/* === Shared Modern Filter Flyout Styles === */

.filter-flyout {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: #FFF;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

    .filter-flyout.open {
        right: 0;
    }

.filter-flyout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #E7E7E7;
}

.filter-flyout-title {
    font-size: 18px;
    font-weight: 600;
    color: #414651;
}

.filter-flyout-close {
    cursor: pointer;
    padding: 8px;
}

.filter-flyout-content {
    padding: 16px;
}

.filter-flyout-section {
    margin-bottom: 24px;
}

    .filter-flyout-section h4 {
        font-size: 16px;
        font-weight: 600;
        color: #414651;
        margin-bottom: 12px;
    }

    .filter-flyout-section div > label {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .filter-flyout-section input[type="checkbox"] {
        margin-right: 0;
    }

.filter-flyout-footer {
    position: sticky;
    bottom: 0;
    padding: 16px;
    background: #FFF;
    border-top: 1px solid #E7E7E7;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.filter-flyout-button {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .filter-flyout-button.cancel {
        border: 1px solid #D5D7DA;
        background: #FFF;
        color: #414651;
    }

    .filter-flyout-button.apply {
        border: 1px solid #2F4FAA;
        background: #2F4FAA;
        color: #FFF;
    }

    .filter-flyout-button:hover {
        opacity: 0.9;
    }

.filter-flyout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .filter-flyout-overlay.open {
        opacity: 1;
        visibility: visible;
    }

body.filter-flyout-active .header .user-welcome,
body.filter-flyout-active .header .header-user {
    display: none !important;
}

.filter-flyout select {
    display: flex;
    padding: 8px 12px;
    align-items: center;
    gap: 8px;
    align-self: stretch;
    border-radius: 8px;
    border: 1px solid #D5D7DA;
    background: #FFF;
    box-shadow: 0px 1px 2px 0px rgba(10, 13, 18, 0.05);
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('../img/chevron-down.svg');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 32px;
    cursor: pointer;
    overflow: hidden;
    color: #717680;
    text-overflow: ellipsis;
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
}

    .filter-flyout select:focus {
        outline: none;
        border-color: #2F4FAA;
        box-shadow: 0 0 0 2px rgba(47, 79, 170, 0.2);
    }

/* Custom styled checkboxes for filter-flyout-section */
.filter-flyout-section .checkbox.taskFilter {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

    .filter-flyout-section .checkbox.taskFilter + span.custom-checkbox {
        display: flex;
        width: 16px;
        height: 16px;
        padding: 2px;
        justify-content: center;
        align-items: center;
        border-radius: 4px;
        background: transparent;
        border: 2px solid #D5D7DA;
        transition: background 0.2s, border-color 0.2s;
        margin-right: 8px;
        box-sizing: border-box;
    }

    .filter-flyout-section .checkbox.taskFilter:checked + span.custom-checkbox {
        background: #9457B1;
        border: 2px solid #9457B1;
    }

        .filter-flyout-section .checkbox.taskFilter:checked + span.custom-checkbox::after {
            content: '';
            display: block;
            width: 8px;
            height: 8px;
            border-radius: 2px;
            background: white;
            mask: url('data:image/svg+xml;utf8,<svg width="8" height="8" viewBox="0 0 8 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2 4.5L4 6.5L6 2.5" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/contain no-repeat;
        }

    .filter-flyout-section .checkbox.taskFilter + span.custom-checkbox::after {
        content: '';
        display: block;
        width: 8px;
        height: 8px;
        border-radius: 2px;
        background: transparent;
    }

.contract-filter-flyout-content > .dashboard-menu {
    margin-top: 50px;
    width: 100%;
    display: block;
    clear: both;
}

.filter-flyout-section ul.dashboard-menu {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

    .filter-flyout-section ul.dashboard-menu li {
        list-style: none;
        margin-left: 0;
        padding-left: 0;
    }

.filter-flyout-section ul.dashboard-menu label,
.filter-flyout-section .custom-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.contract-details-button-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 0 auto;
    width: fit-content;
}

input[type=radio], input[type=checkbox] {
    height: 20px;
    width: 20px;
    accent-color: var(--cuvm-purple);
    margin-right: .3rem;
    vertical-align: middle;
}


.button-group-right {
    display: flex;
    justify-content: right;
    gap: 12px;
}

.contract-details-button-row.right {
    justify-content: right;
}

/* Filter Button and Flyout Styles */
.filter-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #D5D7DA;
    background: #FFF;
    color: #414651;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0px 1px 2px 0px rgba(10, 13, 18, 0.05);
    transition: all 0.2s ease;
}

.filter-button:hover {
    background: #F5F5F5;
}

.filter-button img {
    width: 16px;
    height: 16px;
}


.dropdown-select {
    display: flex;
    padding: 8px 12px;
    align-items: center;
    gap: 8px;
    align-self: stretch;
    border-radius: 8px;
    border: 1px solid #D5D7DA;
    background: #FFF;
    box-shadow: 0px 1px 2px 0px rgba(10, 13, 18, 0.05);
    width: 100%; /* Ensure it takes full width */
    -webkit-appearance: none; /* Remove default arrow for Chrome/Safari */
    -moz-appearance: none; /* Remove default arrow for Firefox */
    appearance: none; /* Remove default arrow */
    background-image: url('../img/chevron-down.svg'); /* Custom arrow image referenced relative to the CSS file */
    background-repeat: no-repeat;
    background-position: right 12px center; /* Position the arrow */
    background-size: 16px; /* Size the arrow image */
    padding-right: 32px; /* Make space for the arrow so text doesn't overlap */
    cursor: pointer;
    /* Text styling */
    overflow: hidden;
    color: #717680;
    text-overflow: ellipsis;
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
}

.form-check-input:checked {
    background-color: var(--cuvm-purple);
    border-color: var(--cuvm-purple) ;
}

.form-check-input[type=checkbox]:indeterminate {
    background-color: var(--cuvm-blue);
    border-color: var(--cuvm-blue);
}

.row-action-button, .dashboard-actions-popup a {
    margin-right: 5px;
    font-size: 1.3rem !important;
    color: black;
    opacity: .5;
}

.dashboard-table .actions-col {
    width: 50px;
    min-width: 50px;
    max-width: 50px;
    text-align: center;
    white-space: nowrap;
}

#cboxLoadedContent {
    margin-bottom: 5px !important;
}

.input-validation-error {
    background-color: var(--bs-danger-border-subtle);
}


.color-box-modal-template {
    background-color: white;
}

.font-bold {
    font-weight: bold;
}