:root {
    --brand-primary: #0c69b0;
    --brand-warning: #ad1723; /* standard burgundy */
    --brand-red: #d82424; /* standard red */
    --brand-lightgray: #f5f5f5; /* standard light gray */
    --brand-darkgray: #212131; /* standard dark gray */
    --brand-deepblue: #111122; /* standard deep blue */

    /* standard blue gradient */
    --brand-blue-start: #002f6c;
    --brand-blue-end: #3190d9;

    --bs-primary: var(--brand-primary);
    --bs-primary-rgb: 12, 105, 176;
    --bs-link-color: var(--brand-primary);

    /* Light mode secondary palette (defaults) */
    --brand-secondary-bg: #ffffff;
    --brand-secondary-color: #0c69b0;
    --brand-secondary-border: #cccccd;

    /* Active/persistent highlight colors */
    --active: rgba(59, 130, 246, 0.1); /* Light blue background */
    --activeBorder: #3b82f6; /* Blue border */
}

[data-bs-theme="dark"] {
    /* Secondary - dark theme */
    --brand-secondary-bg: #111122;
    --brand-secondary-color: #00a3e0;
    --brand-secondary-border: #666666;

    /* Active/persistent highlight colors - dark mode */
    --active: rgba(96, 165, 250, 0.15); /* Lighter blue background for dark mode */
    --activeBorder: #60a5fa; /* Lighter blue border for dark mode */
}

/* =========================================
   Primary button (unchanged; brand-driven)
   ========================================= */
.btn-primary {
    --bs-btn-bg: var(--brand-primary);
    --bs-btn-color: #fff;
    --bs-btn-border-color: var(--brand-primary);
    --bs-btn-hover-bg: #0a5c9d;
    --bs-btn-hover-border-color: #0a5c9d;
    --bs-btn-active-bg: #094f88;
    --bs-btn-active-border-color: #094f88;
    --bs-btn-focus-shadow-rgb: 12, 105, 176; /* RGB of #0c69b0 */
}

/* =========================================
    Secondary button - light & dark aware
   Reverted to prior good baseline; only dark base border + hover tweak
   ========================================= */
.btn-secondary {
    /* Base (resolved per theme) */
    --bs-btn-bg: var(--brand-secondary-bg);
    --bs-btn-color: var(--brand-secondary-color);
    --bs-btn-border-color: var(--brand-secondary-border);
    /* Hover: border should match text color */
    --bs-btn-hover-bg: #f2f2f3; /* subtle in light; overridden in dark below */
    --bs-btn-hover-color: var(--brand-secondary-color);
    --bs-btn-hover-border-color: var(--brand-secondary-color);
    /* Active: keep the same text color; keep border as base unless specified */
    --bs-btn-active-bg: #e6e6e7; /* light mode subtle step */
    --bs-btn-active-color: var(--brand-secondary-color);
    --bs-btn-active-border-color: var(--brand-secondary-border);
    /* Focus ring tuned to light secondary text color (0c69b0) */
    --bs-btn-focus-shadow-rgb: 12, 105, 176;
}

/* =========================================
   Danger button - uses brand warning color
   ========================================= */
   .btn-danger {
    --bs-btn-bg: var(--brand-warning);
    --bs-btn-color: #fff;
    --bs-btn-border-color: var(--brand-warning);
    --bs-btn-hover-bg: #8f1320;
    --bs-btn-hover-border-color: #8f1320;
    --bs-btn-active-bg: #7a101b;
    --bs-btn-active-border-color: #7a101b;
    --bs-btn-focus-shadow-rgb: 173, 23, 35; /* RGB of #ad1723 */
}

/* Dark-mode interaction tweaks for secondary */
[data-bs-theme="dark"] .btn-secondary {
    /* Base border comes from --brand-secondary-border (#666666) */
    --bs-btn-hover-bg: #0d0d19; /* subtle lighten of #111122 for hover */
    --bs-btn-hover-color: var(--brand-secondary-color);
    --bs-btn-hover-border-color: var(--brand-secondary-color); /* match text */
    /* Active: keep text color; keep border as base (#666666) */
    --bs-btn-active-bg: #0a0a14; /* subtle darkening */
    --bs-btn-active-color: var(--brand-secondary-color);
    --bs-btn-active-border-color: var(--brand-secondary-border);
    /* Dark focus ring based on secondary text color (#00a3e0) */
    --bs-btn-focus-shadow-rgb: 0, 163, 224;
}

/* Optional: consistent disabled styling */
.btn-secondary:disabled,
.btn-secondary.disabled {
    --bs-btn-bg: var(--brand-secondary-bg);
    --bs-btn-color: var(--brand-secondary-color);
    --bs-btn-border-color: var(--brand-secondary-border);
    opacity: 0.6;
}



