body {
    font-family: "Inter", Arial, sans-serif !important;
}

/*
 * The colors below are deliberately light-mode only (html:not([data-bs-theme="dark"])).
 * The base template already ships a complete, separately-tuned dark palette
 * via [data-bs-theme=dark] variables in styles.css — these overrides must
 * not leak into it, or dark mode would render with inverted/unreadable colors.
 */
html:not([data-bs-theme="dark"]) {
    --bs-body-color: #344054 !important;
    --bs-body-color-rgb: 52, 64, 84 !important;
    --bs-heading-color: #0C243C !important;
}

html:not([data-bs-theme="dark"]) body {
    color: #344054 !important;
}

html:not([data-bs-theme="dark"]) h1,
html:not([data-bs-theme="dark"]) h2,
html:not([data-bs-theme="dark"]) h3,
html:not([data-bs-theme="dark"]) h4,
html:not([data-bs-theme="dark"]) h5,
html:not([data-bs-theme="dark"]) h6,
html:not([data-bs-theme="dark"]) .h1,
html:not([data-bs-theme="dark"]) .h2,
html:not([data-bs-theme="dark"]) .h3,
html:not([data-bs-theme="dark"]) .h4,
html:not([data-bs-theme="dark"]) .h5,
html:not([data-bs-theme="dark"]) .h6,
html:not([data-bs-theme="dark"]) .card-title,
html:not([data-bs-theme="dark"]) .app-page-title,
html:not([data-bs-theme="dark"]) .box-title {
    color: #0C243C !important;
}

html:not([data-bs-theme="dark"]) .form-control,
html:not([data-bs-theme="dark"]) .form-select,
html:not([data-bs-theme="dark"]) textarea.form-control,
html:not([data-bs-theme="dark"]) input[type="file"].form-control {
    background-color: #fbfdff;
    border: 1.5px solid #9fb1c5;
    box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.03);
}

html:not([data-bs-theme="dark"]) .form-control:focus,
html:not([data-bs-theme="dark"]) .form-select:focus,
html:not([data-bs-theme="dark"]) textarea.form-control:focus {
    background-color: #ffffff;
    border-color: #1769aa;
    box-shadow: 0 0 0 0.18rem rgba(23, 105, 170, 0.18);
}

html:not([data-bs-theme="dark"]) label,
html:not([data-bs-theme="dark"]) .form-label,
html:not([data-bs-theme="dark"]) .card-body label,
html:not([data-bs-theme="dark"]) .card label,
html:not([data-bs-theme="dark"]) form label,
html:not([data-bs-theme="dark"]) label.form-check-label {
    color: #26384d !important;
    font-weight: 600;
}

html:not([data-bs-theme="dark"]) .card {
    border: 1px solid #d5dee8;
}

html:not([data-bs-theme="dark"]) .card-header {
    background: #f4f8fc;
    border-bottom-color: #d5dee8;
}

html:not([data-bs-theme="dark"]) .input-group-text {
    border-color: #9fb1c5;
    background-color: #eef4fa;
    color: #26384d;
}

html:not([data-bs-theme="dark"]) .form-check-input {
    border: 1.5px solid #7f94ad;
}

/*
 * Dark mode: cards inherit the page background by default (--bs-card-bg
 * resolves to --bs-body-bg), so they barely stand out. Give them a visibly
 * lighter surface + a real border, and brighten body/heading text a touch
 * for readability.
 */
html[data-bs-theme="dark"] {
    --bs-body-color: #c3c8e0 !important;
    --bs-heading-color: #ffffff !important;
}

html[data-bs-theme="dark"] body {
    color: #c3c8e0;
}

