
/* A byte-identical :root block used to open this file. It was always overridden by its twin
   further down (next to the dark-mode block), so it was deleted rather than kept in sync by hand.
   Below it sat an unclosed comment that silently swallowed a body font-family rule up to the
   Settings comment; ui-refinement.css sets the body font, so the swallowed rule is gone too,
   not revived. Code audit 2026-08-27. */
/* Settings page: active group indicator — subtle left border, no blue fill */
.settings-group-active {
    border-left: 3px solid #495057 !important;
    background-color: rgba(0, 0, 0, 0.04) !important;
    color: inherit !important;
    font-weight: 600;
}

[data-theme="dark"] .settings-group-active {
    border-left-color: #adb5bd !important;
    background-color: rgba(255, 255, 255, 0.07) !important;
}

.dark-mode h6 {
    color: #e0e0e0;
}

/* Sidebar styling - Start */

/* Logo mode to adjust background */

.logo-header {
    height: 5.5em;
    overflow: hidden;
    border-right: 1px solid white;
    color: white;
}

/* Light Mode */
.light-mode .logo-header {
    background-color: #052666 !important;
}

/* Dark Mode — keep the brand colour so the sidebar reads as one branded
   surface in dark mode too (matches the light-mode look). */
.dark-mode .logo-header {
    background-color: #052666 !important;
}

/* Desktop Sidebar */
.sidebar {
    width: 250px;
    min-width: 250px;
}

.dark-mode .sidebar {
    /* Keep the brand gradient (defined on .sidebar) in dark mode as well so the
       navbar matches the page's branded look instead of a flat grey panel. */
    color: #ffffff !important;
}

@media (max-width: 768px) {
    .nav-scrollable {
        max-height: unset !important;
        overflow: visible !important;
    }
}

/* ---------- List Group ---------- */
.list-group-item {
    height: auto !important;
    min-height: 80px; /* optional: to keep minimum look */
    border: 1px solid #dee2e6;
    border-radius: 10px;
    margin-bottom: 8px;
    padding: 0.5rem 0.75rem;
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
    transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

        /* Active tab */
        .modern-tabs .nav-link.active {
            background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.35), rgba(var(--accent-rgb), 0.45));
            color: #b31fd8;
            box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.4);
            transform: translateY(-2px);
        }

/* Tab Content */
.modern-tab-content {
    padding: 1.5rem;
    background: linear-gradient(to bottom right, var(--bs-body-bg), var(--bs-tertiary-bg));
    border-top: 1px solid rgba(var(--accent-rgb), 0.1);
    border-radius: 0 0 1rem 1rem;
    transition: all 0.4s ease;
}

@media (max-width: 768px) {
    .page {
        flex-direction: column;
    }

    .modern-tabs {
        flex-wrap: wrap;
    }

        .modern-tabs .nav-link {
            flex: 1 1 100%;
            justify-content: center;
        }
}

[data-theme="dark"] .modern-tab-content {
    background: linear-gradient(to bottom right, rgba(22, 24, 28, 0.95), rgba(32, 34, 38, 0.9));
    border-top-color: rgba(255, 255, 255, 0.08);
}

/* =========================================================
   WEARABLE SECTION
   ========================================================= */
.wearable-section {
    background: #f9fafb;
    border-radius: 0.75rem;
    padding: 1rem;
    transition: background-color 0.3s, color 0.3s;
}

/* Wearable section base */
.wearable-section {
    background-color: var(--bs-light);
    transition: background-color 0.3s, color 0.3s;
}

/* Dark Mode for Wearable */
[data-theme="dark"] .wearable-section {
    background-color: #1e1e1e;
    color: #e0e0e0;
    border-color: #333;
}

[data-theme="dark"] .text-muted {
    color: #a0a0a0 !important;
}

.content.px-4 {
    padding: 5px !important;
}

/* Floating status notification — keeps save success/error messages visible
   regardless of the current scroll position. */
.yb-floating-status {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1080;
    width: auto;
    max-width: min(40rem, calc(100vw - 2rem));
    margin: 0;
    pointer-events: none;
}

.yb-floating-status > * {
    pointer-events: auto;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.25);
}

.change-password-modal {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
}

.change-password-modal__dialog {
    max-width: 560px;
}

.change-password-modal__content {
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.change-password-modal__title {
    font-weight: 700;
    color: #0f172a;
}

.change-password-modal__subtitle {
    color: #51627a;
}

.change-password-modal__label {
    color: #1f2a3d;
}

.change-password-modal__icon {
    background-color: #eef4ff;
    color: #2457c5;
    border-color: #cfdaf3;
}

.change-password-modal__input {
    border-color: #cfdaf3;
    min-height: 2.75rem;
}

.change-password-modal__input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.2);
}

.change-password-modal__hint {
    color: #5a6c86;
}

.change-password-modal__alert {
    border-radius: 0.75rem;
}

.change-password-modal__footer .btn {
    min-width: 140px;
}

.change-password-modal__cancel {
    border-color: #c8d2e3;
    color: #415166;
}

html[data-theme="dark"] .change-password-modal,
.dark-mode .change-password-modal {
    background: rgba(2, 6, 23, 0.72);
}

