:root {
    --hrms-font-display: "Manrope", sans-serif;
    --hrms-font-body: "Source Sans 3", sans-serif;
    --hrms-surface: #ffffff;
    --hrms-surface-soft: #f7f9fc;
    --hrms-surface-strong: #eef3f8;
    --hrms-text: #1a2436;
    --hrms-muted: #65758d;
    --hrms-border: #d7e1ee;
    --hrms-border-strong: #c4d2e4;
    --hrms-primary: #0f6d88;
    --hrms-primary-strong: #144b92;
    --hrms-primary-soft: #e8f4f8;
    --hrms-sidebar-top: #10233f;
    --hrms-sidebar-bottom: #18365c;
    --hrms-success: #257a5a;
    --hrms-warning: #c58a20;
    --hrms-danger: #c74f5b;
    --hrms-info: #2f86b0;
    --hrms-shadow-sm: 0 14px 30px rgba(16, 35, 63, 0.08);
    --hrms-shadow-md: 0 24px 55px rgba(15, 23, 42, 0.12);
    --hrms-radius-xl: 26px;
    --hrms-radius-lg: 22px;
    --hrms-radius-md: 18px;
    --hrms-radius-sm: 14px;
}

body.hrms-professional-ui {
    --bs-primary: var(--hrms-primary);
    --bs-primary-rgb: 15, 109, 136;
    --bs-success: var(--hrms-success);
    --bs-success-rgb: 37, 122, 90;
    --bs-info: var(--hrms-info);
    --bs-info-rgb: 47, 134, 176;
    --bs-warning: var(--hrms-warning);
    --bs-warning-rgb: 197, 138, 32;
    --bs-danger: var(--hrms-danger);
    --bs-danger-rgb: 199, 79, 91;
    --bs-body-font-family: var(--hrms-font-body);
    --bs-body-color: var(--hrms-text);
    --bs-body-bg: #f3f6fb;
    --bs-border-color: var(--hrms-border);
    --bs-link-color: var(--hrms-primary-strong);
    --bs-link-hover-color: var(--hrms-primary);
    background:
        radial-gradient(circle at top left, rgba(20, 75, 146, 0.08), transparent 24%),
        radial-gradient(circle at bottom right, rgba(15, 109, 136, 0.08), transparent 22%),
        linear-gradient(180deg, #f7faff 0%, #f2f6fb 100%);
    color: var(--hrms-text);
    font-family: var(--hrms-font-body);
    letter-spacing: 0.01em;
}

body.hrms-professional-ui,
body.hrms-professional-ui .form-control,
body.hrms-professional-ui .form-select,
body.hrms-professional-ui .custom-select,
body.hrms-professional-ui .dataTable-input,
body.hrms-professional-ui .dataTable-selector,
body.hrms-professional-ui .table,
body.hrms-professional-ui .dropdown-menu,
body.hrms-professional-ui .modal-content,
body.hrms-professional-ui .toast,
body.hrms-professional-ui .swal2-popup {
    font-family: var(--hrms-font-body);
}

body.hrms-professional-ui h1,
body.hrms-professional-ui h2,
body.hrms-professional-ui h3,
body.hrms-professional-ui h4,
body.hrms-professional-ui h5,
body.hrms-professional-ui h6,
body.hrms-professional-ui .btn,
body.hrms-professional-ui .page-header-title h4,
body.hrms-professional-ui .dash-sidebar .dash-mtext,
body.hrms-professional-ui .dash-sidebar .dash-submenu .dash-link,
body.hrms-professional-ui .breadcrumb,
body.hrms-professional-ui .form-label,
body.hrms-professional-ui .col-form-label,
body.hrms-professional-ui .navbar-brand,
body.hrms-professional-ui .badge {
    font-family: var(--hrms-font-display);
}

body.hrms-professional-ui h1,
body.hrms-professional-ui h2,
body.hrms-professional-ui h3,
body.hrms-professional-ui h4,
body.hrms-professional-ui h5,
body.hrms-professional-ui h6 {
    color: #10233f;
    font-weight: 800;
    letter-spacing: -0.02em;
}

body.hrms-professional-ui p,
body.hrms-professional-ui li,
body.hrms-professional-ui label,
body.hrms-professional-ui span,
body.hrms-professional-ui td,
body.hrms-professional-ui th {
    color: inherit;
}

body.hrms-professional-ui a {
    color: var(--hrms-primary-strong);
    text-underline-offset: 0.18em;
}

body.hrms-professional-ui a:hover {
    color: var(--hrms-primary);
}

body.hrms-professional-ui .text-muted,
body.hrms-professional-ui small,
body.hrms-professional-ui .small {
    color: var(--hrms-muted) !important;
}

body.hrms-professional-ui .text-primary {
    color: var(--hrms-primary-strong) !important;
}

body.hrms-professional-ui .bg-primary {
    background: linear-gradient(135deg, var(--hrms-primary), var(--hrms-primary-strong)) !important;
    background-color: var(--hrms-primary) !important;
    color: #ffffff !important;
}

body.hrms-professional-ui .badge.bg-primary {
    background: var(--hrms-primary) !important;
    background-image: none !important;
    color: #ffffff !important;
}

body.hrms-professional-ui .badge.bg-info {
    background-color: #0ea5b7 !important;
    background-image: none !important;
    color: #ffffff !important;
}

body.hrms-professional-ui .badge.bg-success {
    background-color: #16a34a !important;
    background-image: none !important;
    color: #ffffff !important;
}

body.hrms-professional-ui .badge.bg-warning {
    background-color: #f59e0b !important;
    background-image: none !important;
    color: #1f2937 !important;
}

body.hrms-professional-ui .badge.bg-danger {
    background-color: #dc2626 !important;
    background-image: none !important;
    color: #ffffff !important;
}

body.hrms-professional-ui .badge.bg-secondary {
    background-color: #6b7280 !important;
    background-image: none !important;
    color: #ffffff !important;
}

body.hrms-professional-ui .bg-light-primary,
body.hrms-professional-ui .btn-light-primary {
    background: rgba(15, 109, 136, 0.12) !important;
    color: var(--hrms-primary-strong) !important;
    border-color: transparent !important;
}

body.hrms-professional-ui .bg-light-success,
body.hrms-professional-ui .btn-light-success {
    background: rgba(22, 163, 74, 0.12) !important;
    color: #15803d !important;
    border-color: transparent !important;
}

body.hrms-professional-ui .bg-light-info,
body.hrms-professional-ui .btn-light-info {
    background: rgba(14, 165, 183, 0.12) !important;
    color: #0e7490 !important;
    border-color: transparent !important;
}

body.hrms-professional-ui .bg-light-warning,
body.hrms-professional-ui .btn-light-warning {
    background: rgba(245, 158, 11, 0.14) !important;
    color: #b45309 !important;
    border-color: transparent !important;
}

body.hrms-professional-ui .bg-light-danger,
body.hrms-professional-ui .btn-light-danger {
    background: rgba(220, 38, 38, 0.12) !important;
    color: #b91c1c !important;
    border-color: transparent !important;
}

body.hrms-professional-ui .bg-light-secondary,
body.hrms-professional-ui .btn-light-secondary {
    background: rgba(107, 114, 128, 0.14) !important;
    color: #4b5563 !important;
    border-color: transparent !important;
}

body.hrms-professional-ui .text-success {
    color: #16a34a !important;
}

body.hrms-professional-ui .text-info {
    color: #0e7490 !important;
}

body.hrms-professional-ui .text-warning {
    color: #b45309 !important;
}

body.hrms-professional-ui .text-danger {
    color: #b91c1c !important;
}

body.hrms-professional-ui .text-secondary {
    color: #4b5563 !important;
}

body.hrms-professional-ui .btn-success {
    --bs-btn-bg: #16a34a;
    --bs-btn-border-color: #16a34a;
    --bs-btn-hover-bg: #15803d;
    --bs-btn-hover-border-color: #15803d;
    --bs-btn-active-bg: #15803d;
    --bs-btn-active-border-color: #15803d;
    background-image: none !important;
}

body.hrms-professional-ui .btn-info {
    --bs-btn-bg: #0ea5b7;
    --bs-btn-border-color: #0ea5b7;
    --bs-btn-hover-bg: #0e7490;
    --bs-btn-hover-border-color: #0e7490;
    --bs-btn-active-bg: #0e7490;
    --bs-btn-active-border-color: #0e7490;
    color: #ffffff;
    background-image: none !important;
}

body.hrms-professional-ui .btn-warning {
    --bs-btn-bg: #f59e0b;
    --bs-btn-border-color: #f59e0b;
    --bs-btn-hover-bg: #d97706;
    --bs-btn-hover-border-color: #d97706;
    --bs-btn-active-bg: #d97706;
    --bs-btn-active-border-color: #d97706;
    --bs-btn-color: #1f2937;
    background-image: none !important;
}

body.hrms-professional-ui .btn-danger {
    --bs-btn-bg: #dc2626;
    --bs-btn-border-color: #dc2626;
    --bs-btn-hover-bg: #b91c1c;
    --bs-btn-hover-border-color: #b91c1c;
    --bs-btn-active-bg: #b91c1c;
    --bs-btn-active-border-color: #b91c1c;
    background-image: none !important;
}

body.hrms-professional-ui .btn-secondary {
    --bs-btn-bg: #6b7280;
    --bs-btn-border-color: #6b7280;
    --bs-btn-hover-bg: #4b5563;
    --bs-btn-hover-border-color: #4b5563;
    --bs-btn-active-bg: #4b5563;
    --bs-btn-active-border-color: #4b5563;
    background-image: none !important;
}

body.hrms-professional-ui .alert-success {
    background-color: rgba(22, 163, 74, 0.10);
    border-color: rgba(22, 163, 74, 0.25);
    color: #15803d;
}

body.hrms-professional-ui .alert-info {
    background-color: rgba(14, 165, 183, 0.10);
    border-color: rgba(14, 165, 183, 0.25);
    color: #0e7490;
}

body.hrms-professional-ui .alert-warning {
    background-color: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.30);
    color: #b45309;
}

