﻿/* ==============================================
   HRF UI - Global Application Theme
   Modern UI with Dark/Light Mode Support
   Fully integrated with Copilot Style
   Version: 2.0 | Updated: 2026
   ============================================== */

/* ──────────────────────────────────────────────
   ROOT VARIABLES - Dark Mode (Default)
   ────────────────────────────────────────────── */
:root {
    /* Brand Colors - Preserved */
    --header: #11576F;
    --header-text: #e2e8f0;
    --subheader1: #286E86;
    --subheader2: #3E849C;
    --subheader3: #62A8C0;
    --subheader4: #6BB1C9;
    /* Core Semantic Colors */
    --primary: #11576F;
    --accent: #336600;
    --accent-gradient: linear-gradient(90deg, var(--header),var(--subheader2));
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    /* Dark Mode Surfaces */
    --bg-primary: #0f172a;
    --bg-secondary: #1e2937;
    --bg-tertiary: #334155;
    --bg-card: #1e2937;
    --bg-header: #0f172a;
    --bg-subtle: #334155;
    --bg-hover: rgba(99, 102, 241, 0.08);
    /* Dark Mode Text */
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-disabled: #475569;
    /* Dark Mode Borders */
    --border-color: #334155;
    --border-light: #475569;
    --border-focus: #6366f1;
    /* Typography */
    --mainfont: 'Segoe UI', 'Century Gothic', system-ui, -apple-system, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 0.875rem;
    --font-size-lg: 1rem;
    --font-size-xl: 1.125rem;
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 0.75rem;
    --spacing-lg: 1rem;
    --spacing-xl: 1.5rem;
    /* Effects */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.35);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --transition: all 0.2s ease;
    --transition-slow: all 0.3s ease;
    /* Tab Colors */
    --tabSelected: #ffffff; /* Keep */
    --tabHover: #439ab8; /* Keep */
    --tabColor: #11576F; /* Keep */
}

/* ──────────────────────────────────────────────
   LIGHT MODE OVERRIDES
   ────────────────────────────────────────────── */
body.light-mode,
body:not(.dark-mode) {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-header: #f8fafc;
    --bg-subtle: #f1f5f9;
    --bg-hover: rgba(0, 0, 0, 0.04);
    --text-primary: #1e2937;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-disabled: #94a3b8;
    --border-color: #e2e8f0;
    --border-light: #cbd5e1;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

/* ──────────────────────────────────────────────
   GLOBAL BASE STYLES
   ────────────────────────────────────────────── */
/** {
    box-sizing: border-box;
}*/

body, table, tr, td {
    font-family: var(--mainfont);
    margin: 0;
    padding: 0;
    font-size: var(--font-size-base);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--subheader2);
    }

/* ──────────────────────────────────────────────
   TYPOGRAPHY
   ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
}

h1 {
    font-size: 1.75rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

h4 {
    font-size: 1.125rem;
}

h5 {
    font-size: 1rem;
}

h6 {
    font-size: 0.875rem;
}

a, .a, .A {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

    a:hover, .a:hover, .A:hover {
        color: var(--subheader3);
        text-decoration: underline;
    }

.aWhite {
    color: white;
    text-decoration: underline;
}

    .aWhite:hover {
        font-weight: bold;
        color: white;
    }

/* Text Utilities */
.text {
    font-family: var(--mainfont);
    font-size: var(--font-size-base);
    font-weight: normal;
    color: var(--text-primary);
    text-align: left;
    vertical-align: middle;
}

.text-primary {
    color: var(--text-primary);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-muted {
    color: var(--text-muted);
}

.text-success {
    color: var(--success);
}

.text-warning {
    color: var(--warning);
}

.text-error, .red {
    color: var(--error);
}

.bold, .boldtext, .BoldText, .Boldtext {
    font-weight: bold;
    color: var(--text-primary);
}

.center {
    text-align: center;
}

.right {
    text-align: right !important;
}

.left {
    text-align: left;
}

.WhiteTextNW {
    font-family: var(--mainfont);
    /*font-size: 11px;*/
    font-weight: normal;
    color: white;
}



/* ──────────────────────────────────────────────
   PAGE HEADER MODERN STYLES
   ────────────────────────────────────────────── */
.page-header-modern {
    background: linear-gradient(135deg, var(--header), var(--subheader1));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-slow);
}

    .page-header-modern:hover {
        box-shadow: var(--shadow-md);
    }

.page-header-container {
    height: 56px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-lg);
    background: linear-gradient(135deg, var(--header), var(--subheader1));
    transition: var(--transition-slow);
}

.page-header-logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

    .page-header-logo:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: scale(1.02);
    }

    .page-header-logo img {
        max-height: 36px;
        max-width: 36px;
        filter: brightness(0) invert(1);
        opacity: 0.9;
    }

.page-header-title {
    flex: 1;
    padding-left: var(--spacing-md);
}

.page-header-title-label {
    font-size: 18px;
    font-weight: 600;
    color: white;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    margin: 0;
    display: inline-block;
}

.page-header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    white-space: nowrap;
}

.page-header-action-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    color: white !important;
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-decoration: none !important;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

    .page-header-action-link:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: translateY(-1px);
        border-color: rgba(255, 255, 255, 0.4);
        box-shadow: var(--shadow-sm);
        text-decoration: none !important;
    }

    .page-header-action-link:active {
        transform: translateY(0);
    }

/* Employee Info Section */
.employee-info-section {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: var(--spacing-sm) 0;
    transition: var(--transition);
}

/* Tabs Section */
.tabs-section {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
}

.SectionHeaderLightGray {
    border: 1px solid #999999;
    padding: 5px;
    background-color: #CCCCCC;
    font-size: 12px;
    text-align: left;
    font-family: var(--mainfont);
    color: #000000;
    height: 25px;
}


/* Page Instructions */
.page-instructions-modern {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(6, 182, 212, 0.05));
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-md);
    padding: var(--spacing-md) var(--spacing-lg);
    margin: var(--spacing-md) var(--spacing-lg);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

    .page-instructions-modern strong,
    .page-instructions-modern b {
        color: var(--accent);
    }

