/* Takween HRM — modern SaaS overlay (UI only, layered after hrm-custom.css) */

:root {
    --hrm-primary: #2563eb;
    --hrm-primary-dark: #1d4ed8;
    --hrm-primary-soft: #eff6ff;
    --hrm-success: #059669;
    --hrm-success-bg: #ecfdf5;
    --hrm-danger: #dc2626;
    --hrm-danger-dark: #b91c1c;
    --hrm-danger-bg: #fef2f2;
    --hrm-warning: #d97706;
    --hrm-warning-bg: #fffbeb;
    --hrm-info: #0284c7;
    --hrm-info-bg: #f0f9ff;
    --hrm-border: #e8edf5;
    --hrm-text: #334155;
    --hrm-text-strong: #0f172a;
    --hrm-text-muted: #64748b;
    --hrm-navy: #1e3a5f;
    --hrm-group-bg: #eef2ff;
    --hrm-sidebar-bg: #1b4b8a;
    --hrm-sidebar-text: #ffffff;
    --hrm-sidebar-width: 260px;
    --hrm-sidebar-collapsed-width: 80px;
    --hrm-radius: 14px;
    --hrm-radius-sm: 10px;
    --hrm-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .04);
    --hrm-shadow-lg: 0 10px 30px rgba(15, 23, 42, .08);
    --hrm-bg: #f3f6fb;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Roboto, sans-serif;
    background: var(--hrm-bg);
    color: var(--hrm-text);
    letter-spacing: -0.01em;
}

.all-content-wrapper {
    min-height: 100vh;
    padding-bottom: 40px;
}

/* ---------- Cards ---------- */
.hrm-card {
    border-radius: var(--hrm-radius);
    border: 1px solid var(--hrm-border);
    box-shadow: var(--hrm-shadow);
    margin-top: 20px;
    margin-bottom: 20px;
    overflow: hidden;
}

.hrm-card-header {
    padding: 18px 22px;
    background: #fff;
}

.hrm-card-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hrm-card-subtitle {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--hrm-text-muted);
    font-weight: 500;
}

.hrm-card-body {
    padding: 20px 22px;
}