html[data-bs-theme="dark"] .card {
    --bs-card-bg: #32354f;
    border: 1px solid #454a6e;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

html[data-bs-theme="dark"] .card-header {
    border-bottom-color: #454a6e;
}

html[data-bs-theme="dark"] label,
html[data-bs-theme="dark"] .form-label,
html[data-bs-theme="dark"] label.form-check-label {
    color: #c3c8e0;
}

html[data-bs-theme="dark"] .form-control,
html[data-bs-theme="dark"] .form-select,
html[data-bs-theme="dark"] textarea.form-control {
    background-color: #2c2f49;
    border-color: #454a6e;
    color: #e4e6f5;
}

/* .text-dark reads as near-black in light mode; force it bright in dark mode
   (card titles, launcher tile labels, etc. use this class literally). */
html[data-bs-theme="dark"] .text-dark,
html[data-bs-theme="dark"] .launcher-tile-label {
    color: #ffffff !important;
}

/* The "-subtle" icon-badge backgrounds resolve to near-black in dark mode,
   so colored icons barely read as colored at all. Lighten them to a visible
   tinted surface while keeping each accent's hue. */
html[data-bs-theme="dark"] {
    --bs-primary-bg-subtle: #1b2c5c;
    --bs-secondary-bg-subtle: #5a380f;
    --bs-success-bg-subtle: #164a37;
    --bs-info-bg-subtle: #0c4a62;
    --bs-warning-bg-subtle: #5a4212;
    --bs-danger-bg-subtle: #5a2015;
    --bs-dark-bg-subtle: #2c2f49;
}
.app-header-inner--no-toggler {
	padding-left: 25px;
}
@media (max-width: 1199.98px) {
	.app-header-inner--no-toggler {
		padding-left: 15px;
	}
}
.header-search-form {
	width: 320px;
	height: 42px;
	position: relative;
	display: flex;
	align-items: center;
}
@media (min-width: 1400px) {
	.header-search-form {
		width: 380px;
	}
}
.header-search-icon-wrapper,
.header-search-btn {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
	background: transparent !important;
	color: #8c93b0 !important;
	pointer-events: none;
	z-index: 3;
	line-height: 1;
}
.header-search-icon-wrapper i,
.header-search-btn i,
.header-search-icon-wrapper .fi,
.header-search-btn .fi {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	line-height: 1;
	margin: 0;
	padding: 0;
	vertical-align: middle;
}
.header-search-input,
#headerSearchInput {
	height: 42px !important;
	line-height: 42px !important;
	font-size: 14px !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	padding-left: 44px !important;
	padding-right: 16px !important;
	border-radius: 50rem !important;
	width: 100%;
}

.app-navbar .menu-item .menu-link > i {
	display: inline-flex;
	font-size: 18px;
	vertical-align: text-top;
	line-height: 1;
	margin-right: 8px;
	color: #316AFF;
}

.app-navbar .menubar .menu-link {
	border-radius: 8px;
	transition: all 0.18s ease;
}

.app-navbar .menubar .menu-link:hover,
.app-navbar .menubar .menu-link.active,
.app-navbar .menubar .menu-link.open {
	font-weight: 600;
}
.app-navbar-brand {
	width: var(--app-sidebar-width);
	min-width: var(--app-sidebar-width);
	height: var(--app-header-height);
	border-right: 1px solid var(--bs-border-color);
	display: block;
	align-items: center;
	gap: 15px;
	padding: 0px;
	transition-duration: 0.3s;
	transition-property: width;
	border-bottom: 1px solid var(--bs-border-color);
	background-color: var(--app-sidebar-bg);
	/* text-align: center; */
}

.app-navbar-brand .navbar-brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 8px 18px;
    overflow: hidden;
}

.app-navbar-brand .app-sidebar-logo {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 190px;
    max-height: calc(var(--app-header-height) - 16px);
    object-fit: contain;
    object-position: center;
}

[data-app-sidebar="mini"] .app-navbar-brand .navbar-brand-logo {
    padding: 10px;
}

.app-header .dropdown > a[aria-expanded] {
    text-decoration: none;
}

.app-header .dropdown-menu .avatar img,
.app-header .avatar > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-page {
    padding-left: 18px;
    padding-right: 18px;
}

.dashboard-page .app-page-head {
    margin-bottom: 28px;
}