/* Session Timer */
.session-timer-modern {
    position: fixed;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    z-index: 1000;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

    .session-timer-modern:hover {
        box-shadow: var(--shadow-xl);
        transform: translateY(-2px);
    }

/* Animation for page load */
@keyframes slideInHeader {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header-modern {
    animation: slideInHeader 0.4s ease-out;
}

/* ──────────────────────────────────────────────
   HEADER STYLES (Legacy - kept for compatibility)
   ────────────────────────────────────────────── */
.LoginHeader {
    background: linear-gradient(135deg, var(--header), var(--subheader1));
    font-size: var(--font-size-lg);
    text-align: center;
    font-family: var(--mainfont);
    color: white;
    height: 48px;
    /*display: flex;*/
    align-items: center;
    justify-content: center;
    transition: var(--transition-slow);
}

    .LoginHeader:hover {
        background: linear-gradient(135deg, var(--subheader1), var(--subheader2));
    }

/* LoginHeaderLabel - inherits from parent */
.LoginHeaderLabel {
    background: transparent;
    font-size: inherit;
    font-family: inherit;
    color: inherit;
    height: auto;
    display: inline;
}


.HeaderLabel {
    font-family: var(--mainfont);
    font-size: 12px;
    font-weight: normal;
    color: #404040;
    text-align: left;
    vertical-align: middle;
}

/* Dark/Light mode support - headers stay the same (brand colors don't change) */
body.light-mode .LoginHeader,
body.dark-mode .LoginHeader,
body:not(.light-mode) .LoginHeader {
    background: linear-gradient(135deg, var(--header), var(--subheader1));
    color: white;
}

    body.light-mode .LoginHeader:hover,
    body.dark-mode .LoginHeader:hover {
        background: linear-gradient(135deg, var(--subheader1), var(--subheader2));
    }

.pgDiv, .tmrDivNormal {
    border-color: var(--border-color);
    border-width: 1px;
    border-style: solid;
    height: 40px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.pgTable, .tmrTableNormal {
    height: 40px;
    padding: 0;
    width: 100%;
}

.pgRow, .tmrRowNormal {
    height: 40px;
    background: linear-gradient(135deg, var(--header), var(--subheader1));
    font-size: var(--font-size-lg);
    text-align: center;
    color: white;
}

.pgCol1 {
    padding-left: var(--spacing-lg);
    vertical-align: middle;
    text-align: left;
}

.pgCol2 {
    width: 150px;
    vertical-align: middle;
    text-align: right;
    white-space: nowrap;
    padding-right: var(--spacing-lg);
}

.tmrLabelNormal {
    background: linear-gradient(135deg, var(--header), var(--subheader1));
    font-size: var(--font-size-lg);
    text-align: center;
    height: 40px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ──────────────────────────────────────────────
   BUTTONS - Modernized
   ────────────────────────────────────────────── */
button, .button, .buttonNW, .BtnPrimary, .btnPrimary,
.BtnSecondary, .btnSecondary, .buttonchrome {
    font-family: var(--mainfont);
    font-size: var(--font-size-sm);
    font-weight: 500;
    padding: 0 var(--spacing-xl);
    height: 38px !important;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    border: 1px solid var(--primary);
    margin: 2px;
    background-color: var(--bg-secondary);
    transition: background-color 0.3s ease;
    border: 1px solid var(--header);
}

.BtnPrimary, .btnPrimary, .buttonchrome {
    background: linear-gradient(135deg, var(--header), var(--subheader1));
    color: white;
}

    .BtnPrimary:hover, .btnPrimary:hover, .buttonchrome:hover, .button:hover {
        background: linear-gradient(135deg, var(--subheader1), var(--subheader2));
        transform: translateY(-1px);
        box-shadow: var(--shadow-md);
    }

.BtnSecondary, .btnSecondary {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
    height: 38px !important;
}

    .BtnSecondary:hover, .btnSecondary:hover {
        background: var(--bg-hover);
        border-color: var(--accent);
        transform: translateY(-1px);
    }

    button:disabled, .button:disabled,
    .BtnPrimary:disabled, .btnPrimary:disabled,
    .BtnSecondary:disabled, .btnSecondary:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
        text-decoration: line-through;
    }

/* Button Width Variants */
.BtnPrimary120, .BtnSecondary120 {
    min-width: 140px;
    height: 38px !important;
}

.BtnPrimary150, .BtnSecondary150 {
    width: 170px;
    min-width: 170px !important;
    height: 38px !important;
}

.BtnPrimary200, .BtnSecondary200 {
    min-width: 220px;
    height: 38px !important;
}

/* ──────────────────────────────────────────────
   FORM ELEMENTS
   ────────────────────────────────────────────── */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="date"],
textarea,
select {
    font-family: var(--mainfont);
    font-size: var(--font-size-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    transition: var(--transition);
    /*width: 100%;*/
}

    input[type="text"]:focus,
    input[type="password"]:focus,
    input[type="email"]:focus,
    input[type="number"]:focus,
    input[type="date"]:focus,
    textarea:focus,
    select:focus {
        outline: none;
        border-color: var(--border-focus);
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    }


input[type=button] {
    font-family: var(--mainfont);
    font-size: var(--font-size-sm);
    font-weight: 500;
    padding: 0 var(--spacing-xl);
    height: 38px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    border: 1px solid var(--header);
}

input[type=radio] {
    margin-right: 5px;
    margin-left: 5px;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* Required Field Indicator */
.ctrlRequired,
.datePickerRequired {
    border-color: var(--error) !important;
    background-color: rgba(239, 68, 68, 0.05) !important;
}

.labelRequired {
    color: var(--error) !important;
    font-weight: 600;
}

/* ──────────────────────────────────────────────
   GRID SYSTEM - Modern Data Tables
   ────────────────────────────────────────────── */
.Grid {
    border: 1px solid var(--border-color);
    /* border-radius: var(--radius-lg); */
    background-color: var(--bg-secondary);
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.GridHeader,
.GridHeaderLight {
    background: linear-gradient(135deg, var(--header), var(--subheader1));
    color: white !important;
    font-weight: 600;
    text-align: left;
    padding: 8px 12px; /* More breathing room than old 10px/13px */
    height: 30px; /* Keep your ~30px feel */
    /* padding: var(--spacing-md) var(--spacing-lg);
    height: 42px !important; */
    /*line-height: 42px;*/
    white-space: nowrap;
    /* border-bottom: 2px solid var(--accent); */
    transition: background 0.25s ease;
}

    .GridHeader:hover,
    .GridHeaderLight:hover {
        background: linear-gradient(135deg, var(--subheader1), var(--subheader2));
    }

    .GridHeader td:first-child,
    .GridHeaderLight td:first-child {
        padding-left: 5px !important;
    }

.ItemStyle {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    height: 25px;
}

    .ItemStyle:hover {
        background-color: var(--bg-hover);
    }

.Alternate {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    height: 25px;
}

    .Alternate:hover {
        background-color: var(--bg-hover);
    }

.GridFooter {
    background-color: var(--bg-tertiary);
    padding: var(--spacing-md) var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

/* ──────────────────────────────────────────────
   RADWINDOW - Bootstrap & Metro Skins
   ────────────────────────────────────────────── */
.RadWindow,
.RadWindow_Bootstrap,
.RadWindow_Metro {
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--shadow-xl), var(--shadow-glow) !important;
    font-family: var(--mainfont) !important;
    border: none !important;
    overflow: hidden !important;
}

    /* Title Bar - Both Skins */
    .RadWindow .rwTitleBar,
    .RadWindow_Bootstrap .rwTitleBar,
    .RadWindow_Metro .rwTitleBar {
        background: var(--accent-gradient) !important;
        border-bottom: none !important;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0 !important;
        height: 52px !important;
        padding: 0 var(--spacing-lg) !important;
    }

    .RadWindow .rwTitle,
    .RadWindow_Bootstrap .rwTitle,
    .RadWindow_Metro .rwTitle {
        color: white !important;
        font-weight: 600 !important;
        font-size: var(--font-size-lg) !important;
        font-family: var(--mainfont) !important;
        line-height: 36px !important;
    }

    /* Window Controls */
    .RadWindow .rwWindowControls,
    .RadWindow_Bootstrap .rwWindowControls,
    .RadWindow_Metro .rwWindowControls {
        top: 14px !important;
        right: var(--spacing-lg) !important;
    }

        .RadWindow .rwWindowControls a,
        .RadWindow_Bootstrap .rwWindowControls a,
        .RadWindow_Metro .rwWindowControls a {
            background: rgba(255, 255, 255, 0.1) !important;
            border-radius: var(--radius-sm) !important;
            margin-left: var(--spacing-xs) !important;
            transition: var(--transition) !important;
        }

            .RadWindow .rwWindowControls a:hover,
            .RadWindow_Bootstrap .rwWindowControls a:hover,
            .RadWindow_Metro .rwWindowControls a:hover {
                background: rgba(255, 255, 255, 0.25) !important;
                transform: scale(1.05);
            }

    /* Window Content */
    .RadWindow .rwContent,
    .RadWindow_Bootstrap .rwContent,
    .RadWindow_Metro .rwContent {
        background: var(--bg-secondary) !important;
        color: var(--text-primary) !important;
        padding: 0 !important;
    }

    /* Window Status Bar */
    .RadWindow .rwStatusBar,
    .RadWindow_Bootstrap .rwStatusBar,
    .RadWindow_Metro .rwStatusBar {
        background: var(--bg-tertiary) !important;
        border-top: 1px solid var(--border-color) !important;
        color: var(--text-secondary) !important;
        font-size: var(--font-size-xs) !important;
        padding: var(--spacing-sm) var(--spacing-lg) !important;
        border-radius: 0 0 var(--radius-xl) var(--radius-xl) !important;
    }

    .RadWindow_Metro table.rwTitlebarControls em {
        text-transform: none !important;
    }

    /* Modal Backdrop */
    .RadWindow.rwModal {
        background: rgba(0, 0, 0, 0.6) !important;
        backdrop-filter: blur(4px);
    }

    /* Iframe inside RadWindow */
    .RadWindow iframe,
    .RadWindow_Bootstrap iframe,
    .RadWindow_Metro iframe {
        background: var(--bg-secondary) !important;
    }


.rwNoTitleBar {
    padding: 0 !important;
    margin: 0 !important;
}

/*.RadWindow .rwIcon {
    display: none !important;
}
*/

/* ──────────────────────────────────────────────
   TELERIK CONTROLS - Modernized
   ────────────────────────────────────────────── */
/* TabStrip */
.RadTabStrip_Bootstrap .rtsLevel1 .rtsLink,
.RadTabStrip_Metro .rtsLevel1 .rtsLink {
    background: var(--bg-tertiary) !important;
    color: var(--text-secondary) !important;
    border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
    padding: var(--spacing-sm) var(--spacing-lg) !important;
    transition: var(--transition) !important;
}

    .RadTabStrip_Bootstrap .rtsLevel1 .rtsLink:hover,
    .RadTabStrip_Metro .rtsLevel1 .rtsLink:hover {
        background: var(--bg-hover) !important;
        color: var(--text-primary) !important;
    }

.RadTabStrip_Bootstrap .rtsLevel1 .rtsSelected .rtsLink,
.RadTabStrip_Metro .rtsLevel1 .rtsSelected .rtsLink {
    background: var(--accent-gradient) !important;
    border-color: var(--header) !important;
    color: var(--tabSelected) !important;
}


.RadTabStrip_BlackMetroTouch .rtsLevel1 .rtsLink {
    border-color: var(--subheader1) !important;
    color: var(--tabSelected) !important;
    background-color: var(--subheader1) !important;
}

    .RadTabStrip_BlackMetroTouch .rtsLevel1 .rtsLink:hover {
        background-color: var(--tabHover) !important;
    }

.RadTabStrip_BlackMetroTouch .rtsLevel1 .rtsSelected .rtsLink {
    border-color: #0f485b !important;
    color: var(--tabSelected) !important;
    background-color: var(--header) !important;
}

.RadTabStrip_BlackMetroTouch .rtsLevel1 {
    border-color: var(--header) !important;
}

    .RadTabStrip_BlackMetroTouch .rtsLevel1 ~ .rtsLevel .rtsLink {
        padding: 4px 8px !important;
    }

.RadTabStrip_Metro .rtsLevel1 .rtsLink {
    /*border-color: var(--subheader1) !important;*/
    color: var(--tabColor) !important;
    /*background-color: var(--subheader1) !important;*/
}

.RadTabStrip_Metro .rtsLevel1 .rtsSelected .rtsLink {
    border-color: #0f485b !important;
    color: var(--tabSelected) !important;
    background-color: var(--header) !important;
}

.RadTabStrip_BlackMetroTouch .rtsLevel1 .rtsSelected {
    border-color: #0f485b !important;
    color: var(--tabSelected) !important;
    background-color: var(--header) !important;
}

.RadTabStrip_BlackMetroTouch .rtsLevel1:hover {
    background-color: var(--tabHover) !important;
}

.RadTabStrip_Metro .rtsLevel1 {
    border-color: var(--header) !important;
}

    .RadTabStrip_Metro .rtsLevel1 ~ .rtsLevel .rtsLink {
        padding: 4px 8px !important;
    }

.RadButton_Metro.rbPrimaryButton {
    border-color: var(--header) !important;
    background-color: var(--header) !important;
    border-radius: 5px !important;
}

.RadButton_Material.k-switch-on .k-switch-container {
    color: var(--tabColor) !important;
    background-color: var(--header) !important;
}

.RadButton_Silk.k-switch-on .k-switch-container {
    color: var(--tabColor) !important;
    background-color: var(--header) !important;
}



.RadTabStrip .rtsLink {
    padding: 5px 15px !important;
}


/* Grid Pager */
.RadGrid_Bootstrap .rgPagerCell .rgNumPart a.rgCurrentPage {
    background: var(--accent-gradient) !important;
    border-color: transparent !important;
    color: white !important;
    border-radius: var(--radius-sm) !important;
}

.RadGrid_Bootstrap .rgPagerCell .rgNumPart a,
.RadGrid_Bootstrap .rgPagerCell .rgActionButton {
    color: var(--text-primary) !important;
    border-radius: var(--radius-sm) !important;
    transition: var(--transition) !important;
}

    .RadGrid_Bootstrap .rgPagerCell .rgNumPart a:hover,
    .RadGrid_Bootstrap .rgPagerCell .rgActionButton:hover {
        background: var(--bg-hover) !important;
    }

.k-switch-handle {
    height: 20px !important;
}

.RadButton.RadSwitch.elasticSwitch .k-switch-handle {
    width: 2em !important;
    height: 20px !important;
}

.RadButton.RadSwitch.k-switch-on.elasticSwitch .k-switch-handle {
    left: calc(100% - 2em) !important;
    height: 20px !important;
}

.RadButton.RadSwitch.elasticSwitch,
.RadButton.RadSwitch.elasticSwitch .k-switch-container {
    width: 5em !important;
    height: 20px !important;
}

.RadButton_Bootstrap .k-switch-handle {
    height: 20px !important;
}

/* ──────────────────────────────────────────────
   RADGRID PAGER - Consistent Height & Styling
   ────────────────────────────────────────────── */

/* Pager Container */
.RadGrid .rgPagerCell {
    padding: var(--spacing-sm) var(--spacing-md) !important;
    background: var(--bg-tertiary) !important;
    border-top: 1px solid var(--border-color) !important;
    min-height: 48px !important;
}

    /* Pager Wrapper - Flex layout for consistency */
    .RadGrid .rgPagerCell > div {
        display: flex !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: var(--spacing-sm) !important;
    }

    /* All Pager Buttons - Unified height */
    .RadGrid .rgPagerCell .rgActionButton,
    .RadGrid .rgPagerCell .rgPagerButton {
        height: 32px !important;
        min-height: 32px !important;
        line-height: 30px !important;
        padding: 0 var(--spacing-md) !important;
        font-size: var(--font-size-sm) !important;
        font-family: var(--mainfont) !important;
        background: var(--bg-secondary) !important;
        border: 1px solid var(--border-color) !important;
        color: var(--text-primary) !important;
        border-radius: var(--radius-sm) !important;
        cursor: pointer !important;
        transition: var(--transition) !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

        .RadGrid .rgPagerCell .rgActionButton:hover,
        .RadGrid .rgPagerCell .rgPagerButton:hover {
            background: var(--bg-hover) !important;
            border-color: var(--accent) !important;
            color: var(--accent) !important;
        }

    /* Numeric Page Numbers */
    .RadGrid .rgPagerCell .rgNumPart a {
        height: 32px !important;
        min-width: 32px !important;
        line-height: 30px !important;
        padding: 0 var(--spacing-sm) !important;
        font-size: var(--font-size-sm) !important;
        font-family: var(--mainfont) !important;
        background: var(--bg-secondary) !important;
        border: 1px solid var(--border-color) !important;
        color: var(--text-primary) !important;
        border-radius: var(--radius-sm) !important;
        cursor: pointer !important;
        transition: var(--transition) !important;
        text-align: center !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

        .RadGrid .rgPagerCell .rgNumPart a:hover {
            background: var(--bg-hover) !important;
            border-color: var(--accent) !important;
            color: var(--accent) !important;
        }

        /* Current Page - Active State */
        .RadGrid .rgPagerCell .rgNumPart a.rgCurrentPage {
            background: var(--accent-gradient) !important;
            border-color: transparent !important;
            color: white !important;
            font-weight: 600 !important;
            cursor: default !important;
        }

            .RadGrid .rgPagerCell .rgNumPart a.rgCurrentPage:hover {
                transform: none !important;
            }

    /* Page Size Dropdown / Input */
    .RadGrid .rgPagerCell .rgPageSize {
        height: 32px !important;
        line-height: 30px !important;
        padding: 0 var(--spacing-sm) !important;
        font-size: var(--font-size-sm) !important;
        font-family: var(--mainfont) !important;
        background: var(--bg-secondary) !important;
        border: 1px solid var(--border-color) !important;
        color: var(--text-primary) !important;
        border-radius: var(--radius-sm) !important;
        margin: 0 var(--spacing-xs) !important;
    }

    /* Page Index Input Box */
    .RadGrid .rgPagerCell .rgPagerTextBox {
        height: 32px !important;
        width: 50px !important;
        min-width: 50px !important;
        line-height: 30px !important;
        padding: 0 var(--spacing-sm) !important;
        font-size: var(--font-size-sm) !important;
        font-family: var(--mainfont) !important;
        text-align: center !important;
        background: var(--bg-secondary) !important;
        border: 1px solid var(--border-color) !important;
        color: var(--text-primary) !important;
        border-radius: var(--radius-sm) !important;
        margin: 0 var(--spacing-xs) !important;
    }

        .RadGrid .rgPagerCell .rgPagerTextBox:focus {
            outline: none !important;
            border-color: var(--border-focus) !important;
            box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1) !important;
        }

    /* Page Label (e.g., "Page:", "of", "Go") */
    .RadGrid .rgPagerCell .rgPageFirst,
    .RadGrid .rgPagerCell .rgPagePrev,
    .RadGrid .rgPagerCell .rgPageNext,
    .RadGrid .rgPagerCell .rgPageLast,
    .RadGrid .rgPagerCell .rgPageLabel {
        font-size: var(--font-size-sm) !important;
        color: var(--text-secondary) !important;
        margin: 0 var(--spacing-xs) !important;
        line-height: 32px !important;
    }

    /* Change Link / Button */
    .RadGrid .rgPagerCell a.rgChangePage {
        height: 32px !important;
        line-height: 30px !important;
        padding: 0 var(--spacing-md) !important;
        font-size: var(--font-size-sm) !important;
        background: var(--accent-gradient) !important;
        border: none !important;
        color: white !important;
        border-radius: var(--radius-sm) !important;
        cursor: pointer !important;
        transition: var(--transition) !important;
        display: inline-flex !important;
        align-items: center !important;
        text-decoration: none !important;
    }

        .RadGrid .rgPagerCell a.rgChangePage:hover {
            opacity: 0.9 !important;
            transform: translateY(-1px) !important;
            text-decoration: none !important;
        }

    /* Numeric and Advanced Pager Layout */
    .RadGrid .rgPagerCell .NextPrevNumericAndAdvanced,
    .RadGrid .rgPagerCell .rgAdvPart {
        display: inline-flex !important;
        align-items: center !important;
        gap: var(--spacing-xs) !important;
        flex-wrap: wrap !important;
    }

    /* Separator between pager sections */
    .RadGrid .rgPagerCell .rgSeparator {
        color: var(--border-color) !important;
        margin: 0 var(--spacing-sm) !important;
    }

    /* Disabled pager buttons */
    .RadGrid .rgPagerCell .rgActionButton[disabled],
    .RadGrid .rgPagerCell .rgPagerButton[disabled] {
        opacity: 0.5 !important;
        cursor: not-allowed !important;
        pointer-events: none !important;
    }

/* Responsive Pager - Mobile */
@media (max-width: 768px) {
    .RadGrid .rgPagerCell > div {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .RadGrid .rgPagerCell .NextPrevNumericAndAdvanced {
        flex-wrap: wrap !important;
    }

    .RadGrid .rgPagerCell .rgActionButton,
    .RadGrid .rgPagerCell .rgPagerButton,
    .RadGrid .rgPagerCell .rgNumPart a {
        height: 36px !important;
        min-width: 36px !important;
    }
}

/* ──────────────────────────────────────────────
   RADGRID - General Row Consistency
   ────────────────────────────────────────────── */

/* Grid Rows - Consistent height */
.RadGrid_Bootstrap .rgRow,
.RadGrid_Bootstrap .rgAltRow,
.RadGrid_Bootstrap .rgEditRow,
.RadGrid_Bootstrap .rgFooter,
.RadGrid_Bootstrap .rgGroupHeader {
    /*height: calc(1.42857143em + 12px) !important;*/
    height: 42px !important;
    line-height: 1.4 !important;
}

    /* Grid Cells */
    .RadGrid_Bootstrap .rgRow td,
    .RadGrid_Bootstrap .rgAltRow td,
    .RadGrid_Bootstrap .rgEditRow td {
        /*padding: var(--spacing-sm) var(--spacing-md) !important;*/
        vertical-align: middle !important;
    }

/* Command Column buttons (like Cancel Request) */
.RadGrid .rgCommandColumn a,
.RadGrid td a[href*="Cancel"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: var(--spacing-xs) var(--spacing-md) !important;
    background: var(--bg-tertiary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--text-primary) !important;
    font-size: var(--font-size-xs) !important;
    text-decoration: none !important;
    transition: var(--transition) !important;
    height: 28px !important;
}

    .RadGrid .rgCommandColumn a:hover,
    .RadGrid td a[href*="Cancel"]:hover {
        background: var(--error) !important;
        border-color: var(--error) !important;
        color: white !important;
        text-decoration: none !important;
    }

/* Filter Box */
.RadGrid .rgFilterBox {
    height: 32px !important;
    padding: var(--spacing-xs) var(--spacing-sm) !important;
    font-size: var(--font-size-sm) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}

    .RadGrid .rgFilterBox:focus {
        outline: none !important;
        border-color: var(--border-focus) !important;
        box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1) !important;
    }

/* Header Filter Icons */
.RadGrid .rgFilterIcon {
    height: 32px !important;
    width: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
}

    .RadGrid .rgFilterIcon:hover {
        background: var(--bg-hover) !important;
        border-radius: var(--radius-sm) !important;
    }

/* ComboBox */
.RadComboBox_Bootstrap .rcbInput {
    font-size: var(--font-size-sm) !important;
    font-family: var(--mainfont) !important;
    padding: var(--spacing-sm) !important;
}

.RadComboBoxDropDown_Bootstrap {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-lg) !important;
}

.RadComboBoxDropDown .rcbScroll {
    height: 100%;
    border-color: inherit;
    position: relative;
    overflow: auto;
    background: var(--bg-secondary) !important;
    /*background-color: white;*/
}

/* TreeView */
.RadTreeView .rtImg {
    width: 18px !important;
    height: 18px !important;
}

.TreeNode {
    color: var(--text-primary);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

    .TreeNode:hover {
        background: var(--bg-hover);
        color: var(--accent);
    }

/* PanelBar */
.RadPanelBar_Metro .rpRootLink.rpSelected {
    background: var(--accent-gradient) !important;
    border-color: transparent !important;
    /*border-color: var(--subheader2) !important;
    background-color: var(--subheader2) !important;*/
}

.RadPanelBar .rpGroup a.rpLink:hover {
    background: var(--bg-hover) !important;
    /*background-color: var(--assistantBackground) !important;*/
}

.RadPanelBar_Metro .rpGroup .rpLink.rpHovered {
    color: black !important;
}

.RadScheduler_Metro .rsSelected > .rsButton {
    border-color: var(--subheader1) !important;
    background-color: var(--subheader1) !important;
}


/* ──────────────────────────────────────────────
   PANELS & CONTAINERS
   ────────────────────────────────────────────── */
.roundContainer {
    /*border: 1px solid var(--border-color);*/
    border-top-right-radius: var(--radius-lg);
    border-top-left-radius: var(--radius-lg);
    overflow: hidden;
    /*background: var(--bg-secondary);*/
}

.editor_panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-lg);
    position: absolute;
    z-index: 999 !important;
    top: 40px;
    left: 14px;
    right: 14px;
    transition: all 0.3s ease;
    max-height: 90vh; /* Keep panel responsive */
    overflow-y: auto; /* Allow scroll if content overflows */
}

    /* Add hover effect for interactivity */
    .editor_panel:hover {
        box-shadow: rgba(0, 0, 0, 0.1) 0 8px 25px, rgba(0, 0, 0, 0.1) 0 2px 10px;
        border-color: rgba(0, 0, 0, 0.2);
    }

    /* Add hover effect for interactivity */
    .editor_panel:hover {
        box-shadow: rgba(0, 0, 0, 0.1) 0 8px 25px, rgba(0, 0, 0, 0.1) 0 2px 10px;
        border-color: rgba(0, 0, 0, 0.2);
    }

    .editor_panel table {
        border-collapse: separate; /* Allows custom spacing between cells */
        border-spacing: 2px; /* Adds space between table rows and cells */
    }

    .editor_panel th, .editor_panel td {
        padding: 2px 6px; /* Adds padding inside the cells */
        text-align: left; /* Ensures the text is aligned to the left */
        vertical-align: middle; /* Ensures text is vertically centered */
    }


.editor_panel_heading {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--accent);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    /*border-bottom: 2px solid var(--accent);*/
}

.pd_editor_panel {
    top: 170px !important;
}

.editor_frame {
    width: 99%;
    height: 99%;
    border: 1px solid #404040;
    background-color: White;
    margin-right: 20px;
    margin-bottom: 30px;
}

.editor_frame_container {
    padding: 10px;
    position: absolute;
    z-index: 999;
    width: 99%;
    height: 90%;
    top: 0;
    left: 0;
    border: 1px solid #797979;
    background-color: #333333;
    text-align: left;
    vertical-align: middle;
}

.editor_frame_container_message {
    padding: 10px;
    position: absolute;
    z-index: 999;
    width: 99%;
    height: 90%;
    top: 0;
    left: 0;
    border: 1px solid #797979;
    background-color: #333333;
    text-align: left;
    vertical-align: middle;
}

.editor_frame_container_message_std {
    padding: 10px;
    position: absolute;
    z-index: 999;
    top: 0;
    left: 0;
    border: 1px solid #797979;
    background-color: white;
    text-align: left;
    vertical-align: middle;
}

.detail_screen_table {
    width: 100%;
}


.tableMain {
    border-collapse: separate;
    border-spacing: 0px;
    border: 0;
    width: 100%;
}

    .tableMain th, td {
        padding: 0px;
    }

.tableEditor {
    border-collapse: separate;
    border-spacing: 2px;
    border: 0;
    width: 100%;
    padding: 24px 0 0 22px;
}

    .tableEditor th {
        padding: 2px;
    }

.tableEditorPersonal {
    border-collapse: separate;
    border-spacing: 2px;
    border: 0;
    width: 100%;
    padding: 2px 0 0 2px;
}

    .tableEditorPersonal th {
        padding: 2px;
    }

.RoundTop {
    -moz-border-radius-topleft: 10px;
    -moz-border-radius-topright: 10px;
    -webkit-border-top-left-radius: 10px;
    border-top-left-radius: 10px;
    -webkit-border-top-right-radius: 10px;
    border-top-right-radius: 10px;
    -moz-border-radius-topleft: 10px;
    -moz-border-radius-topright: 10px;
}

.popupdiv {
    z-index: 300;
    left: 40px;
    position: absolute;
    top: 40px;
    margin: 10px;
    border: 1px solid #333333;
    background-color: #E3E3E3 !important;
    box-shadow: rgba(0,0,0,0.5) 0 0 35px;
}

/* Assistant Styles */
.AssistantRow {
    transition: var(--transition);
    border-radius: var(--radius-sm);
}

    .AssistantRow:hover {
        background-color: var(--bg-hover);
        font-weight: 600;
        cursor: pointer;
    }

.hrf_assistant_sub_menu_item {
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

    .hrf_assistant_sub_menu_item:hover {
        background-color: var(--bg-hover);
        font-weight: 600;
    }

/* ──────────────────────────────────────────────
   MESSAGE & HELP DIALOGS
   ────────────────────────────────────────────── */
.msgHeadBg,
.Help_Header_Background {
    background: var(--accent-gradient);
    color: white;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    padding: var(--spacing-md);
}

.ErrorBg {
    background: rgb(254 245 245);
    border: 1px solid var(--error);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    width: 100%;
}

.ErrorTitle {
    color: var(--error);
    font-weight: bold;
}

.Instruction_BackGround {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--warning);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
}

.Instruction_Title {
    color: var(--warning);
    font-weight: bold;
}

/* ──────────────────────────────────────────────
   NOTES & DOCUMENTS
   ────────────────────────────────────────────── */
.note_item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    transition: var(--transition);
}

    .note_item:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-2px);
    }