/* ---------- Buttons ---------- */
.btn {
    border-radius: var(--hrm-radius-sm);
    font-weight: 600;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.hrm-btn-add {
    background: var(--hrm-primary);
    border-color: var(--hrm-primary);
    border-radius: var(--hrm-radius-sm);
    padding: 8px 16px;
    box-shadow: 0 1px 2px rgba(37, 99, 235, .2);
}

.hrm-btn-add:hover,
.hrm-btn-add:focus {
    background: var(--hrm-primary-dark);
    border-color: var(--hrm-primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(37, 99, 235, .22);
}

.btn-default {
    border-radius: var(--hrm-radius-sm);
    border-color: var(--hrm-border);
    background: #fff;
}

.btn-success {
    background: var(--hrm-success);
    border-color: var(--hrm-success);
}

.btn-danger {
    background: var(--hrm-danger);
    border-color: var(--hrm-danger);
}

/* ---------- Forms ---------- */
.all-content-wrapper .form-control:not(.input-sm) {
    height: 42px;
    border-radius: var(--hrm-radius-sm);
    border: 1px solid var(--hrm-border);
    box-shadow: none;
    color: var(--hrm-text-strong);
    font-size: 14px;
}

.all-content-wrapper textarea.form-control {
    height: auto;
    min-height: 96px;
}

.all-content-wrapper .form-control:focus {
    border-color: var(--hrm-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.all-content-wrapper .form-group label {
    font-weight: 600;
    color: var(--hrm-text-strong);
    font-size: 13px;
    margin-bottom: 6px;
}

.all-content-wrapper select.form-control {
    appearance: auto;
}

/* ---------- Tables ---------- */
.hrm-table thead th {
    background: #f8fafc;
    font-size: 11px;
    letter-spacing: .06em;
}

.hrm-table tbody tr {
    transition: background .15s ease;
}

.hrm-table tbody tr:hover {
    background: #f8fafc;
}

.hrm-empty-row {
    padding: 48px 16px;
}

.hrm-empty-state {
    text-align: center;
    padding: 36px 16px;
    color: var(--hrm-text-muted);
}

.hrm-empty-state i {
    display: block;
    font-size: 28px;
    margin-bottom: 10px;
    color: #94a3b8;
}

/* ---------- Badges ---------- */
.hrm-badge {
    padding: 5px 12px;
    font-weight: 650;
}

/* ---------- Alerts / flash ---------- */
.hrm-flash {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 16px 15px 0;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    box-shadow: var(--hrm-shadow);
}

.hrm-flash i {
    margin-top: 2px;
}

.hrm-flash-success {
    background: var(--hrm-success-bg);
    color: #047857;
    border-color: #a7f3d0;
}

.hrm-flash-danger,
.hrm-flash-error {
    background: var(--hrm-danger-bg);
    color: #b91c1c;
    border-color: #fecaca;
}

.hrm-flash-info {
    background: var(--hrm-info-bg);
    color: #0369a1;
    border-color: #bae6fd;
}

.alert {
    border-radius: 12px;
    border: 0;
    box-shadow: none;
}

.alert-success {
    background: var(--hrm-success-bg);
    color: #047857;
}

.alert-danger {
    background: var(--hrm-danger-bg);
    color: #b91c1c;
}

.alert-info {
    background: var(--hrm-info-bg);
    color: #0369a1;
}

/* ---------- Sidebar ---------- */
.left-sidebar-pro {
    width: var(--hrm-sidebar-width) !important;
    z-index: 1040;
}

#sidebar {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: 8px 0 32px rgba(11, 18, 32, .18);
    border-right: 0 !important;
}

#sidebar,
#sidebar * {
    box-sizing: border-box;
}

.hrm-sidebar-brand {
    flex: 0 0 auto;
    justify-content: flex-start;
    align-items: center;
    height: 70px;
    min-height: 70px;
    padding: 0 18px !important;
    background: rgba(255, 255, 255, .02);
}

.hrm-sidebar-logo {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 8px 16px rgba(37, 99, 235, .28);
}

.hrm-sidebar-brand-text {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
}

.hrm-sidebar-logo-img {
    max-height: 36px;
    max-width: 168px;
    margin: 0;
}

#sidebar .left-custom-menu-adp-wrap,
#sidebar .comment-scrollbar {
    flex: 1 1 auto;
    min-height: 0;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 8px 0 20px;
}

#sidebar .mCustomScrollBox,
#sidebar .mCSB_container,
#sidebar .mCSB_container.mCS_no_scrollbar_y.mCS_y_hidden {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    margin: 0 !important;
}

#sidebar .mCustomScrollBox {
    min-height: 100% !important;
}

#sidebar .mCSB_scrollTools,
#sidebar .mCSB_outside + .mCSB_scrollTools {
    display: none !important;
    width: 0 !important;
    right: 0 !important;
}

#sidebar .left-custom-menu-adp-wrap::-webkit-scrollbar {
    width: 6px;
}

#sidebar .left-custom-menu-adp-wrap::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, .28);
    border-radius: 999px;
}

#sidebar .left-custom-menu-adp-wrap::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav .metismenu li + li {
    margin-top: 0;
}

.sidebar-nav .metismenu li:last-child {
    margin-bottom: 0;
}

.hrm-nav-label {
    padding: 16px 22px 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .78);
    pointer-events: none;
}

#menu1 > li.hrm-nav-label,
#menu1 > li.hrm-nav-label:hover,
#menu1 > li.hrm-nav-label:focus {
    background: transparent !important;
    box-shadow: none !important;
    margin: 6px 0 0;
}

#menu1 > li.hrm-nav-label:first-child {
    margin-top: 0;
}

body.hrm-sidebar-collapsed .hrm-nav-label {
    display: none;
}

.left-custom-menu-adp-wrap ul.left-sidebar-menu-pro {
    width: 100%;
}

.left-custom-menu-adp-wrap ul.left-sidebar-menu-pro li a,
.sidebar-nav .metismenu a {
    border-radius: 10px;
    margin: 2px 12px;
    padding: 10px 12px !important;
    border-left: 0;
    color: var(--hrm-sidebar-text) !important;
    background: transparent !important;
    font-size: 13.5px !important;
    font-weight: 600;
    line-height: 1.3;
    min-width: 0;
}

.left-custom-menu-adp-wrap ul.left-sidebar-menu-pro li a:hover,
.left-custom-menu-adp-wrap ul.left-sidebar-menu-pro li a:focus,
.left-custom-menu-adp-wrap ul.left-sidebar-menu-pro li a:active,
.sidebar-nav .metismenu a:hover,
.sidebar-nav .metismenu a:focus,
.sidebar-nav .metismenu a:active {
    background: rgba(255, 255, 255, .06) !important;
    color: #fff !important;
}