body.hrms-professional-ui .alert-danger {
    background-color: rgba(220, 38, 38, 0.10);
    border-color: rgba(220, 38, 38, 0.25);
    color: #b91c1c;
}

body.hrms-professional-ui .action-btn.bg-info {
    background-color: var(--hrms-primary) !important;
    background-image: none !important;
}

body.hrms-professional-ui .action-btn.bg-success {
    background-color: #16a34a !important;
    background-image: none !important;
}

body.hrms-professional-ui .action-btn.bg-warning {
    background-color: #f59e0b !important;
    background-image: none !important;
}

body.hrms-professional-ui .action-btn.bg-danger {
    background-color: #dc2626 !important;
    background-image: none !important;
}

body.hrms-professional-ui .action-btn.bg-primary {
    background-color: var(--hrms-primary) !important;
    background-image: none !important;
}

body.hrms-professional-ui .action-btn.bg-secondary {
    background-color: #6b7280 !important;
    background-image: none !important;
}

body.hrms-professional-ui .bg-light-success,
body.hrms-professional-ui .btn-light-success {
    background: rgba(37, 122, 90, 0.12) !important;
    color: var(--hrms-success) !important;
    border-color: transparent !important;
}

body.hrms-professional-ui .bg-light-warning,
body.hrms-professional-ui .btn-light-warning {
    background: rgba(197, 138, 32, 0.12) !important;
    color: var(--hrms-warning) !important;
    border-color: transparent !important;
}

body.hrms-professional-ui .bg-light-danger,
body.hrms-professional-ui .btn-light-danger {
    background: rgba(199, 79, 91, 0.12) !important;
    color: var(--hrms-danger) !important;
    border-color: transparent !important;
}

body.hrms-professional-ui .bg-light-info,
body.hrms-professional-ui .btn-light-info {
    background: rgba(47, 134, 176, 0.12) !important;
    color: var(--hrms-info) !important;
    border-color: transparent !important;
}

body.hrms-professional-ui .dash-sidebar {
    background: linear-gradient(180deg, var(--hrms-sidebar-top) 0%, var(--hrms-sidebar-bottom) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 22px 0 50px rgba(10, 22, 42, 0.18);
}

body.hrms-professional-ui .dash-sidebar .m-header {
    background: transparent;
    padding: 1.2rem 1.05rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.hrms-professional-ui .dash-sidebar .m-header .b-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 0.5rem 0.85rem;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    width: 100%;
    max-width: 100%;
}

body.hrms-professional-ui .dash-sidebar .m-header .b-brand .logo,
body.hrms-professional-ui .dash-sidebar .m-header .b-brand .logo-lg {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

body.hrms-professional-ui .dash-sidebar .navbar-content {
    padding: 1rem 0.85rem 1.65rem;
}

body.hrms-professional-ui .dash-sidebar .dash-item {
    margin-bottom: 0.3rem;
}

body.hrms-professional-ui .dash-sidebar .dash-link {
    min-height: 46px;
    border-radius: 16px;
    padding: 0.78rem 0.95rem;
    color: rgba(242, 246, 251, 0.78);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: nowrap;
    transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

body.hrms-professional-ui .dash-sidebar .dash-link .dash-micon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    flex: 0 0 38px;
}

body.hrms-professional-ui .dash-sidebar .dash-link .dash-mtext {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.hrms-professional-ui .dash-sidebar .dash-link .dash-arrow {
    margin-left: auto;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    color: rgba(242, 246, 251, 0.58);
    transition: transform 0.2s ease;
}

body.hrms-professional-ui .dash-sidebar .dash-link .dash-arrow svg,
body.hrms-professional-ui .dash-sidebar .dash-link .dash-arrow i {
    color: inherit;
    width: 16px;
    height: 16px;
}

body.hrms-professional-ui .dash-sidebar .dash-item.dash-trigger > .dash-link .dash-arrow,
body.hrms-professional-ui .dash-sidebar .dash-item.active > .dash-link .dash-arrow {
    transform: rotate(90deg);
}

body.hrms-professional-ui .dash-sidebar .dash-link:hover,
body.hrms-professional-ui .dash-sidebar .dash-item.active > .dash-link,
body.hrms-professional-ui .dash-sidebar .dash-item.dash-trigger > .dash-link {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(97, 214, 255, 0.11));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 18px 30px rgba(7, 15, 29, 0.24);
    transform: translateX(2px);
}

body.hrms-professional-ui .dash-sidebar .dash-link:hover .dash-micon,
body.hrms-professional-ui .dash-sidebar .dash-item.active > .dash-link .dash-micon,
body.hrms-professional-ui .dash-sidebar .dash-item.dash-trigger > .dash-link .dash-micon {
    background: rgba(255, 255, 255, 0.15);
}

body.hrms-professional-ui .dash-sidebar .dash-submenu {
    padding-left: 0.35rem;
}

body.hrms-professional-ui .dash-sidebar .dash-submenu .dash-link {
    min-height: 40px;
    padding: 0.62rem 0.9rem 0.62rem 3.15rem;
    font-size: 0.92rem;
    color: rgba(224, 232, 244, 0.74);
}

body.hrms-professional-ui .dash-sidebar .dash-submenu .dash-link .dash-micon {
    display: none !important;
}

body.hrms-professional-ui .breadcrumb-item a {
    color: var(--hrms-primary-strong) !important;
}

body.hrms-professional-ui .breadcrumb-item a:hover {
    color: var(--hrms-primary) !important;
}

body.hrms-professional-ui #useradd-sidenav {
    border-radius: inherit;
    overflow: hidden;
}

body.hrms-professional-ui .col-xl-3 > .card.sticky-top:has(#useradd-sidenav),
body.hrms-professional-ui .col-3 > .card.sticky-top:has(#useradd-sidenav) {
    overflow: hidden;
    border: 1px solid #e4ecf5;
    box-shadow: 0 1px 2px rgba(15, 109, 136, 0.04);
}

body.hrms-professional-ui #useradd-sidenav .list-group-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1.1rem;
    color: var(--hrms-primary-strong);
    font-weight: 500;
    font-size: 0.95rem;
    background: transparent;
    border: 0 !important;
    border-radius: 0;
    line-height: 1.35;
    transition: background-color 0.18s ease, color 0.18s ease;
}

body.hrms-professional-ui #useradd-sidenav .list-group-item + .list-group-item {
    border-top: 1px solid #eef2f7 !important;
}

body.hrms-professional-ui #useradd-sidenav .list-group-item:hover {
    background: var(--hrms-primary-soft) !important;
    color: var(--hrms-primary) !important;
}

body.hrms-professional-ui #useradd-sidenav .list-group-item.active {
    background: linear-gradient(135deg, var(--hrms-primary), var(--hrms-primary-strong)) !important;
    background-image: linear-gradient(135deg, var(--hrms-primary), var(--hrms-primary-strong)) !important;
    color: #ffffff !important;
    border-color: transparent !important;
}

body.hrms-professional-ui #useradd-sidenav .list-group-item.active + .list-group-item {
    border-top-color: transparent !important;
}

body.hrms-professional-ui #useradd-sidenav .list-group-item .float-end {
    float: none !important;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
    line-height: 1;
    color: inherit;
    opacity: 0.7;
}

body.hrms-professional-ui #useradd-sidenav .list-group-item .float-end i {
    font-size: 1rem;
}

body.hrms-professional-ui #useradd-sidenav .list-group-item.active .float-end {
    opacity: 1;
}

body.hrms-professional-ui .dash-sidebar .dash-submenu .dash-item::before,
body.hrms-professional-ui .dash-sidebar.light-sidebar .dash-submenu .dash-item::before,
body.hrms-professional-ui .dash-sidebar .dash-submenu .dash-link::before {
    display: none !important;
    content: none !important;
    border: 0 !important;
}

body.hrms-professional-ui .dash-sidebar .dash-submenu .dash-item.active > .dash-link,
body.hrms-professional-ui .dash-sidebar .dash-submenu .dash-link:hover {
    color: #ffffff;
}