.note_header_row {
    background: linear-gradient(135deg, var(--header), var(--subheader1));
    color: white;
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
}

.note_expired {
    color: var(--warning);
}

.note_archived {
    color: var(--error);
}

.note_edit_lnk {
    color: var(--success);
}

.note_delete_lnk {
    color: var(--error);
}

/* ──────────────────────────────────────────────
   DASHBOARD & IMAGES
   ────────────────────────────────────────────── */
.DashboardImage {
    height: 42px;
    transition: var(--transition);
}

    .DashboardImage:hover {
        transform: scale(1.05);
    }

.DashboardImageDisabled {
    opacity: 0.5;
    filter: grayscale(1);
}

.dvDashbaord {
    background: linear-gradient(135deg, var(--subheader1), var(--subheader2));
    border-radius: var(--radius-lg);
    transition: var(--transition);
    cursor: pointer;
}

    .dvDashbaord:hover {
        background: linear-gradient(135deg, var(--subheader2), var(--subheader3));
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

/* ──────────────────────────────────────────────
   LOADING OVERLAY
   ────────────────────────────────────────────── */
.PleaseWait_FullDiv {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999; /* 9999 */
}

.PleaseWait_FullTable {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 2px;
    box-shadow: var(--shadow-xl);
    text-align: center;
}

/* ──────────────────────────────────────────────
   UTILITY CLASSES
   ────────────────────────────────────────────── */
.widthFull {
    width: 100%;
}

.width50 {
    width: 50px;
}

.width100 {
    width: 100px;
}

.width200 {
    width: 200px;
}

.width300 {
    width: 300px;
}

.width400 {
    width: 400px;
}

.width700 {
    width: 700px;
}

.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.rounded-sm {
    border-radius: var(--radius-sm);
}

.rounded-md {
    border-radius: var(--radius-md);
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.rounded-xl {
    border-radius: var(--radius-xl);
}

/* Section Title */
.sectionTitle,
.mainHeading {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--accent);
}

.pageTitle {
    font-weight: 600;
    font-size: var(--font-size-xl);
    color: var(--text-primary);
}
/* Only apply modern styling when page instructions have content */
.pageInstructions:not(:empty),
#HRF_WUC_PAGE_CONTENT_lblPageInstructions:not(:empty) {
    /*display: block;*/
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(6, 182, 212, 0.04));
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.5;
    margin-left: var(--spacing-lg);
}