#menu1 > li > a i {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .05);
    font-size: 13px;
}

#menu1 .mini-click-non {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#menu1 > li.active > a,
#menu1 > li > a[aria-expanded="true"] {
    background: rgba(37, 99, 235, .18) !important;
    color: #fff !important;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .28);
    border-left: 0 !important;
}

#menu1 > li.active > a i,
#menu1 > li > a[aria-expanded="true"] i {
    background: rgba(37, 99, 235, .28);
    color: #93c5fd;
}

#sidebar .metismenu .has-arrow {
    position: relative;
}

#sidebar .metismenu .has-arrow:after {
    right: 14px;
    width: 6px;
    height: 6px;
    opacity: .45;
    border-color: currentColor !important;
}

.submenu-angle {
    margin: 2px 12px 8px !important;
    padding: 4px 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, .03) !important;
}

.submenu-angle li > a {
    margin: 2px 6px !important;
    padding: 8px 12px 8px 36px !important;
    border-radius: 8px;
    font-size: 13px !important;
    font-weight: 500 !important;
}

.submenu-angle li.mm-current > a,
.submenu-angle li.mm-current > a:hover,
.submenu-angle li.mm-current > a:focus {
    color: #fff !important;
    background: rgba(37, 99, 235, .16) !important;
    font-weight: 650 !important;
}

.submenu-angle li.mm-current > a::before {
    left: 18px;
    width: 6px;
    height: 6px;
    background: #60a5fa;
}

.hrm-nav-soon > span {
    padding: 8px 12px 8px 36px;
    margin: 2px 6px;
    border-radius: 8px;
}

body.hrm-sidebar-collapsed #sidebar {
    align-items: stretch;
}

body.hrm-sidebar-collapsed .hrm-sidebar-brand {
    justify-content: center;
    height: 70px;
    min-height: 70px;
    padding: 0 !important;
}

body.hrm-sidebar-collapsed .hrm-sidebar-logo-img {
    margin: 0 auto;
}

body.hrm-sidebar-collapsed #sidebar #menu1 > li {
    display: flex;
    justify-content: center;
}

body.hrm-sidebar-collapsed #sidebar #menu1 > li > a,
body.hrm-sidebar-collapsed #sidebar .left-custom-menu-adp-wrap ul.left-sidebar-menu-pro li a,
body.hrm-sidebar-collapsed #sidebar .sidebar-nav .metismenu a {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 42px !important;
    height: 42px !important;
    margin: 6px auto !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.hrm-sidebar-collapsed #sidebar #menu1 > li.active > a,
body.hrm-sidebar-collapsed #sidebar #menu1 > li > a[aria-expanded="true"],
body.hrm-sidebar-collapsed #sidebar #menu1 > li > a:hover,
body.hrm-sidebar-collapsed #sidebar #menu1 > li > a:focus {
    background: rgba(255, 255, 255, .16) !important;
    box-shadow: none !important;
}

body.hrm-sidebar-collapsed #sidebar #menu1 > li > a i,
body.hrm-sidebar-collapsed #sidebar #menu1 > li.active > a i,
body.hrm-sidebar-collapsed #sidebar #menu1 > li > a[aria-expanded="true"] i {
    width: 42px;
    height: 42px;
    margin: 0 !important;
    background: transparent !important;
}

body.hrm-sidebar-collapsed #sidebar .metismenu .has-arrow:after {
    display: none !important;
}

/* Stock theme collapse (#sidebar.active / mini-navbar) must not hide labels. */
#sidebar.active,
body.mini-navbar #sidebar,
body.mini-navbar #sidebar.active {
    min-width: var(--hrm-sidebar-width) !important;
    width: var(--hrm-sidebar-width) !important;
    max-width: var(--hrm-sidebar-width) !important;
    text-align: left !important;
}

#sidebar.active .mini-click-non,
#sidebar.active .hrm-sidebar-brand-text,
body.mini-navbar #sidebar .mini-click-non,
body.mini-navbar #sidebar .hrm-sidebar-brand-text {
    display: block !important;
}