body.hrms-professional-ui .dash-header,
body.hrms-professional-ui .navbar.navbar-expand-md,
body.hrms-professional-ui nav.navbar.navbar-light {
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(196, 208, 225, 0.72);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

body.hrms-professional-ui .header-wrapper {
    min-height: 78px;
    padding: 0 1.25rem;
}

body.hrms-professional-ui .dash-head-link,
body.hrms-professional-ui .navbar .nav-link {
    border-radius: 14px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

body.hrms-professional-ui .dash-head-link {
    height: 46px;
    min-width: 46px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(212, 223, 237, 0.96);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
    color: var(--hrms-text);
}

body.hrms-professional-ui .dash-head-link:hover,
body.hrms-professional-ui .navbar .nav-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

body.hrms-professional-ui .theme-avtar {
    display: inline-flex;
    padding: 3px;
    border-radius: 16px;
    background: rgba(232, 244, 248, 0.9);
    box-shadow: 0 0 0 4px rgba(232, 244, 248, 0.7), 0 10px 24px rgba(15, 23, 42, 0.1);
}

body.hrms-professional-ui .header-avtar {
    border-radius: 14px !important;
    object-fit: cover;
}

body.hrms-professional-ui .emp-grade-pill {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(212, 223, 237, 0.96);
    border-radius: 14px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

body.hrms-professional-ui .dash-content {
    padding: 1.35rem 1.5rem 2rem;
}

body.hrms-professional-ui .page-header {
    margin-bottom: 1.4rem;
}

body.hrms-professional-ui .page-block {
    position: relative;
    overflow: hidden;
    padding: 1.45rem 1.6rem;
    border-radius: var(--hrms-radius-xl);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(245, 249, 255, 0.97));
    border: 1px solid rgba(215, 224, 236, 0.88);
    box-shadow: var(--hrms-shadow-sm);
}

body.hrms-professional-ui .page-block::after {
    content: "";
    position: absolute;
    right: -50px;
    bottom: -65px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(15, 109, 136, 0.13), rgba(15, 109, 136, 0) 70%);
    pointer-events: none;
}

body.hrms-professional-ui .page-header-title h4 {
    margin-bottom: 0.25rem;
    font-size: clamp(1.45rem, 2vw, 2rem);
}

body.hrms-professional-ui .breadcrumb {
    gap: 0.4rem;
    margin-top: 0.45rem;
    margin-bottom: 0;
}

body.hrms-professional-ui .breadcrumb-item {
    font-size: 0.92rem;
    color: var(--hrms-muted);
}

body.hrms-professional-ui .breadcrumb-item + .breadcrumb-item::before {
    color: #95a4b8;
}

body.hrms-professional-ui .card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 253, 255, 0.98));
    border: 1px solid rgba(215, 224, 236, 0.88);
    border-radius: var(--hrms-radius-lg);
    box-shadow: var(--hrms-shadow-sm);
    overflow: hidden;
}

body.hrms-professional-ui .card .card-header {
    background: linear-gradient(180deg, rgba(247, 250, 255, 0.98), rgba(255, 255, 255, 0.92));
    border-bottom: 1px solid rgba(224, 231, 240, 0.95);
    padding: 1rem 1.2rem;
}

body.hrms-professional-ui .card .card-body {
    padding: 1.2rem;
}

body.hrms-professional-ui .card .card-header h5,
body.hrms-professional-ui .card .card-body h5,
body.hrms-professional-ui .card .card-body h6 {
    color: #10233f;
    font-weight: 800;
}

body.hrms-professional-ui .card .card-header.card-body {
    padding-top: 1rem;
}

body.hrms-professional-ui .table-responsive {
    scrollbar-width: thin;
    scrollbar-color: #157f9c transparent;
}

body.hrms-professional-ui .table-responsive::-webkit-scrollbar {
    height: 10px;
    width: 10px;
}

body.hrms-professional-ui .table-responsive::-webkit-scrollbar-thumb {
    background: #157f9c;
    border-radius: 999px;
}

body.hrms-professional-ui .table {
    --bs-table-color: var(--hrms-text);
    --bs-table-border-color: #e8eef6;
    --bs-table-hover-bg: rgba(15, 109, 136, 0.045);
    --bs-table-striped-bg: rgba(20, 75, 146, 0.03);
}

body.hrms-professional-ui .table > :not(caption) > * > * {
    padding: 0.95rem 1rem;
    border-bottom-color: #e8eef6;
    vertical-align: middle;
}

body.hrms-professional-ui .table > thead {
    background: #f8fbfe;
}

body.hrms-professional-ui .table > thead th {
    color: #6d7d93;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.hrms-professional-ui .table tbody tr {
    transition: background-color 0.18s ease, transform 0.18s ease;
}

body.hrms-professional-ui .table-hover > tbody > tr:hover > * {
    color: inherit;
}

body.hrms-professional-ui .form-label,
body.hrms-professional-ui .col-form-label {
    display: inline-block;
    margin-bottom: 0.45rem;
    color: #5e6f87;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.hrms-professional-ui .form-control,
body.hrms-professional-ui .form-select,
body.hrms-professional-ui .custom-select,
body.hrms-professional-ui .dataTable-input,
body.hrms-professional-ui .dataTable-selector,
body.hrms-professional-ui .bootstrap-select > .dropdown-toggle.btn-light,
body.hrms-professional-ui .bootstrap-select > .dropdown-toggle.btn-secondary,
body.hrms-professional-ui .bootstrap-select > .dropdown-toggle.btn-default,
body.hrms-professional-ui .choices__inner,
body.hrms-professional-ui .select2-container .select2-selection--single,
body.hrms-professional-ui .select2-container .select2-selection--multiple,
body.hrms-professional-ui .input-group-text {
    min-height: 48px;
    border: 1px solid var(--hrms-border);
    border-radius: var(--hrms-radius-sm) !important;
    background: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    color: var(--hrms-text) !important;
}

body.hrms-professional-ui .input-group-text {
    background: #f8fbff !important;
}

body.hrms-professional-ui textarea.form-control {
}

body.hrms-professional-ui .form-control::placeholder,
body.hrms-professional-ui .form-select::placeholder,
body.hrms-professional-ui .custom-select::placeholder,
body.hrms-professional-ui .dataTable-input::placeholder,
body.hrms-professional-ui .dataTable-selector::placeholder {
    color: #98a5b6;
}

body.hrms-professional-ui .form-control:focus,
body.hrms-professional-ui .form-select:focus,
body.hrms-professional-ui .custom-select:focus,
body.hrms-professional-ui .dataTable-input:focus,
body.hrms-professional-ui .dataTable-selector:focus,
body.hrms-professional-ui .bootstrap-select > .dropdown-toggle.btn-light:focus,
body.hrms-professional-ui .choices__inner:focus,
body.hrms-professional-ui .select2-container .select2-selection--single:focus,
body.hrms-professional-ui .select2-container .select2-selection--multiple:focus {
    border-color: rgba(15, 109, 136, 0.45) !important;
    box-shadow: 0 0 0 0.22rem rgba(15, 109, 136, 0.12), 0 12px 24px rgba(15, 109, 136, 0.08) !important;
}

body.hrms-professional-ui .select2-container .select2-selection--single {
    display: flex;
    align-items: center;
    padding: 0 0.8rem;
}

body.hrms-professional-ui .select2-container .select2-selection--single .select2-selection__arrow {
    height: 100%;
}

body.hrms-professional-ui .choices__inner {
    padding: 0.4rem 0.75rem !important;
}

body.hrms-professional-ui #timesheet_filter .timesheet-employee-filter .choices__list--single .choices__item {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.hrms-professional-ui .btn {
    border-radius: var(--hrms-radius-sm);
    font-weight: 800;
    letter-spacing: 0.01em;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

body.hrms-professional-ui .btn:hover {
    transform: translateY(-1px);
}

body.hrms-professional-ui .btn-sm,
body.hrms-professional-ui .btn-group-sm > .btn {
    border-radius: 12px;
}

body.hrms-professional-ui .btn-primary {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: var(--hrms-primary);
    --bs-btn-border-color: transparent;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: var(--hrms-primary-strong);
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-bg: var(--hrms-primary-strong);
    --bs-btn-active-border-color: transparent;
    --bs-btn-focus-box-shadow: 0 0 0 0.24rem rgba(15, 109, 136, 0.16);
    background-image: linear-gradient(135deg, var(--hrms-primary), var(--hrms-primary-strong));
    box-shadow: 0 14px 26px rgba(15, 109, 136, 0.22);
    color: #ffffff !important;
}

body.hrms-professional-ui .btn-primary i,
body.hrms-professional-ui .btn-primary span {
    color: #ffffff !important;
}

body.hrms-professional-ui .btn-primary:hover,
body.hrms-professional-ui .btn-primary:focus,
body.hrms-professional-ui .btn-primary:active {
    color: #ffffff !important;
}

body.hrms-professional-ui .btn-outline-primary {
    --bs-btn-color: var(--hrms-primary-strong);
    --bs-btn-border-color: #c8d8ea;
    --bs-btn-hover-bg: rgba(15, 109, 136, 0.1);
    --bs-btn-hover-border-color: rgba(15, 109, 136, 0.2);
    --bs-btn-hover-color: var(--hrms-primary-strong);
    --bs-btn-active-bg: rgba(15, 109, 136, 0.12);
    --bs-btn-active-border-color: rgba(15, 109, 136, 0.2);
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
}

body.hrms-professional-ui .btn-outline-secondary,
body.hrms-professional-ui .btn-secondary {
    box-shadow: none;
}

body.hrms-professional-ui .badge {
    padding: 0.48rem 0.8rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

body.hrms-professional-ui .dropdown-menu,
body.hrms-professional-ui .dash-h-dropdown,
body.hrms-professional-ui .swal2-popup,
body.hrms-professional-ui .toast {
    border: 1px solid rgba(215, 224, 236, 0.9);
    border-radius: var(--hrms-radius-md);
    box-shadow: var(--hrms-shadow-md);
}

body.hrms-professional-ui .dropdown-menu {
    padding: 0.55rem;
}

body.hrms-professional-ui .dropdown-item {
    border-radius: 12px;
    padding: 0.72rem 0.85rem;
    font-weight: 600;
    color: var(--hrms-text);
}

body.hrms-professional-ui .dropdown-item:hover,
body.hrms-professional-ui .dropdown-item:focus {
    background: var(--hrms-primary-soft);
    color: var(--hrms-primary-strong);
}

body.hrms-professional-ui .modal-content {
    border: 1px solid rgba(215, 224, 236, 0.9);
    border-radius: var(--hrms-radius-lg);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
}

body.hrms-professional-ui .modal-header {
    padding: 1rem 1.25rem;
    background: linear-gradient(180deg, rgba(247, 250, 255, 0.98), rgba(255, 255, 255, 0.9));
    border-bottom: 1px solid rgba(224, 231, 240, 0.95);
}

body.hrms-professional-ui .modal-body {
    padding: 1.2rem 1.25rem;
}

body.hrms-professional-ui .modal-footer {
    border-top: 1px solid rgba(224, 231, 240, 0.95);
    padding: 1rem 1.25rem;
}

body.hrms-professional-ui .nav-pills,
body.hrms-professional-ui .nav-tabs {
    gap: 0.45rem;
}

body.hrms-professional-ui .nav-pills .nav-link,
body.hrms-professional-ui .nav-tabs .nav-link {
    border-radius: 14px;
    color: #52627a;
    font-weight: 800;
    border: 1px solid rgba(214, 223, 236, 0.9);
    background: rgba(255, 255, 255, 0.84);
}

body.hrms-professional-ui .nav-pills .nav-link.active,
body.hrms-professional-ui .nav-pills .show > .nav-link,
body.hrms-professional-ui .nav-tabs .nav-link.active {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--hrms-primary), var(--hrms-primary-strong));
    box-shadow: 0 16px 28px rgba(20, 75, 146, 0.22);
}

