/* ==========================================================================
   DESIGN SYSTEM - SOURCE OF TRUTH
   Strict dark-first design system for Timesheet application
   All UI must use these tokens ONLY - no hardcoded values!
   ========================================================================== */

:root {
    /* PRIMARY COLORS */
    --color-primary: #1F238B;
    --color-primary-hover: #181c6f;
    --color-primary-light: #2a2fb5;

    /* BACKGROUND COLORS */
    --color-bg: #FFFED8;
    --color-surface: #232323;
    --color-elevated: #2D3034;
    --color-overlay: rgba(0, 0, 0, 0.5);

    /* BORDER COLORS */
    --color-border: #2D3034;
    --color-border-light: #3D3D3D;

    /* TEXT COLORS */
    --color-text: #1E293B;
    /* Updated from #FFFFFF for readability on light background */
    --color-text-muted: #64748B;
    /* Updated from #A1A1AA */
    --color-text-disabled: #94A3B8;

    /* STATUS COLORS */
    --color-success: #22c55e;
    --color-success-hover: #1ea34d;
    --color-danger: #ef4444;
    --color-danger-hover: #dc2626;
    --color-warning: #f59e0b;
    --color-info: #3b82f6;

    /* TYPOGRAPHY */
    --font-family-base: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-md: 14px;
    --font-size-lg: 20px;
    --font-size-xl: 24px;
    --font-size-2xl: 32px;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 600;
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;

    /* SPACING (8px GRID) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 16px;
    --space-4: 24px;
    --space-5: 32px;
    --space-6: 48px;
    --space-7: 64px;

    /* RADIUS */
    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;

    /* SHADOWS */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.3);

    /* TRANSITIONS */
    --transition-fast: 0.15s ease;
    --transition: 0.2s ease;
    --transition-slow: 0.3s ease;

    /*  LAYOUT */
    --header-height: 64px;
    --sidebar-width: 250px;
    --footer-height: 60px;
}

/* ==========================================================================
   BASE STYLES & RESET
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-normal);
    color: var(--color-text);
    background-color: var(--color-bg);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-tight);
    margin-top: 0;
    margin-bottom: var(--space-3);
    color: var(--color-text);
}

h1 {
    font-size: var(--font-size-2xl);
}

h2 {
    font-size: var(--font-size-xl);
}

h3 {
    font-size: var(--font-size-lg);
}

h4 {
    font-size: var(--font-size-md);
}

h5 {
    font-size: var(--font-size-md);
}

h6 {
    font-size: var(--font-size-sm);
}

p {
    margin-top: 0;
    margin-bottom: var(--space-3);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-hover);
}

.text-muted {
    color: var(--color-text-muted) !important;
}

.text-success {
    color: var(--color-success) !important;
}

.text-danger {
    color: var(--color-danger) !important;
}

.text-warning {
    color: var(--color-warning) !important;
}

.text-info {
    color: var(--color-info) !important;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

/* Flexbox Utilities */
.d-flex {
    display: flex !important;
}

.d-inline-flex {
    display: inline-flex !important;
}

.flex-row {
    flex-direction: row !important;
}

.flex-column {
    flex-direction: column !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
}

.flex-nowrap {
    flex-wrap: nowrap !important;
}

.justify-content-start {
    justify-content: flex-start !important;
}

.justify-content-end {
    justify-content: flex-end !important;
}

