/* =====================================================================
   SLCMC HRMS - Professional theme on top of AdminLTE 3 (fully offline)
   Font files are bundled in assets/hrms/fonts, nothing loads from the internet.
   ===================================================================== */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/inter-700.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/inter-800.woff2') format('woff2'); }

:root {
    /* Brand (SLCMC teal) */
    --hr-primary: #0f8b7d;
    --hr-primary-600: #0b7368;
    --hr-primary-700: #095e55;
    --hr-primary-50: #e8f6f3;
    --hr-primary-100: #cdeee7;
    --hr-ring: rgba(15, 139, 125, .18);

    /* Neutrals */
    --hr-ink: #101828;
    --hr-text: #344054;
    --hr-muted: #667085;
    --hr-subtle: #98a2b3;
    --hr-border: #e4e7ec;
    --hr-border-strong: #d0d5dd;
    --hr-bg: #f4f6f8;
    --hr-surface: #ffffff;
    --hr-surface-2: #f9fafb;

    /* Sidebar */
    --hr-side-bg: #0e2830;
    --hr-side-bg-2: #0b2128;
    --hr-side-text: #b4c4c9;
    --hr-side-label: #6f8c94;
    --hr-side-hover: rgba(255, 255, 255, .06);
    --hr-side-active: rgba(45, 212, 191, .14);
    --hr-side-accent: #2dd4bf;

    /* Status */
    --hr-success: #067647; --hr-success-bg: #ecfdf3; --hr-success-bd: #abefc6;
    --hr-warning: #b54708; --hr-warning-bg: #fffaeb; --hr-warning-bd: #fedf89;
    --hr-danger:  #b42318; --hr-danger-bg:  #fef3f2; --hr-danger-bd:  #fecdca;
    --hr-info:    #175cd3; --hr-info-bg:    #eff8ff; --hr-info-bd:    #b2ddff;
    --hr-gray:    #475467; --hr-gray-bg:    #f2f4f7; --hr-gray-bd:    #e4e7ec;

    --hr-radius: 10px;
    --hr-radius-lg: 14px;
    --hr-shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
    --hr-shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
    --hr-shadow-lg: 0 12px 24px -6px rgba(16, 24, 40, .12), 0 4px 8px -4px rgba(16, 24, 40, .06);
}

/* ---------------------------------------------------------------------
   BASE
   --------------------------------------------------------------------- */