@media (max-width: 575.98px) {
    .dashboard-page {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ==========================================================================
   Modern Notification Center Styles
   ========================================================================== */
:root {
    --notif-surface: #ffffff;
    --notif-border: #e6edf5;
    --notif-title-color: #1e293b;
    --notif-msg-color: #64748b;
    --notif-meta-color: #94a3b8;
    --notif-unread-bg: #f8faff;
    --notif-hover-bg: #f1f5f9;
    --notif-pill-bg: #f1f5f9;
    --notif-pill-color: #475569;
}

html[data-bs-theme="dark"] {
    --notif-surface: #272a3d;
    --notif-border: #363a54;
    --notif-title-color: #ffffff;
    --notif-msg-color: #9ba3c0;
    --notif-meta-color: #727a98;
    --notif-unread-bg: rgba(49, 106, 255, 0.08);
    --notif-hover-bg: rgba(255, 255, 255, 0.03);
    --notif-pill-bg: #32364f;
    --notif-pill-color: #c3c8e0;
}

.notification-feed-card {
    background: var(--notif-surface);
    border: 1px solid var(--notif-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.notification-feed-header {
    background: var(--notif-surface);
    border-bottom: 1px solid var(--notif-border);
    padding: 12px 20px;
}

.notification-row {
    padding: 16px 20px;
    border-bottom: 1px solid var(--notif-border);
    background: var(--notif-surface);
    transition: background-color 0.15s ease;
    position: relative;
}

.notification-row:last-child {
    border-bottom: none;
}

.notification-row:hover {
    background-color: var(--notif-hover-bg);
}

.notification-row.unread {
    background-color: var(--notif-unread-bg);
    border-left: 3px solid #316aff;
}

.notification-row.unread .notification-title {
    color: var(--notif-title-color);
    font-weight: 600;
}

.notification-row.read .notification-title {
    color: var(--notif-msg-color);
    font-weight: 500;
}

.notification-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.notification-title {
    font-size: 14.5px;
    line-height: 1.35;
    margin-bottom: 0;
    text-decoration: none;
}

.notification-title:hover {
    color: #316aff !important;
}

.notification-message {
    color: var(--notif-msg-color) !important;
    font-size: 13px;
    line-height: 1.5;
    margin-top: 4px;
    margin-bottom: 6px;
}

.notification-meta {
    color: var(--notif-meta-color) !important;
    font-size: 12px;
}

.notification-category-pill {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 20px;
    background: var(--notif-pill-bg);
    color: var(--notif-pill-color);
    text-transform: capitalize;
}

.notif-tab-pill {
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--notif-pill-color);
    background: transparent;
    border: 1px solid transparent;
    text-decoration: none;
    transition: all 0.15s ease;
}

.notif-tab-pill:hover {
    background: var(--notif-pill-bg);
    color: var(--notif-title-color);
}

.notif-tab-pill.active {
    background: #316aff;
    color: #ffffff;
    font-weight: 600;
}

.notif-tab-pill .badge {
    font-size: 11px;
    font-weight: 600;
}

/* ==========================================================
   Modern Sidebar (Universal for Admin, HR, and Employee)
   ========================================================== */
.app-menubar {
    background: #ffffff !important;
    border-right: 1px solid #eef2f6 !important;
}
.app-menubar .menubar,
.ess-menubar-active {
    padding-top: 6px;
}
.app-menubar .menubar .menu-link {
    transform: none !important;
    box-shadow: none !important;
}
.ess-profile-badge {
    background: #ffffff !important;
    border-bottom: 1px solid #f1f5f9;
}
.app-menubar .menubar .menu-item .menu-link,
.ess-menubar-active .menu-item .menu-link {
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    padding: 11px 20px;
    border-radius: 0;
    transition: all 0.18s ease;
    display: flex;
    align-items: center;
}
.app-menubar .menubar .menu-item .menu-link i:first-child,
.ess-menubar-active .menu-item .menu-link i:first-child {
    font-size: 17px;
    color: #64748b;
    margin-right: 14px;
    width: 20px;
    text-align: center;
    transition: color 0.18s ease;
}
.app-menubar .menubar .menu-item:hover > .menu-link,
.ess-menubar-active .menu-item:hover > .menu-link {
    background-color: #f8fafc !important;
    color: #1e293b !important;
}
.app-menubar .menubar .menu-item:hover > .menu-link i:first-child,
.ess-menubar-active .menu-item:hover > .menu-link i:first-child {
    color: #2563eb !important;
}

/* Active Top Level Item (Clean modern accent, no heavy dark box) */
.app-menubar .menubar > .menu-item.active > .menu-link,
.app-menubar .menubar > .menu-item > .menu-link.active,
.app-menubar .menubar > .menu-item.open > .menu-link.active,
.ess-menubar-active > .menu-item.active > .menu-link,
.ess-menubar-active > .menu-item > .menu-link.active {
    background-color: #eff6ff !important;
    color: #2563eb !important;
    font-weight: 600 !important;
    border-left: 4px solid #2563eb !important;
    box-shadow: none !important;
}
.app-menubar .menubar > .menu-item.active > .menu-link i:first-child,
.app-menubar .menubar > .menu-item > .menu-link.active i:first-child,
.app-menubar .menubar > .menu-item.open > .menu-link.active i:first-child,
.ess-menubar-active > .menu-item.active > .menu-link i:first-child,
.ess-menubar-active > .menu-item > .menu-link.active i:first-child {
    color: #2563eb !important;
}

/* Submenu Arrow Rotation */
.app-menubar .menubar .menu-link::after,
.ess-menu-group > .menu-link::after,
.ess-menu-group.menu-arrow > .menu-link::after {
    display: none !important;
    content: none !important;
}
.menu-arrow-icon {
    font-size: 13px;
    color: #94a3b8;
    margin-left: auto;
    transition: transform 0.25s ease, color 0.25s ease;
}
.menu-item.open > .menu-link .menu-arrow-icon,
.ess-menu-group.open > .menu-link .menu-arrow-icon {
    transform: rotate(180deg);
    color: #2563eb;
}

/* Sidebar Submenu Collapsing and Expanding */
.app-menubar .menubar .menu-inner {
    display: none;
}
.app-menubar .menubar .menu-item.open > .menu-inner {
    display: block;
}

/* Tree-line Submenu indicator (exact matching screenshots) */
.ess-tree-menu {
    position: relative;
    padding-left: 14px !important;
    margin-left: 32px !important;
    border-left: 1.5px solid #e2e8f0 !important;
    margin-top: 4px;
    margin-bottom: 6px;
    list-style: none !important;
}
.ess-tree-menu .menu-item {
    margin-bottom: 2px;
}
.ess-tree-menu .menu-link {
    padding: 7px 12px !important;
    font-size: 13.5px !important;
    color: #64748b !important;
    border-radius: 6px !important;
    border-left: none !important;
    background: transparent;
}
.ess-tree-menu .menu-link:hover {
    color: #1e293b !important;
    background-color: #f8fafc !important;
}
.ess-tree-menu .menu-link.active {
    color: #2563eb !important;
    background-color: #eff6ff !important;
    font-weight: 600 !important;
}

/* ESS Home Dashboard Cards */
.ess-hero-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 28px;
    position: relative;
    overflow: hidden;
}
.ess-widget-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.ess-widget-header {
    padding: 18px 22px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ess-widget-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}
.ess-widget-body {
    padding: 0 22px 20px;
    flex-grow: 1;
}

/* Pulse Dot */
.ess-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}
.ess-pulse-dot.dot-green {
    background-color: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}
.ess-pulse-dot.dot-orange {
    background-color: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}
.ess-pulse-dot.dot-blue {
    background-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Digital Clock */
.ess-clock-display {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 2px;
    font-variant-numeric: tabular-nums;
}

/* Quick Access List */
.ess-qa-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 8px;
    color: #334155;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.15s ease;
    border-bottom: 1px solid #f1f5f9;
}
.ess-qa-item:last-child {
    border-bottom: none;
}
.ess-qa-item:hover {
    background-color: #f8fafc;
    color: #2563eb;
    padding-left: 18px;
}

/* Donut Progress */
.ess-donut-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto;
}
.ess-donut-svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}
.ess-donut-bg {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 10;
}
.ess-donut-val {
    fill: none;
    stroke: #2563eb;
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dasharray 0.6s ease;
}
.ess-donut-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.ess-donut-number {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}
.ess-donut-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-top: 3px;
}

