/**
 * HR Portal Theme - Global Style Overrides
 * 
 * This file provides the new light theme styling for the HR Portal application.
 * It overrides the existing dark blue theme with a modern, clean design.
 * 
 * Requirements: 5.1, 5.2, 5.3, 5.4, 5.5, 5.6
 */

/* ============================================
   CSS Variables - Color Palette
   ============================================ */
:root {
    /* Primary Colors */
    --hr-primary: #0066CC;
    --hr-primary-dark: #004C99;
    --hr-primary-light: #E8F4FD;
    --hr-secondary-blue: #3B82F6;
    
    /* Background Colors */
    --hr-bg-page: #F5F7FA;
    --hr-bg-white: #FFFFFF;
    --hr-bg-card: #FFFFFF;
    --hr-bg-hover: #F0F4F8;
    
    /* Border Colors */
    --hr-border: #E5E7EB;
    --hr-border-light: #F0F0F0;
    
    /* Text Colors */
    --hr-text-primary: #1F2937;
    --hr-text-secondary: #6B7280;
    --hr-text-muted: #9CA3AF;
    --hr-text-white: #FFFFFF;
    
    /* Status Colors */
    --hr-success: #10B981;
    --hr-success-light: #D1FAE5;
    --hr-warning: #F59E0B;
    --hr-warning-light: #FEF3C7;
    --hr-error: #EF4444;
    --hr-error-light: #FEE2E2;
    --hr-info: #3B82F6;
    --hr-info-light: #DBEAFE;
    
    /* Shadows */
    --hr-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --hr-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --hr-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --hr-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    
    /* Border Radius */
    --hr-radius-sm: 6px;
    --hr-radius: 8px;
    --hr-radius-md: 10px;
    --hr-radius-lg: 12px;
    --hr-radius-xl: 16px;
    
    /* Typography */
    --hr-font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============================================
   Base Styles
   ============================================ */
body {
    background-color: var(--hr-bg-page) !important;
    font-family: var(--hr-font-family);
    color: var(--hr-text-primary);
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--hr-font-family);
    color: var(--hr-text-primary);
    font-weight: 600;
}

.form-label {
    color: var(--hr-text-primary);
    font-weight: 500;
    font-size: 14px;
}

/* ============================================
   Card Styling
   ============================================ */
.card {
    background-color: var(--hr-bg-card) !important;
    border: 1px solid var(--hr-border-light);
    border-radius: var(--hr-radius-lg) !important;
    box-shadow: var(--hr-shadow) !important;
}

.card-header {
    background-color: var(--hr-bg-white);
    border-bottom: 1px solid var(--hr-border);
    border-radius: var(--hr-radius-lg) var(--hr-radius-lg) 0 0 !important;
}

.card-body {
    padding: 1.25rem;
}

/* ============================================
   Button Styling
   ============================================ */