body.hrms-professional-ui .pagination {
    gap: 0.35rem;
}

body.hrms-professional-ui .pagination .page-link {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(215, 224, 236, 0.9);
    border-radius: 12px;
    background: #ffffff;
    color: #314058;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
}

body.hrms-professional-ui .pagination .page-item.active .page-link {
    border-color: transparent;
    color: #ffffff;
    background: linear-gradient(135deg, var(--hrms-primary), var(--hrms-primary-strong));
}

body.hrms-professional-ui .form-check-input {
    border-color: #c9d5e4;
}

body.hrms-professional-ui .form-check-input:checked {
    background-color: var(--hrms-primary);
    border-color: var(--hrms-primary);
}

body.hrms-professional-ui .form-check-input:focus {
    box-shadow: 0 0 0 0.22rem rgba(15, 109, 136, 0.14);
}

body.hrms-professional-ui .alert {
    border: 1px solid rgba(215, 224, 236, 0.8);
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
}

body.hrms-professional-ui .dash-footer {
    background: transparent;
}

body.hrms-professional-ui .footer-wrapper {
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(215, 224, 236, 0.8);
    color: var(--hrms-muted);
}

body.hrms-professional-ui #app,
body.hrms-professional-ui .custom-login,
body.hrms-professional-ui .container.py-4 {
    position: relative;
}