/* ==========================================================================
   Switch to Employee Modal Modern UI
   ========================================================================== */
.switch-emp-modal .modal-content {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.28);
}
.switch-emp-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #3b82f6 100%);
    padding: 20px 24px;
    color: #ffffff;
    position: relative;
}
.switch-emp-header .badge-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.switch-emp-search-box {
    position: relative;
}
.switch-emp-search-box .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
    pointer-events: none;
}
.switch-emp-search-box input {
    padding-left: 42px;
    padding-right: 36px;
    height: 44px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    font-size: 14px;
    background-color: #f8fafc;
    transition: all 0.2s ease;
}
.switch-emp-search-box input:focus {
    background-color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}
.switch-emp-search-box .clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 14px;
    cursor: pointer;
    display: none;
}
.switch-emp-scroll {
    max-height: 290px;
    overflow-y: auto;
    padding-right: 4px;
}
.switch-emp-scroll::-webkit-scrollbar {
    width: 5px;
}
.switch-emp-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}
.switch-emp-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.switch-emp-scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
.switch-emp-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    margin-bottom: 8px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}
.switch-emp-card:hover {
    border-color: #93c5fd;
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}
.switch-emp-card.active {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.22);
}
.switch-emp-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #ffffff;
    flex-shrink: 0;
}
.switch-emp-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(37, 99, 235, 0.09);
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.2);
    letter-spacing: 0.3px;
}
.switch-emp-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.switch-emp-card.active .switch-emp-radio {
    border-color: #2563eb;
    background-color: #2563eb;
}
.switch-emp-radio::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    display: none;
}
.switch-emp-card.active .switch-emp-radio::after {
    display: block;
}
.switch-emp-btn-gradient {
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
    color: #ffffff;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    padding: 10px 22px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: all 0.2s ease;
}
.switch-emp-btn-gradient:hover {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
    transform: translateY(-1px);
}
.switch-nav-pills .nav-link {
    font-size: 13px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 8px;
    color: #64748b;
    border: 1px solid transparent;
}
.switch-nav-pills .nav-link.active {
    background: #ffffff;
    color: #2563eb;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    border-color: #e2e8f0;
}