.btn {
    border-radius: var(--hr-radius) !important;
    font-weight: 500;
    font-size: 14px;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.btn-primary {
    --bs-btn-bg: var(--hr-primary) !important;
    --bs-btn-border-color: var(--hr-primary) !important;
    --bs-btn-hover-bg: var(--hr-primary-dark) !important;
    --bs-btn-hover-border-color: var(--hr-primary-dark) !important;
    --bs-btn-active-bg: var(--hr-primary-dark) !important;
    --bs-btn-active-border-color: var(--hr-primary-dark) !important;
}

.btn-secondary {
    --bs-btn-color: var(--hr-text-primary) !important;
    --bs-btn-bg: var(--hr-bg-page) !important;
    --bs-btn-border-color: var(--hr-border) !important;
    --bs-btn-hover-color: var(--hr-text-primary) !important;
    --bs-btn-hover-bg: var(--hr-bg-hover) !important;
    --bs-btn-hover-border-color: var(--hr-border) !important;
}

.btn-outline-primary {
    --bs-btn-color: var(--hr-primary);
    --bs-btn-border-color: var(--hr-primary);
    --bs-btn-hover-bg: var(--hr-primary);
    --bs-btn-hover-border-color: var(--hr-primary);
}

/* ============================================
   Form Controls
   ============================================ */
.form-control {
    border-radius: var(--hr-radius);
    border: 1px solid var(--hr-border);
    color: var(--hr-text-primary);
    font-size: 14px;
    padding: 0.625rem 0.875rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    border-color: var(--hr-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-control::placeholder {
    color: var(--hr-text-muted) !important;
    opacity: 1 !important;
}

.form-select {
    border-radius: var(--hr-radius);
    border: 1px solid var(--hr-border);
    color: var(--hr-text-primary);
    font-size: 14px;
}

.form-select:focus {
    border-color: var(--hr-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* Select2 Styling */
.select2-container {
    border-radius: var(--hr-radius);
    border: 1px solid var(--hr-border);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--hr-text-primary) !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid var(--hr-border) !important;
    background: var(--hr-bg-white) !important;
    color: var(--hr-text-primary) !important;
}

.select2-dropdown {
    border: 1px solid var(--hr-border) !important;
    border-radius: var(--hr-radius) !important;
    box-shadow: var(--hr-shadow-lg) !important;
}

/* Modal Select2 Fixes */
.modal .select2-container {
    z-index: 1055 !important;
}

.modal .select2-dropdown {
    z-index: 1060 !important;
}

.select2-container--open .select2-dropdown {
    z-index: 1060 !important;
}

/* Ensure Select2 dropdowns appear above modal content */
.select2-container--default .select2-selection--single {
    height: 38px;
    line-height: 36px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

.select2-container--default .select2-results__option {
    padding: 8px 12px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--hr-primary) !important;
    color: white !important;
}

/* ============================================
   Navbar Styling - HR Portal Header
   ============================================ */
.hr-portal-header {
    background-color: var(--hr-bg-white) !important;
    box-shadow: var(--hr-shadow-md) !important;
    border-bottom: 1px solid var(--hr-border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.hr-portal-header .navbar {
    background-color: var(--hr-bg-white) !important;
    padding: 0.5rem 1rem;
    min-height: 60px;
}

/* Hamburger Menu Toggle */
.hr-portal-header .btn-toggle a {
    color: var(--hr-text-secondary) !important;
    background-color: var(--hr-bg-page) !important;
    border-radius: var(--hr-radius);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.hr-portal-header .btn-toggle a:hover {
    background-color: var(--hr-primary-light) !important;
    color: var(--hr-primary) !important;
}

.hr-portal-header .btn-toggle a i {
    color: inherit !important;
}

/* Navbar Brand/Logo Section */
.navbar-brand-wrapper {
    margin-right: 1rem;
}

.navbar-brand-wrapper .navbar-brand {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand-wrapper .navbar-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.navbar-brand-wrapper .navbar-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.navbar-brand-wrapper .navbar-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--hr-primary);
    letter-spacing: -0.3px;
}

.navbar-brand-wrapper .navbar-subtitle {
    font-size: 10px;
    font-weight: 600;
    color: var(--hr-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Search Bar */
.hr-portal-header .search-bar .search-control {
    background-color: var(--hr-bg-page) !important;
    border: 1px solid var(--hr-border) !important;
    color: var(--hr-text-primary) !important;
    max-width: 400px;
}

.hr-portal-header .search-bar .search-control:focus {
    border-color: var(--hr-primary) !important;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1) !important;
}

/* Nav Action Buttons */
.nav-action-btn {
    width: 40px;
    height: 40px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: var(--hr-radius) !important;
    background-color: var(--hr-bg-page) !important;
    color: var(--hr-text-secondary) !important;
    transition: all 0.2s ease;
}

.nav-action-btn:hover {
    background-color: var(--hr-primary-light) !important;
    color: var(--hr-primary) !important;
}

.nav-action-btn i {
    font-size: 20px;
    color: inherit !important;
}

/* Feedback Button */
.btn-feedback {
    display: flex !important;
    align-items: center;
    gap: 6px;
    padding: 8px 16px !important;
    background-color: var(--hr-success) !important;
    color: var(--hr-text-white) !important;
    border: none !important;
    border-radius: var(--hr-radius) !important;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-feedback:hover {
    background-color: #0D9668 !important;
    color: var(--hr-text-white) !important;
    transform: translateY(-1px);
}

.btn-feedback i {
    font-size: 18px;
    color: var(--hr-text-white) !important;
}

/* User Dropdown */
.user-dropdown-wrapper {
    margin-left: 0.5rem;
}

.user-dropdown-toggle {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: var(--hr-radius);
    transition: all 0.2s ease;
    text-decoration: none;
}

.user-dropdown-toggle:hover {
    background-color: var(--hr-bg-page);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--hr-border);
}

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

.user-info {
    display: flex;
    align-items: center;
    gap: 4px;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--hr-text-primary);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow {
    font-size: 18px !important;
    color: var(--hr-text-secondary) !important;
    transition: transform 0.2s ease;
}

.user-dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

/* User Dropdown Menu */
.dropdown-user {
    min-width: 240px;
    padding: 0;
    border-radius: var(--hr-radius-lg) !important;
    border: 1px solid var(--hr-border);
    overflow: hidden;
}

.dropdown-user-header {
    padding: 1.25rem;
    text-align: center;
    background-color: var(--hr-bg-page);
    border-bottom: 1px solid var(--hr-border);
}

.user-avatar-lg {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 0.75rem;
    border: 3px solid var(--hr-bg-white);
    box-shadow: var(--hr-shadow);
}

.user-avatar-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name-lg {
    font-size: 16px;
    font-weight: 600;
    color: var(--hr-text-primary);
    margin-bottom: 0.25rem;
    word-wrap: break-word;
}

.user-designation {
    font-size: 13px;
    color: var(--hr-text-secondary);
    margin-bottom: 0;
    word-wrap: break-word;
}

.dropdown-user .dropdown-item {
    padding: 0.625rem 1rem;
    color: var(--hr-text-primary) !important;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    width: 100%;
    border-radius: 0;
}

.dropdown-user .dropdown-item:hover {
    background-color: var(--hr-primary-light);
    color: var(--hr-primary) !important;
}

.dropdown-user .dropdown-item i {
    font-size: 20px;
    color: var(--hr-text-secondary) !important;
}

.dropdown-user .dropdown-item:hover i {
    color: var(--hr-primary) !important;
}

.dropdown-user .logout-item {
    color: var(--hr-error) !important;
}

.dropdown-user .logout-item i {
    color: var(--hr-error) !important;
}

.dropdown-user .logout-item:hover {
    background-color: var(--hr-error-light);
    color: var(--hr-error) !important;
}

.dropdown-user .dropdown-divider {
    margin: 0.25rem 0;
    border-color: var(--hr-border);
}

/* Legacy navbar support */
.top-header .navbar {
    background-color: var(--hr-bg-white) !important;
    box-shadow: var(--hr-shadow);
}

.top-header .btn-toggle a {
    color: var(--hr-text-secondary) !important;
    background-color: var(--hr-bg-page) !important;
}

.top-header .btn-toggle a:hover {
    background-color: var(--hr-bg-hover) !important;
}

.top-header .nav-right-links .nav-link {
    color: var(--hr-text-secondary);
    background-color: transparent;
}

.top-header .nav-right-links .nav-link:hover,
.top-header .nav-right-links .nav-link:focus {
    background-color: var(--hr-bg-hover);
    color: var(--hr-primary);
}

.nav-link {
    background: transparent;
}

/* ============================================
   Horizontal Navigation Menu
   ============================================ */

/* Hide old sidebar */
.sidebar-wrapper {
    display: none !important;
}

/* Main wrapper adjustment - remove sidebar margin */
.main-wrapper {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* Horizontal Nav Container */
.horizontal-nav {
    background-color: var(--hr-bg-white);
    border-bottom: 1px solid var(--hr-border);
    box-shadow: var(--hr-shadow-sm);
    position: sticky;
    top: 71px; /* Below the main header */
    z-index: 999;
    width: 100%;
    overflow: visible;
}

.horizontal-nav-container {
    max-width: 100%;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.horizontal-nav-container::-webkit-scrollbar {
    display: none;
}

/* Horizontal Menu */
.horizontal-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
    white-space: nowrap;
}

/* Menu Item */
.horizontal-menu .menu-item {
    position: relative;
}

.horizontal-menu .menu-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    color: var(--hr-text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--hr-radius);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.horizontal-menu .menu-link i {
    font-size: 20px;
    color: var(--hr-text-secondary) !important;
}

.horizontal-menu .menu-link .dropdown-icon {
    font-size: 18px;
    margin-left: 2px;
    transition: transform 0.2s ease;
}

.horizontal-menu .menu-link:hover {
    color: var(--hr-primary);
    background-color: var(--hr-primary-light);
}

.horizontal-menu .menu-link:hover i {
    color: var(--hr-primary) !important;
}

/* Active Menu Item */
.horizontal-menu .menu-item.active > .menu-link {
    color: var(--hr-primary);
    background-color: var(--hr-primary-light);
    font-weight: 600;
}

.horizontal-menu .menu-item.active > .menu-link i {
    color: var(--hr-primary) !important;
}

/* Submenu Dropdown */
.horizontal-menu .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: var(--hr-bg-white);
    border: 1px solid var(--hr-border);
    border-radius: var(--hr-radius-lg);
    box-shadow: var(--hr-shadow-lg);
    list-style: none;
    margin: 0;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 2000;
    pointer-events: none;
}

.horizontal-menu .menu-item.has-submenu.show > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.horizontal-menu .menu-item.has-submenu.show > .menu-link .dropdown-icon {
    transform: rotate(180deg);
}

/* Submenu Items */
.horizontal-menu .submenu-item {
    margin: 0;
}

.horizontal-menu .submenu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--hr-text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    border-radius: var(--hr-radius);
    transition: all 0.2s ease;
}

.horizontal-menu .submenu-link i {
    font-size: 18px;
    color: var(--hr-text-muted) !important;
}

.horizontal-menu .submenu-link:hover {
    color: var(--hr-primary);
    background-color: var(--hr-primary-light);
}

.horizontal-menu .submenu-link:hover i {
    color: var(--hr-primary) !important;
}

.horizontal-menu .submenu-item.active > .submenu-link {
    color: var(--hr-primary);
    background-color: var(--hr-primary-light);
    font-weight: 500;
}

.horizontal-menu .submenu-item.active > .submenu-link i {
    color: var(--hr-primary) !important;
}

.horizontal-menu .submenu-link.disabled {
    color: var(--hr-text-muted);
    pointer-events: none;
    opacity: 0.6;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background-color: var(--hr-bg-white);
    z-index: 1050;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: var(--hr-shadow-lg);
}

.mobile-sidebar.open {
    left: 0;
}

.mobile-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--hr-border);
    background-color: var(--hr-bg-page);
}

.mobile-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-sidebar-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.mobile-sidebar-title {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.mobile-sidebar-title span {
    font-size: 14px;
    font-weight: 700;
    color: var(--hr-primary);
}

.mobile-sidebar-title small {
    font-size: 9px;
    font-weight: 600;
    color: var(--hr-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-sidebar-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--hr-bg-white);
    border: 1px solid var(--hr-border);
    border-radius: var(--hr-radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-sidebar-close:hover {
    background-color: var(--hr-error-light);
    border-color: var(--hr-error);
}

.mobile-sidebar-close i {
    font-size: 20px;
    color: var(--hr-text-secondary) !important;
}

.mobile-sidebar-close:hover i {
    color: var(--hr-error) !important;
}

.mobile-sidebar-nav {
    padding: 12px;
}

/* Mobile Menu */
.mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-item {
    margin-bottom: 4px;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: var(--hr-text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--hr-radius);
    transition: all 0.2s ease;
}

.mobile-menu-link i {
    font-size: 20px;
    color: var(--hr-text-secondary) !important;
}

.mobile-menu-link .toggle-icon {
    margin-left: auto;
    font-size: 20px;
}

.mobile-menu-link:hover {
    color: var(--hr-primary);
    background-color: var(--hr-primary-light);
}

.mobile-menu-link:hover i {
    color: var(--hr-primary) !important;
}

.mobile-menu-item.active > .mobile-menu-link {
    color: var(--hr-primary);
    background-color: var(--hr-primary-light);
    font-weight: 600;
}

.mobile-menu-item.active > .mobile-menu-link i {
    color: var(--hr-primary) !important;
}

/* Mobile Submenu */
.mobile-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-submenu.show {
    max-height: 500px;
}

.mobile-submenu-item {
    margin: 0;
}

.mobile-submenu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px 10px 46px;
    color: var(--hr-text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    border-radius: var(--hr-radius);
    transition: all 0.2s ease;
}

.mobile-submenu-link i {
    font-size: 16px;
    color: var(--hr-text-muted) !important;
}

.mobile-submenu-link:hover {
    color: var(--hr-primary);
    background-color: var(--hr-primary-light);
}

.mobile-submenu-link:hover i {
    color: var(--hr-primary) !important;
}

.mobile-submenu-item.active > .mobile-submenu-link {
    color: var(--hr-primary);
    background-color: var(--hr-primary-light);
    font-weight: 500;
}

.mobile-submenu-item.active > .mobile-submenu-link i {
    color: var(--hr-primary) !important;
}

.mobile-submenu-link.disabled {
    color: var(--hr-text-muted);
    pointer-events: none;
    opacity: 0.6;
}

/* Desktop: Show horizontal nav, hide mobile sidebar */
@media (min-width: 992px) {
    .horizontal-nav {
        display: block !important;
    }
    
    .mobile-sidebar,
    .mobile-menu-overlay {
        display: none !important;
    }
    
    /* Hide hamburger on desktop */
    .hr-portal-header .btn-toggle {
        display: none !important;
    }
}

/* Tablet and Mobile: Hide horizontal nav, show mobile sidebar */
@media (max-width: 991px) {
    .horizontal-nav {
        display: none !important;
    }
    
    .mobile-sidebar,
    .mobile-menu-overlay {
        display: block;
    }
    
    /* Show hamburger on mobile/tablet */
    .hr-portal-header .btn-toggle {
        display: block !important;
    }
}

/* ============================================
   Footer Styling
   ============================================ */
.page-footer {
    background: var(--hr-bg-white) !important;
    color: var(--hr-text-secondary);
    border-top: 1px solid var(--hr-border);
}

.footer-bar {
    background: var(--hr-bg-white) !important;
    color: var(--hr-text-secondary);
    border-top: 1px solid var(--hr-border);
}

.footer-bar p a {
    color: var(--hr-primary) !important;
}

.page-footer p a {
    color: var(--hr-primary) !important;
}

/* ============================================
   DataTable Styling
   ============================================ */
table.dataTable thead th {
    background-color: var(--hr-primary) !important;
    color: var(--hr-text-white) !important;
    font-weight: 600;
}

table.dataTable tbody tr.odd {
    background-color: var(--hr-bg-white) !important;
}

table.dataTable tbody tr.even {
    background-color: var(--hr-bg-page) !important;
}

table.dataTable tbody tr:hover {
    background-color: var(--hr-primary-light) !important;
}

/* ============================================
   Status Badges
   ============================================ */
.badge {
    border-radius: var(--hr-radius-sm);
    font-weight: 500;
    font-size: 12px;
    padding: 0.35em 0.65em;
}

/* Active/Primary Status - Blue */
.badge-active,
.badge-primary,
.bg-primary {
    background-color: var(--hr-primary) !important;
    color: var(--hr-text-white) !important;
}

/* Success Status - Green */
.badge-success,
.bg-success {
    background-color: var(--hr-success) !important;
    color: var(--hr-text-white) !important;
}

/* Warning/Maintenance Status - Orange */
.badge-warning,
.badge-maintenance,
.bg-warning {
    background-color: var(--hr-warning) !important;
    color: var(--hr-text-white) !important;
}

/* Error Status - Red */
.badge-danger,
.badge-error,
.bg-danger {
    background-color: var(--hr-error) !important;
    color: var(--hr-text-white) !important;
}

/* Info Status - Blue */
.badge-info,
.bg-info {
    background-color: var(--hr-info) !important;
    color: var(--hr-text-white) !important;
}

/* ============================================
   Alert Styling
   ============================================ */
.alert {
    border-radius: var(--hr-radius);
    border: none;
}

.alert-success {
    background-color: var(--hr-success-light) !important;
    color: #065F46 !important;
    border-left: 4px solid var(--hr-success);
}

.alert-warning {
    background-color: var(--hr-warning-light) !important;
    color: #92400E !important;
    border-left: 4px solid var(--hr-warning);
}

.alert-danger {
    background-color: var(--hr-error-light) !important;
    color: #991B1B !important;
    border-left: 4px solid var(--hr-error);
}

.alert-info {
    background-color: var(--hr-info-light) !important;
    color: #1E40AF !important;
    border-left: 4px solid var(--hr-info);
}

/* ============================================
   Breadcrumb Styling
   ============================================ */
.main-wrapper .main-content .breadcrumb-title {
    color: var(--hr-text-primary) !important;
    border-right: 1.5px solid var(--hr-border);
}

/* ============================================
   Dropdown Styling
   ============================================ */
.dropdown-menu {
    border-radius: var(--hr-radius-lg);
    border: 1px solid var(--hr-border);
    box-shadow: var(--hr-shadow-lg) !important;
}

.dropdown-item {
    color: var(--hr-text-primary) !important;
    padding: 0.5rem 1rem;
    border-radius: var(--hr-radius-sm);
    margin: 0.125rem 0.5rem;
    width: calc(100% - 1rem);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--hr-primary-light);
    color: var(--hr-primary) !important;
}

/* ============================================
   Modal Styling
   ============================================ */
.modal-content {
    border-radius: var(--hr-radius-lg);
    border: none;
    box-shadow: var(--hr-shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--hr-border);
    border-radius: var(--hr-radius-lg) var(--hr-radius-lg) 0 0;
}

.modal-footer {
    border-top: 1px solid var(--hr-border);
    border-radius: 0 0 var(--hr-radius-lg) var(--hr-radius-lg);
}

/* ============================================
   Pagination Styling
   ============================================ */
.page-link {
    border-radius: var(--hr-radius-sm);
    border: 1px solid var(--hr-border);
    color: var(--hr-text-primary);
    margin: 0 2px;
}

.page-link:hover {
    background-color: var(--hr-primary-light);
    border-color: var(--hr-primary);
    color: var(--hr-primary);
}

.active > .page-link,
.page-link.active {
    background-color: var(--hr-primary) !important;
    border-color: var(--hr-primary) !important;
    color: var(--hr-text-white) !important;
}

/* ============================================
   Material Icons Override
   ============================================ */
.material-icons-outlined {
    color: var(--hr-text-secondary) !important;
}

/* Action buttons in DataTables - ensure icons are white */
.btn-info .material-icons-outlined,
.btn-warning .material-icons-outlined,
.btn-danger .material-icons-outlined,
.btn-success .material-icons-outlined,
.btn-primary .material-icons-outlined,
.btn .lst_material {
    color: var(--hr-text-white, #FFFFFF) !important;
}

/* DataTable Action Buttons Styling */
.action-buttons,
.table .btn-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.action-buttons .btn,
.table .btn-group .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: var(--hr-radius-sm, 6px) !important;
    white-space: nowrap;
    min-width: 90px;
    box-shadow: var(--hr-shadow-sm, 0 1px 2px 0 rgba(0, 0, 0, 0.05));
    transition: all 0.2s ease;
}

.action-buttons .btn i,
.table .btn-group .btn i {
    font-size: 16px;
}

/* Edit button - outline style */
.action-buttons .btn-info,
.table .btn-group .btn-info {
    background-color: transparent !important;
    border: 1.5px solid var(--hr-primary, #0066CC) !important;
    color: var(--hr-primary, #0066CC) !important;
}

.action-buttons .btn-info:hover,
.table .btn-group .btn-info:hover {
    background-color: var(--hr-primary, #0066CC) !important;
    color: var(--hr-text-white, #FFFFFF) !important;
    transform: translateY(-1px);
}

.action-buttons .btn-info i,
.table .btn-group .btn-info i {
    color: var(--hr-primary, #0066CC) !important;
}

.action-buttons .btn-info:hover i,
.table .btn-group .btn-info:hover i {
    color: var(--hr-text-white, #FFFFFF) !important;
}

/* Warning button - outline style */
.action-buttons .btn-warning,
.table .btn-group .btn-warning {
    background-color: transparent !important;
    border: 1.5px solid var(--hr-warning, #F59E0B) !important;
    color: var(--hr-warning, #F59E0B) !important;
}

.action-buttons .btn-warning:hover,
.table .btn-group .btn-warning:hover {
    background-color: var(--hr-warning, #F59E0B) !important;
    color: var(--hr-text-white, #FFFFFF) !important;
    transform: translateY(-1px);
}

.action-buttons .btn-warning i,
.table .btn-group .btn-warning i {
    color: var(--hr-warning, #F59E0B) !important;
}

.action-buttons .btn-warning:hover i,
.table .btn-group .btn-warning:hover i {
    color: var(--hr-text-white, #FFFFFF) !important;
}

.action-buttons .btn-success,
.table .btn-group .btn-success {
    background-color: transparent !important;
    border: 1.5px solid var(--hr-success, #10B981) !important;
    color: var(--hr-success, #10B981) !important;
}

.action-buttons .btn-success:hover,
.table .btn-group .btn-success:hover {
    background-color: var(--hr-success, #10B981) !important;
    color: var(--hr-text-white, #FFFFFF) !important;
    transform: translateY(-1px);
}

.action-buttons .btn-success i,
.table .btn-group .btn-success i {
    color: var(--hr-success, #10B981) !important;
}

.action-buttons .btn-success:hover i,
.table .btn-group .btn-success:hover i {
    color: var(--hr-text-white, #FFFFFF) !important;
}

.action-buttons .btn-danger,
.table .btn-group .btn-danger {
    background-color: transparent !important;
    border: 1.5px solid var(--hr-error, #EF4444) !important;
    color: var(--hr-error, #EF4444) !important;
}

.action-buttons .btn-danger:hover,
.table .btn-group .btn-danger:hover {
    background-color: var(--hr-error, #EF4444) !important;
    color: var(--hr-text-white, #FFFFFF) !important;
    transform: translateY(-1px);
}

.action-buttons .btn-danger i,
.table .btn-group .btn-danger i {
    color: var(--hr-error, #EF4444) !important;
}

.action-buttons .btn-danger:hover i,
.table .btn-group .btn-danger:hover i {
    color: var(--hr-text-white, #FFFFFF) !important;
}

/* ============================================
   Username/User Info Styling
   ============================================ */
.username {
    color: var(--hr-text-primary) !important;
}

.userdesig {
    color: var(--hr-text-secondary) !important;
}

/* ============================================
   Search Control
   ============================================ */
.search-control {
    background-color: var(--hr-bg-page) !important;
    border: 1px solid var(--hr-border) !important;
    color: var(--hr-text-primary) !important;
}

.search-control::placeholder {
    color: var(--hr-text-muted) !important;
}

/* ============================================
   Dashboard Cards Override
   ============================================ */
.dashboard-title-card {
    background-color: var(--hr-bg-white);
    box-shadow: var(--hr-shadow);
}

/* ============================================
   Profile Card Override - Flat Design
   ============================================ */
.profile-card {
    background-color: var(--hr-primary-light) !important;
}

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

.profile-textbox {
    background-color: var(--hr-bg-page) !important;
}

.profile-icon {
    background-color: var(--hr-primary) !important;
    color: var(--hr-text-white) !important;
}

/* ============================================
   List/Header Styling - Flat Design
   ============================================ */
.hdrlist {
    background-color: var(--hr-primary) !important;
    color: var(--hr-text-white);
}

.list_card {
    background-color: var(--hr-bg-page) !important;
}

/* ============================================
   Background Title - Flat Design
   ============================================ */
.bg-title {
    background-color: var(--hr-primary) !important;
}

/* ============================================
   Responsive Adjustments
   Requirements: 6.1, 6.2, 6.3, 6.4, 6.5
   ============================================ */

/* ============================================
   Desktop Layout (>1200px)
   Requirements: 6.1
   - Full horizontal navigation displays
   - Multi-column layouts work properly
   - Full sidebar displays (horizontal nav)
   ============================================ */
@media (min-width: 1200px) {
    /* Ensure horizontal nav is fully visible */
    .horizontal-nav {
        display: block !important;
    }
    
    /* Hide mobile sidebar on desktop */
    .mobile-sidebar,
    .mobile-menu-overlay {
        display: none !important;
    }
    
    /* Hide hamburger menu on desktop */
    .hr-portal-header .btn-toggle {
        display: none !important;
    }
    
    /* Full multi-column layouts */
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    /* Dashboard welcome section - full width columns */
    .dashboard-welcome-section .col-lg-8 {
        flex: 0 0 auto;
        width: 66.66666667%;
    }
    
    .dashboard-welcome-section .col-lg-4 {
        flex: 0 0 auto;
        width: 33.33333333%;
    }
    
    /* Stat cards - 4 columns on desktop */
    .stat-card-row .col-lg-3 {
        flex: 0 0 auto;
        width: 25%;
    }
    
    /* Activity and Quick Actions - proper column widths */
    .col-lg-8.connectedSortable {
        flex: 0 0 auto;
        width: 66.66666667%;
    }
    
    .col-lg-4.connectedSortable {
        flex: 0 0 auto;
        width: 33.33333333%;
    }
    
    /* Full navbar with all elements visible */
    .hr-portal-header .search-bar {
        display: block !important;
    }
    
    .navbar-brand-wrapper .navbar-brand-text {
        display: flex !important;
    }
    
    .user-info {
        display: flex !important;
    }
}

/* ============================================
   Tablet Layout (768px - 1199px)
   Requirements: 6.2
   - Sidebar collapses appropriately
   - Grid layouts adjust to fewer columns
   ============================================ */
@media (min-width: 768px) and (max-width: 1199px) {
    /* Hide horizontal nav on tablet, show mobile sidebar */
    .horizontal-nav {
        display: none !important;
    }
    
    .mobile-sidebar,
    .mobile-menu-overlay {
        display: block;
    }
    
    /* Show hamburger menu on tablet */
    .hr-portal-header .btn-toggle {
        display: block !important;
    }
    
    /* Navbar adjustments for tablet */
    .hr-portal-header .navbar {
        padding: 0.5rem 0.75rem;
    }
    
    .navbar-brand-wrapper .navbar-logo {
        width: 36px;
        height: 36px;
    }
    
    .navbar-brand-wrapper .navbar-title {
        font-size: 15px;
    }
    
    /* Hide search bar on tablet */
    .hr-portal-header .search-bar {
        display: none !important;
    }
    
    .nav-action-btn {
        width: 38px;
        height: 38px;
    }
    
    .btn-feedback {
        padding: 6px 12px !important;
        font-size: 13px;
    }
    
    .btn-feedback span {
        display: none;
    }
    
    .user-name {
        max-width: 100px;
    }
    
    /* Grid layouts - 2 columns on tablet */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Stat cards - 2 columns on tablet */
    .row .col-lg-3 {
        flex: 0 0 auto;
        width: 50%;
    }
    
    /* Activity and Quick Actions - stack on tablet */
    .col-lg-8.connectedSortable,
    .col-lg-4.connectedSortable {
        flex: 0 0 auto;
        width: 100%;
    }
    
    /* Dashboard welcome section - stack on tablet */
    .dashboard-welcome-section .col-lg-8,
    .dashboard-welcome-section .col-lg-4 {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .dashboard-welcome-section .col-lg-4 {
        margin-top: 1rem;
    }
}

/* Tablet and below (< 1200px) - shared styles */
@media (max-width: 1199px) {
    .sidebar-wrapper {
        transform: translateX(-100%);
    }
    
    .sidebar-wrapper.show {
        transform: translateX(0);
    }
}

/* ============================================
   Mobile Layout (<768px)
   Requirements: 6.3, 6.4, 6.5
   - Single-column layouts
   - Hamburger menu navigation
   - Touch targets minimum 44px
   ============================================ */
@media (max-width: 767px) {
    /* Card border radius adjustment */
    .card {
        border-radius: var(--hr-radius) !important;
    }
    
    /* Button sizing for mobile */
    .btn {
        padding: 0.625rem 1rem;
        font-size: 14px;
    }
    
    /* Ensure touch targets are at least 44px for accessibility */
    .btn,
    .nav-link,
    .dropdown-item,
    .menu-link,
    .mobile-menu-link,
    .action-btn,
    .form-control,
    .form-select {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Single column layouts for all grids */
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    /* Stat cards - single column on mobile */
    .row .col-sm-6,
    .row .col-lg-3 {
        flex: 0 0 auto;
        width: 100% !important;
    }
    
    /* Activity and Quick Actions - full width */
    .col-lg-8.connectedSortable,
    .col-lg-4.connectedSortable {
        flex: 0 0 auto;
        width: 100% !important;
    }
    
    /* Dashboard welcome section - stack vertically */
    .dashboard-welcome-section .col-lg-8,
    .dashboard-welcome-section .col-lg-4,
    .dashboard-welcome-section .col-md-7,
    .dashboard-welcome-section .col-md-5 {
        flex: 0 0 auto;
        width: 100% !important;
    }
    
    .dashboard-welcome-section .col-lg-4,
    .dashboard-welcome-section .col-md-5 {
        margin-top: 1rem;
    }
    
    /* Navbar mobile adjustments */
    .hr-portal-header .navbar {
        padding: 0.5rem;
        min-height: 56px;
    }
    
    .navbar-brand-wrapper {
        margin-right: 0.5rem;
    }
    
    .navbar-brand-wrapper .navbar-logo {
        width: 32px;
        height: 32px;
    }
    
    .navbar-brand-wrapper .navbar-brand-text {
        display: none;
    }
    
    .nav-action-btn {
        width: 44px;
        height: 44px;
    }
    
    .nav-action-btn i {
        font-size: 22px;
    }
    
    /* Hide calendar and refresh on mobile to save space */
    .hr-portal-header .nav-right-links .nav-item:has(.nav-action-btn[title="Calendar"]),
    .hr-portal-header .nav-right-links .nav-item:has(.nav-action-btn[title="Refresh"]) {
        display: none;
    }
    
    /* Feedback button - icon only on mobile */
    .btn-feedback {
        width: 44px;
        height: 44px;
        padding: 0 !important;
        justify-content: center;
    }
    
    .btn-feedback span {
        display: none;
    }
    
    .btn-feedback i {
        font-size: 20px;
    }
    
    /* User dropdown mobile */
    .user-dropdown-wrapper {
        margin-left: 0.25rem;
    }
    
    .user-dropdown-toggle {
        padding: 2px;
    }
    
    .user-avatar {
        width: 40px;
        height: 40px;
    }
    
    .user-info {
        display: none !important;
    }
    
    /* Dropdown menu full width on mobile */
    .dropdown-user {
        min-width: 280px;
        right: -10px !important;
    }
    
    /* Hamburger menu touch target - 44px minimum */
    .hr-portal-header .btn-toggle a {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Mobile sidebar touch targets */
    .mobile-menu-link,
    .mobile-submenu-link {
        min-height: 44px;
        padding: 12px 14px;
    }
    
    .mobile-sidebar-close {
        width: 44px;
        height: 44px;
    }
    
    /* Welcome section adjustments */
    .welcome-title {
        font-size: 1.25rem;
    }
    
    .welcome-subtitle {
        font-size: 0.875rem;
    }
    
    /* Stat card adjustments */
    .stat-card {
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
    }
    
    /* Services section adjustments */
    .services-section {
        padding: 1rem;
    }
    
    /* Activity card adjustments */
    .activity-card-body,
    .activity-card-header,
    .activity-card-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Quick actions adjustments */
    .quick-actions-card {
        padding: 1rem;
    }
    
    /* Action buttons - ensure 44px touch target */
    .action-btn {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }
    
    /* Table responsive on mobile */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Modal adjustments for mobile */
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-content {
        border-radius: var(--hr-radius);
    }
}

/* ============================================
   Small Mobile (<480px)
   Requirements: 6.3, 6.4, 6.5
   - Extra compact layout
   - Maintained touch targets
   ============================================ */
@media (max-width: 479px) {
    .hr-portal-header .navbar {
        padding: 0.375rem;
        gap: 0.5rem !important;
    }
    
    .nav-right-links {
        gap: 0.25rem !important;
    }
    
    .navbar-brand-wrapper .navbar-logo {
        width: 28px;
        height: 28px;
    }
    
    /* Maintain 44px touch targets even on small screens */
    .nav-action-btn {
        width: 44px;
        height: 44px;
    }
    
    .btn-feedback {
        width: 44px;
        height: 44px;
    }
    
    .user-avatar {
        width: 36px;
        height: 36px;
    }
    
    /* Hamburger menu - maintain touch target */
    .hr-portal-header .btn-toggle a {
        width: 44px;
        height: 44px;
    }
    
    /* Stat cards - compact but readable */
    .stat-card {
        padding: 0.875rem;
    }
    
    .stat-label {
        font-size: 0.6875rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .stat-icon {
        width: 36px;
        height: 36px;
    }
    
    /* Service cards - compact */
    .service-card-header,
    .service-card-body,
    .service-card-footer {
        padding: 0.875rem 1rem;
    }
    
    .service-icon-wrapper {
        width: 40px;
        height: 40px;
    }
    
    .service-name {
        font-size: 0.9375rem;
    }
    
    .service-description {
        font-size: 0.75rem;
    }
    
    /* Welcome section - compact */
    .welcome-title {
        font-size: 1.125rem;
    }
    
    .welcome-subtitle {
        font-size: 0.8125rem;
    }
    
    /* Activity items - maintain touch targets */
    .activity-item {
        padding: 0.875rem 0;
    }
    
    .activity-item-icon {
        width: 36px;
        height: 36px;
        margin-right: 0.75rem;
    }
    
    .activity-item-title {
        font-size: 0.8125rem;
    }
    
    .activity-item-desc {
        font-size: 0.75rem;
    }
    
    /* Quick action buttons - maintain 44px touch target */
    .action-btn {
        min-height: 44px;
        padding: 0.625rem 0.875rem;
    }
    
    .action-btn-icon {
        width: 32px;
        height: 32px;
        margin-right: 0.75rem;
    }
    
    .action-btn-text {
        font-size: 0.8125rem;
    }
    
    /* Workspace card - compact */
    .workspace-card-header,
    .workspace-card-body {
        padding: 0.875rem 1rem;
    }
    
    .active-seat-icon {
        width: 40px;
        height: 40px;
    }
    
    .active-seat-name {
        font-size: 0.875rem;
    }
    
    .active-seat-dept,
    .active-seat-section {
        font-size: 0.75rem;
    }
}

/* ============================================
   Dashboard Styles - HR Portal
   Requirements: 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 5.1, 5.3, 5.4, 5.6
   ============================================ */

/* Dashboard Welcome Section */
.dashboard-welcome-section {
    padding: 1.5rem 0;
}

.welcome-content {
    padding: 1rem 0;
}

.welcome-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--hr-text-primary);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.welcome-subtitle {
    font-size: 1rem;
    color: var(--hr-text-secondary);
    margin: 0;
}

/* Workspace Card */
.workspace-card {
    background-color: var(--hr-bg-white);
    border-radius: var(--hr-radius-lg);
    box-shadow: var(--hr-shadow-md);
    border: 1px solid var(--hr-border-light);
    overflow: hidden;
}

.workspace-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--hr-border-light);
}

.workspace-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--hr-text-primary);
    margin: 0;
}

.workspace-icon {
    width: 36px;
    height: 36px;
    background-color: var(--hr-primary);
    border-radius: var(--hr-radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.workspace-icon i {
    color: var(--hr-text-white) !important;
    font-size: 1rem;
}

.workspace-card-body {
    padding: 1.25rem;
}

.active-seat-info {
    background-color: var(--hr-bg-page);
    border-radius: var(--hr-radius);
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--hr-border-light);
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--hr-text-secondary);
    font-size: 0.875rem;
}

.loading-icon {
    width: 40px;
    height: 40px;
    background-color: var(--hr-primary);
    border-radius: var(--hr-radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-icon i {
    color: var(--hr-text-white) !important;
    font-size: 1rem;
}

.active-seat-display {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.active-seat-icon {
    width: 48px;
    height: 48px;
    background-color: var(--hr-success);
    border-radius: var(--hr-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.active-seat-icon i {
    color: var(--hr-text-white) !important;
    font-size: 1.25rem;
}

.active-seat-details {
    flex: 1;
    min-width: 0;
}

.active-seat-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--hr-text-primary);
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.active-seat-dept,
.active-seat-section {
    font-size: 0.8rem;
    color: var(--hr-text-secondary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.no-seat-display {
    text-align: center;
}

.no-seat-icon {
    width: 48px;
    height: 48px;
    background-color: var(--hr-border);
    border-radius: var(--hr-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
}

.no-seat-icon i {
    color: var(--hr-text-muted) !important;
    font-size: 1.25rem;
}

.no-seat-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--hr-text-secondary);
    margin: 0 0 0.25rem 0;
}

.no-seat-text {
    font-size: 0.8rem;
    color: var(--hr-text-muted);
    margin: 0;
}

.seat-selector-wrapper {
    margin-top: 0.5rem;
}

.seat-selector-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--hr-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.seat-selector {
    border-radius: var(--hr-radius) !important;
    border: 1px solid var(--hr-border) !important;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
}

.seat-selector:focus {
    border-color: var(--hr-primary) !important;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1) !important;
}

/* Stat Cards - Flat Design */
.stat-card {
    background-color: var(--hr-bg-white);
    border-radius: var(--hr-radius-lg);
    padding: 1.25rem;
    box-shadow: var(--hr-shadow);
    border: 1px solid var(--hr-border-light);
    transition: all 0.2s ease;
    height: 100%;
}

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

.stat-card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--hr-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.5rem 0;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--hr-text-primary);
    margin: 0;
    line-height: 1;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--hr-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 1.25rem;
    color: var(--hr-text-white) !important;
}

.stat-icon-primary {
    background-color: var(--hr-primary);
}

.stat-icon-warning {
    background-color: var(--hr-warning);
}

.stat-icon-info {
    background-color: var(--hr-info);
}

.stat-icon-danger {
    background-color: var(--hr-error);
}

.stat-icon-success {
    background-color: var(--hr-success);
}

/* Services Section */
.services-section {
    background-color: var(--hr-bg-white);
    border-radius: var(--hr-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--hr-shadow);
    border: 1px solid var(--hr-border-light);
}

.services-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.services-title-wrapper {
    flex: 1;
    min-width: 200px;
}

.services-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--hr-text-primary);
    margin: 0 0 0.25rem 0;
}

.services-subtitle {
    font-size: 0.875rem;
    color: var(--hr-text-secondary);
    margin: 0;
}

.services-search {
    flex-shrink: 0;
}

.search-input-wrapper {
    position: relative;
    width: 280px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--hr-text-muted);
    font-size: 0.875rem;
}

.search-input {
    padding-left: 36px !important;
    border-radius: var(--hr-radius) !important;
    border: 1px solid var(--hr-border) !important;
    font-size: 0.875rem;
}

.search-input:focus {
    border-color: var(--hr-primary) !important;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1) !important;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

/* Service Card */
.service-card {
    background-color: var(--hr-bg-white);
    border-radius: var(--hr-radius-lg);
    border: 1px solid var(--hr-border);
    overflow: hidden;
    transition: all 0.2s ease;
}

.service-card:hover {
    border-color: var(--hr-primary);
    box-shadow: var(--hr-shadow-md);
}

.service-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--hr-border-light);
}

.service-icon-wrapper {
    width: 44px;
    height: 44px;
    background-color: var(--hr-primary);
    border-radius: var(--hr-radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon-wrapper.service-icon-green {
    background-color: var(--hr-success);
}

.service-icon-wrapper.service-icon-purple {
    background-color: #8B5CF6;
}

.service-icon-wrapper.service-icon-orange {
    background-color: var(--hr-warning);
}

.service-initials {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--hr-text-white);
}

/* Status Badges */
.status-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.status-active {
    background-color: var(--hr-primary-light);
    color: var(--hr-primary);
}

.status-maintenance {
    background-color: var(--hr-warning-light);
    color: #B45309;
}

.service-card-body {
    padding: 1rem 1.25rem;
}

.service-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--hr-text-primary);
    margin: 0 0 0.5rem 0;
}

.service-description {
    font-size: 0.8125rem;
    color: var(--hr-text-secondary);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--hr-border-light);
    background-color: var(--hr-bg-page);
}

.pending-count {
    font-size: 0.75rem;
    color: var(--hr-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.pending-count strong {
    color: var(--hr-text-primary);
}

.btn-access {
    background-color: var(--hr-primary) !important;
    color: var(--hr-text-white) !important;
    border: none !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    border-radius: var(--hr-radius) !important;
    transition: all 0.2s ease;
}

.btn-access:hover {
    background-color: var(--hr-primary-dark) !important;
    color: var(--hr-text-white) !important;
}

/* Activity Card */
.activity-card {
    background-color: var(--hr-bg-white);
    border-radius: var(--hr-radius-lg);
    box-shadow: var(--hr-shadow);
    border: 1px solid var(--hr-border-light);
    overflow: hidden;
}

.activity-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    border-bottom: 1px solid var(--hr-border-light);
}

.activity-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--hr-text-primary);
    margin: 0;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background-color: var(--hr-primary);
    border-radius: var(--hr-radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-icon i {
    color: var(--hr-text-white) !important;
    font-size: 1rem;
}

.activity-card-body {
    padding: 0.5rem 1.25rem;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--hr-border-light);
}

.activity-item-last {
    border-bottom: none;
}

.activity-item-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--hr-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.activity-item-icon i {
    color: var(--hr-text-white) !important;
    font-size: 0.9rem;
}

.activity-icon-blue {
    background-color: var(--hr-primary);
}

.activity-icon-green {
    background-color: var(--hr-success);
}

.activity-icon-purple {
    background-color: #8B5CF6;
}

.activity-item-content {
    flex: 1;
    min-width: 0;
}

.activity-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--hr-text-primary);
    margin: 0 0 0.25rem 0;
}

.activity-item-desc {
    font-size: 0.8125rem;
    color: var(--hr-text-secondary);
    margin: 0;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--hr-text-muted);
    flex-shrink: 0;
    margin-left: 1rem;
}

.activity-card-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--hr-border-light);
    text-align: center;
}

.view-all-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--hr-primary);
    text-decoration: none;
}

.view-all-link:hover {
    color: var(--hr-primary-dark);
    text-decoration: underline;
}

/* Quick Actions Card */
.quick-actions-card {
    background-color: var(--hr-bg-white);
    border-radius: var(--hr-radius-lg);
    box-shadow: var(--hr-shadow);
    border: 1px solid var(--hr-border-light);
    padding: 1.25rem;
}

.quick-actions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.quick-actions-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--hr-text-primary);
    margin: 0;
}

.quick-actions-icon {
    width: 40px;
    height: 40px;
    background-color: var(--hr-warning);
    border-radius: var(--hr-radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-actions-icon i {
    color: var(--hr-text-white) !important;
    font-size: 1rem;
}

.quick-actions-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.action-btn {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: var(--hr-radius-md);
    text-decoration: none;
    color: var(--hr-text-white);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--hr-shadow-md);
    color: var(--hr-text-white);
    text-decoration: none;
}

.action-btn-blue {
    background-color: var(--hr-primary);
}

.action-btn-blue:hover {
    background-color: var(--hr-primary-dark);
}

.action-btn-green {
    background-color: var(--hr-success);
}

.action-btn-green:hover {
    background-color: #0D9668;
}

.action-btn-purple {
    background-color: #8B5CF6;
}

.action-btn-purple:hover {
    background-color: #7C3AED;
}

.action-btn-orange {
    background-color: var(--hr-warning);
}

.action-btn-orange:hover {
    background-color: #D97706;
}

.action-btn-icon {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: var(--hr-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.875rem;
    flex-shrink: 0;
}

.action-btn-icon i {
    color: var(--hr-text-white) !important;
    font-size: 1rem;
}

.action-btn-text {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Modal Header Primary */
.modal-header-primary {
    background-color: var(--hr-primary);
    color: var(--hr-text-white);
    border-radius: var(--hr-radius-lg) var(--hr-radius-lg) 0 0;
}

.modal-header-primary .modal-title {
    color: var(--hr-text-white);
}

.modal-header-primary .close {
    color: var(--hr-text-white);
    opacity: 0.8;
}

.modal-header-primary .close:hover {
    opacity: 1;
}

/* Dashboard Responsive Styles - Requirements 6.1, 6.2, 6.3 */
@media (max-width: 991px) {
    .dashboard-welcome-section {
        padding: 1rem 0;
    }
    
    .welcome-title {
        font-size: 1.5rem;
    }
    
    .workspace-card {
        margin-top: 1rem;
    }
    
    .services-header {
        flex-direction: column;
    }
    
    .search-input-wrapper {
        width: 100%;
    }
    
    /* Ensure grid adjusts on tablet */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .welcome-title {
        font-size: 1.25rem;
    }
    
    .welcome-subtitle {
        font-size: 0.875rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
    }
    
    .services-section {
        padding: 1rem;
    }
    
    /* Single column on mobile */
    .services-grid {
        grid-template-columns: 1fr !important;
    }
    
    .activity-card-body,
    .activity-card-header,
    .activity-card-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .quick-actions-card {
        padding: 1rem;
    }
}


/* ============================================
   Task 10: Consistent Styling Across All Pages
   Requirements: 5.1, 5.2, 5.3, 5.4, 5.5, 7.1, 7.6
   ============================================ */

/* ============================================
   10.1 Card Styling - Global Overrides
   Requirements: 5.2, 5.3, 5.4
   ============================================ */

/* Override mms_style.css card background */
.card,
.card.mb-3,
.card.mb-4,
.card.h-100,
body .card {
    background-color: var(--hr-bg-white) !important;
    border: 1px solid var(--hr-border-light) !important;
    border-radius: var(--hr-radius-lg) !important;
    box-shadow: var(--hr-shadow) !important;
    overflow: visible;
}

/* Card Header Styling */
.card-header,
.card .card-header,
body .card .card-header {
    background-color: var(--hr-bg-white) !important;
    border-bottom: 1px solid var(--hr-border) !important;
    border-radius: var(--hr-radius-lg) var(--hr-radius-lg) 0 0 !important;
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: var(--hr-text-primary);
}

/* Card Header with Primary Color */
.card-header.bg-primary,
.card-header.bg-title,
.card .card-header.bg-primary {
    background-color: var(--hr-primary) !important;
    color: var(--hr-text-white) !important;
    border-bottom: none !important;
}

.card-header.bg-primary h5,
.card-header.bg-primary h6,
.card-header.bg-primary .card-title,
.card-header.bg-title h5,
.card-header.bg-title h6 {
    color: var(--hr-text-white) !important;
}


/* Card Body Styling */
.card-body,
.card .card-body {
    padding: 1.25rem;
    background-color: var(--hr-bg-white);
}

/* Card Footer Styling */
.card-footer,
.card .card-footer {
    background-color: var(--hr-bg-page) !important;
    border-top: 1px solid var(--hr-border) !important;
    border-radius: 0 0 var(--hr-radius-lg) var(--hr-radius-lg) !important;
    padding: 1rem 1.25rem;
}

/* Card Title Styling */
.card-title,
.card .card-title {
    color: var(--hr-text-primary);
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

/* Card Subtitle */
.card-subtitle {
    color: var(--hr-text-secondary);
    font-size: 0.875rem;
}

/* Card Text */
.card-text {
    color: var(--hr-text-secondary);
}

/* Override profile card gradient with flat design */
.profile-card,
body .profile-card {
    background-color: var(--hr-primary-light) !important;
    background-image: none !important;
}

.profile-card-text {
    color: var(--hr-text-primary) !important;
}

.profile-textbox {
    background-color: var(--hr-bg-page) !important;
}

.profile-icon {
    background: var(--hr-primary) !important;
    background-image: none !important;
    color: var(--hr-text-white) !important;
}


/* List Card Override */
.list_card,
body .list_card {
    background-color: var(--hr-bg-page) !important;
}

/* Header List Override - Flat Design */
.hdrlist,
body .hdrlist {
    background: var(--hr-primary) !important;
    background-image: none !important;
    color: var(--hr-text-white) !important;
    font-weight: 600;
    border-radius: var(--hr-radius) var(--hr-radius) 0 0;
}

/* Background Title Override - Flat Design */
.bg-title,
body .bg-title {
    background: var(--hr-primary) !important;
    background-image: none !important;
    color: var(--hr-text-white) !important;
}

/* Dashboard Cards Override */
.bg-tm,
.bg-ta,
.bg-pa,
.bg-um {
    background: var(--hr-primary) !important;
    background-image: none !important;
}

.bg-inverse-icon-tm,
.bg-inverse-icon-ta,
.bg-inverse-icon-pa,
.bg-inverse-icon-um {
    background: var(--hr-primary-dark) !important;
    border: none !important;
}

/* Card Hover Effect */
.card:hover {
    box-shadow: var(--hr-shadow-md) !important;
}

/* Remove card overflow visible for dashboard cards */
.card .dashboard-title-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover .dashboard-title-card {
    transform: scale(1.1);
    box-shadow: var(--hr-shadow-lg);
}


/* ============================================
   10.2 Button Styling - Global Overrides
   Requirements: 5.1, 5.3
   ============================================ */

/* Primary Button - Flat Design */
.btn-primary,
body .btn-primary,
.btn.btn-primary {
    --bs-btn-bg: var(--hr-primary) !important;
    --bs-btn-border-color: var(--hr-primary) !important;
    --bs-btn-hover-bg: var(--hr-primary-dark) !important;
    --bs-btn-hover-border-color: var(--hr-primary-dark) !important;
    --bs-btn-active-bg: var(--hr-primary-dark) !important;
    --bs-btn-active-border-color: var(--hr-primary-dark) !important;
    --bs-btn-disabled-bg: var(--hr-primary) !important;
    --bs-btn-disabled-border-color: var(--hr-primary) !important;
    background-color: var(--hr-primary) !important;
    border-color: var(--hr-primary) !important;
    color: var(--hr-text-white) !important;
    border-radius: var(--hr-radius) !important;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary:hover,
body .btn-primary:hover {
    background-color: var(--hr-primary-dark) !important;
    border-color: var(--hr-primary-dark) !important;
    color: var(--hr-text-white) !important;
    transform: translateY(-1px);
    box-shadow: var(--hr-shadow-md);
}

.btn-primary:focus,
.btn-primary:active,
body .btn-primary:focus,
body .btn-primary:active {
    background-color: var(--hr-primary-dark) !important;
    border-color: var(--hr-primary-dark) !important;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.25) !important;
}


/* Secondary Button Override */
.btn-secondary,
body .btn-secondary,
.btn.btn-secondary {
    --bs-btn-color: var(--hr-text-primary) !important;
    --bs-btn-bg: var(--hr-bg-page) !important;
    --bs-btn-border-color: var(--hr-border) !important;
    --bs-btn-hover-color: var(--hr-text-primary) !important;
    --bs-btn-hover-bg: var(--hr-bg-hover) !important;
    --bs-btn-hover-border-color: var(--hr-border) !important;
    --bs-btn-active-color: var(--hr-text-primary) !important;
    --bs-btn-active-bg: var(--hr-bg-hover) !important;
    --bs-btn-active-border-color: var(--hr-border) !important;
    background-color: var(--hr-bg-page) !important;
    border-color: var(--hr-border) !important;
    color: var(--hr-text-primary) !important;
    border-radius: var(--hr-radius) !important;
}

.btn-secondary:hover,
body .btn-secondary:hover {
    background-color: var(--hr-bg-hover) !important;
    border-color: var(--hr-border) !important;
    color: var(--hr-text-primary) !important;
}

/* Success Button */
.btn-success,
body .btn-success {
    --bs-btn-bg: var(--hr-success) !important;
    --bs-btn-border-color: var(--hr-success) !important;
    --bs-btn-hover-bg: #0D9668 !important;
    --bs-btn-hover-border-color: #0D9668 !important;
    background-color: var(--hr-success) !important;
    border-color: var(--hr-success) !important;
    border-radius: var(--hr-radius) !important;
}

.btn-success:hover {
    background-color: #0D9668 !important;
    border-color: #0D9668 !important;
}

/* Danger Button */
.btn-danger,
body .btn-danger {
    --bs-btn-bg: var(--hr-error) !important;
    --bs-btn-border-color: var(--hr-error) !important;
    --bs-btn-hover-bg: #DC2626 !important;
    --bs-btn-hover-border-color: #DC2626 !important;
    background-color: var(--hr-error) !important;
    border-color: var(--hr-error) !important;
    border-radius: var(--hr-radius) !important;
}

.btn-danger:hover {
    background-color: #DC2626 !important;
    border-color: #DC2626 !important;
}


/* Warning Button */
.btn-warning,
body .btn-warning {
    --bs-btn-bg: var(--hr-warning) !important;
    --bs-btn-border-color: var(--hr-warning) !important;
    --bs-btn-hover-bg: #D97706 !important;
    --bs-btn-hover-border-color: #D97706 !important;
    background-color: var(--hr-warning) !important;
    border-color: var(--hr-warning) !important;
    color: var(--hr-text-white) !important;
    border-radius: var(--hr-radius) !important;
}

.btn-warning:hover {
    background-color: #D97706 !important;
    border-color: #D97706 !important;
}

/* Info Button */
.btn-info,
body .btn-info {
    --bs-btn-bg: var(--hr-info) !important;
    --bs-btn-border-color: var(--hr-info) !important;
    --bs-btn-hover-bg: #2563EB !important;
    --bs-btn-hover-border-color: #2563EB !important;
    background-color: var(--hr-info) !important;
    border-color: var(--hr-info) !important;
    color: var(--hr-text-white) !important;
    border-radius: var(--hr-radius) !important;
}

.btn-info:hover {
    background-color: #2563EB !important;
    border-color: #2563EB !important;
}

/* Outline Buttons */
.btn-outline-primary {
    --bs-btn-color: var(--hr-primary) !important;
    --bs-btn-border-color: var(--hr-primary) !important;
    --bs-btn-hover-bg: var(--hr-primary) !important;
    --bs-btn-hover-border-color: var(--hr-primary) !important;
    --bs-btn-hover-color: var(--hr-text-white) !important;
    border-radius: var(--hr-radius) !important;
}

.btn-outline-secondary {
    --bs-btn-color: var(--hr-text-secondary) !important;
    --bs-btn-border-color: var(--hr-border) !important;
    --bs-btn-hover-bg: var(--hr-bg-hover) !important;
    --bs-btn-hover-border-color: var(--hr-border) !important;
    --bs-btn-hover-color: var(--hr-text-primary) !important;
    border-radius: var(--hr-radius) !important;
}


/* Button Link Meeting Override */
.btn-link-meeting,
body .btn-link-meeting {
    background-color: var(--hr-info) !important;
    color: var(--hr-text-white) !important;
    border: none !important;
    border-radius: var(--hr-radius) !important;
}

.btn-link-meeting:hover {
    background-color: #2563EB !important;
    color: var(--hr-text-white) !important;
}

/* Gradient Button Override - Flat Design */
.btn-grd-kmeet,
body .btn-grd-kmeet {
    background: var(--hr-primary) !important;
    background-image: none !important;
    color: var(--hr-text-white) !important;
    border-radius: var(--hr-radius) !important;
}

.btn-grd-kmeet:hover {
    background: var(--hr-primary-dark) !important;
}

/* Button Size Consistency */
.btn {
    border-radius: var(--hr-radius) !important;
    font-weight: 500;
    font-size: 14px;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    z-index: auto !important;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 13px;
    border-radius: var(--hr-radius-sm) !important;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 16px;
    border-radius: var(--hr-radius-md) !important;
}

/* Button Group */
.btn-group .btn {
    border-radius: 0 !important;
}

.btn-group .btn:first-child {
    border-radius: var(--hr-radius) 0 0 var(--hr-radius) !important;
}

.btn-group .btn:last-child {
    border-radius: 0 var(--hr-radius) var(--hr-radius) 0 !important;
}


/* ============================================
   10.3 Form Styling - Global Overrides
   Requirements: 5.5, 7.1
   ============================================ */

/* Form Control Styling */
.form-control,
body .form-control,
input.form-control,
textarea.form-control {
    border-radius: var(--hr-radius) !important;
    border: 1px solid var(--hr-border) !important;
    color: var(--hr-text-primary) !important;
    font-size: 14px;
    padding: 0.625rem 0.875rem;
    background-color: var(--hr-bg-white) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
body .form-control:focus {
    border-color: var(--hr-primary) !important;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1) !important;
    outline: none;
}

.form-control::placeholder {
    color: var(--hr-text-muted) !important;
    opacity: 1 !important;
}

.form-control:disabled,
.form-control[readonly] {
    background-color: var(--hr-bg-page) !important;
    opacity: 0.7;
}

/* Form Label Styling */
.form-label,
body .form-label,
label.form-label {
    color: var(--hr-text-primary) !important;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 0.5rem;
}

/* Required Field Indicator */
label.required::after {
    content: " *";
    color: var(--hr-error);
}


/* Form Select Styling */
.form-select,
body .form-select,
select.form-select {
    border-radius: var(--hr-radius) !important;
    border: 1px solid var(--hr-border) !important;
    color: var(--hr-text-primary) !important;
    font-size: 14px;
    padding: 0.625rem 2.25rem 0.625rem 0.875rem;
    background-color: var(--hr-bg-white) !important;
}

.form-select:focus {
    border-color: var(--hr-primary) !important;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1) !important;
}

/* Select2 Override */
.select2-container,
body .select2-container {
    border-radius: var(--hr-radius) !important;
    border: 1px solid var(--hr-border) !important;
    background-color: var(--hr-bg-white) !important;
}

.select2-container--default .select2-selection--single {
    border: none !important;
    background-color: transparent !important;
    height: auto !important;
    padding: 0.25rem 0;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--hr-text-primary) !important;
    line-height: 1.5;
    padding-left: 0;
}

.select2-container--default .select2-selection--multiple {
    border: none !important;
    background-color: transparent !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: var(--hr-primary-light) !important;
    border: 1px solid var(--hr-primary) !important;
    color: var(--hr-primary) !important;
    border-radius: var(--hr-radius-sm) !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid var(--hr-border) !important;
    background: var(--hr-bg-white) !important;
    border-radius: var(--hr-radius-sm) !important;
}

.select2-dropdown {
    border: 1px solid var(--hr-border) !important;
    border-radius: var(--hr-radius) !important;
    box-shadow: var(--hr-shadow-lg) !important;
}


/* Form Validation Styling */
.is-invalid,
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--hr-error) !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15) !important;
}

.is-valid,
.form-control.is-valid,
.form-select.is-valid {
    border-color: var(--hr-success) !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15) !important;
}

.invalid-feedback,
.text-danger,
.field-error {
    color: var(--hr-error) !important;
    font-size: 0.8125rem !important;
    margin-top: 0.25rem;
}

.valid-feedback {
    color: var(--hr-success) !important;
    font-size: 0.8125rem !important;
    margin-top: 0.25rem;
}

/* Select2 Validation */
.select2-selection.is-invalid,
.select2-container.is-invalid {
    border-color: var(--hr-error) !important;
}

/* Form Check Styling */
.form-check {
    padding-left: 1.75em !important;
}

.form-check-input {
    border-color: var(--hr-border);
    border-radius: 4px;
}

.form-check-input:checked {
    background-color: var(--hr-primary);
    border-color: var(--hr-primary);
}

.form-check-input:focus {
    border-color: var(--hr-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-check-label {
    color: var(--hr-text-primary);
}

/* Input Group Styling */
.input-group .form-control {
    border-radius: 0 !important;
}

.input-group .form-control:first-child,
.input-group > :first-child:not(.dropdown-toggle):not(.dropdown-menu) {
    border-radius: var(--hr-radius) 0 0 var(--hr-radius) !important;
}

.input-group .form-control:last-child,
.input-group > :last-child:not(.dropdown-toggle):not(.dropdown-menu) {
    border-radius: 0 var(--hr-radius) var(--hr-radius) 0 !important;
}

.input-group-text {
    background-color: var(--hr-bg-page);
    border: 1px solid var(--hr-border);
    color: var(--hr-text-secondary);
}


/* ============================================
   10.4 DataTable Styling - Global Overrides
   Requirements: 5.1, 7.6
   ============================================ */

/* DataTable Container */
.dataTables_wrapper {
    font-family: var(--hr-font-family);
}

/* DataTable Header */
table.dataTable thead th,
table.dataTable thead td,
body table.dataTable thead th {
    background-color: var(--hr-primary) !important;
    color: var(--hr-text-white) !important;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 15px;
    border-bottom: none !important;
}

table.dataTable thead th:first-child {
    border-radius: var(--hr-radius) 0 0 0;
}

table.dataTable thead th:last-child {
    border-radius: 0 var(--hr-radius) 0 0;
}

/* DataTable Body Rows */
table.dataTable tbody tr.odd,
body table.dataTable tbody tr.odd {
    background-color: var(--hr-bg-white) !important;
}

table.dataTable tbody tr.even,
body table.dataTable tbody tr.even {
    background-color: var(--hr-bg-page) !important;
}

table.dataTable tbody tr:hover,
body table.dataTable tbody tr:hover {
    background-color: var(--hr-primary-light) !important;
}

/* DataTable Cells */
table.dataTable tbody td {
    padding: 12px 15px;
    color: var(--hr-text-primary);
    font-size: 14px;
    border-bottom: 1px solid var(--hr-border-light);
    vertical-align: middle;
}

/* DataTable Sorting Icons */
table.dataTable thead .sorting:before,
table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:before,
table.dataTable thead .sorting_desc:after {
    color: var(--hr-text-white) !important;
    opacity: 0.5;
}

table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_desc:after {
    opacity: 1;
}


/* DataTable Length and Filter */
.dataTables_length label,
.dataTables_filter label {
    color: var(--hr-text-primary);
    font-size: 14px;
}

.dataTables_length select,
.dataTables_filter input {
    border: 1px solid var(--hr-border) !important;
    border-radius: var(--hr-radius-sm) !important;
    padding: 0.375rem 0.75rem;
    color: var(--hr-text-primary);
    background-color: var(--hr-bg-white);
}

.dataTables_filter input:focus {
    border-color: var(--hr-primary) !important;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1) !important;
    outline: none;
}

/* DataTable Info and Pagination */
.dataTables_info {
    color: var(--hr-text-secondary);
    font-size: 14px;
}

.dataTables_paginate .paginate_button {
    border: 1px solid var(--hr-border) !important;
    border-radius: var(--hr-radius-sm) !important;
    color: var(--hr-text-primary) !important;
    background: var(--hr-bg-white) !important;
    margin: 0 2px;
    padding: 0.375rem 0.75rem !important;
}

.dataTables_paginate .paginate_button:hover {
    background: var(--hr-primary-light) !important;
    border-color: var(--hr-primary) !important;
    color: var(--hr-primary) !important;
}

.dataTables_paginate .paginate_button.current,
.dataTables_paginate .paginate_button.current:hover {
    background: var(--hr-primary) !important;
    border-color: var(--hr-primary) !important;
    color: var(--hr-text-white) !important;
}

.dataTables_paginate .paginate_button.disabled,
.dataTables_paginate .paginate_button.disabled:hover {
    background: var(--hr-bg-page) !important;
    border-color: var(--hr-border) !important;
    color: var(--hr-text-muted) !important;
    cursor: not-allowed;
}

/* DataTable Empty Message */
.dataTables_empty {
    color: var(--hr-text-secondary);
    font-style: italic;
    padding: 2rem !important;
}

/* DataTable Processing */
.dataTables_processing {
    background-color: var(--hr-bg-white) !important;
    border: 1px solid var(--hr-border) !important;
    border-radius: var(--hr-radius) !important;
    box-shadow: var(--hr-shadow-md) !important;
    color: var(--hr-text-primary);
}


/* DataTable Responsive */
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:before {
    background-color: var(--hr-primary) !important;
    border: none !important;
}

/* DataTable Buttons */
.dt-buttons .btn {
    border-radius: var(--hr-radius-sm) !important;
    margin-right: 0.25rem;
}

/* Table General Styling */
.table {
    color: var(--hr-text-primary);
}

.table > thead {
    background-color: var(--hr-primary);
    color: var(--hr-text-white);
}

.table > thead th {
    background-color: var(--hr-primary) !important;
    color: var(--hr-text-white) !important;
    font-weight: 600;
    border-bottom: none;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: var(--hr-bg-page);
}

.table-hover > tbody > tr:hover {
    background-color: var(--hr-primary-light);
}

.table-bordered {
    border: 1px solid var(--hr-border);
}

.table-bordered th,
.table-bordered td {
    border: 1px solid var(--hr-border);
}

/* Timeline Styling Override */
.timeline {
    border-left: 2px solid var(--hr-primary);
}

.timeline-item::before {
    background-color: var(--hr-primary);
    box-shadow: 0 0 0 2px var(--hr-primary);
}

.timeline-content {
    background-color: var(--hr-bg-white);
    border-left: 4px solid var(--hr-primary);
    box-shadow: var(--hr-shadow);
}

.timeline-content h6 {
    color: var(--hr-primary);
}

.timeline-item.first .timeline-content {
    border-left: 4px solid var(--hr-success);
}

.timeline-item.first::before {
    background-color: var(--hr-success) !important;
    box-shadow: 0 0 0 2px var(--hr-success);
}


/* ============================================
   Dashboard Styling
   Requirements: 2.1, 2.2, 2.3, 2.4, 2.5, 2.6
   ============================================ */

/* Content Header */
.content-header {
    background-color: var(--hr-bg-page);
    padding: 2rem 0;
    border-bottom: 1px solid var(--hr-border-light);
}

/* Dashboard Welcome Section */
.dashboard-welcome-section {
    margin-bottom: 1rem;
}

.welcome-content {
    padding: 0;
}

.welcome-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--hr-text-primary);
    margin-bottom: 0.5rem;
}

.welcome-subtitle {
    font-size: 16px;
    color: var(--hr-text-secondary);
    margin-bottom: 0;
}

/* Workspace Card */
.workspace-card {
    background-color: var(--hr-bg-white);
    border: 1px solid var(--hr-border);
    border-radius: var(--hr-radius-lg);
    box-shadow: var(--hr-shadow);
    overflow: hidden;
}

.workspace-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background-color: var(--hr-bg-page);
    border-bottom: 1px solid var(--hr-border);
}

.workspace-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--hr-text-primary);
    margin-bottom: 0;
}

.workspace-icon {
    font-size: 20px;
    color: var(--hr-primary);
}

.workspace-card-body {
    padding: 1.25rem;
}

.active-seat-info {
    margin-bottom: 1rem;
}

.loading-state {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--hr-text-secondary);
    font-size: 14px;
}

.loading-icon {
    font-size: 18px;
    color: var(--hr-primary);
}

.active-seat-display {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem;
    background-color: var(--hr-primary-light);
    border-radius: var(--hr-radius);
    margin-bottom: 1rem;
}

.active-seat-icon {
    font-size: 24px;
    color: var(--hr-primary);
}

.active-seat-details {
    flex: 1;
}

.active-seat-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--hr-primary);
    margin-bottom: 0.25rem;
}

.active-seat-dept {
    font-size: 13px;
    color: var(--hr-text-secondary);
    margin-bottom: 0.25rem;
}

.active-seat-section {
    font-size: 12px;
    color: var(--hr-text-muted);
    margin-bottom: 0;
}

.no-seat-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
    background-color: var(--hr-bg-page);
    border-radius: var(--hr-radius);
    margin-bottom: 1rem;
}

.no-seat-icon {
    font-size: 32px;
    color: var(--hr-text-muted);
    margin-bottom: 0.5rem;
}

.no-seat-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--hr-text-primary);
    margin-bottom: 0.25rem;
}

.no-seat-text {
    font-size: 12px;
    color: var(--hr-text-secondary);
    margin-bottom: 0;
}

.seat-selector-wrapper {
    margin-top: 1rem;
}

.seat-selector-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--hr-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.seat-selector {
    width: 100%;
}

/* Stat Cards */
.stat-card {
    background-color: var(--hr-bg-white);
    border: 1px solid var(--hr-border);
    border-radius: var(--hr-radius-lg);
    box-shadow: var(--hr-shadow);
    padding: 1.5rem;
    transition: all 0.2s ease;
}

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

.stat-card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--hr-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--hr-text-primary);
    margin-bottom: 0;
}

.stat-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--hr-radius-lg);
    font-size: 28px;
    flex-shrink: 0;
}