body.hrm-sidebar-collapsed #sidebar,
body.hrm-sidebar-collapsed #sidebar.active,
body.mini-navbar.hrm-sidebar-collapsed #sidebar {
    min-width: var(--hrm-sidebar-collapsed-width) !important;
    width: var(--hrm-sidebar-collapsed-width) !important;
    max-width: var(--hrm-sidebar-collapsed-width) !important;
}

body.hrm-sidebar-collapsed .hrm-nav-label,
body.hrm-sidebar-collapsed .mini-click-non,
body.hrm-sidebar-collapsed .hrm-sidebar-brand-text {
    display: none !important;
}

body.mini-navbar .all-content-wrapper {
    margin-left: var(--hrm-sidebar-width) !important;
}

body.mini-navbar.hrm-sidebar-collapsed .all-content-wrapper {
    margin-left: var(--hrm-sidebar-collapsed-width) !important;
}

/* ---------- Topbar ---------- */
.header-top-area {
    background: rgba(255, 255, 255, .86) !important;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--hrm-border);
    box-shadow: 0 1px 0 rgba(15, 23, 42, .03);
    width: calc(100% - var(--hrm-sidebar-width));
    right: 0;
}

body.hrm-sidebar-collapsed .header-top-area {
    width: calc(100% - var(--hrm-sidebar-collapsed-width));
}

.hrm-topbar .dropdown {
    position: relative;
}

.hrm-topbar .dropdown-menu {
    right: 0;
    left: auto;
}

.btn[disabled],
.btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.header-top-area .container-fluid,
.header-top-area .row,
.header-top-area .col-lg-12 {
    height: 100%;
}

.hrm-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 70px;
    padding: 0 8px;
}

.hrm-topbar-left,
.hrm-topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.hrm-topbar-toggle {
    width: 40px;
    height: 40px;
    border: 1px solid var(--hrm-border);
    background: #fff;
    color: var(--hrm-text-strong);
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}

.hrm-topbar-toggle:hover,
.hrm-topbar-toggle:focus {
    background: var(--hrm-primary-soft);
    color: var(--hrm-primary);
    border-color: #bfdbfe;
    outline: none;
}

.hrm-topbar-title h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 750;
    color: var(--hrm-text-strong);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.hrm-topbar-title p {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--hrm-text-muted);
}

.hrm-topbar-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid var(--hrm-border);
    color: var(--hrm-text-muted);
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
}

.hrm-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px 5px 5px;
    border-radius: 999px;
    border: 1px solid var(--hrm-border);
    background: #fff;
    color: var(--hrm-text-strong);
    text-decoration: none !important;
}

.hrm-user-chip:hover,
.hrm-user-chip:focus {
    border-color: #bfdbfe;
    background: var(--hrm-primary-soft);
}

.hrm-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1e3a5f);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.hrm-user-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}

.hrm-user-meta strong {
    font-size: 13px;
    font-weight: 700;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hrm-user-meta small {
    font-size: 11px;
    color: var(--hrm-text-muted);
    font-weight: 500;
}

.hrm-user-dropdown {
    min-width: 220px;
    padding: 8px !important;
    border-radius: 14px !important;
    border: 1px solid var(--hrm-border) !important;
    box-shadow: var(--hrm-shadow-lg) !important;
    margin-top: 8px !important;
}

.hrm-user-dropdown > li > a,
.hrm-user-dropdown > li > form > button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    background: none;
    border-radius: 10px;
    color: var(--hrm-text-strong);
    font-weight: 600;
    text-align: left;
}

.hrm-user-dropdown > li > a:hover,
.hrm-user-dropdown > li > form > button:hover {
    background: #f8fafc;
    color: var(--hrm-primary);
    text-decoration: none;
}

/* ---------- Page header / filter bar ---------- */
.hrm-page-hero,
.hrm-welcome {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 26px 28px;
    margin-top: 20px;
    background: linear-gradient(135deg, #163d73 0%, #1b4b8a 58%, #2563eb 140%);
    color: #fff;
    box-shadow: 0 14px 36px rgba(27, 75, 138, .18);
}

.hrm-welcome::after,
.hrm-page-hero::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    right: -40px;
    top: -70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    pointer-events: none;
}

.hrm-welcome-inner,
.hrm-page-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.hrm-welcome-copy {
    min-width: 0;
    flex: 1 1 280px;
}

.hrm-welcome-kicker {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .72);
}