.justify-content-center {
    justify-content: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.justify-content-around {
    justify-content: space-around !important;
}

.align-items-start {
    align-items: flex-start !important;
}

.align-items-end {
    align-items: flex-end !important;
}

.align-items-center {
    align-items: center !important;
}

.align-items-stretch {
    align-items: stretch !important;
}

.flex-grow-0 {
    flex-grow: 0 !important;
}

.flex-grow-1 {
    flex-grow: 1 !important;
}

.flex-shrink-0 {
    flex-shrink: 0 !important;
}

.flex-shrink-1 {
    flex-shrink: 1 !important;
}

/* Spacing Utilities */
.m-0 {
    margin: 0 !important;
}

.m-1 {
    margin: var(--space-1) !important;
}

.m-2 {
    margin: var(--space-2) !important;
}

.m-3 {
    margin: var(--space-3) !important;
}

.m-4 {
    margin: var(--space-4) !important;
}

.m-5 {
    margin: var(--space-5) !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.mt-1 {
    margin-top: var(--space-1) !important;
}

.mt-2 {
    margin-top: var(--space-2) !important;
}

.mt-3 {
    margin-top: var(--space-3) !important;
}

.mt-4 {
    margin-top: var(--space-4) !important;
}

.mt-5 {
    margin-top: var(--space-5) !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: var(--space-1) !important;
}

.mb-2 {
    margin-bottom: var(--space-2) !important;
}

.mb-3 {
    margin-bottom: var(--space-3) !important;
}

.mb-4 {
    margin-bottom: var(--space-4) !important;
}

.mb-5 {
    margin-bottom: var(--space-5) !important;
}

.ml-0 {
    margin-left: 0 !important;
}

.ml-1 {
    margin-left: var(--space-1) !important;
}

.ml-2 {
    margin-left: var(--space-2) !important;
}

.ml-3 {
    margin-left: var(--space-3) !important;
}

.ml-4 {
    margin-left: var(--space-4) !important;
}

.ml-5 {
    margin-left: var(--space-5) !important;
}

.mr-0 {
    margin-right: 0 !important;
}

.mr-1 {
    margin-right: var(--space-1) !important;
}

.mr-2 {
    margin-right: var(--space-2) !important;
}

.mr-3 {
    margin-right: var(--space-3) !important;
}

.mr-4 {
    margin-right: var(--space-4) !important;
}

.mr-5 {
    margin-right: var(--space-5) !important;
}

.p-0 {
    padding: 0 !important;
}

.p-1 {
    padding: var(--space-1) !important;
}

.p-2 {
    padding: var(--space-2) !important;
}

.p-3 {
    padding: var(--space-3) !important;
}

.p-4 {
    padding: var(--space-4) !important;
}

.p-5 {
    padding: var(--space-5) !important;
}

.pt-0 {
    padding-top: 0 !important;
}

.pt-1 {
    padding-top: var(--space-1) !important;
}

.pt-2 {
    padding-top: var(--space-2) !important;
}

.pt-3 {
    padding-top: var(--space-3) !important;
}

.pt-4 {
    padding-top: var(--space-4) !important;
}

.pt-5 {
    padding-top: var(--space-5) !important;
}

.pb-0 {
    padding-bottom: 0 !important;
}

.pb-1 {
    padding-bottom: var(--space-1) !important;
}

.pb-2 {
    padding-bottom: var(--space-2) !important;
}

.pb-3 {
    padding-bottom: var(--space-3) !important;
}

.pb-4 {
    padding-bottom: var(--space-4) !important;
}

.pb-5 {
    padding-bottom: var(--space-5) !important;
}

.pl-0 {
    padding-left: 0 !important;
}

.pl-1 {
    padding-left: var(--space-1) !important;
}

.pl-2 {
    padding-left: var(--space-2) !important;
}

.pl-3 {
    padding-left: var(--space-3) !important;
}

.pl-4 {
    padding-left: var(--space-4) !important;
}

.pl-5 {
    padding-left: var(--space-5) !important;
}

.pr-0 {
    padding-right: 0 !important;
}

.pr-1 {
    padding-right: var(--space-1) !important;
}

.pr-2 {
    padding-right: var(--space-2) !important;
}

.pr-3 {
    padding-right: var(--space-3) !important;
}

.pr-4 {
    padding-right: var(--space-4) !important;
}

.pr-5 {
    padding-right: var(--space-5) !important;
}

/* Text Alignment */
.text-left {
    text-align: left !important;
}

.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

.text-justify {
    text-align: justify !important;
}

/* Font Weight */
.fw-light {
    font-weight: 300 !important;
}

.fw-normal {
    font-weight: var(--font-weight-regular) !important;
}

.fw-medium {
    font-weight: var(--font-weight-medium) !important;
}

.fw-bold {
    font-weight: var(--font-weight-bold) !important;
}

/* Width & Height */
.w-25 {
    width: 25% !important;
}

.w-50 {
    width: 50% !important;
}

.w-75 {
    width: 75% !important;
}

.w-100 {
    width: 100% !important;
}

.w-auto {
    width: auto !important;
}

.h-25 {
    height: 25% !important;
}

.h-50 {
    height: 50% !important;
}

.h-75 {
    height: 75% !important;
}

.h-100 {
    height: 100% !important;
}

.h-auto {
    height: auto !important;
}

/* Visibility & Display */
.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-inline {
    display: inline !important;
}

.d-inline-block {
    display: inline-block !important;
}

.visible {
    visibility: visible !important;
}

.invisible {
    visibility: hidden !important;
}

/* Position */
.position-static {
    position: static !important;
}

.position-relative {
    position: relative !important;
}

.position-absolute {
    position: absolute !important;
}

.position-fixed {
    position: fixed !important;
}

.position-sticky {
    position: sticky !important;
}

/* Z-index */
.z-0 {
    z-index: 0 !important;
}

.z-10 {
    z-index: 10 !important;
}

.z-20 {
    z-index: 20 !important;
}

.z-30 {
    z-index: 30 !important;
}

.z-40 {
    z-index: 40 !important;
}

.z-50 {
    z-index: 50 !important;
}

/* Overflow */
.overflow-auto {
    overflow: auto !important;
}

.overflow-hidden {
    overflow: hidden !important;
}

.overflow-visible {
    overflow: visible !important;
}

.overflow-scroll {
    overflow: scroll !important;
}

/* Cursor */
.cursor-pointer {
    cursor: pointer !important;
}

.cursor-default {
    cursor: default !important;
}

.cursor-not-allowed {
    cursor: not-allowed !important;
}

/* User Select */
.user-select-none {
    user-select: none !important;
}

.user-select-all {
    user-select: all !important;
}

.user-select-auto {
    user-select: auto !important;
}

/* Border Radius */
.rounded-0 {
    border-radius: 0 !important;
}

.rounded-sm {
    border-radius: var(--radius-sm) !important;
}

.rounded {
    border-radius: var(--radius) !important;
}

.rounded-lg {
    border-radius: var(--radius-lg) !important;
}

.rounded-full {
    border-radius: var(--radius-full) !important;
}

.rounded-circle {
    border-radius: 50% !important;
}

/* Shadow */
.shadow-none {
    box-shadow: none !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow {
    box-shadow: var(--shadow) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

/* Transition */
.transition-fast {
    transition: all var(--transition-fast) !important;
}

.transition {
    transition: all var(--transition) !important;
}

.transition-slow {
    transition: all var(--transition-slow) !important;
}

/* Opacity */
.opacity-0 {
    opacity: 0 !important;
}

.opacity-25 {
    opacity: 0.25 !important;
}

.opacity-50 {
    opacity: 0.5 !important;
}

.opacity-75 {
    opacity: 0.75 !important;
}

.opacity-100 {
    opacity: 1 !important;
}

/* ==========================================================================
   MATERIAL SYMBOLS � base config
   Usage: <span class="material-symbols-outlined">icon_name</span>
   Icon names: https://fonts.google.com/icons
   ========================================================================== */
.material-symbols-outlined,
.material-symbols-rounded {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    font-size: 20px !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    user-select: none !important;
    flex-shrink: 0 !important;
}

/* Filled variant helper */
.ms-filled {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24 !important;
}

/* Size helpers */
.ms-sm {
    font-size: 16px !important;
}

.ms-lg {
    font-size: 24px !important;
}



#divLoading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-overlay);
    background-image: url('../Content/Images/ajax-loader.gif');
    background-size: 50px;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 9999;
    display: none;
}

.loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    display: none;
}

/* ==========================================================================
   RESPONSIVE UTILITIES
   ========================================================================== */

@media (max-width: 576px) {
    .d-sm-none {
        display: none !important;
    }

    .d-sm-block {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .d-md-none {
        display: none !important;
    }

    .d-md-block {
        display: block !important;
    }
}

@media (max-width: 992px) {
    .d-lg-none {
        display: none !important;
    }

    .d-lg-block {
        display: block !important;
    }
}

@media (min-width: 1200px) {
    .d-xl-none {
        display: none !important;
    }

    .d-xl-block {
        display: block !important;
    }
}

/* ==========================================================================
   APP SHELL � FLOATING FIXED SIDEBAR LAYOUT
   Sidebar is position:fixed � only the right content scrolls.
   All theme JS (togglemenu, nano-scroll, sidebar-left-collapsed) preserved.
   ========================================================================== */

/* -- White background, dark text -- */
body {
    background-color: var(--color-bg) !important;
    background-image: radial-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px) !important;
    background-size: 20px 20px !important;
    background-attachment: fixed !important;
    font-family: var(--font-family-base) !important;
    color: #1a1a2e !important;
}

/* -- Hide the original top header � navigation lives in sidebar now -- */
header.header {
    display: none !important;
}

/* -- Body section wrapper -- */
section.body {
    display: block !important;
    min-height: 100vh !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* -- inner-wrapper: just a block, sidebar is fixed -- */
.inner-wrapper {
    display: block !important;
    min-height: 100vh !important;
    padding: 0 !important;
}

/* ------------------------------------------
   FIXED FLOATING SIDEBAR
------------------------------------------ */
.sk-sidebar {
    position: fixed !important;
    top: 18px !important;
    left: 18px !important;
    bottom: 18px !important;
    width: var(--sidebar-width) !important;
    min-width: var(--sidebar-width) !important;
    z-index: 100 !important;

    background-color: #ffffff !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10) !important;
    border: 1px solid #e5e7eb !important;
    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    transition: width var(--transition-slow) !important;
}

/* -- White background, dark text -- */
.sk-sidebar {
    background-color: #ffffff !important;
    background: #ffffff !important;
}

.sk-sidebar,
.sk-sidebar .nano,
.sk-sidebar .nano-content,
.sk-sidebar .menubackground,
.sk-sidebar .nav-main,
.sk-sidebar .navbar-collapse {
    color: #374151 !important;
}

/* Override theme.css dark nano backgrounds regardless of html classes */
html .sidebar-left .nano,
html .sidebar-left .nano-content,
html .sidebar-left .menubackground,
html.no-overflowscrolling .sidebar-left .nano,
html.no-overflowscrolling .sidebar-left .nano-content,
html.sidebar-left-collapsed .sidebar-left .nano {
    background: #ffffff !important;
    background-color: #ffffff !important;
    box-shadow: none !important;
}

/* ── CRITICAL: Kill theme.css "expand nano on hover" behavior ──
   theme.css sets .nano:hover { width: 300px } which expands the sidebar
   and makes all text spans visible — causing icons to appear to vanish.
   Lock nano to 64px and keep text labels hidden always. ── */
html.sidebar-left-collapsed .sidebar-left .nano:hover,
html.sidebar-left-collapsed .sidebar-left .nano.hovered {
    width: 64px !important;
}

/* Keep text labels hidden even on nano hover/hovered */
html.sidebar-left-collapsed .sidebar-left .nano:hover .nav-main li a span:not(.material-symbols-rounded),
html.sidebar-left-collapsed .sidebar-left .nano.hovered .nav-main li a span:not(.material-symbols-rounded) {
    visibility: hidden !important;
    display: none !important;
}

/* Keep icons always visible */
html.sidebar-left-collapsed .sidebar-left .nav-main a .material-symbols-rounded,
html.sidebar-left-collapsed .sidebar-left .nano:hover .nav-main li a .material-symbols-rounded,
html.sidebar-left-collapsed .sidebar-left .nano.hovered .nav-main li a .material-symbols-rounded {
    visibility: visible !important;
    display: inline-flex !important;
    opacity: 1 !important;
}

/* Fix theme's overflow:hidden on nav > li > a that clips the icon circle */
html.sidebar-left-collapsed .sidebar-left .nav-main>li>a {
    overflow: visible !important;
}

.sk-sidebar a,
.sk-sidebar a:hover {
    text-decoration: none !important;
}

/* -- Logo row -- */
.sk-sidebar-logo {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: var(--space-3) var(--space-3) var(--space-2) !important;
    flex-shrink: 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.sk-sidebar-logo img {
    height: 36px !important;
    width: auto !important;
    object-fit: contain !important;
}

.sk-sidebar-toggle {
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: var(--radius) !important;
    cursor: pointer !important;
    color: #6b7280 !important;
    flex-shrink: 0 !important;
    transition: background-color var(--transition-fast), color var(--transition-fast) !important;
}

.sk-sidebar-toggle:hover {
    background-color: #f3f4f6 !important;
    color: #1a1a2e !important;
}

/* -- Scrollable nav area -- */
.sk-sidebar-nav {
    flex: 1 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: var(--space-2) 0 !important;
    /* hide scrollbar visually */
    scrollbar-width: none !important;
    /* Promote to compositor layer to prevent reflow flicker */
    will-change: transform !important;
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
}

.sk-sidebar-nav::-webkit-scrollbar {
    display: none !important;
}

/* -- Nav items -- */
#sidebar-left #menu {
    padding: var(--space-2) var(--space-2) 0 !important;
    list-style: none !important;
    margin: 0 !important;
}

/* Remove side padding in collapsed so icons center in 64px */
html.sidebar-left-collapsed #sidebar-left #menu {
    padding: var(--space-2) 0 0 !important;
}

/* Reset theme.css nav-main defaults that interfere */
#sidebar-left ul.nav-main {
    margin-right: 0 !important;
    margin-top: 0 !important;
    padding: 0 !important;
}

#sidebar-left ul.nav-main li {
    list-style: none !important;
    margin-bottom: 2px !important;
    width: 100% !important;
}

/* -------------------------------------------
   PARENT MENU ITEMS (top-level only)
   Target: #navLinks > li > a
   ------------------------------------------- */
#sidebar-left #navLinks>li>a.nav-link,
#sidebar-left #navLinks>li>a.dropdown-toggle {
    display: flex !important;
    width: 100% !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    gap: var(--space-2) !important;
    padding: 9px var(--space-2) !important;
    border-radius: var(--radius) !important;
    font-size: var(--font-size-sm) !important;
    font-weight: var(--font-weight-medium) !important;
    color: #4b5563 !important;
    text-decoration: none !important;
    transition: background-color var(--transition-fast), color var(--transition-fast) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    box-shadow: none !important;
}

/* Parent menu icons � fixed width for perfect text alignment */
#sidebar-left #navLinks>li>a .material-symbols-rounded:first-child {
    width: 20px !important;
    min-width: 20px !important;
    font-size: 20px !important;
    text-align: center !important;
    flex-shrink: 0 !important;
}

/* Expand/collapse arrow � push to right edge */
#sidebar-left #navLinks>li>a .arrow-icon {
    margin-left: auto !important;
    color: #9ca3af !important;
    transition: transform var(--transition-fast), color var(--transition-fast) !important;
}

#sidebar-left #navLinks>li.nav-expanded>a .arrow-icon {
    transform: rotate(180deg) !important;
    color: #4b5563 !important;
}

/* Parent hover */
#sidebar-left #navLinks>li>a.nav-link:hover,
#sidebar-left #navLinks>li>a.dropdown-toggle:hover {
    background-color: #f3f4f6 !important;
    color: #1a1a2e !important;
}

/* Active state � Dark Blue background */
#sidebar-left #navLinks>li.active>a.nav-link,
#sidebar-left #navLinks>li.active>a.dropdown-toggle {
    background-color: var(--color-primary) !important;
    background: var(--color-primary) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

