:root {
    --hris-border: #e7eaec;
    --hris-heading: #2f4050;
    --hris-muted: #8091a7;
    --hris-primary: #1c84c6;
    --hris-success: #1ab394;
    --hris-warning: #f8ac59;
}

html[data-bs-theme="light"] {
    --ins-body-bg: #f3f3f4;
    --ins-sidenav-bg: #ffffff;
    --ins-sidenav-item-color: #111111;
    --ins-sidenav-item-hover-color: #111111;
    --ins-sidenav-item-active-color: #111111;
    --ins-sidenav-item-hover-bg: #f6f7f9;
    --ins-sidenav-item-active-bg: #f6f7f9;
}

html[data-bs-theme="light"] .sidenav-menu {
    border-right: 1px solid #edf1f6 !important;
    box-shadow: none;
}

.hris-sidebar-brand {
    height: 70px;
    padding: .6rem 1.35rem .45rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    border-bottom: 1px solid #edf1f6;
    text-decoration: none;
}

.hris-sidebar-brand img { width: 162px; height: auto; display: block; }
.hris-sidebar-brand span { margin: .1rem 0 0 2.75rem; color: #8091a7; font-size: .55rem; font-weight: 700; letter-spacing: .12em; }
.sidenav-menu .hris-sidebar-scroll { height: calc(100% - 70px); }

html[data-bs-theme="light"] .app-topbar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--hris-border);
    box-shadow: none;
}

html[data-bs-theme="light"] .content-page {
    background-color: #f3f3f4;
}

html[data-bs-theme="light"] .sidenav-menu .side-nav-title,
html[data-bs-theme="light"] .sidenav-menu .side-nav-link,
html[data-bs-theme="light"] .sidenav-menu .side-nav-link .menu-icon,
html[data-bs-theme="light"] .sidenav-menu .side-nav-link .menu-text {
    color: #111111;
}

html[data-bs-theme="light"] .sidenav-menu .side-nav-link:hover,
html[data-bs-theme="light"] .sidenav-menu .side-nav-link.active,
html[data-bs-theme="light"] .sidenav-menu .side-nav-item.active > .side-nav-link {
    color: #111111;
    background-color: #f6f7f9;
}

html[data-bs-theme="light"] .sidenav-menu .sub-menu .side-nav-link {
    display: flex;
    width: calc(100% - 22px);
    margin-left: 22px;
    padding: var(--ins-sidenav-sub-item-padding-y) var(--ins-sidenav-sub-item-padding-x);
}

.sidenav-menu .sidenav-user {
    background-image: none !important;
    background-color: transparent !important;
}