.hrm-welcome-copy h1,
.hrm-page-hero h1 {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 750;
    letter-spacing: -0.03em;
    color: #fff;
    overflow-wrap: anywhere;
}

.hrm-welcome-copy p,
.hrm-page-hero p {
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 14px;
    line-height: 1.5;
    max-width: 560px;
}

.hrm-welcome-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.hrm-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.hrm-welcome-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 0 0 auto;
}

.hrm-welcome-actions .btn {
    background: #fff;
    color: #163d73;
    border: 0;
    font-weight: 700;
    padding: 9px 16px;
}

.hrm-welcome-actions .btn-ghost {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .22);
}

.hrm-card-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.hrm-grid-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hrm-grid-search-field {
    position: relative;
}

.hrm-grid-search-field i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 12px;
    pointer-events: none;
}

.hrm-grid-search-field .form-control {
    width: 240px;
    max-width: 100%;
    height: 38px !important;
    padding-left: 34px;
}

.hrm-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.hrm-filter-bar .form-group {
    margin: 0;
    width: 220px;
    max-width: 100%;
    flex: 0 0 220px;
}

.hrm-field-sm,
.hrm-field-sm .form-control {
    max-width: 220px;
}

.hrm-filter-bar .checkbox {
    margin: 0 4px 6px;
}

/* ---------- Stat cards ---------- */
.hrm-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.hrm-stat-card {
    border-radius: 16px;
    padding: 18px 18px;
    box-shadow: var(--hrm-shadow);
    transition: transform .18s ease, box-shadow .18s ease;
    position: relative;
    overflow: hidden;
    min-width: 0;
    background: #fff;
}

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

.hrm-stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    font-size: 17px;
    color: inherit;
}

.hrm-stat-icon.bg-blue {
    background: var(--hrm-primary-soft);
    color: var(--hrm-primary);
}

.hrm-stat-icon.bg-green {
    background: var(--hrm-success-bg);
    color: var(--hrm-success);
}

.hrm-stat-icon.bg-orange {
    background: var(--hrm-warning-bg);
    color: var(--hrm-warning);
}

.hrm-stat-icon.bg-red {
    background: var(--hrm-danger-bg);
    color: var(--hrm-danger);
}

.hrm-stat-icon.bg-purple {
    background: #f5f3ff;
    color: #7c3aed;
}

.hrm-stat-copy {
    min-width: 0;
}

.hrm-stat-value {
    font-size: 24px;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.hrm-stat-label {
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hrm-stat-card a.hrm-stat-link {
    position: absolute;
    inset: 0;
}

/* ---------- Quick actions / lists ---------- */
.hrm-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.hrm-quick-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--hrm-border);
    background: #f8fafc;
    color: var(--hrm-text-strong);
    text-decoration: none !important;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
    min-width: 0;
}

.hrm-quick-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--hrm-shadow);
    border-color: #bfdbfe;
    background: #fff;
}

.hrm-quick-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hrm-primary-soft);
    color: var(--hrm-primary);
    flex-shrink: 0;
}

.hrm-quick-icon.bg-blue {
    background: var(--hrm-primary-soft);
    color: var(--hrm-primary);
}

.hrm-quick-icon.bg-green {
    background: var(--hrm-success-bg);
    color: var(--hrm-success);
}

.hrm-quick-icon.bg-orange {
    background: var(--hrm-warning-bg);
    color: var(--hrm-warning);
}

.hrm-quick-icon.bg-purple {
    background: #f5f3ff;
    color: #7c3aed;
}

.hrm-quick-card strong {
    display: block;
    font-size: 13.5px;
    color: var(--hrm-text-strong);
}

.hrm-quick-card span {
    display: block;
    font-size: 12px;
    color: var(--hrm-text-muted);
    font-weight: 500;
}

.hrm-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hrm-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--hrm-border);
    border-radius: 12px;
    background: #fbfdff;
}

.hrm-list-item a {
    font-weight: 700;
    color: var(--hrm-text-strong);
}

.hrm-list-item a:hover {
    color: var(--hrm-primary);
    text-decoration: none;
}

.hrm-list-meta {
    font-size: 12.5px;
    color: var(--hrm-text-muted);
    margin-top: 2px;
}

.hrm-list-aside {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* ---------- Check-in timeline ---------- */
.hrm-checkin-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hrm-checkin-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid var(--hrm-border);
}

