/* Globe United FZE HR Management System - Professional Corporate Theme */

/* Global Variables */
:root {
    --corporate-blue: #1d4ed8;
    --corporate-blue-light: #3b82f6;
    --corporate-blue-dark: #1e3a8a;
    --corporate-teal: #0d9488;
    --corporate-teal-light: #14b8a6;
    --corporate-gray: #64748b;
    --corporate-gray-light: #94a3b8;
    --corporate-gray-dark: #475569;
    
    --light-bg: #f0f9ff;
    --card-bg: #ffffff;
    --card-border-radius: 8px;
    --card-shadow: 0 1px 3px 0 rgba(15, 40, 80, 0.08), 0 1px 2px 0 rgba(15, 40, 80, 0.05);
    --card-shadow-hover: 0 4px 12px -1px rgba(15, 40, 80, 0.12), 0 2px 6px -1px rgba(15, 40, 80, 0.07);
    
    --primary-gradient: linear-gradient(135deg, #1d4ed8 0%, #0d9488 100%);
    --secondary-gradient: linear-gradient(135deg, #0369a1 0%, #0d9488 100%);
    
    --success-color: #059669;
    --success-light: #d1fae5;
    --warning-color: #d97706;
    --warning-light: #fef3c7;
    --danger-color: #dc2626;
    --danger-light: #fee2e2;
    --info-color: #0369a1;
    --info-light: #e0f2fe;
    
    --text-primary: #0f2340;
    --text-secondary: #476485;
    --text-muted: #94a3b8;
    --border-color: #cfe2f3;
    --border-light: #e8f4fd;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    --sidebar-width: 264px;
    --sidebar-collapsed-width: 80px;
    --topbar-height: 64px;
    --sidebar-bg: #0b1f35;
    --sidebar-hover: #112840;
    --sidebar-active: #0d9488;
    --sidebar-text: #7fb3cc;
    --sidebar-text-hover: #c8e6f7;
    --sidebar-text-active: #ffffff;
    --sidebar-section-text: #3d6d8a;
    --sidebar-divider: #112840;
    --sidebar-transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Spacing utilities */
.mb-6 { margin-bottom: 3rem !important; }
.mt-6 { margin-top: 3rem !important; }
.py-6 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

/* Font setup */
body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--light-bg);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

h1 { font-size: 1.875rem; line-height: 2.25rem; }
h2 { font-size: 1.5rem; line-height: 2rem; }
h3 { font-size: 1.25rem; line-height: 1.75rem; }
h4 { font-size: 1.125rem; line-height: 1.75rem; }
h5 { font-size: 1rem; line-height: 1.5rem; }
h6 { font-size: 0.875rem; line-height: 1.25rem; }

.text-primary {
    color: var(--corporate-blue) !important;
}

/* ==========================================
   SIDEBAR STYLES
   ========================================== */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    transition: width var(--sidebar-transition);
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-brand {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    flex-shrink: 0;
    border-bottom: 1px solid var(--sidebar-divider);
}

.brand-logo {
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

.brand-img-full {
    height: 28px;
    width: auto;
    transition: opacity var(--sidebar-transition);
    filter: brightness(0) invert(1);
}

.brand-img-mini {
    height: 28px;
    max-width: 56px;
    object-fit: contain;
    display: none;
    margin: 0 auto;
    transition: opacity var(--sidebar-transition);
    filter: brightness(0) invert(1);
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.75rem 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.sidebar-content::-webkit-scrollbar {
    width: 4px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.sidebar-nav {
    padding: 0;
}

.nav-section {
    margin-bottom: 0.5rem;
}

.nav-section-title {
    padding: 0.75rem 1.25rem 0.375rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sidebar-section-text);
    white-space: nowrap;
    overflow: hidden;
    transition: opacity var(--sidebar-transition);
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    margin: 1px 0.75rem;
    color: var(--sidebar-text);
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 450;
    text-decoration: none;
    transition: all 0.18s ease;
    position: relative;
    white-space: nowrap;
    gap: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.nav-icon {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    transition: all 0.18s ease;
}

.nav-label {
    margin-left: 0.5rem;
    overflow: hidden;
    transition: opacity var(--sidebar-transition), width var(--sidebar-transition);
}

.sidebar .nav-link:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-text-hover);
    transform: none;
}

.sidebar .nav-link:hover .nav-icon {
    color: var(--corporate-blue-light);
}

.sidebar .nav-link.active {
    background: var(--sidebar-active);
    color: var(--sidebar-text-active);
    font-weight: 550;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.4);
}

.sidebar .nav-link.active .nav-icon {
    color: var(--sidebar-text-active);
}

.sidebar-footer {
    flex-shrink: 0;
    padding: 0.75rem;
    border-top: 1px solid var(--sidebar-divider);
}

.sidebar-user {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    gap: 0.625rem;
    overflow: hidden;
}

.sidebar-user-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 600;
    flex-shrink: 0;
}

.sidebar-user-details {
    overflow: hidden;
    min-width: 0;
    flex: 1;
    transition: opacity var(--sidebar-transition);
}

.sidebar-user-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 0.6875rem;
    color: var(--sidebar-text);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.sidebar-logout-btn {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    color: var(--sidebar-text);
    text-decoration: none;
    flex-shrink: 0;
    transition: all 0.18s ease;
}

.sidebar-logout-btn:hover {
    background: rgba(220, 38, 38, 0.15);
    color: #f87171;
}

/* Collapsed Sidebar */
.sidebar.sidebar-collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar.sidebar-collapsed .brand-img-full {
    display: none;
}

.sidebar.sidebar-collapsed .brand-img-mini {
    display: block;
}

.sidebar.sidebar-collapsed .brand-logo {
    justify-content: center;
}

.sidebar.sidebar-collapsed .sidebar-brand {
    padding: 0 0.5rem;
    justify-content: center;
}

.sidebar.sidebar-collapsed .nav-section-title {
    opacity: 0;
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.sidebar.sidebar-collapsed .nav-label {
    opacity: 0;
    width: 0;
    margin: 0;
}

.sidebar.sidebar-collapsed .nav-link {
    justify-content: center;
    padding: 0.5rem;
    margin: 2px 0.75rem;
}

.sidebar.sidebar-collapsed .nav-icon {
    margin: 0;
}

.sidebar.sidebar-collapsed .sidebar-user-details {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar.sidebar-collapsed .sidebar-logout-btn {
    display: none;
}

.sidebar.sidebar-collapsed .sidebar-user {
    justify-content: center;
    padding: 0.5rem;
}

/* Collapsed Tooltip */
.sidebar.sidebar-collapsed .nav-link[data-tooltip] {
    position: relative;
}

.sidebar.sidebar-collapsed .nav-link[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--text-primary);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    z-index: 1100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.sidebar.sidebar-collapsed .nav-link[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    left: calc(100% + 6px);
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: var(--text-primary);
    z-index: 1100;
    pointer-events: none;
}

/* Mobile Overlay */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================
   TOP NAVBAR
   ========================================== */

.top-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    height: var(--topbar-height);
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 4px rgba(15, 40, 80, 0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    margin-left: var(--sidebar-width);
    transition: margin-left var(--sidebar-transition);
}

.top-navbar.sidebar-collapsed {
    margin-left: var(--sidebar-collapsed-width);
}

.topbar-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.sidebar-mobile-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.18s ease;
    margin-right: 0.75rem;
}

.sidebar-mobile-toggle:hover {
    background: var(--border-light);
    color: var(--text-primary);
}

.sidebar-collapse-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.18s ease;
    margin-right: 1rem;
}

.sidebar-collapse-btn:hover {
    background: var(--border-light);
    color: var(--text-primary);
    border-color: var(--corporate-blue-light);
}

.sidebar-collapse-btn i {
    transition: transform var(--sidebar-transition);
}

.sidebar-collapse-btn.rotated i {
    transform: rotate(180deg);
}

.page-header-content {
    display: flex;
    align-items: center;
}

.page-title {
    font-weight: 600;
    margin-bottom: 0;
    color: var(--text-primary);
    font-size: 1.125rem;
    letter-spacing: -0.02em;
}

.user-dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    background-color: transparent;
    border: none;
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
    transition: all 0.18s;
    font-size: 0.875rem;
}