.hris-profile-avatar,
.hris-topbar-avatar,
.employee-avatar {
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(145deg, var(--hris-primary), #23c6c8);
    border-radius: 50%;
    font-weight: 700;
    text-transform: uppercase;
}

.hris-profile-avatar { width: 72px; height: 72px; margin-inline: auto; font-size: 1.35rem; }
.hris-topbar-avatar { width: 32px; height: 32px; flex: 0 0 32px; font-size: .75rem; }
.employee-avatar { width: 38px; height: 38px; flex: 0 0 38px; font-size: .75rem; }
.employee-avatar.employee-avatar-lg { width: 76px; height: 76px; flex-basis: 76px; font-size: 1.35rem; }

.sidenav-menu .profile-user-name { display: block; font-size: 1.0625rem; font-weight: 700; line-height: 1.25; }
.sidenav-menu .profile-user-position { display: block; margin-top: 2px; color: #596780; font-size: .75rem; }
.logo-topbar .logo-lg img { max-width: 160px; max-height: 44px; object-fit: contain; }
.logo-topbar .logo-sm img { max-width: 36px; max-height: 36px; object-fit: contain; }

.page-title-head {
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--hris-border);
    background-color: #f8f9fb;
}

.page-title-head h4 { color: var(--hris-heading); }
.card { border: 1px solid var(--hris-border); box-shadow: none; }
.card-header { border-bottom: 1px dashed var(--hris-border); background: var(--bs-body-bg); }
.card-title { color: var(--hris-heading); }
.btn-default { color: #ffffff; background-color: var(--hris-success); border-color: var(--hris-success); }
.btn-default:hover { color: #ffffff; background-color: #179d82; border-color: #179d82; }

.hris-kpi-value { color: #34495e; font-size: 2rem; font-weight: 400; line-height: 1; }
.hris-kpi-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; font-size: 1.4rem; }
.hris-kpi-icon.primary { color: var(--hris-primary); background: rgba(28,132,198,.14); }
.hris-kpi-icon.success { color: var(--hris-success); background: rgba(26,179,148,.14); }
.hris-kpi-icon.info { color: #14999b; background: rgba(35,198,200,.16); }
.hris-kpi-icon.warning { color: #d9872e; background: rgba(248,172,89,.18); }

.employee-cell { min-width: 230px; display: flex; align-items: center; gap: .75rem; }
.employee-cell strong, .employee-cell small { display: block; }
.employee-cell small { margin-top: .15rem; color: var(--bs-secondary-color); font-size: .75rem; }
.employee-name-link { color: var(--bs-link-color); font-weight: 600; }
.filter-card .form-label { margin-bottom: .35rem; font-size: .76rem; font-weight: 600; }
.filter-card .input-group-text { color: var(--bs-secondary-color); background: var(--bs-body-bg); }

.employee-profile-header { display: flex; align-items: center; gap: 1.15rem; }
.employee-profile-header h3 { margin-bottom: .2rem; }
.employee-profile-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; color: var(--bs-secondary-color); font-size: .82rem; }
.employee-profile-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.employee-workspace-card { overflow: hidden; }
.employee-editor-header { min-height: 108px; padding: 1.25rem 1.5rem; background: var(--bs-body-bg); }
.employee-tabs-wrap { overflow-x: auto; border-top: 1px solid var(--hris-border); border-bottom: 1px solid var(--hris-border); background: var(--bs-body-bg); }
.employee-profile-tabs { width: max-content; min-width: 100%; padding: 0 1.25rem; border-bottom: 0; flex-wrap: nowrap; }
.employee-profile-tabs .nav-link {
    margin-bottom: 0;
    padding: .95rem 1rem;
    color: var(--bs-secondary-color);
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    font-weight: 600;
    white-space: nowrap;
}
.employee-profile-tabs .nav-link:hover { color: var(--hris-primary); border-bottom-color: rgba(28,132,198,.3); }
.employee-profile-tabs .nav-link.active { color: var(--hris-success); background: rgba(26,179,148,.06); border-bottom-color: var(--hris-success); }
.employee-profile-tabs .tab-count { display: inline-grid; min-width: 20px; height: 20px; margin-left: .25rem; padding-inline: .35rem; place-items: center; background: var(--bs-tertiary-bg); border-radius: 999px; font-size: .65rem; }
.employee-tab-content { min-height: 440px; padding: 1.25rem; background: #f8fafb; }
.profile-section-card { padding: 1.15rem; background: var(--bs-body-bg); border: 1px solid var(--hris-border); border-radius: .5rem; }
.profile-section-heading { display: flex; align-items: flex-start; gap: .7rem; margin-bottom: 1.15rem; }
.profile-section-heading > span { width: 34px; height: 34px; display: grid; flex: 0 0 34px; place-items: center; color: var(--hris-primary); background: rgba(28,132,198,.11); border-radius: .4rem; font-size: 1rem; }
.profile-section-heading h5 { margin: 0; color: var(--hris-heading); font-size: .95rem; }
.profile-section-heading p { margin: .15rem 0 0; color: var(--bs-secondary-color); font-size: .75rem; }
.government-id-card strong { display: block; color: var(--hris-heading); font-size: 1rem; letter-spacing: .04em; }
.data-label { margin-bottom: .25rem; color: var(--bs-secondary-color); font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.data-value { color: var(--hris-heading); font-weight: 500; }
.government-id-tile { height: 100%; padding: .9rem 1rem; background: var(--bs-tertiary-bg); border: 1px solid var(--hris-border); border-radius: .45rem; }
.government-id-tile strong { display: block; margin-top: .25rem; color: var(--hris-heading); letter-spacing: .03em; }

.form-section-description { max-width: 760px; }
.form-label .required { color: #dc3545; }
.form-control:disabled, .form-select:disabled { background-color: var(--bs-tertiary-bg); }
.errorlist { margin: .35rem 0 0; padding: 0; color: #dc3545; font-size: .75rem; list-style: none; }
.form-actions { position: sticky; bottom: 0; z-index: 10; padding: .85rem 1rem; background: color-mix(in srgb, var(--bs-body-bg) 94%, transparent); border: 1px solid var(--hris-border); border-radius: .45rem; backdrop-filter: blur(8px); }

.child-record-card { overflow: hidden; }
.child-table-wrap { border-bottom: 1px solid var(--hris-border); }
.child-record-table { width: max-content; min-width: 100%; }
.child-record-table th {
    min-width: 150px;
    padding: .65rem .55rem;
    color: var(--bs-secondary-color);
    background: var(--bs-tertiary-bg);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .035em;
    text-transform: uppercase;
    white-space: nowrap;
}
.child-record-table td { min-width: 150px; padding: .55rem; vertical-align: top; }
.child-record-table td[data-field="address_line"],
.child-record-table td[data-field="school_name"],
.child-record-table td[data-field="course_degree"],
.child-record-table td[data-field="reason"],
.child-record-table td[data-field="notes"],
.child-record-table td[data-field="address"] { min-width: 230px; }
.child-record-table td[data-field="front_image"],
.child-record-table td[data-field="back_image"] { min-width: 280px; }
.child-record-table td[data-field="is_primary"],
.child-record-table td[data-field="is_highest_attainment"],
.child-record-table th[data-field="is_primary"],
.child-record-table th[data-field="is_highest_attainment"] { min-width: 95px; text-align: center; }
.child-record-table td[data-field="is_primary"] .form-check-input,
.child-record-table td[data-field="is_highest_attainment"] .form-check-input { display: block; margin: .45rem auto 0; }
.child-record-table textarea { min-height: 34px; resize: vertical; }
.child-record-table .form-text { max-width: 260px; font-size: .67rem; }
.child-row-action { width: 72px; min-width: 72px !important; text-align: center; }
.child-empty-state { padding: .65rem 1rem; background: var(--bs-tertiary-bg); }
.modal-record-card { height: 100%; overflow: hidden; }
.modal-record-list { min-height: 96px; }
.modal-record-item { display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; border-bottom: 1px solid var(--hris-border); }
.modal-record-item:last-of-type { border-bottom: 0; }
.modal-record-icon { width: 36px; height: 36px; display: grid; flex: 0 0 36px; place-items: center; color: var(--hris-primary); background: rgba(28,132,198,.1); border-radius: .4rem; font-size: 1rem; }
.child-record-summary { min-width: 0; }
.child-record-summary strong,
.child-record-summary span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.child-record-summary strong { color: var(--hris-heading); font-size: .85rem; }
.modal-record-empty { min-height: 96px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .35rem; padding: 1rem; color: var(--bs-secondary-color); text-align: center; }
.modal-record-empty i { font-size: 1.35rem; opacity: .6; }
.child-record-modal .modal-header,
.child-record-modal .modal-footer { background: var(--bs-body-bg); }
.child-record-modal .modal-body { padding: 1.25rem; background: #f8fafb; }
.child-record-modal .modal-field { padding: .8rem; background: var(--bs-body-bg); border: 1px solid var(--hris-border); border-radius: .4rem; }
.child-record-modal .modal-field:has(textarea) { flex-basis: 100%; max-width: 100%; }
.child-record-modal .modal-field .form-label { font-size: .76rem; font-weight: 600; }
.child-record-modal .modal-field .form-check-input { margin-left: .25rem; }
.profile-child-record + .profile-child-record,
.government-id-record + .government-id-record { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--hris-border); }
.government-id-record strong { display: block; margin-top: .15rem; color: var(--hris-heading); letter-spacing: .03em; }
.government-id-images { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem; }
.government-id-images img { width: 52px; height: 38px; object-fit: cover; border: 1px solid var(--hris-border); border-radius: .3rem; }
.government-id-images img:hover { border-color: var(--hris-primary); }

.employee-profile-sheet { overflow: hidden; }
.employee-sheet-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem 1.25rem;
    background: var(--bs-body-bg);
    border-bottom: 1px solid var(--hris-border);
}
.employee-sheet-header {
    display: flex;
    align-items: center;
    gap: 1.35rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
    border-bottom: 1px solid var(--hris-border);
}
.employee-avatar.employee-avatar-xl { width: 94px; height: 94px; flex: 0 0 94px; font-size: 1.6rem; }
.employee-sheet-identity { flex: 0 1 290px; min-width: 220px; }
.employee-sheet-identity h2 { margin: 0; color: var(--hris-heading); font-size: 1.45rem; }
.employee-sheet-identity > p { margin: .25rem 0 0; color: var(--bs-secondary-color); }
.employee-quick-facts {
    display: grid;
    flex: 1;
    grid-template-columns: repeat(4, minmax(125px, 1fr));
    gap: .75rem 1.25rem;
    padding-left: 1.25rem;
    border-left: 1px solid var(--hris-border);
}
.employee-quick-facts small,
.employee-quick-facts strong { display: block; }
.employee-quick-facts small { margin-bottom: .2rem; color: var(--bs-secondary-color); font-size: .66rem; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; }
.employee-quick-facts strong { color: var(--hris-heading); font-size: .84rem; font-weight: 600; overflow-wrap: anywhere; }
.profile-sheet-body { padding: 1rem; background: #f8fafb; }
.profile-sheet-section {
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    background: var(--bs-body-bg);
    border: 1px solid var(--hris-border);
    border-radius: .5rem;
}
.profile-sheet-body > .row { margin-bottom: 1rem; }
.profile-sheet-body > .row .profile-sheet-section { margin-bottom: 0; }
.profile-sheet-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .8rem;
    padding-bottom: .65rem;
    border-bottom: 1px solid var(--hris-border);
}
.profile-sheet-heading h4 { margin: 0; color: var(--hris-heading); font-size: .95rem; }
.profile-sheet-heading p { margin: .2rem 0 0; color: var(--bs-secondary-color); font-size: .73rem; }
.profile-field-grid { display: grid; gap: .1rem; }
.profile-field-row {
    display: grid;
    grid-template-columns: minmax(125px, .75fr) minmax(0, 1.25fr);
    gap: 1rem;
    min-height: 36px;
    padding: .48rem .15rem;
    border-bottom: 1px dashed #edf0f2;
}
.profile-field-row:last-child { border-bottom: 0; }
.profile-field-row span { color: var(--bs-secondary-color); font-size: .72rem; font-weight: 600; }
.profile-field-row strong { color: var(--hris-heading); font-size: .8rem; font-weight: 500; overflow-wrap: anywhere; }
.profile-data-table { margin: 0; }
.profile-data-table thead th {
    color: var(--bs-secondary-color);
    background: var(--bs-tertiary-bg);
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}
.profile-data-table tbody td { color: var(--hris-heading); font-size: .8rem; vertical-align: middle; }
.profile-attachment-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .8rem; }
.profile-attachment-card { overflow: hidden; background: var(--bs-body-bg); border: 1px solid var(--hris-border); border-radius: .45rem; }
.profile-attachment-preview { height: 120px; display: grid; place-items: center; color: var(--hris-primary); background: #eef5fa; }
.profile-attachment-preview img { width: 100%; height: 100%; display: block; object-fit: cover; }
.profile-attachment-preview i { font-size: 2rem; opacity: .65; }
.profile-attachment-info { padding: .7rem .8rem; }
.profile-attachment-info strong,
.profile-attachment-info span,
.profile-attachment-info a { display: block; }
.profile-attachment-info strong { color: var(--hris-heading); font-size: .82rem; }
.profile-attachment-info span { margin-top: .15rem; color: var(--bs-secondary-color); font-size: .74rem; }
.profile-attachment-info a { margin-top: .35rem; font-size: .72rem; }
.profile-attachments-empty { padding: 1.5rem; color: var(--bs-secondary-color); background: var(--bs-tertiary-bg); border: 1px dashed var(--hris-border); border-radius: .45rem; text-align: center; }

.settings-program-card { height: 100%; }
.settings-program-icon { width: 44px; height: 44px; display: grid; place-items: center; color: var(--hris-primary); background: rgba(28,132,198,.12); border-radius: .5rem; font-size: 1.2rem; }
.status-dot { width: 7px; height: 7px; display: inline-block; margin-right: .35rem; border-radius: 50%; }
.status-dot.verified { background: var(--hris-success); }
.status-dot.draft { background: var(--hris-warning); }
.empty-table-state { padding: 3rem 1rem !important; color: var(--bs-secondary-color); text-align: center; }

.auth-brand-logo { width: min(100%, 280px); margin: 0 auto; }
.auth-brand-logo img { width: 100%; height: auto; display: block; }
.auth-subtitle { max-width: 420px; margin: .5rem auto 0; }

@media (max-width: 767.98px) {
    .employee-profile-header { align-items: flex-start; flex-direction: column; }
    .form-actions { position: static; }
    .employee-editor-header { padding: 1rem; }
    .employee-profile-tabs { padding-inline: .35rem; }
    .employee-profile-tabs .nav-link { padding: .8rem .75rem; }
    .employee-tab-content { padding: .85rem; }
    .employee-sheet-toolbar { align-items: stretch; flex-direction: column; }
    .employee-sheet-toolbar .d-flex { width: 100%; }
    .employee-sheet-toolbar .btn { flex: 1; }
    .employee-sheet-header { align-items: flex-start; flex-direction: column; padding: 1.1rem; }
    .employee-quick-facts { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 1rem 0 0; border-top: 1px solid var(--hris-border); border-left: 0; }
    .profile-sheet-body { padding: .75rem; }
    .profile-field-row { grid-template-columns: 1fr; gap: .2rem; }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .employee-quick-facts { grid-template-columns: repeat(2, minmax(125px, 1fr)); }
}

/* HRIS dashboard shell */
:root {
    --hris-shell-blue: #073858;
    --hris-shell-blue-dark: #052b4a;
    --hris-dashboard-bg: #f6f8fb;
    --hris-dashboard-line: #e4eaf2;
    --hris-dashboard-ink: #10213e;
    --hris-dashboard-muted: #6c778b;
    --hris-dashboard-blue: #3478f6;
    --hris-dashboard-green: #25b66f;
    --hris-dashboard-orange: #f3a21b;
    --hris-dashboard-red: #f05d61;
    --hris-dashboard-violet: #8170f5;
    --hris-dashboard-teal: #2eb8b8;
    --ins-sidenav-width: 244px;
    --ins-topbar-height: 82px;
}

html[data-bs-theme="light"] {
    --ins-body-bg: var(--hris-dashboard-bg);
    --ins-sidenav-bg: var(--hris-shell-blue);
    --ins-sidenav-border-color: rgba(255,255,255,.08);
    --ins-sidenav-item-color: #edf6ff;
    --ins-sidenav-item-hover-color: #ffffff;
    --ins-sidenav-item-active-color: #ffffff;
    --ins-sidenav-item-hover-bg: rgba(255,255,255,.09);
    --ins-sidenav-item-active-bg: #3478f6;
    --ins-topbar-bg: #ffffff;
}

html[data-bs-theme="light"] .sidenav-menu {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #edf6ff;
    background:
        radial-gradient(circle at 0 0, rgba(38,125,184,.25), transparent 35%),
        linear-gradient(180deg, var(--hris-shell-blue-dark), var(--hris-shell-blue));
    border-right: 1px solid rgba(255,255,255,.08) !important;
}

.hris-sidebar-brand {
    height: var(--ins-topbar-height);
    flex: 0 0 var(--ins-topbar-height);
    padding: 11px 22px 9px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    text-decoration: none;
}

.hris-sidebar-brand .hris-brand-logo {
    width: 166px;
    height: auto;
    display: block;
}

.hris-brand-tag {
    margin-left: 51px;
    color: #b9cae0;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    white-space: nowrap;
}

.sidenav-menu .hris-sidebar-scroll {
    height: auto;
    min-height: 0;
    flex: 1 1 auto;
}

.sidenav-menu .side-nav {
    padding: 14px 12px 18px;
}

.sidenav-menu .side-nav-item + .side-nav-item {
    margin-top: 4px;
}

html[data-bs-theme="light"] .sidenav-menu .side-nav-link,
html[data-bs-theme="light"] .sidenav-menu .side-nav-link .menu-icon,
html[data-bs-theme="light"] .sidenav-menu .side-nav-link .menu-text {
    color: #edf6ff;
}

html[data-bs-theme="light"] .sidenav-menu .side-nav-link {
    min-height: 43px;
    margin: 0;
    padding: 9px 12px;
    gap: 12px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 400;
}

html[data-bs-theme="light"] .sidenav-menu .side-nav-link:hover,
html[data-bs-theme="light"] .sidenav-menu .side-nav-link.active,
html[data-bs-theme="light"] .sidenav-menu .side-nav-item.active > .side-nav-link {
    color: #ffffff;
    background: rgba(255,255,255,.09);
}

html[data-bs-theme="light"] .sidenav-menu .side-nav-link.active {
    background: linear-gradient(90deg, #2f75ee, #397ef6);
    box-shadow: 0 9px 22px rgba(0,80,185,.25);
}

.sidenav-menu .side-nav-link .menu-icon {
    width: 20px;
    min-width: 20px;
    font-size: 18px;
}

.sidenav-menu .sub-menu .side-nav-link {
    width: calc(100% - 27px) !important;
    min-height: 36px !important;
    margin-left: 27px !important;
    padding-block: 6px !important;
    color: #bfd0e1 !important;
    font-size: 11px !important;
}

.sidenav-menu .sub-menu .side-nav-link.active,
.sidenav-menu .sub-menu .side-nav-link:hover {
    color: #ffffff !important;
}

.sidenav-menu .side-nav-link.is-placeholder::after {
    margin-left: auto;
    color: #87a4be;
    content: "";
}

.hris-sidebar-footer {
    flex: 0 0 auto;
    padding: 10px 18px 15px;
    border-top: 1px solid rgba(255,255,255,.08);
    color: #c8d8e7;
    font-size: 10px;
}

.hris-version,
.hris-collapse-button {
    min-height: 31px;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.hris-version i,
.hris-collapse-button i {
    font-size: 16px;
}

.hris-collapse-button {
    width: 100%;
    margin-top: 6px;
    padding: 10px 0 0;
    border: 0;
    border-top: 1px solid rgba(255,255,255,.08);
    color: #edf6ff;
    background: transparent;
    font-size: 10px;
    cursor: pointer;
}

.app-topbar {
    height: var(--ins-topbar-height);
    border-bottom: 1px solid var(--hris-dashboard-line) !important;
    box-shadow: none !important;
}

.hris-topbar-grid {
    height: 100%;
    padding-inline: 28px !important;
    display: grid !important;
    grid-template-columns: minmax(280px,1fr) minmax(280px,400px) minmax(300px,1fr);
    align-items: center;
    gap: 24px;
}

.hris-topbar-greeting {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.hris-topbar-greeting .sidenav-toggle-button {
    color: #20314d;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.hris-topbar-greeting > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.hris-topbar-greeting strong {
    overflow: hidden;
    color: #0f1f3b;
    font-size: 18px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hris-topbar-greeting small {
    margin-top: 3px;
    color: var(--hris-dashboard-muted);
    font-size: 12px;
}

.hris-topbar-search {
    height: 44px;
    padding: 0 13px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #7b8799;
    background: #ffffff;
    border: 1px solid #d5dce7;
    border-radius: 6px;
}

.hris-topbar-search:focus-within {
    border-color: #78a8f5;
    box-shadow: 0 0 0 3px rgba(52,120,246,.1);
}

.hris-topbar-search input {
    width: 100%;
    min-width: 0;
    padding: 0;
    color: var(--hris-dashboard-ink);
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 12px;
}

.hris-topbar-search input::placeholder {
    color: #9099a9;
}

.hris-topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 11px;
}

.hris-notification-button {
    position: relative;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    color: #23334e;
    background: transparent;
    display: grid;
    place-items: center;
    font-size: 20px;
}

.hris-notification-button > span {
    position: absolute;
    top: 0;
    right: -1px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: #f24f55;
    border: 2px solid #ffffff;
    border-radius: 9px;
    font-size: 8px;
    font-weight: 700;
}

.hris-profile-toggle {
    margin-left: 2px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--hris-dashboard-ink);
    text-decoration: none;
}

.hris-profile-toggle:hover {
    color: var(--hris-dashboard-ink);
}

.hris-topbar-avatar {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    font-size: 12px;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 9px rgba(31,49,78,.16);
}

.hris-profile-copy {
    min-width: 110px;
    flex-direction: column;
}

.hris-profile-copy strong {
    color: #16243b;
    font-size: 11px;
    line-height: 1.2;
}

.hris-profile-copy small {
    margin-top: 4px;
    color: var(--hris-dashboard-muted);
    font-size: 9px;
}

.dashboard-page .content-page {
    background: var(--hris-dashboard-bg) !important;
}

.dashboard-page .content-page > .container-fluid {
    max-width: none;
    padding: 0;
}

.dashboard-page .page-title-head,
.dashboard-page .footer {
    display: none;
}

.hris-dashboard {
    width: 100%;
    max-width: 1660px;
    margin: 0 auto;
    padding: 22px 20px 28px;
    color: var(--hris-dashboard-ink);
}

.hris-stat-grid {
    display: grid;
    grid-template-columns: repeat(5,minmax(145px,1fr));
    gap: 14px;
}

.hris-stat-card,
.hris-dash-card {
    background: #ffffff;
    border: 1px solid var(--hris-dashboard-line);
    border-radius: 13px;
    box-shadow: 0 2px 8px rgba(27,51,82,.025);
}

.hris-stat-card {
    min-height: 108px;
    padding: 17px 15px;
    display: flex;
    align-items: center;
    gap: 13px;
}

.hris-stat-icon {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 23px;
}

.hris-stat-icon.blue { color:#2e78f7; background:#eaf2ff; }
.hris-stat-icon.green { color:#22aa69; background:#e8f7ef; }
.hris-stat-icon.orange { color:#f39a15; background:#fff3e2; }
.hris-stat-icon.violet { color:#8068f5; background:#f0edff; }
.hris-stat-icon.sky { color:#3f80ef; background:#eaf3ff; }

.hris-stat-card > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.hris-stat-card small {
    color: #626f85;
    font-size: 10px;
    white-space: nowrap;
}

.hris-stat-card strong {
    margin-top: 3px;
    color: var(--hris-dashboard-ink);
    font-size: 21px;
    line-height: 1.1;
}

.hris-stat-card div > span {
    margin-top: 5px;
    font-size: 9px;
    white-space: nowrap;
}

.hris-dashboard .positive { color: #16a75e !important; }
.hris-dashboard .warning { color: #ec950c !important; }
.hris-dashboard .negative { color: #e94c55 !important; }
.hris-dashboard .info { color: #2474f3 !important; }

.hris-dashboard-columns {
    margin-top: 14px;
    display: grid;
    grid-template-columns: minmax(0,2.08fr) minmax(300px,.92fr);
    gap: 14px;
    align-items: start;
}

.hris-dashboard-main,
.hris-dashboard-side {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hris-dashboard-pair {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
}

.hris-dash-card {
    min-width: 0;
    overflow: hidden;
}

.hris-card-header {
    min-height: 50px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 0;
    background: #ffffff;
}

.hris-card-header h2 {
    min-width: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1d2b45;
    font-size: 12px;
    font-weight: 600;
}

.hris-card-header h2 i {
    color: #1369bf;
    font-size: 17px;
}

.hris-card-header button,
.hris-card-header a {
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #526178;
    background: transparent;
    border: 0;
    font-size: 9px;
    text-decoration: none;
    white-space: nowrap;
}

.hris-card-header a {
    color: #2172f2;
}

.hris-donut-layout {
    min-height: 211px;
    padding: 10px 17px 20px;
    display: grid;
    grid-template-columns: minmax(135px,.9fr) minmax(168px,1.1fr);
    align-items: center;
    gap: 18px;
}

.hris-donut {
    position: relative;
    width: min(158px,100%);
    aspect-ratio: 1;
    margin: 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
}

.hris-donut.attendance {
    background: conic-gradient(var(--hris-dashboard-green) 0 80%,var(--hris-dashboard-orange) 80% 89.39%,var(--hris-dashboard-red) 89.39% 100%);
}

.hris-donut.leave {
    background: conic-gradient(#3885f7 0 52.17%,var(--hris-dashboard-teal) 52.17% 71.74%,var(--hris-dashboard-violet) 71.74% 100%);
}

.hris-donut::after {
    position: absolute;
    inset: 25%;
    background: #ffffff;
    border-radius: 50%;
    content: "";
}

.hris-donut > span {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hris-donut > span strong {
    color: #16233a;
    font-size: 22px;
}

.hris-donut > span small {
    margin-top: 1px;
    color: #606c7f;
    font-size: 9px;
}

.hris-chart-legend {
    display: flex;
    flex-direction: column;
    gap: 23px;
}

.hris-chart-legend > div {
    display: grid;
    grid-template-columns: 9px 1fr auto;
    align-items: center;
    gap: 8px;
    color: #2d3850;
    font-size: 9px;
}

.hris-chart-legend > div > i {
    width: 9px;
    height: 9px;
    display: block;
    border-radius: 50%;
}

.hris-chart-legend > div > i.green { background:var(--hris-dashboard-green); }
.hris-chart-legend > div > i.yellow { background:var(--hris-dashboard-orange); }
.hris-chart-legend > div > i.red { background:var(--hris-dashboard-red); }
.hris-chart-legend > div > i.blue { background:#3885f7; }
.hris-chart-legend > div > i.teal { background:var(--hris-dashboard-teal); }
.hris-chart-legend > div > i.violet { background:var(--hris-dashboard-violet); }

.hris-chart-legend strong {
    color: #2c3850;
    font-size: 9px;
    white-space: nowrap;
}

.hris-chart-legend small {
    color: #647085;
    font-size: 8px;
    font-weight: 400;
}

.hris-secondary-pair .hris-dash-card {
    min-height: 267px;
}

.hris-payroll-content {
    padding: 9px 15px 18px;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 17px;
}

.hris-payroll-total {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--hris-dashboard-line);
}

.hris-payroll-total small {
    color: #677286;
    font-size: 9px;
}

.hris-payroll-total strong {
    margin: 6px 0 7px;
    color: var(--hris-dashboard-ink);
    font-size: clamp(18px,1.4vw,24px);
    white-space: nowrap;
}

.hris-payroll-total span {
    color: #748094;
    font-size: 8px;
}

.hris-payroll-total b {
    margin-left: 4px;
    color: var(--hris-dashboard-green);
}

.hris-payroll-breakdown {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.hris-payroll-breakdown > div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.hris-payroll-breakdown span {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hris-payroll-breakdown small {
    color: #6e798b;
    font-size: 8px;
}

.hris-payroll-breakdown strong {
    color: #233049;
    font-size: 9px;
    white-space: nowrap;
}

.hris-payroll-breakdown b {
    color: #3186f5;
    font-size: 8px;
}

.hris-bar-chart {
    padding: 4px 18px 12px 15px;
}

.hris-bar-row {
    min-height: 25px;
    display: grid;
    grid-template-columns: minmax(105px,31%) 1fr 24px;
    align-items: center;
    gap: 7px;
    color: #27344c;
    font-size: 8px;
}

.hris-bar-row > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hris-bar-row > div {
    height: 17px;
    background: repeating-linear-gradient(90deg,transparent 0,transparent calc(20% - 1px),#edf0f6 calc(20% - 1px),#edf0f6 20%);
    border-left: 1px solid #cfd8e6;
}

.hris-bar-row > div i {
    height: 13px;
    min-width: 7px;
    max-width: 100%;
    margin-top: 2px;
    display: block;
    background: linear-gradient(90deg,#756df0,#9085f8);
    border-radius: 0 2px 2px 0;
}

.hris-bar-row > strong {
    font-size: 8px;
}

.hris-bar-axis {
    margin: 3px 24px 0 calc(31% + 7px);
    display: flex;
    justify-content: space-between;
    color: #788296;
    font-size: 7px;
}

.hris-requests-card {
    min-height: 200px;
}

.hris-table-wrap {
    overflow-x: auto;
    padding: 0 14px 14px;
}

.hris-request-table {
    width: 100%;
    min-width: 560px;
    color: #26334b;
    background: #ffffff;
    border: 1px solid var(--hris-dashboard-line);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 5px;
    font-size: 8px;
    overflow: hidden;
}

.hris-request-table th,
.hris-request-table td {
    height: 29px;
    padding: 0 8px;
    text-align: left;
    border-bottom: 1px solid #edf0f5;
}

.hris-request-table th {
    color: #798396;
    background: #fbfcfe;
    font-size: 7px;
    font-weight: 600;
    text-transform: uppercase;
}

.hris-request-table tbody tr:last-child td {
    border-bottom: 0;
}

.hris-status {
    height: 18px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    border-radius: 10px;
    font-size: 7px;
    white-space: nowrap;
}

.hris-status.pending { color:#e49300; background:#fff3d8; }
.hris-status.approved { color:#159a5c; background:#e0f7ea; }
.hris-status.rejected { color:#e5484d; background:#ffe7e7; }

.hris-quick-card {
    min-height: 257px;
}

.hris-quick-grid {
    padding: 0 16px 16px;
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 11px;
}

.hris-quick-grid a {
    min-height: 80px;
    padding: 9px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #24324b;
    background: #ffffff;
    border: 1px solid var(--hris-dashboard-line);
    border-radius: 9px;
    font-size: 8px;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: transform .15s ease,box-shadow .15s ease,border-color .15s ease;
}

.hris-quick-grid a:hover {
    color: #24324b;
    border-color: #bfcef0;
    box-shadow: 0 8px 18px rgba(33,74,128,.09);
    transform: translateY(-2px);
}

.hris-quick-grid i {
    font-size: 23px;
}

.hris-quick-grid i.blue { color:#2d78f5; }
.hris-quick-grid i.green { color:#20ad67; }
.hris-quick-grid i.orange { color:#ee9612; }
.hris-quick-grid i.violet { color:#866cf6; }

.hris-people-card {
    min-height: 167px;
}

.hris-people-list {
    padding: 0 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hris-person {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
}

.hris-person-avatar {
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border: 3px solid rgba(255,255,255,.7);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(31,49,78,.15);
    font-size: 9px;
    font-weight: 700;
}

.hris-person-avatar.blue { background:linear-gradient(135deg,#66a4e7,#234c7c); }
.hris-person-avatar.violet { background:linear-gradient(135deg,#bd91ea,#6e468e); }
.hris-person-avatar.orange { background:linear-gradient(135deg,#f3b56e,#b75535); }
.hris-person-avatar.green { background:linear-gradient(135deg,#66c9a2,#236a62); }

.hris-person > div {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hris-person strong {
    overflow: hidden;
    color: #253249;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hris-person small,
.hris-person em {
    margin-top: 3px;
    color: #687489;
    font-size: 8px;
    font-style: normal;
}

.hris-person em {
    margin: 0;
    white-space: nowrap;
}

.hris-announcement-card {
    min-height: 137px;
}

.hris-announcement {
    min-height: 82px;
    margin: 0 16px 15px;
    padding: 13px 12px;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    background: linear-gradient(135deg,#fff8ec,#fff2e3);
    border-radius: 9px;
}

.hris-announcement > span {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: grid;
    place-items: center;
    color: #17375c;
    font-size: 22px;
}

.hris-announcement > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.hris-announcement strong {
    color: #25324a;
    font-size: 9px;
}

.hris-announcement small {
    margin-top: 4px;
    color: #677286;
    font-size: 7px;
}

.hris-announcement p {
    margin: 4px 0 0;
    color: #41506a;
    font-size: 7px;
    line-height: 1.45;
}

@media (max-width: 1300px) {
    .hris-topbar-grid { grid-template-columns:minmax(245px,1fr) minmax(230px,330px) auto; gap:16px; padding-inline:20px !important; }
    .hris-profile-copy { display:none !important; }
    .hris-stat-grid { grid-template-columns:repeat(3,1fr); }
    .hris-dashboard-columns { grid-template-columns:minmax(0,1fr) 300px; }
    .hris-donut-layout { grid-template-columns:122px 1fr; gap:11px; }
}

@media (max-width: 1080px) {
    .hris-topbar-grid { grid-template-columns:1fr minmax(220px,300px) auto; }
    .hris-topbar-greeting strong { font-size:16px; }
    .hris-topbar-greeting small { font-size:10px; }
    .hris-dashboard-columns { grid-template-columns:1fr; }
    .hris-dashboard-side { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; }
    .hris-quick-card,.hris-announcement-card { grid-column:span 2; }
}

@media (max-width: 767.98px) {
    .hris-sidebar-brand { padding-left:18px; }
    .hris-sidebar-footer { display:none; }
    .hris-topbar-grid { height:auto; min-height:76px; padding:10px 14px !important; grid-template-columns:1fr auto; gap:9px; }
    .hris-topbar-search { height:40px; grid-column:1 / -1; grid-row:2; }
    .hris-topbar-greeting { gap:7px; }
    .hris-topbar-greeting strong { font-size:14px; }
    .hris-topbar-greeting small { font-size:9px; }
    .hris-dashboard { padding:14px; }
    .hris-stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
    .hris-stat-card { min-height:93px; padding:12px; }
    .hris-stat-card:last-child { grid-column:1 / -1; }
    .hris-stat-icon { width:42px; height:42px; flex-basis:42px; font-size:20px; }
    .hris-dashboard-pair { grid-template-columns:1fr; }
    .hris-donut-layout { grid-template-columns:minmax(118px,.9fr) minmax(165px,1.1fr); }
}

@media (max-width: 520px) {
    .hris-topbar-actions .hris-notification-button { display:none !important; }
    .hris-dashboard { padding:11px; }
    .hris-stat-card { gap:8px; }
    .hris-stat-card small { font-size:8px; }
    .hris-stat-card strong { font-size:18px; }
    .hris-donut-layout { padding-inline:11px; grid-template-columns:1fr; }
    .hris-donut { width:150px; }
    .hris-chart-legend { width:min(260px,100%); margin:0 auto; }
    .hris-payroll-content { grid-template-columns:1fr; }
    .hris-payroll-total { padding-bottom:15px; border-right:0; border-bottom:1px solid var(--hris-dashboard-line); }
    .hris-dashboard-side { display:flex; }
    .hris-quick-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .hris-bar-row { grid-template-columns:90px 1fr 21px; }
    .hris-bar-axis { margin-left:97px; }
}

@media (prefers-reduced-motion: reduce) {
    .hris-dashboard *, .sidenav-menu * { transition-duration:.01ms !important; }
}

/* Enterprise employee information workspace */
.employee-workspace-page .content-page {
    background: var(--hris-dashboard-bg) !important;
}

.employee-workspace-page .content-page > .container-fluid {
    max-width: none;
    padding: 0;
}

.employee-workspace-page .page-title-head {
    display: none;
}

.employee-workspace {
    width: 100%;
    max-width: 1620px;
    margin: 0 auto;
    padding: 22px 22px 32px;
    color: var(--hris-dashboard-ink);
}

.employee-workspace-hero,
.employee-editor-hero {
    margin-bottom: 16px;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: #ffffff;
    background:
        radial-gradient(circle at 82% 15%,rgba(77,148,231,.28),transparent 34%),
        linear-gradient(125deg,#062f4f,#0b4d78);
    border: 1px solid rgba(10,65,104,.55);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(15,47,78,.1);
}

.employee-hero-copy {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.employee-hero-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    color: #dcecff;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 12px;
    font-size: 27px;
}

.employee-eyebrow {
    display: block;
    color: #9fc9ef;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.employee-workspace-hero h1,
.employee-editor-hero h1,
.enterprise-profile-identity h1 {
    margin: 4px 0 5px;
    color: #ffffff;
    font-size: clamp(22px,2vw,30px);
    font-weight: 650;
    line-height: 1.15;
}

.employee-workspace-hero p,
.employee-editor-hero p {
    max-width: 760px;
    margin: 0;
    color: #c6d7e8;
    font-size: 11px;
    line-height: 1.5;
}

.employee-primary-action,
.employee-save-button {
    min-height: 42px;
    padding: 0 16px;
    gap: 8px;
    color: #ffffff;
    background: #3478f6;
    border: 1px solid #4e8bfd;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(16,66,151,.22);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.employee-primary-action:hover,
.employee-save-button:hover {
    color: #ffffff;
    background: #286ce4;
    border-color: #397df0;
}

.employee-summary-grid {
    margin-bottom: 14px;
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 12px;
}

.employee-summary-grid article {
    min-height: 94px;
    padding: 15px 16px;
    display: flex;
    align-items: center;
    gap: 13px;
    background: #ffffff;
    border: 1px solid var(--hris-dashboard-line);
    border-radius: 12px;
}

.employee-summary-grid article > span {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    font-size: 21px;
}

.employee-summary-grid article > span.blue { color:#2e78f7;background:#eaf2ff; }
.employee-summary-grid article > span.green { color:#22aa69;background:#e8f7ef; }
.employee-summary-grid article > span.orange { color:#e99510;background:#fff3e2; }
.employee-summary-grid article > span.violet { color:#8068f5;background:#f0edff; }

.employee-summary-grid article > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.employee-summary-grid small {
    color: #647188;
    font-size: 9px;
    font-weight: 600;
}

.employee-summary-grid strong {
    margin-top: 2px;
    color: #14233e;
    font-size: 22px;
    line-height: 1.1;
}

.employee-summary-grid em {
    margin-top: 4px;
    color: #8a94a5;
    font-size: 8px;
    font-style: normal;
}

.employee-filter-panel,
.employee-list-card,
.employee-form-section,
.enterprise-profile-section {
    background: #ffffff;
    border: 1px solid var(--hris-dashboard-line);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(27,51,82,.025);
}

.employee-filter-panel {
    margin-bottom: 14px;
    padding: 14px 16px;
}

.employee-filter-grid {
    display: grid;
    grid-template-columns: minmax(250px,1.4fr) repeat(3,minmax(150px,.8fr)) auto;
    align-items: end;
    gap: 10px;
}

.employee-filter-grid label {
    min-width: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.employee-filter-grid label > span {
    color: #617088;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.employee-filter-grid input,
.employee-filter-grid select {
    width: 100%;
    height: 38px;
    padding: 0 10px;
    color: #25334b;
    background: #ffffff;
    border: 1px solid #dce2eb;
    border-radius: 7px;
    outline: 0;
    font-size: 10px;
}

.employee-filter-grid input:focus,
.employee-filter-grid select:focus {
    border-color: #77a6ef;
    box-shadow: 0 0 0 3px rgba(52,120,246,.09);
}

.employee-search-field > div {
    position: relative;
}

.employee-search-field i {
    position: absolute;
    top: 50%;
    left: 11px;
    color: #7c8798;
    transform: translateY(-50%);
}

.employee-search-field input {
    padding-left: 34px;
}

.employee-filter-actions {
    display: flex;
    gap: 7px;
}

.employee-filter-button,
.employee-clear-button {
    height: 38px;
    padding: 0 12px;
    gap: 6px;
    border-radius: 7px;
    font-size: 9px;
}

.employee-filter-button {
    color: #ffffff;
    background: #236fc5;
    border-color: #236fc5;
}

.employee-filter-button:hover { color:#ffffff;background:#1c60ad; }
.employee-clear-button { width:38px;padding:0;color:#5e6d83;background:#ffffff;border-color:#dce2eb; }

.employee-list-card {
    overflow: hidden;
}

.employee-list-header,
.employee-list-footer {
    min-height: 55px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.employee-list-header {
    border-bottom: 1px solid var(--hris-dashboard-line);
}

.employee-list-header h2 {
    margin: 0;
    color: #1c2c46;
    font-size: 12px;
}

.employee-list-header p {
    margin: 3px 0 0;
    color: #7b8798;
    font-size: 8px;
}

.employee-list-header > span {
    padding: 5px 8px;
    color: #246fc5;
    background: #edf5ff;
    border-radius: 12px;
    font-size: 8px;
    font-weight: 600;
}

.employee-table-wrap {
    overflow-x: auto;
}

.employee-directory-table {
    width: 100%;
    min-width: 1020px;
    border-collapse: collapse;
}

.employee-directory-table th,
.employee-directory-table td {
    padding: 11px 14px;
    text-align: left;
    border-bottom: 1px solid #edf0f4;
    vertical-align: middle;
}

.employee-directory-table th {
    color: #7a8597;
    background: #f9fbfd;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.employee-directory-table td {
    color: #2b3850;
    font-size: 9px;
}

.employee-directory-table tbody tr:last-child td {
    border-bottom: 0;
}

.employee-directory-table tbody tr:hover td {
    background: #fbfdff;
}

.employee-directory-person {
    min-width: 205px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.employee-directory-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg,#2779cf,#23a2b2);
    border: 2px solid #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(31,49,78,.15);
    font-size: 9px;
    font-weight: 700;
}

.employee-directory-avatar img,
.employee-editor-avatar img,
.enterprise-profile-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.employee-directory-person > div,
.employee-directory-table td > div {
    min-width: 0;
}

.employee-directory-person a,
.employee-directory-table td > strong {
    display: block;
    color: #1f2d45;
    font-size: 9px;
    font-weight: 650;
    text-decoration: none;
}

.employee-directory-person a:hover,
.employee-contact-link:hover {
    color: #2474d2;
}

.employee-directory-table td small {
    margin-top: 3px;
    display: block;
    color: #7d8899;
    font-size: 8px;
    white-space: nowrap;
}

.employee-contact-link {
    display: block;
    overflow: hidden;
    max-width: 175px;
    color: #246fc5;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
}

.employee-status-badge {
    min-height: 20px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    color: #526278;
    background: #edf0f4;
    border-radius: 10px;
    font-size: 7px;
    font-weight: 650;
    white-space: nowrap;
}

.employee-status-badge.status-active { color:#11865c;background:#e3f7eb; }
.employee-status-badge.status-pre_hire { color:#2c70c2;background:#eaf3ff; }
.employee-status-badge.status-on_leave { color:#bc7408;background:#fff2db; }
.employee-status-badge.status-suspended { color:#a45e0b;background:#ffeddc; }
.employee-status-badge.status-resigned,
.employee-status-badge.status-separated { color:#c4454b;background:#ffe8e8; }

.employee-row-actions {
    width: 80px;
    text-align: right !important;
    white-space: nowrap;
}

.employee-row-actions a {
    width: 30px;
    height: 30px;
    margin-left: 4px;
    display: inline-grid;
    place-items: center;
    color: #55708e;
    background: #f5f8fb;
    border: 1px solid #e0e6ee;
    border-radius: 7px;
    font-size: 14px;
    text-decoration: none;
}

.employee-row-actions a:hover {
    color: #ffffff;
    background: #2d76c7;
    border-color: #2d76c7;
}

.employee-empty-state,
.enterprise-section-empty {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #8390a2;
    text-align: center;
}

.employee-empty-state i,
.enterprise-section-empty > i {
    color: #a4b6ca;
    font-size: 27px;
}

.employee-empty-state strong,
.enterprise-section-empty strong {
    color: #4b5b72;
    font-size: 10px;
}

.employee-empty-state span,
.enterprise-section-empty span {
    font-size: 8px;
}

.employee-list-footer {
    border-top: 1px solid var(--hris-dashboard-line);
    color: #7b8798;
    font-size: 8px;
}

/* Employee editor */
.employee-editor-hero {
    justify-content: flex-start;
}

.employee-back-link {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    color: #d6e6f5;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px;
    text-decoration: none;
}

.employee-back-link:hover { color:#ffffff;background:rgba(255,255,255,.14); }

.employee-editor-avatar {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg,#3d8ce4,#20a6b2);
    border: 3px solid rgba(255,255,255,.22);
    border-radius: 13px;
    font-size: 17px;
    font-weight: 700;
}

.employee-editor-title {
    min-width: 0;
    flex: 1;
}

.employee-record-security {
    padding: 7px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #c8dced;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    font-size: 8px;
    white-space: nowrap;
}

.employee-form-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
}

.employee-form-alert > i { font-size:20px; }
.employee-form-alert div { display:flex;flex-direction:column;gap:2px; }
.employee-form-alert span { font-size:9px; }

.employee-form-layout {
    display: grid;
    grid-template-columns: 205px minmax(0,1fr);
    align-items: start;
    gap: 14px;
}

.employee-form-guide {
    position: sticky;
    top: calc(var(--ins-topbar-height) + 14px);
    padding: 13px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #ffffff;
    border: 1px solid var(--hris-dashboard-line);
    border-radius: 11px;
}

.employee-form-guide > strong {
    padding: 4px 8px 8px;
    color: #7a8798;
    font-size: 8px;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.employee-form-guide a {
    position: relative;
    min-height: 38px;
    padding: 0 9px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #526279;
    border-radius: 7px;
    font-size: 9px;
    text-decoration: none;
}

.employee-form-guide a i { color:#397cc7;font-size:16px; }
.employee-form-guide a:hover { color:#1f5fa8;background:#edf5ff; }

.employee-form-guide a.active,
.employee-form-guide a:focus-visible {
    width: calc(100% + 18px);
    margin-left: -13px;
    padding-left: 22px;
    color: #216bd2;
    background: linear-gradient(90deg,#edf4ff,#f5f8ff);
    border-radius: 0 8px 8px 0;
    font-weight: 650;
    box-shadow: none;
}

.employee-form-guide a.active::before,
.employee-form-guide a:focus-visible::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: #3478f6;
    border-radius: 0 3px 3px 0;
    content: "";
}

.employee-form-guide a.active i,
.employee-form-guide a:focus-visible i {
    color: #3478f6;
}

.employee-form-guide a:focus-visible {
    outline: 2px solid rgba(52,120,246,.22);
    outline-offset: -2px;
}

.employee-form-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.employee-form-section {
    padding: 18px;
    scroll-margin-top: calc(var(--ins-topbar-height) + 14px);
}

.employee-form-section > header {
    margin-bottom: 17px;
    padding-bottom: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-bottom: 1px solid var(--hris-dashboard-line);
}

.employee-form-section > header > span,
.enterprise-section-header > div > span {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    color: #2872c1;
    background: #edf5ff;
    border-radius: 9px;
    font-size: 18px;
}

.employee-form-section h2,
.enterprise-section-header h2 {
    margin: 0;
    color: #1e2d47;
    font-size: 13px;
}

.employee-form-section header p,
.enterprise-section-header p {
    margin: 3px 0 0;
    color: #7b8798;
    font-size: 9px;
    line-height: 1.45;
}

.employee-form-grid {
    display: grid;
    gap: 13px;
}

.employee-form-grid.columns-4 { grid-template-columns:repeat(4,minmax(0,1fr)); }
.employee-form-grid.columns-3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
.employee-form-grid .span-2 { grid-column:span 2; }

.employee-form-subtitle {
    margin: 4px 0 9px;
    color: #607089;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.employee-form-subtitle:not(:first-of-type) {
    margin-top: 18px;
}

.employee-enterprise-form .form-label,
.employee-enterprise-form label.form-label {
    margin-bottom: 5px;
    color: #45556d;
    font-size: 9px;
    font-weight: 600;
}

.employee-enterprise-form .form-control,
.employee-enterprise-form .form-select {
    min-height: 39px;
    color: #27364e;
    background-color: #ffffff;
    border-color: #dce2eb;
    border-radius: 7px;
    font-size: 10px;
}

.employee-enterprise-form textarea.form-control { min-height:76px; }

.employee-enterprise-form .form-control:focus,
.employee-enterprise-form .form-select:focus {
    border-color: #77a6ef;
    box-shadow: 0 0 0 3px rgba(52,120,246,.09);
}

.employee-enterprise-form .form-text,
.employee-enterprise-form .errorlist {
    font-size: 8px;
}

.employee-form-split {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
}

.employee-enterprise-form .modal-record-card,
.employee-embedded-record .modal-record-card {
    height: 100%;
    background: #fbfcfe;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: none;
}

.employee-enterprise-form .modal-record-card > .card-header {
    min-height: 62px;
    padding: 12px 13px;
    background: #f7f9fc;
    border-bottom: 1px solid #e2e8f0;
}

.employee-enterprise-form .modal-record-card .card-title {
    color: #26364d;
    font-size: 10px;
}

.employee-enterprise-form .modal-record-card .card-header p {
    max-width: 520px;
    font-size: 8px;
    line-height: 1.4;
}

.employee-enterprise-form .modal-record-card .btn-outline-primary {
    color: #2b72bd;
    border-color: #bcd3eb;
    border-radius: 7px;
    font-size: 8px;
}

.employee-enterprise-form .modal-record-list {
    min-height: 82px;
}

.employee-enterprise-form .modal-record-item {
    padding: 10px 12px;
    background: #ffffff;
}

.employee-enterprise-form .modal-record-icon {
    color: #2d76c5;
    background: #edf5ff;
}

.employee-enterprise-form .child-record-summary strong { font-size:9px; }
.employee-enterprise-form .child-record-summary span { font-size:8px; }
.employee-enterprise-form .modal-record-item .btn { font-size:8px; }

.employee-enterprise-form .modal-record-empty {
    min-height: 82px;
    font-size: 8px;
}

.employee-enterprise-form .child-record-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(8,32,58,.18);
}

.employee-enterprise-form .child-record-modal .modal-header {
    color: #ffffff;
    background: linear-gradient(120deg,#073858,#0b527e);
    border: 0;
}

.employee-enterprise-form .child-record-modal .modal-header .modal-title { color:#ffffff; }
.employee-enterprise-form .child-record-modal .modal-header p { color:#c9dceb !important; }
.employee-enterprise-form .child-record-modal .modal-header .btn-close { filter:invert(1); }

.employee-enterprise-form .child-record-modal .modal-body { background:#f6f8fb; }
.employee-enterprise-form .child-record-modal .modal-field { background:#ffffff;border-color:#dfe6ee; }

.employee-form-actions {
    position: sticky;
    bottom: 0;
    z-index: 10;
    padding: 12px 14px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    background: rgba(255,255,255,.94);
    border: 1px solid var(--hris-dashboard-line);
    border-radius: 10px;
    box-shadow: 0 -6px 20px rgba(18,47,75,.05);
    backdrop-filter: blur(9px);
}

.employee-cancel-button {
    min-height: 40px;
    padding: 0 15px;
    color: #596a81;
    background: #ffffff;
    border: 1px solid #d8e0e9;
    border-radius: 8px;
    font-size: 10px;
}

/* Enterprise employee profile */
.enterprise-profile-hero {
    margin-bottom: 12px;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 80% 20%,rgba(71,145,222,.3),transparent 32%),
        linear-gradient(125deg,#052e4d,#0b4c75);
    border: 1px solid rgba(10,65,104,.55);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(15,47,78,.1);
}

.enterprise-profile-toolbar {
    min-height: 49px;
    padding: 0 19px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.enterprise-profile-toolbar a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #d4e4f2;
    font-size: 9px;
    text-decoration: none;
}

.enterprise-profile-toolbar .enterprise-edit-button {
    min-height: 31px;
    padding: 0 11px;
    color: #ffffff;
    background: #3478f6;
    border: 1px solid #568ff2;
    border-radius: 7px;
}

.enterprise-profile-main {
    padding: 24px;
    display: grid;
    grid-template-columns: 90px minmax(230px,.8fr) minmax(420px,1.2fr);
    align-items: center;
    gap: 20px;
}

.enterprise-profile-photo {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg,#3f8ee4,#21a8b3);
    border: 4px solid rgba(255,255,255,.2);
    border-radius: 18px;
    box-shadow: 0 7px 19px rgba(0,20,43,.17);
    font-size: 24px;
    font-weight: 700;
}

.enterprise-profile-identity {
    min-width: 0;
}

.enterprise-profile-identity > div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.enterprise-profile-identity h1 {
    margin-right: 3px;
}

.enterprise-profile-identity p {
    margin: 0;
    color: #c8d9e8;
    font-size: 11px;
}

.enterprise-profile-identity .employee-status-badge {
    color: #dff9eb;
    background: rgba(38,189,119,.2);
    border: 1px solid rgba(96,218,155,.22);
}

.enterprise-employment-type {
    margin-top: 9px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #a9cbe8;
    font-size: 8px;
}

.enterprise-profile-facts {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 9px;
}

.enterprise-profile-facts span {
    min-width: 0;
    padding: 10px 12px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 9px;
}

.enterprise-profile-facts small,
.enterprise-profile-facts strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.enterprise-profile-facts small {
    color: #9fc0db;
    font-size: 7px;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.enterprise-profile-facts strong {
    margin-top: 3px;
    color: #ffffff;
    font-size: 9px;
}

.enterprise-profile-nav {
    position: sticky;
    top: var(--ins-topbar-height);
    z-index: 8;
    min-height: 47px;
    margin-bottom: 12px;
    padding: 6px 9px;
    display: flex;
    align-items: center;
    gap: 3px;
    overflow-x: auto;
    background: rgba(255,255,255,.96);
    border: 1px solid var(--hris-dashboard-line);
    border-radius: 11px;
    backdrop-filter: blur(9px);
}

.enterprise-profile-nav a {
    min-height: 33px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #5c6c83;
    border-radius: 7px;
    font-size: 8px;
    white-space: nowrap;
    text-decoration: none;
}

.enterprise-profile-nav a i { color:#3478c6;font-size:14px; }
.enterprise-profile-nav a:hover { color:#1f5fa8;background:#edf5ff; }

.enterprise-profile-nav a.active,
.enterprise-profile-nav a:focus-visible {
    color: #216bd2;
    background: #edf4ff;
    box-shadow: inset 0 -2px 0 #3478f6;
    font-weight: 650;
}

.enterprise-profile-nav a:focus-visible {
    outline: 2px solid rgba(52,120,246,.24);
    outline-offset: -2px;
}

.enterprise-profile-section {
    margin-bottom: 12px;
    padding: 17px;
    scroll-margin-top: calc(var(--ins-topbar-height) + 59px);
}

.enterprise-section-header {
    margin-bottom: 15px;
    padding-bottom: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--hris-dashboard-line);
}

.enterprise-section-header > div {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.enterprise-section-header > em {
    color: #7b8798;
    font-size: 8px;
    font-style: normal;
    white-space: nowrap;
}

.enterprise-info-columns {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px;
}

.enterprise-info-card,
.enterprise-record-panel,
.enterprise-table-panel {
    min-width: 0;
    padding: 14px;
    background: #fbfcfe;
    border: 1px solid #e3e8ef;
    border-radius: 9px;
}

.enterprise-info-card h3,
.enterprise-record-panel h3,
.enterprise-table-panel h3 {
    margin: 0 0 11px;
    color: #28374e;
    font-size: 10px;
}

.enterprise-info-card dl {
    margin: 0;
}

.enterprise-info-card dl > div {
    min-height: 31px;
    padding: 7px 0;
    display: grid;
    grid-template-columns: minmax(100px,.75fr) minmax(0,1.25fr);
    gap: 9px;
    border-bottom: 1px dashed #e5e9ef;
}

.enterprise-info-card dl > div:last-child { border-bottom:0; }

.enterprise-info-card dt {
    color: #7a8698;
    font-size: 8px;
    font-weight: 600;
}

.enterprise-info-card dd {
    margin: 0;
    color: #2d3b51;
    font-size: 8px;
    font-weight: 550;
    overflow-wrap: anywhere;
}

.enterprise-info-card dd a { color:#2671be;text-decoration:none; }

.enterprise-info-subheading {
    margin-top: 16px !important;
    padding-top: 12px;
    border-top: 1px solid #e3e8ef;
}

.enterprise-address + .enterprise-address {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e3e8ef;
}

.enterprise-address > div {
    margin-bottom: 5px;
    display: flex;
    gap: 5px;
}

.enterprise-address > div span,
.enterprise-address > div em {
    padding: 2px 5px;
    color: #477099;
    background: #eaf3fc;
    border-radius: 5px;
    font-size: 7px;
    font-style: normal;
}

.enterprise-address > div em { color:#15845b;background:#e3f7eb; }
.enterprise-address strong,.enterprise-address small { display:block; }
.enterprise-address strong { color:#324158;font-size:8px; }
.enterprise-address small { margin-top:3px;color:#7c8797;font-size:7px; }

.enterprise-empty-copy {
    margin: 0;
    color: #8995a5;
    font-size: 8px;
}

.enterprise-id-grid,
.enterprise-document-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 10px;
}

.enterprise-id-grid > article,
.enterprise-document-grid > article {
    min-width: 0;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fbfcfe;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
}

.enterprise-id-icon,
.enterprise-document-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    color: #2e75bf;
    background: #eaf3fc;
    border-radius: 8px;
    font-size: 18px;
}

.enterprise-id-grid article > div,
.enterprise-document-grid article > div {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.enterprise-id-grid small,
.enterprise-document-grid article div > span {
    overflow: hidden;
    color: #768397;
    font-size: 7px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.enterprise-id-grid strong,
.enterprise-document-grid strong {
    margin-top: 3px;
    overflow: hidden;
    color: #28374d;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.enterprise-id-grid em,
.enterprise-document-grid small,
.enterprise-document-grid em {
    margin-top: 3px;
    overflow: hidden;
    color: #8a95a5;
    font-size: 7px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.enterprise-id-actions {
    flex: 0 0 auto !important;
    flex-direction: row !important;
    gap: 3px;
}

.enterprise-id-actions a,
.enterprise-document-grid article > a {
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    display: grid;
    place-items: center;
    color: #2c73bd;
    background: #edf5ff;
    border-radius: 6px;
    text-decoration: none;
}

.enterprise-section-empty {
    grid-column: 1 / -1;
}

.enterprise-family-columns,
.enterprise-history-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
}

.enterprise-record-panel,
.enterprise-table-panel {
    padding: 0;
    overflow: hidden;
}

.enterprise-record-panel > header,
.enterprise-table-panel > header {
    min-height: 47px;
    padding: 0 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    background: #f7f9fc;
    border-bottom: 1px solid #e3e8ef;
}

.enterprise-record-panel > header h3,
.enterprise-table-panel > header h3 {
    margin: 0;
}

.enterprise-record-panel > header span,
.enterprise-table-panel > header span {
    padding: 3px 6px;
    color: #3975b3;
    background: #eaf3fc;
    border-radius: 8px;
    font-size: 7px;
}

.enterprise-record-panel > div {
    padding: 0 12px;
}

.enterprise-person-record {
    min-height: 59px;
    display: flex;
    align-items: center;
    gap: 9px;
    border-bottom: 1px solid #e8ecf1;
}

.enterprise-person-record:last-child { border-bottom:0; }

.enterprise-person-record > span {
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg,#4a91d7,#3471a8);
    border-radius: 8px;
    font-size: 9px;
    font-weight: 700;
}

.enterprise-person-record > div {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.enterprise-person-record strong { color:#2a394f;font-size:8px; }
.enterprise-person-record small,.enterprise-person-record em { margin-top:2px;color:#7d8899;font-size:7px;font-style:normal; }
.enterprise-person-record > b { padding:3px 6px;color:#16805a;background:#e5f7ed;border-radius:7px;font-size:7px;font-weight:600; }

.enterprise-timeline {
    position: relative;
}

.enterprise-timeline::before {
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 16px;
    width: 1px;
    background: #d8e2ec;
    content: "";
}

.enterprise-timeline > article {
    position: relative;
    min-height: 69px;
    display: grid;
    grid-template-columns: 34px 120px 1fr;
    align-items: start;
    gap: 12px;
}

.enterprise-timeline-marker {
    position: relative;
    z-index: 1;
    width: 33px;
    height: 33px;
    display: grid;
    place-items: center;
    color: #2e72ba;
    background: #eef5fc;
    border: 4px solid #ffffff;
    border-radius: 50%;
    font-size: 13px;
}

.enterprise-timeline-date,
.enterprise-timeline-content {
    min-width: 0;
    padding-top: 6px;
    display: flex;
    flex-direction: column;
}

.enterprise-timeline-date strong { color:#34445a;font-size:8px; }
.enterprise-timeline-date small { margin-top:2px;color:#8a95a5;font-size:7px; }
.enterprise-timeline-content { padding:8px 11px;margin-bottom:8px;background:#fbfcfe;border:1px solid #e4e9ef;border-radius:8px; }
.enterprise-timeline-content > div { display:flex;align-items:center;gap:6px; }
.enterprise-timeline-content > div strong { color:#24364d;font-size:9px; }
.enterprise-timeline-content > div span { padding:2px 5px;color:#286eb7;background:#eaf3fc;border-radius:5px;font-size:7px; }
.enterprise-timeline-content p { margin:4px 0 0;color:#46566c;font-size:8px; }
.enterprise-timeline-content > small { margin-top:3px;color:#8792a2;font-size:7px; }

.enterprise-table-panel table {
    width: 100%;
    min-width: 490px;
    border-collapse: collapse;
}

.enterprise-table-panel th,
.enterprise-table-panel td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e8ecf1;
    font-size: 8px;
}

.enterprise-table-panel th {
    color: #7a8697;
    background: #fbfcfd;
    font-size: 7px;
    text-transform: uppercase;
}

.enterprise-table-panel tbody tr:last-child td { border-bottom:0; }
.enterprise-table-panel td strong,.enterprise-table-panel td small { display:block; }
.enterprise-table-panel td strong { color:#2c3a50;font-size:8px; }
.enterprise-table-panel td small { margin-top:3px;color:#7c8797;font-size:7px; }
.enterprise-table-panel td em { margin-left:4px;padding:2px 5px;color:#16805a;background:#e5f7ed;border-radius:5px;font-size:7px;font-style:normal; }

.enterprise-document-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
}

.enterprise-document-grid article div > span i {
    margin-left: 4px;
    color: #b07418;
}

@media (max-width: 1300px) {
    .employee-filter-grid { grid-template-columns:minmax(220px,1.3fr) repeat(2,minmax(145px,.8fr)) auto; }
    .employee-filter-grid label:nth-of-type(4) { grid-column:2;grid-row:2; }
    .employee-filter-actions { grid-column:4;grid-row:2;justify-content:flex-end; }
    .enterprise-profile-main { grid-template-columns:88px minmax(220px,.8fr) minmax(330px,1.2fr); }
    .enterprise-id-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

@media (max-width: 1100px) {
    .employee-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .employee-form-layout { grid-template-columns:1fr; }
    .employee-form-guide { position:static;display:grid;grid-template-columns:repeat(3,minmax(0,1fr)); }
    .employee-form-guide > strong { grid-column:1 / -1; }
    .employee-form-grid.columns-4 { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .enterprise-profile-main { grid-template-columns:88px 1fr; }
    .enterprise-profile-facts { grid-column:1 / -1;grid-template-columns:repeat(4,minmax(0,1fr)); }
    .enterprise-info-columns { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .enterprise-info-card:last-child { grid-column:1 / -1; }
    .enterprise-document-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 767.98px) {
    .employee-workspace { padding:14px; }
    .employee-workspace-hero,.employee-editor-hero { align-items:flex-start;padding:18px; }
    .employee-workspace-hero { flex-direction:column; }
    .employee-primary-action { width:100%; }
    .employee-summary-grid { gap:9px; }
    .employee-filter-grid { grid-template-columns:1fr 1fr; }
    .employee-search-field { grid-column:1 / -1; }
    .employee-filter-grid label:nth-of-type(4) { grid-column:auto;grid-row:auto; }
    .employee-filter-actions { grid-column:1 / -1;grid-row:auto; }
    .employee-filter-button { flex:1; }
    .employee-form-guide { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .employee-form-section { padding:14px; }
    .employee-form-grid.columns-3 { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .employee-form-split { grid-template-columns:1fr; }
    .employee-record-security { display:none; }
    .enterprise-profile-main { padding:18px;grid-template-columns:72px 1fr;gap:14px; }
    .enterprise-profile-photo { width:70px;height:70px;border-radius:14px;font-size:19px; }
    .enterprise-profile-facts { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .enterprise-profile-nav { top:124px; }
    .enterprise-profile-section { padding:14px;scroll-margin-top:180px; }
    .enterprise-info-columns,.enterprise-family-columns,.enterprise-history-grid { grid-template-columns:1fr; }
    .enterprise-info-card:last-child { grid-column:auto; }
    .enterprise-id-grid,.enterprise-document-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .enterprise-timeline > article { grid-template-columns:34px 1fr; }
    .enterprise-timeline-date { grid-column:2; }
    .enterprise-timeline-content { grid-column:2; }
}

@media (max-width: 520px) {
    .employee-workspace { padding:10px; }
    .employee-hero-icon { display:none; }
    .employee-workspace-hero h1,.employee-editor-hero h1,.enterprise-profile-identity h1 { font-size:20px; }
    .employee-summary-grid { grid-template-columns:1fr; }
    .employee-filter-grid { grid-template-columns:1fr; }
    .employee-search-field,.employee-filter-actions { grid-column:auto; }
    .employee-editor-avatar { display:none; }
    .employee-form-guide { display:none; }
    .employee-form-grid.columns-4,.employee-form-grid.columns-3 { grid-template-columns:1fr; }
    .employee-form-grid .span-2 { grid-column:auto; }
    .employee-form-actions { position:static;flex-direction:column-reverse; }
    .employee-form-actions .btn { width:100%; }
    .enterprise-profile-main { grid-template-columns:1fr;text-align:center; }
    .enterprise-profile-photo { margin:0 auto; }
    .enterprise-profile-identity > div { justify-content:center; }
    .enterprise-profile-facts { text-align:left; }
    .enterprise-id-grid,.enterprise-document-grid { grid-template-columns:1fr; }
    .enterprise-section-header { align-items:flex-start; }
    .enterprise-section-header > em { display:none; }
}

/* Light employee identity headers — shared by profile and update */
.employee-page-context {
    min-height: 46px;
    margin-bottom: 10px;
    padding: 0 3px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.employee-page-context h1 {
    margin: 0;
    color: #152b4d;
    font-size: 16px;
    font-weight: 700;
}

.employee-page-context ol {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8a97a9;
    font-size: 8px;
    list-style: none;
}

.employee-page-context li + li::before {
    margin-right: 8px;
    color: #b5bfcb;
    content: "›";
}

.employee-editor-hero,
.enterprise-profile-hero {
    color: #183153;
    background:
        radial-gradient(circle at 88% 22%,rgba(88,151,232,.15),transparent 30%),
        radial-gradient(circle at 66% 115%,rgba(79,144,235,.1),transparent 38%),
        linear-gradient(110deg,#fbfdff 0%,#f3f8ff 56%,#eaf3ff 100%);
    border: 1px solid #dce7f4;
    box-shadow: 0 8px 24px rgba(35,76,119,.06);
}

.employee-editor-hero {
    min-height: 116px;
    overflow: hidden;
}

.employee-editor-hero::after,
.enterprise-profile-hero::after {
    position: absolute;
    right: -5%;
    bottom: -42px;
    width: 58%;
    height: 78px;
    border-top: 1px solid rgba(84,147,225,.12);
    border-radius: 50%;
    content: "";
    pointer-events: none;
    transform: rotate(-5deg);
}

.employee-editor-hero,
.enterprise-profile-hero {
    position: relative;
}

.employee-editor-hero > *,
.enterprise-profile-hero > * {
    position: relative;
    z-index: 1;
}

.employee-back-link {
    color: #466886;
    background: rgba(255,255,255,.82);
    border-color: #dbe6f1;
    box-shadow: 0 3px 9px rgba(47,85,122,.05);
}

.employee-back-link:hover {
    color: #1e62aa;
    background: #ffffff;
    border-color: #c8d9eb;
}

.employee-editor-avatar,
.enterprise-profile-photo {
    color: #2f73d8;
    background: linear-gradient(145deg,#f2f7ff,#dfeaff);
    border-color: #ffffff;
    box-shadow: 0 5px 16px rgba(44,96,154,.12);
}

.employee-editor-title .employee-eyebrow,
.enterprise-profile-identity .employee-eyebrow {
    color: #7a8ba1;
}

.employee-editor-hero h1,
.enterprise-profile-identity h1 {
    color: #102a54;
}

.employee-editor-hero p,
.enterprise-profile-identity p {
    color: #657992;
}

.employee-editor-badges {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.employee-header-status,
.employee-record-security {
    min-height: 31px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #315274;
    background: rgba(255,255,255,.82);
    border: 1px solid #dce6f1;
    border-radius: 16px;
    box-shadow: 0 3px 10px rgba(44,83,122,.04);
    font-size: 8px;
    font-weight: 600;
    white-space: nowrap;
}

.employee-header-status > i {
    width: 7px;
    height: 7px;
    display: block;
    background: #38c76a;
    border-radius: 50%;
}

.employee-header-status.status-pre_hire > i { background:#4c8fea; }
.employee-header-status.status-on_leave > i { background:#f0a328; }
.employee-header-status.status-suspended > i { background:#e28633; }
.employee-header-status.status-resigned > i,
.employee-header-status.status-separated > i { background:#e25a60; }

.employee-record-security {
    position: static;
    color: #315274;
}

.employee-record-security > i {
    color: #356eb4;
    font-size: 14px;
}

.enterprise-profile-toolbar {
    border-bottom-color: #dce7f3;
}

.enterprise-profile-toolbar a {
    color: #4b6885;
}

.enterprise-profile-toolbar a:hover {
    color: #2169b4;
}

.enterprise-profile-main {
    min-height: 150px;
}

.enterprise-profile-identity .employee-status-badge {
    color: #168457;
    background: #e7f8ee;
    border: 1px solid #ccefdc;
}

.enterprise-profile-identity .employee-status-badge.status-on_leave,
.enterprise-profile-identity .employee-status-badge.status-suspended {
    color: #a9670b;
    background: #fff1d9;
    border-color: #f5dfba;
}

.enterprise-profile-identity .employee-status-badge.status-resigned,
.enterprise-profile-identity .employee-status-badge.status-separated {
    color: #ba4047;
    background: #ffe8e8;
    border-color: #f4cccc;
}

.enterprise-employment-type {
    color: #56708d;
}

.enterprise-profile-facts span {
    background: rgba(255,255,255,.72);
    border-color: #dce7f2;
    box-shadow: 0 3px 10px rgba(47,84,120,.035);
}

.enterprise-profile-facts small {
    color: #7d8da1;
}

.enterprise-profile-facts strong {
    color: #213d62;
}

@media (max-width: 900px) {
    .employee-editor-hero { flex-wrap:wrap; }
    .employee-editor-badges { width:100%;justify-content:flex-end; }
}

@media (max-width: 767.98px) {
    .employee-page-context { align-items:flex-start;flex-direction:column;gap:5px;padding:3px; }
    .employee-page-context ol { flex-wrap:wrap; }
    .employee-editor-badges { justify-content:flex-start; }
}

@media (max-width: 520px) {
    .employee-header-status { min-height:29px; }
}

/* Light enterprise application shell */
:root {
    --hris-accent: #0d9670;
    --hris-accent-dark: #087759;
    --hris-accent-soft: #eaf7f2;
    --hris-light-canvas: #f8fafb;
    --hris-light-border: #e4e9ee;
    --hris-light-ink: #26364d;
    --hris-light-muted: #7c899a;
}

html[data-bs-theme="light"] {
    --ins-body-bg: var(--hris-light-canvas);
    --ins-sidenav-bg: #ffffff;
    --ins-sidenav-border-color: var(--hris-light-border);
    --ins-sidenav-item-color: #506076;
    --ins-sidenav-item-hover-color: var(--hris-accent-dark);
    --ins-sidenav-item-active-color: var(--hris-accent-dark);
    --ins-sidenav-item-hover-bg: #f1f8f5;
    --ins-sidenav-item-active-bg: var(--hris-accent-soft);
    --ins-topbar-bg: #ffffff;
}

html[data-bs-theme="light"] body,
html[data-bs-theme="light"] .wrapper,
html[data-bs-theme="light"] .content-page,
html[data-bs-theme="light"] .page-content {
    background: var(--hris-light-canvas);
}

html[data-bs-theme="light"] .sidenav-menu {
    color: #506076;
    background: #ffffff;
    border-right: 1px solid var(--hris-light-border) !important;
    box-shadow: none;
}

html[data-bs-theme="light"] .hris-sidebar-brand {
    background: #ffffff;
    border-bottom: 1px solid #edf1f4;
}

html[data-bs-theme="light"] .hris-sidebar-brand .hris-brand-logo {
    width: 166px;
    max-width: 100%;
}

html[data-bs-theme="light"] .hris-brand-tag {
    color: #8793a3;
}

.hris-nav-section {
    padding: 13px 18px 5px;
    color: #9aa4b1;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1;
    text-transform: uppercase;
}

html[data-bs-theme="light"] .sidenav-menu .side-nav-link,
html[data-bs-theme="light"] .sidenav-menu .side-nav-link .menu-icon,
html[data-bs-theme="light"] .sidenav-menu .side-nav-link .menu-text,
html[data-bs-theme="light"] .sidenav-menu .side-nav-link .menu-arrow {
    color: #506076;
}

html[data-bs-theme="light"] .sidenav-menu .side-nav-link:hover {
    color: var(--hris-accent-dark);
    background: #f2f8f6;
}

html[data-bs-theme="light"] .sidenav-menu .side-nav-link:hover .menu-icon,
html[data-bs-theme="light"] .sidenav-menu .side-nav-link:hover .menu-text,
html[data-bs-theme="light"] .sidenav-menu .side-nav-link:hover .menu-arrow,
html[data-bs-theme="light"] .sidenav-menu .side-nav-link.active .menu-icon,
html[data-bs-theme="light"] .sidenav-menu .side-nav-link.active .menu-text,
html[data-bs-theme="light"] .sidenav-menu .side-nav-link.active .menu-arrow {
    color: var(--hris-accent-dark);
}

html[data-bs-theme="light"] .sidenav-menu .side-nav-link.active,
html[data-bs-theme="light"] .sidenav-menu .side-nav-item.active > .side-nav-link {
    color: var(--hris-accent-dark);
    background: var(--hris-accent-soft);
    box-shadow: none;
}

html[data-bs-theme="light"] .sidenav-menu .sub-menu {
    border-left-color: #dce7e3;
}

html[data-bs-theme="light"] .sidenav-menu .sub-menu .side-nav-link {
    color: #69778a;
    background: transparent;
}

html[data-bs-theme="light"] .sidenav-menu .sub-menu .side-nav-link:hover,
html[data-bs-theme="light"] .sidenav-menu .sub-menu .side-nav-link.active {
    color: var(--hris-accent-dark);
    background: #f4faf7;
}

html[data-bs-theme="light"] .sidenav-menu .sub-menu .side-nav-link.active::before {
    background: var(--hris-accent);
}

html[data-bs-theme="light"] .hris-sidebar-footer {
    color: #748196;
    background: #ffffff;
    border-top: 1px solid #edf1f4;
}

html[data-bs-theme="light"] .hris-version,
html[data-bs-theme="light"] .hris-collapse-button {
    color: #657489;
}

html[data-bs-theme="light"] .hris-collapse-button {
    border-top-color: #edf1f4;
}

html[data-bs-theme="light"] .hris-collapse-button:hover {
    color: var(--hris-accent-dark);
    background: #f2f8f6;
}

html[data-bs-theme="light"] .app-topbar {
    background: rgba(255, 255, 255, .98);
    border-bottom: 1px solid var(--hris-light-border) !important;
    box-shadow: none !important;
}

html[data-bs-theme="light"] .hris-topbar-search .form-control,
html[data-bs-theme="light"] .hris-topbar-search .input-group-text {
    background: #ffffff;
    border-color: #dde4ea;
}

html[data-bs-theme="light"] .hris-topbar-search:focus-within {
    border-color: #9fd8c7;
    box-shadow: 0 0 0 3px rgba(13, 150, 112, .09);
}

html[data-bs-theme="light"] .hris-topbar-icon:hover,
html[data-bs-theme="light"] .hris-user-button:hover {
    background: #f2f8f6;
}

html[data-bs-theme="light"] .hris-dashboard-card,
html[data-bs-theme="light"] .employee-enterprise-card,
html[data-bs-theme="light"] .employee-form-guide,
html[data-bs-theme="light"] .employee-form-section,
html[data-bs-theme="light"] .enterprise-profile-nav,
html[data-bs-theme="light"] .enterprise-profile-section {
    border-color: var(--hris-light-border);
    box-shadow: 0 5px 18px rgba(29, 50, 74, .035);
}

html[data-bs-theme="light"] .employee-primary-action,
html[data-bs-theme="light"] .employee-save-button,
html[data-bs-theme="light"] .enterprise-edit-button,
html[data-bs-theme="light"] .employee-filter-button {
    color: #ffffff;
    background: var(--hris-accent);
    border-color: var(--hris-accent);
    box-shadow: 0 7px 16px rgba(13, 150, 112, .16);
}

html[data-bs-theme="light"] .employee-primary-action:hover,
html[data-bs-theme="light"] .employee-save-button:hover,
html[data-bs-theme="light"] .enterprise-edit-button:hover,
html[data-bs-theme="light"] .employee-filter-button:hover {
    color: #ffffff;
    background: var(--hris-accent-dark);
    border-color: var(--hris-accent-dark);
}

html[data-bs-theme="light"] .employee-form-guide a:hover,
html[data-bs-theme="light"] .enterprise-profile-nav a:hover {
    color: var(--hris-accent-dark);
    background: #f4faf7;
}

html[data-bs-theme="light"] .employee-form-guide a.active,
html[data-bs-theme="light"] .employee-form-guide a:focus-visible,
html[data-bs-theme="light"] .enterprise-profile-nav a.active,
html[data-bs-theme="light"] .enterprise-profile-nav a:focus-visible {
    color: var(--hris-accent-dark);
    background: linear-gradient(90deg, var(--hris-accent-soft), #f5fbf8);
}

html[data-bs-theme="light"] .employee-form-guide a.active::before,
html[data-bs-theme="light"] .employee-form-guide a:focus-visible::before,
html[data-bs-theme="light"] .enterprise-profile-nav a.active::before,
html[data-bs-theme="light"] .enterprise-profile-nav a:focus-visible::before {
    background: var(--hris-accent);
}

html[data-bs-theme="light"] .employee-form-guide a.active i,
html[data-bs-theme="light"] .employee-form-guide a:focus-visible i,
html[data-bs-theme="light"] .enterprise-profile-nav a.active i,
html[data-bs-theme="light"] .enterprise-profile-nav a:focus-visible i {
    color: var(--hris-accent);
}

html[data-sidenav-size="condensed"] .hris-nav-section {
    display: none;
}

/* Exclusive employee profile tabs */
.employee-tabs-ready[role="tablist"] a[role="tab"] {
    cursor: pointer;
}

.employee-tabs-ready[role="tablist"] a[role="tab"]:hover:not(.active) {
    color: var(--hris-accent-dark);
    background: transparent;
}

.employee-tabs-ready[role="tablist"] a[role="tab"]:focus-visible:not(.active) {
    color: var(--hris-accent-dark);
    background: transparent;
    outline: 2px solid rgba(13, 150, 112, .26);
    outline-offset: -2px;
}

.employee-form-section[hidden],
.enterprise-profile-section[hidden] {
    display: none !important;
}

.employee-form-section.is-active,
.enterprise-profile-section.is-active {
    animation: employee-tab-reveal .18s ease-out;
}

.employee-form-content > .employee-form-section.is-active {
    min-height: 360px;
}

.enterprise-profile-nav.employee-tabs-ready a.active {
    box-shadow: inset 0 -3px 0 var(--hris-accent);
}

@keyframes employee-tab-reveal {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .employee-form-section.is-active,
    .enterprise-profile-section.is-active {
        animation: none;
    }
}

/* Direct employee photo picker */
.employee-photo-field {
    position: relative;
}

.employee-photo-picker {
    min-height: 108px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--hris-light-ink);
    background: #fbfdfd;
    border: 1px dashed #cdd9df;
    border-radius: 11px;
    cursor: pointer;
    transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.employee-photo-picker:hover {
    background: #f5fbf8;
    border-color: #75c7ad;
}

.employee-photo-picker:focus-visible,
.employee-photo-field:focus-within .employee-photo-picker {
    border-color: var(--hris-accent);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(13, 150, 112, .11);
}

.employee-photo-preview {
    position: relative;
    width: 78px;
    height: 78px;
    flex: 0 0 78px;
    display: grid;
    place-items: center;
    color: #3478c6;
    background: linear-gradient(145deg, #edf5ff, #dce9fb);
    border: 3px solid #ffffff;
    border-radius: 16px;
    box-shadow: 0 0 0 1px #dbe5ed, 0 7px 16px rgba(35, 66, 96, .10);
    overflow: visible;
}

.employee-photo-preview > img,
.employee-photo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 13px;
}

.employee-photo-preview > img {
    display: block;
    object-fit: cover;
}

.employee-photo-preview > img[hidden],
.employee-photo-placeholder[hidden] {
    display: none;
}

.employee-photo-placeholder {
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 700;
}

.employee-photo-placeholder i {
    font-size: 28px;
}

.employee-photo-camera {
    position: absolute;
    right: -7px;
    bottom: -7px;
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: var(--hris-accent);
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(13, 150, 112, .25);
    font-size: 13px;
}

.employee-photo-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.employee-photo-copy strong {
    color: #233955;
    font-size: 10px;
}

.employee-photo-copy > span {
    color: #66778c;
    font-size: 9px;
}

.employee-photo-copy small {
    max-width: 280px;
    overflow: hidden;
    color: #8a97a7;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.employee-photo-field.has-new-photo .employee-photo-copy small {
    color: var(--hris-accent-dark);
    font-weight: 650;
}

.employee-photo-native-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.employee-photo-field > .form-text {
    margin-top: 5px;
}

.employee-photo-field > .errorlist {
    margin: 6px 0 0;
    padding: 0;
    color: #c7474f;
    font-size: 9px;
    list-style: none;
}

@media (max-width: 520px) {
    .employee-photo-picker {
        align-items: flex-start;
    }

    .employee-photo-preview {
        width: 68px;
        height: 68px;
        flex-basis: 68px;
    }
}

/* Readable employee module typography and shared light identity header */
.employee-workspace-hero {
    position: relative;
    overflow: hidden;
    color: #183153;
    background:
        radial-gradient(circle at 88% 22%, rgba(88, 151, 232, .15), transparent 30%),
        radial-gradient(circle at 66% 115%, rgba(79, 144, 235, .10), transparent 38%),
        linear-gradient(110deg, #fbfdff 0%, #f3f8ff 56%, #eaf3ff 100%);
    border-color: #dce7f4;
    box-shadow: 0 8px 24px rgba(35, 76, 119, .06);
}

.employee-workspace-hero::after {
    position: absolute;
    right: -5%;
    bottom: -42px;
    width: 58%;
    height: 78px;
    border-top: 1px solid rgba(84, 147, 225, .12);
    border-radius: 50%;
    content: "";
    pointer-events: none;
    transform: rotate(-5deg);
}

.employee-workspace-hero > * {
    position: relative;
    z-index: 1;
}

.employee-workspace-hero .employee-hero-icon {
    color: #2f73d8;
    background: rgba(255, 255, 255, .82);
    border-color: #d6e3f1;
    box-shadow: 0 5px 16px rgba(44, 96, 154, .09);
}

.employee-workspace-hero .employee-eyebrow {
    color: #7188a2;
}

.employee-workspace-hero h1 {
    color: #102a54;
}

.employee-workspace-hero p {
    color: #657992;
    font-size: 12px;
}

.employee-page-context h1 {
    font-size: 18px;
}

.employee-page-context ol {
    font-size: 10px;
}

.employee-editor-title .employee-eyebrow,
.enterprise-profile-identity .employee-eyebrow {
    font-size: 10px;
}

.employee-editor-hero p,
.enterprise-profile-identity p {
    font-size: 12px;
}

.employee-header-status,
.employee-record-security,
.enterprise-profile-toolbar a {
    font-size: 10px;
}

.employee-form-guide > strong {
    font-size: 9.5px;
}

.employee-form-guide a {
    min-height: 41px;
    font-size: 10.5px;
}

.employee-form-section h2,
.enterprise-section-header h2 {
    font-size: 15px;
}

.employee-form-section header p,
.enterprise-section-header p {
    font-size: 10.5px;
}

.employee-form-subtitle {
    font-size: 9.5px;
}

.employee-enterprise-form .form-label,
.employee-enterprise-form label.form-label {
    font-size: 10.5px;
}

.employee-enterprise-form .form-control,
.employee-enterprise-form .form-select {
    min-height: 42px;
    font-size: 11px;
}

.employee-enterprise-form .form-text,
.employee-enterprise-form .errorlist,
.employee-form-alert span {
    font-size: 9.5px;
}

.employee-enterprise-form .modal-record-card .card-title {
    font-size: 11.5px;
}

.employee-enterprise-form .modal-record-card .card-header p,
.employee-enterprise-form .modal-record-card .btn-outline-primary,
.employee-enterprise-form .modal-record-item .btn,
.employee-enterprise-form .modal-record-empty {
    font-size: 9.5px;
}

.employee-enterprise-form .child-record-summary strong {
    font-size: 10.5px;
}

.employee-enterprise-form .child-record-summary span {
    font-size: 9.5px;
}

.employee-cancel-button,
.employee-save-button {
    font-size: 11px;
}

.employee-photo-copy strong {
    font-size: 11.5px;
}

.employee-photo-copy > span {
    font-size: 10px;
}

.employee-photo-copy small {
    font-size: 9px;
}

.enterprise-profile-identity .employee-status-badge,
.enterprise-employment-type {
    font-size: 10px;
}

.enterprise-profile-facts small {
    font-size: 9px;
}

.enterprise-profile-facts strong {
    font-size: 10.5px;
}

.enterprise-profile-nav a {
    min-height: 36px;
    font-size: 10px;
}

.enterprise-section-header > em {
    font-size: 9px;
}

.enterprise-info-card h3,
.enterprise-record-panel h3,
.enterprise-table-panel h3 {
    font-size: 12px;
}

.enterprise-info-card dt,
.enterprise-info-card dd {
    font-size: 10px;
    line-height: 1.45;
}

.enterprise-address > div span,
.enterprise-address > div em {
    font-size: 8.5px;
}

.enterprise-address strong {
    font-size: 10px;
}

.enterprise-address small,
.enterprise-empty-copy {
    font-size: 9px;
}

.enterprise-id-grid small,
.enterprise-document-grid article div > span {
    font-size: 9px;
}

.enterprise-id-grid strong,
.enterprise-document-grid strong {
    font-size: 10.5px;
}

.enterprise-id-grid em,
.enterprise-document-grid small,
.enterprise-document-grid em {
    font-size: 8.5px;
}

.enterprise-record-panel > header span,
.enterprise-table-panel > header span {
    font-size: 8.5px;
}

.enterprise-person-record strong {
    font-size: 10px;
}

.enterprise-person-record small,
.enterprise-person-record em {
    font-size: 8.5px;
}

.enterprise-person-record > b {
    font-size: 8.5px;
}

.enterprise-timeline-date strong {
    font-size: 9.5px;
}

.enterprise-timeline-date small,
.enterprise-timeline-content > small {
    font-size: 8.5px;
}

.enterprise-timeline-content > div strong {
    font-size: 10.5px;
}

.enterprise-timeline-content > div span {
    font-size: 8.5px;
}

.enterprise-timeline-content p {
    font-size: 9.5px;
}

.enterprise-table-panel th,
.enterprise-table-panel td {
    font-size: 9.5px;
}

.enterprise-table-panel th {
    font-size: 8.5px;
}

.enterprise-table-panel td strong {
    font-size: 10px;
}

.enterprise-table-panel td small,
.enterprise-table-panel td em {
    font-size: 8.5px;
}

/* Compact, contained profile photo control */
.employee-photo-picker {
    min-height: 96px;
    padding: 11px 13px;
    gap: 14px;
    background: #ffffff;
    border-style: solid;
    border-color: #dce5eb;
    box-shadow: 0 3px 10px rgba(31, 57, 82, .035);
}

.employee-photo-picker:hover {
    background: #f8fcfa;
    border-color: #8bcdb9;
    box-shadow: 0 5px 14px rgba(13, 116, 86, .07);
}

.employee-photo-preview {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    border: 0;
    border-radius: 14px;
    box-shadow: none;
    overflow: visible;
}

.employee-photo-image-frame {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(145deg, #edf5ff, #dfeaff);
    border: 3px solid #ffffff;
    border-radius: 14px;
    box-shadow: 0 0 0 1px #d8e3eb, 0 6px 14px rgba(35, 66, 96, .10);
}

.employee-photo-image-frame > img,
.employee-photo-image-frame > .employee-photo-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: block;
    border-radius: 11px;
}

.employee-photo-image-frame > img {
    object-fit: cover;
    object-position: center;
}

.employee-photo-image-frame > img[hidden],
.employee-photo-image-frame > .employee-photo-placeholder[hidden] {
    display: none;
}

.employee-photo-image-frame > .employee-photo-placeholder {
    display: grid;
    place-items: center;
}

.employee-photo-camera {
    right: -6px;
    bottom: -6px;
    z-index: 2;
}

.employee-photo-copy {
    flex: 1;
}

.employee-photo-copy strong {
    font-size: 12px;
}

.employee-photo-copy > span {
    color: #607188;
    font-size: 10px;
}

.employee-photo-copy small {
    color: #8a96a6;
    font-size: 9px;
}

.employee-photo-field.has-new-photo .employee-photo-copy > span {
    color: var(--hris-accent-dark);
    font-weight: 650;
}

.employee-photo-action {
    min-height: 34px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--hris-accent-dark);
    background: #eff9f5;
    border: 1px solid #cce9df;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 650;
    white-space: nowrap;
}

.employee-photo-picker:hover .employee-photo-action {
    color: #ffffff;
    background: var(--hris-accent);
    border-color: var(--hris-accent);
}

@media (max-width: 640px) {
    .employee-photo-picker {
        align-items: center;
        flex-wrap: wrap;
    }

    .employee-photo-action {
        width: 100%;
    }
}

/* Organization module */
.organization-workspace-page .content-page > .container-fluid {
    max-width: none;
    padding-inline: 0;
}

.organization-workspace {
    width: 100%;
    max-width: 1740px;
    margin: 0 auto;
    padding: 22px 24px 34px;
    color: #26364d;
}

.organization-page-header {
    min-height: 62px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.organization-page-header h1 {
    margin: 0;
    color: #142b4d;
    font-size: 20px;
    font-weight: 700;
}

.organization-page-header p {
    margin: 4px 0 0;
    color: #748196;
    font-size: 11px;
}

.organization-page-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.organization-secondary-action,
.organization-primary-action {
    min-height: 39px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 8px;
    font-size: 10.5px;
    font-weight: 600;
}

.organization-secondary-action {
    color: #44566d;
    background: #ffffff;
    border: 1px solid #dce4ea;
}

.organization-secondary-action:hover {
    color: var(--hris-accent-dark);
    background: #f7fbf9;
    border-color: #a9d8c9;
}

.organization-primary-action,
.organization-primary-action:hover {
    color: #ffffff;
    background: var(--hris-accent);
    border: 1px solid var(--hris-accent);
    box-shadow: 0 6px 14px rgba(13, 150, 112, .15);
}

.organization-chart-panel,
.organization-data-card,
.organization-list-card {
    background: #ffffff;
    border: 1px solid #e0e7ec;
    border-radius: 13px;
    box-shadow: 0 6px 20px rgba(29, 50, 74, .035);
}

.organization-chart-panel {
    overflow: hidden;
}

.organization-chart-filters {
    min-height: 65px;
    padding: 11px 14px;
    display: grid;
    grid-template-columns: auto minmax(160px, .9fr) minmax(150px, .8fr) minmax(170px, .9fr) auto auto;
    align-items: end;
    gap: 10px;
    background: #fbfcfd;
    border-bottom: 1px solid #e4eaef;
}

.organization-chart-filters label,
.organization-list-filters label {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.organization-chart-filters label > span,
.organization-list-filters label > span {
    color: #718096;
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.organization-chart-filters select,
.organization-list-filters select,
.organization-list-filters input,
.organization-company-picker select {
    min-height: 38px;
    padding: 0 10px;
    color: #33445a;
    background: #ffffff;
    border: 1px solid #dce4ea;
    border-radius: 7px;
    font-size: 10px;
    outline: none;
}

.organization-chart-filters select:focus,
.organization-list-filters select:focus,
.organization-list-filters input:focus,
.organization-company-picker select:focus {
    border-color: #83c9b4;
    box-shadow: 0 0 0 3px rgba(13, 150, 112, .09);
}

.organization-view-switch {
    height: 38px;
    padding: 3px;
    display: flex;
    align-items: center;
    gap: 2px;
    background: #f0f4f6;
    border-radius: 8px;
    white-space: nowrap;
}

.organization-view-switch > span {
    padding: 0 7px;
    color: #718096;
    font-size: 9px;
}

.organization-view-switch button {
    height: 31px;
    padding: 0 10px;
    color: #68768a;
    background: transparent;
    border: 0;
    border-radius: 6px;
    font-size: 9.5px;
}

.organization-view-switch button.active {
    color: var(--hris-accent-dark);
    background: #ffffff;
    box-shadow: 0 2px 7px rgba(35, 57, 78, .08);
    font-weight: 650;
}

.organization-vacancy-toggle {
    height: 38px;
    flex-direction: row !important;
    align-items: center;
    gap: 7px !important;
    white-space: nowrap;
}

.organization-vacancy-toggle input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--hris-accent);
}

.organization-vacancy-toggle > span {
    color: #4e5f74 !important;
    font-size: 9.5px !important;
    font-weight: 550 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.organization-filter-apply {
    min-height: 38px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #ffffff;
    background: var(--hris-accent);
    border: 1px solid var(--hris-accent);
    border-radius: 7px;
    font-size: 10px;
    font-weight: 600;
}

.organization-chart-tools {
    min-height: 48px;
    padding: 7px 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #738095;
    background: #ffffff;
    border-bottom: 1px solid #edf1f4;
    font-size: 9px;
}

.organization-chart-tools > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.organization-chart-tools > div {
    display: flex;
    align-items: center;
}

.organization-chart-tools button,
.organization-chart-tools output {
    width: 34px;
    height: 31px;
    display: grid;
    place-items: center;
    color: #53647a;
    background: #ffffff;
    border: 1px solid #dfe6eb;
    font-size: 10px;
}

.organization-chart-tools button:first-child { border-radius:7px 0 0 7px; }
.organization-chart-tools button:nth-of-type(2) { border-radius:0 7px 7px 0; }
.organization-chart-tools button:last-child { margin-left:7px;border-radius:7px; }
.organization-chart-tools output { width:48px;border-inline:0; }
.organization-chart-tools button:hover { color:var(--hris-accent-dark);background:#f2f9f6; }

.organization-chart-viewport {
    min-height: 560px;
    overflow: auto;
    background:
        linear-gradient(rgba(245, 248, 250, .72) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 248, 250, .72) 1px, transparent 1px),
        #ffffff;
    background-size: 28px 28px;
}

.organization-chart-stage {
    width: max-content;
    min-width: 100%;
    min-height: 510px;
    padding: 26px 38px 44px;
    transform-origin: top center;
}

.organization-tree,
.organization-tree ul {
    position: relative;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    list-style: none;
}

.organization-tree ul {
    padding-top: 34px;
}

.organization-tree ul::before {
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 34px;
    border-left: 1px solid #b7c6d3;
    content: "";
}

.organization-tree-item {
    position: relative;
    padding: 34px 7px 0;
    text-align: center;
}

.organization-tree-root > .organization-tree-item {
    padding-top: 0;
}

.organization-tree-item::before,
.organization-tree-item::after {
    position: absolute;
    top: 0;
    right: 50%;
    width: 50%;
    height: 34px;
    border-top: 1px solid #b7c6d3;
    content: "";
}

.organization-tree-item::after {
    right: auto;
    left: 50%;
    border-left: 1px solid #b7c6d3;
}

.organization-tree-item:only-child::before,
.organization-tree-item:only-child::after,
.organization-tree-root > .organization-tree-item::before,
.organization-tree-root > .organization-tree-item::after {
    display: none;
}

.organization-tree-item:first-child::before,
.organization-tree-item:last-child::after {
    border: 0;
}

.organization-tree-item:last-child::before {
    border-right: 1px solid #b7c6d3;
    border-radius: 0 7px 0 0;
}

.organization-tree-item:first-child::after {
    border-radius: 7px 0 0 0;
}

.organization-node-card {
    position: relative;
    width: 184px;
    min-height: 82px;
    margin: 0 auto;
    padding: 11px 22px 9px 10px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    gap: 4px 9px;
    color: #2c3c52;
    text-align: left;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #dce4ea;
    border-radius: 9px;
    box-shadow: 0 5px 14px rgba(32, 56, 78, .055);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

a.organization-node-card:hover {
    color: #2c3c52;
    border-color: #8fcdbb;
    box-shadow: 0 8px 18px rgba(26, 96, 75, .10);
    transform: translateY(-2px);
}

.organization-tree-item.is-vacant .organization-node-card {
    background: #fbfcfd;
    border-style: dashed;
}

.organization-node-avatar {
    width: 42px;
    height: 42px;
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #2c73c0;
    background: #eaf3fd;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
}

.organization-node-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.is-vacant .organization-node-avatar {
    color: #8795a8;
    background: #edf0f4;
    font-size: 20px;
}

.organization-node-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.organization-node-copy strong,
.organization-node-copy small,
.organization-node-copy em {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.organization-node-copy strong { color:#25364c;font-size:10px; }
.organization-node-copy small { margin-top:2px;color:var(--hris-accent-dark);font-size:8.5px; }
.organization-node-copy em { margin-top:2px;color:#8490a1;font-size:7.5px;font-style:normal; }
.is-vacant .organization-node-copy strong { color:#728095;text-transform:uppercase;letter-spacing:.04em; }

.organization-node-meta {
    grid-column: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #738196;
    font-size: 7.5px;
}

.organization-node-menu {
    position: absolute;
    top: 8px;
    right: 7px;
    color: #93a0af;
    font-size: 13px;
}

.organization-chart-empty {
    min-height: 390px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #8996a7;
    text-align: center;
}

.organization-chart-empty i { margin-bottom:10px;font-size:34px; }
.organization-chart-empty strong { color:#42536a;font-size:13px; }
.organization-chart-empty span { max-width:420px;margin-top:5px;font-size:10px; }

.organization-vacancies {
    max-width: 980px;
    margin: 48px auto 0;
    padding-top: 20px;
    border-top: 1px dashed #ccd6df;
}

.organization-vacancies > header {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #68778c;
    font-size: 9px;
    text-transform: uppercase;
}

.organization-vacancies > header em { font-style:normal;text-transform:none; }
.organization-vacancies > div { display:flex;justify-content:center;flex-wrap:wrap;gap:12px; }

.organization-vacancies article {
    width: 220px;
    min-height: 70px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fbfcfd;
    border: 1px dashed #cbd6df;
    border-radius: 9px;
}

.organization-vacancies article > span { width:40px;height:40px;display:grid;place-items:center;color:#93a0b1;background:#edf0f4;border-radius:8px;font-size:21px; }
.organization-vacancies article > div { min-width:0;display:flex;flex-direction:column; }
.organization-vacancies article small { color:#8895a6;font-size:7.5px;text-transform:uppercase; }
.organization-vacancies article strong { margin-top:2px;color:#43536a;font-size:9.5px; }
.organization-vacancies article em { margin-top:2px;color:#8490a1;font-size:8px;font-style:normal; }

.organization-chart-legend {
    min-height: 42px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #748196;
    background: #fbfcfd;
    border-top: 1px solid #e7ecef;
    font-size: 8.5px;
}

.organization-chart-legend span { display:inline-flex;align-items:center;gap:6px; }
.organization-chart-legend i { width:9px;height:9px;border-radius:3px; }
.organization-chart-legend i.filled { background:var(--hris-accent); }
.organization-chart-legend i.vacant { background:#ffffff;border:1px dashed #91a0b1; }
.organization-chart-legend em { margin-left:auto;font-style:normal; }

.organization-company-picker {
    min-width: 230px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.organization-company-picker label { color:#7b8899;font-size:8px;text-transform:uppercase; }

.organization-summary-grid {
    margin-bottom: 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.organization-summary-grid article {
    min-height: 91px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #e1e7ec;
    border-radius: 11px;
}

.organization-summary-grid article > span { width:43px;height:43px;display:grid;place-items:center;border-radius:10px;font-size:20px; }
.organization-summary-grid article > span.green { color:#11956c;background:#e8f7f0; }
.organization-summary-grid article > span.blue { color:#3478d7;background:#eaf2ff; }
.organization-summary-grid article > span.violet { color:#775fe0;background:#f0edff; }
.organization-summary-grid article > span.orange { color:#dc8a15;background:#fff2df; }
.organization-summary-grid article > div { min-width:0;display:flex;flex-direction:column; }
.organization-summary-grid small { color:#657489;font-size:9px; }
.organization-summary-grid strong { margin-top:2px;color:#172d4d;font-size:19px; }
.organization-summary-grid em { margin-top:2px;color:#98a3b2;font-size:8px;font-style:normal; }

.organization-structure-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.organization-data-card.full { grid-column:1 / -1; }

.organization-data-card > header,
.organization-list-heading {
    min-height: 65px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #e6ebef;
}

.organization-data-card > header > div { display:flex;align-items:center;gap:10px; }
.organization-data-card > header > div > span { width:36px;height:36px;display:grid;place-items:center;color:#2773c2;background:#edf5ff;border-radius:8px;font-size:17px; }
.organization-data-card h2,.organization-list-heading h2 { margin:0;color:#23364e;font-size:13px; }
.organization-data-card header p,.organization-list-heading p { margin:3px 0 0;color:#8591a1;font-size:9px; }
.organization-data-card header em { color:#8591a1;font-size:8.5px;font-style:normal; }

.organization-data-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
}

.organization-data-table th,
.organization-data-table td {
    padding: 11px 13px;
    text-align: left;
    border-bottom: 1px solid #e8edf0;
    font-size: 9.5px;
    vertical-align: middle;
}

.organization-data-table th {
    color: #758297;
    background: #fafcfd;
    font-size: 8px;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.organization-data-table tbody tr:last-child td { border-bottom:0; }
.organization-data-table tbody tr:hover td { background:#fbfdfc; }
.organization-data-table td strong,.organization-data-table td small { display:block; }
.organization-data-table td strong { color:#283b53;font-size:10px; }
.organization-data-table td small { margin-top:2px;color:#8793a3;font-size:8px; }

.organization-status {
    min-height: 22px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #68778a;
    background: #eef1f4;
    border-radius: 11px;
    font-size: 8px;
    font-weight: 600;
}

.organization-status.active { color:#0c805d;background:#e4f7ef; }
.organization-status.vacant { color:#a36a17;background:#fff1db; }
.organization-empty-cell { padding:28px !important;color:#8a96a6;text-align:center !important; }

.organization-grade-grid {
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.organization-grade-grid article { min-height:72px;padding:11px;display:flex;align-items:center;gap:10px;background:#fbfcfd;border:1px solid #e4e9ed;border-radius:9px; }
.organization-grade-grid article > span { width:38px;height:38px;display:grid;place-items:center;color:#6b55cc;background:#f0edff;border-radius:8px;font-size:9px;font-weight:700; }
.organization-grade-grid article > div { min-width:0;display:flex;flex-direction:column; }
.organization-grade-grid strong { color:#2f4056;font-size:10px; }
.organization-grade-grid small,.organization-grade-grid em { margin-top:2px;color:#8490a0;font-size:8px;font-style:normal; }

.organization-list-card { overflow:hidden; }

.organization-list-filters {
    padding: 12px 14px;
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) minmax(180px, .8fr) minmax(180px, .8fr) auto;
    align-items: end;
    gap: 10px;
    background: #fbfcfd;
    border-bottom: 1px solid #e5eaee;
}

.organization-list-filters label > div { position:relative; }
.organization-list-filters label > div i { position:absolute;top:50%;left:11px;color:#7a899c;transform:translateY(-50%); }
.organization-list-filters label > div input { width:100%;padding-left:34px; }

.organization-incumbent { display:inline-flex;align-items:center;gap:7px;color:#2c536f;text-decoration:none; }
.organization-incumbent > span { width:29px;height:29px;display:grid;place-items:center;overflow:hidden;color:#ffffff;background:#2f8eb6;border-radius:50%;font-size:8px;font-weight:700; }
.organization-incumbent img { width:100%;height:100%;object-fit:cover; }

.organization-chip { margin:2px;padding:3px 6px;display:inline-flex;color:#0d7c5c;background:#e7f7f0;border-radius:6px;font-size:8px; }
.organization-chip.blue { color:#2e69ad;background:#eaf3fc; }

.organization-chart-panel:fullscreen {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border: 0;
    border-radius: 0;
}

.organization-chart-panel:fullscreen .organization-chart-viewport {
    height: calc(100vh - 155px);
}

@media (max-width: 1250px) {
    .organization-chart-filters { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .organization-view-switch { grid-column:1 / -1;width:max-content; }
    .organization-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .organization-grade-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 900px) {
    .organization-page-header { align-items:flex-start;flex-direction:column; }
    .organization-page-actions { width:100%;flex-wrap:wrap; }
    .organization-chart-filters,.organization-list-filters { grid-template-columns:1fr 1fr; }
    .organization-view-switch { grid-column:1 / -1; }
    .organization-structure-grid { grid-template-columns:1fr; }
    .organization-data-card.full { grid-column:auto; }
}

@media (max-width: 600px) {
    .organization-workspace { padding:14px; }
    .organization-page-actions > * { flex:1; }
    .organization-chart-filters,.organization-list-filters,.organization-summary-grid,.organization-grade-grid { grid-template-columns:1fr; }
    .organization-view-switch { width:100%;overflow-x:auto; }
    .organization-vacancy-toggle { height:auto; }
    .organization-chart-legend { align-items:flex-start;flex-direction:column;gap:5px; }
    .organization-chart-legend em { margin-left:0; }
}

@media print {
    .sidenav-menu,.app-topbar,.page-title-head,.organization-page-header,.organization-chart-filters,.organization-chart-tools,.organization-chart-legend { display:none !important; }
    .content-page { margin:0 !important;padding:0 !important; }
    .organization-workspace { max-width:none;padding:0; }
    .organization-chart-panel { border:0;box-shadow:none; }
    .organization-chart-viewport { overflow:visible;background:#ffffff; }
    .organization-chart-stage { zoom:.72 !important; }
}

/* Company-scoped application User Management */
.user-management-workspace {
    max-width: 1660px;
}

.user-management-hero .employee-primary-action,
.user-form-actions .employee-primary-action {
    background: #109c78;
    border-color: #109c78;
    box-shadow: 0 8px 20px rgba(16,156,120,.18);
}

.user-management-hero .employee-primary-action:hover,
.user-form-actions .employee-primary-action:hover {
    background: #0d8869;
    border-color: #0d8869;
}

.user-management-alert {
    margin-bottom: 14px;
    border-radius: 10px;
    font-size: 11px;
}

.user-filter-grid {
    grid-template-columns: minmax(285px,1.45fr) repeat(3,minmax(150px,.75fr)) auto;
}

.user-directory-table {
    min-width: 1350px;
}

.user-directory-table td:nth-child(1) { min-width:245px; }
.user-directory-table td:nth-child(2) { min-width:150px; }
.user-directory-table td:nth-child(3) { min-width:155px; }
.user-directory-table td:nth-child(4) { min-width:170px; }
.user-directory-table td:nth-child(5) { min-width:125px; }

.user-company-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.user-company-chips span,
.user-company-chips em {
    min-height: 21px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    color: #176a58;
    background: #e8f7f1;
    border: 1px solid #d7efe6;
    border-radius: 6px;
    font-size: 7.5px;
    font-style: normal;
    font-weight: 700;
}

.user-company-chips em {
    color: #2e68ad;
    background: #edf5ff;
    border-color: #ddeafa;
}

.user-role-badge {
    width: max-content;
    min-height: 21px;
    margin: 2px 0;
    padding: 0 7px;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #375675;
    background: #edf3f8;
    border-radius: 6px;
    font-size: 7.5px;
    font-weight: 650;
}

.user-role-badge.administrator {
    color: #825b13;
    background: #fff3d9;
}

.user-muted-value {
    display: block;
    color: #8290a1;
    font-size: 9px;
}

.user-row-actions {
    width: 124px;
}

.user-row-actions form {
    display: inline;
}

.user-row-actions button {
    width: 30px;
    height: 30px;
    margin-left: 4px;
    display: inline-grid;
    place-items: center;
    color: #55708e;
    background: #f5f8fb;
    border: 1px solid #e0e6ee;
    border-radius: 7px;
    font-size: 14px;
}

.user-row-actions button:hover {
    color: #ffffff;
    background: #2d76c7;
    border-color: #2d76c7;
}

.user-row-actions button.danger:hover { background:#d9535b;border-color:#d9535b; }
.user-row-actions button.success:hover { background:#119b75;border-color:#119b75; }

.user-form-hero {
    min-height: 132px;
    margin-bottom: 16px;
    padding: 22px 26px;
    display: flex;
    align-items: center;
    gap: 18px;
    background:
        radial-gradient(circle at 86% 12%,rgba(68,142,230,.15),transparent 28%),
        linear-gradient(110deg,#fbfdff 0%,#f2f8ff 55%,#e7f2ff 100%);
    border: 1px solid #d9e6f4;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(35,76,119,.06);
}

.user-form-back {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    color: #315f91;
    background: rgba(255,255,255,.85);
    border: 1px solid #d6e2ef;
    border-radius: 8px;
    font-size: 17px;
}

.user-form-back:hover { color:#ffffff;background:#3478f6;border-color:#3478f6; }

.user-form-avatar {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #2f73d8;
    background: rgba(255,255,255,.85);
    border: 3px solid #ffffff;
    border-radius: 14px;
    box-shadow: 0 5px 16px rgba(44,96,154,.12);
    font-size: 28px;
}

.user-form-avatar img { width:100%;height:100%;object-fit:cover; }
.user-form-hero > div { min-width:0; }
.user-form-hero > div > span { color:#7188a2;font-size:9px;font-weight:700;letter-spacing:.14em;text-transform:uppercase; }
.user-form-hero h1 { margin:4px 0 5px;color:#102a54;font-size:clamp(22px,2vw,29px);font-weight:650; }
.user-form-hero p { margin:0;color:#657992;font-size:11px; }

.user-form-security {
    min-height: 31px;
    margin-left: auto;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #315c87;
    background: rgba(255,255,255,.84);
    border: 1px solid #d7e3ef;
    border-radius: 15px;
    font-size: 8px;
    font-weight: 650;
    white-space: nowrap;
}

.user-form-layout {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
}

.user-form-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--hris-dashboard-line);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(27,51,82,.025);
}

.user-form-card.full-width { grid-column:1 / -1; }

.user-form-card > header {
    min-height: 68px;
    padding: 13px 16px;
    display: flex;
    align-items: center;
    gap: 11px;
    border-bottom: 1px solid #e7ecf1;
}

.user-form-card > header > span {
    width: 37px;
    height: 37px;
    flex: 0 0 37px;
    display: grid;
    place-items: center;
    color: #2f76d6;
    background: #edf5ff;
    border-radius: 9px;
    font-size: 18px;
}

.user-form-card h2 { margin:0;color:#1c304b;font-size:13px; }
.user-form-card header p { margin:3px 0 0;color:#7b899b;font-size:9px; }
.user-form-body { padding:17px; }

.user-form-grid {
    display: grid;
    gap: 14px;
}

.user-form-grid.two-columns { grid-template-columns:repeat(2,minmax(0,1fr)); }
.user-form-grid .full { grid-column:1 / -1; }

.user-form-body > label,
.user-form-grid > label {
    min-width: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.user-form-body label > span,
.user-form-grid label > span {
    color: #42546d;
    font-size: 9px;
    font-weight: 650;
}

.user-form-body label > span b,
.user-form-grid label > span b { color:#d44e57; }

.user-form-body .form-control,
.user-form-body .form-select {
    min-height: 42px;
    padding: 8px 11px;
    color: #273850;
    background: #ffffff;
    border-color: #d9e1ea;
    border-radius: 8px;
    font-size: 10px;
}

.user-form-body .form-control:focus,
.user-form-body .form-select:focus {
    border-color: #6f9fe8;
    box-shadow: 0 0 0 3px rgba(52,120,246,.09);
}

.user-form-body label > small,
.user-form-grid label > small { color:#8794a5;font-size:8px;line-height:1.45; }
.user-form-body .errorlist { margin:0;padding:0;color:#c94851;font-size:8px;list-style:none; }

.user-company-field { margin-bottom:14px !important; }

.user-company-selector {
    min-height: 94px;
    max-height: 142px;
    padding: 8px;
    overflow-y: auto;
    background: #fbfcfd;
    border: 1px solid #d9e1ea;
    border-radius: 8px;
}

.user-company-selector > div > div + div { margin-top:4px; }
.user-company-selector label { min-height:32px;padding:5px 8px;display:flex;align-items:center;gap:8px;color:#31445d;background:#ffffff;border:1px solid #edf0f3;border-radius:6px;font-size:9px; }
.user-company-selector input { width:15px;height:15px;accent-color:#109c78; }

.user-active-switch,
.user-generate-password {
    position: relative;
    margin-top: 14px !important;
    padding: 12px 13px 12px 53px;
    display: block !important;
    background: #f8fbfa;
    border: 1px solid #dcece7;
    border-radius: 9px;
}

.user-active-switch > span,
.user-generate-password > span {
    position: absolute;
    top: 50%;
    left: 13px;
    width: 30px;
    height: 17px;
    transform: translateY(-50%);
}

.user-active-switch input,
.user-generate-password input { width:30px;height:17px;margin:0;cursor:pointer; }
.user-active-switch strong,.user-generate-password strong { display:block;color:#29443d;font-size:9px; }
.user-active-switch small,.user-generate-password small { margin-top:3px;color:#748980;font-size:8px; }
.user-password-card .user-form-body { display:grid;grid-template-columns:minmax(280px,.72fr) minmax(420px,1.28fr);gap:16px;align-items:start; }
.user-password-card .user-generate-password { margin:0 !important; }

.user-security-note {
    grid-column: 1 / -1;
    padding: 11px 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #31566f;
    background: #eef7fb;
    border: 1px solid #dcebf2;
    border-radius: 8px;
}

.user-security-note > i { font-size:20px; }
.user-security-note strong,.user-security-note span { display:block; }
.user-security-note strong { font-size:9px; }
.user-security-note span { margin-top:2px;color:#718596;font-size:8px; }

.user-form-actions {
    position: sticky;
    bottom: 0;
    z-index: 9;
    min-height: 68px;
    margin-top: 14px;
    padding: 11px 14px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    background: rgba(255,255,255,.96);
    border: 1px solid var(--hris-dashboard-line);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(35,60,90,.07);
    backdrop-filter: blur(8px);
}

.user-form-actions > div { margin-right:auto;display:flex;align-items:center;gap:7px;color:#748399;font-size:8px; }
.user-form-actions > div i { color:#109c78;font-size:16px; }
.user-form-actions .employee-clear-button { width:auto;min-width:76px;display:inline-flex;align-items:center;justify-content:center; }

@media (max-width: 1300px) {
    .user-filter-grid { grid-template-columns:minmax(240px,1.2fr) repeat(2,minmax(145px,.8fr)) auto; }
    .user-form-layout { grid-template-columns:1fr; }
    .user-form-card.full-width { grid-column:auto; }
}

@media (max-width: 900px) {
    .user-form-security { display:none; }
    .user-password-card .user-form-body { grid-template-columns:1fr; }
    .user-security-note { grid-column:auto; }
}

@media (max-width: 767.98px) {
    .user-filter-grid { grid-template-columns:1fr 1fr; }
    .user-form-hero { align-items:flex-start;padding:18px; }
    .user-form-avatar { width:52px;height:52px;flex-basis:52px; }
    .user-form-actions > div { display:none; }
}

@media (max-width: 520px) {
    .user-filter-grid,.user-form-grid.two-columns { grid-template-columns:1fr; }
    .user-form-grid .full { grid-column:auto; }
    .user-form-avatar { display:none; }
    .user-form-actions { position:static;flex-direction:column-reverse; }
    .user-form-actions .btn { width:100%; }
}

/* Time & Attendance module */
.sidenav-menu .ta-nav-root > .collapse > .sub-menu {
    padding-bottom: 4px;
}

.sidenav-menu .ta-nav-group {
    margin-top: 1px;
}

.sidenav-menu .ta-nav-group > .ta-nav-group-link {
    min-height: 34px;
    padding-left: 22px;
    gap: 6px;
    font-size: 9px !important;
}

.sidenav-menu .ta-nav-group > .ta-nav-group-link .menu-icon {
    width: 16px;
    min-width: 16px;
    font-size: 13px;
}

.sidenav-menu .ta-nav-level-three {
    padding: 2px 8px 4px 30px;
}

.sidenav-menu .ta-nav-level-three .side-nav-link {
    min-height: 30px;
    padding: 5px 8px 5px 14px;
    gap: 7px;
    font-size: 9px;
    line-height: 1.25;
}

.sidenav-menu .ta-nav-level-three .side-nav-link::before {
    left: 3px !important;
}

.sidenav-menu .ta-nav-level-three .menu-text {
    overflow: hidden;
    text-overflow: ellipsis;
}

.ta-nav-badge {
    min-width: 19px;
    height: 18px;
    margin-left: auto;
    padding: 0 5px;
    display: inline-grid;
    place-items: center;
    color: #9a6100;
    background: #fff0cc;
    border: 1px solid #f5d892;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 800;
    line-height: 1;
}

.ta-workspace-hero .employee-hero-icon {
    color: #1d6eae;
    background: linear-gradient(145deg,#e7f4ff,#eef9f5);
}

.ta-scope-notice {
    margin-bottom: 14px;
    padding: 11px 14px;
    display: flex;
    align-items: center;
    gap: 11px;
    color: #31566f;
    background: #eef7fb;
    border: 1px solid #d9e9f1;
    border-radius: 10px;
}

.ta-scope-notice > i {
    color: #168566;
    font-size: 22px;
}

.ta-scope-notice > div {
    min-width: 0;
    margin-right: auto;
}

.ta-scope-notice strong,
.ta-scope-notice span {
    display: block;
}

.ta-scope-notice strong {
    color: #29445d;
    font-size: 10px;
}

.ta-scope-notice div span {
    margin-top: 2px;
    color: #718596;
    font-size: 8px;
}

.ta-scope-notice > .employee-status-badge {
    flex: 0 0 auto;
}

.ta-filter-grid {
    grid-template-columns: minmax(260px,1.35fr) minmax(210px,.9fr) minmax(145px,.6fr) auto;
}

.ta-list-card {
    min-height: 300px;
}

.ta-placeholder-table th {
    width: 25%;
}

.ta-empty-state {
    max-width: 640px;
    margin: 34px auto;
}

.ta-empty-state span {
    max-width: 540px;
}

html[data-bs-theme="dark"] .ta-scope-notice {
    color: #b8d3e2;
    background: rgba(32,83,108,.22);
    border-color: rgba(116,170,198,.24);
}

html[data-bs-theme="dark"] .ta-scope-notice strong {
    color: #dcebf3;
}

html[data-bs-theme="dark"] .ta-scope-notice div span {
    color: #a5bac7;
}

@media (max-width: 900px) {
    .ta-filter-grid { grid-template-columns:1fr 1fr; }
}

@media (max-width: 600px) {
    .ta-filter-grid { grid-template-columns:1fr; }
    .ta-scope-notice { align-items:flex-start; }
    .ta-scope-notice > .employee-status-badge { display:none; }
}

/* Functional shift-template library and editor */
.shift-template-filter-grid {
    grid-template-columns:minmax(220px,1.25fr) minmax(190px,1fr) minmax(155px,.75fr) minmax(120px,.55fr) auto;
}

.shift-template-table { min-width:1180px; }

.shift-identity {
    min-width:170px;
    display:flex;
    align-items:center;
    gap:10px;
}

.shift-identity > span {
    width:36px;
    height:36px;
    flex:0 0 36px;
    display:grid;
    place-items:center;
    color:#216dbd;
    background:#eaf3ff;
    border-radius:9px;
    font-size:17px;
}

.shift-identity strong,
.shift-identity small,
.shift-schedule-cell strong,
.shift-schedule-cell small { display:block; }

.shift-schedule-cell { min-width:205px; }
.shift-schedule-cell strong { color:#1c2c46;font-size:9.5px;white-space:nowrap; }
.shift-schedule-cell small { color:#7d8899;font-size:8px; }

.shift-minute-grid {
    min-width:168px;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:5px;
}

.shift-minute-grid span {
    padding:5px 6px;
    color:#7c8797;
    background:#f6f8fb;
    border-radius:6px;
    font-size:7px;
    text-align:center;
}

.shift-minute-grid b { display:block;color:#223750;font-size:9px; }
.shift-ot-label { color:#2774c5 !important; }
.shift-ot-label i { margin-right:2px; }

.shift-row-actions { width:92px; }
.shift-row-actions form { display:inline; }
.shift-row-actions button {
    width:30px;
    height:30px;
    margin-left:4px;
    display:inline-grid;
    place-items:center;
    color:#b36a15;
    background:#fff8ec;
    border:1px solid #f1dfbd;
    border-radius:7px;
    font-size:14px;
}
.shift-row-actions button:hover { color:#fff;background:#d7892d;border-color:#d7892d; }

.shift-pagination { display:flex;align-items:center;gap:8px; }
.shift-pagination a {
    padding:5px 8px;
    color:#246fc5;
    background:#f3f7fc;
    border:1px solid #e1e8f0;
    border-radius:6px;
    text-decoration:none;
}
.shift-pagination strong { color:#263b54; }

.shift-editor-workspace { max-width:1720px; }
.shift-editor-hero { margin-bottom:14px; }
.shift-editor-hero .employee-hero-icon { color:#dcecff;background:rgba(255,255,255,.1); }

.shift-form-alert {
    margin-bottom:14px;
    padding:12px 14px;
    display:flex;
    align-items:flex-start;
    gap:10px;
    color:#8b3539;
    background:#fff1f1;
    border:1px solid #f0cfd1;
    border-radius:10px;
    font-size:10px;
}
.shift-form-alert > i { margin-top:1px;font-size:18px; }
.shift-form-alert strong { display:block;margin-bottom:3px; }
.shift-form-alert .errorlist { margin:2px 0; }

.shift-editor-layout {
    display:grid;
    grid-template-columns:minmax(0,1fr) 320px;
    align-items:start;
    gap:14px;
}

.shift-editor-main { min-width:0;display:grid;gap:14px; }

.shift-form-card,
.shift-preview-card {
    background:#fff;
    border:1px solid var(--hris-dashboard-line);
    border-radius:12px;
    box-shadow:0 2px 8px rgba(27,51,82,.025);
}

.shift-form-card > header,
.shift-preview-card > header {
    min-height:62px;
    padding:12px 15px;
    display:flex;
    align-items:center;
    gap:10px;
    border-bottom:1px solid #edf0f4;
}

.shift-form-card > header > span,
.shift-preview-card > header > span {
    width:34px;
    height:34px;
    flex:0 0 34px;
    display:grid;
    place-items:center;
    color:#266fbe;
    background:#edf5ff;
    border-radius:8px;
    font-size:16px;
}

.shift-form-card > header > div,
.shift-preview-card > header > div { min-width:0;margin-right:auto; }
.shift-form-card h2,.shift-preview-card h2 { margin:0;color:#1f314a;font-size:12px; }
.shift-form-card header p,.shift-preview-card header p { margin:3px 0 0;color:#7d8999;font-size:8px; }

.shift-form-grid {
    padding:15px;
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:13px;
}

.shift-field-wide { grid-column:span 2; }
.shift-field-full { grid-column:1 / -1; }

.shift-form-field { min-width:0; }
.shift-form-field > label,
.segment-field > label {
    margin-bottom:5px;
    display:block;
    color:#56667c;
    font-size:8px;
    font-weight:700;
    letter-spacing:.025em;
}
.shift-form-field label b { color:#d1454b; }

.shift-form-field .form-control,
.shift-form-field .form-select,
.segment-field .form-control,
.segment-field .form-select {
    min-height:38px;
    color:#263750;
    background:#fff;
    border:1px solid #dce2eb;
    border-radius:7px;
    font-size:10px;
}
.shift-form-field textarea.form-control { min-height:74px;resize:vertical; }
.shift-form-field .form-control:focus,
.shift-form-field .form-select:focus,
.segment-field .form-control:focus,
.segment-field .form-select:focus {
    border-color:#77a6ef;
    box-shadow:0 0 0 3px rgba(52,120,246,.09);
}
.shift-form-field > small,
.segment-field > small { margin-top:4px;display:block;color:#8792a2;font-size:7.5px; }
.shift-form-field .errorlist,.segment-field .errorlist { margin:4px 0 0; }

.shift-rule-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.shift-effective-grid { grid-template-columns:repeat(4,minmax(0,1fr));align-items:end; }

.shift-toggle-field {
    min-height:54px;
    padding:9px 10px;
    display:flex;
    align-items:center;
    gap:9px;
    background:#f7f9fc;
    border:1px solid #e2e7ef;
    border-radius:8px;
    cursor:pointer;
}
.shift-rule-grid .shift-toggle-field { grid-column:1 / -1;max-width:270px; }
.shift-toggle-field .form-check-input { width:34px;height:19px;margin:0;flex:0 0 34px; }
.shift-toggle-field strong,.shift-toggle-field small { display:block; }
.shift-toggle-field strong { color:#2a3a52;font-size:9px; }
.shift-toggle-field small { margin-top:2px;color:#7f8a9b;font-size:7.5px; }

.shift-add-segment {
    min-height:34px;
    padding:0 11px;
    display:inline-flex;
    align-items:center;
    gap:5px;
    color:#216abb;
    background:#edf5ff;
    border:1px solid #d7e7f9;
    border-radius:7px;
    font-size:9px;
    font-weight:650;
}
.shift-add-segment:hover { color:#fff;background:#2974c7;border-color:#2974c7; }

.shift-segment-list { padding:12px;overflow-x:auto; }
.shift-segment-row {
    min-width:1060px;
    margin-bottom:9px;
    padding:10px;
    display:grid;
    grid-template-columns:32px 64px 145px 118px 118px 160px minmax(150px,1fr) 112px 32px;
    align-items:start;
    gap:8px;
    background:#fbfcfe;
    border:1px solid #e4e9f0;
    border-radius:9px;
}
.shift-segment-row:last-child { margin-bottom:0; }
.shift-segment-row[hidden] { display:none; }

.segment-order-handle {
    width:30px;
    min-height:38px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:2px;
    color:#8592a4;
    background:#f0f3f7;
    border-radius:6px;
    font-size:11px;
}
.segment-order-handle span { color:#53647a;font-size:8px;font-weight:700; }
.segment-flags { padding-top:20px;display:grid;gap:6px; }
.segment-flags label { margin:0;display:flex;align-items:center;gap:5px;color:#53637a;font-size:8px; }
.segment-flags .form-check-input { width:14px;height:14px;margin:0; }
.segment-remove {
    width:30px;
    height:30px;
    margin-top:20px;
    display:grid;
    place-items:center;
    color:#bd5559;
    background:#fff1f1;
    border:1px solid #efd1d2;
    border-radius:7px;
    font-size:13px;
}
.segment-remove:hover { color:#fff;background:#c94f55;border-color:#c94f55; }

.shift-audit-line {
    padding:10px 15px;
    display:flex;
    justify-content:space-between;
    gap:12px;
    color:#8290a2;
    background:#fafbfd;
    border-top:1px solid #edf0f4;
    font-size:7.5px;
}
.shift-audit-line strong { color:#52647a; }

.shift-preview-card { position:sticky;top:82px;overflow:hidden; }
.shift-preview-clock {
    min-height:145px;
    padding:20px 16px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    color:#d9ebfb;
    background:linear-gradient(145deg,#083b60,#0b527e);
}
.shift-preview-clock small { color:#9ec8e7;font-size:8px;font-weight:700;text-transform:uppercase;letter-spacing:.08em; }
.shift-preview-clock > strong { margin:7px 0 12px;color:#fff;font-size:17px;line-height:1.35; }
.shift-preview-clock > span {
    width:max-content;
    padding:5px 8px;
    display:inline-flex;
    align-items:center;
    gap:5px;
    color:#126e4c;
    background:#dcf6e8;
    border-radius:12px;
    font-size:8px;
    font-weight:700;
}
.shift-preview-clock > span.is-cross-midnight { color:#7d570c;background:#fff0c9; }

.shift-preview-metrics { padding:12px;display:grid;grid-template-columns:1fr 1fr;gap:8px; }
.shift-preview-metrics div { padding:10px;background:#f7f9fc;border:1px solid #e5eaf1;border-radius:8px; }
.shift-preview-metrics small,.shift-preview-metrics strong { display:block; }
.shift-preview-metrics small { color:#7f8b9c;font-size:7.5px; }
.shift-preview-metrics strong { margin-top:3px;color:#233850;font-size:13px; }

.shift-offset-guide { padding:12px 14px 15px;display:grid;grid-template-columns:1fr 1fr;gap:6px;border-top:1px solid #edf0f4; }
.shift-offset-guide > strong { grid-column:1 / -1;margin-bottom:2px;color:#354960;font-size:9px; }
.shift-offset-guide span { display:flex;align-items:center;gap:5px;color:#7a8798;font-size:7px; }
.shift-offset-guide b { min-width:27px;color:#286fbf; }

.shift-form-actions {
    position:sticky;
    bottom:0;
    z-index:15;
    margin-top:14px;
    padding:11px 13px;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:8px;
    background:rgba(255,255,255,.96);
    border:1px solid var(--hris-dashboard-line);
    border-radius:10px;
    box-shadow:0 -5px 18px rgba(22,48,78,.06);
    backdrop-filter:blur(8px);
}
.shift-form-actions > div { min-width:0;margin-right:auto; }
.shift-form-actions strong,.shift-form-actions span { display:block; }
.shift-form-actions strong { color:#283b53;font-size:10px; }
.shift-form-actions span { margin-top:2px;color:#8591a2;font-size:7.5px; }
.shift-cancel-button { min-height:42px;padding:0 15px;display:inline-flex;align-items:center;color:#5d6c80;background:#fff;border:1px solid #dce2eb;border-radius:8px;font-size:10px; }

html[data-bs-theme="dark"] .shift-form-card,
html[data-bs-theme="dark"] .shift-preview-card,
html[data-bs-theme="dark"] .shift-form-actions { background:var(--bs-body-bg); }
html[data-bs-theme="dark"] .shift-segment-row,
html[data-bs-theme="dark"] .shift-preview-metrics div,
html[data-bs-theme="dark"] .shift-toggle-field { background:var(--bs-tertiary-bg); }

@media (max-width:1250px) {
    .shift-editor-layout { grid-template-columns:1fr; }
    .shift-preview-card { position:static; }
    .shift-preview-metrics { grid-template-columns:repeat(4,1fr); }
    .shift-offset-guide { grid-template-columns:repeat(4,1fr); }
}

@media (max-width:1050px) {
    .shift-template-filter-grid { grid-template-columns:1fr 1fr; }
    .shift-form-grid,.shift-rule-grid,.shift-effective-grid { grid-template-columns:1fr 1fr; }
    .shift-field-wide { grid-column:auto; }
}

@media (max-width:650px) {
    .shift-template-filter-grid,.shift-form-grid,.shift-rule-grid,.shift-effective-grid { grid-template-columns:1fr; }
    .shift-field-full,.shift-rule-grid .shift-toggle-field { grid-column:auto; }
    .shift-preview-metrics,.shift-offset-guide { grid-template-columns:1fr 1fr; }
    .shift-form-card > header { align-items:flex-start;flex-wrap:wrap; }
    .shift-add-segment { margin-left:44px; }
    .shift-form-actions { position:static;flex-wrap:wrap; }
    .shift-form-actions > div { width:100%; }
    .shift-cancel-button,.shift-form-actions .employee-save-button { flex:1;justify-content:center; }
}

/* Scheduling patterns, groups, memberships, assignments, and constraints */
.scheduling-filter-grid {
    grid-template-columns:minmax(260px,1.4fr) minmax(210px,.9fr) minmax(155px,.65fr) auto;
}

.scheduling-record-table { min-width:1040px; }
.scheduling-record-table td > strong { display:block;color:#20324a;font-size:9px; }
.scheduling-record-table td > small { display:block;margin-top:3px;color:#7f8b9b;font-size:8px;max-width:250px; }
.scheduling-row-actions { width:88px; }
.scheduling-row-actions form { display:inline; }
.scheduling-row-actions button {
    width:30px;height:30px;margin-left:4px;display:inline-grid;place-items:center;
    color:#b36a15;background:#fff8ec;border:1px solid #f1dfbd;border-radius:7px;font-size:14px;
}
.scheduling-row-actions button:hover { color:#fff;background:#d7892d;border-color:#d7892d; }

.scheduling-editor-workspace { max-width:1500px; }
.scheduling-editor-hero .employee-hero-icon { color:#dcecff;background:rgba(255,255,255,.1); }
.scheduling-form-stack { display:grid;gap:14px; }
.scheduling-form-grid {
    padding:16px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;
}
.scheduling-field:has(textarea) { grid-column:1 / -1; }
.scheduling-field textarea { min-height:82px; }
.scheduling-toggle { align-self:end; }
.scheduling-audit { margin-top:14px;border:1px solid var(--hris-dashboard-line);border-radius:9px; }
.scheduling-form-actions { margin-top:14px; }

.pattern-editor-layout {
    display:grid;grid-template-columns:minmax(0,1fr) 310px;align-items:start;gap:14px;
}
.pattern-identity-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.pattern-identity-grid .scheduling-field:has(textarea) { grid-column:1 / -1; }
.pattern-days-card { min-width:0; }
.pattern-day-list { padding:12px;display:grid;gap:8px;overflow-x:auto; }
.pattern-day-row {
    min-width:870px;padding:10px;display:grid;
    grid-template-columns:34px 70px 130px minmax(270px,1.4fr) minmax(180px,1fr) 34px;
    align-items:start;gap:8px;background:#fbfcfe;border:1px solid #e3e9f0;border-radius:9px;
}
.pattern-day-row[hidden] { display:none; }
.pattern-day-number {
    width:32px;height:38px;display:grid;place-items:center;color:#216dbd;background:#eaf3ff;
    border-radius:7px;font-size:10px;font-weight:750;
}
.pattern-day-row .segment-remove { margin-top:20px; }
.pattern-preview-card { position:sticky;top:82px;overflow:hidden; }
.pattern-preview-summary { padding:12px;display:grid;grid-template-columns:repeat(3,1fr);gap:7px; }
.pattern-preview-summary div { padding:9px;background:#f7f9fc;border:1px solid #e5eaf1;border-radius:8px; }
.pattern-preview-summary small,.pattern-preview-summary strong { display:block; }
.pattern-preview-summary small { color:#7f8b9c;font-size:7px; }
.pattern-preview-summary strong { margin-top:3px;color:#233850;font-size:11px; }
.pattern-preview-list { max-height:540px;margin:0;padding:0 12px 12px;display:grid;gap:6px;overflow:auto;list-style:none; }
.pattern-preview-list li { padding:8px;display:flex;align-items:center;gap:8px;background:#fbfcfe;border:1px solid #e8ecf2;border-radius:7px; }
.pattern-preview-list li > span { width:23px;height:23px;display:grid;place-items:center;color:#216dbd;background:#eaf3ff;border-radius:6px;font-size:8px;font-weight:700; }
.pattern-preview-list strong,.pattern-preview-list small { display:block; }
.pattern-preview-list strong { color:#2a3d54;font-size:8px; }
.pattern-preview-list small { margin-top:2px;color:#7e8b9c;font-size:7px; }

html[data-bs-theme="dark"] .pattern-day-row,
html[data-bs-theme="dark"] .pattern-preview-summary div,
html[data-bs-theme="dark"] .pattern-preview-list li { background:var(--bs-tertiary-bg); }

@media (max-width:1100px) {
    .scheduling-form-grid,.pattern-identity-grid { grid-template-columns:1fr 1fr; }
    .pattern-editor-layout { grid-template-columns:1fr; }
    .pattern-preview-card { position:static; }
}

@media (max-width:760px) {
    .scheduling-filter-grid,.scheduling-form-grid,.pattern-identity-grid { grid-template-columns:1fr; }
    .scheduling-field:has(textarea),.pattern-identity-grid .scheduling-field:has(textarea) { grid-column:auto; }
}

/* Roster Management and Calendar Management */
.roster-management-page .content-page > .container-fluid,
.calendar-management-page .content-page > .container-fluid { max-width:1800px; }

.roster-management-workspace,
.calendar-management-workspace {
    padding-bottom:28px;
    color:#1c2940;
}

.roster-page-hero {
    min-height:76px;
    margin-bottom:14px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
}
.roster-page-hero h1 { margin:2px 0 0;color:#162238;font-size:21px;line-height:1.2;letter-spacing:-.025em; }
.roster-page-hero p { margin:5px 0 0;color:#748096;font-size:9px; }
.roster-eyebrow { color:#4d78bf;font-size:7px;font-weight:750;text-transform:uppercase;letter-spacing:.09em; }
.roster-hero-actions { display:flex;align-items:center;gap:8px; }
.roster-button {
    min-height:38px;
    padding:0 13px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    border:1px solid transparent;
    border-radius:7px;
    font-size:8px;
    font-weight:700;
    line-height:1;
    transition:transform .15s ease,box-shadow .15s ease;
}
.roster-button:hover { transform:translateY(-1px); }
.roster-button-secondary { color:#2c66bf;background:#fff;border-color:#dde5ef; }
.roster-button-secondary:hover { color:#1b56ae;border-color:#aec7ec;box-shadow:0 5px 12px rgba(35,78,134,.07); }
.roster-button-primary { color:#fff;background:linear-gradient(135deg,#377af3,#2164e8);border-color:#2d6fed;box-shadow:0 6px 14px rgba(34,101,231,.18); }
.roster-button-primary:hover { color:#fff;box-shadow:0 8px 18px rgba(34,101,231,.24); }

.roster-message-stack { position:fixed;right:20px;top:88px;z-index:1060;width:min(370px,calc(100vw - 30px));display:grid;gap:7px; }
.roster-message-stack .alert { min-height:43px;margin:0;padding:9px 10px;display:flex;align-items:center;gap:8px;color:#1d674d;background:#ebf8f2;border:1px solid #ccebdd;border-radius:8px;box-shadow:0 12px 30px rgba(28,59,89,.13);font-size:8px; }
.roster-message-stack .alert > i { font-size:16px; }.roster-message-stack .alert span { flex:1; }.roster-message-stack .alert button { width:25px;height:25px;display:grid;place-items:center;border:0;color:#678077;background:transparent;border-radius:5px; }

.roster-metric-grid { margin-bottom:12px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px; }
.roster-metric-grid article {
    min-height:84px;
    padding:13px;
    display:flex;
    align-items:center;
    gap:11px;
    background:#fff;
    border:1px solid #e2e8f0;
    border-radius:10px;
    box-shadow:0 3px 10px rgba(30,52,79,.035);
}
.roster-metric-grid article > span { width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;border-radius:8px;font-size:18px; }
.roster-metric-grid .blue { color:#2e73ed;background:#eaf2ff; }.roster-metric-grid .green { color:#16a66d;background:#e6f7ef; }.roster-metric-grid .red { color:#e65d65;background:#ffeded; }.roster-metric-grid .violet { color:#7663e4;background:#efedff; }.roster-metric-grid .orange { color:#e68724;background:#fff1df; }
.roster-metric-grid article div { min-width:0;display:flex;flex-direction:column; }
.roster-metric-grid small { color:#6f7d91;font-size:7px; }.roster-metric-grid strong { margin:2px 0;color:#1d2a40;font-size:17px;line-height:1.2; }.roster-metric-grid em { overflow:hidden;color:#8b96a6;font-size:6.5px;font-style:normal;text-overflow:ellipsis;white-space:nowrap; }

.roster-filter-strip {
    min-height:49px;
    margin-bottom:10px;
    padding:6px 8px;
    display:flex;
    align-items:center;
    gap:9px;
    background:#fff;
    border:1px solid #e1e7ef;
    border-radius:9px;
}
.roster-week-picker { min-width:206px;display:grid;grid-template-columns:28px 1fr 28px;align-items:center;gap:3px; }
.roster-week-picker > a { width:28px;height:31px;display:grid;place-items:center;color:#5d6c80;border-radius:6px;font-size:12px; }
.roster-week-picker > a:hover { color:#276bcf;background:#edf4ff; }
.roster-week-picker > span { min-width:0;display:flex;align-items:center;justify-content:center;gap:6px;color:#2b3b53;white-space:nowrap; }
.roster-week-picker span i { color:#3978df;font-size:13px; }.roster-week-picker strong { font-size:8px; }
.roster-filter-form { min-width:0;flex:1;display:grid;grid-template-columns:minmax(125px,.85fr) repeat(3,minmax(112px,.75fr)) auto;gap:7px; }
.roster-filter-form > label { position:relative;min-width:0;height:34px;margin:0;display:flex;align-items:center;color:#7c899c;border:1px solid #dce3ec;border-radius:6px;background:#fff; }
.roster-filter-form select,.roster-filter-form input { width:100%;height:100%;padding:0 28px 0 9px;color:#4e5d73;background:transparent;border:0;outline:0;font-size:7.5px;appearance:none; }
.roster-filter-form > label > i:last-child { position:absolute;right:8px;font-size:10px;pointer-events:none; }
.roster-filter-form .roster-search { padding-left:27px; }.roster-filter-form .roster-search > i { position:absolute;left:9px;font-size:12px; }.roster-filter-form .roster-search input { padding-left:0;padding-right:8px; }
.roster-more-filters { min-height:34px;padding:0 11px;display:flex;align-items:center;justify-content:center;gap:5px;color:#536278;background:#fff;border:1px solid #dce3ec;border-radius:6px;font-size:7.5px;white-space:nowrap; }
.roster-more-filters:hover { color:#286ccc;border-color:#adc6eb;background:#f7faff; }
.roster-view-toggle { padding:2px;display:flex;background:#f1f4f8;border-radius:6px; }
.roster-view-toggle button { width:28px;height:28px;display:grid;place-items:center;color:#8792a2;background:transparent;border:0;border-radius:5px;font-size:12px; }
.roster-view-toggle button.active { color:#296bd0;background:#fff;box-shadow:0 1px 4px rgba(30,55,89,.12); }

.roster-board-layout { display:grid;grid-template-columns:minmax(0,1fr) 268px;gap:10px;align-items:start; }
.roster-board-card,.roster-rail-card,.calendar-board-card,.calendar-agenda-card,.calendar-upcoming-card { background:#fff;border:1px solid #e0e7ef;border-radius:9px;box-shadow:0 3px 10px rgba(28,49,76,.03); }
.roster-board-card { min-width:0;overflow:hidden; }
.roster-table-scroll { overflow:auto; }
.roster-week-table { width:100%;min-width:940px;border-collapse:separate;border-spacing:0;table-layout:fixed; }
.roster-week-table th,.roster-week-table td { height:61px;padding:5px;border-right:1px solid #e6ebf2;border-bottom:1px solid #e6ebf2;vertical-align:middle; }
.roster-week-table th:last-child,.roster-week-table td:last-child { border-right:0; }
.roster-week-table thead th { height:49px;color:#637187;background:#fafbfd;text-align:center;font-weight:600; }
.roster-week-table thead th span,.roster-week-table thead th strong,.roster-week-table thead th small { display:block; }
.roster-week-table thead th span { color:#546278;font-size:7px;font-weight:750;text-transform:uppercase; }.roster-week-table thead th strong { margin-top:2px;color:#7e8999;font-size:6.5px; }.roster-week-table thead th small { margin-top:2px;color:#9aa4b2;font-size:5.5px; }
.roster-week-table thead th.is-today { background:#edf4ff; }.roster-week-table thead th.is-today span { color:#276bd0; }.roster-week-table thead th.is-today::after { content:"TODAY";margin:2px auto 0;width:max-content;padding:1px 4px;display:block;color:#fff;background:#3c7ce8;border-radius:5px;font-size:4.5px;letter-spacing:.06em; }
.roster-week-table .roster-employee-heading { width:176px;padding-left:12px;text-align:left; }.roster-week-table .roster-employee-heading span { color:#334158;font-size:7.5px; }
.roster-week-table tbody th { position:sticky;left:0;z-index:2;width:176px;padding:7px 9px;background:#fff;text-align:left;font-weight:400; }
.roster-week-table tbody tr:hover th,.roster-week-table tbody tr:hover td { background-color:#fbfdff; }
.roster-employee { display:flex;align-items:center;gap:8px; }
.roster-employee img,.roster-avatar { width:30px;height:30px;flex:0 0 30px;object-fit:cover;border-radius:50%; }
.roster-employee .roster-sample-photo { border:1px solid #d9e1eb;box-shadow:0 2px 6px rgba(31,53,80,.12); }
.roster-avatar { display:grid;place-items:center;color:#fff;font-size:7px;font-weight:750; }.roster-avatar.avatar-blue { background:linear-gradient(135deg,#5594e8,#285d9f); }.roster-avatar.avatar-violet { background:linear-gradient(135deg,#a286e0,#624f9c); }
.roster-employee div { min-width:0;display:flex;flex-direction:column; }.roster-employee strong { overflow:hidden;color:#26354d;font-size:7.5px;text-overflow:ellipsis;white-space:nowrap; }.roster-employee small { margin-top:1px;color:#748195;font-size:5.5px; }.roster-employee em { margin-top:1px;overflow:hidden;color:#929baa;font-size:5.5px;font-style:normal;text-overflow:ellipsis;white-space:nowrap; }
.roster-shift { width:100%;min-height:49px;padding:5px 4px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:1px solid transparent;border-radius:6px;text-align:center; }
.roster-shift strong { font-size:6.5px;font-weight:750;letter-spacing:.02em; }.roster-shift span { max-width:100%;overflow:hidden;font-size:5.3px;text-overflow:ellipsis;white-space:nowrap; }
.roster-shift-day { color:#2366c9;background:#eaf2ff;border-color:#dce9ff; }.roster-shift-night { color:#6d51c3;background:#f0ecff;border-color:#e4defb; }.roster-shift-flex { color:#16846d;background:#e8f7f1;border-color:#d9eee6; }.roster-shift-split { color:#ad6c18;background:#fff2dc;border-color:#f5e3c4; }.roster-shift-extended { color:#bd565d;background:#fff0f0;border-color:#f2dddd; }.roster-shift-off { color:#8d97a7;background:#f5f6f8;border-color:#ebedf1; }.roster-shift-unassigned { color:#a6aebb;background:#fff;border:1px dashed #d9e0e9; }
.roster-shift-unassigned:hover { color:#2e70d2;background:#f4f8ff;border-color:#8fb1e5; }
.roster-empty { min-height:250px;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#9aa5b4;text-align:center; }.roster-empty > i { font-size:28px; }.roster-empty strong { margin-top:8px;color:#526177;font-size:10px; }.roster-empty span { margin-top:3px;font-size:7px; }
.roster-table-footer { min-height:45px;padding:6px 10px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:9px;color:#7b8799;font-size:6.5px; }
.roster-table-footer form { display:flex;justify-content:center; }.roster-table-footer label { margin:0;display:flex;align-items:center;gap:5px; }.roster-table-footer select { height:25px;padding:0 20px 0 6px;color:#56657b;background:#fff;border:1px solid #dfe5ed;border-radius:5px;font-size:6.5px; }
.roster-table-footer nav { display:flex;align-items:center;justify-content:flex-end;gap:7px; }.roster-table-footer nav a { width:25px;height:25px;display:grid;place-items:center;color:#4f6380;border:1px solid #e0e5ec;border-radius:5px; }.roster-table-footer nav a:hover { color:#fff;background:#3477e5;border-color:#3477e5; }

.roster-insights { display:grid;gap:10px; }
.roster-rail-card { overflow:hidden; }
.roster-rail-card > header { min-height:42px;padding:9px 11px;display:flex;align-items:center;justify-content:space-between;gap:7px;border-bottom:1px solid #e8edf3; }
.roster-rail-card h2 { margin:0;color:#2d3b52;font-size:8px; }.roster-rail-card header > i { color:#8893a4;font-size:13px; }.roster-rail-card header a { color:#2d6cc8;font-size:6.5px;font-weight:700; }.roster-rail-card h2 span { margin-left:4px;min-width:16px;height:16px;padding:0 4px;display:inline-grid;place-items:center;color:#d9535b;background:#ffebec;border-radius:8px;font-size:6px; }
.roster-shift-summary { min-height:150px;padding:12px 10px;display:grid;grid-template-columns:88px 1fr;align-items:center;gap:9px; }
.roster-summary-donut { position:relative;width:82px;height:82px;border-radius:50%;background:conic-gradient(#4c83ed 0 43%,#8365df 43% 79%,#24ad7f 79% 92%,#e3a54d 92% 100%);display:grid;place-items:center; }
.roster-summary-donut::before { content:"";position:absolute;inset:15px;border-radius:50%;background:#fff; }.roster-summary-donut span { position:relative;z-index:1;display:flex;align-items:center;flex-direction:column; }.roster-summary-donut strong { color:#2b3a51;font-size:13px; }.roster-summary-donut small { color:#8792a2;font-size:5.5px; }
.roster-summary-legend { min-width:0;display:grid;gap:7px; }.roster-summary-legend > div { display:grid;grid-template-columns:5px 1fr auto;align-items:center;gap:5px;color:#68758a;font-size:6px; }.roster-summary-legend i { width:5px;height:5px;border-radius:50%; }.roster-summary-legend i.day { background:#4c83ed; }.roster-summary-legend i.night { background:#8365df; }.roster-summary-legend i.flex { background:#24ad7f; }.roster-summary-legend i.split { background:#e3a54d; }.roster-summary-legend i.extended { background:#df6f76; }.roster-summary-legend strong { color:#35435a;font-size:6px; }.roster-summary-legend strong small { color:#929cab;font-weight:400; }.roster-summary-legend p { margin:0;color:#8a95a5;font-size:7px; }
.roster-unassigned-list { padding:5px 11px; }.roster-unassigned-list article { min-height:57px;display:flex;align-items:center;gap:8px;border-bottom:1px solid #edf0f4; }.roster-unassigned-list article:last-child { border-bottom:0; }.roster-unassigned-list article > span { width:32px;height:36px;flex:0 0 32px;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#3c6cb6;background:#edf4ff;border-radius:6px; }.roster-unassigned-list article > span strong { font-size:10px;line-height:1; }.roster-unassigned-list article > span small { margin-top:2px;font-size:5px;text-transform:uppercase; }.roster-unassigned-list article div { min-width:0;display:flex;flex-direction:column; }.roster-unassigned-list article div strong { color:#3c495f;font-size:6.5px; }.roster-unassigned-list article div small { margin-top:2px;color:#8b95a4;font-size:5.5px; }.roster-unassigned-list article em { margin-top:3px;color:#d15860;font-size:5.5px;font-style:normal; }
.roster-all-covered { min-height:112px;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#1b9a69;text-align:center; }.roster-all-covered > i { font-size:25px; }.roster-all-covered strong { margin-top:6px;font-size:8px; }.roster-all-covered small { margin-top:3px;color:#8792a3;font-size:6px; }
.roster-quick-card > div { padding:7px 11px 10px;display:grid;gap:2px; }.roster-quick-card a,.roster-quick-card button { min-height:28px;padding:0;display:flex;align-items:center;gap:7px;color:#4e5d73;background:transparent;border:0;text-align:left;font-size:6.5px; }.roster-quick-card a:hover,.roster-quick-card button:hover { color:#286dce; }.roster-quick-card i { width:14px;color:#3171ce;font-size:12px; }

.roster-status-bar { min-height:55px;margin-top:10px;padding:8px 10px;display:flex;align-items:center;justify-content:space-between;gap:15px;background:linear-gradient(90deg,#f2f7ff,#f8fbff);border:1px solid #d9e7fb;border-radius:8px; }
.roster-status-bar > div { display:flex;align-items:center;gap:8px; }.roster-status-bar > div > span { width:29px;height:29px;display:grid;place-items:center;color:#276bd0;background:#e4efff;border-radius:50%;font-size:14px; }.roster-status-bar p { margin:0;display:flex;flex-direction:column; }.roster-status-bar p strong { color:#2b5fae;font-size:7.5px; }.roster-status-bar p small { margin-top:2px;color:#72829a;font-size:5.8px; }.roster-status-bar form button { min-height:34px;padding:0 12px;display:flex;align-items:center;gap:5px;color:#fff;background:#2d70dd;border:0;border-radius:6px;font-size:7px;font-weight:700; }.roster-status-bar form button:disabled { color:#187e59;background:#dff4e9; }.roster-status-bar.is-published { background:linear-gradient(90deg,#f0faf5,#f8fcfa);border-color:#d1eadf; }.roster-status-bar.is-published > div > span { color:#16875e;background:#dbf2e7; }.roster-status-bar.is-published p strong { color:#176f51; }

/* Calendar Management */
.calendar-metric-grid { margin-bottom:11px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:#fff;border:1px solid #e1e7ef;border-radius:9px; }
.calendar-metric-grid article { min-height:70px;padding:12px 17px;display:flex;align-items:center;gap:10px;border-right:1px solid #e4e9f0; }.calendar-metric-grid article:last-child { border-right:0; }.calendar-metric-grid article > i { width:7px;height:33px;flex:0 0 7px;border-radius:4px; }.calendar-metric-grid i.company { background:#4c82ed; }.calendar-metric-grid i.deadline { background:#e2636c; }.calendar-metric-grid i.leave { background:#936ddc; }.calendar-metric-grid i.holiday { background:#20a475; }.calendar-metric-grid div { display:flex;flex-direction:column; }.calendar-metric-grid strong { color:#27364d;font-size:16px;line-height:1.1; }.calendar-metric-grid small { margin-top:4px;color:#798597;font-size:7px; }
.calendar-board-layout { display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:10px;align-items:start; }.calendar-board-card { min-width:0;overflow:hidden; }
.calendar-toolbar { min-height:55px;padding:8px 10px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #e3e8ef; }.calendar-month-picker { display:flex;align-items:center;gap:5px; }.calendar-month-picker > a:not(.calendar-today-link) { width:28px;height:28px;display:grid;place-items:center;color:#617087;border:1px solid #e1e6ed;border-radius:6px;font-size:11px; }.calendar-month-picker h2 { min-width:110px;margin:0 3px;color:#2a3950;font-size:11px;text-align:center; }.calendar-today-link { min-height:28px;padding:0 9px;display:flex;align-items:center;color:#536379;background:#f7f9fc;border:1px solid #e1e6ed;border-radius:6px;font-size:6.5px; }
.calendar-type-filters { padding:2px;display:flex;align-items:center;gap:1px;overflow-x:auto;background:#f2f5f9;border-radius:6px; }.calendar-type-filters a { min-height:26px;padding:0 7px;display:flex;align-items:center;color:#758296;border-radius:5px;font-size:5.8px;white-space:nowrap; }.calendar-type-filters a.active { color:#2a66bf;background:#fff;box-shadow:0 1px 3px rgba(34,59,91,.11);font-weight:700; }
.calendar-weekdays,.calendar-month-grid { display:grid;grid-template-columns:repeat(7,minmax(76px,1fr)); }.calendar-weekdays span { min-width:76px;height:28px;display:grid;place-items:center;color:#758195;background:#fafbfd;border-right:1px solid #e4e9f0;border-bottom:1px solid #e4e9f0;font-size:6px;font-weight:750;text-transform:uppercase; }.calendar-weekdays span:last-child { border-right:0; }
.calendar-month-grid { overflow-x:auto; }.calendar-date-cell { min-width:76px;min-height:88px;padding:6px;display:block;color:inherit;background:#fff;border-right:1px solid #e4e9f0;border-bottom:1px solid #e4e9f0; }.calendar-date-cell:nth-child(7n) { border-right:0; }.calendar-date-cell:hover { color:inherit;background:#fafcff; }.calendar-date-cell.outside { background:#fafbfc; }.calendar-date-cell.outside > * { opacity:.38; }.calendar-date-cell.selected { position:relative;z-index:1;box-shadow:inset 0 0 0 2px #7aa3ed; }.calendar-day-number { width:20px;height:20px;display:grid;place-items:center;color:#536177;border-radius:50%;font-size:7px;font-weight:700; }.calendar-date-cell.today .calendar-day-number { color:#fff;background:#3778e7; }.calendar-date-cell > div { margin-top:2px;display:grid;gap:2px; }.calendar-event-pill { min-height:14px;padding:2px 3px;display:flex;align-items:center;gap:3px;overflow:hidden;border-radius:3px;font-size:5.2px;font-weight:650;text-overflow:ellipsis;white-space:nowrap; }.calendar-event-pill i { width:3px;height:3px;flex:0 0 3px;border-radius:50%;background:currentColor; }.calendar-event-pill.event-company { color:#2d68c7;background:#e9f1ff; }.calendar-event-pill.event-holiday { color:#197a59;background:#e7f6ef; }.calendar-event-pill.event-deadline { color:#bc5058;background:#ffedef; }.calendar-event-pill.event-training { color:#a96b1e;background:#fff1df; }.calendar-event-pill.event-leave { color:#714db6;background:#f0ebff; }.calendar-date-cell > div > small { color:#778498;font-size:5px; }
.calendar-agenda-rail { display:grid;gap:10px; }.calendar-agenda-card,.calendar-upcoming-card { overflow:hidden; }.calendar-agenda-card > header { min-height:70px;padding:11px 12px;display:flex;align-items:center;gap:10px;color:#fff;background:linear-gradient(135deg,#2e63bf,#4a82ec); }.calendar-agenda-card > header > span { width:41px;display:flex;align-items:center;flex-direction:column;border-right:1px solid rgba(255,255,255,.24); }.calendar-agenda-card header span small { color:#d8e6ff;font-size:6px;font-weight:700;text-transform:uppercase; }.calendar-agenda-card header span strong { margin-top:1px;font-size:24px;line-height:1; }.calendar-agenda-card header h2 { margin:0;font-size:9px; }.calendar-agenda-card header p { margin:4px 0 0;color:#d7e4fa;font-size:6px; }
.calendar-agenda-list { min-height:220px;padding:4px 11px; }.calendar-agenda-list article { min-height:82px;padding:11px 0;display:grid;grid-template-columns:3px 1fr;gap:9px;border-bottom:1px solid #ebeff4; }.calendar-agenda-list article:last-child { border-bottom:0; }.calendar-agenda-list article > i { width:3px;height:100%;border-radius:3px; }.calendar-agenda-list article > i.event-company { background:#4c82ed; }.calendar-agenda-list article > i.event-holiday { background:#20a475; }.calendar-agenda-list article > i.event-deadline { background:#e2636c; }.calendar-agenda-list article > i.event-training { background:#e39b3b; }.calendar-agenda-list article > i.event-leave { background:#936ddc; }.calendar-agenda-list article div > span { color:#8290a3;font-size:5.5px;font-weight:750;text-transform:uppercase;letter-spacing:.06em; }.calendar-agenda-list h3 { margin:3px 0 0;color:#2d3b52;font-size:7.5px; }.calendar-agenda-list p,.calendar-agenda-list small,.calendar-agenda-list em { display:block;color:#718095;font-size:5.8px;font-style:normal; }.calendar-agenda-list p { margin:6px 0 0; }.calendar-agenda-list small { margin-top:4px; }.calendar-agenda-list em { margin-top:4px;color:#929cab;line-height:1.4; }
.calendar-empty-agenda { min-height:210px;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#a2abba;text-align:center; }.calendar-empty-agenda > i { font-size:26px; }.calendar-empty-agenda strong { margin-top:7px;color:#647187;font-size:8px; }.calendar-empty-agenda span { margin-top:3px;font-size:6px; }
.calendar-agenda-card > button { width:calc(100% - 22px);min-height:32px;margin:0 11px 11px;display:flex;align-items:center;justify-content:center;gap:5px;color:#2d68c5;background:#f4f8ff;border:1px dashed #a9c2e9;border-radius:6px;font-size:6.5px;font-weight:700; }
.calendar-upcoming-card > header { min-height:51px;padding:9px 11px;display:flex;align-items:center;gap:8px;border-bottom:1px solid #e8edf3; }.calendar-upcoming-card header > span { width:29px;height:29px;display:grid;place-items:center;color:#7258c8;background:#f0ecff;border-radius:7px;font-size:13px; }.calendar-upcoming-card h2 { margin:0;color:#2f3d54;font-size:7.5px; }.calendar-upcoming-card header p { margin:3px 0 0;color:#8a95a5;font-size:5.5px; }.calendar-upcoming-card > div { padding:5px 11px 8px; }.calendar-upcoming-card article { min-height:49px;display:flex;align-items:center;gap:8px;border-bottom:1px solid #ecf0f4; }.calendar-upcoming-card article:last-child { border-bottom:0; }.calendar-upcoming-card article > span { width:31px;height:34px;flex:0 0 31px;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#3268bd;background:#edf3ff;border-radius:6px; }.calendar-upcoming-card article span strong { font-size:9px;line-height:1; }.calendar-upcoming-card article span small { margin-top:2px;font-size:5px;text-transform:uppercase; }.calendar-upcoming-card article div { min-width:0; }.calendar-upcoming-card article div strong { display:block;overflow:hidden;color:#35435a;font-size:6.5px;text-overflow:ellipsis;white-space:nowrap; }.calendar-upcoming-card article div small { display:block;margin-top:3px;overflow:hidden;color:#8994a5;font-size:5.5px;text-overflow:ellipsis;white-space:nowrap; }.calendar-no-upcoming { margin:12px 0;color:#8c97a6;font-size:6px;text-align:center; }

.calendar-event-modal .modal-content { border:0;border-radius:12px;box-shadow:0 28px 70px rgba(14,35,61,.25); }.calendar-event-modal .modal-header { padding:16px 18px;display:flex;align-items:flex-start;border-bottom:1px solid #e6ebf1; }.calendar-event-modal .modal-header h2 { margin:0;color:#24334a;font-size:13px; }.calendar-event-modal .modal-header p { margin:4px 0 0;color:#7f8b9c;font-size:7px; }.calendar-event-modal .modal-header button { width:29px;height:29px;display:grid;place-items:center;color:#6f7d91;background:#f2f5f8;border:0;border-radius:6px; }.calendar-event-modal .modal-body { padding:15px 18px; }.calendar-event-form { display:grid;grid-template-columns:1fr 1fr;gap:10px; }.calendar-event-form label { margin:0;display:block;color:#536278;font-size:6.5px;font-weight:700; }.calendar-event-form label > span { margin-bottom:4px;display:block; }.calendar-event-form .full { grid-column:1 / -1; }.calendar-event-form .form-control,.calendar-event-form .form-select { min-height:35px;color:#334158;border:1px solid #dce3eb;border-radius:6px;font-size:7.5px; }.calendar-event-form textarea.form-control { min-height:66px;resize:vertical; }.calendar-event-form .calendar-all-day { min-height:35px;padding:0 9px;display:flex;align-items:center;gap:7px;background:#f7f9fc;border:1px solid #e1e6ed;border-radius:6px; }.calendar-event-form .calendar-all-day input { margin:0; }.calendar-event-form .calendar-all-day span { margin:0; }.calendar-event-modal .modal-footer { padding:11px 18px;border-top:1px solid #e6ebf1; }

html[data-bs-theme="dark"] .roster-metric-grid article,
html[data-bs-theme="dark"] .roster-filter-strip,
html[data-bs-theme="dark"] .roster-board-card,
html[data-bs-theme="dark"] .roster-rail-card,
html[data-bs-theme="dark"] .calendar-metric-grid,
html[data-bs-theme="dark"] .calendar-board-card,
html[data-bs-theme="dark"] .calendar-agenda-card,
html[data-bs-theme="dark"] .calendar-upcoming-card { background:var(--bs-body-bg); }
html[data-bs-theme="dark"] .roster-week-table thead th,
html[data-bs-theme="dark"] .roster-week-table tbody th,
html[data-bs-theme="dark"] .calendar-weekdays span,
html[data-bs-theme="dark"] .calendar-date-cell { background:var(--bs-body-bg); }
html[data-bs-theme="dark"] .roster-summary-donut::before { background:var(--bs-body-bg); }

@media (max-width:1320px) {
    .roster-metric-grid { grid-template-columns:repeat(3,1fr); }
    .roster-filter-strip { align-items:flex-start;flex-wrap:wrap; }
    .roster-filter-form { order:3;width:100%;flex-basis:100%; }
}
@media (max-width:1080px) {
    .roster-board-layout,.calendar-board-layout { grid-template-columns:1fr; }
    .roster-insights { grid-template-columns:repeat(3,1fr); }
    .calendar-agenda-rail { grid-template-columns:1fr 1fr; }
}
@media (max-width:760px) {
    .roster-page-hero { align-items:flex-start;flex-direction:column; }.roster-hero-actions { width:100%;flex-wrap:wrap; }.roster-hero-actions .roster-button { flex:1; }
    .roster-metric-grid { grid-template-columns:1fr 1fr; }.roster-metric-grid article:last-child { grid-column:1 / -1; }
    .roster-filter-form { grid-template-columns:1fr 1fr; }.roster-filter-form .roster-search { grid-column:1 / -1; }.roster-more-filters { grid-column:1 / -1; }
    .roster-insights,.calendar-agenda-rail { grid-template-columns:1fr; }
    .roster-table-footer { grid-template-columns:1fr;justify-items:center; }.roster-table-footer nav { justify-content:center; }
    .calendar-metric-grid { grid-template-columns:1fr 1fr; }.calendar-metric-grid article:nth-child(2) { border-right:0; }.calendar-metric-grid article:nth-child(-n+2) { border-bottom:1px solid #e4e9f0; }
    .calendar-toolbar { align-items:flex-start;flex-direction:column; }.calendar-type-filters { width:100%; }
}
@media (max-width:480px) {
    .roster-metric-grid { grid-template-columns:1fr; }.roster-metric-grid article:last-child { grid-column:auto; }
    .roster-filter-form { grid-template-columns:1fr; }.roster-filter-form .roster-search,.roster-more-filters { grid-column:auto; }
    .roster-status-bar { align-items:flex-start;flex-direction:column; }.roster-status-bar form,.roster-status-bar form button { width:100%;justify-content:center; }
    .calendar-event-form { grid-template-columns:1fr; }.calendar-event-form .full { grid-column:auto; }
}

@media print {
    .sidenav-menu,.app-topbar,.page-title-head,.roster-hero-actions,.roster-filter-strip,.roster-insights,.roster-status-bar,.footer { display:none !important; }
    .content-page { margin:0 !important;padding:0 !important; }.roster-board-layout { display:block; }.roster-board-card { border:0;box-shadow:none; }.roster-week-table { min-width:0; }
}

/* Roster readability pass: larger portraits and accessible working type sizes */
.roster-management-workspace { font-size:12px; }
.roster-page-hero { min-height:90px;margin-bottom:16px; }
.roster-page-hero h1 { font-size:26px; }
.roster-page-hero p { margin-top:7px;font-size:11px; }
.roster-eyebrow { font-size:8.5px; }
.roster-button { min-height:42px;padding:0 16px;gap:8px;font-size:10px; }
.roster-button i { font-size:13px; }

.roster-metric-grid { margin-bottom:14px;gap:12px; }
.roster-metric-grid article { min-height:98px;padding:16px;gap:14px; }
.roster-metric-grid article > span { width:46px;height:46px;flex-basis:46px;border-radius:10px;font-size:22px; }
.roster-metric-grid small { font-size:9.5px; }
.roster-metric-grid strong { margin:4px 0 3px;font-size:22px; }
.roster-metric-grid em { font-size:8.5px; }

.roster-filter-strip { min-height:58px;margin-bottom:12px;padding:8px 10px;gap:11px; }
.roster-week-picker { min-width:235px;grid-template-columns:34px 1fr 34px; }
.roster-week-picker > a { width:34px;height:38px;font-size:15px; }
.roster-week-picker span i { font-size:16px; }
.roster-week-picker strong { font-size:10px; }
.roster-filter-form { grid-template-columns:minmax(155px,.9fr) repeat(3,minmax(140px,.78fr)) auto;gap:9px; }
.roster-filter-form > label { height:40px;border-radius:7px; }
.roster-filter-form select,.roster-filter-form input { padding-left:11px;font-size:9.5px; }
.roster-filter-form .roster-search { padding-left:31px; }
.roster-filter-form .roster-search > i { left:11px;font-size:14px; }
.roster-filter-form > label > i:last-child { right:9px;font-size:12px; }
.roster-more-filters { min-height:40px;padding:0 14px;gap:7px;font-size:9.5px; }
.roster-view-toggle { padding:3px; }
.roster-view-toggle button { width:34px;height:34px;font-size:14px; }

.roster-board-layout { grid-template-columns:minmax(0,1fr) 300px;gap:12px; }
.roster-week-table { min-width:1120px; }
.roster-week-table th,.roster-week-table td { height:88px;padding:7px; }
.roster-week-table thead th { height:62px; }
.roster-week-table .roster-employee-heading,
.roster-week-table tbody th { width:215px; }
.roster-week-table .roster-employee-heading { padding-left:15px; }
.roster-week-table .roster-employee-heading span { font-size:10px; }
.roster-week-table thead th span { font-size:9px; }
.roster-week-table thead th strong { margin-top:3px;font-size:8px; }
.roster-week-table thead th small { margin-top:3px;font-size:7px; }
.roster-week-table thead th.is-today::after { margin-top:3px;padding:2px 6px;font-size:6px; }
.roster-week-table tbody th { padding:9px 12px; }
.roster-employee { gap:11px; }
.roster-employee img,.roster-avatar { width:58px;height:58px;flex-basis:58px; }
.roster-avatar { font-size:12px; }
.roster-employee strong { font-size:11px;line-height:1.2; }
.roster-employee small { margin-top:3px;font-size:8px; }
.roster-employee em { margin-top:2px;font-size:8px; }
.roster-shift { min-height:61px;padding:7px 6px;gap:5px;border-radius:8px; }
.roster-shift strong { font-size:9.5px;letter-spacing:.015em; }
.roster-shift span { font-size:7.5px;line-height:1.35; }
.roster-table-footer { min-height:52px;padding:8px 13px;gap:11px;font-size:8.5px; }
.roster-table-footer select { height:30px;padding-left:8px;font-size:8.5px; }
.roster-table-footer nav a { width:30px;height:30px; }

.roster-insights { gap:12px; }
.roster-rail-card > header { min-height:50px;padding:11px 14px; }
.roster-rail-card h2 { font-size:10.5px; }
.roster-rail-card header > i { font-size:16px; }
.roster-rail-card header a { font-size:8.5px; }
.roster-rail-card h2 span { min-width:20px;height:20px;font-size:8px; }
.roster-shift-summary { min-height:182px;padding:15px 13px;grid-template-columns:104px 1fr;gap:12px; }
.roster-summary-donut { width:98px;height:98px; }
.roster-summary-donut::before { inset:18px; }
.roster-summary-donut strong { font-size:17px; }
.roster-summary-donut small { font-size:7.5px; }
.roster-summary-legend { gap:9px; }
.roster-summary-legend > div { grid-template-columns:7px 1fr auto;gap:7px;font-size:8px; }
.roster-summary-legend i { width:7px;height:7px; }
.roster-summary-legend strong { font-size:8px; }
.roster-summary-legend p { font-size:9px; }
.roster-unassigned-list { padding:7px 14px; }
.roster-unassigned-list article { min-height:70px;gap:11px; }
.roster-unassigned-list article > span { width:40px;height:44px;flex-basis:40px; }
.roster-unassigned-list article > span strong { font-size:13px; }
.roster-unassigned-list article > span small { font-size:7px; }
.roster-unassigned-list article div strong { font-size:9px; }
.roster-unassigned-list article div small { margin-top:3px;font-size:7.5px; }
.roster-unassigned-list article em { margin-top:4px;font-size:7.5px; }
.roster-all-covered { min-height:130px; }
.roster-all-covered strong { font-size:10px; }
.roster-all-covered small { font-size:8px; }
.roster-quick-card > div { padding:9px 14px 13px;gap:3px; }
.roster-quick-card a,.roster-quick-card button { min-height:35px;gap:9px;font-size:9px; }
.roster-quick-card i { width:17px;font-size:15px; }

.roster-status-bar { min-height:66px;margin-top:12px;padding:10px 13px; }
.roster-status-bar > div { gap:11px; }
.roster-status-bar > div > span { width:36px;height:36px;font-size:18px; }
.roster-status-bar p strong { font-size:10px; }
.roster-status-bar p small { margin-top:3px;font-size:8px; }
.roster-status-bar form button { min-height:40px;padding:0 15px;gap:7px;font-size:9px; }

@media (max-width:1320px) {
    .roster-board-layout { grid-template-columns:minmax(0,1fr) 280px; }
    .roster-metric-grid article { min-height:92px; }
}

@media (max-width:760px) {
    .roster-page-hero h1 { font-size:23px; }
    .roster-metric-grid article { min-height:92px; }
    .roster-employee img,.roster-avatar { width:52px;height:52px;flex-basis:52px; }
}