/* Only apply to the specific label when it has content */
#HRF_WUC_PAGE_CONTENT_lblPageInstructions:not(:empty) {
    /*display: block;*/
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(6, 182, 212, 0.04));
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

    /* Bold text styling - only apply when parent has content */
    .pageInstructions:not(:empty) b,
    .pageInstructions:not(:empty) strong,
    #HRF_WUC_PAGE_CONTENT_lblPageInstructions:not(:empty) b,
    #HRF_WUC_PAGE_CONTENT_lblPageInstructions:not(:empty) strong {
        color: var(--accent);
        font-weight: 600;
    }

/* Hide the container when the span inside has no text */
.pageInstructions:has(span:empty),
.pageInstructions:has(span.BlueTextWn:empty) {
    display: none;
}

/* Style only when the span has actual text content */
.pageInstructions:has(span:not(:empty)),
.pageInstructions:has(span.BlueTextWn:not(:empty)) {
    /*display: block;*/
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(6, 182, 212, 0.04));
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.5;
    margin-left: var(--spacing-lg);
}

    /* Bold text styling */
    .pageInstructions:has(span:not(:empty)) b,
    .pageInstructions:has(span:not(:empty)) strong {
        color: var(--accent);
        font-weight: 600;
    }

/* Responsive */
@media (max-width: 768px) {
    .pageInstructions:has(span:not(:empty)) {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 11px;
        margin-left: var(--spacing-sm);
    }
}