/* fixes dark theme for syncfusion tables */
[data-bs-theme="dark"] .syncfusion-grid-container .e-grid .e-gridheader th.e-headercell,
[data-bs-theme="dark"] .e-grid .e-row:hover,
[data-bs-theme="dark"] .syncfusion-grid-container .e-grid .e-row:hover .e-rowcell {
    background-color: var(--bs-tertiary-bg) !important;
    color: var(--bs-light) !important;
}

.syncfusion-grid-container .decision-frame-link:hover,
[data-bs-theme="dark"] .syncfusion-grid-container .decision-frame-link:hover {
    color: var(--brand-secondary-color);
    text-decoration: underline;
}

.decision-frame-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.1s ease-in-out;
}

.syncfusion-grid-container .btn-link,
.syncfusion-grid-container .e-pager .e-currentitem,
.syncfusion-grid-container .e-pager .e-currentitem:hover,
.syncfusion-grid-container .e-pager .e-numericitem,
.syncfusion-grid-container .e-pager .e-numericitem:hover,
.syncfusion-grid-container .e-pager div.e-icons.e-pager-default,
[data-bs-theme="dark"] .syncfusion-grid-container .btn-link,
[data-bs-theme="dark"] .syncfusion-grid-container .e-pager .e-currentitem,
[data-bs-theme="dark"] .syncfusion-grid-container .e-pager .e-currentitem:hover,
[data-bs-theme="dark"] .syncfusion-grid-container .e-pager .e-numericitem,
[data-bs-theme="dark"] .syncfusion-grid-container .e-pager .e-numericitem:hover,
[data-bs-theme="dark"] .syncfusion-grid-container .e-pager div.e-icons.e-pager-default 
{
    color: var(--brand-secondary-color);
}

/* Comprehensive focus removal for Syncfusion grid headers */
.e-grid .e-gridheader .e-headercell.e-focused,
.e-grid .e-gridheader .e-headercell:focus,
.e-grid .e-gridheader .e-headercell.e-focus {
    outline: 0 !important;
    box-shadow: none !important;
    border-color: inherit !important;
}

/* Remove focus from grid cells */
.e-grid .e-rowcell.e-focused,
.e-grid .e-rowcell:focus,
.e-grid .e-rowcell.e-focus {
    outline: 0 !important;
    box-shadow: none !important;
}



.standard-blue-header{
    background-image: linear-gradient(45deg, var(--brand-blue-start), var(--brand-blue-end));
    background-repeat: no-repeat;
}

.navbar.standard-blue-header
{
    color: #fff;
}

.navbar.standard-blue-header .navbar-brand {
    color: rgba(255, 255, 255, 1);
}

.navbar.standard-blue-header .nav-link,
.navbar.standard-blue-header .nav-item {
    color: rgba(255, 255, 255, 0.65);
}

.navbar.standard-blue-header .nav-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.navbar.standard-blue-header i,
.navbar.standard-blue-header svg {
    fill: currentColor;
    color: currentColor;
}

/* custom invert button */
.btn-inverted{
    border: 0 !important;
}

.btn-inverted:hover,
.btn-inverted:focus-visible {
    background-color: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .btn-inverted:hover,
[data-bs-theme="dark"] .btn-inverted:focus-visible,
.navbar.standard-blue-header .btn-inverted:hover,
.navbar.standard-blue-header .btn-inverted:focus-visible {
    background-color: rgba(255, 255, 255, 0.15);
}

@media (max-width: 991.98px) {
    .navbar.standard-blue-header .navbar-collapse {
        background: var(--brand-darkgray);
        padding: 1rem;
        margin-top: .5rem;
    }
}

html, body {
    font: 100%/1.6;
    font-family: "EMprintRegular", "HelveticaNeue", "Helvetica", "Arial", sans-serif;
    font-weight: 500;
    font-style: normal;
    -webkit-text-size-adjust: 100%;    
} 

.e-tooltip-wrap .e-tip-content {
    font-family: "EMprintRegular", "HelveticaNeue", "Helvetica", "Arial", sans-serif;
    font-weight: 500;
    font-size: 13px;
    font-style: normal;
    -webkit-text-size-adjust: 100%;    
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly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MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ7IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }



/* Avatar - Perfect Circle */
.em-c-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background-color: white;
    flex-shrink: 0;
    margin-left: 8px;
}