.stat-icon-primary {
    background-color: var(--hr-primary-light);
    color: var(--hr-primary);
}

.stat-icon-warning {
    background-color: #FEF3C7;
    color: var(--hr-warning);
}

.stat-icon-info {
    background-color: var(--hr-info-light);
    color: var(--hr-info);
}

.stat-icon-danger {
    background-color: var(--hr-error-light);
    color: var(--hr-error);
}

/* Services Section */
.services-section {
    background-color: var(--hr-bg-white);
    border: 1px solid var(--hr-border);
    border-radius: var(--hr-radius-lg);
    box-shadow: var(--hr-shadow);
    padding: 1.5rem;
}

.services-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.services-title-wrapper {
    flex: 1;
    min-width: 200px;
}

.services-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--hr-text-primary);
    margin-bottom: 0.25rem;
}

.services-subtitle {
    font-size: 13px;
    color: var(--hr-text-secondary);
    margin-bottom: 0;
}

.services-search {
    flex: 0 1 300px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    font-size: 16px;
    color: var(--hr-text-muted);
    pointer-events: none;
}

.search-input {
    padding-left: 36px !important;
    border-radius: var(--hr-radius) !important;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

/* Service Card */
.service-card {
    background-color: var(--hr-bg-white);
    border: 1px solid var(--hr-border);
    border-radius: var(--hr-radius-lg);
    box-shadow: var(--hr-shadow);
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

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

.service-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background-color: var(--hr-bg-page);
    border-bottom: 1px solid var(--hr-border);
}

.service-icon-wrapper {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--hr-radius);
    background-color: var(--hr-primary);
    color: var(--hr-text-white);
    font-weight: 600;
    font-size: 12px;
}