/* Responsive adjustment - only when has content */
@media (max-width: 768px) {
    .pageInstructions:not(:empty),
    #HRF_WUC_PAGE_CONTENT_lblPageInstructions:not(:empty) {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 11px;
        margin-left: var(--spacing-sm);
    }
}

/* Responsive adjustment */
@media (max-width: 768px) {
    #HRF_WUC_PAGE_CONTENT_lblPageInstructions {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 11px;
    }
}

/* Help Line */
.helpLine, .line {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
    margin: var(--spacing-lg) 0;
}

/* ──────────────────────────────────────────────
   RESPONSIVE DESIGN
   ────────────────────────────────────────────── */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 0.75rem;
        --spacing-xl: 1rem;
    }

    .page-header-container {
        height: auto;
        min-height: 56px;
        flex-wrap: wrap;
        padding: var(--spacing-sm);
    }

    .page-header-title {
        padding-left: var(--spacing-sm);
    }

    .page-header-title-label {
        font-size: 14px;
    }

    .page-header-actions {
        gap: var(--spacing-xs);
    }

    .page-header-action-link {
        padding: 4px 8px;
        font-size: 11px;
    }

    .page-header-logo {
        width: 40px;
        height: 40px;
    }

        .page-header-logo img {
            max-height: 28px;
            max-width: 28px;
        }

    .page-instructions-modern {
        margin: var(--spacing-sm);
        padding: var(--spacing-sm);
        font-size: 11px;
    }

    .pgCol1, .pgCol2 {
        padding-left: var(--spacing-sm);
        padding-right: var(--spacing-sm);
    }

    .GridHeader, .GridHeaderLight,
    .ItemStyle, .Alternate {
        padding: var(--spacing-sm);
    }

    button, .button, .BtnPrimary, .btnPrimary,
    .BtnSecondary, .btnSecondary {
        padding: 0 var(--spacing-lg);
        height: 34px;
        font-size: var(--font-size-xs);
    }

    .editor_panel {
        margin: var(--spacing-sm);
        padding: var(--spacing-md);
    }
}