.hrm-checkin-item strong {
    display: block;
    color: var(--hrm-text-strong);
}

.hrm-checkin-item span {
    font-size: 12.5px;
    color: var(--hrm-text-muted);
}

/* ---------- Stage / funnel chips ---------- */
.hrm-stage-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hrm-stage-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hrm-stage-row .hrm-stage-name {
    font-weight: 600;
    min-width: 90px;
}

.hrm-stage-bar {
    flex: 1;
    height: 8px;
    background: #eef2f7;
    border-radius: 999px;
    overflow: hidden;
}

.hrm-stage-bar > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #38bdf8);
}

.hrm-stage-count {
    min-width: 28px;
    text-align: right;
    font-weight: 700;
    color: var(--hrm-text-strong);
}

/* ---------- Profile / identity ---------- */
.hrm-identity {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hrm-identity img,
.hrm-identity .hrm-avatar-lg {
    width: 88px;
    height: 88px;
    max-width: 88px;
    border-radius: 20px;
    font-size: 28px;
}

.hrm-clock-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hrm-clock-pill {
    padding: 8px 12px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid var(--hrm-border);
    font-size: 13px;
    font-weight: 600;
    color: var(--hrm-text);
}

/* ---------- Charts ---------- */
.hrm-chart-wrap {
    height: 280px;
}

.hrm-chart-wrap-donut {
    height: 300px;
    padding-bottom: 8px;
}

.hrm-dashboard {
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 12px;
}

.hrm-dash-section {
    margin-top: 22px;
}

.hrm-dash-section-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 2px;
}

.hrm-dash-section-head h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 750;
    color: var(--hrm-text-strong);
    letter-spacing: -0.02em;
}

.hrm-dash-section-head p {
    margin: 0;
    font-size: 12.5px;
    color: var(--hrm-text-muted);
    font-weight: 500;
}

.hrm-dashboard .hrm-card {
    margin-top: 18px;
    margin-bottom: 0;
}

.hrm-dashboard .hrm-chart-row {
    display: flex;
    flex-wrap: wrap;
    margin-top: 18px;
    margin-left: -10px;
    margin-right: -10px;
}

.hrm-dashboard .hrm-chart-row > [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
}

.hrm-dashboard .hrm-chart-row .hrm-card {
    flex: 1 1 auto;
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
}

.hrm-user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.hrm-user-cell .hrm-user-avatar {
    width: 32px;
    height: 32px;
    font-size: 11px;
}

.hrm-stage-row + .hrm-stage-row {
    margin-top: 14px;
}

/* ---------- Pagination / toolbar ---------- */
.hrm-toolbar {
    background: #fcfdff;
}

.hrm-page-btn {
    border-radius: 9px !important;
}

/* ---------- Settings / tabs ---------- */
.hrm-settings-nav li.active a,
.hrm-tabs li.active a {
    box-shadow: none;
}

.hrm-settings-nav li.active a {
    background: var(--hrm-primary);
}

/* ---------- Header leftovers from stock theme ---------- */
.menu-switcher-pro,
.header-right-info .nav > li > a {
    padding: 0;
}

.admin-name {
    font-family: inherit;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .header-top-area,
    body.hrm-sidebar-collapsed .header-top-area {
        width: 100%;
    }

    #sidebar,
    body.hrm-sidebar-collapsed #sidebar {
        height: 100vh;
        height: 100dvh;
    }

    .hrm-topbar {
        padding: 0 4px;
    }

    .hrm-topbar-title p,
    .hrm-topbar-date {
        display: none;
    }

    .hrm-user-meta {
        display: none;
    }

    .hrm-welcome,
    .hrm-page-hero {
        padding: 20px;
    }

    .hrm-welcome-copy h1,
    .hrm-page-hero h1 {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    .hrm-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 16px;
    }

    .hrm-tabs li {
        flex-shrink: 0;
    }

    .hrm-stat-grid,
    .hrm-quick-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hrm-filter-bar .form-group {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
    }

    .hrm-grid-search {
        width: 100%;
    }

    .hrm-grid-search-field,
    .hrm-grid-search-field .form-control {
        width: 100%;
    }

    .hrm-list-item,
    .hrm-checkin-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .hrm-welcome-actions {
        width: 100%;
    }

    .hrm-welcome-actions .btn {
        flex: 1;
        text-align: center;
    }

    .hrm-dashboard {
        padding-left: 15px;
        padding-right: 15px;
    }

    .hrm-dashboard .hrm-chart-row {
        margin-left: -8px;
        margin-right: -8px;
    }

    .all-content-wrapper .form-control:not(.input-sm) {
        width: 100%;
    }
}