/* ==========================================================================
   Master Module Dashboard (Clean & High-Contrast Premium UI)
   ========================================================================== */
.master-header-clean {
    margin-bottom: 22px;
}
.master-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 1px solid rgba(37, 99, 235, 0.15);
    flex-shrink: 0;
}
.master-stat-card-premium {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
}
.master-stat-card-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}
.master-stat-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.master-stat-label {
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 2px;
    letter-spacing: 0.2px;
}
.master-stat-num {
    font-size: 21px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.1;
}

.master-card-shadow {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.master-freq-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    margin-bottom: 7px;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    background: #ffffff;
    text-decoration: none;
    transition: all 0.18s ease;
}
.master-freq-item:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateX(2px);
}
.master-freq-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.master-freq-item .arrow {
    font-size: 13px;
    color: #94a3b8;
    transition: transform 0.18s ease, color 0.18s ease;
}
.master-freq-item:hover .arrow {
    transform: translateX(3px);
    color: #2563eb;
}

/* Master Section Page Modern SaaS Styling */
.master-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: all 0.18s ease;
}
.master-back-btn:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #cbd5e1;
    transform: translateX(-2px);
}

.master-sec-hero {
    background: #ffffff;
    border: 1px solid #eef2f6 !important;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}
.master-sec-hero-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.master-item-card {
    background: #ffffff;
    border: 1px solid #eef2f6 !important;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.master-item-card:hover {
    transform: translateY(-3px);
    border-color: #cbd5e1 !important;
    box-shadow: 0 10px 24px -4px rgba(15, 23, 42, 0.08) !important;
}

.master-item-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.master-item-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #059669;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 999px;
}
.master-item-status-pill .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
}