#sidebar-left #navLinks>li.active>a *,
#sidebar-left #navLinks>li.active>a .material-symbols-rounded {
    color: #ffffff !important;
}

/* Expanded parent - subtle highlight */
#sidebar-left #navLinks>li.nav-expanded>a:not(.active) {
    background-color: #f9fafb !important;
}

/* Parent with an active child — same solid primary style as leaf active */
#sidebar-left #navLinks>li.nav-expanded.has-active-child>a,
#sidebar-left #navLinks>li.nav-parent.has-active-child>a {
    background-color: var(--color-primary) !important;
    background: var(--color-primary) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

#sidebar-left #navLinks>li.nav-expanded.has-active-child>a .material-symbols-rounded,
#sidebar-left #navLinks>li.nav-parent.has-active-child>a .material-symbols-rounded {
    color: #ffffff !important;
}

#sidebar-left #navLinks>li.nav-expanded.has-active-child>a .arrow-icon,
#sidebar-left #navLinks>li.nav-parent.has-active-child>a .arrow-icon {
    color: #ffffff !important;
}

/* -------------------------------------------
   SUB-MENU CONTAINER
   Target: #navLinks > li > ul
   ------------------------------------------- */
#sidebar-left #navLinks>li>ul {
    padding: 2px 0 0 0 !important;
    margin: 0 !important;
    list-style: none !important;
    text-align: left !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* -------------------------------------------
   SUB-MENU ITEMS (15px indent from parent)
   Target: #navLinks > li > ul > li > a
   ------------------------------------------- */
#sidebar-left #navLinks>li>ul>li {
    width: 100% !important;
    text-align: left !important;
    margin-bottom: 1px !important;
}

#sidebar-left #navLinks>li>ul>li>a,
#sidebar-left #navLinks>li>ul>li>a.nav-link,
#sidebar-left #navLinks>li>ul>li>a.menutext,
#sidebar-left #navLinks>li>ul>li>a.nav-link.menutext {

    width: 100% !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    /* 15px indentation: parent left-padding is 8px, so 8px + 15px = 23px */
    padding: 7px var(--space-2) 7px 23px !important;
    border-radius: var(--radius-sm) !important;
    font-size: 13px !important;
    font-weight: var(--font-weight-regular) !important;
    color: #6b7280 !important;
    text-decoration: none !important;
    transition: background-color var(--transition-fast), color var(--transition-fast) !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Sub-menu item icons � fixed width, uniform alignment */
#sidebar-left #navLinks>li>ul>li>a .material-symbols-rounded {
    font-size: 18px !important;
    width: 18px !important;
    min-width: 18px !important;
    text-align: center !important;
    color: #9ca3af !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
}

/* Sub-menu hover */
#sidebar-left #navLinks>li>ul>li>a:hover {
    background-color: #f3f4f6 !important;
    color: var(--color-primary) !important;
}

#sidebar-left #navLinks>li>ul>li>a:hover .material-symbols-rounded {
    color: var(--color-primary) !important;
}

/* Sub-menu selected state */
html body #sidebar-left #navLinks>li>ul>li>a.menutextSelected,
html body #sidebar-left #navLinks>li>ul>li.active>a,
html body #sidebar-left #navLinks>li>ul.collapse>li>a.menutextSelected,
html body #sidebar-left #navLinks>li>ul.collapse>li.active>a,
html body #sidebar-left #navLinks>li>ul.list-unstyled>li>a.menutextSelected,
html body #sidebar-left #navLinks>li>ul.list-unstyled>li.active>a,
html body #sidebar-left #navLinks>li>ul>li>a.nav-link.menutext.menutextSelected {
    background-color: #EBF1FF !important;
    color: var(--color-primary) !important;
    border-radius: 8px !important;
}

html body #sidebar-left #navLinks>li>ul>li.active>a .material-symbols-rounded,
html body #sidebar-left #navLinks>li>ul>li>a.menutextSelected .material-symbols-rounded,
html body #sidebar-left #navLinks>li>ul.collapse>li.active>a .material-symbols-rounded,
html body #sidebar-left #navLinks>li>ul.collapse>li>a.menutextSelected .material-symbols-rounded,
html body #sidebar-left #navLinks>li>ul>li>a.nav-link.menutext.menutextSelected .material-symbols-rounded {
    color: var(--color-primary) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Badge */
#sidebar-left .dashboardCnt {
    background-color: var(--color-primary) !important;
    color: #ffffff !important;
    border-radius: var(--radius-full) !important;
    font-size: 10px !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 5px !important;
    margin-left: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* -- Bottom pinned section -- */
.sk-sidebar-bottom {
    flex-shrink: 0 !important;
    border-top: 1px solid #f0f0f0 !important;
    padding: var(--space-2) var(--space-2) var(--space-2) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

.sk-sidebar-bottom-item {
    display: flex !important;
    align-items: center !important;
    gap: var(--space-2) !important;
    padding: 8px var(--space-2) !important;
    border-radius: var(--radius) !important;
    font-size: var(--font-size-sm) !important;
    color: #4b5563 !important;
    cursor: pointer !important;
    transition: background-color var(--transition-fast) !important;
    position: relative !important;
}

.sk-sidebar-bottom-item:hover {
    background-color: #f3f4f6 !important;
}

.sk-bottom-label {
    flex: 1 !important;
}

.sk-badge {
    background-color: var(--color-primary) !important;
    color: #ffffff !important;
    border-radius: var(--radius-full) !important;
    font-size: 10px !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 5px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Notification popup anchored above bottom section */
#notificationContainer {
    position: absolute !important;
    bottom: 100% !important;
    left: var(--space-2) !important;
    right: var(--space-2) !important;
    background: #ffffff !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-lg) !important;
    border: 1px solid #e5e7eb !important;
    z-index: 200 !important;
    max-height: 360px !important;
    overflow-y: auto !important;
}

/* -- User profile card -- */
.sk-user-card {
    display: flex !important;
    align-items: center !important;
    gap: var(--space-2) !important;
    padding: var(--space-2) !important;
    border-radius: var(--radius) !important;
    background-color: #f9fafb !important;
    position: relative !important;
    cursor: default !important;
}

.sk-user-avatar img {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
}

/* Initials fallback – sidebar user card */
.sk-avatar-initials {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background-color: var(--color-primary) !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: var(--font-weight-bold) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    letter-spacing: 0.03em !important;
    user-select: none !important;
}

.sk-user-info {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

.sk-user-name {
    font-size: var(--font-size-xs) !important;
    font-weight: var(--font-weight-bold) !important;
    color: #1a1a2e !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.sk-user-email {
    font-size: 11px !important;
    color: #9ca3af !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.sk-user-menu-trigger {
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: var(--radius-sm) !important;
    cursor: pointer !important;
    color: #9ca3af !important;
    flex-shrink: 0 !important;
    transition: background-color var(--transition-fast) !important;
}

.sk-user-menu-trigger:hover {
    background-color: #e5e7eb !important;
    color: #1a1a2e !important;
}

/* ══════════════════════════════════════════════════════════
   COLLAPSED SIDEBAR — COMPLETE REWRITE
   Old code commented out below, new clean implementation above
══════════════════════════════════════════════════════════ */

/* -- Collapsed state -- */
html.sidebar-left-collapsed .sk-sidebar {
    width: 64px !important;
    min-width: 64px !important;
}

html.sidebar-left-collapsed .sk-sidebar-logo img,
html.sidebar-left-collapsed .sk-bottom-label,
html.sidebar-left-collapsed .sk-user-info,
html.sidebar-left-collapsed .sk-user-menu-trigger,
html.sidebar-left-collapsed #menu .menu-item-parent {
    display: none !important;
}

html.sidebar-left-collapsed .sk-sidebar-logo {
    justify-content: center !important;
}

/* Center each nav item */
html.sidebar-left-collapsed #sidebar-left #navLinks>li {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-bottom: 2px !important;
    background: transparent !important;
    padding: 0 !important;
    width: 100% !important;
}

/* 40x40 circle for each link */
html.sidebar-left-collapsed #sidebar-left #navLinks>li>a.nav-link,
html.sidebar-left-collapsed #sidebar-left #navLinks>li>a.dropdown-toggle {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: hidden !important;
    background-color: transparent !important;
    transition: background-color 0.15s !important;
}

/* Hide text and arrow — show only icon */
html.sidebar-left-collapsed #sidebar-left #navLinks>li>a .menu-item-parent,
html.sidebar-left-collapsed #sidebar-left #navLinks>li>a .arrow-icon,
html.sidebar-left-collapsed #sidebar-left #navLinks>li>a .material-symbols-rounded.arrow-icon {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    overflow: hidden !important;
}

/* Icon always visible */
html.sidebar-left-collapsed #sidebar-left #navLinks>li>a .material-symbols-rounded {
    font-size: 20px !important;
    color: #4b5563 !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: inline-flex !important;
    flex-shrink: 0 !important;
}

/* Active: primary filled circle */
html.sidebar-left-collapsed #sidebar-left #navLinks>li.active>a.nav-link,
html.sidebar-left-collapsed #sidebar-left #navLinks>li.active>a.dropdown-toggle {
    background-color: var(--color-primary) !important;
}

html.sidebar-left-collapsed #sidebar-left #navLinks>li.active>a .material-symbols-rounded {
    color: #ffffff !important;
}

/* Hover: light blue circle */
html.sidebar-left-collapsed #sidebar-left #navLinks>li>a.nav-link:hover,
html.sidebar-left-collapsed #sidebar-left #navLinks>li>a.dropdown-toggle:hover {
    background-color: #EBF1FF !important;
}

html.sidebar-left-collapsed #sidebar-left #navLinks>li>a:hover .material-symbols-rounded {
    color: var(--color-primary) !important;
}

/* Active hover keeps primary */
html.sidebar-left-collapsed #sidebar-left #navLinks>li.active>a:hover {
    background-color: var(--color-primary) !important;
}