.user-dropdown .dropdown-toggle:hover,
.user-dropdown .dropdown-toggle:focus {
    background-color: var(--border-light);
}

.user-dropdown .dropdown-toggle::after {
    margin-left: 0.5rem;
    opacity: 0.5;
}

.user-dropdown .dropdown-toggle .user-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.625rem;
    font-size: 0.8125rem;
}

.user-dropdown .dropdown-menu {
    padding: 0.375rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border-color);
    min-width: 220px;
    margin-top: 8px;
    animation: dropdown-fade 0.18s ease;
}

.dropdown-header-info {
    padding: 0.75rem 1rem;
}

.dropdown-user-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.dropdown-user-role {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

@keyframes dropdown-fade {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-dropdown .dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    color: var(--text-primary);
    border-radius: var(--radius-md);
    transition: all 0.15s;
}

.user-dropdown .dropdown-item:hover {
    background-color: var(--border-light);
}

.user-dropdown .dropdown-item i {
    margin-right: 0.625rem;
    color: var(--text-secondary);
    width: 16px;
    text-align: center;
}

.user-dropdown .dropdown-divider {
    margin: 0.25rem 0.5rem;
    opacity: 0.5;
}

/* ==========================================
   MAIN CONTENT
   ========================================== */

.main-content {
    margin-left: var(--sidebar-width);
    transition: margin-left var(--sidebar-transition);
    min-height: calc(100vh - var(--topbar-height));
    padding: 1.5rem 2rem;
    box-sizing: border-box;
    position: relative;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.main-content.sidebar-collapsed {
    margin-left: var(--sidebar-collapsed-width);
}

.main-content .container-fluid {
    padding: 0;
    margin: 0;
}

.container-fluid:not(.main-content) {
    padding: 1.5rem;
}

/* ==========================================
   FOOTER
   ========================================== */

.site-footer {
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    text-align: center;
    padding: 1rem 0;
    margin-left: var(--sidebar-width);
    transition: margin-left var(--sidebar-transition);
    font-size: 0.8125rem;
}

.site-footer.sidebar-collapsed {
    margin-left: var(--sidebar-collapsed-width);
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    border-radius: var(--radius-md);
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--card-shadow-hover);
    background: linear-gradient(135deg, #1e3a8a 0%, #0b7a70 100%);
}

.btn-secondary {
    background: var(--secondary-gradient);
    border: none;
    border-radius: var(--radius-md);
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-outline-secondary {
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    background: transparent;
    border-radius: var(--radius-md);
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.btn-outline-secondary:hover {
    background: var(--border-light);
    border-color: var(--border-color);
    color: var(--text-primary);
    transform: translateY(-1px);
}

/* ==========================================
   ALERTS
   ========================================== */

.alert {
    border: none;
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    box-shadow: var(--card-shadow);
}

.alert-success {
    background: var(--success-light);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: var(--danger-light);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background: var(--warning-light);
    color: var(--warning-color);
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background: var(--info-light);
    color: var(--info-color);
    border-left: 4px solid var(--info-color);
}

/* ==========================================
   CARDS
   ========================================== */

.dashboard-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    border: 1px solid var(--border-light);
    padding: 1.5rem;
    background: var(--card-bg);
    position: relative;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--border-color);
}

.dashboard-card .card-title {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dashboard-card .card-count {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.dashboard-card .icon-container {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
}

.dashboard-card .card-footer {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-top: 1rem;
}

.dashboard-card .card-footer a {
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--border-light);
    border-radius: var(--radius-md);
    margin: 0 -1.5rem -1.5rem -1.5rem;
    transition: all 0.2s;
}

.dashboard-card .card-footer a:hover {
    background: var(--border-color);
    transform: translateY(-1px);
}

.card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background-color: var(--card-bg);
    margin-bottom: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: all 0.2s;
}

.card:hover {
    box-shadow: var(--card-shadow-hover);
    border-color: var(--border-color);
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    background-color: var(--card-bg);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

.section-card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background-color: var(--card-bg);
    margin-bottom: 1.5rem;
    box-shadow: var(--card-shadow);
}

.section-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    background-color: var(--card-bg);
    display: flex;
    align-items: center;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.section-header .section-title {
    font-weight: 600;
    margin-bottom: 0;
    font-size: 1.125rem;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

.section-header .section-icon {
    margin-right: 0.75rem;
    color: var(--corporate-blue);
    font-size: 1.125rem;
}

/* Card Progress Bars */
.card-progress {
    height: 4px;
    margin-top: 1rem;
    border-radius: var(--radius-sm);
    background-color: var(--border-light);
    overflow: hidden;
}

.card-progress-bar {
    height: 100%;
    border-radius: var(--radius-sm);
    transition: width 0.3s ease;
}

/* ==========================================
   FORMS
   ========================================== */

.form-control {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    transition: all 0.2s;
    background-color: var(--card-bg);
    color: var(--text-primary);
}

.form-control:focus {
    border-color: var(--corporate-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
    outline: none;
}

.form-select {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    transition: all 0.2s;
    background-color: var(--card-bg);
    color: var(--text-primary);
}

.form-select:focus {
    border-color: var(--corporate-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
    outline: none;
}

.form-label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

/* ==========================================
   TABLES
   ========================================== */

.table {
    font-size: 0.875rem;
    color: var(--text-primary);
    border-collapse: separate;
    border-spacing: 0;
}

.table th {
    background-color: var(--border-light);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem;
    border: none;
    border-bottom: 1px solid var(--border-color);
}

.table td {
    padding: 1rem;
    border: none;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

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

.table-responsive {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-light);
}

/* ==========================================
   BADGES
   ========================================== */

.badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
    letter-spacing: 0.025em;
}

.badge.bg-success { background-color: var(--success-color) !important; color: white; }
.badge.bg-danger { background-color: var(--danger-color) !important; color: white; }
.badge.bg-warning { background-color: var(--warning-color) !important; color: white; }
.badge.bg-info { background-color: var(--info-color) !important; color: white; }
.badge.bg-secondary { background-color: var(--corporate-gray) !important; color: white; }

/* ==========================================
   PAGINATION
   ========================================== */

.pagination .page-link {
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin: 0 0.125rem;
    transition: all 0.2s;
}

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

.pagination .page-item.active .page-link {
    background: var(--primary-gradient);
    border-color: var(--corporate-blue);
    color: white;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item { font-size: 0.875rem; color: var(--text-secondary); }
.breadcrumb-item.active { color: var(--text-primary); font-weight: 500; }

/* ==========================================
   STATUS & ATTENDANCE
   ========================================== */

.status-present { background-color: var(--bs-success); }
.status-absent { background-color: var(--bs-danger); }
.status-leave { background-color: var(--bs-warning); }
.status-work_from_home { background-color: var(--bs-info); }
.status-pending { background-color: var(--bs-secondary); }
.status-approved { background-color: var(--bs-success); }
.status-rejected { background-color: var(--bs-danger); }

.notification-item { border-left: 4px solid transparent; }
.notification-birthday { border-left-color: var(--bs-primary); }
.notification-anniversary { border-left-color: var(--bs-success); }
.notification-document { border-left-color: var(--bs-danger); }

.document-card { transition: all 0.2s; }
.document-card:hover { background-color: rgba(var(--bs-secondary-rgb), 0.1); }

.star-rating { font-size: 1.5rem; color: var(--bs-warning); }

.rating-bar {
    height: 8px;
    background-color: var(--bs-secondary);
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.rating-fill {
    height: 100%;
    border-radius: 4px;
    background-color: var(--bs-primary);
}

.upload-area {
    border: 2px dashed var(--bs-secondary);
    border-radius: 5px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.upload-area:hover, .upload-area.dragover {
    border-color: var(--bs-primary);
    background-color: rgba(var(--bs-primary-rgb), 0.05);
}

.attendance-present td:first-child { border-left: 4px solid var(--bs-success); }
.attendance-absent td:first-child { border-left: 4px solid var(--bs-danger); }
.attendance-leave td:first-child { border-left: 4px solid var(--bs-warning); }
.attendance-work_from_home td:first-child { border-left: 4px solid var(--bs-info); }

.login-container { max-width: 450px; }
.login-logo { margin-bottom: 2rem; }

/* ==========================================
   ATTENDANCE OVERVIEW (Dashboard)
   ========================================== */

/* Two-column layout: chart left, stat rows right */
.att-overview-row {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

/* Donut chart wrapper */
.att-chart-wrap {
    position: relative;
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.att-chart-wrap canvas {
    width: 150px !important;
    height: 150px !important;
}

/* Center label inside the donut */
.att-chart-center {
    position: absolute;
    text-align: center;
    pointer-events: none;
}

.att-rate-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--deep-navy);
    line-height: 1;
}

.att-rate-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

/* Stat rows (right side) */
.att-stat-rows {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.att-stat-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    border-radius: 10px;
}

.att-row-present { background: rgba(34, 197, 94, 0.07);  border-left: 3px solid #22c55e; }
.att-row-wfh     { background: rgba(29, 78, 216, 0.07);  border-left: 3px solid #1d4ed8; }
.att-row-absent  { background: rgba(249, 115, 22, 0.07); border-left: 3px solid #f97316; }

.att-row-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: white;
    flex-shrink: 0;
}

.att-row-present .att-row-icon { background: linear-gradient(135deg, #22c55e, #16a34a); }
.att-row-wfh     .att-row-icon { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.att-row-absent  .att-row-icon { background: linear-gradient(135deg, #f97316, #ea580c); }

.att-row-body { flex: 1; min-width: 0; }

.att-row-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.25rem;
}

.att-row-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
}

.att-row-num {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--deep-navy);
    line-height: 1;
}

.att-row-bar {
    height: 5px;
    border-radius: 99px;
    background: rgba(0, 0, 0, 0.07);
    overflow: hidden;
    margin-bottom: 0.2rem;
}

.att-row-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 1.2s cubic-bezier(.4,0,.2,1);
    min-width: 4px;
}

.att-fill-present { background: linear-gradient(90deg, #22c55e, #16a34a); }
.att-fill-wfh     { background: linear-gradient(90deg, #3b82f6, #1d4ed8); }
.att-fill-absent  { background: linear-gradient(90deg, #f97316, #ea580c); }

.att-row-pct {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Segmented breakdown bar */
.att-seg-bar-wrap {
    margin-top: 0.25rem;
}

.att-seg-bar {
    display: flex;
    height: 8px;
    border-radius: 99px;
    overflow: hidden;
    gap: 2px;
    margin-bottom: 0.5rem;
    background: rgba(0,0,0,0.05);
}

.att-seg {
    border-radius: 99px;
    transition: width 1.2s cubic-bezier(.4,0,.2,1);
    min-width: 6px;
}

.att-seg-present { background: #22c55e; }
.att-seg-wfh     { background: #3b82f6; }
.att-seg-absent  { background: #f97316; }

.att-seg-legend {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

.att-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.att-legend-present { background: #22c55e; }
.att-legend-wfh     { background: #3b82f6; }
.att-legend-absent  { background: #f97316; }

/* Legacy stat-icon used elsewhere in attendance page */
.stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.25rem;
    color: white;
}

.chart-container {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-width);
        box-shadow: none;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
    }
    
    .top-navbar {
        margin-left: 0 !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 1rem;
    }
    
    .site-footer {
        margin-left: 0 !important;
    }
}

@media (max-width: 768px) {
    .att-overview-row {
        flex-direction: column;
        align-items: stretch;
    }
    .att-chart-wrap {
        align-self: center;
    }
    .main-content {
        padding: 0.75rem;
    }
}

/* ==========================================
   DASHBOARD — WELCOME BANNER
   ========================================== */

.dash-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #1d4ed8 0%, #0d9488 100%);
    border-radius: var(--radius-xl);
    padding: 1.5rem 2rem;
    color: white;
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.25);
}

.dash-welcome-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    letter-spacing: -0.025em;
    color: #fff;
}

.dash-welcome-sub {
    font-size: 0.875rem;
    opacity: 0.82;
    margin: 0;
    color: #fff;
}

.dash-welcome-badge {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--radius-lg);
    padding: 0.5rem 1.125rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    backdrop-filter: blur(4px);
}

/* ==========================================
   DASHBOARD — KPI STAT CARDS
   ========================================== */

.kpi-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: none;
    color: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}

.kpi-blue  { background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 55%, #2563eb 100%); }
.kpi-teal  { background: linear-gradient(135deg, #134e4a 0%, #0d9488 55%, #14b8a6 100%); }
.kpi-amber { background: linear-gradient(135deg, #92400e 0%, #d97706 55%, #f59e0b 100%); }
.kpi-red   { background: linear-gradient(135deg, #7f1d1d 0%, #dc2626 55%, #ef4444 100%); }

.kpi-body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1rem;
    flex: 1;
}

.kpi-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.82;
    margin-bottom: 0.5rem;
}

.kpi-value {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 0.5rem;
}

.kpi-sub {
    font-size: 0.78rem;
    opacity: 0.75;
    font-weight: 500;
}

.kpi-icon-wrap {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    flex-shrink: 0;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.22);
}

.kpi-badge {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    padding: 0.1rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
}

.kpi-progress-wrap {
    margin: 0 1.5rem 0.75rem;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    overflow: hidden;
}

.kpi-progress-bar {
    height: 100%;
    background: rgba(255,255,255,0.75);
    border-radius: 2px;
    transition: width 1s ease;
    min-width: 4px;
}

.kpi-footer {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 0.75rem 1.5rem;
    background: rgba(0,0,0,0.08);
}

.kpi-footer a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}

.kpi-footer a:hover {
    color: #fff;
}

/* ==========================================
   DASHBOARD — PANEL CARDS
   ========================================== */

.dash-panel {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.dash-panel:hover {
    box-shadow: var(--card-shadow-hover);
}

.dash-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.125rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(90deg, #f0f9ff 0%, #f0fdf9 100%);
}

.dash-panel-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.dash-panel-icon {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--primary-gradient);
    color: white;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.dash-panel-date {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
}

.dash-panel-body {
    padding: 1.5rem;
    flex: 1;
}

.dash-panel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.5rem;
    border-top: 1px solid var(--border-light);
    background: var(--border-light);
}

.dash-btn-outline {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--corporate-blue);
    border: 1px solid var(--corporate-blue);
    background: transparent;
    border-radius: var(--radius-md);
    padding: 0.375rem 0.875rem;
    transition: all 0.18s;
}

.dash-btn-outline:hover {
    background: var(--corporate-blue);
    color: white;
}

/* ==========================================
   UPCOMING EVENTS PANEL
   ========================================== */

.evnt-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--corporate-blue), var(--corporate-teal));
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    margin-left: auto;
}

.evnt-list {
    display: flex;
    flex-direction: column;
}

.evnt-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.15s;
}

.evnt-item:last-child { border-bottom: none; }
.evnt-item:hover { background: rgba(241, 245, 249, 0.7); }

/* Left-side color accent */
.evnt-birthday   { border-left: 3px solid #6366f1; }
.evnt-anniversary { border-left: 3px solid #0d9488; }
.evnt-document   { border-left: 3px solid #f97316; }

/* Icon circle */
.evnt-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}

.evnt-icon-birthday   { background: linear-gradient(135deg, #818cf8, #6366f1); }
.evnt-icon-anniversary { background: linear-gradient(135deg, #2dd4bf, #0d9488); }
.evnt-icon-document   { background: linear-gradient(135deg, #fb923c, #f97316); }

/* Body */
.evnt-body { flex: 1; min-width: 0; }

.evnt-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--deep-navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.15rem;
}

.evnt-sub {
    font-size: 0.73rem;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.evnt-dot-birthday   { font-size: 0.35rem; color: #6366f1; }
.evnt-dot-anniversary { font-size: 0.35rem; color: #0d9488; }
.evnt-dot-document   { font-size: 0.35rem; color: #f97316; }

/* Right-side countdown pill */
.evnt-right { flex-shrink: 0; }

.evnt-pill {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.evnt-pill-today   { background: #dcfce7; color: #15803d; }
.evnt-pill-soon    { background: #fef9c3; color: #854d0e; }
.evnt-pill-blue    { background: #dbeafe; color: #1d4ed8; }
.evnt-pill-teal    { background: #ccfbf1; color: #0d9488; }
.evnt-pill-warn    { background: #ffedd5; color: #c2410c; }
.evnt-pill-urgent  { background: #fee2e2; color: #b91c1c; }
.evnt-pill-expired { background: #fecaca; color: #7f1d1d; }

/* Empty state */
.evnt-empty {
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
}

.evnt-empty i {
    font-size: 2.25rem;
    color: #22c55e;
    opacity: 0.6;
    display: block;
    margin-bottom: 0.75rem;
}

.evnt-empty-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.evnt-empty-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    max-width: 240px;
    margin: 0 auto;
}

/* ==========================================
   DASHBOARD — HOLIDAYS TABLE
   ========================================== */

.dash-table {
    margin: 0;
    font-size: 0.875rem;
}

.dash-table thead th {
    background: var(--border-light);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    border-top: none;
}

.dash-table tbody td {
    padding: 0.875rem 1.25rem;
    color: var(--text-primary);
    border-color: var(--border-light);
    vertical-align: middle;
}

.dash-table tbody tr:hover {
    background: var(--border-light);
}

.holiday-date-badge {
    display: inline-block;
    background: linear-gradient(135deg, #dbeafe, #ccfbf1);
    color: #1d4ed8;
    border-radius: var(--radius-md);
    padding: 0.2rem 0.625rem;
    font-size: 0.8125rem;
    font-weight: 600;
}

/* ==========================================
   EMPLOYEE DIRECTORY
   ========================================== */

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

.dir-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    margin: 0;
}

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

.dir-count-badge {
    display: inline-block;
    background: var(--primary-gradient);
    color: white;
    border-radius: 20px;
    padding: 0.1rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 700;
    vertical-align: middle;
}

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

.dir-btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.5rem 1.125rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.18s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.dir-btn-primary:hover { color: white; opacity: 0.9; transform: translateY(-1px); }

.dir-btn-secondary {
    background: transparent;
    color: var(--corporate-blue);
    border: 1.5px solid var(--corporate-blue);
    border-radius: var(--radius-md);
    padding: 0.5rem 1.125rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.18s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.dir-btn-secondary:hover { background: var(--corporate-blue); color: white; }

.dir-filter-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 0.75rem 1.25rem;
    flex-wrap: wrap;
}

.dir-search-wrap {
    position: relative;
    flex: 1;
    min-width: 220px;
}

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

.dir-search-input {
    width: 100%;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem 2.5rem 0.5rem 2.25rem;
    font-size: 0.875rem;
    background: var(--border-light);
    color: var(--text-primary);
    outline: none;
    transition: all 0.18s;
}
.dir-search-input:focus {
    border-color: var(--corporate-blue);
    background: white;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.08);
}

.dir-clear-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.15s;
}
.dir-clear-btn:hover { color: var(--text-primary); }

.dir-status-tabs {
    display: flex;
    gap: 0.375rem;
    flex-shrink: 0;
}

.dir-tab {
    padding: 0.4rem 0.875rem;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-secondary);
    border: 1.5px solid var(--border-color);
    background: transparent;
    transition: all 0.15s;
}
.dir-tab:hover { border-color: var(--corporate-blue); color: var(--corporate-blue); }
.dir-tab-active { background: var(--corporate-blue) !important; color: white !important; border-color: var(--corporate-blue) !important; }
.dir-tab-red:hover { border-color: var(--danger-color); color: var(--danger-color); }
.dir-tab-red-active { background: var(--danger-color) !important; color: white !important; border-color: var(--danger-color) !important; }

.dir-table-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.dir-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.dir-table thead th {
    background: linear-gradient(90deg, #f0f9ff, #f0fdf9);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.875rem 1.125rem;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.dir-table tbody td {
    padding: 0.875rem 1.125rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
    color: var(--text-primary);
}

.dir-table tbody tr:last-child td { border-bottom: none; }

.dir-table tbody tr:hover { background: var(--border-light); }

.dir-employee-cell {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.dir-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    letter-spacing: -0.01em;
}

.dir-avatar-0 { background: linear-gradient(135deg, #1d4ed8, #0d9488); }
.dir-avatar-1 { background: linear-gradient(135deg, #0d9488, #059669); }
.dir-avatar-2 { background: linear-gradient(135deg, #7c3aed, #1d4ed8); }
.dir-avatar-3 { background: linear-gradient(135deg, #0369a1, #0d9488); }
.dir-avatar-4 { background: linear-gradient(135deg, #059669, #0d9488); }
.dir-avatar-5 { background: linear-gradient(135deg, #1e3a8a, #1d4ed8); }

.dir-employee-name {
    font-weight: 700;
    color: var(--corporate-blue);
    text-decoration: none;
    font-size: 0.875rem;
    display: block;
}
.dir-employee-name:hover { color: var(--corporate-teal); }

.dir-employee-designation {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.dir-employee-contact {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.125rem;
}

.dir-dept-badge {
    background: #dbeafe;
    color: #1d4ed8;
    border-radius: var(--radius-md);
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.dir-type-badge {
    border-radius: var(--radius-md);
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-block;
}
.dir-type-office { background: #ccfbf1; color: #0d9488; }
.dir-type-mfg { background: #fef3c7; color: #d97706; }

.dir-location-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.dir-status {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 20px;
}
.dir-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.dir-status-active { background: #d1fae5; color: #059669; }
.dir-status-active .dir-status-dot { background: #059669; }
.dir-status-inactive { background: #fee2e2; color: #dc2626; }
.dir-status-inactive .dir-status-dot { background: #dc2626; }
.dir-status-other { background: #f1f5f9; color: #64748b; }
.dir-status-other .dir-status-dot { background: #64748b; }

.dir-date {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.dir-doc-alert {
    display: inline-block;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 20px;
    padding: 0.125rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    margin: 0.1rem;
}

.dir-doc-ok {
    font-size: 0.8rem;
    color: #059669;
    font-weight: 600;
}

.dir-actions {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
}

.dir-action-btn {
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.15s;
    border: 1.5px solid transparent;
}
.dir-action-view { color: var(--corporate-blue); border-color: #dbeafe; background: #f0f9ff; }
.dir-action-view:hover { background: var(--corporate-blue); color: white; border-color: var(--corporate-blue); }
.dir-action-edit { color: var(--corporate-teal); border-color: #ccfbf1; background: #f0fdf9; }
.dir-action-edit:hover { background: var(--corporate-teal); color: white; border-color: var(--corporate-teal); }
.dir-action-salary { color: #059669; border-color: #d1fae5; background: #f0fdf4; }
.dir-action-salary:hover { background: #059669; color: white; border-color: #059669; }
.dir-action-appraisal { color: #d97706; border-color: #fef3c7; background: #fffbeb; }
.dir-action-appraisal:hover { background: #d97706; color: white; border-color: #d97706; }

.dir-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    font-size: 1rem;
}
.dir-empty-state i { font-size: 3rem; opacity: 0.3; display: block; margin-bottom: 1rem; }

.dir-no-results {
    padding: 1.25rem 1.5rem;
    background: #f0f9ff;
    color: var(--text-secondary);
    font-size: 0.875rem;
    border-top: 1px solid var(--border-light);
}

/* ==========================================
   EMPLOYEE PROFILE
   ========================================== */

.profile-hero {
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #0b1f35 0%, #1d4ed8 60%, #0d9488 100%);
    box-shadow: 0 6px 24px rgba(13, 148, 136, 0.2);
    margin-bottom: 0;
}

.profile-hero-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 2rem 2rem 1.75rem;
    position: relative;
    z-index: 1;
}

.profile-hero-left {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.profile-avatar-lg {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 3px solid rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.625rem;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
    backdrop-filter: blur(8px);
    letter-spacing: -0.02em;
}

.profile-hero-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.03em;
    margin: 0 0 0.25rem;
}

.profile-hero-role {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.profile-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.65);
}

.profile-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.profile-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.625rem;
    border-radius: 20px;
}
.profile-status-dot { width: 6px; height: 6px; border-radius: 50%; }
.profile-status-active { background: rgba(16,185,129,0.2); color: #6ee7b7; }
.profile-status-active .profile-status-dot { background: #6ee7b7; }
.profile-status-inactive { background: rgba(239,68,68,0.2); color: #fca5a5; }
.profile-status-inactive .profile-status-dot { background: #fca5a5; }
.profile-status-other { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.7); }
.profile-status-other .profile-status-dot { background: rgba(255,255,255,0.7); }

.profile-type-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.85);
}

.profile-tenure-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.625rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.75);
}

.profile-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-start;
}

.profile-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4rem 0.875rem;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 600;
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.2);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.18s;
    backdrop-filter: blur(4px);
}
.profile-action-btn:hover { background: rgba(255,255,255,0.25); color: white; }
.profile-action-primary { background: rgba(255,255,255,0.9) !important; color: var(--corporate-blue) !important; border-color: transparent !important; }
.profile-action-primary:hover { background: white !important; }
.profile-action-danger { background: rgba(220,38,38,0.25) !important; border-color: rgba(220,38,38,0.4) !important; }
.profile-action-success { background: rgba(5,150,105,0.25) !important; border-color: rgba(5,150,105,0.4) !important; }

/* Profile Info Cards */
.profile-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.profile-card:hover { box-shadow: var(--card-shadow-hover); }

.profile-card-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(90deg, #f0f9ff, #f0fdf9);
}

.profile-card-icon {
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: white;
    flex-shrink: 0;
}
.profile-icon-blue { background: var(--primary-gradient); }
.profile-icon-teal { background: linear-gradient(135deg, #0d9488, #14b8a6); }
.profile-icon-green { background: linear-gradient(135deg, #059669, #10b981); }
.profile-icon-amber { background: linear-gradient(135deg, #d97706, #f59e0b); }

.profile-card-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.profile-card-header-action {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--corporate-blue);
    text-decoration: none;
    background: #dbeafe;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.25rem 0.625rem;
    cursor: pointer;
    transition: all 0.15s;
}
.profile-card-header-action:hover { background: var(--corporate-blue); color: white; }

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

.profile-info-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.8375rem;
}
.profile-info-row:last-child { border-bottom: none; }

.profile-info-label {
    color: var(--text-secondary);
    font-weight: 500;
    flex-shrink: 0;
    min-width: 120px;
}

.profile-info-value {
    color: var(--text-primary);
    font-weight: 500;
    text-align: right;
    word-break: break-word;
}

.profile-info-divider {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 0.75rem 0 0.25rem;
    border-bottom: 1px solid var(--border-light);
}

/* Document Status Items */
.doc-status-item {
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border-light);
}
.doc-status-item:last-child { border-bottom: none; }

.doc-status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.375rem;
}

.doc-status-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.doc-status-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
}
.doc-badge-ok { background: #d1fae5; color: #059669; }
.doc-badge-danger { background: #fee2e2; color: #dc2626; }
.doc-badge-neutral { background: #f1f5f9; color: #64748b; }

.doc-status-details {
    display: flex;
    gap: 1rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Leave Balance */
.leave-law-badge {
    display: inline-block;
    background: #dbeafe;
    color: #1d4ed8;
    border-radius: var(--radius-md);
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.leave-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    text-align: center;
}

.leave-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.leave-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0.25rem;
}

.leave-progress-wrap {
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.leave-progress-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 1s ease;
    min-width: 4px;
}
.bar-success { background: linear-gradient(90deg, #059669, #10b981); }
.bar-warning { background: linear-gradient(90deg, #d97706, #f59e0b); }
.bar-danger { background: linear-gradient(90deg, #dc2626, #ef4444); }

.leave-progress-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.375rem; }
.leave-sandwich-note { background: #fef3c7; color: #d97706; border-radius: var(--radius-md); padding: 0.5rem 0.75rem; font-size: 0.78rem; font-weight: 600; }
.leave-policy-note { font-size: 0.78rem; }

/* Leave History Stats */
.leave-hist-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.leave-hist-stat { text-align: center; }

.leave-hist-val {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.leave-hist-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0.2rem;
}

.lh-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
}
.lh-badge-info { background: #ccfbf1; color: #0d9488; }
.lh-badge-success { background: #d1fae5; color: #059669; }
.lh-badge-warning { background: #fef3c7; color: #d97706; }
.lh-badge-danger { background: #fee2e2; color: #dc2626; }
.lh-badge-primary { background: #dbeafe; color: #1d4ed8; }
.lh-badge-neutral { background: #f1f5f9; color: #64748b; }

/* Documents Items */
.profile-doc-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.15s;
}
.profile-doc-item:last-child { border-bottom: none; }
.profile-doc-item:hover { background: var(--border-light); }

.profile-doc-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #f0f9ff, #ccfbf1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--corporate-blue);
    font-size: 0.875rem;
    flex-shrink: 0;
}

.profile-doc-info { flex: 1; min-width: 0; }
.profile-doc-name { font-size: 0.875rem; font-weight: 600; color: var(--text-primary); }
.profile-doc-date { font-size: 0.75rem; color: var(--text-muted); }

.profile-doc-actions { display: flex; gap: 0.25rem; }

.profile-doc-btn {
    width: 1.875rem;
    height: 1.875rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.75rem;
    border: 1.5px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
}
.profile-doc-btn:hover { background: var(--corporate-blue); color: white; border-color: var(--corporate-blue); }
.profile-doc-btn-danger:hover { background: var(--danger-color) !important; color: white !important; border-color: var(--danger-color) !important; }

/* Notes */
.note-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.15s;
}
.note-item:last-child { border-bottom: none; }
.note-item:hover { background: var(--border-light); }

.note-tag {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 0.125rem;
}
.note-tag-primary { background: #dbeafe; color: #1d4ed8; }
.note-tag-secondary { background: #f1f5f9; color: #64748b; }

.note-content { flex: 1; min-width: 0; }
.note-text { font-size: 0.875rem; color: var(--text-primary); margin: 0 0 0.375rem; white-space: pre-wrap; line-height: 1.6; }
.note-meta { font-size: 0.75rem; color: var(--text-muted); }

/* Shared empty state */
.profile-empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.profile-empty-state i { font-size: 2.5rem; opacity: 0.3; display: block; margin-bottom: 0.875rem; }

/* ==========================================
   PUBLIC HOLIDAYS PAGE
   ========================================== */

/* Page title area */
.hol-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--corporate-teal);
    margin-bottom: 0.3rem;
}

.hol-title {
    font-size: 1.625rem;
    font-weight: 800;
    color: var(--deep-navy);
    margin: 0 0 0.25rem;
    line-height: 1.2;
}

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

/* KPI cards (light theme) */
.hol-kpi-card {
    border-radius: 14px;
    padding: 1.25rem 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    border: 1px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hol-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.hol-kpi-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.hol-kpi-card-num {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.hol-kpi-card-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Blue card */
.hol-kpi-card-blue {
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    border-color: #bfdbfe;
}
.hol-kpi-card-blue .hol-kpi-card-icon { background: #1d4ed8; color: #fff; }
.hol-kpi-card-blue .hol-kpi-card-num  { color: #1e40af; }
.hol-kpi-card-blue .hol-kpi-card-label { color: #3b82f6; }

/* Green card */
.hol-kpi-card-green {
    background: linear-gradient(135deg, #dcfce7 0%, #f0fdf4 100%);
    border-color: #bbf7d0;
}
.hol-kpi-card-green .hol-kpi-card-icon { background: #16a34a; color: #fff; }
.hol-kpi-card-green .hol-kpi-card-num  { color: #15803d; }
.hol-kpi-card-green .hol-kpi-card-label { color: #22c55e; }

/* Grey card */
.hol-kpi-card-grey {
    background: linear-gradient(135deg, #f1f5f9 0%, #f8fafc 100%);
    border-color: #e2e8f0;
}
.hol-kpi-card-grey .hol-kpi-card-icon { background: #64748b; color: #fff; }
.hol-kpi-card-grey .hol-kpi-card-num  { color: #334155; }
.hol-kpi-card-grey .hol-kpi-card-label { color: #94a3b8; }

/* Teal card */
.hol-kpi-card-teal {
    background: linear-gradient(135deg, #ccfbf1 0%, #f0fdfa 100%);
    border-color: #99f6e4;
}
.hol-kpi-card-teal .hol-kpi-card-icon { background: #0d9488; color: #fff; }
.hol-kpi-card-teal .hol-kpi-card-num  { color: #0d9488; }
.hol-kpi-card-teal .hol-kpi-card-label { color: #14b8a6; }

/* Filter bar */
.hol-filter-bar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.hol-filter-group {
    display: flex;
    gap: 2px;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 2px;
}

.hol-filter-btn {
    border: none;
    background: transparent;
    padding: 0.25rem 0.7rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
}

.hol-filter-btn:hover { background: rgba(0,0,0,0.06); }
.hol-filter-btn.active { background: #fff; color: var(--corporate-blue); box-shadow: 0 1px 3px rgba(0,0,0,0.1); }

.hol-uae.active   { color: #1d4ed8; }
.hol-india.active { color: #d97706; }
.hol-both.active  { color: #0d9488; }

/* Holiday table */
.hol-table th, .hol-table td { vertical-align: middle; }

.hol-name-cell {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.hol-date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 50px;
    border-radius: 10px;
    flex-shrink: 0;
}

.hol-date-upcoming {
    background: linear-gradient(135deg, var(--corporate-blue), #1e40af);
    color: #fff;
}

.hol-date-past {
    background: #f1f5f9;
    color: #94a3b8;
}

.hol-date-today {
    background: linear-gradient(135deg, var(--corporate-teal), #0a7a70);
    color: #fff;
}

.hol-date-day {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1;
}

.hol-date-mon {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.85;
}

.hol-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--deep-navy);
    margin-bottom: 0.2rem;
}

.hol-status-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hol-badge-upcoming { background: #dbeafe; color: #1d4ed8; }
.hol-badge-past     { background: #f1f5f9; color: #94a3b8; }
.hol-badge-today    { background: #ccfbf1; color: #0d9488; }

.hol-full-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.hol-year-label {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Country badges */
.hol-country-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
}

.hol-country-uae   { background: #dbeafe; color: #1d4ed8; }
.hol-country-india { background: #fef9c3; color: #92400e; }
.hol-country-both  { background: #ccfbf1; color: #0d9488; }

/* Delete modal */
.hol-delete-preview {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.hol-delete-name {
    font-weight: 700;
    color: var(--deep-navy);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.hol-delete-date { font-size: 0.78rem; color: var(--text-muted); }

/* No results */
.hol-no-results {
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.hol-no-results i { font-size: 2rem; opacity: 0.3; display: block; margin-bottom: 0.75rem; }

/* Form note */
.hol-form-note {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.78rem;
    color: #0369a1;
    line-height: 1.5;
}

/* Stats list */
.hol-stat-list { display: flex; flex-direction: column; }

.hol-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.825rem;
}

.hol-stat-label { color: var(--text-secondary); font-weight: 500; }
.hol-stat-val   { font-weight: 700; color: var(--deep-navy); font-size: 1rem; }

/* Calendar view */
.hol-month-card {
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.hol-month-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 1rem;
    background: linear-gradient(90deg, var(--corporate-blue), var(--corporate-teal));
}

.hol-month-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
}

.hol-month-count {
    background: rgba(255,255,255,0.25);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: 10px;
}

.hol-month-body {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hol-cal-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem;
    border-radius: 7px;
}

.hol-cal-upcoming { background: #f0f9ff; }
.hol-cal-past     { background: #f8fafc; }

.hol-cal-day {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
}

.hol-cal-upcoming .hol-cal-day { background: var(--corporate-blue); color: #fff; }
.hol-cal-past     .hol-cal-day { background: #e2e8f0; color: #94a3b8; }

.hol-cal-info { flex: 1; min-width: 0; }

.hol-cal-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hol-cal-tag {
    font-size: 0.58rem;
    font-weight: 700;
    padding: 0.05rem 0.35rem;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hol-cal-uae   { background: #dbeafe; color: #1d4ed8; }
.hol-cal-india { background: #fef9c3; color: #92400e; }
.hol-cal-both  { background: #ccfbf1; color: #0d9488; }

/* ==============================
   EMPLOYEE ASSETS
   ============================== */
.asset-type-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.asset-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.asset-icon-laptop      { background: #dbeafe; color: #1d4ed8; }
.asset-icon-mobile_phone{ background: #dcfce7; color: #15803d; }
.asset-icon-sim_card    { background: #fef9c3; color: #ca8a04; }
.asset-icon-other       { background: #f3e8ff; color: #7c3aed; }

.asset-type-label {
    font-weight: 600;
    color: #0b1f35;
    font-size: 0.875rem;
}

.asset-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

.asset-active   { background: #dcfce7; color: #15803d; }
.asset-active .dir-status-dot   { background: #22c55e; width:7px;height:7px;border-radius:50%;display:inline-block; }
.asset-returned { background: #f1f5f9; color: #64748b; }
.asset-returned .dir-status-dot { background: #94a3b8; width:7px;height:7px;border-radius:50%;display:inline-block; }

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
    .no-print { display: none !important; }
    .print-only { display: block !important; }
    
    .sidebar, .top-navbar, .site-footer { display: none !important; }
    
    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
    }
    
    .container-fluid {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    body {
        background-color: #fff !important;
        color: #000 !important;
    }
}