.service-icon-green {
    background-color: var(--hr-success);
}

.service-icon-purple {
    background-color: #8B5CF6;
}

.service-icon-orange {
    background-color: var(--hr-warning);
}

.service-initials {
    font-size: 12px;
    font-weight: 700;
}

.status-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: var(--hr-radius-sm);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background-color: var(--hr-primary-light);
    color: var(--hr-primary);
}

.status-maintenance {
    background-color: #FEF3C7;
    color: #92400E;
}

.service-card-body {
    padding: 1.25rem;
    flex: 1;
}

.service-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--hr-text-primary);
    margin-bottom: 0.5rem;
}

.service-description {
    font-size: 13px;
    color: var(--hr-text-secondary);
    line-height: 1.5;
    margin-bottom: 0;
}

.service-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background-color: var(--hr-bg-page);
    border-top: 1px solid var(--hr-border);
    gap: 1rem;
}

.pending-count {
    font-size: 12px;
    color: var(--hr-text-secondary);
    white-space: nowrap;
}

.pending-count strong {
    color: var(--hr-text-primary);
    font-weight: 600;
}

.btn-access {
    padding: 0.5rem 1rem !important;
    font-size: 12px;
    font-weight: 600;
    background-color: var(--hr-primary) !important;
    color: var(--hr-text-white) !important;
    border: none !important;
    border-radius: var(--hr-radius) !important;
    white-space: nowrap;
}