html, body { background: var(--hr-bg) !important; }
body, .hr-app, .tooltip, .popover {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif !important;
    color: var(--hr-text);
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5 { color: var(--hr-ink); font-weight: 700; letter-spacing: -.01em; }
a { color: var(--hr-primary); }
a:hover { color: var(--hr-primary-700); text-decoration: none; }
code { color: var(--hr-primary-700); background: var(--hr-primary-50); padding: 1px 6px; border-radius: 6px; font-size: 12px; }
.text-primary { color: var(--hr-primary) !important; }
.text-muted { color: var(--hr-muted) !important; }
::selection { background: var(--hr-primary-100); }

.content-wrapper { background: var(--hr-bg) !important; padding: 8px 12px 24px !important; }

/* ---------------------------------------------------------------------
   SIDEBAR
   --------------------------------------------------------------------- */
.main-sidebar.hr-sidebar {
    background: linear-gradient(180deg, var(--hr-side-bg) 0%, var(--hr-side-bg-2) 100%) !important;
    box-shadow: none !important;
    border-right: 1px solid rgba(255, 255, 255, .04);
}
.hr-sidebar .sidebar { padding: 0 12px 16px; }

.hr-brand {
    display: flex !important; align-items: center; gap: 12px;
    height: 64px; padding: 0 18px !important;
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, .07) !important;
}
.hr-brand-logo {
    width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; background: #fff;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    color: var(--hr-primary); box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
.hr-brand-logo img { width: 28px; height: 28px; object-fit: contain; }
.hr-brand .brand-text { display: flex; flex-direction: column; line-height: 1.15; margin: 0 !important; }
.hr-brand-name { color: #fff; font-size: 15px; font-weight: 600; letter-spacing: .01em; }
.hr-brand-name b { color: var(--hr-side-accent); font-weight: 800; }
.hr-brand-sub { color: var(--hr-side-label); font-size: 11px; font-weight: 500; }

.hr-sidebar .nav-sidebar .nav-header {
    color: var(--hr-side-label) !important; background: transparent !important;
    font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
    padding: 18px 12px 6px !important;
}
.hr-sidebar .nav-sidebar .nav-item > .nav-link {
    color: var(--hr-side-text) !important; border-radius: 8px; margin-bottom: 2px;
    padding: 9px 12px; font-weight: 500; font-size: 13.5px; position: relative;
    transition: background .15s, color .15s;
}
.hr-sidebar .nav-sidebar .nav-item > .nav-link .nav-icon { color: #7f9aa2 !important; font-size: 14px; width: 22px; margin-right: 8px; }
.hr-sidebar .nav-sidebar .nav-item > .nav-link:hover { background: var(--hr-side-hover) !important; color: #fff !important; }
.hr-sidebar .nav-sidebar .nav-item > .nav-link:hover .nav-icon { color: #d6e2e5 !important; }
.hr-sidebar .nav-sidebar .nav-item > .nav-link.active {
    background: var(--hr-side-active) !important; color: #fff !important; box-shadow: none !important; font-weight: 600;
}
.hr-sidebar .nav-sidebar .nav-item > .nav-link.active .nav-icon { color: var(--hr-side-accent) !important; }
.hr-sidebar .nav-sidebar .nav-item > .nav-link.active::before {
    content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0;
    background: var(--hr-side-accent);
}
.sidebar-collapse .hr-sidebar .nav-sidebar .nav-header { display: none; }
.sidebar-collapse .hr-sidebar .nav-sidebar .nav-item > .nav-link.active::before { display: none; }

/* ---------------------------------------------------------------------
   TOP BAR
   --------------------------------------------------------------------- */
.hr-topbar.main-header {
    height: 64px; background: rgba(255, 255, 255, .92) !important; border-bottom: 1px solid var(--hr-border) !important;
    box-shadow: none !important; padding: 0 16px; backdrop-filter: saturate(180%) blur(6px);
}
.hr-icon-btn { width: 38px; height: 38px; border-radius: 8px; display: flex !important; align-items: center; justify-content: center; color: var(--hr-muted) !important; }
.hr-icon-btn:hover { background: var(--hr-surface-2); color: var(--hr-ink) !important; }
.hr-topbar-date { color: var(--hr-muted); font-size: 13px; font-weight: 500; margin-left: 8px; }

.hr-user { display: flex !important; align-items: center; gap: 10px; padding: 6px 10px !important; border-radius: 10px; height: auto !important; }
.hr-user:hover { background: var(--hr-surface-2); }
.hr-avatar {
    width: 36px; height: 36px; border-radius: 50%; flex: 0 0 36px;
    background: linear-gradient(135deg, var(--hr-primary) 0%, #14b8a6 100%); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; letter-spacing: .02em;
}
.hr-avatar-lg { width: 44px; height: 44px; flex-basis: 44px; font-size: 15px; }
.hr-user-meta { flex-direction: column; line-height: 1.2; }
.hr-user-name { color: var(--hr-ink); font-weight: 600; font-size: 13.5px; }
.hr-user-role { color: var(--hr-muted); font-size: 12px; }
.hr-caret { color: var(--hr-subtle); font-size: 11px; }
.hr-dropdown { min-width: 260px; border: 1px solid var(--hr-border); border-radius: 12px; box-shadow: var(--hr-shadow-lg); padding: 8px; }
.hr-dropdown-head { display: flex; gap: 12px; align-items: center; padding: 8px; }
.hr-dropdown .dropdown-item { border-radius: 8px; padding: 9px 10px; font-weight: 500; }

/* ---------------------------------------------------------------------
   PAGE HEADER (h1 inside .content-header on every page)
   --------------------------------------------------------------------- */
.content-header { padding: 18px 8px 14px !important; }
.content-header h1 {
    font-size: 22px !important; font-weight: 700 !important; color: var(--hr-ink) !important;
    display: flex; align-items: center; margin: 0;
}
.content-header h1 > i {
    width: 40px; height: 40px; border-radius: 10px; margin-right: 14px !important;
    display: inline-flex; align-items: center; justify-content: center; font-size: 17px;
    color: var(--hr-primary); background: var(--hr-primary-50); border: 1px solid var(--hr-primary-100);
}
.content-header .text-right { display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; }
.content-header .row { align-items: center; }

/* ---------------------------------------------------------------------
   CARDS
   --------------------------------------------------------------------- */
.card {
    border: 1px solid var(--hr-border) !important; border-radius: var(--hr-radius-lg) !important;
    box-shadow: var(--hr-shadow-sm) !important; background: var(--hr-surface); margin-bottom: 20px;
}
.card.card-outline { border-top: 1px solid var(--hr-border) !important; }
.card-header {
    background: transparent !important; border-bottom: 1px solid var(--hr-border) !important;
    padding: 16px 20px; border-radius: var(--hr-radius-lg) var(--hr-radius-lg) 0 0 !important;
}
.card-title, .card-header .card-title { font-size: 15px !important; font-weight: 700 !important; color: var(--hr-ink) !important; }
.card-body { padding: 20px; }
.card-footer { background: var(--hr-surface-2) !important; border-top: 1px solid var(--hr-border) !important; padding: 14px 20px; border-radius: 0 0 var(--hr-radius-lg) var(--hr-radius-lg) !important; }

/* ---------------------------------------------------------------------
   BUTTONS
   --------------------------------------------------------------------- */
.btn { border-radius: 8px; font-weight: 600; font-size: 13.5px; padding: .5rem 1rem; box-shadow: none !important; transition: all .15s; }
.btn:focus { box-shadow: 0 0 0 4px var(--hr-ring) !important; }
.btn-primary { background: var(--hr-primary) !important; border-color: var(--hr-primary) !important; color: #fff !important; }
.btn-primary:hover, .btn-primary:active { background: var(--hr-primary-600) !important; border-color: var(--hr-primary-600) !important; }
.btn-outline-primary, .btn-default {
    background: #fff !important; color: var(--hr-text) !important; border: 1px solid var(--hr-border-strong) !important;
}
.btn-outline-primary:hover, .btn-default:hover { background: var(--hr-surface-2) !important; color: var(--hr-ink) !important; }
.btn-outline-primary i { color: var(--hr-primary); }
.btn.shadow-sm, .btn.shadow-lg { box-shadow: var(--hr-shadow-sm) !important; }
.btn-group > .btn { margin-right: 4px; }

/* Row action icons */
.btn-xs {
    width: 32px; height: 32px; padding: 0 !important; border-radius: 8px !important;
    display: inline-flex; align-items: center; justify-content: center; font-size: 13px;
    background: #fff !important; border: 1px solid var(--hr-border) !important;
}
.btn-xs.btn-outline-primary { color: var(--hr-primary) !important; }
.btn-xs.btn-outline-primary:hover { background: var(--hr-primary-50) !important; border-color: var(--hr-primary-100) !important; }
.btn-xs.btn-outline-danger { color: var(--hr-danger) !important; }
.btn-xs.btn-outline-danger:hover { background: var(--hr-danger-bg) !important; border-color: var(--hr-danger-bd) !important; }

/* ---------------------------------------------------------------------
   FORMS
   --------------------------------------------------------------------- */
label, .form-group label, label.text-secondary, label.text-dark { font-size: 13px; font-weight: 600 !important; color: var(--hr-text) !important; margin-bottom: 6px; }
.form-control, .custom-select {
    height: 40px; border-radius: 8px !important; border: 1px solid var(--hr-border-strong) !important;
    color: var(--hr-ink); font-size: 14px; box-shadow: var(--hr-shadow-sm);
}
.form-control-sm { height: 36px; font-size: 13px; }
select[multiple].form-control, textarea.form-control { height: auto; }
.form-control::placeholder { color: var(--hr-subtle); }
.form-control:focus, .custom-select:focus { border-color: var(--hr-primary) !important; box-shadow: 0 0 0 4px var(--hr-ring) !important; }
.form-control.is-invalid { border-color: #fda29b !important; background-image: none; }
.form-control.is-invalid:focus { box-shadow: 0 0 0 4px rgba(240, 68, 56, .15) !important; }
.invalid-feedback { font-size: 12.5px; color: var(--hr-danger); }
small.text-muted, .form-text { font-size: 12px; }
.input-group-text { background: var(--hr-surface-2); border-color: var(--hr-border-strong); color: var(--hr-muted); }

/* ---------------------------------------------------------------------
   TABLES & DATATABLES
   --------------------------------------------------------------------- */
.table { color: var(--hr-text); margin-bottom: 0; }
.table thead th {
    background: var(--hr-surface-2) !important; color: var(--hr-muted) !important;
    font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
    border-top: 0 !important; border-bottom: 1px solid var(--hr-border) !important; padding: 12px 14px !important;
    vertical-align: middle !important; white-space: nowrap;
}
.table td { padding: 13px 14px !important; vertical-align: middle !important; border-top: 1px solid var(--hr-border) !important; font-size: 13.5px; }
.table-bordered, .table-bordered td, .table-bordered th { border-left: 0 !important; border-right: 0 !important; }
.table-bordered { border: 0 !important; }
.table-striped tbody tr:nth-of-type(odd) { background: transparent !important; }
.table-hover tbody tr:hover { background: #f6fbfa !important; }
.table td b, .table td strong { color: var(--hr-ink); font-weight: 600; }

table.dataTable { margin-top: 4px !important; margin-bottom: 4px !important; border-collapse: collapse !important; }
table.dataTable thead .sorting:before, table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:before, table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:before, table.dataTable thead .sorting_desc:after { bottom: .9em !important; font-size: 10px; }
.dataTables_wrapper .row:first-child { margin-bottom: 8px; }
.dataTables_wrapper .dataTables_length label, .dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper .dataTables_info { font-weight: 500 !important; color: var(--hr-muted) !important; font-size: 13px; }
.dataTables_wrapper .dataTables_filter input {
    width: 260px !important; height: 38px; border-radius: 8px !important; padding: 0 12px 0 34px !important; margin-left: 8px !important;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%2398a2b3' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 11px center;
}
.dataTables_wrapper .dataTables_length select { height: 34px; border-radius: 8px !important; margin: 0 6px; }
.dataTables_wrapper .dataTables_processing {
    background: #fff; border: 1px solid var(--hr-border); border-radius: 10px; box-shadow: var(--hr-shadow-lg);
    color: var(--hr-muted); font-weight: 600; padding: 12px !important; height: auto; z-index: 5;
}
.dataTables_wrapper .dataTables_paginate { margin-top: 8px !important; }
.page-link { border: 1px solid var(--hr-border) !important; color: var(--hr-text) !important; font-weight: 600; font-size: 13px; margin-left: 4px; border-radius: 8px !important; min-width: 34px; text-align: center; }
.page-item.active .page-link { background: var(--hr-primary) !important; border-color: var(--hr-primary) !important; color: #fff !important; }
.page-item.disabled .page-link { color: var(--hr-subtle) !important; }
.page-link:hover { background: var(--hr-surface-2) !important; }
td.dataTables_empty { color: var(--hr-muted); padding: 40px !important; }

/* ---------------------------------------------------------------------
   BADGES (soft pills)
   --------------------------------------------------------------------- */
.badge { font-weight: 600; font-size: 11.5px; border-radius: 999px; padding: 4px 10px !important; letter-spacing: .02em; border: 1px solid transparent; }
.badge-success   { background: var(--hr-success-bg) !important; color: var(--hr-success) !important; border-color: var(--hr-success-bd); }
.badge-warning   { background: var(--hr-warning-bg) !important; color: var(--hr-warning) !important; border-color: var(--hr-warning-bd); }
.badge-danger    { background: var(--hr-danger-bg) !important;  color: var(--hr-danger) !important;  border-color: var(--hr-danger-bd); }
.badge-info      { background: var(--hr-info-bg) !important;    color: var(--hr-info) !important;    border-color: var(--hr-info-bd); }
.badge-secondary { background: var(--hr-gray-bg) !important;    color: var(--hr-gray) !important;    border-color: var(--hr-gray-bd); }
.badge-primary   { background: var(--hr-primary-50) !important; color: var(--hr-primary-700) !important; border-color: var(--hr-primary-100); }
.badge::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; }

/* ---------------------------------------------------------------------
   ALERTS & TOASTS
   --------------------------------------------------------------------- */
.alert { border-radius: 10px; border: 1px solid; font-weight: 500; box-shadow: var(--hr-shadow-sm) !important; }
.alert-success { background: var(--hr-success-bg); color: var(--hr-success); border-color: var(--hr-success-bd); }
.alert-info    { background: var(--hr-info-bg);    color: var(--hr-info);    border-color: var(--hr-info-bd); }
.alert-warning { background: var(--hr-warning-bg); color: var(--hr-warning); border-color: var(--hr-warning-bd); }
.alert-danger  { background: var(--hr-danger-bg);  color: var(--hr-danger);  border-color: var(--hr-danger-bd); }
.alert .close { color: inherit; opacity: .6; text-shadow: none; }

#hrms-toasts { position: fixed; top: 76px; right: 20px; z-index: 2000; width: 360px; max-width: calc(100vw - 32px); }
#hrms-toasts .alert { background: #fff; color: var(--hr-ink); border: 1px solid var(--hr-border); border-left: 4px solid; box-shadow: var(--hr-shadow-lg) !important; padding: 14px 40px 14px 16px; }
#hrms-toasts .alert-success { border-left-color: #17b26a; }
#hrms-toasts .alert-danger  { border-left-color: #f04438; }
#hrms-toasts .alert-warning { border-left-color: #f79009; }
#hrms-toasts .alert-info    { border-left-color: #2e90fa; }

/* ---------------------------------------------------------------------
   MODALS & DROPDOWNS
   --------------------------------------------------------------------- */
.modal-backdrop.show { opacity: .45; background: #0c111d; }
.modal-content { border: 0; border-radius: 16px; box-shadow: 0 24px 48px -12px rgba(16, 24, 40, .25); overflow: hidden; }
.modal-header { border-bottom: 1px solid var(--hr-border); padding: 18px 24px; }
.modal-title { font-size: 17px; font-weight: 700 !important; color: var(--hr-ink) !important; }
.modal-body { padding: 22px 24px; }
.modal-footer { background: var(--hr-surface-2); border-top: 1px solid var(--hr-border); padding: 14px 24px; }
.modal .close { font-weight: 400; font-size: 26px; color: var(--hr-subtle); opacity: 1; }
.dropdown-menu { border: 1px solid var(--hr-border); border-radius: 10px; box-shadow: var(--hr-shadow-lg); }
.dropdown-item.active, .dropdown-item:active { background: var(--hr-primary) !important; }

/* ---------------------------------------------------------------------
   DASHBOARD
   --------------------------------------------------------------------- */
.hr-welcome {
    background: linear-gradient(120deg, var(--hr-side-bg) 0%, #12505a 55%, var(--hr-primary) 100%);
    color: #fff; border-radius: var(--hr-radius-lg); padding: 24px 28px; margin-bottom: 20px; position: relative; overflow: hidden;
}
.hr-welcome::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.hr-welcome h2 { color: #fff; font-size: 22px; margin: 0 0 4px; }
.hr-welcome p { color: rgba(255, 255, 255, .78); margin: 0; }

.card.hr-kpi { padding: 20px; display: flex; flex-direction: row; align-items: flex-start; justify-content: space-between; height: 100%; margin-bottom: 0; }
.hr-kpi-label { color: var(--hr-muted); font-size: 13px; font-weight: 600; }
.hr-kpi-value { color: var(--hr-ink); font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin-top: 6px; }
.hr-kpi-note { color: var(--hr-subtle); font-size: 12px; margin-top: 4px; }
.hr-kpi-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex: 0 0 44px; }
.hr-tone-teal   { background: var(--hr-primary-50); color: var(--hr-primary); }
.hr-tone-blue   { background: var(--hr-info-bg); color: var(--hr-info); }
.hr-tone-amber  { background: var(--hr-warning-bg); color: var(--hr-warning); }
.hr-tone-violet { background: #f4f3ff; color: #5925dc; }

.hr-bar-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--hr-border); }
.hr-bar-row:last-child { border-bottom: 0; }
.hr-bar-name { width: 34%; font-weight: 500; color: var(--hr-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hr-bar-track { flex: 1; height: 8px; background: var(--hr-gray-bg); border-radius: 999px; overflow: hidden; }
.hr-bar-fill { height: 100%; background: var(--hr-primary); border-radius: 999px; }
.hr-bar-num { width: 40px; text-align: right; font-weight: 700; color: var(--hr-ink); }

.hr-quick a { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--hr-border); border-radius: 10px; color: var(--hr-ink); font-weight: 600; margin-bottom: 10px; transition: all .15s; }
.hr-quick a:hover { border-color: var(--hr-primary-100); background: var(--hr-primary-50); }
.hr-quick a i.go { margin-left: auto; color: var(--hr-subtle); }

/* ---------------------------------------------------------------------
   PERMISSION MATRIX & MENUS
   --------------------------------------------------------------------- */
.matrix-checkbox { width: 18px; height: 18px; cursor: pointer; accent-color: var(--hr-primary); vertical-align: middle; }
.parent-row td { background: var(--hr-surface-2) !important; font-weight: 700; color: var(--hr-ink); font-size: 12.5px; letter-spacing: .03em; }
.parent-row td i { color: var(--hr-primary); }

/* ---------------------------------------------------------------------
   FOOTER
   --------------------------------------------------------------------- */
.hr-footer.main-footer { background: transparent; border-top: 1px solid var(--hr-border); color: var(--hr-subtle); font-size: 12.5px; padding: 14px 24px; }

/* ---------------------------------------------------------------------
   LOGIN
   --------------------------------------------------------------------- */
.hr-login { min-height: 100vh; display: flex; background: #fff; }
.hr-login-brand {
    flex: 1 1 52%; position: relative; overflow: hidden; color: #fff; padding: 48px 56px; display: flex; flex-direction: column;
    background: linear-gradient(140deg, var(--hr-side-bg-2) 0%, #0f3d45 50%, var(--hr-primary) 100%);
}
.hr-login-brand::before, .hr-login-brand::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .05); }
.hr-login-brand::before { width: 520px; height: 520px; right: -180px; bottom: -200px; }
.hr-login-brand::after { width: 300px; height: 300px; left: -120px; top: -120px; }
.hr-login-logo { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.hr-login-logo .hr-brand-logo { width: 48px; height: 48px; flex-basis: 48px; border-radius: 12px; }
.hr-login-logo .hr-brand-logo img { width: 38px; height: 38px; }
.hr-login-logo span { font-size: 20px; font-weight: 600; }
.hr-login-logo b { color: var(--hr-side-accent); font-weight: 800; }
.hr-login-pitch { margin-top: auto; margin-bottom: auto; max-width: 460px; position: relative; z-index: 1; }
.hr-login-pitch h1 { color: #fff; font-size: 36px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; margin-bottom: 14px; }
.hr-login-pitch p { color: rgba(255, 255, 255, .75); font-size: 15px; line-height: 1.6; }
.hr-login-points { list-style: none; padding: 0; margin: 28px 0 0; }
.hr-login-points li { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: rgba(255, 255, 255, .9); font-weight: 500; }
.hr-login-points i { width: 32px; height: 32px; border-radius: 8px; background: rgba(255, 255, 255, .1); display: inline-flex; align-items: center; justify-content: center; color: var(--hr-side-accent); }
.hr-login-copy { color: rgba(255, 255, 255, .5); font-size: 12.5px; position: relative; z-index: 1; }

.hr-login-form { flex: 1 1 48%; display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: #fff; }
.hr-login-box { width: 100%; max-width: 380px; }
.hr-login-box h2 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.hr-login-box .sub { color: var(--hr-muted); margin-bottom: 28px; }
.hr-login-box .form-control { height: 44px; }
.hr-input-icon { position: relative; }
.hr-input-icon > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--hr-subtle); }
.hr-input-icon .form-control { padding-left: 40px; }
.hr-login-box #password { padding-right: 44px; }
.hr-pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--hr-subtle); width: 34px; height: 34px; border-radius: 6px; }
.hr-pw-toggle:hover { color: var(--hr-text); background: var(--hr-surface-2); }
.hr-login-box .btn-primary { height: 44px; font-size: 14.5px; }
.hr-login-mobile-logo { display: none; }

@media (max-width: 991px) {
    .hr-login-brand { display: none; }
    .hr-login-mobile-logo { display: flex; margin-bottom: 28px; }
    .hr-login-mobile-logo span { color: var(--hr-ink); }
}

/* ---------------------------------------------------------------------
   SMALL SCREENS
   --------------------------------------------------------------------- */
@media (max-width: 767px) {
    .content-wrapper { padding: 4px 4px 20px !important; }
    .content-header h1 { font-size: 19px !important; }
    .content-header .text-right { justify-content: flex-start; margin-top: 12px; }
    .dataTables_wrapper .dataTables_filter input { width: 100% !important; }
    .hr-welcome { padding: 20px; }
}

/* Keep codes, dates and action buttons on one line; wide tables scroll inside the card */
.dataTables_wrapper > .row:nth-child(2) > [class*="col-"] { overflow-x: auto; }
table.dataTable td { white-space: nowrap; }
table.dataTable td .btn-xs + .btn-xs { margin-left: 4px; }
@media (max-width: 575px) {
    .dataTables_filter label { display: flex; align-items: center; gap: 8px; width: 100%; }
    .dataTables_filter input { width: 100% !important; margin-left: 0 !important; }
    .card.hr-kpi { padding: 14px; }
    .hr-kpi-value { font-size: 24px; }
    .hr-kpi-icon { width: 34px; height: 34px; flex-basis: 34px; font-size: 14px; border-radius: 10px; }
    .hr-kpi-label { font-size: 12px; }
}

/* ---------------------------------------------------------------------
   LEAVE
   --------------------------------------------------------------------- */
.card.hr-lv-card { padding: 18px 20px; height: 100%; margin-bottom: 0; }
.hr-lv-name { color: var(--hr-muted); font-size: 13px; font-weight: 600; }
.hr-lv-num { color: var(--hr-ink); font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin: 4px 0 10px; }
.hr-lv-num small { font-size: 13px; font-weight: 500; color: var(--hr-muted); letter-spacing: 0; }
.hr-lv-sub { color: var(--hr-subtle); font-size: 12.5px; margin-top: 8px; }
.hr-lv-card .hr-bar-track { flex: none; }
.hr-lv-balance { background: var(--hr-primary-50); border: 1px solid var(--hr-primary-100); border-radius: 12px; padding: 16px 18px; }
.hr-lv-balance .hr-lv-num { margin-bottom: 0; }
.hr-lv-preview { background: var(--hr-surface-2); border: 1px dashed var(--hr-border); border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; font-size: 13.5px; color: var(--hr-muted); }
.hr-lv-preview.ok { background: var(--hr-primary-50); border-color: var(--hr-primary-100); color: var(--hr-primary-700); border-style: solid; }
.hr-lv-preview.bad { background: var(--hr-danger-bg); border-color: var(--hr-danger-bd); color: var(--hr-danger); border-style: solid; }
.hr-dl { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; margin: 0; }
.hr-dl dt { color: var(--hr-muted); font-weight: 500; }
.hr-dl dd { margin: 0; color: var(--hr-ink); }
.hr-clip { display: inline-block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.hr-dash-list li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--hr-border); }
.hr-dash-list li:last-child { border-bottom: 0; }

/* Notification bell */
.hr-bell .hr-icon-btn { position: relative; font-size: 17px; }
.hr-bell-badge {
    position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
    background: #e5383b; color: #fff; font-size: 10.5px; font-weight: 700; line-height: 18px; text-align: center;
    box-shadow: 0 0 0 2px #fff;
}
.hr-notif { width: 360px; max-width: calc(100vw - 24px); padding: 0 !important; overflow: hidden; }
.hr-notif-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--hr-border); }
.hr-notif-list { max-height: 420px; overflow-y: auto; }
.hr-notif-item { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--hr-border); color: var(--hr-text) !important; position: relative; }
.hr-notif-item:hover { background: var(--hr-surface-2); }
.hr-notif-item.unread { background: var(--hr-primary-50); }
.hr-notif-item.unread::after { content: ''; position: absolute; right: 14px; top: 18px; width: 8px; height: 8px; border-radius: 50%; background: #e5383b; }
.hr-notif-icon { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.hr-nt-info { background: var(--hr-info-bg); color: var(--hr-info); }
.hr-nt-success { background: var(--hr-success-bg); color: var(--hr-success); }
.hr-nt-warning { background: var(--hr-warning-bg); color: var(--hr-warning); }
.hr-nt-danger { background: var(--hr-danger-bg); color: var(--hr-danger); }
.hr-nt-secondary { background: var(--hr-gray-bg); color: var(--hr-gray); }
.hr-notif-text { display: flex; flex-direction: column; min-width: 0; padding-right: 12px; white-space: normal; }
.hr-notif-text b { font-size: 13.5px; color: var(--hr-ink); }
.hr-notif-text span { font-size: 12.5px; color: var(--hr-muted); line-height: 1.4; }
.hr-notif-text small { color: var(--hr-subtle); margin-top: 3px; }
.hr-notif-empty { padding: 32px 16px; text-align: center; color: var(--hr-subtle); }
.hr-notif-empty i { font-size: 22px; }

/* Approval timeline */
.hr-tl-title { font-weight: 700; color: var(--hr-ink); margin-bottom: 10px; }
.hr-tl-item { display: flex; gap: 12px; position: relative; padding-bottom: 14px; }
.hr-tl-item:not(:last-child)::before { content: ''; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--hr-border); }
.hr-tl-item > i { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; background: var(--hr-gray-bg); color: var(--hr-gray); }
.hr-tl-submitted > i { background: var(--hr-info-bg); color: var(--hr-info); }
.hr-tl-approved > i { background: var(--hr-success-bg); color: var(--hr-success); }
.hr-tl-rejected > i { background: var(--hr-danger-bg); color: var(--hr-danger); }
.hr-tl-current > i { background: var(--hr-warning-bg); color: var(--hr-warning); box-shadow: 0 0 0 3px var(--hr-warning-bd); }
.hr-tl-todo > i { font-size: 7px; }
.hr-tl-todo b { color: var(--hr-subtle); font-weight: 500; }
.hr-seg .btn.active { background: var(--hr-primary-50) !important; border-color: var(--hr-primary-100) !important; color: var(--hr-primary-700) !important; font-weight: 600; }

/* ---------------------------------------------------------------------
   ATTENDANCE
   --------------------------------------------------------------------- */
.hr-att { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.hr-att-p  { background: var(--hr-success-bg); color: var(--hr-success); border-color: var(--hr-success-bd, transparent); }
.hr-att-l  { background: var(--hr-warning-bg); color: var(--hr-warning); border-color: var(--hr-warning-bd, transparent); }
.hr-att-hd { background: #fff4ed; color: #c4320a; }
.hr-att-a  { background: var(--hr-danger-bg); color: var(--hr-danger); border-color: var(--hr-danger-bd, transparent); }
.hr-att-lv { background: var(--hr-info-bg); color: var(--hr-info); }
.hr-att-h  { background: #f4f3ff; color: #5925dc; }
.hr-att-o  { background: var(--hr-gray-bg); color: var(--hr-gray); }
.hr-att-nm { background: var(--hr-surface-2); color: var(--hr-subtle); border-color: var(--hr-border); border-style: dashed; }

/* Count chips on top of the register (click to filter) */
.hr-att-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.hr-att-chip { flex: 1 1 120px; background: var(--hr-surface); border: 1px solid var(--hr-border); border-radius: 12px; padding: 12px 14px; cursor: pointer; transition: border-color .15s, box-shadow .15s; text-align: left; }
.hr-att-chip:hover { border-color: var(--hr-primary-100); }
.hr-att-chip.active { border-color: var(--hr-primary); box-shadow: 0 0 0 3px var(--hr-ring); }
.hr-att-chip b { display: block; font-size: 24px; font-weight: 800; color: var(--hr-ink); line-height: 1.1; }
.hr-att-chip span { font-size: 12.5px; color: var(--hr-muted); font-weight: 600; }
.hr-att-chip i { float: right; margin-top: 2px; font-size: 14px; }

/* Check-in card */
.hr-clock { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 22px 24px; border-radius: 16px;
    background: linear-gradient(135deg, var(--hr-primary-50), #fff 70%); border: 1px solid var(--hr-primary-100); }
.hr-clock-time { font-size: 34px; font-weight: 800; color: var(--hr-ink); letter-spacing: -.02em; line-height: 1.1; }
.hr-clock-date { color: var(--hr-muted); font-size: 13.5px; margin-top: 2px; }
.hr-clock-shift { color: var(--hr-subtle); font-size: 12.5px; margin-top: 6px; }
.hr-clock-stats { display: flex; gap: 22px; flex-wrap: wrap; }
.hr-clock-stats div { min-width: 86px; }
.hr-clock-stats small { display: block; color: var(--hr-muted); font-size: 12px; font-weight: 600; }
.hr-clock-stats b { font-size: 17px; color: var(--hr-ink); }
.hr-clock .btn-lg { min-width: 170px; border-radius: 12px; font-weight: 700; }
.hr-clock-note { font-size: 12.5px; color: var(--hr-muted); margin-top: 6px; text-align: center; }

/* Month calendar */
.hr-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.hr-cal-head { text-align: center; font-size: 12px; font-weight: 700; color: var(--hr-muted); padding: 4px 0; }
.hr-cal-day { min-height: 74px; border: 1px solid var(--hr-border); border-radius: 10px; padding: 6px 8px; background: var(--hr-surface); font-size: 12px; overflow: hidden; }
.hr-cal-day.blank { border: 0; background: transparent; }
.hr-cal-day.today { border-color: var(--hr-primary); box-shadow: 0 0 0 2px var(--hr-ring); }
.hr-cal-day .n { font-weight: 700; color: var(--hr-ink); font-size: 13px; }
.hr-cal-day .t { color: var(--hr-muted); margin-top: 3px; white-space: nowrap; }
.hr-cal-day .hr-att { font-size: 10.5px; padding: 1px 7px; margin-top: 4px; }
.hr-cal-day.st-a { background: #fffbfa; }
.hr-cal-day.st-o, .hr-cal-day.st-h { background: var(--hr-surface-2); }
.hr-tot { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--hr-muted); }
.hr-tot b { color: var(--hr-ink); font-size: 15px; margin-left: 4px; }
@media (max-width: 575.98px) {
    .hr-cal { gap: 3px; }
    .hr-cal-day { min-height: 52px; padding: 4px; font-size: 10px; }
    .hr-cal-day .t { display: none; }
    .hr-cal-day .hr-att { display: block; width: 10px; height: 10px; padding: 0; margin-top: 6px; border: 0; border-radius: 50%; font-size: 0; background: currentColor; }
    .hr-clock { padding: 16px; }
    .hr-clock-time { font-size: 28px; }
    .hr-clock .btn-lg { width: 100%; }
}

/* Import */
.hr-drop { border: 2px dashed var(--hr-border-strong); border-radius: 14px; padding: 26px 16px; text-align: center; color: var(--hr-muted); background: var(--hr-surface-2); cursor: pointer; transition: border-color .15s, background .15s; }
.hr-drop:hover, .hr-drop.over { border-color: var(--hr-primary); background: var(--hr-primary-50); }
.hr-drop i { font-size: 28px; color: var(--hr-primary); margin-bottom: 8px; }
.hr-drop b { color: var(--hr-ink); }
tr.hr-row-error td { background: #fffbfa !important; }
tr.hr-row-skip td { color: var(--hr-subtle); }

/* ---------------------------------------------------------------------
   PAYROLL
   --------------------------------------------------------------------- */

.hr-run-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hr-run-head h2 { font-size: 22px; font-weight: 800; margin: 0; color: var(--hr-ink); }
.hr-run-steps { display: flex; gap: 6px; flex-wrap: wrap; font-size: 12px; }
.hr-run-steps span { padding: 4px 10px; border-radius: 999px; background: var(--hr-gray-bg); color: var(--hr-gray); font-weight: 600; }
.hr-run-steps span.done { background: var(--hr-success-bg); color: var(--hr-success); }
.hr-run-steps span.now { background: var(--hr-warning-bg); color: var(--hr-warning); box-shadow: 0 0 0 2px var(--hr-warning-bd); }
.hr-money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.hr-pay-row td { vertical-align: middle !important; }