html[data-theme="dark"] .change-password-modal__content,
.dark-mode .change-password-modal__content {
    background: linear-gradient(180deg, #111d35 0%, #0b162c 100%);
    color: #e5ecff;
}

html[data-theme="dark"] .change-password-modal__title,
html[data-theme="dark"] .change-password-modal__label,
html[data-theme="dark"] .change-password-modal__hint,
.dark-mode .change-password-modal__title,
.dark-mode .change-password-modal__label,
.dark-mode .change-password-modal__hint {
    color: #dbe7ff;
}

html[data-theme="dark"] .change-password-modal__subtitle,
.dark-mode .change-password-modal__subtitle {
    color: #a6b6d8;
}

html[data-theme="dark"] .change-password-modal__icon,
.dark-mode .change-password-modal__icon {
    background-color: #13284f;
    color: #9ec5ff;
    border-color: #2a4373;
}

html[data-theme="dark"] .change-password-modal__input,
.dark-mode .change-password-modal__input {
    background-color: #0e1b35;
    border-color: #2a4373;
    color: #e5ecff;
}

html[data-theme="dark"] .change-password-modal__input:focus,
.dark-mode .change-password-modal__input:focus {
    border-color: #63a1ff;
    box-shadow: 0 0 0 0.2rem rgba(99, 161, 255, 0.22);
}

html[data-theme="dark"] .change-password-modal__cancel,
.dark-mode .change-password-modal__cancel {
    color: #dbe7ff;
    border-color: #355181;
}

/* Body and Page Container Background and Text */
body, .page-container {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
    border-radius: 8px; /* rounded corners for container */
    box-sizing: border-box;
}

/* Safety Alerts - Start */

/* Common Base Styles */

/* ====== Base card style ====== */
.alert-card {
    border: 1px solid #ccc;
    border-radius: 10px !important; /* force rounded corners */
    transition: all 0.25s ease;
    background: transparent !important;
    overflow: hidden; /* ensures rounded effect even if child elements overlap */
}

    /* ====== Light Mode ====== */
    .alert-card.red {
        border-color: #dc3545;
    }

        .alert-card.red:hover {
            background: rgba(220, 53, 69, 0.05);
            box-shadow: 0 0 10px rgba(220, 53, 69, 0.4);
        }

    .alert-card.blue {
        border-color: #0d6efd;
    }

        .alert-card.blue:hover {
            background: rgba(13, 110, 253, 0.05);
            box-shadow: 0 0 10px rgba(13, 110, 253, 0.4);
        }

    .alert-card.green {
        border-color: #198754;
    }

        .alert-card.green:hover {
            background: rgba(25, 135, 84, 0.05);
            box-shadow: 0 0 10px rgba(25, 135, 84, 0.4);
        }

/* ====== Dark Mode ====== */
[data-theme="dark"] .alert-card {
    border-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px !important; /* reassert for dark mode */
    background: transparent !important;
}

    [data-theme="dark"] .alert-card.red {
        border-color: rgba(220, 53, 69, 0.6);
    }

        [data-theme="dark"] .alert-card.red:hover {
            background: rgba(220, 53, 69, 0.08);
            box-shadow: 0 0 12px rgba(220, 53, 69, 0.6);
        }

    [data-theme="dark"] .alert-card.blue {
        border-color: rgba(13, 110, 253, 0.6);
    }

        [data-theme="dark"] .alert-card.blue:hover {
            background: rgba(13, 110, 253, 0.08);
            box-shadow: 0 0 12px rgba(13, 110, 253, 0.6);
        }

    [data-theme="dark"] .alert-card.green {
        border-color: rgba(25, 135, 84, 0.6);
    }

        [data-theme="dark"] .alert-card.green:hover {
            background: rgba(25, 135, 84, 0.08);
            box-shadow: 0 0 12px rgba(25, 135, 84, 0.6);
        }

/* Dark Mode Fix — Tabs and Tab Content Only */
[data-theme="dark"] .modern-tabs {
    background: rgba(30, 32, 36, 0.85); /* darker translucent base */
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

:root {
    --bg-color: #ffffff;
    --text-color: #212529;
    --card-bg: #f8f9fa;
    --footer-bg: #ffffff;
    --accent-color: #007aff; /* Apple system blue */
    --accent-rgb: 0, 122, 255;
    --tab-inactive-fg: rgba(0, 0, 0, 0.6); /* default for light mode */
}

[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --card-bg: #1f1f1f;
    --footer-bg: #121212;
    --tab-inactive-fg: rgb(167, 113, 113, 0.8); /* for dark mode */
}

/* Body and Page Container Background and Text */
body, .page-container {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

/* Card background */
.card {
    background-color: var(--card-bg);
    transition: background-color 0.3s;
}

/* Footer background */
footer {
    background-color: var(--footer-bg) !important;
    color: var(--text-color) !important;
    transition: background-color 0.3s, color 0.3s;
}

html, body, .page-container, article, main, .content{
    background-color: var(--bg-color) !important;
    color: var(--text-color) !important;
    transition: background-color 0.3s, color 0.3s;
}

.bg-light {
    background-color: var(--card-bg) !important;
}

.text-dark {
    color: var(--text-color) !important;
}

.text-muted {
    color: #999999 !important; /* Optional: Slightly dimmer text in dark mode */
}

[data-theme="dark"] body,
[data-theme="dark"] .page-container,
[data-theme="dark"] article,
[data-theme="dark"] main,
[data-theme="dark"] .content{
    background-color: var(--bg-color) !important;
    color: var(--text-color) !important;
}

[data-theme="dark"] .bg-light {
    background-color: var(--card-bg) !important;
}

[data-theme="dark"] .text-dark,
[data-theme="dark"] .text-muted {
    color: var(--text-color) !important;
}

[data-theme="dark"] footer {
    background-color: var(--footer-bg) !important;
    color: var(--text-color) !important;
}

/* Main Background Override */
[data-theme="dark"] .e-grid,
[data-theme="dark"] .e-dialog,
[data-theme="dark"] .e-textbox,
[data-theme="dark"] .e-numerictextbox,
[data-theme="dark"] .e-modal-content,
[data-theme="dark"] .modal-content {
    background-color: var(--card-bg) !important;
    color: var(--text-color) !important;
}

/* Grid Header and Row */
[data-theme="dark"] .e-gridheader,
[data-theme="dark"] .e-gridcontent,
[data-theme="dark"] .e-headercell,
[data-theme="dark"] .e-rowcell {
    background-color: var(--card-bg) !important;
    color: var(--text-color) !important;
    border-color: var(--border-color, #444) !important;
}

/* Dialog Header and Body */
[data-theme="dark"] .e-dlg-header-content,
[data-theme="dark"] .e-dlg-content,
[data-theme="dark"] .e-footer-content {
    background-color: var(--card-bg) !important;
    color: var(--text-color) !important;
}

/* Buttons: deliberately NOT restyled in dark mode.
   There used to be a blanket
       [data-theme="dark"] .btn, [data-theme="dark"] .e-btn {
           background-color: var(--button-bg, #444) !important;
           color: var(--button-text-color, #fff) !important; }
   here. Neither --button-bg nor --button-text-color has ever been defined anywhere in
   this codebase, so it always resolved to the hard-coded fallbacks - and with
   !important it beat every semantic button colour. Every button in dark mode came out
   flat #444: btn-primary was indistinguishable from btn-secondary, btn-link rendered as
   a solid grey block, and btn-outline-* gained a fill they are defined not to have.
   Only the border survived, which is why "Create User" read as a disabled control.
   Bootstrap's button colours are the same in both themes and need no dark override, and
   Syncfusion's .e-btn is themed by bootstrap5-dark.css, so removing it is the fix. */

/* One thing the blanket WAS accidentally covering: Bootstrap's outline variants carry a
   fixed light-theme foreground in every theme (.btn-outline-secondary is #6c757d, and that
   is still true in 5.3 - colour modes restyle surfaces, not button variants). On a dark
   surface those land at ~3.9:1 and ~4.1:1, under AA. Lift the two neutral/destructive
   outlines onto the ramp's dark-surface tokens; solid variants already carry an accessible
   foreground of their own and are left alone. Plain properties rather than --bs-btn-*,
   which only exist from Bootstrap 5.2. */
[data-theme="dark"] .btn-outline-secondary {
    color: var(--yb-text-muted, #a3b0c7);
    border-color: rgba(148, 170, 205, 0.45);
}

[data-theme="dark"] .btn-outline-danger {
    color: var(--yb-required, #ff8b83);
    border-color: rgba(255, 139, 131, 0.55);
}

[data-theme="dark"] .btn-outline-primary {
    /* #6ea8fe is Bootstrap's own $blue-300, the shade 5.3 uses for links in dark mode.
       Bootstrap's #0d6efd measures 4.02:1 on the dark top bar; this is 7.57:1. */
    color: #6ea8fe;
    border-color: rgba(110, 168, 254, 0.55);
}

/* Inputs. The old heading said "inside Dialog" but the selector never was dialog-scoped -
   this styles every input in the app, which is what it should do; only the comment was wrong.
   --input-bg and --border-color were never defined either, so this silently used #333 on a
   #181d26 panel (1.34:1 - the field barely separates from the card) with a #666 border at
   2.94:1, under the 3:1 that WCAG 1.4.11 requires of a control boundary. Both were also
   plain greys sitting outside the --yb-* ramp. The values below come from the ramp and the
   border clears 3:1 (3.12:1 measured against the form panel). */
[data-theme="dark"] input,
[data-theme="dark"] .e-input,
[data-theme="dark"] .e-input-group {
    background-color: var(--yb-surface-sunken, #11151c) !important;
    color: var(--text-color) !important;
    border-color: rgba(148, 170, 205, 0.55) !important;
}

/* Modal overlay background */
[data-theme="dark"] .modal.show {
    background-color: rgba(0, 0, 0, 0.7) !important;
}

.dashboard-card {
    background-color: #f8f9fa; /* Light mode background */
    color: #343a40; /* Light mode text */
    transition: background-color 0.3s, color 0.3s;
}

    .dashboard-card:hover {
        background-color: #e2e6ea;
    }

.dark-mode .dashboard-card {
    background-color: #2c2f33; /* Dark mode background */
    color: #e4e6eb; /* Dark mode text */
}

    .dark-mode .dashboard-card:hover {
        background-color: #3a3d42;
    }

/* Light Mode */
body.light-mode {
    background-color: #fff;
    color: #333;
}

/* Dark Mode */
body.dark-mode {
    background-color: #121212;
    color: #e4e6eb;
}

/* Optionally, add transitions */
body {
    transition: background-color 0.3s, color 0.3s;
}

.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

.light-mode {
    background-color: #ffffff;
    color: #000000;
}

/* A hovered link goes up the brand ramp — the same indigo the sidebar is anchored on (#291).
   These two rules used to hold #ff7043 "Soft Coral" and #ff9800 "Soft Orange", picked before the
   design system existed. Nothing else in the app is warm: the ramp is indigo from --yb-brand-900
   through --yb-brand-400, the accent is #007aff, and there is no warm hue in the token set at all.
   So the one moment a link confirmed it was interactive was the moment it stopped looking like this
   product.

   Kept as bare a:hover rather than scoped, because that is exactly the reach it should have. At
   (0,1,1) it is out-specified by every class-based hover in the app — .btn-*:hover, the sidebar's
   .nav-link:hover, .top-row-user-link:hover, the breadcrumb's own — so it lands only on plain links
   that have nobody else speaking for them, which is the set that wants a default. */
a:hover {
    color: var(--yb-brand-600);
}

[data-theme="dark"] a:hover {
    color: var(--yb-brand-400);
}

/* Syncfusion adjustments */
.dark-mode .e-grid,
.dark-mode .e-card,
.dark-mode .e-dialog {
    background-color: #1e1e2f;
    color: white;
}

.center-form-container {
    width: 100%;
    margin: auto;
    text-align: center;
    padding: 15px;
    background-color: #fff; /* Light mode default */
    transition: background-color 0.3s ease;
}

/* Dark mode support for center-form-container */
.dark-mode .center-form-container {
    background-color: #1e1e2f; /* Same as dark cards and grids */
    color: white;
}

.no-claims-text {
    color: #6c757d;
}

.dark-mode .no-claims-text {
    color: #bbbbbb;
}

.page-title-heading {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: #6c757d;
}

.dark-mode .page-title-heading {
    color: #f1f1f1;
}

.dark-mode .page-subtitle {
    color: #b0b0b0;
}

/* Light mode: soft warning yellow */
.e-dialog .e-dlg-header {
    background-color: #fff3cd; /* Bootstrap warning background */
    color: #856404; /* Bootstrap warning text */
    font-weight: 600;
    font-size: 1.05rem;
    padding: 10px 18px;
    border-bottom: 1px solid #ffeeba;
    border-radius: 8px 8px 0 0;
}

/* Dark mode: deeper amber tone */
.dark-mode .e-dialog .e-dlg-header {
    background-color: #4b3f20; /* muted amber/brown */
    color: #f9e79f; /* soft yellow text */
    font-weight: 600;
    font-size: 1.05rem;
    padding: 10px 18px;
    border-bottom: 1px solid #6c584c;
    border-radius: 8px 8px 0 0;
}

/*Light mode - optional override */
.e-dialog .e-dlg-header {
    color: #333;
    Default dark text
}

/*Dark mode dialog header*/
.dark-mode .e-dialog .e-dlg-header {
    color: #ffffff;
    Bright white for visibility
}

.dark-mode .e-dialog .e-dlg-header-content,
.dark-mode .e-dialog .e-dlg-header {
    background-color: #1f1f2b !important;
    color: #e0e0e0 !important;
}

.theme-card {
    border-radius: 12px;
    background-color: #f0f8ff; /* light mode */
    color: #333;
}

/* Dark mode override */
.dark-mode .theme-card {
    background-color: #2c2c3e;
    color: #e0e0e0;
}

/* Sidebar styling */
.dark-mode .sidebar {
    background-color: transparent; /* let the brand gradient on .sidebar show */
    color: #ffffff; /* Light text */
}

.light-mode .sidebar {
    background-color: #f8f9fa; /* Light background */
    color: #212529; /* Dark text */
}

/* NavMenu item hover effect */
.dark-mode .nav-menu .nav-link:hover {
    background-color: #495057; /* Darker hover background */
}

.light-mode .nav-menu .nav-link:hover {
    background-color: #e2e6ea; /* Lighter hover background */
}

.dark-mode .top-row {
    background-color: #121212 !important;
}

/* Hide the dropdown arrow */
.no-arrow .e-caret {
    display: none !important;
}

/* Slim down the button */
.slim-button {
    padding: 4px 10px !important;
    font-size: 0.875rem;
    border-radius: 4px;
    min-width: auto !important;
}

/* Apply background colors based on e-primary, e-success, e-danger, e-info, and e-warning */
.e-dropdown-popup .e-item.e-success a {
    background-color: #28a745 !important; /* Success Green */
    color: #fff !important; /* Text color */
}

.e-dropdown-popup .e-item.e-primary a {
    background-color: #007bff !important; /* Primary Blue */
    color: #fff !important; /* Text color */
}

.e-dropdown-popup .e-item.e-danger a {
    background-color: #dc3545 !important; /* Danger Red */
    color: #fff !important; /* Text color */
}

.e-dropdown-popup .e-item.e-info a {
    background-color: #17a2b8 !important; /* Info Blue */
    color: #fff !important; /* Text color */
}

.e-dropdown-popup .e-item.e-warning a {
    background-color: #ffc107 !important; /* Warning Yellow */
    color: #000 !important; /* Text color */
}

/* Ensure icons have proper color contrast */
.e-dropdown-popup .e-item a .e-menu-icon {
    color: #fff !important; /* Default icon color */
}

/* Apply hover effect to brighten or darken the item */
.e-dropdown-popup .e-item a:hover {
    opacity: 0.85 !important;
    background-color: rgba(0, 0, 0, 0.1) !important; /* Slight darken effect */
}

/* SUCCESS hover */
.e-dropdown-popup .e-item.e-success a:hover {
    background-color: #218838 !important; /* Darker green */
    color: #fff !important;
}

/* PRIMARY hover */
.e-dropdown-popup .e-item.e-primary a:hover {
    background-color: #0069d9 !important; /* Darker blue */
    color: #fff !important;
}

/* DANGER hover */
.e-dropdown-popup .e-item.e-danger a:hover {
    background-color: #c82333 !important; /* Darker red */
    color: #fff !important;
}

/* INFO hover */
.e-dropdown-popup .e-item.e-info a:hover {
    background-color: #138496 !important; /* Darker cyan */
    color: #fff !important;
}

/* WARNING hover */
.e-dropdown-popup .e-item.e-warning a:hover {
    background-color: #e0a800 !important; /* Darker yellow */
    color: #000 !important;
}

/* Consistent icon color on hover */
.e-dropdown-popup .e-item a:hover .e-menu-icon {
    color: inherit !important;
}

.e-dropdown-popup .e-item.e-warning a:hover .e-menu-icon {
    color: #000 !important; /* Ensure icon stays dark on hover for light background */
}

/* Base transition effect for smooth animation */
.e-dropdown-popup .e-item a {
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
}

    /* On hover: scale, color, background */
    .e-dropdown-popup .e-item a:hover {
        transform: scale(1.05);
        background-color: rgba(0, 0, 0, 0.05); /* subtle background overlay */
        color: #1e90ff; /* or your preferred hover font color */
    }

        /* Optional: scale icon with text */
        .e-dropdown-popup .e-item a:hover .e-menu-icon {
            transform: scale(1.2);
            transition: transform 0.2s ease-in-out;
            color: inherit;
        }

/* Scoped to dark theme only */
/* Replace 'dark-mode' with your actual dark theme class */
[data-theme="dark"] .e-dropdown-popup,
body.dark-mode .e-dropdown-popup {
    background-color: #2c2c2c !important;
    border-color: #444 !important;
}

    [data-theme="dark"] .e-dropdown-popup .e-item a,
    body.dark-mode .e-dropdown-popup .e-item a {
        color: #ddd !important;
        transition: all 0.2s ease-in-out;
    }

        [data-theme="dark"] .e-dropdown-popup .e-item a:hover,
        body.dark-mode .e-dropdown-popup .e-item a:hover {
            background-color: #3a3a3a !important;
            color: #4dabf7 !important;
            transform: scale(1.05);
        }

            [data-theme="dark"] .e-dropdown-popup .e-item a:hover .e-menu-icon {
                transform: scale(1.2);
                color: inherit;
                transition: transform 0.2s ease-in-out;
            }

.section-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 2px solid transparent;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0); /* smooth transition */
}

    .section-card:hover {
        border-color: #0d6efd; /* or any theme color */
        background-color: rgba(13, 110, 253, 0.05); /* subtle tint */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transform: translateY(-2px); /* optional lift effect */
    }

[data-theme="dark"] .section-card:hover {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.section-card.selected {
    border-color: #000;
    box-shadow: 0 0 0 2px #0002;
}

/*The Amber-Gold accent (#ffc107)*/
[data-theme="dark"] .section-card.selected {
    border-color: #ffc107; /* Amber */
    box-shadow: 0 0 0 2px #ffc10733;
}

    [data-theme="dark"] .section-card.selected:hover {
        border-color: #ffca2c;
        box-shadow: 0 0 0 2px #ffca2c66;
    }

/* Dark Theme override */
[data-theme="dark"] .section-card {
    color: white;
    border-color: #444;
}

/* SfGrid selected row - adjust background and text color */
.e-grid .e-row.e-selectionbackground,
.e-grid .e-row.e-active {
    background-color: #E9C5C6 !important; /* Dusty Pink - 50% Lighter */
    color: #000000 !important; /* balck text */
    font-weight: bold !important;
}

/* Optional: Selected cell */
.e-grid .e-selectionbackground,
.e-grid .e-active {
    background-color: #E9C5C6 !important; /* Dusty Pink - 50% Lighter */
    color: #000000 !important; /* balck text */
    font-weight: bold !important;
}

/* Optional: Focus outline for accessibility */
.e-grid .e-row:focus {
    outline: 2px solid #4a90e2;
    outline-offset: -2px;
}

/* Light mode hover override */
.e-grid.e-gridhover:not(.e-rowdrag)
.e-row:not(.e-disable-gridhover):not(.e-editedrow):not(.e-detailrow):hover
.e-rowcell:not(.e-cellselectionbackground):not(.e-active):not(.e-updatedtd):not(.e-indentcell) {
    background-color: #d3e8ff !important; /* light blue background */
    color: #000000 !important; /* dark text */
    font-weight: bold !important;
}

/* Dark mode hover override */
[data-theme="dark"] .e-grid.e-gridhover:not(.e-rowdrag)
.e-row:not(.e-disable-gridhover):not(.e-editedrow):not(.e-detailrow):hover
.e-rowcell:not(.e-cellselectionbackground):not(.e-active):not(.e-updatedtd):not(.e-indentcell) {
    background-color: #4b3c3c !important; /* dark maroon background */
    color: #fdd835 !important; /* bright yellow text */
    font-weight: bold !important;
}

/* Default Header Text */
.e-grid .e-headercell .e-headertext {
    color: #c62828 !important;
    font-weight: bold;
}

/* Sorted Column Header */
.e-grid th.e-headercell[aria-sort="ascending"]:not(.e-columnselection) .e-headertext,
.e-grid th.e-headercell[aria-sort="descending"]:not(.e-columnselection) .e-headertext {
    color: #fdd835 !important; /*Bright yellow for sort */
}

/* Button hover in dark mode */
/* === DARK THEME BUTTON HOVERS FOR BOOTSTRAP + SYNCFUSION === */

/* PRIMARY */
[data-theme="dark"] .e-btn.e-primary:hover,
[data-theme="dark"] .e-btn.e-primary.e-small:hover {
    background-color: #0b5ed7 !important;
    color: #ffffff !important;
    border-color: #0a58ca !important;
}

[data-theme="dark"] .e-btn.e-outline.e-primary:hover,
[data-theme="dark"] .e-btn.e-outline.e-primary.e-small:hover {
    background-color: #0d6efd !important;
    color: #ffffff !important;
    border-color: #0d6efd !important;
}

/* SECONDARY */
[data-theme="dark"] .btn.btn-secondary:hover,
[data-theme="dark"] .btn.btn-sm.btn-secondary:hover,
[data-theme="dark"] .e-btn.e-secondary:hover,
[data-theme="dark"] .e-btn.e-secondary.e-small:hover {
    background-color: #6c757d !important;
    color: #ffffff !important;
    border-color: #5c636a !important;
}

[data-theme="dark"] .btn.btn-outline-secondary:hover,
[data-theme="dark"] .btn.btn-sm.btn-outline-secondary:hover,
[data-theme="dark"] .e-btn.e-outline.e-secondary:hover,
[data-theme="dark"] .e-btn.e-outline.e-secondary.e-small:hover {
    background-color: #6c757d !important;
    color: #ffffff !important;
    border-color: #6c757d !important;
}

/* SUCCESS */
[data-theme="dark"] .btn.btn-success:hover,
[data-theme="dark"] .btn.btn-sm.btn-success:hover,
[data-theme="dark"] .e-btn.e-success:hover,
[data-theme="dark"] .e-btn.e-success.e-small:hover {
    background-color: #157347 !important;
    color: #ffffff !important;
    border-color: #146c43 !important;
}

[data-theme="dark"] .btn.btn-outline-success:hover,
[data-theme="dark"] .btn.btn-sm.btn-outline-success:hover,
[data-theme="dark"] .e-btn.e-outline.e-success:hover,
[data-theme="dark"] .e-btn.e-outline.e-success.e-small:hover {
    background-color: #198754 !important;
    color: #ffffff !important;
    border-color: #198754 !important;
}

/* DANGER */
[data-theme="dark"] .btn.btn-danger:hover,
[data-theme="dark"] .btn.btn-sm.btn-danger:hover,
[data-theme="dark"] .e-btn.e-danger:hover,
[data-theme="dark"] .e-btn.e-danger.e-small:hover {
    background-color: #bb2d3b !important;
    color: #ffffff !important;
    border-color: #b02a37 !important;
}

[data-theme="dark"] .btn.btn-outline-danger:hover,
[data-theme="dark"] .btn.btn-sm.btn-outline-danger:hover,
[data-theme="dark"] .e-btn.e-outline.e-danger:hover,
[data-theme="dark"] .e-btn.e-outline.e-danger.e-small:hover {
    background-color: #dc3545 !important;
    color: #ffffff !important;
    border-color: #dc3545 !important;
}

/* WARNING */
[data-theme="dark"] .btn.btn-warning:hover,
[data-theme="dark"] .btn.btn-sm.btn-warning:hover,
[data-theme="dark"] .e-btn.e-warning:hover,
[data-theme="dark"] .e-btn.e-warning.e-small:hover {
    background-color: #ffca2c !important;
    color: #212529 !important;
    border-color: #ffc720 !important;
}

[data-theme="dark"] .btn.btn-outline-warning:hover,
[data-theme="dark"] .btn.btn-sm.btn-outline-warning:hover,
[data-theme="dark"] .e-btn.e-outline.e-warning:hover,
[data-theme="dark"] .e-btn.e-outline.e-warning.e-small:hover {
    background-color: #ffc107 !important;
    color: #000000 !important;
    border-color: #ffc107 !important;
}

/* INFO */
[data-theme="dark"] .btn.btn-info:hover,
[data-theme="dark"] .btn.btn-sm.btn-info:hover,
[data-theme="dark"] .e-btn.e-info:hover,
[data-theme="dark"] .e-btn.e-info.e-small:hover {
    background-color: #31d2f2 !important;
    color: #000000 !important;
    border-color: #25cff2 !important;
}

[data-theme="dark"] .btn.btn-outline-info:hover,
[data-theme="dark"] .btn.btn-sm.btn-outline-info:hover,
[data-theme="dark"] .e-btn.e-outline.e-info:hover,
[data-theme="dark"] .e-btn.e-outline.e-info.e-small:hover {
    background-color: #0dcaf0 !important;
    color: #000000 !important;
    border-color: #0dcaf0 !important;
}

/* LIGHT */
[data-theme="dark"] .btn.btn-light:hover,
[data-theme="dark"] .btn.btn-sm.btn-light:hover,
[data-theme="dark"] .e-btn.e-light:hover,
[data-theme="dark"] .e-btn.e-light.e-small:hover {
    background-color: #f8f9fa !important;
    color: #212529 !important;
    border-color: #f8f9fa !important;
}

[data-theme="dark"] .btn.btn-outline-light:hover,
[data-theme="dark"] .btn.btn-sm.btn-outline-light:hover,
[data-theme="dark"] .e-btn.e-outline.e-light:hover,
[data-theme="dark"] .e-btn.e-outline.e-light.e-small:hover {
    background-color: #f8f9fa !important;
    color: #212529 !important;
    border-color: #f8f9fa !important;
}

/* DARK */
[data-theme="dark"] .btn.btn-dark:hover,
[data-theme="dark"] .btn.btn-sm.btn-dark:hover,
[data-theme="dark"] .e-btn.e-dark:hover,
[data-theme="dark"] .e-btn.e-dark.e-small:hover {
    background-color: #1b1e21 !important;
    color: #ffffff !important;
    border-color: #1a1d20 !important;
}

[data-theme="dark"] .btn.btn-outline-dark:hover,
[data-theme="dark"] .btn.btn-sm.btn-outline-dark:hover,
[data-theme="dark"] .e-btn.e-outline.e-dark:hover,
[data-theme="dark"] .e-btn.e-outline.e-dark.e-small:hover {
    background-color: #1b1e21 !important;
    color: #ffffff !important;
    border-color: #1b1e21 !important;
}

/* nav-tabs start */

details > summary::marker {
    content: "";
}

.nav-tabs .nav-link.active {
    font-weight: bold;
    border-bottom: 3px solid #0d6efd;
}

.list-group-item {
    height: 80px;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    margin-bottom: 8px;
    padding: 0.5rem 0.75rem;
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
    transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

    /* Unified hover — works for both light & dark themes */
    .list-group-item:hover {
        background-color: rgba(100, 149, 237, 0.15); /* mild cornflower-blue tint */
        border-color: rgba(100, 149, 237, 0.4);
        box-shadow: 0 2px 8px rgba(100, 149, 237, 0.25);
        color: var(--bs-primary);
    }

/* Moern Tabs Styling - Start */

.tab-container {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background-color: var(--bs-body-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: background 0.4s ease;
}

.modern-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bs-tertiary-bg);
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.15);
    backdrop-filter: blur(8px);
    position: relative;
}

    /* Active glow underline across all tabs */
    .modern-tabs::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        height: 2px;
        width: 100%;
        background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
        opacity: 0.3;
    }

    /* Common tab button base */
    .modern-tabs .nav-link {
        border: none;
        border-radius: 0.75rem;
        color: var(--bs-body-color);
        font-weight: 600;
        letter-spacing: 0.3px;
        transition: all 0.25s ease;
        padding: 0.6rem 1.25rem;
        display: flex;
        align-items: center;
        gap: 0.4rem;
        position: relative;
        box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.05);
        background: rgba(var(--accent-rgb), 0.05);
    }

        /* Inactive tab */
        /* Inactive tab — softer but still alive */
        /* Inactive tab — softer but still alive, visible in both light & dark */
        .modern-tabs .nav-link:not(.active) {
            background: rgba(var(--accent-rgb), 0.07);
            color: var(--tab-inactive-fg, rgba(255, 255, 255, 0.75));
            box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.05);
            transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
        }

        /* Hover effect — gentle Apple spring lift */
        .modern-tabs .nav-link:hover:not(.active) {
            background: rgba(var(--accent-rgb), 0.12);
            color: var(--accent-color);
            transform: translateY(-1px) scale(1.02);
            box-shadow: 0 2px 10px rgba(var(--accent-rgb), 0.25);
        }

        /* Active tab — richer but balanced */
        .modern-tabs .nav-link.active {
            background: linear-gradient( 145deg, rgba(var(--accent-rgb), 0.35), rgba(var(--accent-rgb), 0.45) );
            color: #b31fd8;
            box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.4);
            transform: translateY(-2px);
        }

[data-theme="dark"] .modern-tabs .nav-link.active {
    color: rgb(239 218 15);
}

.modern-tabs .nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 4%;
    width: 92%;
    height: 1px;
    background: var(--accent-color);
    opacity: 0.9;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Tab content surface */
.modern-tab-content {
    padding: 1.5rem;
    background: linear-gradient( to bottom right, var(--bs-body-bg), var(--bs-tertiary-bg) );
    border-top: 1px solid rgba(var(--accent-rgb), 0.1);
    border-radius: 0 0 1rem 1rem;
    transition: all 0.4s ease;
}

.tab-pane.fade {
    transition: opacity 0.3s ease, transform 0.35s ease;
}

    .tab-pane.fade.show.active {
        opacity: 1;
        transform: translateY(0);
    }

    .tab-pane.fade:not(.show) {
        opacity: 0;
        transform: translateY(10px);
    }

/* Dark Mode Fix — Tabs and Tab Content Only */
[data-theme="dark"] .modern-tabs,
[data-theme="dark"] .wearable-section {
    background: rgba(30, 32, 36, 0.85); /* darker translucent base */
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .modern-tab-content{
    background: linear-gradient( to bottom right, rgba(22, 24, 28, 0.95), rgba(32, 34, 38, 0.9) );
    border-top-color: rgba(255, 255, 255, 0.08);
}

/* subtle glowing pulse for critical alerts */
.critical-glow {
    animation: glowPulse 1.5s infinite alternate;
}

@keyframes glowPulse {
    from {
        text-shadow: 0 0 5px rgba(255, 0, 0, 0.4);
    }

    to {
        text-shadow: 0 0 12px rgba(255, 0, 0, 0.9);
    }
}

/* Gentle pulse for detected alerts */
.status-glow {
    animation: pulseGlow 1.5s infinite alternate;
}

@keyframes pulseGlow {
    from {
        text-shadow: 0 0 5px rgba(255, 100, 100, 0.5);
    }

    to {
        text-shadow: 0 0 10px rgba(255, 0, 0, 0.9);
    }
}

/* Subtle pulsing glow for active zones (optional for Red only) */
.zone-glow {
    animation: zonePulse 1.5s infinite alternate;
}

@keyframes zonePulse {
    from {
        text-shadow: 0 0 4px rgba(255, 0, 0, 0.5);
    }

    to {
        text-shadow: 0 0 10px rgba(255, 0, 0, 0.9);
    }
}

/* Nav-tab - End */

/* Safety Alert Wearable Data - Start */

.wearable-section {
    background: #f9fafb;
    border-radius: 0.75rem;
    padding: 1rem;
}

@media (max-width: 576px) {

    .wearable-section .row.fw-semibold {
        display: none; /* hide header on small screens for cleaner UX */
    }
}

.spoc-pill {
    padding: 3px 3px !important;
    background: var(--pill-bg) !important;
    color: white !important;
    border-radius: 999px !important;
    font-size: 0.80rem !important;
    line-height: 1 !important;
    display: inline-block !important;
}

.list-group-item span.spoc-pill {
    padding: 3px 10px !important;
}

.list-group-item span {
    padding: 0.25rem 0.5rem;
}

/* ===============================
   Stress Trend Modal Overlay
   =============================== */

.trend-overlay {
    position: fixed !important;
    inset: 0 !important;
    background-color: rgba(8, 12, 24, 0.55) !important;
    backdrop-filter: blur(3px);
    z-index: 2147483647 !important; /* Beat Syncfusion & popups */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2.5vh 2vw;
}

/* ===============================
   Stress Trend Dialog Container
   =============================== */

.trend-dialog {
    position: relative;
    width: 92vw;
    max-width: 1180px;
    height: 88vh;
    display: flex;
    flex-direction: column;
    padding: 1rem 1.25rem 1.25rem;
    border-radius: var(--yb-radius, 14px);
    /* App design-language tokens (auto dark-mode via [data-theme="dark"]) */
    background-color: var(--yb-card, #ffffff);
    color: var(--yb-text, #212529);
    border: 1px solid var(--yb-border, #dee2e6);
    box-shadow: var(--yb-shadow-lg, 0 22px 50px rgba(16, 31, 64, 0.18));
    overflow: hidden; /* Prevent double scrollbars */
}

/* ===============================
   Header
   =============================== */

.trend-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.6rem;
    margin-bottom: 0.2rem;
    border-bottom: 1px solid var(--yb-border, #dee2e6);
    /* The dialog sits inside a centred overlay; without this the unified head's
       eyebrow/title/subtitle inherit text-align:center and drift away from the
       badge. Pin left so the label sits next to the icon, like every other
       unified dialog. */
    text-align: left;
}

.trend-dialog-title {
    font-family: var(--yb-font-display, inherit);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--yb-text, #212529);
}

/* Tidy icon close affordance — quiet by default, danger on hover */
.trend-dialog-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--yb-border, #dee2e6);
    border-radius: var(--yb-radius-sm, 9px);
    background: var(--yb-surface-2, #f1f4fa);
    color: var(--yb-text-muted, #586683);
    font-size: 0.85rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.trend-dialog-close:hover {
    background: var(--yb-danger, #d8443c);
    border-color: var(--yb-danger, #d8443c);
    color: #fff;
}

.trend-dialog-close:focus-visible {
    outline: none;
    box-shadow: var(--yb-ring, 0 0 0 0.22rem rgba(0, 122, 255, 0.18));
}

/* ===============================
   Content Area
   =============================== */

.trend-dialog-content {
    flex-grow: 1;
    padding-top: 0.6rem;
    overflow: hidden;
}

/* ===============================
   Chart Layout Fix
   =============================== */

.trend-chart-container {
    flex-grow: 1;
    min-height: 0; /* CRITICAL: enables flex scrolling */
    width: 100%;
    height: 100%;
}

.alert-icon-glow {
    color: #dc3545; /* Bootstrap danger red */
    font-size: 0.9rem;
    animation: glowPulse1 1.5s infinite ease-in-out;
}

@keyframes glowPulse1 {
    0% {
        text-shadow: 0 0 4px rgba(220, 53, 69, 0.6);
    }

    50% {
        text-shadow: 0 0 10px rgba(220, 53, 69, 1);
    }

    100% {
        text-shadow: 0 0 4px rgba(220, 53, 69, 0.6);
    }
}

.student-header-row2 {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

    .student-header-row2 > div:first-child {
        justify-self: start;
    }

    .student-header-row2 > div:nth-child(2) {
        justify-self: center;
    }

    .student-header-row2 > div:last-child {
        justify-self: end;
    }

/* Stress Index (SI) badge color helpers
   Used by components (e.g. SfStressDetailsContent) — keep these ABOVE the Darkmode END marker.
   Class names: bg_si_low, bg_si_medium, bg_si_high, bg_si_critical, bg_si_above500
*/
.bg_si_low {
    background-color: #228B22; /* green (Low <= 50) */
    color: #ffffff !important;
    border: 1px solid rgba(34, 139, 34, 0.12) !important;
    box-shadow: none;
}

.bg_si_medium {
    background-color: #FFD700; /* yellow (Medium <= 150) */
    color: #212529 !important; /* dark text for contrast on yellow */
    border: 1px solid rgba(255, 215, 0, 0.12) !important;
    box-shadow: none;
}

.bg_si_high {
    background-color: #0047AB; /* blue (High <= 500) */
    color: #ffffff !important;
    border: 1px solid rgba(0, 71, 171, 0.12) !important;
    box-shadow: none;
}

.bg_si_critical {
    background-color: #D32F2F; /* red (Critical >= 500) */
    color: #ffffff !important;
    border: 1px solid rgba(211, 47, 47, 0.12) !important;
    box-shadow: none;
}

/* Slightly tuned dark-mode variants to preserve contrast inside dark themes */
[data-theme="dark"] .bg_si_low {
    background-color: #1f7a1f;
}

[data-theme="dark"] .bg_si_medium {
    background-color: #bfa300;
    color: #111 !important;
}

[data-theme="dark"] .bg_si_high {
    background-color: #003a86;
}

[data-theme="dark"] .bg_si_critical {
    background-color: #b82a2a;
}

/* Top Bar Styling */
.top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f8f9fa;
}

#121212
/* Dark Mode Button */
.toggle-dark-btn {
    /* Keep it as part of the flex container */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

/* Right Container for Auth Buttons */
.top-row .d-flex {
    display: flex;
    gap: 1rem;
    flex-shrink: 0; /* Ensure the buttons don't get compressed */
}

.default-summary-card {
    background-color: #f5f5f5;
}

.clickable-card:hover {
    background-color: #e0f7fa;
    transform: scale(1.02);
    transition: all 0.2s;
}

img.rounded-circle {
    margin-top: 10px;
}

/* Search tags - Begin */

.search-tag {
    background-color: #fff3cd; /* Bootstrap warning-light background */
    color: #212529; /* Dark text */
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-block;
    margin: 4px 6px 4px 0;
    border: 1px solid #ffeeba;
}

/* Search tags - End */

/* my styles for Search Components - Begin */

html, body {
    height: 100%;
    margin: 0;
}

article {
    height: 100%; /* Make article take full viewport height */
    display: flex; /* Enable flexbox on article */
    flex-direction: column; /* Ensure children stack vertically */
}

.full-height-card {
    min-height: 100%; /* Make the card take at least the full height of the article */
    padding: 5px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page > main > article.content.px-4 > div.d-flex.justify-content-center > div.col-12 {
    flex-grow: 1;
    Allow the col-12 to grow and take available space max-width: 100% !important; /* Ensure it can take full width, overriding potential max-widths */
}

.form-controls-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-start;
}

.form-group-flex {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.form-cell {
    padding-right: 15px;
    padding-bottom: 10px;
}

.center-form-container {
    width: 100%; /* Adjust to your desired width for the form area */
    margin: auto;
    text-align: center;
    padding: 15px; /* Optional: Add some padding around the form */
}

search-container {
    max-width: 1200px;
    text-align: center; /* Center content within */
    margin-left: auto !important; /* Force left margin to auto */
    margin-right: auto !important; /* Force right margin to auto */
    padding: 1rem;
    display: block !important; /* Ensure it's a block-level element */
    float: none !important; /* Ensure it's not floated */
}

.form-label-fixed {
    min-width: 150px;
    margin-bottom: 0;
}

.form-input-grow {
    flex-grow: 1;
}

.full-width-content {
    width: 100%;
}

.content.px-4 {
    padding-left: 5px !important;
    padding-right: 5px !important;
}
/* my styles for Search Components - End */

/*syncFusion Form CSS*/
/* Added by Geetha on 19/04/2025 */
/* The below styles are overriding with our additional properties*/

.e-control-container.e-control-wrapper.e-data-form label {
    font-weight: bold;
    color: black;
    font-size: 1em;
    /* Add your desired label styles here */
}

.e-data-form label {
    font-weight: bold;
    color: black;
    font-size: 1em;
}

.e-control-container.e-control-wrapper.e-data-form .e-label-position-top {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    text-align: left !important;
    /* Add your desired label styles here */
}

.e-control-container.e-control-wrapper.e-data-form .validation-message {
    color: var(--yb-danger-text);
    font-size: 0.8rem;
    font-style: normal !important;
}

/* Danger text needs a lighter tint to stay legible on the dark surface (#120). */
[data-theme="dark"] .e-control-container.e-control-wrapper.e-data-form .validation-message {
    color: #ff9c8f;
}

.e-input-group.e-success, .e-input-group.e-control-wrapper.e-success, .e-input-group.e-success:not(.e-float-icon-left), .e-input-group.e-control-wrapper.e-success:not(.e-float-icon-left) {
    border-color: #198754;
    border-width: 1.5px !important;
}

.e-input-group.e-error, .e-input-group.e-control-wrapper.e-error, .e-input-group.e-error:not(.e-float-icon-left), .e-input-group.e-control-wrapper.e-error:not(.e-float-icon-left) {
    border-color: var(--yb-danger);
    border-width: 1.25px !important;
}

/* #120: lighter danger border on dark so the invalid field reads clearly. */
[data-theme="dark"] .e-input-group.e-error, [data-theme="dark"] .e-input-group.e-control-wrapper.e-error {
    border-color: #ff9c8f;
}

.e-card {
    -webkit-tap-highlight-color: #0d6efd;
    border: 1.5px solid #457b9d !important;
    box-shadow: none;
    color: #212529;
    outline: none;
}

    .e-card .e-card-header .e-card-header-caption .e-card-header-title {
        font-size: 16px;
        font-weight: bold !important;
        line-height: 1.5;
    }

/* Bootstrap modal close (X) glyph is dark-on-light by default; invert it so it
   stays visible on the dark dialog surface (governance approve/reject, access
   review report/complete, org-pin, etc.). */
[data-theme="dark"] .modal-content .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}