.btn-access:hover {
    background-color: var(--hr-primary-dark) !important;
}

/* Activity Card */
.activity-card {
    background-color: var(--hr-bg-white);
    border: 1px solid var(--hr-border);
    border-radius: var(--hr-radius-lg);
    box-shadow: var(--hr-shadow);
    overflow: hidden;
}

.activity-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    background-color: var(--hr-bg-page);
    border-bottom: 1px solid var(--hr-border);
}

.activity-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--hr-text-primary);
    margin-bottom: 0;
}

.activity-icon {
    font-size: 20px;
    color: var(--hr-primary);
}

.activity-card-body {
    padding: 1.25rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--hr-border-light);
}

.activity-item-last {
    border-bottom: none;
    padding-bottom: 0;
}

.activity-item-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
    flex-shrink: 0;
}

.activity-icon-blue {
    background-color: var(--hr-info-light);
    color: var(--hr-info);
}

.activity-icon-green {
    background-color: var(--hr-success-light);
    color: var(--hr-success);
}

.activity-icon-purple {
    background-color: #EDE9FE;
    color: #8B5CF6;
}

.activity-item-content {
    flex: 1;
}

.activity-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--hr-text-primary);
    margin-bottom: 0.25rem;
}

.activity-item-desc {
    font-size: 13px;
    color: var(--hr-text-secondary);
    margin-bottom: 0;
}