@media (max-width: 576px) {
    .pgCol2 {
        display: none;
    }

    .Grid {
        overflow-x: auto;
        display: block;
    }

    .RadWindow_Bootstrap,
    .RadWindow_Metro {
        width: 95% !important;
        left: 2.5% !important;
    }
}

/* ──────────────────────────────────────────────
   PRINT STYLES
   ────────────────────────────────────────────── */
@media print {
    .sidebar, .rightSidebar, .topbar,
    .RadWindow .rwTitleBar,
    .button, .BtnPrimary, .BtnSecondary,
    .page-header-actions,
    .page-header-action-link,
    .session-timer-modern {
        display: none !important;
    }

    .page-header-modern {
        background: #f0f0f0 !important;
        print-color-adjust: exact;
    }

    .page-header-title-label {
        color: #000 !important;
    }

    body, .main-area, .content-area {
        background: white !important;
        color: black !important;
    }

    .Grid, .ItemStyle, .Alternate {
        border: 1px solid #ddd !important;
        height: 25px;
    }
}

/* ──────────────────────────────────────────────
   ANIMATIONS
   ────────────────────────────────────────────── */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

.LoginBody {
    padding-left: 5%;
    padding-right: 5%;
    overflow-y: auto;
    min-height: 100vh;
    position: relative;
}

    /* Background image with overlay for better text readability */
    .LoginBody::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url("../../images/background.jpg") no-repeat center center fixed;
        background-size: cover;
        z-index: -1;
        opacity: 1;
    }

    /* Optional: Add a dark overlay for better text contrast */
    .LoginBody::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: -1;
    }