body.hrms-professional-ui .custom-login {
    background:
        radial-gradient(circle at top left, rgba(20, 75, 146, 0.12), transparent 30%),
        linear-gradient(180deg, #f5f8fc 0%, #edf3fb 100%);
}

body.hrms-professional-ui .custom-login .bg-login {
    background: linear-gradient(160deg, #10233f 0%, #144b92 44%, #0f6d88 100%);
    clip-path: polygon(48% 0, 100% 0, 100% 100%, 30% 100%);
}

body.hrms-professional-ui .custom-login .navbar {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(212, 223, 237, 0.9);
    box-shadow: var(--hrms-shadow-sm);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

body.hrms-professional-ui .custom-login .navbar .nav-link {
    color: var(--hrms-text);
    font-weight: 700;
}

body.hrms-professional-ui .custom-login .custom-wrapper .card {
    background: transparent;
    border: none;
    box-shadow: none;
}

body.hrms-professional-ui .custom-login .custom-wrapper .card .card-body {
    max-width: 500px;
    padding: 2rem;
    border: 1px solid rgba(215, 224, 236, 0.9);
    border-radius: 24px;
    box-shadow: var(--hrms-shadow-md);
}

body.hrms-professional-ui .custom-login .custom-wrapper .card .card-body h2,
body.hrms-professional-ui .custom-login .custom-wrapper .card .card-body h3 {
    font-weight: 800;
}

body.hrms-professional-ui .custom-login a,
body.hrms-professional-ui .custom-login .custom-wrapper .card .card-body h2 span {
    color: var(--hrms-primary-strong);
}

body.hrms-professional-ui .custom-login .form-control:focus {
    border-color: rgba(15, 109, 136, 0.45);
    box-shadow: 0 0 0 0.22rem rgba(15, 109, 136, 0.12), 0 12px 24px rgba(15, 109, 136, 0.08);
}

body.hrms-professional-ui .custom-login .form-check-input:checked {
    background-color: var(--hrms-primary);
    border-color: var(--hrms-primary);
}

body.hrms-professional-ui .custom-login .auth-footer {
    color: var(--hrms-muted);
}

body.hrms-professional-ui .custom-login .login-bg-img img {
    opacity: 0.18;
    filter: brightness(0) invert(1);
}

body.hrms-professional-ui nav.navbar.navbar-light {
    border-radius: 0;
}

body.hrms-professional-ui main.py-4,
body.hrms-professional-ui .container.py-4 {
    padding-top: 1.5rem !important;
}

body.hrms-professional-ui nav.navbar.navbar-light .navbar-brand,
body.hrms-professional-ui .navbar.navbar-expand-md .navbar-brand {
    font-weight: 800;
    color: #10233f;
}

body.hrms-professional-ui .shadow-sm {
    box-shadow: var(--hrms-shadow-sm) !important;
}

@keyframes hrmsFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.hrms-professional-ui .page-header,
body.hrms-professional-ui .card,
body.hrms-professional-ui .modal-content,
body.hrms-professional-ui .dropdown-menu {
    animation: hrmsFadeUp 0.32s ease-out both;
}

@media (max-width: 1199.98px) {
    body.hrms-professional-ui .dash-content {
        padding: 1.2rem 1.15rem 1.8rem;
    }

    body.hrms-professional-ui .page-block {
        padding: 1.3rem 1.35rem;
        border-radius: 22px;
    }
}

@media (max-width: 991.98px) {
    body.hrms-professional-ui .custom-login .bg-login {
        left: 0;
        opacity: 0.15;
        clip-path: none;
    }

    body.hrms-professional-ui .custom-login .custom-wrapper .card .card-body {
        padding: 1.6rem;
    }
}

@media (max-width: 767.98px) {
    body.hrms-professional-ui .header-wrapper,
    body.hrms-professional-ui .dash-content,
    body.hrms-professional-ui .footer-wrapper {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    body.hrms-professional-ui .page-block {
        padding: 1.2rem;
        border-radius: 20px;
    }

    body.hrms-professional-ui .card {
        border-radius: 18px;
    }

    body.hrms-professional-ui .page-header .float-end {
        float: none !important;
        margin-top: 1rem;
    }

    body.hrms-professional-ui .table > thead th,
    body.hrms-professional-ui .table > tbody td {
        white-space: nowrap;
    }

    body.hrms-professional-ui .custom-login .navbar {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.hrms-professional-ui *,
    body.hrms-professional-ui *::before,
    body.hrms-professional-ui *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

body.hrms-professional-ui {
    background: linear-gradient(180deg, #f7f9fc 0%, #eef3f9 100%);
}

body.hrms-professional-ui .dash-sidebar.light-sidebar,
body.hrms-professional-ui .dash-sidebar.light-sidebar .navbar-wrapper {
    background: linear-gradient(180deg, #10233f 0%, #173356 54%, #1d426b 100%) !important;
}

body.hrms-professional-ui .dash-sidebar.light-sidebar:not(.transprent-bg) {
    border-radius: 28px;
    box-shadow: 24px 0 50px rgba(16, 35, 63, 0.14) !important;
}

body.hrms-professional-ui .dash-sidebar .m-header.main-logo {
    padding-top: 1.35rem;
    padding-bottom: 1.1rem;
}

body.hrms-professional-ui .dash-sidebar .b-brand {
    display: flex;
    align-items: center;
    min-height: 52px;
}

body.hrms-professional-ui .dash-sidebar .logo.logo-lg {
    max-width: 100%;
    height: auto !important;
}

body.hrms-professional-ui .dash-sidebar .dash-navbar > .dash-item > .dash-link {
    background: transparent !important;
    box-shadow: none !important;
    color: rgba(240, 245, 255, 0.84) !important;
}

body.hrms-professional-ui .dash-sidebar .dash-link .dash-mtext,
body.hrms-professional-ui .dash-sidebar .dash-link .dash-arrow,
body.hrms-professional-ui .dash-sidebar .dash-link .dash-arrow svg {
    color: inherit !important;
}

body.hrms-professional-ui .dash-sidebar .dash-link .dash-mtext::after {
    display: none !important;
}

body.hrms-professional-ui .dash-sidebar .dash-micon i,
body.hrms-professional-ui .dash-sidebar .dash-micon svg {
    color: rgba(240, 245, 255, 0.72) !important;
}

body.hrms-professional-ui .dash-sidebar .dash-navbar > .dash-item.active > .dash-link,
body.hrms-professional-ui .dash-sidebar .dash-navbar > .dash-item:focus > .dash-link,
body.hrms-professional-ui .dash-sidebar .dash-navbar > .dash-item:hover > .dash-link,
body.hrms-professional-ui .dash-sidebar .dash-navbar > .dash-item:active > .dash-link {
    background: linear-gradient(135deg, #0f6d88 0%, #144b92 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 18px 30px rgba(15, 77, 129, 0.28) !important;
    transform: translateX(0) !important;
}

body.hrms-professional-ui .dash-sidebar .dash-navbar > .dash-item.active > .dash-link .dash-micon,
body.hrms-professional-ui .dash-sidebar .dash-navbar > .dash-item:hover > .dash-link .dash-micon,
body.hrms-professional-ui .dash-sidebar .dash-navbar > .dash-item:focus > .dash-link .dash-micon {
    background: rgba(255, 255, 255, 0.14) !important;
}

body.hrms-professional-ui .dash-sidebar .dash-navbar > .dash-item.active > .dash-link .dash-micon i,
body.hrms-professional-ui .dash-sidebar .dash-navbar > .dash-item.active > .dash-link .dash-micon svg,
body.hrms-professional-ui .dash-sidebar .dash-navbar > .dash-item:hover > .dash-link .dash-micon i,
body.hrms-professional-ui .dash-sidebar .dash-navbar > .dash-item:hover > .dash-link .dash-micon svg,
body.hrms-professional-ui .dash-sidebar .dash-navbar > .dash-item:focus > .dash-link .dash-micon i,
body.hrms-professional-ui .dash-sidebar .dash-navbar > .dash-item:focus > .dash-link .dash-micon svg {
    color: #ffffff !important;
}

body.hrms-professional-ui .dash-sidebar .dash-item > .dash-submenu .dash-link {
    color: rgba(223, 232, 243, 0.74) !important;
}

body.hrms-professional-ui .dash-sidebar .dash-item > .dash-submenu .dash-item.active > .dash-link,
body.hrms-professional-ui .dash-sidebar .dash-item > .dash-submenu .dash-item:hover > .dash-link,
body.hrms-professional-ui .dash-sidebar .dash-item > .dash-submenu .dash-item:focus > .dash-link {
    background: rgba(255, 255, 255, 0.10) !important;
    color: #ffffff !important;
}

body.hrms-professional-ui .dash-sidebar .dash-item > .dash-submenu .dash-item::before {
    border-right-color: rgba(255, 255, 255, 0.28) !important;
}

body.hrms-professional-ui .dash-sidebar .navbar-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

body.hrms-professional-ui .dash-sidebar .navbar-content::-webkit-scrollbar {
    width: 8px;
}

body.hrms-professional-ui .dash-sidebar .navbar-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

body.hrms-professional-ui .page-header {
    margin-bottom: 0.9rem;
}

body.hrms-professional-ui .dash-container .page-header + .row,
body.hrms-professional-ui .dash-container .page-header + .dash-content {
    padding-top: 0.5rem !important;
}

body.hrms-professional-ui .page-block {
    padding: 1.2rem 1.45rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

body.hrms-professional-ui .page-block::after {
    width: 150px;
    height: 150px;
    right: -34px;
    bottom: -48px;
    opacity: 0.6;
}

body.hrms-professional-ui .card {
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

body.hrms-professional-ui .card .card-header {
    padding-top: 0.95rem;
    padding-bottom: 0.85rem;
}

body.hrms-professional-ui .btn-primary {
    box-shadow: 0 12px 22px rgba(15, 109, 136, 0.18);
}

body.hrms-professional-ui .btn-outline-primary {
    border-color: #d4e0ef;
}

@media (max-width: 1024px) {
    body.hrms-professional-ui .dash-sidebar.light-sidebar:not(.transprent-bg) {
        border-radius: 0;
    }
}

/* Enterprise HRMS refinement layer */
body.hrms-professional-ui {
    --hrms-radius-xl: 8px;
    --hrms-radius-lg: 8px;
    --hrms-radius-md: 8px;
    --hrms-radius-sm: 8px;
    --hrms-shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.07);
    --hrms-shadow-md: 0 16px 42px rgba(15, 23, 42, 0.12);
    background: #f4f7fb;
    letter-spacing: 0;
}

body.hrms-professional-ui .page-block::after {
    display: none;
}

body.hrms-professional-ui .dash-container {
    min-width: 0;
}

body.hrms-professional-ui .dash-content {
    max-width: 100%;
}

body.hrms-professional-ui .dash-content > .row,
body.hrms-professional-ui .card-body > .row {
    row-gap: 1rem;
}

body.hrms-professional-ui .page-block {
    overflow: visible;
    background: #ffffff;
}

body.hrms-professional-ui .page-block .row {
    row-gap: 1rem;
}

body.hrms-professional-ui .page-block .col-auto,
body.hrms-professional-ui .page-block .col-sm-auto,
body.hrms-professional-ui .page-block .col-md {
    min-width: 0;
}

body.hrms-professional-ui .page-header-title h4 {
    overflow-wrap: anywhere;
}

body.hrms-professional-ui .page-header .float-end {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

body.hrms-professional-ui .breadcrumb {
    flex-wrap: wrap;
}

body.hrms-professional-ui .card {
    overflow: visible;
}

body.hrms-professional-ui .card .card-header.card-body {
    padding: 1.1rem;
}

body.hrms-professional-ui .card .card-header.card-body.table-border-style {
    background: transparent;
    border-bottom: 0;
}

body.hrms-professional-ui .card-header,
body.hrms-professional-ui .card-body {
    min-width: 0;
}

body.hrms-professional-ui .hrms-kpi-card {
    height: 100%;
    padding: 1rem;
    border: 1px solid #dfe7f2;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

body.hrms-professional-ui .hrms-kpi-card .label {
    display: block;
    color: #66758a;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.hrms-professional-ui .hrms-kpi-card .value {
    display: block;
    margin-top: 0.35rem;
    color: #10233f;
    font-family: var(--hrms-font-display);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.15;
}

body.hrms-professional-ui .hrms-table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
}

body.hrms-professional-ui .hrms-table-toolbar h5 {
    margin-bottom: 0.15rem;
}

body.hrms-professional-ui .hrms-toolbar-actions,
body.hrms-professional-ui .hrms-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
}

body.hrms-professional-ui .hrms-search-input {
    position: relative;
    min-width: min(280px, 100%);
}

body.hrms-professional-ui .hrms-search-input i {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    z-index: 2;
    color: #72829a;
    transform: translateY(-50%);
}

body.hrms-professional-ui .hrms-search-input .form-control {
    padding-left: 2.45rem;
}

body.hrms-professional-ui .table-responsive {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

body.hrms-professional-ui .table-responsive > .table,
body.hrms-professional-ui .table-responsive > .dataTable-wrapper {
    margin-bottom: 0;
}

body.hrms-professional-ui .dataTable-container {
    width: 100%;
    overflow-x: auto;
    border: 0;
    -webkit-overflow-scrolling: touch;
}

body.hrms-professional-ui .table-border-style .dataTable-wrapper {
    min-width: 0;
}

body.hrms-professional-ui .table-border-style .dataTable-top {
    padding: 0 0 0.9rem;
}

body.hrms-professional-ui .table-border-style .dataTable-bottom {
    padding: 0.9rem 0 0;
}

body.hrms-professional-ui .dataTable-search {
    max-width: 100%;
}

body.hrms-professional-ui .hrms-data-table,
body.hrms-professional-ui .dataTable-table {
    min-width: 980px;
    margin-bottom: 0;
}

body.hrms-professional-ui .hrms-data-table thead th,
body.hrms-professional-ui .dataTable-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #f8fbfe;
}

body.hrms-professional-ui .hrms-data-table tbody tr:hover,
body.hrms-professional-ui .dataTable-table tbody tr:hover {
    background: rgba(15, 109, 136, 0.055);
}

body.hrms-professional-ui .hrms-data-table td,
body.hrms-professional-ui .dataTable-table td {
    max-width: 260px;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    vertical-align: middle;
}

body.hrms-professional-ui .hrms-data-table td.truncate,
body.hrms-professional-ui .dataTable-table td.truncate {
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.hrms-professional-ui .hrms-data-table td.Action,
body.hrms-professional-ui .dataTable-table td.Action {
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
}

body.hrms-professional-ui .hrms-data-table .badge,
body.hrms-professional-ui .dataTable-table .badge {
    padding: 0.3em 0.65em;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: 999px;
    white-space: nowrap;
    word-break: keep-all;
    line-height: 1.25;
    display: inline-block;
    text-align: center;
}

body.hrms-professional-ui .hrms-data-table th,
body.hrms-professional-ui .dataTable-table th {
    white-space: nowrap;
}

body.hrms-professional-ui table td.Action,
body.hrms-professional-ui table th.Action {
    min-width: 130px;
    text-align: center !important;
    vertical-align: middle !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

body.hrms-professional-ui table td.Action > * {
    vertical-align: middle;
}

body.hrms-professional-ui table td.Action > span {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    vertical-align: middle;
}

body.hrms-professional-ui table td.Action .action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    vertical-align: middle;
}

body.hrms-professional-ui table td.Action .action-btn + .action-btn {
    margin-left: 0.5rem !important;
}

body.hrms-professional-ui table td.Action .action-btn .btn,
body.hrms-professional-ui table td.Action .action-btn > a,
body.hrms-professional-ui table td.Action .action-btn > button {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.hrms-professional-ui table td.Action .action-btn form {
    display: inline-flex;
    margin: 0;
    width: 100%;
    height: 100%;
}

body.hrms-professional-ui table tbody td {
    vertical-align: middle !important;
}

body.hrms-professional-ui .hrms-nowrap {
    white-space: nowrap;
}

body.hrms-professional-ui .hrms-cell-truncate,
body.hrms-professional-ui .hrms-link-truncate {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
    white-space: nowrap;
}

body.hrms-professional-ui td.truncate,
body.hrms-professional-ui th.truncate {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.hrms-professional-ui .hrms-muted-line {
    display: block;
    max-width: 230px;
    overflow: hidden;
    color: var(--hrms-muted);
    font-size: 0.84rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.hrms-professional-ui .hrms-action-cell {
    width: 1%;
    min-width: 180px;
    white-space: nowrap;
}

body.hrms-professional-ui .hrms-row-actions,
body.hrms-professional-ui .Action > span,
body.hrms-professional-ui td.Action {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.45rem;
}

body.hrms-professional-ui .action-btn {
    width: auto;
    height: auto;
    margin: 0 !important;
    border-radius: 8px;
    overflow: visible;
}

body.hrms-professional-ui .action-btn .btn,
body.hrms-professional-ui .hrms-icon-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 8px;
}

body.hrms-professional-ui .hrms-row-actions .dropdown-menu {
    min-width: 190px;
}

body.hrms-professional-ui .dataTable-wrapper {
    min-width: 0;
}

body.hrms-professional-ui .dataTable-top,
body.hrms-professional-ui .dataTable-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
}

body.hrms-professional-ui .dataTable-search,
body.hrms-professional-ui .dataTable-dropdown {
    float: none;
}

body.hrms-professional-ui .dataTable-search {
    margin-left: auto;
    text-align: right;
}

body.hrms-professional-ui .dataTable-input {
    min-width: min(280px, 100%);
    max-width: 100%;
}

body.hrms-professional-ui .hrms-table-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    border-top: 1px solid #e4ecf5;
    background: #ffffff;
}

body.hrms-professional-ui .hrms-table-footer-info {
    color: #63728a;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
}

body.hrms-professional-ui .hrms-table-footer nav {
    max-width: 100%;
}

body.hrms-professional-ui .hrms-table-footer .pagination {
    justify-content: flex-end;
}

body.hrms-professional-ui .hrms-employee-link {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    gap: 0.65rem;
    color: var(--hrms-primary-strong);
    line-height: 1.25;
    vertical-align: middle;
}

body.hrms-professional-ui .hrms-employee-link:hover {
    color: var(--hrms-primary);
}

body.hrms-professional-ui .hrms-employee-link--button {
    max-width: 180px;
    justify-content: center;
}

body.hrms-professional-ui .hrms-employee-link--disabled {
    color: var(--hrms-text);
}

body.hrms-professional-ui .hrms-employee-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #edf4fb;
    color: #144b92;
    font-family: var(--hrms-font-display);
    font-size: 0.82rem;
    font-weight: 800;
}

body.hrms-professional-ui .hrms-employee-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.hrms-professional-ui .hrms-employee-link-text {
    min-width: 0;
    display: grid;
    gap: 0.12rem;
}

body.hrms-professional-ui .hrms-employee-link-label,
body.hrms-professional-ui .hrms-employee-link-sub {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.hrms-professional-ui .hrms-employee-link-sub {
    color: var(--hrms-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

body.hrms-professional-ui .employee-center-card,
body.hrms-professional-ui .employee-center-hero,
body.hrms-professional-ui .employee-center-stat,
body.hrms-professional-ui .employee-fact,
body.hrms-professional-ui .employee-center-empty {
    border-radius: 8px !important;
}

body.hrms-professional-ui .employee-center-hero {
    background: #ffffff !important;
}

body.hrms-professional-ui .employee-center-tabs {
    gap: 0.5rem;
}

body.hrms-professional-ui .employee-center-tabs .nav-link {
    border-radius: 8px !important;
}

body.hrms-professional-ui .employee-note-card {
    height: 100%;
    padding: 1rem;
    border: 1px solid #dfe7f2;
    border-radius: 8px;
    background: #ffffff;
}

body.hrms-professional-ui .employee-note-card p {
    margin-bottom: 0;
    color: #2b3a50;
}

@media (max-width: 991.98px) {
    body.hrms-professional-ui .hrms-table-toolbar,
    body.hrms-professional-ui .dataTable-top,
    body.hrms-professional-ui .dataTable-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    body.hrms-professional-ui .hrms-toolbar-actions,
    body.hrms-professional-ui .hrms-filter-row {
        justify-content: stretch;
    }

    body.hrms-professional-ui .hrms-toolbar-actions > *,
    body.hrms-professional-ui .hrms-filter-row > *,
    body.hrms-professional-ui .hrms-search-input {
        width: 100%;
    }

    body.hrms-professional-ui .hrms-table-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    body.hrms-professional-ui .hrms-table-footer nav,
    body.hrms-professional-ui .hrms-table-footer .pagination {
        width: 100%;
    }

    body.hrms-professional-ui .hrms-table-footer .pagination {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    body.hrms-professional-ui .page-header .float-end {
        justify-content: flex-start;
    }

    body.hrms-professional-ui .hrms-data-table,
    body.hrms-professional-ui .dataTable-table {
        min-width: 760px;
    }

    body.hrms-professional-ui .hrms-action-cell {
        min-width: 150px;
    }
}

/* Responsive stability pass for legacy Bootstrap pages */
html,
body.hrms-professional-ui {
    max-width: 100%;
    overflow-x: hidden;
}

body.hrms-professional-ui .dash-container,
body.hrms-professional-ui .dash-content,
body.hrms-professional-ui .dash-content > .row,
body.hrms-professional-ui .dash-content > .row > [class*="col-"],
body.hrms-professional-ui .card,
body.hrms-professional-ui .card-header,
body.hrms-professional-ui .card-body,
body.hrms-professional-ui form,
body.hrms-professional-ui fieldset {
    min-width: 0;
}

body.hrms-professional-ui .card-header.card-body.table-border-style {
    display: block;
}

body.hrms-professional-ui .card-body > .card-header.card-body.table-border-style {
    padding: 0;
}

body.hrms-professional-ui .dash-content > .row {
    margin-left: 0;
    margin-right: 0;
}

body.hrms-professional-ui .dash-content > .row > .row {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

body.hrms-professional-ui .dash-content > .row > .row > [class*="col-"] {
    min-width: 0;
}

body.hrms-professional-ui .card-header.d-flex,
body.hrms-professional-ui .card-header[class*="justify-content-"] {
    gap: 0.75rem;
    flex-wrap: wrap;
}

body.hrms-professional-ui .card-header.d-flex > *,
body.hrms-professional-ui .card-header[class*="justify-content-"] > * {
    min-width: 0;
}

body.hrms-professional-ui .card-header form.d-flex,
body.hrms-professional-ui .hrms-inline-search {
    flex: 1 1 320px;
    min-width: min(320px, 100%);
    max-width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
}

body.hrms-professional-ui .card-header form.d-flex .form-control,
body.hrms-professional-ui .hrms-inline-search .form-control {
    flex: 1 1 260px;
    min-width: min(260px, 100%);
}

body.hrms-professional-ui .form-control,
body.hrms-professional-ui .form-select,
body.hrms-professional-ui .custom-select,
body.hrms-professional-ui .choices,
body.hrms-professional-ui .choices__inner,
body.hrms-professional-ui .select2-container {
    max-width: 100%;
}

body.hrms-professional-ui .table-responsive,
body.hrms-professional-ui .dataTable-container {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
}

body.hrms-professional-ui .card:not(.table-card) .table-responsive {
    width: 100%;
    margin: 0;
}

body.hrms-professional-ui .table-responsive .dataTable-wrapper {
    width: 100%;
    min-width: 0;
}

body.hrms-professional-ui .card-header.card-body.table-border-style .table-responsive,
body.hrms-professional-ui .card-body.table-responsive {
    width: 100%;
}

body.hrms-professional-ui .card-body > form > .row,
body.hrms-professional-ui .card-header.card-body.table-border-style > form > .row {
    margin-left: 0;
    margin-right: 0;
}

body.hrms-professional-ui .card-body > form > .row > [class*="col-"],
body.hrms-professional-ui .card-header.card-body.table-border-style > form > .row > [class*="col-"] {
    min-width: 0;
}

body.hrms-professional-ui .dataTable-dropdown label {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0;
}

body.hrms-professional-ui .dataTable-pagination-list {
    flex-wrap: wrap;
    gap: 0.35rem;
}

body.hrms-professional-ui .Action > span,
body.hrms-professional-ui td.Action > span,
body.hrms-professional-ui .hrms-row-actions {
    max-width: 100%;
}

body.hrms-professional-ui .action-btn,
body.hrms-professional-ui .action-btn form {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.hrms-professional-ui .action-btn .btn,
body.hrms-professional-ui .action-btn .btn.mx-3,
body.hrms-professional-ui .action-btn a.mx-3 {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.hrms-professional-ui .flashnews-container {
    width: 100% !important;
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: hidden;
}

body.hrms-professional-ui .flashnews-container.mt-negative {
    margin-top: 0 !important;
}

body.hrms-professional-ui .flashnews-heading {
    left: 0 !important;
    flex: 0 0 auto;
    border-radius: 4px;
}

body.hrms-professional-ui .flashnews-content-wrapper {
    flex: 1 1 0;
    width: auto !important;
    min-width: 0;
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: hidden;
}

body.hrms-professional-ui .flashnews-content {
    max-width: none;
}

body.hrms-professional-ui #attendanceemployee_filter > .row {
    row-gap: 1rem;
}

body.hrms-professional-ui #attendanceemployee_filter .btn-box {
    min-width: 0;
}

body.hrms-professional-ui #attendanceemployee_filter .form-check-inline.form-group {
    margin-right: 0.75rem;
    margin-bottom: 0;
    white-space: nowrap;
}

body.hrms-professional-ui #attendanceemployee_filter .col-auto {
    position: static !important;
}

body.hrms-professional-ui #attendanceemployee_filter .col-auto > .row,
body.hrms-professional-ui #attendanceemployee_filter .col-auto .col-auto {
    margin: 0;
    padding: 0;
}

body.hrms-professional-ui #attendanceemployee_filter .col-auto .col-auto {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 991.98px) {
    body.hrms-professional-ui .card-header.d-flex,
    body.hrms-professional-ui .card-header[class*="justify-content-"] {
        align-items: stretch !important;
    }

    body.hrms-professional-ui .card-header form.d-flex,
    body.hrms-professional-ui .hrms-inline-search,
    body.hrms-professional-ui .card-header form.d-flex .form-control,
    body.hrms-professional-ui .hrms-inline-search .form-control {
        width: 100%;
    }

    body.hrms-professional-ui #attendanceemployee_filter .col-2,
    body.hrms-professional-ui #attendanceemployee_filter .col-auto {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    body.hrms-professional-ui .dash-content {
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }

    body.hrms-professional-ui .page-block .row {
        margin-left: 0;
        margin-right: 0;
    }

    body.hrms-professional-ui .page-block .col-auto,
    body.hrms-professional-ui .page-block .col-sm-auto,
    body.hrms-professional-ui .page-block .col-md {
        flex: 0 0 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    body.hrms-professional-ui .page-header .float-end,
    body.hrms-professional-ui .page-header .float-end > div {
        width: 100%;
        justify-content: flex-start;
    }

    body.hrms-professional-ui .card .card-header,
    body.hrms-professional-ui .card .card-body,
    body.hrms-professional-ui .card .card-header.card-body {
        padding: 1rem;
    }

    body.hrms-professional-ui .card-header form.d-flex .form-control,
    body.hrms-professional-ui .hrms-inline-search .form-control {
        flex-basis: 100%;
    }

    body.hrms-professional-ui .flashnews-container {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.35rem;
        margin-bottom: 0.8rem !important;
    }

    body.hrms-professional-ui .flashnews-content-wrapper {
        flex-basis: 100%;
        width: 100% !important;
    }

    body.hrms-professional-ui #attendanceemployee_filter .col-auto .col-auto {
        width: 100%;
    }
}

/* Consistent Laravel and Simple-DataTables pagination */
body.hrms-professional-ui nav[role="navigation"],
body.hrms-professional-ui nav[aria-label*="Pagination"],
body.hrms-professional-ui .dataTable-pagination {
    max-width: 100%;
}

body.hrms-professional-ui .pagination,
body.hrms-professional-ui .dataTable-pagination-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    max-width: 100%;
    padding-left: 0;
    margin: 0;
}

body.hrms-professional-ui .page-item,
body.hrms-professional-ui .dataTable-pagination-list li {
    margin: 0 !important;
    list-style: none;
}

body.hrms-professional-ui .dataTable-pagination-list a,
body.hrms-professional-ui .pagination .page-link {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.75rem;
    border: 1px solid rgba(215, 224, 236, 0.95);
    border-radius: 8px;
    background: #ffffff;
    color: #314058;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

body.hrms-professional-ui .dataTable-pagination-list li.active a,
body.hrms-professional-ui .pagination .page-item.active .page-link {
    border-color: transparent;
    color: #ffffff;
    background: linear-gradient(135deg, var(--hrms-primary), var(--hrms-primary-strong));
}

body.hrms-professional-ui .dataTable-pagination-list li.ellipsis a,
body.hrms-professional-ui .pagination .page-item.disabled .page-link {
    color: #8a98ad;
    background: #f4f7fb;
    box-shadow: none;
}

body.hrms-professional-ui .dataTable-pagination-list li.ellipsis a {
    pointer-events: none;
}

body.hrms-professional-ui .dataTable-info {
    min-width: 0;
    color: #63728a;
    line-height: 1.4;
}

body.hrms-professional-ui .table-responsive > .mt-3,
body.hrms-professional-ui .card-header.card-body.table-border-style > .mt-3 {
    max-width: 100%;
    overflow: visible;
}

body.hrms-professional-ui .table-responsive > .mt-3 nav[role="navigation"] {
    width: 100%;
}

@media (max-width: 767.98px) {
    body.hrms-professional-ui .dataTable-bottom {
        align-items: flex-start;
    }

    body.hrms-professional-ui .dataTable-pagination,
    body.hrms-professional-ui .dataTable-info,
    body.hrms-professional-ui .dataTable-pagination-list,
    body.hrms-professional-ui .pagination {
        width: 100%;
    }

    body.hrms-professional-ui .dataTable-pagination-list,
    body.hrms-professional-ui .pagination {
        justify-content: flex-start;
    }

    body.hrms-professional-ui .dataTable-pagination-list a,
    body.hrms-professional-ui .pagination .page-link {
        min-width: 34px;
        height: 34px;
        padding: 0 0.55rem;
        font-size: 0.82rem;
    }

    body.hrms-professional-ui nav[role="navigation"] > .d-flex {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}

/* Theme balance and compact spacing pass */
body.hrms-professional-ui {
    --hrms-primary: #157f9c;
    --hrms-primary-strong: #1d5f9f;
    --hrms-sidebar-top: #17385a;
    --hrms-sidebar-bottom: #286f99;
    --bs-primary: var(--hrms-primary);
    --bs-primary-rgb: 21, 127, 156;
    --bs-link-color: var(--hrms-primary-strong);
    --bs-link-hover-color: var(--hrms-primary);
    background: linear-gradient(180deg, #f8fafc 0%, #f3f7fc 100%);
}

body.hrms-professional-ui .dash-sidebar,
body.hrms-professional-ui .dash-sidebar.light-sidebar,
body.hrms-professional-ui .dash-sidebar.light-sidebar .navbar-wrapper {
    background: linear-gradient(180deg, #17385a 0%, #1f527b 56%, #286f99 100%) !important;
    box-shadow: 18px 0 38px rgba(16, 35, 63, 0.12) !important;
}

body.hrms-professional-ui .dash-sidebar .m-header.main-logo {
    min-height: 78px;
    height: auto;
    padding: 0.8rem 1rem;
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

body.hrms-professional-ui .dash-sidebar .b-brand {
    width: 100%;
    min-height: 50px;
    justify-content: center;
    padding: 0.35rem 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

body.hrms-professional-ui .dash-sidebar .logo.logo-lg {
    max-width: min(100%, 300px);
    width: auto !important;
    height: auto !important;
    max-height: 50px;
    display: block;
    object-fit: contain;
    image-rendering: auto;
    filter: none;
}

body.hrms-professional-ui .dash-sidebar .dash-navbar > .dash-item.active > .dash-link,
body.hrms-professional-ui .dash-sidebar .dash-navbar > .dash-item:focus > .dash-link,
body.hrms-professional-ui .dash-sidebar .dash-navbar > .dash-item:hover > .dash-link,
body.hrms-professional-ui .dash-sidebar .dash-navbar > .dash-item:active > .dash-link {
    background: linear-gradient(135deg, #1585a3 0%, #2469aa 100%) !important;
    box-shadow: 0 14px 24px rgba(22, 95, 151, 0.22) !important;
}

body.hrms-professional-ui .dash-content {
    padding: 1rem 1.25rem 1.4rem;
}

body.hrms-professional-ui .page-header {
    margin-bottom: 0.55rem;
}

body.hrms-professional-ui .dash-container .page-header + .row,
body.hrms-professional-ui .dash-container .page-header + .dash-content {
    padding-top: 0.25rem !important;
}

body.hrms-professional-ui .page-block {
    padding: 0.9rem 1.1rem;
}

body.hrms-professional-ui .page-header-title h4 {
    margin-bottom: 0 !important;
    font-size: clamp(1.3rem, 1.55vw, 1.75rem);
    line-height: 1.25;
}

body.hrms-professional-ui .dash-content > .row,
body.hrms-professional-ui .card-body > .row,
body.hrms-professional-ui .page-block .row {
    row-gap: 0.7rem;
}

body.hrms-professional-ui .card {
    margin-bottom: 1rem;
}

body.hrms-professional-ui .card .card-header,
body.hrms-professional-ui .card .card-body,
body.hrms-professional-ui .card .card-header.card-body {
    padding: 0.9rem 1rem;
}

body.hrms-professional-ui .card .card-header.card-body + .card-body {
    padding-top: 0.75rem;
}

body.hrms-professional-ui .flashnews-container {
    min-height: 28px;
    margin-bottom: 0.45rem !important;
}

body.hrms-professional-ui .flashnews-heading {
    padding: 0.2rem 0.55rem !important;
    line-height: 1.2;
}

@media (max-width: 767.98px) {
    body.hrms-professional-ui .dash-content {
        padding: 0.85rem 0.8rem 1.1rem;
    }

    body.hrms-professional-ui .page-block {
        padding: 0.85rem;
    }

    body.hrms-professional-ui .card .card-header,
    body.hrms-professional-ui .card .card-body,
    body.hrms-professional-ui .card .card-header.card-body {
        padding: 0.85rem;
    }
}

/* ===========================================================
   Global cleanup pass — moved from inline / page-level styles
   =========================================================== */

/* Employee performance-grade pill (was inline <style> in header) */
body.hrms-professional-ui .emp-grade-pill {
    height: 44px;
    padding: 0 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

body.hrms-professional-ui .emp-grade-pill .val {
    font-weight: 700;
    color: var(--g, #198754);
}

body.hrms-professional-ui .emp-grade-pill {
    --g: #198754;
}

body.hrms-professional-ui .emp-grade-pill[data-grade^="A"] { --g: #16a34a; }
body.hrms-professional-ui .emp-grade-pill[data-grade^="B"] { --g: #d97706; }
body.hrms-professional-ui .emp-grade-pill[data-grade^="C"] { --g: #dc2626; }
body.hrms-professional-ui .emp-grade-pill[data-grade^="D"],
body.hrms-professional-ui .emp-grade-pill[data-grade^="E"],
body.hrms-professional-ui .emp-grade-pill[data-grade^="F"] { --g: #6b7280; }
body.hrms-professional-ui .emp-grade-pill[data-grade=""],
body.hrms-professional-ui .emp-grade-pill[data-grade="N/A"] { --g: #6b7280; }

/* Header right-side icon strip — consistent gap & wrap */
body.hrms-professional-ui .dash-header .header-wrapper > .ms-auto > .list-unstyled,
body.hrms-professional-ui .dash-header .header-wrapper > .me-auto > .list-unstyled {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
}

body.hrms-professional-ui .dash-header .dash-h-item {
    margin: 0;
}

/* Drop-shadow header avatar fixes */
body.hrms-professional-ui .header-avtar {
    width: 100%;
    height: 100%;
}

/* Sidebar scroll area — match the actual sidebar header height instead of fixed 70px */
body.hrms-professional-ui .dash-sidebar .navbar-content {
    height: calc(100vh - 80px);
}

/* Replace forced fixed pixel heights with min-heights so cards
   adapt to content / screen size without truncating or overflowing */
body.hrms-professional-ui .dash-card,
body.hrms-professional-ui .timesheet-card,
body.hrms-professional-ui .emp-card,
body.hrms-professional-ui .set-card,
body.hrms-professional-ui .ticket-card,
body.hrms-professional-ui .em-card,
body.hrms-professional-ui .job2-card,
body.hrms-professional-ui .mon-card,
body.hrms-professional-ui .card-635,
body.hrms-professional-ui .comp-card {
    height: auto !important;
    min-height: auto;
}

body.hrms-professional-ui .dash-card { min-height: 200px; }
body.hrms-professional-ui .timesheet-card { min-height: 84px; }
body.hrms-professional-ui .emp-card { min-height: 193px; }
body.hrms-professional-ui .set-card { min-height: 280px; }
body.hrms-professional-ui .ticket-card { min-height: 220px; }
body.hrms-professional-ui .em-card { min-height: 361px; }
body.hrms-professional-ui .job2-card { min-height: 460px; }
body.hrms-professional-ui .mon-card { min-height: 86px; }
body.hrms-professional-ui .card-635 { min-height: 480px; }
body.hrms-professional-ui .comp-card { min-height: 142px; }

@media (max-width: 991.98px) {
    body.hrms-professional-ui .dash-card,
    body.hrms-professional-ui .timesheet-card,
    body.hrms-professional-ui .emp-card,
    body.hrms-professional-ui .set-card,
    body.hrms-professional-ui .ticket-card,
    body.hrms-professional-ui .em-card,
    body.hrms-professional-ui .job2-card,
    body.hrms-professional-ui .card-635,
    body.hrms-professional-ui .comp-card {
        min-height: 0;
    }
}

/* Dropdown menus — prevent overflow on small screens */
body.hrms-professional-ui .dropdown-menu {
    max-width: calc(100vw - 1rem);
}

body.hrms-professional-ui .dash-h-dropdown {
    max-height: min(80vh, 540px);
    overflow-y: auto;
}

/* Modal — full-width on small screens, no horizontal scroll */
@media (max-width: 575.98px) {
    body.hrms-professional-ui .modal-dialog {
        margin: 0.5rem;
    }

    body.hrms-professional-ui .modal-dialog.modal-xl,
    body.hrms-professional-ui .modal-dialog.modal-lg {
        max-width: calc(100vw - 1rem);
    }

    body.hrms-professional-ui .modal-body {
        padding: 1rem;
    }
}

/* Form group rows — prevent label clip and let inputs flow */
body.hrms-professional-ui .form-group,
body.hrms-professional-ui .mb-3,
body.hrms-professional-ui .form-floating {
    min-width: 0;
}

body.hrms-professional-ui .form-control,
body.hrms-professional-ui .form-select,
body.hrms-professional-ui textarea.form-control {
    width: 100%;
}

/* Buttons — keep wrapping nicely instead of overflowing rows */
body.hrms-professional-ui .btn-group,
body.hrms-professional-ui .btn-toolbar {
    flex-wrap: wrap;
    gap: 0.35rem;
}

/* Page-header action buttons stack cleanly on mobile */
@media (max-width: 575.98px) {
    body.hrms-professional-ui .page-header .float-end .btn,
    body.hrms-professional-ui .page-header .float-end > a,
    body.hrms-professional-ui .page-header .float-end > .btn-group {
        justify-content: center;
    }
}

/* Long auto-rendered images scale cleanly inside cards/tables */
body.hrms-professional-ui .card img,
body.hrms-professional-ui .table img,
body.hrms-professional-ui .modal-body img {
    max-width: 100%;
    height: auto;
}

/* Sidebar mobile slide — backdrop + body lock helper hooks
   (compatible with existing .no-scroll body class used in custom.js) */
@media (max-width: 1023.98px) {
    body.hrms-professional-ui .dash-sidebar.mob-sidebar-active ~ .dash-md-overlay,
    body.hrms-professional-ui.no-scroll .dash-md-overlay {
        position: fixed;
        inset: 0;
        z-index: 1024;
        background: rgba(15, 23, 42, 0.45);
    }
}

/* Search form — prevent full width on mobile */
@media (max-width: 575.98px) {
    body.hrms-professional-ui .hrms-filter-row,
    body.hrms-professional-ui .hrms-search-input {
        width: auto !important;
    }

    body.hrms-professional-ui .hrms-filter-row > button,
    body.hrms-professional-ui .hrms-filter-row > a {
        width: auto !important;
    }
}

/* Tables: ensure wrapping on small screens for very long cells */
@media (max-width: 575.98px) {
    body.hrms-professional-ui .table > tbody td {
        font-size: 0.88rem;
    }

    body.hrms-professional-ui .hrms-data-table,
    body.hrms-professional-ui .dataTable-table {
        min-width: 640px;
    }

    /* DataTables mobile responsive - center search field */
    body.hrms-professional-ui .dataTable-search {
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: center !important;
        width: 100%;
    }

    body.hrms-professional-ui .dataTables_wrapper {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100%;
    }

    body.hrms-professional-ui .dataTables_wrapper .dataTables_top,
    body.hrms-professional-ui .dataTables_wrapper .dataTables_bottom {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100%;
        gap: 1rem;
    }

    body.hrms-professional-ui .dataTables_wrapper .dataTables_length {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
        margin: 0 !important;
    }

    body.hrms-professional-ui .dataTables_wrapper .dataTables_filter {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    body.hrms-professional-ui .dataTables_wrapper .dataTables_filter label {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100%;
        margin: 0 !important;
    }

    body.hrms-professional-ui .dataTables_wrapper .dataTables_filter input {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-top: 0.5rem !important;
        display: block !important;
    }

    body.hrms-professional-ui .dataTables_wrapper .dataTables_filter label::before {
        display: block !important;
        margin-bottom: 0.5rem !important;
    }

    body.hrms-professional-ui .dataTables_wrapper .dataTables_paginate {
        width: 100%;
        text-align: center;
    }

    /* Select dropdown overflow fix on mobile */
    body.hrms-professional-ui .form-control[list],
    body.hrms-professional-ui select.form-control {
        position: relative;
        z-index: 100;
    }

    body.hrms-professional-ui .col-md-3 select,
    body.hrms-professional-ui .col-md-4 select,
    body.hrms-professional-ui .col-lg-3 select {
        position: relative;
        z-index: 100;
    }

    body.hrms-professional-ui .card-body,
    body.hrms-professional-ui .card {
        overflow: visible !important;
    }
}

/* Choices.js / Select2 — match form field sizing */
body.hrms-professional-ui .choices,
body.hrms-professional-ui .select2-container {
    width: 100% !important;
}

body.hrms-professional-ui .choices {
    position: relative;
}

body.hrms-professional-ui .choices.is-open {
    z-index: 1055 !important;
}

body.hrms-professional-ui .choices__list--dropdown,
body.hrms-professional-ui .choices__list[aria-expanded] {
    z-index: 1056 !important;
    min-width: 100%;
    width: 100%;
    max-width: 100%;
    word-break: normal;
    overflow-wrap: normal;
}

body.hrms-professional-ui .choices__list--dropdown .choices__item,
body.hrms-professional-ui .choices__list[aria-expanded] .choices__item {
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.hrms-professional-ui .row:has(.choices.is-open),
body.hrms-professional-ui .card:has(.choices.is-open),
body.hrms-professional-ui .card-body:has(.choices.is-open),
body.hrms-professional-ui .form-group:has(.choices.is-open) {
    position: relative;
    z-index: 1054;
}

/* Toast container — keep within viewport */
body.hrms-professional-ui .position-fixed.top-0.end-0 {
    max-width: calc(100vw - 1rem);
}

/* Page-block right column action area shouldn't overflow on mobile */
body.hrms-professional-ui .page-header .float-end .btn {
    white-space: nowrap;
}

/* Breadcrumbs — readable wrapping, no overflow */
body.hrms-professional-ui .breadcrumb {
    max-width: 100%;
    overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
    body.hrms-professional-ui .page-header-title h4 {
        font-size: 20px !important;
        margin-right: 0px !important;
    }

}