.activity-time {
    font-size: 12px;
    color: var(--hr-text-muted);
    white-space: nowrap;
}

.activity-card-footer {
    padding: 1rem 1.25rem;
    background-color: var(--hr-bg-page);
    border-top: 1px solid var(--hr-border);
    text-align: center;
}

.view-all-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--hr-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.view-all-link:hover {
    color: var(--hr-primary-dark);
}

/* Quick Actions Card */
.quick-actions-card {
    background-color: var(--hr-bg-white);
    border: 1px solid var(--hr-border);
    border-radius: var(--hr-radius-lg);
    box-shadow: var(--hr-shadow);
    overflow: hidden;
}

.quick-actions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    background-color: var(--hr-bg-page);
    border-bottom: 1px solid var(--hr-border);
}

.quick-actions-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--hr-text-primary);
    margin-bottom: 0;
}

.quick-actions-icon {
    font-size: 20px;
    color: var(--hr-primary);
}

.quick-actions-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.75rem 1rem !important;
    border: none !important;
    border-radius: var(--hr-radius) !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.action-btn-icon {
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn-text {
    flex: 1;
    text-align: left;
}

.action-btn-blue {
    background-color: var(--hr-primary) !important;
    color: var(--hr-text-white) !important;
}

.action-btn-blue:hover {
    background-color: var(--hr-primary-dark) !important;
}

.action-btn-green {
    background-color: var(--hr-success) !important;
    color: var(--hr-text-white) !important;
}

.action-btn-green:hover {
    background-color: #0D9668 !important;
}

.action-btn-purple {
    background-color: #8B5CF6 !important;
    color: var(--hr-text-white) !important;
}

.action-btn-purple:hover {
    background-color: #7C3AED !important;
}

.action-btn-orange {
    background-color: var(--hr-warning) !important;
    color: var(--hr-text-white) !important;
}

.action-btn-orange:hover {
    background-color: #D97706 !important;
}

/* Responsive Dashboard */
@media (max-width: 991px) {
    .services-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .services-search {
        flex: 1;
        width: 100%;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .dashboard-welcome-section .row {
        flex-direction: column-reverse;
    }
}

@media (max-width: 767px) {
    .content-header {
        padding: 1.5rem 0;
    }
    
    .welcome-title {
        font-size: 22px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
}


/* ============================================
   Override Old Dashboard Styles
   ============================================ */

/* Remove old gradient backgrounds */
.content-header {
    background: var(--hr-bg-page) !important;
}

.content {
    background-color: var(--hr-bg-page) !important;
}

/* Override any old card styles */
.card {
    background-color: var(--hr-bg-white) !important;
    border: 1px solid var(--hr-border-light) !important;
    box-shadow: var(--hr-shadow) !important;
}

/* Ensure dashboard welcome section is clean */
.dashboard-welcome-section {
    background-color: transparent !important;
    padding: 0 !important;
    margin-bottom: 2rem !important;
}

/* Override old workspace card styles */
.workspace-card {
    background-color: var(--hr-bg-white) !important;
    border: 1px solid var(--hr-border) !important;
    box-shadow: var(--hr-shadow) !important;
}

/* Stat cards - ensure they're visible */
.stat-card {
    background-color: var(--hr-bg-white) !important;
    border: 1px solid var(--hr-border) !important;
    box-shadow: var(--hr-shadow) !important;
    padding: 1.5rem !important;
}

/* Services section */
.services-section {
    background-color: var(--hr-bg-white) !important;
    border: 1px solid var(--hr-border) !important;
    box-shadow: var(--hr-shadow) !important;
}

/* Service cards */
.service-card {
    background-color: var(--hr-bg-white) !important;
    border: 1px solid var(--hr-border) !important;
    box-shadow: var(--hr-shadow) !important;
}

/* Activity and quick actions cards */
.activity-card,
.quick-actions-card {
    background-color: var(--hr-bg-white) !important;
    border: 1px solid var(--hr-border) !important;
    box-shadow: var(--hr-shadow) !important;
}

/* Remove any old gradient or colored backgrounds */
.dashboard-title-card {
    background-color: var(--hr-bg-white) !important;
}

/* Ensure text colors are correct */
.welcome-title {
    color: var(--hr-text-primary) !important;
}

.welcome-subtitle {
    color: var(--hr-text-secondary) !important;
}

.stat-label {
    color: var(--hr-text-secondary) !important;
}

.stat-value {
    color: var(--hr-text-primary) !important;
}

.service-name {
    color: var(--hr-text-primary) !important;
}

.service-description {
    color: var(--hr-text-secondary) !important;
}

/* Ensure buttons are styled correctly */
.btn-primary {
    background-color: var(--hr-primary) !important;
    border-color: var(--hr-primary) !important;
    color: var(--hr-text-white) !important;
}

.btn-primary:hover {
    background-color: var(--hr-primary-dark) !important;
    border-color: var(--hr-primary-dark) !important;
}

/* Override old mms_style card hover effects */
.card:hover {
    box-shadow: var(--hr-shadow-md) !important;
    transform: none !important;
}

.card .dashboard-title-card:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Ensure proper spacing */
.container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

/* Override any old row/column styles */
.row {
    margin-left: -0.5rem !important;
    margin-right: -0.5rem !important;
}

.col-lg-3,
.col-lg-4,
.col-lg-8 {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

/* Ensure main content area has correct background */
.main-wrapper .main-content {
    background-color: var(--hr-bg-page) !important;
}

/* Override any old section styles */
section.content {
    background-color: var(--hr-bg-page) !important;
    padding: 1.5rem 0 !important;
}


/* ============================================
   Professional Dashboard Redesign
   ============================================ */

/* Page Header */
.dashboard-page-header {
    margin-bottom: 1.5rem;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--hr-text-primary);
    margin-bottom: 0.25rem;
}

.page-subtitle {
    font-size: 14px;
    color: var(--hr-text-secondary);
    margin-bottom: 0;
}

.current-dept-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background-color: var(--hr-primary);
    color: white;
    border-radius: var(--hr-radius);
    font-size: 14px;
    font-weight: 500;
}

.current-dept-badge i {
    font-size: 18px;
    color: white !important;
}

/* Welcome Banner */
.welcome-banner {
    background-color: transparent;
    padding: 1.5rem 0;
    margin-bottom: 1rem;
}

.welcome-banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.welcome-avatar {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.welcome-avatar i {
    font-size: 3rem !important;
    color: #777 !important;
}

.welcome-text .welcome-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--hr-text-primary);
    margin-bottom: 0.25rem;
}

.welcome-text .welcome-subtitle {
    font-size: 14px;
    color: var(--hr-text-secondary);
    margin-bottom: 0;
}

.welcome-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.welcome-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--hr-text-secondary);
}

.welcome-meta-item i {
    font-size: 18px;
    color: var(--hr-primary) !important;
}

/* Stats Row */
.stats-row {
    margin-bottom: 1.5rem;
}

.stats-row > div {
    margin-bottom: 1rem;
}

.stat-card {
    background-color: var(--hr-bg-white);
    border: 1px solid var(--hr-border);
    border-radius: var(--hr-radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--hr-shadow);
    transition: all 0.2s ease;
    height: 100%;
}

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

.stat-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--hr-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card-icon i {
    font-size: 26px;
    color: white !important;
}

.stat-icon-primary { background-color: var(--hr-primary); }
.stat-icon-success { background-color: var(--hr-success); }
.stat-icon-warning { background-color: var(--hr-warning); }
.stat-icon-info { background-color: var(--hr-info); }
.stat-icon-danger { background-color: var(--hr-error); }

.stat-card-info {
    flex: 1;
}

.stat-card-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--hr-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.stat-card-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--hr-text-primary);
    margin-bottom: 0;
    line-height: 1;
}

/* Dashboard Card */
.dashboard-card {
    background-color: var(--hr-bg-white);
    border: 1px solid var(--hr-border);
    border-radius: var(--hr-radius-lg);
    box-shadow: var(--hr-shadow);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.dashboard-card-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--hr-border);
    background-color: var(--hr-bg-page);
}

.dashboard-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--hr-text-primary);
    margin-bottom: 0;
}

.dashboard-card-title i {
    font-size: 22px;
    color: var(--hr-primary) !important;
}

.dashboard-card-subtitle {
    font-size: 13px;
    color: var(--hr-text-secondary);
    margin-top: 0.25rem;
    margin-bottom: 0;
}

.dashboard-card-body {
    padding: 1.25rem;
}