.em-c-avatar--initials {
    background-color: #0071c1;
    color: white;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.em-c-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


  

/*------------------------------------*\
  #FONTS
\*------------------------------------*/
/**
 * 1) EMprint Light - Only to be used for a big h1
 * 2) EMprint Regular - Body copy
 * 3) EMprint Regular Italic - Body copy italicized
 * 4) EMprint Semibold - Primary "bold" font. Used for h2,3,4,5,6 and strong
 * 5) EMprint Semibold Italic - Italicized bold
 * 6) EMprint Bold - Special use cases like small labels with dark backgrounds
 */
/**
 * 1) EMprint Light
 */
@font-face {
    font-family: "EMprintLight";
    src: url("../fonts/EMprintW05Light_web.eot");
    src: local("EMprint Light"), url("../fonts/EMprintW05Light_web.eot?#iefix") format("embedded-opentype"), url("../fonts/EMprintW05Light_web.woff") format("woff"), url("../fonts/EMprintW05Light_web.woff2") format("woff2"), url("../fonts/EMprintW05Light_web.ttf") format("truetype"), url("../fonts/EMprintW05Light_web.svg#EMprintLight") format("svg");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
/**
 * 2) EMprint Regular
 */
@font-face {
    font-family: "EMprintRegular";
    src: url("../fonts/EMprintW05Regular_web.eot");
    src: local("EMprint Regular"), url("../fonts/EMprintW05Regular_web.eot?#iefix") format("embedded-opentype"), url("../fonts/EMprintW05Regular_web.woff") format("woff"), url("../fonts/EMprintW05Regular_web.woff2") format("woff2"), url("../fonts/EMprintW05Regular_web.ttf") format("truetype"), url("../fonts/EMprintW05Regular_web.svg#EMprintRegular") format("svg");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
/**
 * 3) EMprint Regular Italic
 */
@font-face {
    font-family: "EMprintRegularItalic";
    src: url("../fonts/EMprintW05RegularItalic_web.eot");
    src: local("EMprint Regular Italic"), url("../fonts/EMprintW05RegularItalic_web.eot?#iefix") format("embedded-opentype"), url("../fonts/EMprintW05RegularItalic_web.woff") format("woff"), url("../fonts/EMprintW05RegularItalic_web.woff2") format("woff2"), url("../fonts/EMprintW05RegularItalic_web.ttf") format("truetype"), url("../fonts/EMprintW05RegularItalic_web.svg#EMprintRegularItalic") format("svg");
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}
/**
 * 4) EMprint Semibold
 */
@font-face {
    font-family: "EMprintSemibold";
    src: url("../fonts/EMprintW05Semibold_web.eot");
    src: local("EMprint Semibold"), url("../fonts/EMprintW05Semibold_web.eot?#iefix") format("embedded-opentype"), url("../fonts/EMprintW05Semibold_web.woff") format("woff"), url("../fonts/EMprintW05Semibold_web.woff2") format("woff2"), url("../fonts/EMprintW05Semibold_web.ttf") format("truetype"), url("../fonts/EMprintW05Semibold_web.svg#EMprintSemibold") format("svg");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
/**
 * 5) EMprint Semibold Italic
 */
@font-face {
    font-family: "EMprintSemiboldItalic";
    src: url("../fonts/EMprintW05SemiboldItalic_web.eot");
    src: local("EMprint Semibold Italic"), url("../fonts/EMprintW05SemiboldItalic_web.eot?#iefix") format("embedded-opentype"), url("../fonts/EMprintW05SemiboldItalic_web.woff") format("woff"), url("../fonts/EMprintW05SemiboldItalic_web.woff2") format("woff2"), url("../fonts/EMprintW05SemiboldItalic_web.ttf") format("truetype"), url("../fonts/EMprintW05SemiboldItalic_web.svg#EMprintSemiboldItalic") format("svg");
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}
/**
 * 6) EMprint Bold
 */
@font-face {
    font-family: "EMprintBold";
    src: url("../fonts/EMprintW05Bold_web.eot");
    src: local("EMprint Bold"), url("../fonts/EMprintW05Bold_web.eot?#iefix") format("embedded-opentype"), url("../fonts/EMprintW05Bold_web.woff") format("woff"), url("../fonts/EMprintW05Bold_web.woff2") format("woff2"), url("../fonts/EMprintW05Bold_web.ttf") format("truetype"), url("../fonts/EMprintW05Bold_web.svg#EMprintBold") format("svg");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Delete Menu Item - Red Color */
.text-danger .e-menu-icon,
.text-danger.e-menu-item .bi-trash3,
.e-contextmenu li#delete, 
.e-contextmenu li#delete .e-menu-icon,
.e-contextmenu li#delete span {
    color: #dc3545 !important;
}

.em-u-font-style-semibold {
    font-family: "EMprintSemibold", "HelveticaNeue", "Helvetica", "Arial", sans-serif !important;
    font-weight: 600 !important;
    font-style: normal !important;
}

.fw-semibold {
    font-family: "EMprintSemibold", "HelveticaNeue", "Helvetica", "Arial", sans-serif !important;
}