/* Light mode overlay adjustment */
body.light-mode .LoginBody::after {
    background: rgba(255, 255, 255, 0.2);
}

/* Modern Page Header Styles - Integrated with Main Theme */
.page-header-modern {
    background: linear-gradient(135deg, var(--header), var(--subheader1));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-slow);
}

    .page-header-modern:hover {
        box-shadow: var(--shadow-md);
    }

.page-header-container {
    height: 56px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-lg);
    background: linear-gradient(135deg, var(--header), var(--subheader1));
    transition: var(--transition-slow);
}

.page-header-logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

    .page-header-logo:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: scale(1.02);
    }

    .page-header-logo img {
        max-height: 36px;
        max-width: 36px;
        filter: brightness(0) invert(1);
        opacity: 0.9;
    }

.page-header-title {
    flex: 1;
    padding-left: var(--spacing-md);
}

.page-header-title-label {
    font-size: 18px;
    font-weight: 600;
    color: white;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    margin: 0;
    display: inline-block;
}

.page-header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    white-space: nowrap;
}

.page-header-action-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    color: white !important;
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-decoration: none !important;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

    .page-header-action-link:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: translateY(-1px);
        border-color: rgba(255, 255, 255, 0.4);
        box-shadow: var(--shadow-sm);
        text-decoration: none !important;
    }

    .page-header-action-link:active {
        transform: translateY(0);
    }