/* Statistics Cards */
.stats-card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.stats-card-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stats-card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--hr-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stats-card-icon.departments {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.stats-card-icon.offices {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.stats-card-icon.employees {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.stats-card-icon i {
    font-size: 28px;
}

.stats-card-info {
    flex: 1;
}

.stats-card-number {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: var(--hr-text-primary);
    line-height: 1.2;
}

.stats-card-label {
    font-size: 0.875rem;
    color: var(--hr-text-secondary);
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-card-sublabel {
    font-size: 0.75rem;
    color: var(--hr-text-secondary);
    margin: 0;
    font-weight: 400;
    opacity: 0.8;
    font-style: italic;
}

.stats-card-secondary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--hr-border);
}

.stats-card-secondary-number {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--hr-success);
    white-space: nowrap;
}

.stats-card-secondary-label {
    font-size: 0.75rem;
    color: var(--hr-text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive adjustments for stats cards */
@media (max-width: 768px) {
    .stats-card-number {
        font-size: 1.5rem;
    }
    
    .stats-card-icon {
        width: 50px;
        height: 50px;
    }
    
    .stats-card-icon i {
        font-size: 24px;
    }
    
    .stats-card-secondary-number {
        font-size: 0.95rem;
    }
    
    .stats-card-secondary-label {
        font-size: 0.7rem;
    }
}

/* Department Overview Table */
.department-overview-table {
    margin-bottom: 0;
}

.department-overview-table th {
    background-color: var(--hr-bg-page);
    border-bottom: 2px solid var(--hr-border);
    font-weight: 600;
    color: var(--hr-text-primary);
    padding: 1rem 0.75rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.department-overview-table td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--hr-border);
}

.department-overview-table tbody tr:hover {
    background-color: var(--hr-bg-page);
}

.dept-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--hr-text-primary);
}

.dept-name i {
    color: var(--hr-primary);
    font-size: 18px;
}

.dept-link {
    color: var(--hr-text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.dept-link:hover {
    color: var(--hr-primary);
    text-decoration: underline;
}

.office-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background-color: var(--hr-info);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: var(--hr-radius);
    font-weight: 500;
    font-size: 0.875rem;
}

.office-count-badge i {
    font-size: 16px;
}

.nodal-officers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.nodal-officer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background-color: var(--hr-success);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--hr-radius);
    font-size: 0.75rem;
    font-weight: 500;
}

.nodal-officer-badge i {
    font-size: 14px;
}

.no-officer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background-color: var(--hr-text-secondary);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--hr-radius);
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.7;
}

.no-officer-badge i {
    font-size: 14px;
}

.empty-state {
    text-align: center;
    color: var(--hr-text-secondary);
    padding: 2rem;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    margin: 0;
    font-size: 1rem;
}