html.sidebar-left-collapsed #sidebar-left #navLinks>li.active>a:hover .material-symbols-rounded {
    color: #ffffff !important;
}

/* Has active child: solid primary (collapsed sidebar) */
html.sidebar-left-collapsed #sidebar-left #navLinks>li.has-active-child>a {
    background-color: var(--color-primary) !important;
}

html.sidebar-left-collapsed #sidebar-left #navLinks>li.has-active-child>a .material-symbols-rounded {
    color: #ffffff !important;
}

/* Hide sub-menus — flyout JS handles them */
html.sidebar-left-collapsed #sidebar-left #navLinks>li>ul.collapse {
    display: none !important;
}

/* Override theme.css nano:hover rule that makes text labels reappear */
html.sidebar-left-collapsed .sidebar-left .nano:hover .nav-main li a span:not(.material-symbols-rounded) {
    visibility: hidden !important;
    display: none !important;
}

html.sidebar-left-collapsed .sidebar-left .nano:hover .nav-main li a .material-symbols-rounded {
    visibility: visible !important;
    display: inline-flex !important;
}

html.sidebar-left-collapsed .sk-sidebar-bottom-item {
    justify-content: center !important;
}

html.sidebar-left-collapsed .sk-user-card {
    justify-content: center !important;
}

/*
OLD CODE — commented out
========================

/* -- Collapsed state -- * /
html.sidebar-left-collapsed .sk-sidebar {
    width: 64px !important;
    min-width: 64px !important;
}

html.sidebar-left-collapsed .sk-sidebar-logo img,
html.sidebar-left-collapsed .sk-bottom-label,
html.sidebar-left-collapsed .sk-user-info,
html.sidebar-left-collapsed .sk-user-menu-trigger,
html.sidebar-left-collapsed #menu .menu-item-parent {
    display: none !important;
}

html.sidebar-left-collapsed .sk-sidebar-logo {
    justify-content: center !important;
}

/* -- Collapsed: icon pill wrapper -- * /
html.sidebar-left-collapsed #sidebar-left #navLinks > li {
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
    margin-bottom: 2px !important;
    padding: 0 12px !important;
    background: transparent !important;
}

/* Ensure nav-expanded background doesn't show in collapsed * /
html.sidebar-left-collapsed #sidebar-left #navLinks > li.nav-expanded > a:not(.active) {
    background-color: transparent !important;
}

html.sidebar-left-collapsed #sidebar-left #navLinks > li > a.nav-link,
html.sidebar-left-collapsed #sidebar-left #navLinks > li > a.dropdown-toggle {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    justify-content: center !important;
    align-items: center !important;
    display: flex !important;
    overflow: hidden !important;
    position: relative !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    transition: background-color 0.15s ease !important;
}

/* Hide text + arrow in collapsed * /
html.sidebar-left-collapsed #sidebar-left #navLinks > li > a .menu-item-parent,
html.sidebar-left-collapsed #sidebar-left #navLinks > li > a .arrow-icon {
    display: none !important;
}

/* Icon size in collapsed * /
html.sidebar-left-collapsed #sidebar-left #navLinks > li > a > .material-symbols-rounded:first-child {
    font-size: 20px !important;
    width: 20px !important;
    min-width: 20px !important;
    text-align: center !important;
}

/* ALWAYS show icons in collapsed — override every possible state * /
html.sidebar-left-collapsed #sidebar-left #navLinks > li > a .material-symbols-rounded {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #4b5563 !important;
}

html.sidebar-left-collapsed #sidebar-left #navLinks > li > a:hover .material-symbols-rounded,
html.sidebar-left-collapsed #sidebar-left #navLinks > li > a:focus .material-symbols-rounded {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: var(--color-primary) !important;
}

html.sidebar-left-collapsed #sidebar-left #navLinks > li.active > a .material-symbols-rounded,
html.sidebar-left-collapsed #sidebar-left #navLinks > li.active > a:hover .material-symbols-rounded {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #ffffff !important;
}

/* -- Active: solid primary circle -- * /
html.sidebar-left-collapsed #sidebar-left #navLinks > li.active > a.nav-link,
html.sidebar-left-collapsed #sidebar-left #navLinks > li.active > a.dropdown-toggle {
    background-color: var(--color-primary) !important;
    background: var(--color-primary) !important;
    border-radius: 50% !important;
}

html.sidebar-left-collapsed #sidebar-left #navLinks > li.active > a .material-symbols-rounded {
    color: #ffffff !important;
}

/* -- Hover: light circle -- * /
html.sidebar-left-collapsed #sidebar-left #navLinks > li > a.nav-link:hover,
html.sidebar-left-collapsed #sidebar-left #navLinks > li > a.dropdown-toggle:hover {
    background-color: #EBF1FF !important;
    border-radius: 50% !important;
    color: var(--color-primary) !important;
}

html.sidebar-left-collapsed #sidebar-left #navLinks > li > a:hover .material-symbols-rounded,
html.sidebar-left-collapsed #sidebar-left #navLinks > li > a:hover * {
    color: var(--color-primary) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Keep active circle on hover * /
html.sidebar-left-collapsed #sidebar-left #navLinks > li.active > a.nav-link:hover,
html.sidebar-left-collapsed #sidebar-left #navLinks > li.active > a.dropdown-toggle:hover {
    background-color: var(--color-primary) !important;
}

html.sidebar-left-collapsed #sidebar-left #navLinks > li.active > a:hover .material-symbols-rounded,
html.sidebar-left-collapsed #sidebar-left #navLinks > li.active > a:hover * {
    color: #ffffff !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* -- Has active child: light blue circle -- * /
html.sidebar-left-collapsed #sidebar-left #navLinks > li.has-active-child > a {
    background-color: #EBF1FF !important;
    border-radius: 50% !important;
}

html.sidebar-left-collapsed #sidebar-left #navLinks > li.has-active-child > a .material-symbols-rounded {
    color: var(--color-primary) !important;
}

/* Hide sub-menus in collapsed — JS flyout handles display * /
html.sidebar-left-collapsed #sidebar-left #navLinks > li > ul.collapse {
    display: none !important;
}

/* ══════════════════════════════════════════
   SK FLYOUT PANEL — rendered outside sidebar
   Appended to <body> by JS, positioned fixed
══════════════════════════════════════════ */
.sk-flyout-panel {
    position: fixed !important;
    left: 76px !important;
    min-width: 200px !important;
    background: #ffffff !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.13), 0 2px 8px rgba(0, 0, 0, 0.07) !important;
    border: 1px solid #ebebeb !important;
    padding: 6px !important;
    z-index: 99999 !important;
    list-style: none !important;
    margin: 0 !important;
    opacity: 0 !important;
    transform: translateX(-8px) !important;
    transition: opacity 0.16s ease, transform 0.16s ease !important;
    pointer-events: none !important;
}

/* Small left arrow pointing back to the sidebar icon */
.sk-flyout-panel::before {
    content: '' !important;
    position: absolute !important;
    left: -7px !important;
    top: 18px !important;
    width: 13px !important;
    height: 13px !important;
    background: #ffffff !important;
    border-left: 1px solid #ebebeb !important;
    border-bottom: 1px solid #ebebeb !important;
    transform: rotate(45deg) !important;
    border-radius: 2px !important;
}

.sk-flyout-panel.sk-flyout-visible {
    opacity: 1 !important;
    transform: translateX(0) !important;
    pointer-events: auto !important;
}

/* Group label */
.sk-flyout-panel-label {
    display: block !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #9ca3af !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    padding: 6px 12px 8px !important;
    margin-bottom: 2px !important;
    font-family: var(--font-family-base) !important;
}

/* Sub-items */
.sk-flyout-panel>li>a {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 9px 14px !important;
    border-radius: 9px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #1a1a2e !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    transition: background 0.12s, color 0.12s !important;
    background: transparent !important;
    font-family: var(--font-family-base) !important;
    line-height: 1.4 !important;
}

.sk-flyout-panel>li>a:hover {
    background: #f0f2ff !important;
    color: var(--color-primary) !important;
}

.sk-flyout-panel>li.active>a,
.sk-flyout-panel>li>a.menutextSelected {
    background: #EBF1FF !important;
    color: var(--color-primary) !important;
    font-weight: 600 !important;
}

.sk-flyout-panel>li>a .material-symbols-rounded {
    font-size: 19px !important;
    width: 19px !important;
    min-width: 19px !important;
    color: var(--color-primary) !important;
    flex-shrink: 0 !important;
    opacity: 0.75 !important;
}

.sk-flyout-panel>li>a:hover .material-symbols-rounded,
.sk-flyout-panel>li.active>a .material-symbols-rounded,
.sk-flyout-panel>li>a.menutextSelected .material-symbols-rounded {
    opacity: 1 !important;
    color: var(--color-primary) !important;
}

/* Flyout tooltip (leaf items) */
.sk-flyout-tooltip {
    position: fixed !important;
    left: 76px !important;
    background: #1a1a2e !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    z-index: 99999 !important;
    pointer-events: none !important;
    opacity: 0 !important;
    transform: translateX(-6px) !important;
    transition: opacity 0.15s ease, transform 0.15s ease !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18) !important;
    font-family: var(--font-family-base) !important;
}