/* Employee Info Section */
.employee-info-section {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: var(--spacing-sm) 0;
    transition: var(--transition);
}

/* Tabs Section */
.tabs-section {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
}

/* Page Instructions */
.page-instructions-modern {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(6, 182, 212, 0.05));
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-md);
    padding: var(--spacing-md) var(--spacing-lg);
    margin: var(--spacing-md) var(--spacing-lg);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

    .page-instructions-modern strong,
    .page-instructions-modern b {
        color: var(--accent);
    }

/* Session Timer */
.session-timer-modern {
    position: fixed;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    z-index: 1000;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

    .session-timer-modern:hover {
        box-shadow: var(--shadow-xl);
        transform: translateY(-2px);
    }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .page-header-container {
        height: auto;
        min-height: 56px;
        flex-wrap: wrap;
        padding: var(--spacing-sm);
    }

    .page-header-title {
        padding-left: var(--spacing-sm);
    }

    .page-header-title-label {
        font-size: 14px;
    }

    .page-header-actions {
        gap: var(--spacing-xs);
    }

    .page-header-action-link {
        padding: 4px 8px;
        font-size: 11px;
    }

    .page-header-logo {
        width: 40px;
        height: 40px;
    }

        .page-header-logo img {
            max-height: 28px;
            max-width: 28px;
        }

    .page-instructions-modern {
        margin: var(--spacing-sm);
        padding: var(--spacing-sm);
        font-size: 11px;
    }
}

/* Animation for page load */
@keyframes slideInHeader {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header-modern {
    animation: slideInHeader 0.4s ease-out;
}

/* Print Styles */
@media print {
    .page-header-actions,
    .page-header-action-link,
    .session-timer-modern {
        display: none !important;
    }

    .page-header-modern {
        background: #f0f0f0 !important;
        print-color-adjust: exact;
    }

    .page-header-title-label {
        color: #000 !important;
    }
}

/* Ensure all elements inherit theme colors */
table, tbody, thead, tfoot, tr, th, td {
    background-color: inherit;
    color: inherit;
}

/* BlueTextNW - Using CSS Variables */
.BlueTextNW,
.BlueTextNw,
.bluetextnw {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

/* Ensure light mode text color */
body.light-mode .BlueTextNW,
body.light-mode .BlueTextNw,
body.light-mode .bluetextnw {
    color: var(--text-primary);
}


.DashboardImageDisabled {
    color: dimgray !important;
    height: 24px;
}

.DashboardImageSmall {
    border: 0;
    height: 16px;
}

.BirthDayPhoto {
    border: 0;
    height: 22px;
    cursor: pointer;
}

.SCREEN_PROPERTIES_LINK_IMG {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    right: auto;
}

.EmpHoldingStatus {
    border: 1px solid rgba(148, 49, 47, 0.2);
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    background-color: orangered;
    padding: 2px;
}

.hline {
    border-width: 0px;
    border-bottom: 1px solid silver;
}

.line {
    width: 100%;
    border-bottom: solid 1px lightgray;
    height: 2px;
}


.dataGroup {
    background-color: var(--assistantBackground) !important;
}

.projectIcon {
    background-color: #25a0da;
    min-width: 100px;
    height: 100px;
    font-size: 22px;
    margin-left: 50px;
    line-height: 100px;
    text-align: center;
    width: 150px;
}

/* Base (dark theme) styles for the loader */
.fullscreen-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* darker overlay for dark mode */
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: background 0.2s ease;
}

.loader-content {
    background: #1e1e2f; /* dark background */
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    color: #e0e0e0; /* light text */
}

    .loader-content i {
        color: #007bff; /* keep accent colour or make it theme‑aware */
        margin-bottom: 10px;
    }

/* Light mode overrides */
body.light-mode .fullscreen-loader {
    background: rgba(255, 255, 255, 0.85); /* lighter, translucent background */
}

body.light-mode .loader-content {
    background: #ffffff; /* white background */
    color: #333333; /* dark text */
}

    body.light-mode .loader-content i {
        color: #007bff; /* same accent, or change if desired */
    }


/* Fix Telerik RadUpload button + layout */
.RadUpload .ruFileWrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.RadUpload .ruFakeInput {
    flex: 1;
    min-width: 0;
}

.RadUpload .ruButton.ruBrowse {
    width: auto !important;
    min-width: 80px;
    padding: 6px 12px;
    background: var(--primary, #11576F);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
}

    .RadUpload .ruButton.ruBrowse:hover {
        background: var(--subheader1, #286E86);
    }

/* CRITICAL: stop global width override */
.RadUpload input[type="file"],
.RadUpload input[type="button"] {
    width: auto !important;
}

.RadUpload .ruFakeInput {
    border: 1px solid var(--border-color, #ccc);
    border-radius: 6px;
    padding: 6px 8px;
    background: var(--bg-secondary, #fff);
}

.RadInput .riTextBox {
    height: 32px !important;
}

.radTextBox {
    height: 32px !important;
}

.alignRight {
    text-align: right;
}

.alignCenter {
    text-align: center;
}

.alignLeft {
    text-align: left;
}

.alignTop {
    vertical-align: top;
}

.alignMiddle {
    vertical-align: middle;
}

.alignBottom {
    vertical-align: bottom;
}


/* Modern Copilot-style option buttons */
.modern-action-btn {
    transition: all 0.25s ease-in-out !important;
    font-weight: 500 !important;
    padding: 8px 20px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 40px !important; /* fully rounded pill */
    color: #1a2c3e !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
    backdrop-filter: blur(0px) !important;
    letter-spacing: -0.2px !important;
}

    .modern-action-btn:hover {
        background: linear-gradient(105deg, #f0f4fe 0%, #e9eefc 100%) !important;
        border-color: #b9c8ff !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 12px 22px -10px rgba(70, 120, 250, 0.25) !important;
        color: #0f2b3d !important;
    }

    .modern-action-btn:active {
        transform: translateY(1px) !important;
        box-shadow: 0 6px 12px -6px rgba(0, 0, 0, 0.1) !important;
    }

    .modern-action-btn i {
        margin-right: 8px !important;
        font-size: 1rem !important;
        vertical-align: middle !important;
        color: #4c6ef5 !important;
        transition: transform 0.2s ease !important;
    }

    .modern-action-btn:hover i {
        transform: scale(1.05) !important;
        color: #2b4ce6 !important;
    }