/* Responsive table */
@media (max-width: 768px) {
    .department-overview-table {
        font-size: 0.875rem;
    }
    
    .department-overview-table th,
    .department-overview-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .nodal-officers {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .nodal-officer-badge,
    .no-officer-badge,
    .no-head-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
}

/* Unified Dashboard Header */
.dashboard-header-unified {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 16px;
    color: white;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-title-section .dashboard-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.header-title-section .dashboard-subtitle {
    font-size: 1.1rem;
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    color: white;
}

.header-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.current-dept-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.current-dept-badge i {
    color: white !important;
    font-size: 18px;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.role-badge i {
    color: white !important;
    font-size: 18px;
}

.header-badges .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: white;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.header-badges .meta-item i {
    color: white !important;
    font-size: 18px;
}

/* Force all icons in dashboard header to be white */
.dashboard-header-unified i {
    color: white !important;
}

.dashboard-header-unified .material-icons-outlined {
    color: white !important;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.user-welcome-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.welcome-avatar {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.welcome-avatar i {
    font-size: 36px;
    color: white;
}

.user-info .welcome-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.user-info .user-details {
    font-size: 1.1rem;
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    color: white;
}

.header-meta-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: white;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.meta-item i {
    font-size: 20px;
}

/* Remove old styles */
.dashboard-page-header {
    background: var(--hr-bg-white);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: var(--hr-radius-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--hr-border);
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: var(--hr-text-primary);
}

.page-subtitle {
    font-size: 0.875rem;
    color: var(--hr-text-secondary);
    margin: 0.25rem 0 0 0;
}

.current-dept-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--hr-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--hr-radius);
    font-size: 0.875rem;
    font-weight: 500;
}

.welcome-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: var(--hr-radius-lg);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.welcome-banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.welcome-avatar {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.welcome-avatar i {
    font-size: 32px;
    color: white;
}

.welcome-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.welcome-subtitle {
    font-size: 1rem;
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    color: white;
}

.welcome-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.welcome-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: white;
    opacity: 0.9;
}

.welcome-meta-item i {
    font-size: 18px;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: var(--hr-radius);
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dashboard-page-header-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    margin: -1.5rem -1.5rem 2rem -1.5rem;
    border-radius: 0 0 20px 20px;
    color: white;
}

/* Force all icons in dashboard page header to be white */
.dashboard-page-header-modern i,
.dashboard-page-header-modern .material-icons-outlined {
    color: white !important;
}

.header-content .page-title-modern {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.header-content .page-subtitle-modern {
    font-size: 1.1rem;
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    color: white;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.current-dept-badge-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.date-time-widget {
    text-align: right;
}

.date-display {
    font-size: 0.9rem;
    opacity: 0.8;
}

.time-display {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Modern Stats Grid */
.stats-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card-modern {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.stat-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.departments-card::before {
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.offices-card::before {
    background: linear-gradient(90deg, #f093fb, #f5576c);
}

.employees-card::before {
    background: linear-gradient(90deg, #4facfe, #00f2fe);
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.departments-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.offices-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.employees-icon {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.stat-trend.positive {
    color: #10b981;
}

.stat-trend i {
    font-size: 16px;
}

.stat-content .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    color: #1f2937;
    line-height: 1;
}

.stat-content .stat-label {
    font-size: 1rem;
    color: #6b7280;
    margin: 0.5rem 0;
    font-weight: 500;
}

.stat-secondary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.secondary-number {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
}

.secondary-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.stat-progress {
    height: 4px;
    background: #f3f4f6;
    border-radius: 2px;
    margin-top: 1rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Modern Dashboard Grid */
.dashboard-grid-modern {
    display: block;
    width: 100%;
}

.dashboard-card-modern {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.card-header-modern {
    padding: 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.header-left .card-title-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.header-left .card-subtitle-modern {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0.25rem 0 0 0;
}

.header-actions-modern {
    display: flex;
    gap: 0.75rem;
}

.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-outline {
    background: white;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.btn-outline:hover {
    background: #f9fafb;
    color: #374151;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.card-body-modern {
    padding: 0;
}

/* Modern Table */
.table-container-modern {
    overflow-x: auto;
}

.table-modern {
    width: 100%;
    border-collapse: collapse;
}

.table-modern thead th {
    background: #f9fafb;
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e5e7eb;
}

.table-modern tbody td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.table-row-modern:hover {
    background: #f9fafb;
}

.dept-info-modern {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dept-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.dept-details .dept-name-modern {
    font-weight: 600;
    color: #667eea;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    position: relative;
    transition: all 0.2s ease;
    cursor: pointer;
}

.dept-details .dept-name-modern:hover {
    color: #4f46e5;
    text-decoration: underline;
    transform: translateX(2px);
}

.dept-link-icon {
    font-size: 16px !important;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.dept-details .dept-name-modern:hover .dept-link-icon {
    opacity: 1;
    transform: translateX(2px);
}

.dept-id {
    font-size: 0.75rem;
    color: #6b7280;
}

.office-count-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.count-badge-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    color: white;
}

.count-badge-modern.offices {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.count-label {
    font-size: 0.75rem;
    color: #6b7280;
}

.nodal-officers-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.officer-badge-modern {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: #f0f9ff;
    color: #0369a1;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.officer-avatar {
    width: 20px;
    height: 20px;
    background: #0369a1;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.officer-avatar i {
    font-size: 12px;
}

.more-officers {
    font-size: 0.75rem;
    color: #6b7280;
    font-style: italic;
}

.no-officers-modern {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #6b7280;
    font-size: 0.75rem;
}

.status-badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge-modern.active {
    background: #dcfce7;
    color: #166534;
}

.action-buttons-modern {
    display: flex;
    gap: 0.25rem;
}

.action-btn-modern {
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
}

.action-btn-modern:hover {
    background: #e5e7eb;
    color: #374151;
}

.empty-state-modern {
    text-align: center;
    padding: 3rem;
}

.empty-content i {
    font-size: 3rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.empty-content h5 {
    color: #374151;
    margin-bottom: 0.5rem;
}

.empty-content p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* Quick Actions Modern */
.quick-actions-modern {
    padding: 1rem;
}

.action-item-modern {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    text-decoration: none;
    color: #374151;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
}

.action-item-modern:hover {
    background: #f9fafb;
    color: #1f2937;
    transform: translateX(4px);
}

.action-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.action-icon.users {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.action-icon.assignments {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.action-icon.departments {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.action-icon.hierarchy {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.action-content {
    flex: 1;
}

.action-title {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.action-desc {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Quick Actions Top Section */
.quick-actions-top-section {
    background: white;
    border-radius: 16px;
    padding: 0.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.quick-actions-header {
    margin-bottom: 1.5rem;
}

.quick-actions-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.quick-actions-title i {
    color: #667eea;
}

.quick-actions-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.quick-actions-grid-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.quick-action-item-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    text-decoration: none;
    color: #374151;
    transition: all 0.3s ease;
    border: 1px solid #f3f4f6;
    background: #fafbfc;
}

.quick-action-item-top:hover {
    background: white;
    color: #1f2937;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #e5e7eb;
}

.action-icon-top {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.action-icon-top.users {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.action-icon-top.assignments {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.action-icon-top.departments {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.action-icon-top.hierarchy {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.action-icon-top.seats {
    background: linear-gradient(135deg, #fa709a, #fee140);
}

.action-icon-top.roles {
    background: linear-gradient(135deg, #a8edea, #fed6e3);
    color: #374151;
}

.action-icon-top i {
    font-size: 24px;
}

.action-content-top {
    flex: 1;
    min-width: 0;
}

.action-title-top {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.action-desc-top {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.3;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .stats-grid-modern {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .dashboard-header-unified {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .header-title-section .dashboard-title {
        font-size: 1.75rem;
    }
    
    .header-title-section .dashboard-subtitle {
        font-size: 1rem;
    }
    
    .header-badges {
        width: 100%;
        justify-content: flex-start;
    }
    
    .header-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .user-welcome-section {
        width: 100%;
        gap: 1rem;
    }
    
    .welcome-avatar {
        width: 60px;
        height: 60px;
    }
    
    .welcome-avatar i {
        font-size: 30px;
    }
    
    .user-info .welcome-title {
        font-size: 1.5rem;
    }
    
    .user-info .user-details {
        font-size: 1rem;
    }
    
    .header-meta-info {
        width: 100%;
        gap: 1rem;
        justify-content: space-between;
    }
    
    .meta-item {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .meta-item i {
        font-size: 18px;
    }
    
    .stats-grid-modern {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card-modern {
        padding: 1rem;
    }
    
    .card-header-modern {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .header-actions-modern {
        width: 100%;
        justify-content: flex-end;
    }
    
    .table-modern thead th,
    .table-modern tbody td {
        padding: 0.75rem 1rem;
    }
    
    .quick-actions-grid-top {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 0.75rem;
    }
    
    .quick-action-item-top {
        padding: 0.75rem;
    }
    
    .action-icon-top {
        width: 40px;
        height: 40px;
    }
    
    .action-icon-top i {
        font-size: 20px;
    }
    
    .action-title-top {
        font-size: 0.875rem;
    }
    
    .action-desc-top {
        font-size: 0.75rem;
    }
}

/* Professional Department Details Page */
.dept-details-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 16px;
    color: white;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.header-content-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.breadcrumb-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.breadcrumb-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    width: fit-content;
}

.breadcrumb-actions {
    display: flex;
    align-items: center;
}

.btn-professional.btn-back {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

.btn-professional.btn-back:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Force back button icon to be white */
.btn-professional.btn-back i,
.btn-professional.btn-back .material-icons-outlined {
    color: white !important;
}

.breadcrumb-actions i,
.breadcrumb-actions .material-icons-outlined {
    color: white !important;
}

.breadcrumb-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    width: fit-content;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: white;
}

.breadcrumb-item a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.breadcrumb-item a:hover {
    opacity: 1;
}

.breadcrumb-item.active {
    opacity: 1;
    font-weight: 500;
    color: white;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    opacity: 0.6;
    color: white;
}

/* Force all icons in breadcrumb to be white */
.breadcrumb-modern i,
.breadcrumb-modern .material-icons-outlined {
    color: white !important;
}

.breadcrumb-item i,
.breadcrumb-item .material-icons-outlined {
    color: white !important;
    font-size: 18px;
}

.breadcrumb-item a i,
.breadcrumb-item a .material-icons-outlined {
    color: white !important;
}

.page-title-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.title-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dept-icon-large {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.dept-icon-large i {
    font-size: 30px;
    color: white;
}

.page-title-large {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.page-subtitle-large {
    font-size: 1.1rem;
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    color: white;
}

.header-actions-section {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-professional {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-professional.btn-primary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-professional.btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-professional.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-professional.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-professional.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-professional.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Professional Statistics Grid */
.stats-grid-professional {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card-professional {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card-professional:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.stat-card-professional::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.stat-card-professional.offices-stat::before {
    background: linear-gradient(90deg, #f093fb, #f5576c);
}

.stat-card-professional.seats-stat::before {
    background: linear-gradient(90deg, #4facfe, #00f2fe);
}

.stat-card-professional.officers-stat::before {
    background: linear-gradient(90deg, #43e97b, #38f9d7);
}

.stat-card-professional.nodal-stat::before {
    background: linear-gradient(90deg, #fa709a, #fee140);
}

.stat-card-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat-icon-section {
    flex-shrink: 0;
}

.stat-icon-bg {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.stat-icon-bg.offices {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.stat-icon-bg.seats {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.stat-icon-bg.officers {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.stat-icon-bg.nodal {
    background: linear-gradient(135deg, #fa709a, #fee140);
}

.stat-icon-bg i {
    font-size: 32px;
}

.stat-info-section {
    flex: 1;
}

.stat-number-large {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    color: #1f2937;
    line-height: 1;
}

.stat-label-main {
    font-size: 1.1rem;
    color: #6b7280;
    margin: 0.5rem 0;
    font-weight: 500;
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #10b981;
}

.stat-trend i {
    font-size: 16px;
}

/* Professional Table */
.table-card-professional {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.table-header-professional {
    padding: 2rem;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.table-title-section .table-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.table-title-section .table-subtitle {
    font-size: 1rem;
    color: #6b7280;
    margin: 0.5rem 0 0 0;
}

.table-actions-section {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper i {
    position: absolute;
    left: 1rem;
    color: #6b7280;
    font-size: 20px;
}

.search-input {
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 0.875rem;
    width: 250px;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.table-body-professional {
    padding: 0;
}

.table-responsive-professional {
    overflow-x: auto;
}

.table-professional {
    width: 100%;
    border-collapse: collapse;
}

.table-professional thead th {
    background: #f9fafb;
    padding: 1.5rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

.table-professional thead th.sortable {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.table-professional thead th.sortable:hover {
    background: #f3f4f6;
}

.table-professional thead th.sortable span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-professional thead th.sortable i {
    font-size: 16px;
    color: #9ca3af;
    transition: color 0.2s ease;
}

.table-professional thead th.sortable:hover i {
    color: #667eea;
}

.table-professional tbody td {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.table-row-professional:hover {
    background: #f9fafb;
}

.office-info-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.office-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.office-avatar i {
    font-size: 24px;
}

.office-details .office-name {
    font-weight: 600;
    color: #1f2937;
    display: block;
    margin-bottom: 0.25rem;
}

.office-details .office-id {
    font-size: 0.75rem;
    color: #6b7280;
}

.parent-office-cell .parent-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
}

.parent-badge.root {
    background: #fef3c7;
    color: #d97706;
}

.parent-badge.child {
    background: #dbeafe;
    color: #2563eb;
}

.nodal-officers-cell,
.head-officers-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.officer-tag,
.head-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f0f9ff;
    color: #0369a1;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
}

.officer-avatar-small,
.head-avatar-small {
    width: 24px;
    height: 24px;
    background: #0369a1;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.head-tag {
    background: #fef3c7;
    color: #d97706;
}

.head-avatar-small {
    background: #d97706;
}

.officer-avatar-small i,
.head-avatar-small i {
    font-size: 14px;
}

.no-assignment {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #9ca3af;
    font-size: 0.875rem;
    font-style: italic;
}

.count-cell {
    text-align: center;
}

.count-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem;
    border-radius: 12px;
    min-width: 60px;
}

.count-badge.seats {
    background: #f0f9ff;
    color: #0369a1;
}

.count-badge.officers {
    background: #f0fdf4;
    color: #166534;
}

.count-number {
    font-size: 1.5rem;
    font-weight: 700;
}

.count-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.designation-cell .designation-tag {
    display: inline-block;
    background: #e0e7ff;
    color: #3730a3;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
}

.no-designation {
    color: #9ca3af;
    font-style: italic;
}

.action-buttons-cell {
    display: flex;
    gap: 0.5rem;
}

.action-btn-professional {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn-professional.view {
    background: #f0f9ff;
    color: #0369a1;
}

.action-btn-professional.view:hover {
    background: #dbeafe;
    transform: scale(1.05);
}

.action-btn-professional.edit {
    background: #fef3c7;
    color: #d97706;
}

.action-btn-professional.edit:hover {
    background: #fde68a;
    transform: scale(1.05);
}

.action-btn-professional.more {
    background: #f3f4f6;
    color: #6b7280;
}

.action-btn-professional.more:hover {
    background: #e5e7eb;
    transform: scale(1.05);
}

.empty-state-professional {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-content-professional {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.empty-icon i {
    font-size: 40px;
    color: #9ca3af;
}

.empty-content-professional h3 {
    color: #374151;
    margin: 0;
}

.empty-content-professional p {
    color: #6b7280;
    margin: 0;
}

/* Responsive Design for Department Details */
@media (max-width: 768px) {
    .dept-details-header {
        padding: 1rem;
    }
    
    .breadcrumb-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .breadcrumb-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .page-title-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .title-content {
        gap: 0.75rem;
    }
    
    .dept-icon-large {
        width: 50px;
        height: 50px;
    }
    
    .dept-icon-large i {
        font-size: 30px;
    }
    
    .page-title-large {
        font-size: 2rem;
    }
    
    .header-actions-section {
        width: 100%;
        justify-content: flex-start;
    }
    
    .stats-grid-professional {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card-professional {
        padding: 1.5rem;
    }
    
    .stat-number-large {
        font-size: 2.5rem;
    }
    
    .table-header-professional {
        padding: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .table-actions-section {
        width: 100%;
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-input {
        width: 100%;
    }
    
    .table-professional thead th,
    .table-professional tbody td {
        padding: 1rem 0.75rem;
    }
    
    .office-info-cell {
        gap: 0.75rem;
    }
    
    .office-avatar {
        width: 40px;
        height: 40px;
    }
    
    .office-avatar i {
        font-size: 20px;
    }
}

/* Department Details Page Styles */
.office-details-table {
    margin-bottom: 0;
    font-size: 0.875rem;
}

.office-details-table th {
    background-color: var(--hr-bg-page);
    border-bottom: 2px solid var(--hr-border);
    font-weight: 600;
    color: var(--hr-text-primary);
    padding: 1rem 0.75rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.office-details-table td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--hr-border);
}

.office-details-table tbody tr:hover {
    background-color: var(--hr-bg-page);
}

.office-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--hr-text-primary);
}

.office-name i {
    color: var(--hr-info);
    font-size: 18px;
}

.parent-office-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--hr-radius);
    font-weight: 500;
    font-size: 0.75rem;
}

.parent-office-badge.root {
    background-color: var(--hr-warning);
    color: white;
}

.parent-office-badge.child {
    background-color: var(--hr-info);
    color: white;
}

.parent-office-badge i {
    font-size: 14px;
}

.nodal-officers-cell,
.head-officers-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.nodal-officer-badge-small {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    background-color: var(--hr-success);
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: var(--hr-radius);
    font-size: 0.7rem;
    font-weight: 500;
}

.nodal-officer-badge-small i {
    font-size: 12px;
}

.no-officer-badge-small {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    background-color: var(--hr-text-secondary);
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: var(--hr-radius);
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.7;
}

.no-officer-badge-small i {
    font-size: 12px;
}

.count-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--hr-radius);
    font-weight: 600;
    font-size: 0.875rem;
}

.count-badge.seat-count {
    background-color: var(--hr-primary);
    color: white;
}

.count-badge.officer-count {
    background-color: var(--hr-success);
    color: white;
}

.count-badge i {
    font-size: 14px;
}

.head-officer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    background-color: var(--hr-warning);
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: var(--hr-radius);
    font-size: 0.7rem;
    font-weight: 500;
}

.head-officer-badge i {
    font-size: 12px;
}

.no-head-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    background-color: var(--hr-text-secondary);
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: var(--hr-radius);
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.7;
}

.no-head-badge i {
    font-size: 12px;
}

.designation-badge {
    display: inline-block;
    background-color: var(--hr-info);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--hr-radius);
    font-size: 0.75rem;
    font-weight: 500;
}

.no-designation-badge {
    color: var(--hr-text-secondary);
    font-style: italic;
}

/* Responsive adjustments for department details */
@media (max-width: 768px) {
    .office-details-table {
        font-size: 0.8rem;
    }
    
    .office-details-table th,
    .office-details-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .nodal-officers-cell,
    .head-officers-cell {
        flex-direction: column;
        gap: 0.2rem;
    }
    
    .count-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Workspace Grid */
.workspace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.workspace-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--hr-bg-page);
    border: 2px solid var(--hr-border);
    border-radius: var(--hr-radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
}

.workspace-item:hover {
    border-color: var(--hr-primary);
    background-color: var(--hr-primary-light);
}

.workspace-item.active {
    border-color: var(--hr-success);
}

.workspace-item-icon {
    width: 48px;
    height: 48px;
    background-color: var(--hr-primary);
    border-radius: var(--hr-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.workspace-item-icon.active {
    background-color: var(--hr-success);
}

.workspace-item-icon i {
    font-size: 24px;
    color: white !important;
}

.workspace-item-info {
    flex: 1;
    min-width: 0;
}

.workspace-item-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--hr-text-primary);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.workspace-item-dept {
    font-size: 13px;
    color: var(--hr-text-secondary);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.workspace-item-role {
    font-size: 11px;
    font-weight: 600;
    color: var(--hr-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.workspace-active-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background-color: var(--hr-success);
    color: white;
    border-radius: var(--hr-radius);
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.workspace-active-badge i {
    font-size: 14px;
    color: white !important;
}

.workspace-switch-btn {
    padding: 6px 16px;
    background-color: var(--hr-primary);
    color: white;
    border: none;
    border-radius: var(--hr-radius);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.workspace-switch-btn:hover {
    background-color: var(--hr-primary-dark);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--hr-text-muted);
}

.empty-state i {
    font-size: 48px;
    color: var(--hr-text-muted) !important;
    margin-bottom: 1rem;
}

.empty-state h6 {
    font-size: 16px;
    font-weight: 600;
    color: var(--hr-text-secondary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 14px;
    margin-bottom: 0;
}

/* Meetings Stats */
.meetings-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-around;
}

.meeting-stat-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    flex: 1;
    min-width: 150px;
}

.meeting-stat-divider {
    width: 1px;
    background-color: var(--hr-border);
    align-self: stretch;
}

.meeting-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--hr-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.meeting-stat-icon i {
    font-size: 24px;
    color: white !important;
}

.meeting-stat-icon.today { background-color: var(--hr-primary); }
.meeting-stat-icon.week { background-color: var(--hr-info); }
.meeting-stat-icon.month { background-color: var(--hr-success); }

.meeting-stat-info {
    flex: 1;
}

.meeting-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--hr-text-primary);
    margin-bottom: 0.25rem;
    line-height: 1;
}

.meeting-stat-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--hr-text-secondary);
    margin-bottom: 0.5rem;
}

.meeting-stat-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 12px;
}

/* Quick Switch */
.workspace-select {
    padding: 12px 16px;
    border-radius: var(--hr-radius);
    border: 1px solid var(--hr-border);
    font-size: 14px;
    margin-bottom: 1rem;
}

.workspace-select:focus {
    border-color: var(--hr-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.quick-switch-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background-color: var(--hr-info-light);
    border-radius: var(--hr-radius);
    font-size: 13px;
    color: var(--hr-info);
}

.quick-switch-info i {
    font-size: 18px;
    color: var(--hr-info) !important;
}

/* Quick Actions */
.quick-actions-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quick-action-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background-color: var(--hr-bg-page);
    border: 1px solid var(--hr-border);
    border-radius: var(--hr-radius);
    text-decoration: none;
    color: var(--hr-text-primary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.quick-action-item:hover {
    background-color: var(--hr-primary-light);
    border-color: var(--hr-primary);
    color: var(--hr-primary);
}

.quick-action-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--hr-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quick-action-icon i {
    font-size: 20px;
    color: white !important;
}

.quick-action-icon.primary { background-color: var(--hr-primary); }
.quick-action-icon.success { background-color: var(--hr-success); }
.quick-action-icon.info { background-color: var(--hr-info); }

.quick-action-item span {
    flex: 1;
}

.quick-action-item .arrow {
    font-size: 20px;
    color: var(--hr-text-muted) !important;
}

.quick-action-item:hover .arrow {
    color: var(--hr-primary) !important;
}

/* Task Status */
.task-status-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.task-status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background-color: var(--hr-bg-page);
    border-radius: var(--hr-radius);
}

.task-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.task-status-dot.not-started { background-color: var(--hr-warning); }
.task-status-dot.ongoing { background-color: var(--hr-info); }
.task-status-dot.completed { background-color: var(--hr-success); }
.task-status-dot.not-feasible { background-color: var(--hr-error); }

.task-status-label {
    flex: 1;
    font-size: 14px;
    color: var(--hr-text-secondary);
}

.task-status-count {
    font-size: 16px;
    font-weight: 700;
    color: var(--hr-text-primary);
}

.task-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background-color: var(--hr-primary-light);
    border-radius: var(--hr-radius);
    font-size: 14px;
    color: var(--hr-primary);
}

.task-total strong {
    font-size: 18px;
    font-weight: 700;
}

/* Responsive Dashboard */
@media (max-width: 991px) {
    .welcome-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .welcome-meta {
        justify-content: center;
    }
    
    .meetings-stats {
        flex-direction: column;
    }
    
    .meeting-stat-divider {
        width: 100%;
        height: 1px;
    }
    
    .workspace-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .welcome-banner {
        padding: 1rem 0;
    }
    
    .welcome-text .welcome-title {
        font-size: 20px;
    }
    
    .welcome-avatar {
        width: 56px;
        height: 56px;
    }
    
    .welcome-avatar i {
        font-size: 30px;
    }
    
    .stat-card-value {
        font-size: 24px;
    }
    
    .meeting-stat-value {
        font-size: 24px;
    }
}


/* User Profile Info */
.user-profile-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    background-color: var(--hr-bg-page);
    border-radius: var(--hr-radius);
}

.profile-info-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--hr-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-info-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--hr-text-primary);
    word-break: break-word;
}


/* Quick Actions Grid */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

/* Quick Actions Full Width */
.quick-actions-fullwidth {
    margin-bottom: 1.5rem;
}

.quick-actions-grid-full {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.quick-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 0.5rem;
    background-color: transparent;
    border: none;
    border-radius: var(--hr-radius);
    text-decoration: none;
    transition: all 0.2s ease;
}

.quick-action-card:hover {
    background-color: var(--hr-bg-page);
    transform: translateY(-2px);
}

.quick-action-card-icon {
    width: auto;
    height: auto;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-action-card-icon i {
    font-size: 42px !important;
}

.quick-action-card-icon.primary i { color: var(--hr-primary) !important; }
.quick-action-card-icon.success i { color: var(--hr-success) !important; }
.quick-action-card-icon.warning i { color: var(--hr-warning) !important; }
.quick-action-card-icon.info i { color: var(--hr-info) !important; }

.quick-action-card-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--hr-text-primary);
    text-align: center;
    line-height: 1.2;
}

.quick-action-card:hover .quick-action-card-label {
    color: var(--hr-primary);
}

@media (max-width: 991px) {
    .quick-actions-grid-full {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 575px) {
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-actions-grid-full {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-action-card-icon i {
        font-size: 36px !important;
    }
}


/* Role Badge in Welcome Meta */
.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background-color: var(--hr-success);
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.role-badge i {
    font-size: 16px;
    color: white !important;
}