.sk-flyout-tooltip.sk-flyout-visible {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

html.sidebar-left-collapsed .sk-sidebar-bottom-item {
    justify-content: center !important;
}

html.sidebar-left-collapsed .sk-user-card {
    justify-content: center !important;
}

*/

/* Toggle icon: X when open, hamburger when collapsed */
html:not(.sidebar-left-collapsed) .sk-toggle-open {
    display: none !important;
}

html:not(.sidebar-left-collapsed) .sk-toggle-close {
    display: inline-flex !important;
}

html.sidebar-left-collapsed .sk-toggle-close {
    display: none !important;
}

html.sidebar-left-collapsed .sk-toggle-open {
    display: inline-flex !important;
}

/* ------------------------------------------
   MAIN CONTENT � offset by sidebar width
------------------------------------------ */
section.content-body {
    margin-left: calc(var(--sidebar-width) + 18px) !important;
    margin-right: 2px !important;
    padding: 18px !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    transition: margin-left var(--transition-slow) !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
}

html.sidebar-left-collapsed section.content-body {
    margin-left: calc(64px + 18px) !important;
    margin-right: 0px !important;
}

/* Ensure direct children of content-body fill the available width */
section.content-body>div {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Calendar wrapper centering */
.ts-cal-wrap {
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

/* Page title bar */
section.content-body header.page-header {
    background-color: #ffffff !important;
    border-radius: 8px !important;
    padding: var(--space-3) var(--space-4) !important;
    margin: 0 !important;
    border: 1px solid #e5e7eb !important;
    flex-shrink: 0 !important;
}

section.content-body header.page-header h2 {
    color: #1a1a2e !important;
    margin: 0 !important;
    font-size: var(--font-size-md) !important;
    font-weight: var(--font-weight-medium) !important;
}

/* Content card � padding inside white container, applies to all pages */
.container-fluid-with-sidebar {
    background-color: transparent !important;
    border-radius: var(--radius) !important;
    padding: 24px !important;
    border: none !important;
    flex: 1 !important;
    width: 100% !important;
}

/* Footer */
footer.footer {
    background-color: transparent !important;
    color: #6b7280 !important;
    font-size: var(--font-size-xs) !important;
    padding: var(--space-1) 0 !important;
    border-top: none !important;
    text-align: left !important;
    flex-shrink: 0 !important;
    margin-top: auto !important;
}

footer.footer a {
    color: #6b7280 !important;
}

/* ------------------------------------------
   RESPONSIVE
------------------------------------------ */

/* -- Mobile top bar (visible only on small screens) -- */
.sk-mobile-topbar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    z-index: 200;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sk-mobile-topbar-logo img {
    height: 30px;
    width: auto;
    object-fit: contain;
}

.sk-mobile-topbar-toggle {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    color: var(--color-primary);
    border: none;
    background: transparent;
    flex-shrink: 0;
    transition: background 0.15s;
}

.sk-mobile-topbar-toggle:hover {
    background: rgba(31, 35, 139, 0.06);
}

.sk-mobile-topbar-toggle .material-symbols-rounded {
    font-size: 26px !important;
    color: var(--color-primary) !important;
}

@media (max-width: 992px) {
    .sk-mobile-topbar {
        display: flex !important;
    }

    .sk-sidebar {
        top: 64px !important;
        left: 0 !important;
        bottom: 0 !important;
        border-radius: 0 !important;
        transform: translateX(0) !important;
        transition: transform var(--transition-slow), width var(--transition-slow) !important;
    }

    html.sidebar-left-collapsed .sk-sidebar {
        transform: translateX(calc(-1 * var(--sidebar-width) - 8px)) !important;
        width: var(--sidebar-width) !important;
    }

    /* Hide the in-sidebar toggle on mobile � topbar handles it */
    .sk-sidebar-logo {
        display: none !important;
    }

    section.content-body {
        margin-left: 0 !important;
        padding: 8px !important;
        padding-top: 64px !important;
    }

    html.sidebar-left-collapsed section.content-body {
        margin-left: 0 !important;
    }

    /* Overlay when sidebar is open on mobile */
    html:not(.sidebar-left-collapsed) .sk-mobile-overlay {
        display: block !important;
    }
}

/* ------------------------------------------
   MOBILE (≤768px) — sidebar hidden by default,
   only visible when user explicitly opens it via the menu icon.
   The sidebar-left-collapsed class normally means "collapsed to icons",
   but on small screens we repurpose it: absent = open, present = hidden.
   We force the sidebar off-screen unless the user has opened it.
------------------------------------------ */
@media (max-width: 768px) {
    /* Default state: sidebar is off-screen (hidden) */
    .sk-sidebar {
        transform: translateX(calc(-1 * var(--sidebar-width) - 8px)) !important;
        width: var(--sidebar-width) !important;
    }

    /* When user opens the menu (sidebar-left-collapsed removed by togglemenu) */
    html:not(.sidebar-left-collapsed) .sk-sidebar {
        transform: translateX(0) !important;
    }

    /* Overlay only when sidebar is open */
    html:not(.sidebar-left-collapsed) .sk-mobile-overlay {
        display: block !important;
    }

    /* Collapsed class = sidebar hidden on mobile */
    html.sidebar-left-collapsed .sk-sidebar {
        transform: translateX(calc(-1 * var(--sidebar-width) - 8px)) !important;
    }
}

/* ------------------------------------------
   TIMESHEET UI RESTRUCTURE (INDEX)
------------------------------------------ */
.ts-index-bg {
    background-color: #FDFCDC !important;
    /* Pale yellow */
}

/* Make sure the content body on index also takes the background */
.ts-index-bg section.content-body {
    background-color: #FDFCDC !important;
}

.ts-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.ts-header-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Modern toggle for checkbox */
.ts-modern-toggle {
    appearance: none;
    width: 40px;
    height: 22px;
    background: #ccc;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    outline: none;
    transition: background 0.3s;
}

.ts-modern-toggle:checked {
    background: #1B1D61;
}

.ts-modern-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.ts-modern-toggle:checked::after {
    transform: translateX(18px);
}

.ts-header-actions {
    display: flex;
    gap: 12px;
}

.ts-btn-outline {
    background: white;
    border: 1px solid #1B1D61;
    color: #1B1D61;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.ts-btn-outline:hover {
    background: #1B1D61;
    color: white;
}

.ts-btn-solid {
    background: #1B1D61;
    border: 1px solid #1B1D61;
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    /* Slightly squarer than the outline if matched to mockup, but let's make it standard 6px */
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.ts-btn-solid:hover {
    background: #2a2c7a;
}

/* Cards */
.ts-card-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.ts-mock-card {
    background: white;
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 10px !important;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid #ebebdf;
    border-left: 4px solid #e5e7eb;
    /* default — overridden per status below */
    transition: box-shadow 0.15s;
}

.ts-mock-card:hover {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.09);
}

.ts-card-col-1 {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ts-card-date {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
}

.ts-card-user {
    font-size: 13px;
    color: #6b7280;
}

.ts-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    width: fit-content;
    white-space: nowrap;
}

.ts-badge-saved {
    background: rgba(247, 136, 57, 0.15);
    color: #F78839;
}

.ts-badge-submitted {
    background: rgba(234, 255, 5, 0.15);
    color: #000;
}

.ts-badge-inprogress {
    background: #dbeafe;
    color: #1e40af;
}

.ts-badge-approved {
    background: #dcfce7;
    color: #15803d;
}

.ts-badge-rejected {
    background: #fee2e2;
    color: #dc2626;
}

/* Default badge if not matched */
.ts-badge-default {
    background: #f3f4f6;
    color: #4b5563;
}

/* ── Status-based left border on timesheet cards ── */
.ts-mock-card:has(.ts-badge-approved),
.ts-mock-card.ts-card-status-approved {
    border-left-color: #22c55e;
    background: linear-gradient(to right, rgba(34, 197, 94, 0.04) 0%, #ffffff 60%);
}

.ts-mock-card:has(.ts-badge-submitted),
.ts-mock-card.ts-card-status-submitted {
    border-left-color: #FBFF1A;
    background: linear-gradient(to right, rgba(234, 255, 5, 0.06) 0%, #ffffff 60%);
}

.ts-mock-card:has(.ts-badge-saved),
.ts-mock-card.ts-card-status-saved {
    border-left-color: #F78839;
    background: linear-gradient(to right, rgba(247, 136, 57, 0.06) 0%, #ffffff 60%);
}

.ts-mock-card:has(.ts-badge-inprogress),
.ts-mock-card.ts-card-status-inprogress {
    border-left-color: #3b82f6;
    background: linear-gradient(to right, rgba(59, 130, 246, 0.05) 0%, #ffffff 60%);
}

.ts-mock-card:has(.ts-badge-rejected),
.ts-mock-card.ts-card-status-rejected {
    border-left-color: #ef4444;
    background: linear-gradient(to right, rgba(239, 68, 68, 0.04) 0%, #ffffff 60%);
}

.ts-mock-card:has(.ts-badge-default),
.ts-mock-card.ts-card-status-default {
    border-left-color: #6366f1;
    background: linear-gradient(to right, rgba(99, 102, 241, 0.04) 0%, #ffffff 60%);
}

.ts-card-col-2 {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 20px;
    border-left: 1px solid #e5e7eb;
}

.ts-next-approver-label {
    font-size: 10px;
    color: #9ca3af;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.ts-approver-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
}

.ts-project-approver-label {
    font-size: 10px;
    color: #9ca3af;
    text-transform: uppercase;
}

.ts-card-col-3 {
    text-align: right;
    margin-right: 30px;
}

.ts-hours-val {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
}

.ts-card-col-4 {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 90px;
}

.ts-btn-card-solid {
    background: #1F238B;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 7px 18px;
    font-size: 0.8rem;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    text-align: center;
    text-decoration: none !important;
    transition: background 0.15s;
}

.ts-btn-card-outline {
    background: white;
    color: #1a1a2e;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    padding: 6px 18px;
    font-size: 0.8rem;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    text-align: center;
    text-decoration: none !important;
    transition: border-color 0.15s, background 0.15s;
}

.ts-btn-card-solid:hover {
    background: #181c6f;
    color: white;
}

.ts-btn-card-outline:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

/* Hide grid container's default padding/bg */
.GridTimesheetGrid {
    background: transparent !important;
    padding: 0 !important;
}

/* ------------------------------------------
   FILTER PANEL UI
   ------------------------------------------ */
.ts-filter-panel {
    background: #ffffff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.ts-filter-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.ts-filter-input {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    color: #1a1a2e;
    background-color: #ffffff;
    outline: none;
    transition: border-color var(--transition-fast);
}

.ts-filter-input:focus {
    border-color: var(--color-primary);
}

.ts-btn-cancel {
    background: #ffffff;
    color: #FF5A5F;
    border: 1px solid #FF5A5F;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.ts-btn-cancel:hover {
    background: #fff0f0;
}

.ts-btn-reset {
    background: transparent;
    border: none;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.ts-btn-reset:hover {
    color: #1a1a2e;
}

/* DataTables Specific UI Cleaning */
table.dataTable.no-footer {
    border-bottom: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #1B1D61 !important;
    color: white !important;
    border: none !important;
    border-radius: 4px;
}

.dataTables_empty {
    background: transparent !important;
}

table.dataTable,
table.dataTable tbody tr,
table.dataTable tbody tr.odd,
table.dataTable tbody tr.even,
table.dataTable tbody td {
    background-color: transparent !important;
    box-shadow: none !important;

}

/* Remove DataTables Bootstrap container padding so cards match filter panel width perfectly */
.dataTables_wrapper.container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ------------------------------------------
   RESPONSIVE � TIMESHEET MODULE
------------------------------------------ */

/* Sidebar open FAB � shows on mobile when sidebar is collapsed */
.sk-sidebar-open-fab {
    display: none !important;
    /* replaced by mobile topbar */
}

/* Mobile overlay � dims content when sidebar is open on small screens */
.sk-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 99;
    top: 56px;
}

@media (max-width: 992px) {
    html:not(.sidebar-left-collapsed) .sk-mobile-overlay {
        display: block !important;
    }
}

/* -- Timesheet List Card � responsive -- */
@media (max-width: 768px) {
    .ts-mock-card {
        flex-wrap: wrap !important;
        padding: 16px !important;
        gap: 12px !important;
        align-items: flex-start !important;
    }

    /* Col 1: date + name + badge � full width */
    .ts-card-col-1 {
        flex: 0 0 100% !important;
        width: 100% !important;
        border-left: none !important;
        padding-left: 0 !important;
    }

    /* Col 2: approver � takes left half */
    .ts-card-col-2 {
        flex: 1 !important;
        border-left: none !important;
        padding-left: 0 !important;
        border-top: 1px solid #f1f5f9 !important;
        padding-top: 10px !important;
    }

    /* Col 3: hours � takes right, aligned right */
    .ts-card-col-3 {
        flex: 0 0 auto !important;
        text-align: right !important;
        margin-right: 0 !important;
        border-top: 1px solid #f1f5f9 !important;
        padding-top: 10px !important;
    }

    .ts-hours-val {
        font-size: 1.5rem !important;
    }

    /* Col 4: buttons � full width row */
    .ts-card-col-4 {
        flex: 0 0 100% !important;
        flex-direction: row !important;
        gap: 8px !important;
        min-width: unset !important;
    }

    .ts-btn-card-solid,
    .ts-btn-card-outline {
        flex: 1 !important;
    }

    /* Index page header */
    .ts-header-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .ts-header-actions {
        width: 100% !important;
        justify-content: flex-end !important;
    }
}

/* -- Week View � responsive -- */
@media (max-width: 768px) {
    .wv-layout {
        grid-template-columns: 1fr !important;
    }

    .wv-sidebar {
        position: static !important;
    }

    .wv-week-title {
        font-size: 1.1rem !important;
    }

    .wv-week-title .wv-week-dates {
        font-size: 1rem !important;
    }

    .wv-day-name {
        font-size: 1.1rem !important;
    }

    .wv-entry-card {
        padding: 10px 12px 9px !important;
    }

    .wv-entry-top {
        flex-wrap: wrap !important;
    }

    .wv-time-range {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .wv-comment-text {
        white-space: normal !important;
    }

    .wv-actions {
        flex-direction: column !important;
    }

    .wv-btn-back,
    .wv-btn-submit,
    .wv-btn-reopen {
        width: 100% !important;
        flex: none !important;
    }

    .sb-metrics-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* -- Time Entry Details � responsive -- */
@media (max-width: 768px) {
    .te-header {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .te-header-right {
        align-items: flex-start !important;
        width: 100% !important;
    }

    .te-totals {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .te-total-card {
        min-width: calc(33% - 8px) !important;
        padding: 10px 12px !important;
    }

    .te-total-val {
        font-size: 1.2rem !important;
    }

    .te-day-name {
        font-size: 2rem !important;
    }

    .te-edit-footer {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .te-footer-times {
        flex-wrap: wrap !important;
    }

    .te-edit-footer .edit-actions {
        width: 100% !important;
        justify-content: flex-end !important;
    }

    .form-col-half,
    .form-col-third {
        flex: 0 0 100% !important;
    }

    .te-top-bar {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .te-top-controls {
        width: 100% !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .te-top-select {
        min-width: 100px !important;
    }
}

/* -- Calendar � responsive -- */
@media (max-width: 768px) {
    .ts-cal-wrap {
        padding: 14px !important;
    }

    .ts-calendar-header {
        flex-direction: column !important;
        gap: 10px !important;
        align-items: flex-start !important;
    }

    .ts-view-controls {
        align-self: flex-end !important;
    }

    .fc .fc-toolbar {
        flex-direction: column !important;
        gap: 10px !important;
        align-items: flex-start !important;
    }

    .fc .fc-toolbar-chunk:last-child {
        align-self: flex-end !important;
    }

    .ts-cal-legend {
        gap: 14px !important;
        justify-content: flex-start !important;
    }

    .fc .fc-daygrid-day {
        min-height: 70px !important;
        height: 70px !important;
    }

    .fc .fc-daygrid-day-frame {
        padding: 6px 6px 0 !important;
    }

    .fc .fc-daygrid-day-number {
        font-size: 0.75rem !important;
    }

    .ts-cell-hrs-text {
        font-size: 0.6rem !important;
    }
}

/* -- General content area on mobile -- */
@media (max-width: 992px) {
    section.content-body {
        margin-left: 0 !important;
        padding: 8px !important;
        padding-top: 64px !important;
    }

    html:not(.sidebar-left-collapsed) section.content-body {
        margin-left: 0 !important;
    }

    .wv-page-wrap,
    .te-page-wrap,
    .ts-cal-wrap {
        margin: 0 !important;
        border-radius: 8px !important;
    }
}

/* Setup module: dropdown arrow wrapper */
.select-wrapper {
    position: relative;
    display: block;
}

.select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 32px !important;
    width: 100%;
}

.select-wrapper .select-arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #6b7280;
    font-size: 1rem;
    line-height: 1;
}

/* ============================================================
   PREMIUM MODAL SYSTEM
   Shared styles for all delete / confirm / warning modals
   ============================================================ */

/* -- Overlay backdrop -- */
.pm-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
}

.pm-overlay.open {
    display: block;
}

.pm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/* -- Modal card -- */
.pm-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 16px;
    width: 420px;
    max-width: 92vw;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.08);
    font-family: 'Google Sans', 'Segoe UI', system-ui, sans-serif;
    animation: pm-pop 0.22s cubic-bezier(0.34, 1.5, 0.64, 1) both;
    overflow: hidden;
}

@keyframes pm-pop {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.92);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* -- Icon strip at top -- */
.pm-icon-strip {
    padding: 28px 28px 0;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.pm-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pm-icon-circle.danger {
    background: #fee2e2;
}

.pm-icon-circle.warning {
    background: #fef3c7;
}

.pm-icon-circle.info {
    background: #dbeafe;
}

.pm-icon-circle.success {
    background: #dcfce7;
}

.pm-icon-circle .material-icons {
    font-size: 1.4rem;
}

.pm-icon-circle.danger .material-icons {
    color: #dc2626;
}

.pm-icon-circle.warning .material-icons {
    color: #d97706;
}

.pm-icon-circle.info .material-icons {
    color: #2563eb;
}

.pm-icon-circle.success .material-icons {
    color: #16a34a;
}

.pm-title-block {
    flex: 1;
    padding-top: 4px;
}

.pm-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 3px;
    line-height: 1.3;
}

.pm-subtitle {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

/* -- Body -- */
.pm-body {
    padding: 14px 28px 24px;
}

.pm-message {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.65;
    margin: 0;
}

.pm-warning-msg {
    font-size: 0.88rem;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 12px;
    line-height: 1.5;
}

/* -- Footer -- */
.pm-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 28px 24px;
}

.pm-btn-cancel {
    padding: 9px 22px;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #374151;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    font-family: inherit;
}

.pm-btn-cancel:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.pm-btn-danger {
    padding: 9px 22px;
    border-radius: 8px;
    border: none;
    background: #dc2626;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pm-btn-danger:hover {
    background: #b91c1c;
}

.pm-btn-warning {
    padding: 9px 22px;
    border-radius: 8px;
    border: none;
    background: #d97706;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pm-btn-warning:hover {
    background: #b45309;
}

.pm-btn-primary {
    padding: 9px 22px;
    border-radius: 8px;
    border: none;
    background: var(--color-primary, #1F238B);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
}

.pm-btn-primary:hover {
    background: var(--color-primary-hover, #181c6f);
}

/* -- Bootstrap modal override to match premium style -- */
.modal-content {
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18) !important;
    overflow: hidden;
    font-family: 'Google Sans', 'Segoe UI', system-ui, sans-serif;
}

.modal-header {
    border-bottom: none !important;
    padding: 24px 24px 0 !important;
    background: #fff;
}

.modal-body {
    padding: 12px 24px 20px !important;
    background: #fff;
}

.modal-footer {
    border-top: none !important;
    padding: 0 24px 24px !important;
    background: #fff;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal-footer .btn-default {
    padding: 9px 22px !important;
    border-radius: 8px !important;
    border: 1.5px solid #e2e8f0 !important;
    background: #fff !important;
    color: #374151 !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}

.modal-footer .btn-danger {
    padding: 9px 22px !important;
    border-radius: 8px !important;
    border: none !important;
    background: #dc2626 !important;
    color: #fff !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

.modal-footer .btn-warning-confirm {
    padding: 9px 22px !important;
    border-radius: 8px !important;
    border: none !important;
    background: #d97706 !important;
    color: #fff !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}


/* ==========================================================================
   SCROLLABLE TAB NAV WITH ARROWS
   ========================================================================== */

.ts-tab-nav-outer {
    position: relative;
    display: flex;
    align-items: flex-end;
    border-bottom: 0.8px solid #e2e8f0;
    margin-bottom: 20px;
    min-height: 44px;
    max-height: 44px;
    padding-left: 10px;
}

.ts-tab-nav-scroll {
    display: flex;
    align-items: flex-end;
    /* keep all tab links pinned to the bottom — no height expansion */
    gap: 0;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0;
    flex: 1;
    scroll-behavior: smooth;
    height: 100%;
    /* fill the fixed outer height */
}

.ts-tab-nav-scroll::-webkit-scrollbar {
    display: none;
}

.ts-tab-scroll-btn {
    flex-shrink: 0;
    display: none;
    /* shown via JS when overflow exists */
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 34px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    cursor: pointer;
    color: var(--color-primary, #1F238B);
    font-size: 14px;
    line-height: 1;
    margin-bottom: 2px;
    transition: background 0.15s, color 0.15s;
    user-select: none;
    z-index: 1;
}

.ts-tab-scroll-btn:hover {
    background: var(--color-primary, #1F238B);
    color: #fff;
    border-color: var(--color-primary, #1F238B);
}

.ts-tab-scroll-btn.ts-tab-scroll-left {
    margin-right: 4px;
    order: -1;
}

.ts-tab-scroll-btn.ts-tab-scroll-right {
    margin-left: 4px;
}

/* Force consistent tab padding across all pages */
.ts-tab-link {
    padding: 6px 14px !important;
    font-size: 0.78rem !important;
    border-bottom: 3px solid transparent !important;
    margin-bottom: 0px !important;
}


/* ============================================================
   PROJECT SECTION — Tab navigation, table cards, project cards
   (recovered from merge conflict)
   ============================================================ */

/* Tab pane */
.tab-pane-modern {
    display: none;
}

.tab-pane-modern.active {
    display: block;
}

.tab-content-container {
    overflow: visible !important;
    width: 100% !important;
    box-sizing: border-box;
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tab item buttons */
.tab-item-btn {
    background: transparent;
    border: none;
    padding: 12px 24px;
    white-space: nowrap;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: all 0.3s;
    border-radius: 12px;
}

.tab-item-btn:hover {
    background: rgba(0, 0, 0, 0.03);
}

.tab-item-btn.active {
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.tab-index {
    font-size: 10px;
    font-weight: 800;
    color: #94a3b8;
    margin-bottom: 2px;
}

.tab-text {
    font-size: 14px;
    font-weight: 700;
    color: #6b7280;
}

.tab-item-btn.active .tab-text {
    color: #1F238B;
}

.tab-active-indicator {
    position: absolute;
    bottom: 8px;
    left: 24px;
    width: 0;
    height: 3px;
    background: #1F238B;
    border-radius: 2px;
    transition: width 0.3s;
}

.tab-item-btn.active .tab-active-indicator {
    width: 40px;
}

/* Scroll buttons */
.scroll-btn {
    background: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: #64748b;
    z-index: 5;
    cursor: pointer;
}

/* Modern tabs nav */
.modern-tabs-nav {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 8px;
    flex-grow: 1;
}

.modern-tabs-nav::-webkit-scrollbar {
    display: none;
}

/* Tabs scroll wrapper */
.tabs-scroll-wrapper {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 20px 20px 0 0;
    padding: 8px 12px;
    position: relative;
}

/* Project tab content wrap */
.proj-tab-content-wrap {
    /* background: #fdfbf7; */
    /* padding: 24px; */
    border-radius: 0 0 24px 24px;
}

/* Project table toolbar */
.proj-table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.proj-table-toolbar .toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.proj-table-toolbar .toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Project section title */
.proj-section-title {
    font-size: 13px;
    font-weight: 800;
    color: #2b3674;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.proj-section-title .material-symbols-rounded {
    font-size: 18px;
    color: #4318ff;
}

/* Project table search */
.proj-table-search {
    background: #fff;
    border: 1px solid #e0e5f2;
    border-radius: 12px;
    padding: 8px 14px 8px 36px;
    font-size: 13px;
    font-weight: 500;
    color: #2b3674;
    min-width: 220px;
    outline: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23a3aed0' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px center;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.proj-table-search:focus {
    border-color: #4318ff;
    box-shadow: 0 0 0 3px rgba(67, 24, 255, 0.08);
}

/* Project table card */
.proj-table-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(224, 229, 242, 0.6);
    box-shadow: 0 10px 30px rgba(112, 144, 176, 0.08);
    overflow: hidden;
}

.proj-table-card .proj-dt {
    width: 100% !important;
    border-collapse: collapse;
    margin: 0 !important;
}

.proj-table-card .proj-dt thead tr {
    background: #f4f7fe;
    border-bottom: 2px solid #e0e5f2;
}

.proj-table-card .proj-dt thead th {
    font-size: 11px;
    font-weight: 800;
    color: #a3aed0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 14px 16px;
    border: none;
    white-space: nowrap;
}

.proj-table-card .proj-dt tbody tr {
    border-bottom: 1px solid #f4f7fe;
    transition: background 0.15s;
}

.proj-table-card .proj-dt tbody tr:last-child {
    border-bottom: none;
}

.proj-table-card .proj-dt tbody tr:hover {
    background: #f8faff;
}

.proj-table-card .proj-dt tbody td {
    font-size: 13px;
    font-weight: 500;
    color: #2b3674;
    padding: 13px 16px;
    border: none;
    vertical-align: middle;
}

.proj-table-card .proj-dt tbody td a {
    color: #4318ff;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.15s;
}

.proj-table-card .proj-dt tbody td a:hover {
    color: #2b3674;
    text-decoration: underline;
}

.proj-table-card .proj-dt tbody tr.row-inactive {
    background: #f9fafb;
    opacity: 0.7;
}

.proj-table-card .proj-dt tbody tr.row-completed {
    background: #f0fdf4;
}

/* Status badges */
.proj-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.2s;
}

.proj-status-badge.active {
    background: #e6faf5;
    color: #05cd99;
}

.proj-status-badge.inactive {
    background: #f4f7fe;
    color: #a3aed0;
}

/* DataTables pagination inside proj-table-card */
.proj-table-card .dataTables_wrapper .dataTables_length,
.proj-table-card .dataTables_wrapper .dataTables_filter,
.proj-table-card .dataTables_wrapper .dataTables_info,
.proj-table-card .dataTables_wrapper .dataTables_paginate {
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #a3aed0;
}

.proj-table-card .dataTables_wrapper .dataTables_filter {
    display: none;
}

.proj-table-card .dataTables_wrapper .dataTables_length select {
    border: 1px solid #e0e5f2;
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 12px;
    color: #2b3674;
    background: #fff;
}

.proj-table-card .dataTables_wrapper .dataTables_paginate .paginate_button {
    border: 1px solid #e0e5f2 !important;
    background: #fff !important;
    color: #2b3674 !important;
    border-radius: 8px !important;
    padding: 4px 10px !important;
    margin: 0 2px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    transition: all 0.2s !important;
}

.proj-table-card .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #f4f7fe !important;
    border-color: #4318ff !important;
    color: #4318ff !important;
}

.proj-table-card .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #4318ff !important;
    border-color: #4318ff !important;
    color: #fff !important;
}

.proj-table-card .dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
}

/* Project buttons */
.proj-btn-add {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #2b3674;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.proj-btn-add:hover {
    background: #4318ff;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(67, 24, 255, 0.25);
}

.proj-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: #2b3674;
    border: 1.5px solid #e0e5f2;
    border-radius: 12px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.proj-btn-secondary:hover {
    border-color: #2b3674;
    background: #f4f7fe;
    color: #2b3674;
}

/* Card pagination */
.card-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.card-pagination-info {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 500;
}

.card-pagination-btns {
    display: flex;
    gap: 4px;
    align-items: center;
}

.card-pg-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.card-pg-btn:hover:not(:disabled) {
    background: #f4f6fb;
    border-color: #1F238B;
    color: #1F238B;
}

.card-pg-btn.active {
    background: #1F238B;
    border-color: #1F238B;
    color: #fff;
}

.card-pg-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Project summary cards (ps-card) */
.ps-card {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 16px;
    align-items: center;
    background: #fff;
    border: 1px solid #e8ecf4;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.15s, transform 0.15s;
}

.ps-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.ps-card-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    border-right: 1px solid #f0f0f0;
    padding-right: 16px;
}

.ps-type-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    width: fit-content;
    margin-bottom: 4px;
}

.ps-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ps-customer {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ps-card-mid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    min-width: 0;
}

.ps-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ps-meta-lbl {
    font-size: 0.62rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.ps-meta-val {
    font-size: 0.78rem;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ps-card-right {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    border-left: 1px solid #f0f0f0;
    padding-left: 16px;
}

.ps-perc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ps-perc-lbl {
    font-size: 0.68rem;
    font-weight: 600;
    color: #9ca3af;
}

.ps-perc-val {
    font-size: 0.82rem;
    font-weight: 800;
}

.ps-progress-track {
    height: 6px;
    background: #f1f5f9;
    border-radius: 99px;
    overflow: hidden;
}

.ps-progress-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.4s ease;
}

@media (max-width: 900px) {
    .ps-card {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }

    .ps-card-left {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        padding-right: 0;
        padding-bottom: 12px;
        grid-column: 1 / -1;
    }

    .ps-card-right {
        border-left: none;
        border-top: 1px solid #f0f0f0;
        padding-left: 0;
        padding-top: 12px;
    }
}

@media (max-width: 576px) {
    .ps-card {
        grid-template-columns: 1fr;
    }

    .ps-card-left {
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 12px;
    }

    .ps-card-mid {
        grid-template-columns: 1fr;
    }

    .ps-card-right {
        border-top: 1px solid #f0f0f0;
        padding-top: 12px;
    }
}

@media (max-width: 768px) {
    .proj-tab-content-wrap {
        padding: 16px;
    }

    .proj-table-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .proj-table-search {
        min-width: 100%;
    }

    .modern-tabs-container {
        margin-top: 1rem;
    }
}


/* ============================================================
   FLOATING ACTION BUTTON (FAB) — Standardized & Responsive
   ============================================================ */
.fab-container,
#fab-add-container,
#subtab-fab-container {
    position: fixed !important;
    bottom: 36px !important;
    right: 36px !important;
    left: auto !important;
    z-index: 9999 !important;
    display: none;
    /* Shown via JS */
    align-items: center;
    gap: 12px;
    pointer-events: none;
}

.fab-container.show-fab,
#fab-add-container.show-fab,
#subtab-fab-container.show-fab {
    display: flex !important;
}

.fab-main,
.fab-btn-modern {
    pointer-events: auto;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #1F238B !important;
    color: #fff !important;
    border: none;
    box-shadow: 0 4px 16px rgba(31, 35, 139, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    transition: width 0.22s ease, border-radius 0.22s ease, background 0.15s, padding 0.22s ease, box-shadow 0.22s ease;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
    white-space: nowrap;
}

.fab-main:hover,
.fab-btn-modern:hover {
    width: auto;
    border-radius: 25px;
    background: #181c6f !important;
    padding: 0 16px 0 12px;
    box-shadow: 0 8px 24px rgba(31, 35, 139, 0.4);
    text-decoration: none;
    color: #fff !important;
}

.fab-main .material-symbols-rounded,
.fab-btn-modern .material-symbols-rounded {
    font-size: 1.3rem !important;
    margin-right: 0;
    flex-shrink: 0;
    color: #fff !important;
}

.fab-label {
    max-width: 0;
    overflow: hidden;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.02em;
    color: #fff !important;
    opacity: 0;
    transition: max-width 0.22s ease, opacity 0.18s ease, margin 0.22s ease;
    margin-left: 0;
}

.fab-main:hover .fab-label,
.fab-btn-modern:hover .fab-label {
    max-width: 200px;
    opacity: 1;
    margin-left: 7px;
}

/* Backward compatibility for old tooltip structure */
.fab-tooltip {
    position: static;
    background: #1e293b;
    color: #fff;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(10px);
}

.fab-container:hover .fab-tooltip,
#fab-add-container:hover .fab-tooltip,
#subtab-fab-container:hover .fab-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive adjustments for FAB */
@media (max-width: 768px) {

    .fab-container,
    #fab-add-container,
    #subtab-fab-container {
        bottom: 24px !important;
        right: 24px !important;
    }

    .fab-main,
    .fab-btn-modern {
        width: 44px !important;
        height: 44px !important;
        border-radius: 50% !important;
        padding: 0 !important;
    }

    .fab-main .material-symbols-rounded,
    .fab-btn-modern .material-symbols-rounded {
        margin-right: 0 !important;
        font-size: 1.2rem !important;
    }

    .fab-label {
        display: none !important;
    }
}

/* ══════════════════════════════════════════
   PROFILE FLYOUT — collapsed sidebar hover
══════════════════════════════════════════ */
.sk-profile-flyout {
    min-width: 230px !important;
    padding: 10px !important;
}

/* Arrow points to the avatar in the sidebar */
.sk-profile-flyout::before {
    top: auto !important;
    bottom: 18px !important;
}

/* Header: avatar + name/email */
.sk-pf-header {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 6px 8px 10px !important;
}

.sk-pf-info {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
}

.sk-pf-name {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 160px !important;
}

.sk-pf-email {
    font-size: 11px !important;
    color: #9ca3af !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 160px !important;
}

.sk-pf-divider {
    height: 1px !important;
    background: #f0f0f0 !important;
    margin: 4px 0 !important;
}

/* Menu list inside profile flyout */
.sk-pf-menu {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sk-pf-menu li a {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 9px 10px !important;
    border-radius: 9px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #1a1a2e !important;
    text-decoration: none !important;
    transition: background 0.12s, color 0.12s !important;
    white-space: nowrap !important;
}

.sk-pf-menu li a .material-symbols-rounded {
    font-size: 18px !important;
    color: #6b7280 !important;
    flex-shrink: 0 !important;
    transition: color 0.12s !important;
}

.sk-pf-menu li a:hover {
    background: #f0f2ff !important;
    color: var(--color-primary) !important;
}

.sk-pf-menu li a:hover .material-symbols-rounded {
    color: var(--color-primary) !important;
}

/* Logout — red tint */
.sk-pf-menu li a.sk-pf-logout {
    color: #dc2626 !important;
}

.sk-pf-menu li a.sk-pf-logout .material-symbols-rounded {
    color: #dc2626 !important;
}

.sk-pf-menu li a.sk-pf-logout:hover {
    background: #fef2f2 !important;
    color: #b91c1c !important;
}

.sk-pf-menu li a.sk-pf-logout:hover .material-symbols-rounded {
    color: #b91c1c !important;
}

/* ============================================================
   Unified UI Components (Standardized)
   ============================================================ */

.ts-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.ts-header-title {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #1b2559 !important;
    border-bottom: none !important;
    margin: 0 !important;
}

.toolbar-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex: 1;
    padding: 14px;
}

@media (max-width: 768px) {
    .ts-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .toolbar-controls {
        width: 100%;
        justify-content: flex-start;
    }

    .search-box-unified {
        min-width: 100%;
    }
}

.search-box-unified {
    position: relative;
    min-width: 240px;
    background: #fff;
    border: 1px solid #e0e5f2;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0 12px;
    transition: all 0.2s;
    height: 42px;
}

.search-box-unified:focus-within {
    border-color: #4318ff;
    box-shadow: 0 0 0 3px rgba(67, 24, 255, .08);
}

.search-box-unified .material-symbols-rounded,
.search-box-unified .material-icons {
    font-size: 18px;
    color: #a3aed0;
}

.search-box-unified input {
    border: none !important;
    outline: none !important;
    padding: 8px 8px !important;
    font-size: 13px !important;
    color: #2b3674 !important;
    width: 100% !important;
    font-weight: 500 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.view-toggle-unified {
    background: #fff;
    border: 1px solid #e0e5f2;
    border-radius: 12px;
    padding: 4px;
    display: flex;
    gap: 4px;
    height: 42px;
    align-items: center;
    flex-shrink: 0;
}

.btn-v-toggle {
    width: 34px !important;
    height: 34px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    background: transparent !important;
    border-radius: 8px !important;
    color: #a3aed0 !important;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0 !important;
}

.btn-v-toggle:hover {
    background: #f4f7fe !important;
    color: #1F238B !important;
}

.btn-v-toggle.active {
    background: #2b3674 !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(43, 54, 116, 0.15);
}

.btn-v-toggle .material-symbols-rounded,
.btn-v-toggle .material-icons {
    font-size: 18px !important;
}

.btn-filter-toggle,
.ts-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #e0e5f2;
    border-radius: 12px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #2b3674;
    cursor: pointer;
    transition: all 0.2s;
    height: 42px;
    text-decoration: none;
    flex-shrink: 0;
    white-space: nowrap;
}

.btn-filter-toggle:hover,
.ts-btn-outline:hover {
    background: #f4f7fe;
    border-color: #4318ff;
    color: #1F238B;
}

.btn-filter-toggle.active {
    background: #4318ff;
    color: #fff;
    border-color: #4318ff;
}

/* Premium Status Action Badges */
.emp-status-badge,
.prj-card-badge {
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    height: 28px;
    min-width: 80px;
}

.emp-status-badge.active,
.prj-card-badge.active {
    background: #ecfdf5;
    color: #10b981;
    border-color: #d1fae5;
}

.emp-status-badge.active:hover,
.prj-card-badge.active:hover {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    transform: translateY(-1px);
}

.emp-status-badge.inactive,
.prj-card-badge.inactive {
    background: #f8fafc;
    color: #94a3b8;
    border-color: #e2e8f0;
}

.emp-status-badge.inactive:hover,
.prj-card-badge.inactive:hover {
    background: #94a3b8;
    color: #fff;
    border-color: #94a3b8;
    transform: translateY(-1px);
}

/* RESPONSIVE DASHBOARD FIX */
.main-dashboard-wrap {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    padding-left: 32px;
    padding-bottom: 110px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
    min-height: 100vh;
    position: relative;
}

@media (max-width: 768px) {
    .main-dashboard-wrap {
        padding: 12px !important;
        padding-bottom: 85px !important;
        border-radius: 4px;
    }
}

/* Sidebar collapsed by default on mobile — no flicker */
@media (max-width: 767px) {
    html:not(.sidebar-left-open) section.body {
        margin-left: 0 !important;
    }
}

/* Address Type card — mobile stack */
@media (max-width: 767px) {
    .at-card { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 16px; }
    .at-card-icon { margin-right: 0; }
    .at-card-body { padding-right: 0; width: 100%; }
    .at-card-desc-wrap { padding-right: 0; width: 100%; }
    .at-card-desc { white-space: normal; }
    .at-card-right { margin-left: 0; width: 100%; justify-content: flex-start; gap: 10px; }
}