.master-item-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.2px;
}

.master-item-desc {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.45;
    min-height: 36px;
}

.master-item-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 600;
    color: #2563eb;
    transition: all 0.2s ease;
}
.master-item-card:hover .master-item-btn {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}
.master-item-btn .btn-arrow {
    font-size: 12px;
    transition: transform 0.2s ease;
}
.master-item-card:hover .master-item-btn .btn-arrow {
    transform: translateX(4px);
}

/* Manage Employee Modern SaaS Directory Styling */
.emp-kpi-card {
    background: #ffffff;
    border: 1px solid #eef2f6 !important;
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.emp-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}
.emp-kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
}
.emp-kpi-label {
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 2px;
    letter-spacing: 0.2px;
}
.emp-kpi-val {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.1;
}

.emp-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1.5px solid #e2e8f0;
}
.emp-avatar-initials {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13.5px;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}
.emp-name-link {
    font-size: 14px;
    font-weight: 650;
    color: #0f172a;
    text-decoration: none;
    transition: color 0.15s ease;
}
.emp-name-link:hover {
    color: #2563eb !important;
}

.emp-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 999px;
}
.emp-status-badge.active {
    color: #059669;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.emp-status-badge.inactive {
    color: #dc2626;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.emp-status-badge.warning {
    color: #d97706;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
}
.emp-status-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.emp-status-badge.active .dot {
    background: #10b981;
}
.emp-status-badge.inactive .dot {
    background: #ef4444;
}
.emp-status-badge.warning .dot {
    background: #f59e0b;
}

.emp-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.15s ease;
}
.emp-action-btn:hover, .emp-action-btn:focus {
    color: #0f172a;
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.shift-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

/* Modern List Tables & Components (Exact Match to Employee Directory Style) */
.modern-list-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}
.modern-list-table thead tr th {
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-top: none !important;
    padding: 13px 16px !important;
    vertical-align: middle;
}
.modern-list-table tbody tr td {
    padding: 14px 16px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    border-top: none !important;
    vertical-align: middle !important;
    color: #1e293b;
    font-size: 13px;
}
.modern-list-table tbody tr:hover {
    background-color: #f8fafc !important;
}

.code-chip {
    display: inline-block;
    padding: 2.5px 8px;
    font-size: 11.5px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-weight: 600;
    color: #334155;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    letter-spacing: 0.2px;
}

.entity-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.05);
}

.pagination-clean .page-link {
    border-radius: 6px !important;
    margin: 0 2px !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    padding: 4px 10px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    box-shadow: none !important;
}
.pagination-clean .page-item.active .page-link {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}
.pagination-clean .page-item.disabled .page-link {
    background-color: #f8fafc !important;
    color: #94a3b8 !important;
    border-color: #e2e8f0 !important;
}

.btn-filter-primary {
    background: #2563eb !important;
    border: 1px solid #2563eb !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    font-size: 13.5px !important;
    padding: 6px 16px !important;
}
.btn-filter-primary:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
}

.btn-reset-orange {
    border: 1.5px solid #f97316 !important;
    color: #ea580c !important;
    background: transparent !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    font-size: 13.5px !important;
    padding: 6px 16px !important;
    text-decoration: none !important;
}
.btn-reset-orange:hover {
    background: #fff7ed !important;
    color: #c2410c !important;
}

.btn-search-orange {
    border: 1.5px solid #f97316 !important;
    color: #ea580c !important;
    background: #ffffff !important;
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}
.btn-search-orange:hover {
    background: #fff7ed !important;
    color: #c2410c !important;
}