@media (max-width: 1199px) {
    .hrm-stat-grid,
    .hrm-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .hrm-stat-grid,
    .hrm-quick-grid {
        grid-template-columns: 1fr;
    }
}

.logo-pro {
    display: none !important;
}

/* ---------- Sidebar color + contrast lock (beats stock theme) ---------- */
.left-sidebar-pro,
#sidebar,
#sidebar .sidebar-header,
#sidebar .sidebar-nav,
#sidebar .sidebar-nav .metismenu,
#sidebar .sidebar-nav ul,
#sidebar .left-custom-menu-adp-wrap,
#sidebar .comment-scrollbar,
#sidebar .mCustomScrollBox,
#sidebar .mCSB_container {
    background: #1b4b8a !important;
}

#sidebar {
    background: linear-gradient(180deg, #1a4784 0%, #163d73 100%) !important;
}

#sidebar a,
#sidebar a span,
#sidebar a i,
#sidebar .mini-click-non,
#sidebar .mini-sub-pro,
#sidebar .hrm-sidebar-brand-text,
#sidebar .hrm-sidebar-brand-text strong,
#sidebar .metismenu .has-arrow:after {
    color: #ffffff !important;
    border-color: #ffffff !important;
}

#sidebar .hrm-nav-label {
    color: rgba(255, 255, 255, .82) !important;
}

#sidebar .hrm-nav-soon > span,
#sidebar .hrm-nav-soon .mini-sub-pro {
    color: rgba(255, 255, 255, .55) !important;
}

#sidebar .left-custom-menu-adp-wrap ul.left-sidebar-menu-pro li a,
#sidebar .sidebar-nav .metismenu a {
    color: #ffffff !important;
    background: transparent !important;
}

#sidebar .left-custom-menu-adp-wrap ul.left-sidebar-menu-pro li a:hover,
#sidebar .left-custom-menu-adp-wrap ul.left-sidebar-menu-pro li a:focus,
#sidebar .left-custom-menu-adp-wrap ul.left-sidebar-menu-pro li a:active,
#sidebar .sidebar-nav .metismenu a:hover,
#sidebar .sidebar-nav .metismenu a:focus,
#sidebar .sidebar-nav .metismenu a:active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, .14) !important;
}

#sidebar #menu1 > li.active > a,
#sidebar #menu1 > li > a[aria-expanded="true"] {
    color: #ffffff !important;
    background: rgba(255, 255, 255, .18) !important;
    box-shadow: none;
    border-left: 0 !important;
}

#sidebar #menu1 > li > a i,
#sidebar #menu1 > li > a .fa-solid {
    color: #ffffff !important;
    background: rgba(255, 255, 255, .12);
    font-family: "Font Awesome 7 Free", "Font Awesome 6 Free", FontAwesome !important;
    font-weight: 900;
    font-style: normal;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#sidebar #menu1 > li.active > a i,
#sidebar #menu1 > li > a[aria-expanded="true"] i {
    color: #ffffff !important;
    background: rgba(255, 255, 255, .22);
}

#sidebar .submenu-angle {
    background: rgba(0, 0, 0, .12) !important;
}

#sidebar .submenu-angle li > a,
#sidebar .submenu-angle li > a span {
    color: #ffffff !important;
}

#sidebar .submenu-angle li.mm-current > a,
#sidebar .submenu-angle li.mm-current > a:hover,
#sidebar .submenu-angle li.mm-current > a:focus,
#sidebar .submenu-angle li.mm-current > a span {
    color: #ffffff !important;
    background: rgba(255, 255, 255, .16) !important;
}

#sidebar .submenu-angle li.mm-current > a::before {
    background: #ffffff;
}

/* ---------- App loader ---------- */
.hrm-loader {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 35, 70, .35);
    transition: opacity .25s ease, visibility .25s ease;
}

.hrm-loader.is-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    display: none !important;
}

.hrm-loader-ring {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .28);
    border-top-color: #ffffff;
    animation: hrm-spin .7s linear infinite;
}

@keyframes hrm-spin {
    to { transform: rotate(360deg); }
}
