:root {
    --hrm-primary: #114fa0;
    --hrm-primary-dark: #0b3770;
    --hrm-primary-soft: #eaf2ff;
    --hrm-bg: #f4f7fb;
    --hrm-surface: #ffffff;
    --hrm-border: #dfe7f1;
    --hrm-text: #1f2937;
    --hrm-muted: #6b7280;
    --hrm-danger: #dc3545;
    --hrm-success: #2c9e46;
    --hrm-warning: #f0ad4e;
    --hrm-radius: 8px;
}

html,
body {
    min-height: 100%;
    background: var(--hrm-bg);
    color: var(--hrm-text);
    font-size: 14px;
    line-height: 1.45;
}

body {
    overflow-x: hidden;
}

a,
a:hover,
a:focus {
    color: var(--hrm-primary);
}

.header,
.header.dark-bg {
    min-height: 60px;
    background: var(--hrm-primary);
    border-bottom: 0;
    box-shadow: 0 8px 24px rgba(17, 79, 160, 0.20);
}

.header .logo {
    height: 60px;
    line-height: 60px;
    padding-left: 18px;
    font-size: 19px;
    letter-spacing: 0;
}

.toggle-nav {
    padding-top: 18px;
}

.toggle-nav .icon-reorder {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.top-nav,
.notification-row {
    margin-top: 12px;
}

.top-nav .username {
    color: #ffffff;
    font-weight: 600;
}

.top-nav .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.top-nav .dropdown-toggle:hover,
.top-nav .dropdown-toggle:focus {
    background: rgba(255, 255, 255, 0.20);
}

.profile-ava img {
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.75);
    object-fit: cover;
}

#sidebar {
    background: #ffffff;
    box-shadow: 8px 0 24px rgba(15, 23, 42, 0.08);
    border-right: 1px solid var(--hrm-border);
}

ul.sidebar-menu {
    margin-top: 76px;
    padding: 0 10px 24px;
}

ul.sidebar-menu li {
    margin: 4px 0;
}

ul.sidebar-menu li a {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 7px;
    color: #334155;
    font-weight: 600;
    line-height: 1.2;
    border-left: 0;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

ul.sidebar-menu li a i {
    width: 18px;
    min-width: 18px;
    text-align: center;
    color: #64748b;
}

ul.sidebar-menu li a:hover,
ul.sidebar-menu li.active_li a,
ul.sidebar-menu li.active a {
    background: var(--hrm-primary-soft);
    color: var(--hrm-primary);
    border-left: 0;
}

ul.sidebar-menu li a:hover i,
ul.sidebar-menu li.active_li a i,
ul.sidebar-menu li.active a i {
    color: var(--hrm-primary);
}

#main-content {
    background: var(--hrm-bg);
}

.wrapper {
    padding: 86px 22px 28px;
}

.panel {
    border: 1px solid var(--hrm-border);
    border-radius: var(--hrm-radius);
    background: var(--hrm-surface);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.panel-heading {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: #ffffff !important;
    color: var(--hrm-text) !important;
    border-bottom: 1px solid var(--hrm-border);
    font-size: 16px;
    font-weight: 700;
}

.panel-heading i {
    color: var(--hrm-primary);
    margin-right: 6px;
}

.panel-body {
    padding: 18px;
}

.panel-body.no-padding {
    padding: 0;
}

.alert {
    border-radius: 7px;
    border-width: 1px;
    padding: 12px 14px;
}

.form-group {
    margin-bottom: 16px;
}

.label-setting,
label {
    margin-bottom: 6px;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
}

.form-control,
select.form-control,
textarea.form-control,
.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple {
    min-height: 38px;
    border: 1px solid #cfd8e3;
    border-radius: 7px;
    background: #ffffff;
    color: var(--hrm-text);
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea.form-control {
    min-height: 96px;
}

.form-control:focus,
select.form-control:focus,
textarea.form-control:focus,
.select2-container--focus .select2-selection,
.select2-container--open .select2-selection {
    border-color: var(--hrm-primary);
    box-shadow: 0 0 0 3px rgba(17, 79, 160, 0.14);
    outline: 0;
}

.help-block,
.text-muted,
small {
    color: var(--hrm-muted);
}

.btn {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 7px;
    font-weight: 700;
    letter-spacing: 0;
    box-shadow: none;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.btn:hover,
.btn:focus {
    transform: translateY(-1px);
}

.btn-primary,
.btn-theme1 {
    background: var(--hrm-primary) !important;
    border-color: var(--hrm-primary) !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-theme1:hover,
.btn-theme1:focus {
    background: var(--hrm-primary-dark) !important;
    border-color: var(--hrm-primary-dark) !important;
}

.btn-success {
    background: var(--hrm-success) !important;
    border-color: var(--hrm-success) !important;
}

.btn-danger {
    background: var(--hrm-danger) !important;
    border-color: var(--hrm-danger) !important;
}

.btn-default {
    background: #ffffff;
    border-color: #cfd8e3;
    color: #374151;
}

.btn-link {
    min-height: 0;
    border-radius: 4px;
    box-shadow: none;
}

.table-responsive {
    border: 1px solid var(--hrm-border);
    border-radius: var(--hrm-radius);
    background: #ffffff;
    overflow-x: auto;
}

table.table,
table.display,
.table {
    width: 100% !important;
    margin-bottom: 0;
    background: #ffffff;
    border-collapse: separate;
    border-spacing: 0;
}

thead,
.table thead,
table.dataTable thead {
    background: var(--hrm-primary) !important;
    color: #ffffff !important;
}

th,
.table > thead > tr > th,
table.dataTable thead th {
    padding: 12px 10px !important;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
    text-align: left;
    white-space: nowrap;
    border: 0 !important;
}

td,
.table > tbody > tr > td,
.table > tfoot > tr > td,
.table > thead > tr > td,
table.dataTable tbody td {
    padding: 10px !important;
    color: #111827 !important;
    font-size: 13px;
    text-align: left;
    vertical-align: middle !important;
    border-top: 1px solid #edf2f7 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
}

.table tbody tr:nth-child(even),
table.dataTable tbody tr:nth-child(even) {
    background: #f8fbff;
}

.table tbody tr:hover,
table.dataTable tbody tr:hover {
    background: #eef5ff;
}

.text-right,
.table .text-right,
th.text-right,
td.text-right {
    text-align: right !important;
}

.text-center,
.table .text-center,
th.text-center,
td.text-center {
    text-align: center !important;
}

.dataTables_wrapper {
    padding: 0;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    padding: 12px 14px;
    color: var(--hrm-muted);
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    min-height: 34px;
    border: 1px solid #cfd8e3;
    border-radius: 7px;
    padding: 5px 8px;
    margin-left: 6px;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    padding: 12px 14px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 6px !important;
    border: 1px solid var(--hrm-border) !important;
    background: #ffffff !important;
    color: var(--hrm-text) !important;
    margin-left: 4px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--hrm-primary) !important;
    border-color: var(--hrm-primary) !important;
    color: #ffffff !important;
}

.pagination > li > a,
.pagination > li > span {
    color: var(--hrm-primary);
    border-color: var(--hrm-border);
}

.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover {
    background: var(--hrm-primary);
    border-color: var(--hrm-primary);
}

.modal-content {
    border: 0;
    border-radius: var(--hrm-radius);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.20);
}

.modal-header {
    border-bottom: 1px solid var(--hrm-border);
}

.modal-footer {
    border-top: 1px solid var(--hrm-border);
}

.dropdown-menu {
    border: 1px solid var(--hrm-border);
    border-radius: var(--hrm-radius);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
}

.dropdown-menu > li > a,
.dropdown-menu.extended li a {
    padding: 10px 14px;
    color: #374151;
}

.dropdown-menu > li > a:hover,
.dropdown-menu.extended li a:hover {
    background: var(--hrm-primary-soft);
    color: var(--hrm-primary);
}

.loader {
    border-top-color: var(--hrm-primary) !important;
}

.dashboard-card,
.state-overview .symbol,
.state-overview .value,
.info-box {
    border-radius: var(--hrm-radius);
}

@media (max-width: 991px) {
    .wrapper {
        padding: 76px 14px 22px;
    }

    .panel-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .panel-heading .pull-right {
        float: none !important;
        align-self: stretch;
        width: 100%;
        margin-top: 8px;
    }

    .panel-body {
        padding: 14px;
    }
}

@media (max-width: 767px) {
    .header .logo {
        width: auto;
        max-width: 180px;
        padding-left: 10px;
        font-size: 16px;
    }

    .top-nav .username,
    .top-nav .caret {
        display: none;
    }

    .top-nav .dropdown-toggle {
        padding: 5px;
    }

    ul.sidebar-menu {
        margin-top: 64px;
    }

    .table-responsive {
        border-radius: 7px;
    }

    th,
    td,
    .table > tbody > tr > td,
    .table > thead > tr > th {
        white-space: nowrap;
    }

    .btn {
        white-space: nowrap;
    }
}

.dashboard-page {
    max-width: 1240px;
    margin: 0 auto;
}

.dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: 18px 20px;
    border: 1px solid var(--hrm-border);
    border-radius: var(--hrm-radius);
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.dashboard-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--hrm-primary);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.dashboard-hero h1 {
    margin: 0 0 4px;
    color: var(--hrm-text);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0;
}

.dashboard-hero p {
    margin: 0;
    color: var(--hrm-muted);
    font-size: 14px;
}

.dashboard-date {
    min-width: 138px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 7px;
    background: var(--hrm-primary-soft);
    color: var(--hrm-primary);
    font-weight: 800;
    white-space: nowrap;
}

.dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.dashboard-stat-card {
    min-height: 118px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border-radius: var(--hrm-radius);
    background: var(--hrm-primary);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(17, 79, 160, 0.20);
    overflow: hidden;
    position: relative;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.dashboard-stat-card:before {
    content: "";
    position: absolute;
    inset: auto -30px -42px auto;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
}

.dashboard-stat-card:hover,
.dashboard-stat-card:focus {
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    background: var(--hrm-primary-dark);
    box-shadow: 0 14px 30px rgba(17, 79, 160, 0.28);
}

.dashboard-stat-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.86);
    font-size: 25px;
}

.dashboard-stat-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.dashboard-stat-content strong {
    color: #ffffff;
    font-size: 29px;
    line-height: 1;
    font-weight: 800;
}

.dashboard-stat-content span {
    margin-top: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.dashboard-stat-content small {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
}

.dashboard-chart-panel {
    margin-bottom: 0;
}

.dashboard-chart-panel .panel-heading small {
    color: var(--hrm-muted);
    font-size: 12px;
    font-weight: 700;
}

.dashboard-chart-wrap {
    height: 300px;
    min-height: 300px;
}

.info-box.dark-bg {
    min-height: 118px;
    padding: 18px;
    border-radius: var(--hrm-radius);
    background: var(--hrm-primary) !important;
    box-shadow: 0 10px 24px rgba(17, 79, 160, 0.20);
}

.info-box.dark-bg i {
    color: rgba(255, 255, 255, 0.78);
}

.info-box.dark-bg .count,
.info-box.dark-bg .title {
    color: #ffffff;
}

@media (max-width: 1199px) {
    .dashboard-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px;
    }

    .dashboard-hero h1 {
        font-size: 21px;
    }

    .dashboard-date {
        justify-content: flex-start;
        width: 100%;
    }

    .dashboard-stat-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .dashboard-stat-card {
        min-height: 104px;
        padding: 15px;
    }

    .dashboard-stat-content strong {
        font-size: 25px;
    }

    .dashboard-chart-wrap {
        height: 240px;
        min-height: 240px;
    }
}

/* Dashboard refinement pass */
.wrapper {
    padding-top: 24px;
}

.dashboard-hero {
    margin-bottom: 16px;
    padding: 16px 20px;
}

.dashboard-hero h1 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 22px;
    line-height: 1.2;
}

.dashboard-hero p {
    font-size: 13px;
}

.dashboard-date {
    min-height: 38px;
    padding: 8px 12px;
}

.dashboard-stat-grid {
    gap: 14px;
    margin-bottom: 16px;
}

.dashboard-stat-card {
    min-height: 104px;
    padding: 16px 18px;
}

.dashboard-stat-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    font-size: 22px;
}

.dashboard-stat-content strong {
    font-size: 28px;
}

.dashboard-stat-content span {
    margin-top: 6px;
    font-size: 13px;
}

.dashboard-stat-content small {
    font-size: 11px;
}

.dashboard-chart-panel .panel-heading {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 14px;
}

.dashboard-chart-panel .panel-heading span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dashboard-chart-panel .panel-heading i {
    margin-right: 0;
}

.dashboard-chart-panel .panel-body {
    padding: 14px 16px 10px;
}

.dashboard-chart-wrap {
    height: 270px;
    min-height: 270px;
}

@media (max-width: 991px) {
    .wrapper {
        padding-top: 18px;
    }
}

@media (max-width: 767px) {
    .wrapper {
        padding-top: 14px;
    }

    .dashboard-hero h1 {
        font-size: 20px;
    }

    .dashboard-chart-wrap {
        height: 230px;
        min-height: 230px;
    }
}

/* Admin list/table refinement */
.admin-list-panel .panel-heading.admin-list-heading {
    align-items: center;
}

.admin-list-heading h2 {
    margin: 2px 0 0;
    color: var(--hrm-text);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

.admin-list-heading h2 i {
    color: var(--hrm-primary);
    margin-right: 8px;
}

.admin-list-eyebrow {
    color: var(--hrm-primary);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.admin-list-toolbar {
    padding: 12px 14px;
    border-bottom: 1px solid var(--hrm-border);
    background: #f8fbff;
}

.admin-filter-grid {
    display: grid;
    grid-template-columns: 130px 135px 1fr 1fr minmax(210px, 1.1fr) auto;
    gap: 8px;
    align-items: end;
}

.admin-filter-field label {
    display: block;
    margin: 0 0 4px;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.admin-filter-field .form-control {
    width: 100%;
    min-height: 36px;
    font-size: 13px;
}

.admin-filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.admin-filter-actions .btn {
    min-height: 36px;
    padding-left: 12px;
    padding-right: 12px;
}

.admin-table-wrap {
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 0;
}

.admin-table th {
    height: 42px;
    vertical-align: middle !important;
}

.admin-table td {
    height: 44px;
}

.admin-primary-cell strong {
    color: #0f172a;
    font-weight: 800;
}

.admin-actions-cell {
    min-width: 132px;
    white-space: nowrap;
}

.admin-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    white-space: nowrap;
}

.action-btn {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #eef5ff;
    color: var(--hrm-primary);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.action-btn:hover,
.action-btn:focus {
    text-decoration: none;
    transform: translateY(-1px);
}

.action-primary {
    background: #eef5ff;
    color: #1976ff;
}

.action-success {
    background: #ecfdf3;
    color: #22c55e;
}

.action-danger {
    background: #fff1f2;
    color: #f0054f;
}

.action-warning {
    background: #fff7ed;
    color: #ff0a63;
}

.action-info {
    background: #eef5ff;
    color: var(--hrm-primary);
}

.action-primary:hover,
.action-info:hover {
    background: var(--hrm-primary);
    color: #ffffff;
}

.action-success:hover {
    background: #22c55e;
    color: #ffffff;
}

.action-danger:hover,
.action-warning:hover {
    background: #f0054f;
    color: #ffffff;
}

.admin-pagination {
    padding: 12px 14px;
    border-top: 1px solid var(--hrm-border);
    background: #ffffff;
}

@media (max-width: 1199px) {
    .admin-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-filter-search,
    .admin-filter-actions {
        grid-column: span 3;
    }

    .admin-filter-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .admin-list-heading {
        gap: 10px;
    }

    .admin-list-heading .btn {
        width: 100%;
    }

    .admin-filter-grid {
        grid-template-columns: 1fr;
    }

    .admin-filter-search,
    .admin-filter-actions {
        grid-column: auto;
    }

    .admin-filter-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-filter-actions .btn {
        width: 100%;
    }
}

/* Users/list table final polish */
.admin-list-heading {
    min-height: 42px;
}

.admin-list-heading > div {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.admin-list-heading h2 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}

.admin-list-heading h2 i {
    margin-right: 0;
}

.admin-list-eyebrow {
    white-space: nowrap;
}

.admin-table.dataTable thead .sorting,
.admin-table.dataTable thead .sorting_asc,
.admin-table.dataTable thead .sorting_desc,
.admin-table.dataTable thead .sorting_asc_disabled,
.admin-table.dataTable thead .sorting_desc_disabled,
table.admin-table.dataTable thead th {
    background-image: none !important;
}

.admin-table th {
    padding-right: 12px !important;
}

.admin-table th.text-right,
.admin-table td.text-right {
    padding-right: 14px !important;
}

.admin-table th:last-child,
.admin-table td:last-child {
    width: 142px;
    min-width: 142px;
}

.admin-actions-cell {
    width: 142px;
    min-width: 142px;
}

.admin-row-actions {
    width: 100%;
    justify-content: flex-end;
    padding-right: 2px;
}

.action-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
}

.admin-filter-grid {
    grid-template-columns: 130px 135px 1fr 1fr minmax(230px, 1.2fr) auto;
}

@media (max-width: 1199px) {
    .admin-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-filter-search,
    .admin-filter-actions {
        grid-column: span 2;
    }
}

/* Users page workspace */
.users-page .users-panel {
    overflow: hidden;
}

.users-page-heading {
    min-height: 78px;
    padding: 16px 18px !important;
    background: #ffffff !important;
    border-bottom: 1px solid var(--hrm-border) !important;
}

.users-title-block {
    min-width: 0;
}

.users-title-block h2 {
    margin: 4px 0 3px;
    color: #0f172a;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}

.users-title-block p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.users-heading-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.users-filter-count {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid #dbe7fb;
    border-radius: 6px;
    background: #f4f8ff;
    color: var(--hrm-primary);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.users-filter-shell {
    padding: 14px 16px !important;
    background: #f8fbff;
    border-bottom: 1px solid var(--hrm-border);
}

.users-filter-grid {
    display: grid;
    grid-template-columns: 130px 140px 1fr 1fr minmax(250px, 1.2fr) auto;
    gap: 10px;
    align-items: end;
}

.users-search-box {
    position: relative;
}

.users-search-box i {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 13px;
    z-index: 1;
}

.users-search-box .form-control {
    padding-left: 34px;
}

.users-filter-actions {
    align-self: end;
}

.users-table-panel {
    background: #ffffff;
}

.users-table-wrap {
    border: 0;
}

.users-table {
    margin-bottom: 0 !important;
}

.users-table thead th {
    height: 46px;
    border-bottom: 0 !important;
    background: var(--hrm-primary) !important;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.users-table tbody td {
    height: 66px;
    vertical-align: middle !important;
    border-top: 1px solid #e7edf5 !important;
    color: #0f172a;
}

.users-table tbody tr:nth-child(odd) td {
    background: #ffffff;
}

.users-table tbody tr:nth-child(even) td {
    background: #f8fbff;
}

.users-table tbody tr:hover td {
    background: #eef5ff;
}

.users-employee-cell {
    min-width: 260px;
}

.users-employee {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.users-avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #dbeafe;
    color: var(--hrm-primary);
    font-size: 13px;
    font-weight: 900;
}

.users-identity {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.users-identity strong {
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
}

.users-identity small {
    display: block;
    max-width: 250px;
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.users-chip {
    display: inline-flex;
    align-items: center;
    max-width: 180px;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 6px;
    background: #eef5ff;
    color: #1e3a8a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.users-chip-muted {
    background: #f1f5f9;
    color: #334155;
}

.users-chip-soft {
    background: #ecfdf3;
    color: #166534;
}

.users-work-time {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 92px;
}

.users-work-time strong {
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
}

.users-work-time small {
    color: #64748b;
    font-size: 12px;
}

.users-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.users-status.is-active {
    background: #ecfdf3;
    color: #16a34a;
}

.users-status.is-inactive {
    background: #fff1f2;
    color: #e11d48;
}

.users-actions-cell {
    width: 150px !important;
    min-width: 150px !important;
}

.users-row-actions {
    gap: 7px;
}

.users-row-actions .action-btn {
    border: 1px solid rgba(30, 64, 175, 0.06);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.users-empty-state {
    padding: 46px 20px !important;
    text-align: center;
}

.users-empty-state i,
.users-empty-state strong,
.users-empty-state span {
    display: block;
}

.users-empty-state i {
    margin-bottom: 10px;
    color: #94a3b8;
    font-size: 28px;
}

.users-empty-state strong {
    color: #0f172a;
    font-size: 16px;
}

.users-empty-state span {
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
}

.users-pagination {
    background: #f8fbff;
}

@media (max-width: 1199px) {
    .users-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .users-search-field,
    .users-filter-actions {
        grid-column: span 2;
    }

    .users-filter-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .users-page-heading {
        align-items: stretch;
    }

    .users-heading-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .users-filter-count,
    .users-heading-actions .btn {
        justify-content: center;
        width: 100%;
    }

    .users-filter-grid {
        grid-template-columns: 1fr;
    }

    .users-search-field,
    .users-filter-actions {
        grid-column: auto;
    }

    .users-filter-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .users-filter-actions .btn {
        width: 100%;
    }

    .users-title-block h2 {
        font-size: 20px;
    }
}

/* Compact admin typography normalization */
body,
#container,
#main-content,
.wrapper,
.panel,
.panel-body,
.form-control,
.btn,
.dropdown-menu,
ul.sidebar-menu li a,
.top-nav .username,
.admin-table,
.users-table {
    font-size: 12px;
}

.header .logo {
    font-size: 17px;
}

.panel-heading,
.admin-list-heading h2,
.users-title-block h2,
.dashboard-chart-panel .panel-heading,
.admin-stat-label,
.admin-list-eyebrow,
.admin-filter-field label {
    font-size: 12px;
}

.users-title-block h2 {
    margin: 2px 0 2px;
    line-height: 1.25;
}

.users-title-block p,
.admin-filter-field .form-control,
.users-filter-count,
.users-search-box i,
.users-table thead th,
.users-table tbody td,
.users-avatar,
.users-identity strong,
.users-identity small,
.users-chip,
.users-work-time strong,
.users-work-time small,
.users-status,
.users-empty-state strong,
.users-empty-state span,
.admin-primary-cell strong,
.admin-table th,
.admin-table td {
    font-size: 12px !important;
}

.users-page-heading {
    min-height: 66px;
    padding: 12px 16px !important;
}

.users-filter-shell {
    padding: 12px 14px !important;
}

.users-table thead th {
    height: 40px;
}

.users-table tbody td {
    height: 58px;
}

.users-avatar {
    width: 34px;
    height: 34px;
    min-width: 34px;
}

.users-chip,
.users-status {
    min-height: 24px;
    padding: 4px 8px;
}

.action-btn {
    width: 26px;
    height: 26px;
    min-width: 26px;
}

@media (max-width: 767px) {
    .users-title-block h2 {
        font-size: 12px !important;
    }
}

/* Attendance page compact alignment */
.attendance-page,
.attendance-page .panel,
.attendance-page .panel-body,
.attendance-page .form-control,
.attendance-page .btn,
.attendance-page table,
.attendance-page th,
.attendance-page td,
.attendance-page label,
.attendance-page a,
.attendance-page span {
    font-size: 12px !important;
}

.attendance-panel {
    overflow: hidden;
}

.attendance-filter-heading {
    padding: 10px 12px !important;
    background: #ffffff !important;
    border-bottom: 1px solid var(--hrm-border) !important;
}

.attendance-filter-form {
    margin: 0;
}

.attendance-filter-row {
    display: grid;
    grid-template-columns: 105px 155px 1fr 1fr minmax(170px, 1fr) 64px;
    gap: 6px;
    align-items: center;
}

.attendance-filter-row .form-control,
.attendance-filter-row .select2-container .select2-choice {
    min-height: 34px;
    height: 34px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px !important;
}

.attendance-filter-row .btn {
    min-height: 34px;
    height: 34px;
    width: 64px;
    padding: 6px 10px;
}

.attendance-summary-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    border-bottom: 1px solid var(--hrm-border);
    background: #ffffff;
}

.attendance-summary-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 28px;
    padding: 4px 8px;
    border-right: 1px solid #dbe4ef;
    color: #0f172a;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.attendance-summary-card:last-child {
    border-right: 0;
}

.attendance-summary-card label {
    margin: 0;
    color: inherit;
    font-weight: 800;
}

.attendance-summary-card.summary-muted {
    background: #f8fafc;
}

.attendance-summary-card.summary-info {
    background: #e0f2fe;
}

.attendance-summary-card.summary-warning {
    background: #fef9c3;
}

.attendance-summary-card.summary-success {
    background: #dcfce7;
}

.attendance-summary-card.summary-danger {
    background: #fee2e2;
}

.attendance-table thead th {
    height: 40px;
    background: var(--hrm-primary) !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 800;
    text-transform: uppercase;
}

.attendance-table tbody td {
    height: 46px;
    padding: 8px 10px !important;
    border-top: 1px solid #e7edf5 !important;
    color: #0f172a;
    font-size: 12px !important;
    font-weight: 500;
    vertical-align: middle !important;
}

.attendance-table tbody tr:nth-child(odd) td {
    background: #ffffff;
}

.attendance-table tbody tr:nth-child(even) td {
    background: #f8fbff;
}

.attendance-name-cell,
.attendance-date-cell {
    font-weight: 700 !important;
}

.attendance-table .status-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 12px !important;
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
}

.attendance-actions-cell {
    width: 110px !important;
    min-width: 110px !important;
}

.attendance-row-actions {
    justify-content: flex-end;
    gap: 6px;
}

.attendance-pagination {
    background: #f8fbff;
}

@media (max-width: 1199px) {
    .attendance-filter-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .attendance-summary-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .attendance-filter-row,
    .attendance-summary-strip {
        grid-template-columns: 1fr;
    }

    .attendance-filter-row .btn {
        width: 100%;
    }

    .attendance-summary-card {
        justify-content: flex-start;
        border-right: 0;
        border-bottom: 1px solid #dbe4ef;
    }
}

/* Leave history compact alignment */
.leave-history-page,
.leave-history-page .panel,
.leave-history-page .panel-body,
.leave-history-page .form-control,
.leave-history-page .btn,
.leave-history-page table,
.leave-history-page th,
.leave-history-page td,
.leave-history-page span,
.leave-history-page a {
    font-size: 12px !important;
}

.leave-history-panel {
    overflow: hidden;
}

.leave-history-heading {
    display: grid;
    grid-template-columns: minmax(160px, 220px) 1fr;
    gap: 12px;
    align-items: center;
    min-height: 54px;
    padding: 10px 12px !important;
    background: #ffffff !important;
    border-bottom: 1px solid var(--hrm-border) !important;
}

.leave-history-title h2 {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 2px 0 0;
    color: #0f172a;
    font-size: 12px !important;
    font-weight: 800;
    line-height: 1.25;
}

.leave-history-filter-form {
    display: grid;
    grid-template-columns: 105px minmax(150px, 1fr) minmax(210px, 1.4fr) 64px;
    gap: 6px;
    align-items: center;
    margin: 0;
}

.leave-history-filter-form .form-control,
.leave-history-filter-form .select2-container .select2-choice {
    min-height: 34px;
    height: 34px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px !important;
}

.leave-history-filter-form .btn {
    min-height: 34px;
    height: 34px;
    width: 64px;
    padding: 6px 10px;
}

.leave-history-table-panel {
    background: #ffffff;
}

.leave-history-table-wrap {
    border: 0;
}

.leave-history-table {
    margin-bottom: 0 !important;
}

.leave-history-table thead th {
    height: 40px;
    padding: 8px 10px !important;
    background: var(--hrm-primary) !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
    vertical-align: middle !important;
}

.leave-history-table tbody td {
    height: 46px;
    padding: 8px 10px !important;
    border-top: 1px solid #e7edf5 !important;
    color: #0f172a;
    font-size: 12px !important;
    font-weight: 500;
    vertical-align: middle !important;
}

.leave-history-table tbody tr:nth-child(odd) td {
    background: #ffffff;
}

.leave-history-table tbody tr:nth-child(even) td {
    background: #f8fbff;
}

.leave-history-id,
.leave-history-name {
    font-weight: 700 !important;
}

.leave-history-name {
    min-width: 160px;
}

.leave-history-chip,
.leave-history-remaining {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px !important;
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
}

.leave-history-chip {
    background: #f1f5f9;
    color: #334155;
}

.leave-history-remaining {
    min-width: 34px;
    background: #eef5ff;
    color: var(--hrm-primary);
}

@media (max-width: 1199px) {
    .leave-history-heading {
        grid-template-columns: 1fr;
    }

    .leave-history-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .leave-history-filter-form .btn {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .leave-history-filter-form {
        grid-template-columns: 1fr;
    }
}

/* Global compact admin surface for legacy pages */
#main-content,
#main-content .wrapper,
#main-content .panel,
#main-content .panel-body,
#main-content .panel-heading,
#main-content .form-control,
#main-content .btn,
#main-content .dropdown-menu,
#main-content .modal,
#main-content .modal-body,
#main-content .modal-title,
#main-content .select2-container,
#main-content .select2-choice,
#main-content table,
#main-content th,
#main-content td,
#main-content label,
#main-content p,
#main-content span,
#main-content a,
#main-content input,
#main-content select,
#main-content textarea,
#main-content .pagination,
#main-content .dataTables_wrapper {
    font-size: 12px !important;
    letter-spacing: 0 !important;
}

#main-content .panel {
    border: 1px solid var(--hrm-border);
    border-radius: 6px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

#main-content .panel-heading {
    min-height: 44px;
    padding: 10px 12px !important;
    background: #ffffff !important;
    border-bottom: 1px solid var(--hrm-border) !important;
    color: #0f172a !important;
    font-weight: 800;
    line-height: 1.25;
}

#main-content .panel-heading h1,
#main-content .panel-heading h2,
#main-content .panel-heading h3,
#main-content .panel-heading h4,
#main-content .panel-heading h5,
#main-content .panel-heading h6 {
    margin: 0;
    color: #0f172a;
    font-size: 12px !important;
    font-weight: 800;
    line-height: 1.25;
}

#main-content .form-inline {
    margin: 0 !important;
}

#main-content .form-inline .form-control,
#main-content .form-inline .btn,
#main-content .panel-heading .form-control,
#main-content .panel-heading .btn,
#main-content .select2-container .select2-choice,
#main-content .select2-container .select2-selection--single {
    min-height: 34px !important;
    height: 34px !important;
    padding: 6px 10px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
}

#main-content .btn {
    border-radius: 6px;
    font-weight: 700;
}

#main-content .panel-body.no-padding,
#main-content .panel-body.no-padding .table-responsive {
    background: #ffffff;
}

#main-content table.display,
#main-content table.table,
#main-content table.dataTable {
    width: 100% !important;
    margin: 0 !important;
    border-collapse: collapse !important;
    color: #0f172a;
}

#main-content table.display thead th,
#main-content table.table thead th,
#main-content table.dataTable thead th {
    height: 40px;
    padding: 8px 10px !important;
    border: 0 !important;
    border-bottom: 1px solid #1f4f99 !important;
    background: var(--hrm-primary) !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-transform: uppercase;
    vertical-align: middle !important;
    white-space: nowrap;
}

#main-content table.display tbody td,
#main-content table.table tbody td,
#main-content table.dataTable tbody td {
    height: 44px;
    padding: 8px 10px !important;
    border-top: 1px solid #e7edf5 !important;
    color: #0f172a !important;
    font-size: 12px !important;
    font-weight: 500;
    line-height: 1.25 !important;
    vertical-align: middle !important;
}

#main-content table.display tbody tr:nth-child(odd) td,
#main-content table.table tbody tr:nth-child(odd) td,
#main-content table.dataTable tbody tr:nth-child(odd) td {
    background: #ffffff !important;
}

#main-content table.display tbody tr:nth-child(even) td,
#main-content table.table tbody tr:nth-child(even) td,
#main-content table.dataTable tbody tr:nth-child(even) td {
    background: #f8fbff !important;
}

#main-content table.display tbody tr:hover td,
#main-content table.table tbody tr:hover td,
#main-content table.dataTable tbody tr:hover td {
    background: #eef5ff !important;
}

#main-content table.dataTable thead .sorting,
#main-content table.dataTable thead .sorting_asc,
#main-content table.dataTable thead .sorting_desc,
#main-content table.dataTable thead .sorting_asc_disabled,
#main-content table.dataTable thead .sorting_desc_disabled {
    background-image: none !important;
}

#main-content table b,
#main-content table strong {
    font-size: 12px !important;
    font-weight: 700 !important;
}

#main-content .status-box,
#main-content .badge,
#main-content .label,
#main-content [class*="status"],
#main-content [class*="badge"] {
    font-size: 12px !important;
}

#main-content .status-box,
#main-content .badge,
#main-content .label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
}

#main-content .pagination {
    margin: 0;
    padding: 10px 12px;
    background: #f8fbff;
    border-top: 1px solid var(--hrm-border);
}

#main-content .pagination > li > a,
#main-content .pagination > li > span {
    min-width: 30px;
    min-height: 30px;
    padding: 6px 9px;
    font-size: 12px !important;
}

#main-content .modal-header,
#main-content .modal-footer {
    padding: 10px 12px;
}

#main-content .modal-body {
    padding: 12px;
}

@media (max-width: 767px) {
    #main-content .panel-heading .form-inline .form-control,
    #main-content .panel-heading .form-inline .btn {
        width: 100% !important;
        margin-bottom: 6px;
    }
}

/* Public holidays compact polish */
.public-holiday-page,
.public-holiday-page .panel,
.public-holiday-page .panel-body,
.public-holiday-page .form-control,
.public-holiday-page .btn,
.public-holiday-page table,
.public-holiday-page th,
.public-holiday-page td,
.public-holiday-page span,
.public-holiday-page a,
.public-holiday-page label {
    font-size: 12px !important;
}

.public-holiday-panel {
    overflow: hidden;
}

.public-holiday-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    padding: 10px 12px !important;
    background: #ffffff !important;
    border-bottom: 1px solid var(--hrm-border) !important;
}

.public-holiday-title h2 {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 2px 0 0;
    color: #0f172a;
    font-size: 12px !important;
    font-weight: 800;
    line-height: 1.25;
}

.public-holiday-filter-shell {
    padding: 12px 14px !important;
    background: #f8fbff;
    border-bottom: 1px solid var(--hrm-border);
}

.public-holiday-filter-form {
    display: grid;
    grid-template-columns: 140px minmax(170px, 1fr) minmax(190px, 1fr) minmax(200px, 1fr) 64px;
    gap: 10px;
    align-items: end;
    margin: 0;
}

.public-holiday-filter-form .form-control {
    min-height: 34px;
    height: 34px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px !important;
}

.public-holiday-filter-actions .btn {
    min-height: 34px;
    height: 34px;
    width: 64px;
    padding: 6px 10px;
}

.public-holiday-table-panel,
.public-holiday-table-wrap {
    background: #ffffff;
}

.public-holiday-table {
    margin-bottom: 0 !important;
}

.public-holiday-table thead th {
    height: 40px;
    padding: 8px 10px !important;
    background: var(--hrm-primary) !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 800;
    text-transform: uppercase;
    vertical-align: middle !important;
}

.public-holiday-table tbody td {
    height: 44px;
    padding: 8px 10px !important;
    border-top: 1px solid #e7edf5 !important;
    color: #0f172a;
    font-size: 12px !important;
    line-height: 1.25 !important;
    vertical-align: middle !important;
}

.public-holiday-name {
    min-width: 110px;
    font-weight: 700 !important;
}

.public-holiday-days,
.public-holiday-text-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px !important;
    font-weight: 800;
    line-height: 1.15;
}

.public-holiday-days {
    justify-content: center;
    min-width: 30px;
    background: #eef5ff;
    color: var(--hrm-primary);
}

.public-holiday-text-chip {
    max-width: 280px;
    overflow: hidden;
    background: #f1f5f9;
    color: #334155;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-holiday-actions-cell {
    width: 88px !important;
    min-width: 88px !important;
}

.public-holiday-row-actions {
    justify-content: flex-end;
    gap: 7px;
}

.public-holiday-row-actions form {
    display: inline-flex;
    margin: 0;
}

.public-holiday-row-actions button.action-btn {
    border: 0;
    cursor: pointer;
}

.public-holiday-empty {
    padding: 28px 12px !important;
    color: #64748b !important;
}

.public-holiday-pagination {
    background: #f8fbff;
}

@media (max-width: 1199px) {
    .public-holiday-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-holiday-filter-actions .btn {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .public-holiday-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .public-holiday-heading .btn {
        width: 100%;
    }

    .public-holiday-filter-form {
        grid-template-columns: 1fr;
    }
}

/* Leave settings compact polish */
.leave-settings-page,
.leave-settings-page .panel,
.leave-settings-page .panel-body,
.leave-settings-page table,
.leave-settings-page th,
.leave-settings-page td,
.leave-settings-page span,
.leave-settings-page a {
    font-size: 12px !important;
}

.leave-settings-panel {
    overflow: hidden;
}

.leave-settings-heading {
    min-height: 54px;
    padding: 10px 12px !important;
    background: #ffffff !important;
    border-bottom: 1px solid var(--hrm-border) !important;
}

.leave-settings-title h2 {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 2px 0 0;
    color: #0f172a;
    font-size: 12px !important;
    font-weight: 800;
    line-height: 1.25;
}

.leave-settings-table-panel,
.leave-settings-table-wrap {
    background: #ffffff;
}

.leave-settings-table {
    margin-bottom: 0 !important;
}

.leave-settings-table thead th {
    height: 40px;
    padding: 8px 10px !important;
    background: var(--hrm-primary) !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 800;
    text-transform: uppercase;
    vertical-align: middle !important;
}

.leave-settings-table tbody td {
    height: 46px;
    padding: 8px 10px !important;
    border-top: 1px solid #e7edf5 !important;
    color: #0f172a;
    font-size: 12px !important;
    vertical-align: middle !important;
}

.leave-settings-date {
    font-weight: 700 !important;
}

.leave-settings-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 6px;
    background: #eef5ff;
    color: var(--hrm-primary);
    font-size: 12px !important;
    font-weight: 800;
    line-height: 1.15;
}

.leave-settings-actions-cell {
    width: 88px !important;
    min-width: 88px !important;
}

.leave-settings-row-actions {
    justify-content: flex-end;
}

/* User add/edit compact form polish */
.user-form-page,
.user-form-page .panel,
.user-form-page .panel-body,
.user-form-page .form-control,
.user-form-page .btn,
.user-form-page label,
.user-form-page input,
.user-form-page select,
.user-form-page textarea,
.user-form-page span,
.user-form-page a {
    font-size: 12px !important;
}

.user-form-panel {
    overflow: hidden;
}

.user-form-heading {
    min-height: 54px;
    padding: 10px 12px !important;
    background: #ffffff !important;
    border-bottom: 1px solid var(--hrm-border) !important;
}

.user-form-title h2 {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 2px 0 0;
    color: #0f172a;
    font-size: 12px !important;
    font-weight: 800;
    line-height: 1.25;
}

.user-form-body {
    padding: 14px 18px !important;
    background: #ffffff;
}

.user-compact-form .row {
    margin-left: -8px;
    margin-right: -8px;
}

.user-compact-form [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
}

.user-compact-form .form-group {
    margin-bottom: 10px;
}

.user-compact-form .label-setting,
.user-compact-form label {
    display: block;
    margin: 0 0 5px;
    color: #334155;
    font-size: 12px !important;
    font-weight: 800;
    line-height: 1.2;
}

.user-compact-form .form-control,
.user-compact-form select.form-control,
.user-compact-form input.form-control {
    min-height: 34px !important;
    height: 34px !important;
    padding: 6px 10px !important;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #0f172a;
    font-size: 12px !important;
    line-height: 1.25 !important;
    box-shadow: none;
}

.user-compact-form textarea.form-control {
    min-height: 66px !important;
    height: 66px !important;
    resize: vertical;
}

.user-compact-form .form-control:focus {
    border-color: var(--hrm-primary);
    box-shadow: 0 0 0 2px rgba(37, 91, 166, 0.12);
}

.user-compact-form .radio,
.user-compact-form .checkbox {
    min-height: 34px;
    margin: 0;
    padding-top: 6px;
}

.user-compact-form .radio label,
.user-compact-form .checkbox label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-right: 12px;
    font-weight: 600;
}

.user-compact-form input[type="radio"],
.user-compact-form input[type="checkbox"] {
    width: 13px;
    height: 13px;
    margin: 0;
}

.user-compact-form .col-md-1 .form-group {
    min-height: 48px;
}

.user-compact-form .cu-btn-category {
    margin-top: 4px;
    margin-bottom: 0;
    text-align: right;
}

.user-compact-form .cu-btn-category .btn {
    min-height: 34px;
    padding: 6px 16px;
}

@media (max-width: 767px) {
    .user-form-body {
        padding: 12px !important;
    }

    .user-compact-form .cu-btn-category .btn {
        width: 100%;
    }
}

/* Final admin UI polish layer */
:root {
    --hrm-surface: #ffffff;
    --hrm-page: #f4f7fb;
    --hrm-muted: #64748b;
    --hrm-heading: #0f172a;
    --hrm-soft-blue: #eef5ff;
}

#main-content {
    background: var(--hrm-page);
}

.wrapper {
    padding-top: 20px;
    padding-left: 24px;
    padding-right: 22px;
}

#main-content .panel,
.admin-list-panel,
.user-form-panel,
.public-holiday-panel,
.leave-settings-panel,
.attendance-panel,
.leave-history-panel {
    border-color: #d8e1ed !important;
    border-radius: 7px !important;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07) !important;
}

#main-content .panel-heading,
.admin-list-heading,
.user-form-heading,
.public-holiday-heading,
.leave-settings-heading,
.attendance-filter-heading,
.leave-history-heading {
    min-height: 50px !important;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
}

#main-content .panel-heading i,
.admin-list-heading i,
.user-form-heading i,
.public-holiday-heading i,
.leave-settings-heading i {
    color: var(--hrm-primary);
}

.admin-list-eyebrow {
    color: var(--hrm-primary) !important;
    font-weight: 900 !important;
    text-transform: uppercase;
}

#main-content .form-control,
#main-content .select2-container .select2-choice,
#main-content .select2-container .select2-selection--single {
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
    background-color: #ffffff !important;
    box-shadow: none !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

#main-content .form-control:focus,
#main-content .select2-container-active .select2-choice,
#main-content .select2-container--focus .select2-selection--single {
    border-color: var(--hrm-primary) !important;
    box-shadow: 0 0 0 2px rgba(37, 91, 166, 0.12) !important;
}

#main-content .form-control[readonly],
#main-content .form-control[disabled] {
    background: #eef3fb !important;
    color: #475569 !important;
}

#main-content .btn-theme1,
#main-content .btn-primary {
    border-color: var(--hrm-primary) !important;
    background: var(--hrm-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 5px 12px rgba(37, 91, 166, 0.18);
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

#main-content .btn-theme1:hover,
#main-content .btn-primary:hover,
#main-content .btn-theme1:focus,
#main-content .btn-primary:focus {
    background: #1f4f99 !important;
    box-shadow: 0 7px 16px rgba(37, 91, 166, 0.24);
    transform: translateY(-1px);
}

#main-content .btn-default {
    border-color: #cbd5e1 !important;
    color: #334155 !important;
    background: #ffffff !important;
}

#main-content table.display thead th,
#main-content table.table thead th,
#main-content table.dataTable thead th {
    border-right: 1px solid rgba(255, 255, 255, 0.16) !important;
}

#main-content table.display thead th:last-child,
#main-content table.table thead th:last-child,
#main-content table.dataTable thead th:last-child {
    border-right: 0 !important;
}

#main-content table.display tbody td,
#main-content table.table tbody td,
#main-content table.dataTable tbody td {
    transition: background 0.12s ease;
}

.action-btn {
    border: 1px solid rgba(37, 91, 166, 0.08);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.action-btn:hover,
.action-btn:focus {
    box-shadow: 0 5px 10px rgba(15, 23, 42, 0.12);
}

.user-form-body {
    padding: 14px 16px 16px !important;
}

.user-compact-form > .row {
    padding-bottom: 2px;
}

.user-compact-form .row + .row {
    margin-top: 2px;
}

.user-compact-form .form-group:hover .label-setting,
.user-compact-form .form-group:hover label {
    color: var(--hrm-primary);
}

.user-compact-form textarea.form-control {
    line-height: 1.35 !important;
}

.user-compact-form .col-md-1 {
    width: auto;
    min-width: 84px;
}

.user-compact-form .col-md-1 .form-group {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 44px;
}

.user-compact-form .col-md-1 input[type="checkbox"] {
    margin-top: 2px;
}

.users-table tbody td,
.attendance-table tbody td,
.leave-history-table tbody td,
.public-holiday-table tbody td,
.leave-settings-table tbody td {
    height: 42px !important;
}

.users-avatar {
    background: linear-gradient(180deg, #e8f1ff 0%, #dbeafe 100%);
}

.users-chip,
.leave-history-chip,
.public-holiday-text-chip {
    border: 1px solid #e2e8f0;
}

.admin-pagination,
.users-pagination,
.attendance-pagination,
.public-holiday-pagination {
    min-height: 42px;
}

@media (max-width: 991px) {
    .wrapper {
        padding-left: 14px;
        padding-right: 14px;
    }

    #main-content .panel-heading,
    .admin-list-heading,
    .user-form-heading,
    .public-holiday-heading,
    .leave-settings-heading,
    .attendance-filter-heading,
    .leave-history-heading {
        min-height: 46px !important;
    }
}

/* Alternate admin shell: blue navigation + light workspace */
:root {
    --hrm-alt-sidebar: #0f4f9f;
    --hrm-alt-sidebar-dark: #0a3c79;
    --hrm-alt-sidebar-soft: rgba(255, 255, 255, 0.12);
    --hrm-alt-page: #eef3f8;
    --hrm-alt-card: #ffffff;
    --hrm-alt-line: #d6e0ec;
}

body,
#container {
    background: var(--hrm-alt-page) !important;
}

.header,
.header.dark-bg {
    min-height: 56px !important;
    background: #ffffff !important;
    border-bottom: 1px solid #dbe4ef !important;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08) !important;
}

.header .logo {
    height: 56px !important;
    line-height: 56px !important;
    padding-left: 16px !important;
}

.header .logo b {
    color: var(--hrm-primary) !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    text-transform: uppercase;
}

.toggle-nav {
    padding-top: 12px !important;
}

.toggle-nav .icon-reorder {
    background: var(--hrm-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 5px 12px rgba(37, 91, 166, 0.22);
}

.top-nav,
.notification-row {
    margin-top: 10px !important;
}

.top-nav .dropdown-toggle {
    background: #f2f6fb !important;
    border: 1px solid #dbe4ef;
    color: #0f172a !important;
}

.top-nav .dropdown-toggle:hover,
.top-nav .dropdown-toggle:focus {
    background: #eaf2ff !important;
}

.top-nav .username,
.top-nav .caret {
    color: #0f172a !important;
}

.profile-ava img {
    border-color: #dbeafe !important;
}

#sidebar {
    background: linear-gradient(180deg, var(--hrm-alt-sidebar) 0%, var(--hrm-alt-sidebar-dark) 100%) !important;
    border-right: 0 !important;
    box-shadow: 10px 0 26px rgba(15, 23, 42, 0.16) !important;
}

ul.sidebar-menu {
    margin-top: 72px !important;
    padding: 0 12px 24px !important;
}

ul.sidebar-menu li {
    margin: 5px 0 !important;
}

ul.sidebar-menu li a {
    min-height: 40px !important;
    border-radius: 8px !important;
    color: rgba(255, 255, 255, 0.84) !important;
    font-weight: 700 !important;
    border: 1px solid transparent !important;
    background: transparent !important;
}

ul.sidebar-menu li a i {
    color: rgba(255, 255, 255, 0.72) !important;
}

ul.sidebar-menu li a:hover,
ul.sidebar-menu li.active_li a,
ul.sidebar-menu li.active a {
    background: rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    transform: translateX(2px);
}

ul.sidebar-menu li a:hover i,
ul.sidebar-menu li.active_li a i,
ul.sidebar-menu li.active a i {
    color: #ffffff !important;
}

#main-content {
    background: var(--hrm-alt-page) !important;
}

.wrapper {
    padding-top: 78px !important;
    padding-left: 26px !important;
    padding-right: 26px !important;
}

#main-content .panel,
.admin-list-panel,
.user-form-panel,
.public-holiday-panel,
.leave-settings-panel,
.attendance-panel,
.leave-history-panel {
    border: 1px solid var(--hrm-alt-line) !important;
    border-radius: 10px !important;
    background: var(--hrm-alt-card) !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08) !important;
}

#main-content .panel-heading,
.admin-list-heading,
.user-form-heading,
.public-holiday-heading,
.leave-settings-heading,
.attendance-filter-heading,
.leave-history-heading {
    min-height: 52px !important;
    background: #ffffff !important;
    border-bottom: 1px solid var(--hrm-alt-line) !important;
}

#main-content .panel-heading:before,
.admin-list-heading:before,
.user-form-heading:before,
.public-holiday-heading:before,
.leave-settings-heading:before,
.leave-history-heading:before {
    content: "";
    width: 4px;
    align-self: stretch;
    margin: -10px 2px -10px -12px;
    border-radius: 999px;
    background: var(--hrm-primary);
}

#main-content .panel-body,
.user-form-body,
.public-holiday-filter-shell,
.users-filter-shell,
.attendance-filter-heading,
.leave-history-table-panel,
.public-holiday-table-panel,
.leave-settings-table-panel {
    background: #ffffff !important;
}

#main-content .form-control,
#main-content .select2-container .select2-choice,
#main-content .select2-container .select2-selection--single {
    border-color: #c7d4e3 !important;
    background: #fbfdff !important;
}

#main-content table.display thead th,
#main-content table.table thead th,
#main-content table.dataTable thead th {
    background: #174f97 !important;
}

#main-content table.display tbody tr:nth-child(even) td,
#main-content table.table tbody tr:nth-child(even) td,
#main-content table.dataTable tbody tr:nth-child(even) td {
    background: #f6f9fd !important;
}

#main-content table.display tbody tr:hover td,
#main-content table.table tbody tr:hover td,
#main-content table.dataTable tbody tr:hover td {
    background: #eaf2ff !important;
}

.dashboard-hero,
.dashboard-stat-card,
.dashboard-chart-panel {
    border-radius: 10px !important;
}

@media (max-width: 991px) {
    .wrapper {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
}

/* Branded header background for alternate shell */
.header,
.header.dark-bg {
    background: linear-gradient(90deg, #0f4f9f 0%, #174f97 55%, #0a3c79 100%) !important;
    border-bottom: 0 !important;
    box-shadow: 0 8px 22px rgba(15, 79, 159, 0.24) !important;
}

.header .logo b,
.top-nav .username,
.top-nav .caret {
    color: #ffffff !important;
}

.top-nav .dropdown-toggle {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
}

.top-nav .dropdown-toggle:hover,
.top-nav .dropdown-toggle:focus {
    background: rgba(255, 255, 255, 0.22) !important;
}

.toggle-nav .icon-reorder {
    background: rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.profile-ava img {
    border-color: rgba(255, 255, 255, 0.75) !important;
}

/* Header/content spacing and Users panel alignment fix */
.wrapper {
    padding-top: 68px !important;
}

.users-page {
    margin-top: 0 !important;
}

.users-page-heading {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    min-height: 56px !important;
    padding: 10px 14px !important;
}

.users-page-heading:before {
    content: "";
    width: 4px;
    align-self: stretch;
    margin: -10px 0 -10px -14px;
    border-radius: 999px;
    background: var(--hrm-primary);
    flex: 0 0 4px;
}

.users-title-block {
    display: grid !important;
    grid-template-columns: auto auto;
    grid-template-areas:
        "eyebrow title"
        "count count";
    column-gap: 10px;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
}

.users-title-block .admin-list-eyebrow {
    grid-area: eyebrow;
    margin: 0 !important;
    white-space: nowrap;
}

.users-title-block h2 {
    grid-area: title;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px;
    margin: 0 !important;
    color: #0f172a !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    white-space: nowrap;
}

.users-title-block p {
    grid-area: count;
    margin: 1px 0 0 !important;
    color: #64748b !important;
    font-size: 12px !important;
    line-height: 1.2;
}

.users-heading-actions {
    flex: 0 0 auto;
    margin-left: auto;
}

.users-heading-actions .btn {
    min-width: 118px;
}

@media (max-width: 767px) {
    .wrapper {
        padding-top: 64px !important;
    }

    .users-page-heading {
        align-items: stretch !important;
        flex-direction: column;
    }

    .users-title-block {
        grid-template-columns: 1fr;
        grid-template-areas:
            "eyebrow"
            "title"
            "count";
    }
}

/* Remove top workspace gap and separate navbar colors */
.wrapper {
    padding-top: 12px !important;
}

.header,
.header.dark-bg {
    background: linear-gradient(90deg, #082f63 0%, #0b3f82 58%, #082a58 100%) !important;
    box-shadow: 0 7px 18px rgba(8, 47, 99, 0.28) !important;
}

#sidebar {
    background: linear-gradient(180deg, #155aa8 0%, #104b91 52%, #0d3f7a 100%) !important;
    box-shadow: 8px 0 22px rgba(13, 63, 122, 0.18) !important;
}

ul.sidebar-menu li a:hover,
ul.sidebar-menu li.active_li a,
ul.sidebar-menu li.active a {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.24) !important;
}

@media (max-width: 767px) {
    .wrapper {
        padding-top: 10px !important;
    }
}

/* Account dropdown polish */
.top-nav .dropdown {
    position: relative;
}

.top-nav .dropdown-menu.account-menu,
.top-nav .dropdown-menu.extended.logout {
    width: 210px !important;
    min-width: 210px !important;
    margin-top: 10px !important;
    padding: 8px !important;
    border: 1px solid #d6e0ec !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18) !important;
    overflow: hidden;
}

.top-nav .dropdown-menu.account-menu:before,
.top-nav .dropdown-menu.extended.logout:before {
    content: "";
    position: absolute;
    top: -6px;
    right: 26px;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-left: 1px solid #d6e0ec;
    border-top: 1px solid #d6e0ec;
    transform: rotate(45deg);
}

.top-nav .dropdown-menu.account-menu .log-arrow-up,
.top-nav .dropdown-menu.extended.logout .log-arrow-up {
    display: none !important;
}

.top-nav .dropdown-menu.account-menu li,
.top-nav .dropdown-menu.extended.logout li {
    margin: 0 !important;
    border: 0 !important;
}

.top-nav .dropdown-menu.account-menu li + li,
.top-nav .dropdown-menu.extended.logout li + li {
    margin-top: 4px !important;
}

.top-nav .dropdown-menu.account-menu li a,
.top-nav .dropdown-menu.extended.logout li a {
    min-height: 36px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 8px 10px !important;
    border-radius: 7px !important;
    background: transparent !important;
    color: #334155 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    line-height: 1.2 !important;
}

.top-nav .dropdown-menu.account-menu li a i,
.top-nav .dropdown-menu.extended.logout li a i {
    width: 16px !important;
    min-width: 16px !important;
    margin: 0 !important;
    color: var(--hrm-primary) !important;
    text-align: center;
}

.top-nav .dropdown-menu.account-menu li a:hover,
.top-nav .dropdown-menu.account-menu li a:focus,
.top-nav .dropdown-menu.extended.logout li a:hover,
.top-nav .dropdown-menu.extended.logout li a:focus {
    background: #eef5ff !important;
    color: var(--hrm-primary) !important;
    text-decoration: none !important;
}

.top-nav .dropdown-menu.account-menu li a.account-menu-logout,
.top-nav .dropdown-menu.account-menu li button.account-menu-logout,
.top-nav .dropdown-menu.extended.logout li a.account-menu-logout {
    color: #dc2626 !important;
}

.top-nav .dropdown-menu.account-menu li a.account-menu-logout i,
.top-nav .dropdown-menu.extended.logout li a.account-menu-logout i {
    color: #dc2626 !important;
}

.top-nav .dropdown-menu.account-menu li a.account-menu-logout:hover,
.top-nav .dropdown-menu.account-menu li button.account-menu-logout:hover,
.top-nav .dropdown-menu.account-menu li a.account-menu-logout:focus,
.top-nav .dropdown-menu.account-menu li button.account-menu-logout:focus,
.top-nav .dropdown-menu.extended.logout li a.account-menu-logout:hover,
.top-nav .dropdown-menu.extended.logout li a.account-menu-logout:focus,
.top-nav .dropdown-menu.extended.logout li button.account-menu-logout:focus {
    background: #fef2f2 !important;
    color: #b91c1c !important;
}

/* Enterprise HRM navigation and dashboard phase */
.sidebar-section-label {
    margin: 14px 0 5px !important;
    padding: 0 12px !important;
    pointer-events: none;
}

.sidebar-section-label span {
    display: block;
    color: rgba(255, 255, 255, 0.52) !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    line-height: 1.1;
    text-transform: uppercase;
}

.enterprise-sidebar-menu li:first-child + .sidebar-section-label {
    margin-top: 18px !important;
}

.enterprise-dashboard .dashboard-command-hero {
    min-height: 104px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding: 18px 20px;
    border: 1px solid #d6e0ec;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f6f9fd 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.enterprise-dashboard .dashboard-command-hero h1 {
    margin: 3px 0 5px;
    color: #0f172a;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.15;
}

.enterprise-dashboard .dashboard-command-hero p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
}

.enterprise-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 16px;
}

.enterprise-stat-card {
    min-height: 96px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 11px;
    box-shadow: 0 10px 22px rgba(15, 79, 159, 0.16);
}

.dashboard-workspace-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 16px;
    align-items: start;
}

.enterprise-chart-panel {
    margin: 0;
}

.dashboard-side-panel {
    display: grid;
    gap: 16px;
}

.dashboard-insight-panel,
.dashboard-quick-actions {
    overflow: hidden;
    border: 1px solid #d6e0ec;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.dashboard-insight-panel > header,
.dashboard-quick-actions > header {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid #d6e0ec;
    color: #0f172a;
    font-size: 12px;
    font-weight: 900;
}

.dashboard-insight-panel > header small {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.dashboard-insight-list {
    display: grid;
    gap: 8px;
    padding: 10px;
}

.dashboard-insight-item {
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fbff;
}

.dashboard-insight-item strong {
    display: block;
    margin-bottom: 3px;
    color: #0f172a;
    font-size: 12px;
    font-weight: 900;
}

.dashboard-insight-item p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}

.dashboard-insight-item.is-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.dashboard-insight-item.is-warning {
    border-color: #fde68a;
    background: #fffbeb;
}

.dashboard-insight-item.is-danger {
    border-color: #fecdd3;
    background: #fff1f2;
}

.dashboard-insight-item.is-info {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.dashboard-quick-actions {
    padding-bottom: 8px;
}

.dashboard-quick-actions a {
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 8px 10px 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: #eef5ff;
    color: var(--hrm-primary);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.dashboard-quick-actions a:hover,
.dashboard-quick-actions a:focus {
    background: var(--hrm-primary);
    color: #ffffff;
    text-decoration: none;
}

@media (max-width: 1199px) {
    .dashboard-workspace-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-side-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .enterprise-dashboard .dashboard-command-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .enterprise-stat-grid,
    .dashboard-side-panel {
        grid-template-columns: 1fr;
    }
}

/* Employee form workflow sections */
.user-form-panel {
    overflow: visible;
}

.user-form-body {
    background: #f5f8fc;
}

.user-compact-form {
    max-width: 1180px;
    margin: 0 auto;
}

.user-form-stepbar {
    position: sticky;
    top: 66px;
    z-index: 8;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 10px 12px;
    margin: -4px 0 14px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #d7e2f0;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(16, 36, 64, 0.08);
    backdrop-filter: blur(8px);
}

.user-form-stepbar a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid #d9e5f4;
    border-radius: 999px;
    background: #eef5ff;
    color: #174a86;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.user-form-stepbar a:hover,
.user-form-stepbar a:focus {
    background: #255aa0;
    border-color: #255aa0;
    color: #ffffff;
    text-decoration: none;
}

.user-form-section {
    margin-bottom: 14px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d8e3f1;
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(18, 45, 78, 0.07);
}

.user-form-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    padding: 11px 16px;
    background: linear-gradient(90deg, #174a86 0%, #255aa0 68%, #2f6fb8 100%);
    color: #ffffff;
}

.user-form-section-header h3 {
    margin: 0 0 3px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0;
}

.user-form-section-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
}

.user-form-section-body {
    padding: 14px 14px 4px;
}

.user-form-section-body > .row {
    margin-left: -8px;
    margin-right: -8px;
}

.user-form-section-body > .row > [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
}

.user-form-section-body .form-group {
    margin-bottom: 12px;
}

.user-form-page .cu-btn-category {
    display: flex;
    justify-content: flex-end;
    padding: 12px 0 0;
}

.user-form-page .cu-btn-category .btn,
.user-form-page .modal-footer .btn {
    min-width: 112px;
    min-height: 36px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 767px) {
    .user-form-stepbar {
        position: static;
        padding: 8px;
    }

    .user-form-stepbar a {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
        padding: 0 8px;
        font-size: 10px;
    }

    .user-form-section-header {
        padding: 10px 12px;
    }

    .user-form-section-body {
        padding: 12px 10px 2px;
    }
}

/* Edit employee leave balance summary */
.leave-balance-panel {
    overflow: hidden;
}

.leave-summary-heading {
    align-items: center;
    justify-content: space-between;
}

.leave-summary-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border: 1px solid #cfe0f4;
    border-radius: 999px;
    background: #eef5ff;
    color: #174a86;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.leave-balance-body {
    padding: 14px 16px 18px !important;
}

.leave-balance-board {
    display: grid;
    gap: 14px;
}

.leave-balance-hero {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.leave-balance-hero > div {
    min-height: 112px;
    padding: 18px;
    border-radius: 8px;
    background: linear-gradient(135deg, #174a86 0%, #255aa0 62%, #2f6fb8 100%);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(23, 74, 134, 0.16);
}

.leave-balance-label,
.leave-balance-card span,
.leave-balance-breakdown-title small {
    display: block;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: uppercase;
}

.leave-balance-hero strong {
    display: block;
    margin: 7px 0 5px;
    color: #ffffff;
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
}

.leave-balance-hero small {
    display: block;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.leave-balance-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.leave-balance-card {
    min-height: 86px;
    padding: 14px 16px;
    border: 1px solid #d8e3f1;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(18, 45, 78, 0.06);
}

.leave-balance-card span {
    color: #5f6d80;
}

.leave-balance-card strong {
    display: block;
    margin-top: 10px;
    color: #102b4e;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
}

.leave-balance-card.is-used {
    background: #f8fbff;
}

.leave-balance-card.is-used strong {
    color: #255aa0;
}

.leave-balance-breakdown {
    padding: 14px;
    border: 1px solid #d8e3f1;
    border-radius: 8px;
    background: #f5f8fc;
}

.leave-balance-breakdown-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.leave-balance-breakdown-title span {
    color: #102b4e;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.leave-balance-breakdown-title small {
    color: #6b7a8f;
    text-align: right;
    text-transform: none;
}

@media (max-width: 991px) {
    .leave-balance-hero,
    .leave-balance-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .leave-summary-heading,
    .leave-balance-breakdown-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .leave-balance-hero,
    .leave-balance-grid {
        grid-template-columns: 1fr;
    }

    .leave-balance-hero strong {
        font-size: 28px;
    }
}

/* Edit employee family members panel */
.family-members-panel {
    overflow: hidden;
}

.family-members-heading {
    align-items: center;
    justify-content: space-between;
}

.family-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 126px;
    min-height: 34px;
    border-radius: 7px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    box-shadow: 0 10px 20px rgba(37, 90, 160, 0.18);
}

.family-members-body {
    padding: 14px 16px 18px !important;
}

.family-table-wrap {
    overflow: hidden;
    border: 1px solid #d8e3f1;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(18, 45, 78, 0.06);
}

.family-members-table {
    width: 100% !important;
    margin: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.family-members-table thead th {
    padding: 12px 14px !important;
    border: 0 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.16) !important;
    background: #255aa0 !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    text-align: left !important;
    text-transform: uppercase !important;
    letter-spacing: 0 !important;
    white-space: nowrap;
}

.family-members-table thead th:last-child {
    border-right: 0 !important;
    text-align: center !important;
}

.family-members-table tbody td {
    padding: 12px 14px !important;
    border-top: 1px solid #e2eaf5 !important;
    color: #17243a;
    font-size: 12px !important;
    font-weight: 650;
    line-height: 1.35 !important;
    vertical-align: middle !important;
    background: #ffffff;
}

.family-members-table tbody tr:nth-child(even) td {
    background: #f7faff;
}

.family-members-table tbody tr:hover td {
    background: #eef5ff;
}

.family-relationship-chip,
.family-status-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
}

.family-relationship-chip {
    border: 1px solid #cfe0f4;
    background: #eef5ff;
    color: #174a86;
}

.family-status-chip {
    border: 1px solid #caead7;
    background: #edfff4;
    color: #087b37;
}

.family-actions {
    min-width: 96px;
    text-align: center !important;
    white-space: nowrap;
}

.family-actions.muted {
    color: #6b7a8f !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
}

.family-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 0 2px;
    border: 1px solid #d8e5f5;
    border-radius: 7px;
    background: #eef5ff;
    color: #1c6fff !important;
    text-decoration: none !important;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.family-action-btn:hover,
.family-action-btn:focus {
    background: #255aa0;
    border-color: #255aa0;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.family-action-btn.danger {
    background: #fff1f3;
    border-color: #ffd4dc;
    color: #e50046 !important;
}

.family-action-btn.danger:hover,
.family-action-btn.danger:focus {
    background: #e50046;
    border-color: #e50046;
    color: #ffffff !important;
}

@media (max-width: 767px) {
    .family-members-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .family-add-btn {
        width: 100%;
    }

    .family-members-table thead th,
    .family-members-table tbody td {
        padding: 10px 12px !important;
    }
}

.leave-balance-grid-usage {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.leave-balance-card.is-absent strong {
    color: #b42318;
}

@media (max-width: 1199px) {
    .leave-balance-grid-usage {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .leave-balance-grid-usage {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .leave-balance-grid-usage {
        grid-template-columns: 1fr;
    }
}

/* Leave requests admin screen */
.leave-requests-page {
    margin-top: 10px;
}

.leave-requests-panel {
    overflow: visible;
}

.leave-requests-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 58px;
    padding: 12px 14px !important;
    background: #ffffff !important;
    border-left: 4px solid #255aa0;
}

.leave-requests-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.leave-requests-title h2 {
    margin: 0;
    color: #102b4e;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
}

.leave-requests-title h2 i {
    color: #255aa0;
    margin-right: 6px;
}

.leave-request-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 122px;
    min-height: 36px;
    border-radius: 7px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

.leave-requests-filter-shell {
    position: relative;
    z-index: 5;
    padding: 14px !important;
    background: #f5f8fc;
    border-top: 1px solid #d8e3f1;
    border-bottom: 1px solid #d8e3f1;
}

.leave-requests-filter-form {
    display: grid;
    grid-template-columns: minmax(120px, 0.8fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(220px, 1.35fr) auto;
    gap: 10px;
    align-items: end;
}

.leave-requests-filter-form .form-control,
.leave-requests-filter-form .select2-container .select2-choice,
.leave-requests-filter-form .select2-container--default .select2-selection--single {
    min-height: 36px;
    border: 1px solid #cbd8e8 !important;
    border-radius: 7px !important;
    color: #17243a;
    font-size: 12px;
    font-weight: 700;
    box-shadow: none !important;
}

.leave-request-filter-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 96px;
    min-height: 36px;
    border-radius: 7px !important;
    font-size: 12px;
    font-weight: 800;
}

.leave-requests-table-panel {
    overflow: visible;
    background: #ffffff;
}

.leave-requests-table-wrap {
    overflow-x: auto;
    overflow-y: visible;
    border: 1px solid #d8e3f1;
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background: #ffffff;
}

.leave-requests-table {
    margin: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.leave-requests-table thead th {
    padding: 13px 12px !important;
    border: 0 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.16) !important;
    background: #255aa0 !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1.2;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.leave-requests-table thead th:last-child {
    border-right: 0 !important;
    text-align: right;
}

.leave-requests-table tbody td {
    padding: 12px !important;
    border-top: 1px solid #e2eaf5 !important;
    color: #17243a;
    font-size: 12px !important;
    font-weight: 650;
    line-height: 1.35;
    vertical-align: middle !important;
    background: #ffffff;
}

.leave-requests-table tbody tr:nth-child(even) td {
    background: #f7faff;
}

.leave-requests-table tbody tr:hover td {
    background: #eef5ff;
}

.leave-request-employee strong,
.leave-request-duration span,
.leave-request-approved {
    display: block;
    color: #081c34;
    font-size: 12px;
    font-weight: 850;
}

.leave-request-employee small,
.leave-request-muted,
.leave-request-duration small,
.leave-request-duration em {
    display: block;
    margin-top: 3px;
    color: #65758b;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
}

.leave-type-chip,
.leave-status-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
}

.leave-type-chip {
    border: 1px solid #d8e5f5;
    background: #eef5ff;
    color: #174a86;
}

.leave-status-chip.is-pending {
    border: 1px solid #ffe3ad;
    background: #fff8e8;
    color: #9a5b00;
}

.leave-status-chip.is-approved {
    border: 1px solid #caead7;
    background: #edfff4;
    color: #087b37;
}

.leave-status-chip.is-rejected {
    border: 1px solid #ffd4dc;
    background: #fff1f3;
    color: #c8103e;
}

.leave-request-note {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leave-request-actions-cell {
    min-width: 126px;
}

.leave-request-row-actions {
    justify-content: flex-end;
}

.action-btn.action-success {
    background: #edfff4;
    border-color: #caead7;
    color: #16a34a !important;
}

.action-btn.action-success:hover,
.action-btn.action-success:focus {
    background: #16a34a;
    border-color: #16a34a;
    color: #ffffff !important;
}

.leave-request-empty {
    padding: 28px 12px !important;
    color: #65758b !important;
    font-weight: 800 !important;
}

.leave-requests-pagination {
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid #d8e3f1;
    border-top: 0;
    border-radius: 0 0 8px 8px;
}

.leave-approve-modal .modal-content {
    border: 0;
    border-radius: 8px;
    overflow: hidden;
}

.leave-approve-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #255aa0;
    color: #ffffff;
}

.leave-approve-modal .modal-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
}

.leave-approve-date-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.leave-approve-date-option {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 8px 10px;
    border: 1px solid #d8e3f1;
    border-radius: 7px;
    background: #f7faff;
    color: #17243a;
    font-size: 12px;
    font-weight: 800;
}

.bootstrap-datetimepicker-widget {
    z-index: 3000 !important;
    border: 1px solid #cbd8e8 !important;
    border-radius: 8px !important;
    box-shadow: 0 18px 40px rgba(16, 36, 64, 0.22) !important;
}

@media (max-width: 991px) {
    .leave-requests-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .leave-request-filter-actions .btn,
    .leave-request-add-btn {
        width: 100%;
    }
}

@media (max-width: 575px) {
    .leave-requests-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .leave-requests-filter-form,
    .leave-approve-date-grid {
        grid-template-columns: 1fr;
    }
}

.leave-requests-page input[type='date'].form-control {
    line-height: 1.2;
    padding-right: 10px !important;
}

.leave-requests-table {
    table-layout: fixed;
}

.leave-requests-table th:nth-child(1),
.leave-requests-table td:nth-child(1) {
    width: 18%;
}

.leave-requests-table th:nth-child(2),
.leave-requests-table td:nth-child(2) {
    width: 15%;
}

.leave-requests-table th:nth-child(3),
.leave-requests-table td:nth-child(3) {
    width: 15%;
}

.leave-requests-table th:nth-child(4),
.leave-requests-table td:nth-child(4) {
    width: 11%;
}

.leave-requests-table th:nth-child(5),
.leave-requests-table td:nth-child(5) {
    width: 11%;
}

.leave-requests-table th:nth-child(6),
.leave-requests-table td:nth-child(6) {
    width: 18%;
}

.leave-requests-table th:nth-child(7),
.leave-requests-table td:nth-child(7) {
    width: 12%;
}

/* Employees directory refresh */
.users-page .users-panel {
    border: 1px solid #d8e3f1;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(15, 38, 76, 0.12);
}

.users-page-heading {
    display: flex !important;
    min-height: 70px !important;
    padding: 14px 16px 14px 18px !important;
    border-bottom: 1px solid #d8e3f1 !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
}

.users-page-heading:before {
    margin: -14px 0 -14px -18px !important;
    background: #255aa0 !important;
}

.users-title-block {
    display: flex !important;
    flex-direction: column;
    gap: 3px;
    align-items: flex-start;
}

.users-title-block .admin-list-eyebrow {
    color: #164f95 !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
}

.users-title-block h2 {
    display: inline-flex !important;
    gap: 8px !important;
    align-items: center !important;
    margin: 0 !important;
    color: #0f172a !important;
    font-size: 18px !important;
    font-weight: 850 !important;
    line-height: 1.15 !important;
}

.users-title-block h2 i {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #e8f1ff;
    color: #255aa0;
    font-size: 14px;
}

.users-title-block p {
    margin: 0 !important;
    color: #607086 !important;
    font-size: 12px !important;
    font-weight: 650 !important;
}

.users-heading-actions {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.users-heading-actions .btn {
    display: inline-flex;
    min-width: 118px;
    height: 36px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

.users-filter-shell {
    padding: 14px !important;
    border-bottom: 1px solid #d8e3f1 !important;
    background: #f5f8fc !important;
}

.users-filter-grid {
    display: grid !important;
    grid-template-columns: minmax(130px, .9fr) minmax(130px, .9fr) minmax(130px, .9fr) minmax(150px, 1fr) minmax(230px, 1.5fr) auto;
    gap: 10px;
    align-items: end;
}

.users-filter-grid label {
    margin-bottom: 5px !important;
    color: #5d6b7d !important;
    font-size: 11px !important;
    font-weight: 850 !important;
    text-transform: uppercase;
}

.users-filter-grid .form-control,
.users-search-box .form-control {
    height: 36px !important;
    border: 1px solid #cbd8e8 !important;
    border-radius: 7px !important;
    color: #17243a !important;
    font-size: 12px !important;
    box-shadow: none !important;
}

.users-search-box {
    position: relative;
}

.users-search-box i {
    position: absolute;
    top: 50%;
    left: 12px;
    z-index: 2;
    color: #7a8aa0;
    font-size: 13px;
    transform: translateY(-50%);
}

.users-search-box .form-control {
    padding-left: 34px !important;
}

.users-filter-actions {
    display: inline-flex !important;
    gap: 8px;
    align-items: end;
    white-space: nowrap;
}

.users-filter-actions .btn {
    display: inline-flex;
    height: 36px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 14px !important;
    border-radius: 7px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

.users-table-wrap {
    overflow-x: auto;
    border: 0 !important;
}

.users-table {
    width: 100% !important;
    min-width: 980px;
    table-layout: fixed;
}

.users-table thead th {
    height: 42px !important;
    padding: 10px 10px !important;
    border-right: 1px solid rgba(255,255,255,0.14) !important;
    background: #255aa0 !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    text-transform: uppercase;
    white-space: nowrap;
}

.users-table tbody td {
    height: 58px !important;
    padding: 9px 10px !important;
    border-top: 1px solid #e2eaf5 !important;
    color: #17243a !important;
    font-size: 12px !important;
    font-weight: 650 !important;
    vertical-align: middle !important;
}

.users-table th:nth-child(1),
.users-table td:nth-child(1) { width: 28%; }
.users-table th:nth-child(2),
.users-table td:nth-child(2) { width: 10%; }
.users-table th:nth-child(3),
.users-table td:nth-child(3) { width: 12%; }
.users-table th:nth-child(4),
.users-table td:nth-child(4) { width: 14%; }
.users-table th:nth-child(5),
.users-table td:nth-child(5) { width: 11%; }
.users-table th:nth-child(6),
.users-table td:nth-child(6) { width: 12%; }
.users-table th:nth-child(7),
.users-table td:nth-child(7) { width: 13%; }

.users-avatar {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    border-radius: 9px !important;
    background: #e8f1ff !important;
    color: #255aa0 !important;
    font-size: 12px !important;
}

.users-identity strong {
    font-size: 12px !important;
    font-weight: 850 !important;
}

.users-identity small {
    max-width: 220px;
    font-size: 11px !important;
}

.users-chip,
.users-status {
    min-height: 24px !important;
    max-width: 100%;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

.users-work-time strong,
.users-work-time small {
    font-size: 11px !important;
}

.users-row-actions {
    display: inline-flex !important;
    justify-content: flex-end;
    gap: 7px !important;
}

.users-row-actions .action-btn {
    display: inline-flex !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    align-items: center;
    justify-content: center;
    border-radius: 7px !important;
    font-size: 13px !important;
}

.users-row-actions .action-btn i,
.users-status i,
.users-heading-actions .btn i,
.users-filter-actions .btn i {
    display: inline-block !important;
    font-family: FontAwesome !important;
    font-style: normal !important;
    line-height: 1 !important;
}

@media (max-width: 1200px) {
    .users-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .users-search-field,
    .users-filter-actions {
        grid-column: span 3;
    }
}

@media (max-width: 767px) {
    .users-page-heading {
        align-items: stretch !important;
        flex-direction: column;
    }

    .users-filter-grid {
        grid-template-columns: 1fr;
    }

    .users-search-field,
    .users-filter-actions {
        grid-column: auto;
    }

    .users-filter-actions .btn,
    .users-heading-actions .btn {
        width: 100%;
    }
}

/* Employees compact polish */
.users-page,
.users-page .panel,
.users-page .form-control,
.users-page .btn,
.users-page table,
.users-page label,
.users-page span,
.users-page small,
.users-page strong,
.users-page a {
    font-size: 11px !important;
}

.users-page-heading {
    min-height: 54px !important;
    padding: 10px 14px 10px 16px !important;
}

.users-page-heading:before {
    margin: -10px 0 -10px -16px !important;
}

.users-title-block {
    gap: 2px !important;
}

.users-title-block .admin-list-eyebrow {
    font-size: 12px !important;
    line-height: 1.1 !important;
}

.users-title-block h2 {
    display: none !important;
}

.users-title-block p {
    font-size: 11px !important;
    line-height: 1.15 !important;
}

.users-heading-actions .btn {
    min-width: 104px !important;
    height: 32px !important;
    gap: 6px !important;
    padding: 0 12px !important;
    font-size: 11px !important;
}

.users-add-glyph {
    display: inline-flex !important;
    width: 15px;
    height: 15px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.22);
    color: #ffffff;
    font-family: Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 15px !important;
}

.users-filter-shell {
    padding: 10px 12px !important;
}

.users-filter-grid {
    gap: 8px !important;
}

.users-filter-grid label {
    margin-bottom: 4px !important;
    font-size: 10px !important;
}

.users-filter-grid .form-control,
.users-search-box .form-control,
.users-filter-actions .btn {
    height: 32px !important;
    font-size: 11px !important;
}

.users-search-box i {
    font-size: 11px !important;
}

.users-table thead th {
    height: 36px !important;
    padding: 8px 10px !important;
    font-size: 10px !important;
}

.users-table tbody td {
    height: 50px !important;
    padding: 7px 10px !important;
    font-size: 11px !important;
}

.users-avatar {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    font-size: 11px !important;
}

.users-employee {
    gap: 9px !important;
}

.users-identity strong,
.users-work-time strong {
    font-size: 11px !important;
}

.users-identity small,
.users-work-time small {
    font-size: 10px !important;
}

.users-chip,
.users-status {
    min-height: 22px !important;
    padding: 3px 7px !important;
    font-size: 10px !important;
}

.users-row-actions .action-btn {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    border-radius: 6px !important;
    font-size: 11px !important;
}

.users-row-actions .action-btn i,
.users-status i,
.users-filter-actions .btn i {
    font-size: 11px !important;
}

/* Employees page final visual pass */
.users-page {
    margin-top: 8px !important;
}

.users-page .users-panel {
    border-color: #cdd9ea !important;
    border-radius: 8px !important;
    box-shadow: 0 14px 32px rgba(15, 37, 73, 0.10) !important;
}

.users-page-heading {
    min-height: 58px !important;
    padding: 11px 14px 11px 16px !important;
    background: linear-gradient(90deg, #f8fbff 0%, #ffffff 58%, #f3f7fd 100%) !important;
}

.users-page-heading:before {
    width: 3px !important;
    flex-basis: 3px !important;
    margin: -11px 0 -11px -16px !important;
    background: #1f559b !important;
}

.users-title-block .admin-list-eyebrow {
    color: #174f93 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    text-transform: uppercase;
}

.users-title-block p {
    color: #52657c !important;
    font-size: 11px !important;
    font-weight: 600 !important;
}

.users-filter-count {
    height: 24px !important;
    padding: 4px 9px !important;
    border: 1px solid #bfd2ec !important;
    border-radius: 999px !important;
    background: #eef5ff !important;
    color: #1f559b !important;
    font-size: 10px !important;
    font-weight: 800 !important;
}

.users-heading-actions .btn {
    border: 0 !important;
    background: #255aa0 !important;
    box-shadow: 0 8px 18px rgba(37, 90, 160, 0.20) !important;
    color: #ffffff !important;
}

.users-heading-actions .btn:hover,
.users-heading-actions .btn:focus {
    background: #1d4d8e !important;
    color: #ffffff !important;
}

.users-add-glyph {
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22);
}

.users-filter-shell {
    background: #f7faff !important;
}

.users-filter-grid {
    grid-template-columns: minmax(120px, .8fr) minmax(125px, .85fr) minmax(125px, .85fr) minmax(150px, 1fr) minmax(240px, 1.55fr) auto !important;
}

.users-filter-grid label {
    color: #5f6f84 !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
}

.users-filter-grid .form-control,
.users-search-box .form-control {
    border-color: #c7d5e8 !important;
    background: #ffffff !important;
    color: #1e293b !important;
    font-weight: 500 !important;
}

.users-filter-grid .form-control:focus,
.users-search-box .form-control:focus {
    border-color: #255aa0 !important;
    box-shadow: 0 0 0 2px rgba(37, 90, 160, 0.10) !important;
}

.users-filter-actions .btn {
    min-width: 82px !important;
    border-radius: 6px !important;
}

.users-filter-actions .btn-default {
    border: 1px solid #c7d5e8 !important;
    background: #ffffff !important;
    color: #34465d !important;
}

.users-table {
    min-width: 960px !important;
}

.users-table thead th {
    height: 38px !important;
    background: #24599f !important;
    font-size: 10px !important;
    font-weight: 850 !important;
}

.users-table tbody td {
    height: 52px !important;
    color: #1f2937 !important;
    font-weight: 500 !important;
}

.users-table tbody tr:nth-child(odd) td {
    background: #ffffff !important;
}

.users-table tbody tr:nth-child(even) td {
    background: #f6f9fd !important;
}

.users-table tbody tr:hover td {
    background: #edf5ff !important;
}

.users-avatar {
    border: 1px solid #d8e7fb !important;
    background: #eef5ff !important;
    font-weight: 900 !important;
}

.users-identity strong {
    color: #111827 !important;
    font-weight: 800 !important;
}

.users-identity small {
    color: #4f6681 !important;
    font-weight: 500 !important;
}

.users-chip {
    border: 1px solid #dbe5f2 !important;
    background: #f5f8fc !important;
    color: #174f93 !important;
    font-weight: 700 !important;
}

.users-chip-muted {
    color: #26364a !important;
}

.users-chip-soft {
    border-color: #cbeed9 !important;
    background: #effcf5 !important;
    color: #126234 !important;
}

.users-work-time strong {
    color: #111827 !important;
    font-weight: 800 !important;
}

.users-work-time small {
    color: #62758e !important;
    font-weight: 500 !important;
}

.users-status {
    gap: 5px !important;
    font-weight: 850 !important;
}

.users-status.is-active {
    background: #eefcf4 !important;
    color: #0e8f3d !important;
}

.users-status.is-inactive {
    background: #fff1f3 !important;
    color: #db1748 !important;
}

.users-actions-cell {
    text-align: right !important;
}

.users-row-actions {
    gap: 6px !important;
}

.users-row-actions .action-btn {
    border: 1px solid transparent !important;
    box-shadow: none !important;
}

.users-row-actions .action-success {
    border-color: #bfeecf !important;
    background: #effcf5 !important;
    color: #16a34a !important;
}

.users-row-actions .action-danger {
    border-color: #ffd2dc !important;
    background: #fff1f3 !important;
    color: #e11d48 !important;
}

.users-row-actions .action-primary {
    border-color: #d7e6ff !important;
    background: #edf5ff !important;
    color: #2563eb !important;
}

.users-row-actions .action-warning {
    border-color: #fde6bd !important;
    background: #fff8ec !important;
    color: #e96b00 !important;
}

.users-row-actions .action-info {
    border-color: #d8e7fb !important;
    background: #eef5ff !important;
    color: #255aa0 !important;
}

.users-row-actions .action-btn:hover,
.users-row-actions .action-btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(15, 37, 73, 0.12) !important;
}

@media (max-width: 1200px) {
    .users-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* Employees page enterprise density pass */
.users-page .users-panel {
    border-radius: 6px !important;
    box-shadow: 0 10px 26px rgba(21, 45, 83, 0.10) !important;
}

.users-page-heading {
    min-height: 50px !important;
    padding: 9px 12px 9px 14px !important;
    background: #ffffff !important;
}

.users-page-heading:before {
    margin: -9px 0 -9px -14px !important;
    border-radius: 0 !important;
}

.users-title-block .admin-list-eyebrow {
    color: #174f93 !important;
    font-size: 11px !important;
    font-weight: 850 !important;
}

.users-title-block p {
    color: #60738c !important;
    font-size: 10px !important;
}

.users-heading-actions .btn {
    height: 30px !important;
    min-width: 98px !important;
    border-radius: 5px !important;
    font-size: 10px !important;
    box-shadow: none !important;
}

.users-add-glyph {
    width: 14px !important;
    height: 14px !important;
    font-size: 13px !important;
    line-height: 14px !important;
}

.users-filter-shell {
    padding: 9px 11px !important;
    background: #fbfdff !important;
}

.users-filter-grid {
    grid-template-columns: 120px 125px 130px 150px minmax(220px, 1fr) auto !important;
    gap: 8px !important;
}

.users-filter-grid label {
    margin-bottom: 3px !important;
    color: #66758a !important;
    font-size: 9px !important;
    font-weight: 850 !important;
}

.users-filter-grid .form-control,
.users-search-box .form-control {
    height: 30px !important;
    border-radius: 5px !important;
    font-size: 10px !important;
    font-weight: 500 !important;
}

.users-search-box i {
    left: 10px !important;
    font-size: 10px !important;
}

.users-search-box .form-control {
    padding-left: 28px !important;
}

.users-filter-actions {
    gap: 6px !important;
}

.users-filter-actions .btn {
    height: 30px !important;
    min-width: 76px !important;
    padding: 0 10px !important;
    border-radius: 5px !important;
    font-size: 10px !important;
}

.users-table-wrap {
    background: #ffffff !important;
}

.users-table {
    min-width: 930px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.users-table thead th {
    height: 34px !important;
    padding: 7px 9px !important;
    background: #225798 !important;
    border-right: 1px solid rgba(255,255,255,0.12) !important;
    font-size: 9px !important;
    font-weight: 850 !important;
}

.users-table tbody td {
    height: 44px !important;
    padding: 6px 9px !important;
    font-size: 10px !important;
    font-weight: 500 !important;
}

.users-table tbody tr:nth-child(even) td {
    background: #f8fbff !important;
}

.users-table tbody tr:nth-child(odd) td {
    background: #ffffff !important;
}

.users-table tbody tr:hover td {
    background: #edf4fc !important;
}

.users-employee-cell {
    min-width: 230px !important;
}

.users-employee {
    gap: 8px !important;
}

.users-avatar {
    width: 27px !important;
    height: 27px !important;
    min-width: 27px !important;
    border-radius: 7px !important;
    font-size: 10px !important;
}

.users-identity strong {
    font-size: 10.5px !important;
    line-height: 1.15 !important;
}

.users-identity small {
    max-width: 210px !important;
    margin-top: 2px !important;
    font-size: 9.5px !important;
    line-height: 1.1 !important;
}

.users-chip,
.users-status {
    min-height: 19px !important;
    padding: 2px 7px !important;
    border-radius: 5px !important;
    font-size: 9.5px !important;
    font-weight: 750 !important;
}

.users-work-time {
    gap: 0 !important;
}

.users-work-time strong {
    font-size: 10px !important;
    line-height: 1.1 !important;
}

.users-work-time small {
    margin-top: 2px !important;
    font-size: 9px !important;
    line-height: 1.1 !important;
}

.users-status i {
    font-size: 9px !important;
}

.users-row-actions {
    gap: 5px !important;
}

.users-row-actions .action-btn {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    border-radius: 5px !important;
    font-size: 10px !important;
}

.users-row-actions .action-btn:hover,
.users-row-actions .action-btn:focus {
    transform: none !important;
    box-shadow: 0 3px 8px rgba(15, 37, 73, 0.10) !important;
}

.users-table th:nth-child(1),
.users-table td:nth-child(1) { width: 27% !important; }
.users-table th:nth-child(2),
.users-table td:nth-child(2) { width: 10% !important; }
.users-table th:nth-child(3),
.users-table td:nth-child(3) { width: 12% !important; }
.users-table th:nth-child(4),
.users-table td:nth-child(4) { width: 14% !important; }
.users-table th:nth-child(5),
.users-table td:nth-child(5) { width: 11% !important; }
.users-table th:nth-child(6),
.users-table td:nth-child(6) { width: 12% !important; }
.users-table th:nth-child(7),
.users-table td:nth-child(7) { width: 14% !important; }

/* Employees action icons: font-independent */
.users-status-symbol,
.users-row-actions .action-symbol {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-family: Arial, Helvetica, sans-serif !important;
    font-style: normal !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-align: center;
}

.users-status-symbol {
    width: 10px;
    min-width: 10px;
    font-size: 11px !important;
}

.users-row-actions .action-btn {
    width: 26px !important;
    height: 24px !important;
    min-width: 26px !important;
    padding: 0 !important;
}

.users-row-actions .action-symbol {
    width: 100%;
    height: 100%;
    font-size: 13px !important;
}

.users-row-actions .action-info .action-symbol {
    font-family: Georgia, serif !important;
    font-size: 14px !important;
    font-style: italic !important;
}

.users-row-actions .action-warning .action-symbol {
    font-size: 15px !important;
}

.users-heading-actions .btn {
    min-width: 112px !important;
    overflow: visible !important;
}

.users-heading-actions .btn .users-add-glyph,
.users-heading-actions .btn span {
    flex: 0 0 auto;
}

/* Attendance page stable UI repair */
.attendance-page,
.attendance-page .panel,
.attendance-page .form-control,
.attendance-page .btn,
.attendance-page table,
.attendance-page th,
.attendance-page td,
.attendance-page label,
.attendance-page a,
.attendance-page span {
    font-size: 10.5px !important;
}

.attendance-page {
    margin-top: 8px !important;
}

.attendance-panel {
    border: 1px solid #cdd9ea !important;
    border-radius: 7px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-shadow: 0 10px 26px rgba(21, 45, 83, 0.10) !important;
}

.attendance-filter-heading {
    min-height: auto !important;
    padding: 10px 12px !important;
    border-bottom: 1px solid #d8e3f1 !important;
    background: #ffffff !important;
}

.attendance-filter-heading:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #255aa0;
}

.attendance-filter-form,
.attendance-filter-form .row,
.attendance-filter-form .col-sm-12 {
    margin: 0 !important;
}

.attendance-filter-row {
    display: grid !important;
    grid-template-columns: 110px 155px 1fr 1fr minmax(190px, 1fr) 88px !important;
    gap: 8px !important;
    align-items: center !important;
    width: 100% !important;
    padding-left: 6px !important;
}

.attendance-filter-row .form-control,
.attendance-filter-row .select2-container .select2-choice,
.attendance-filter-row .select2-container--default .select2-selection--single {
    width: 100% !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 5px 10px !important;
    border: 1px solid #c7d5e8 !important;
    border-radius: 5px !important;
    background: #ffffff !important;
    color: #1e293b !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}

.attendance-filter-row .form-control:focus {
    border-color: #255aa0 !important;
    box-shadow: 0 0 0 2px rgba(37, 90, 160, 0.10) !important;
}

.attendance-search-btn {
    display: inline-flex !important;
    width: 88px !important;
    height: 32px !important;
    min-height: 32px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 5px !important;
    background: #255aa0 !important;
    color: #ffffff !important;
    font-size: 10.5px !important;
    font-weight: 850 !important;
    text-align: center !important;
    box-shadow: none !important;
}

.attendance-summary-strip {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    border-bottom: 1px solid #d8e3f1 !important;
    background: #ffffff !important;
}

.attendance-summary-card {
    min-height: 28px !important;
    padding: 5px 8px !important;
    border-right: 1px solid #d8e3f1 !important;
    color: #17243a !important;
    font-size: 10.5px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
}

.attendance-summary-card label {
    margin: 0 !important;
    font-size: 10.5px !important;
    font-weight: 850 !important;
}

.attendance-summary-card.summary-muted { background: #f8fafc !important; }
.attendance-summary-card.summary-info { background: #eef7ff !important; }
.attendance-summary-card.summary-warning { background: #fff9cc !important; }
.attendance-summary-card.summary-success { background: #eafbf2 !important; }
.attendance-summary-card.summary-danger { background: #fff1f3 !important; }

.attendance-table {
    width: 100% !important;
    min-width: 940px !important;
    table-layout: fixed !important;
    margin: 0 !important;
}

.attendance-table thead th {
    height: 36px !important;
    padding: 8px 10px !important;
    border-right: 1px solid rgba(255,255,255,0.14) !important;
    background: #24599f !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 850 !important;
    line-height: 1.15 !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}

.attendance-table tbody td {
    height: 44px !important;
    padding: 7px 10px !important;
    border-top: 1px solid #e2eaf5 !important;
    color: #111827 !important;
    font-size: 10.5px !important;
    font-weight: 550 !important;
    line-height: 1.25 !important;
    vertical-align: middle !important;
}

.attendance-table tbody tr:nth-child(odd) td { background: #ffffff !important; }
.attendance-table tbody tr:nth-child(even) td { background: #f8fbff !important; }
.attendance-table tbody tr:hover td { background: #edf4fc !important; }

.attendance-name-cell,
.attendance-date-cell {
    font-weight: 800 !important;
}

.attendance-table th:nth-child(1),
.attendance-table td:nth-child(1) { width: 18% !important; }
.attendance-table th:nth-child(2),
.attendance-table td:nth-child(2) { width: 12% !important; }
.attendance-table th:nth-child(3),
.attendance-table td:nth-child(3) { width: 15% !important; }
.attendance-table th:nth-child(4),
.attendance-table td:nth-child(4) { width: 17% !important; }
.attendance-table th:nth-child(5),
.attendance-table td:nth-child(5) { width: 8% !important; }
.attendance-table th:nth-child(6),
.attendance-table td:nth-child(6) { width: 8% !important; }
.attendance-table th:nth-child(7),
.attendance-table td:nth-child(7) { width: 9% !important; }
.attendance-table th:nth-child(8),
.attendance-table td:nth-child(8) { width: 13% !important; }

.attendance-table .status-box {
    display: inline-flex !important;
    min-height: 20px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2px 8px !important;
    border-radius: 5px !important;
    background: #f5f8fc !important;
    color: #111827 !important;
    font-size: 10px !important;
    font-weight: 850 !important;
    line-height: 1.1 !important;
}

.attendance-actions-cell {
    width: 100px !important;
    min-width: 100px !important;
}

.attendance-row-actions {
    display: inline-flex !important;
    justify-content: flex-end !important;
    gap: 6px !important;
}

.attendance-row-actions .action-btn {
    display: inline-flex !important;
    width: 26px !important;
    height: 24px !important;
    min-width: 26px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border-radius: 5px !important;
    font-size: 12px !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.attendance-row-actions .action-symbol {
    display: inline-flex !important;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

.attendance-row-actions .action-primary {
    border: 1px solid #d7e6ff !important;
    background: #edf5ff !important;
    color: #2563eb !important;
}

.attendance-row-actions .action-success {
    border: 1px solid #bfeecf !important;
    background: #effcf5 !important;
    color: #16a34a !important;
}

.attendance-row-actions .action-danger {
    border: 1px solid #ffd2dc !important;
    background: #fff1f3 !important;
    color: #e11d48 !important;
}

.attendance-pagination {
    min-height: 38px !important;
    padding: 8px 10px !important;
    border-top: 1px solid #d8e3f1 !important;
    background: #fbfdff !important;
}

@media (max-width: 1199px) {
    .attendance-filter-row {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .attendance-search-btn {
        width: 100% !important;
    }
}

@media (max-width: 767px) {
    .attendance-filter-row,
    .attendance-summary-strip {
        grid-template-columns: 1fr !important;
    }
}

/* Attendance native date filters */
.attendance-filter-row input[type="date"].attendance-date-input {
    appearance: auto !important;
    line-height: 1.2 !important;
    padding-right: 8px !important;
}

.attendance-filter-row input[type="date"].attendance-date-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.75;
}

/* Shared admin headers: match Employees compact style */
#main-content .admin-list-panel > .panel-heading:not(.attendance-filter-heading),
#main-content .user-form-heading,
#main-content .public-holiday-heading,
#main-content .leave-settings-heading,
#main-content .leave-requests-heading,
#main-content .leave-history-heading,
#main-content .family-members-heading,
#main-content .leave-summary-heading {
    position: relative !important;
    display: flex !important;
    min-height: 50px !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 9px 12px 9px 16px !important;
    border-bottom: 1px solid #d8e3f1 !important;
    background: #ffffff !important;
    color: #17243a !important;
    line-height: 1.2 !important;
}

#main-content .admin-list-panel > .panel-heading:not(.attendance-filter-heading):before,
#main-content .user-form-heading:before,
#main-content .public-holiday-heading:before,
#main-content .leave-settings-heading:before,
#main-content .leave-requests-heading:before,
#main-content .leave-history-heading:before,
#main-content .family-members-heading:before,
#main-content .leave-summary-heading:before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 3px !important;
    border-radius: 0 !important;
    background: #255aa0 !important;
}

#main-content .users-title-block,
#main-content .user-form-title,
#main-content .public-holiday-title,
#main-content .leave-settings-title,
#main-content .leave-requests-title,
#main-content .leave-history-title,
#main-content .family-members-title,
#main-content .leave-summary-title {
    display: flex !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 2px !important;
    text-align: left !important;
}

#main-content .admin-list-eyebrow {
    display: block !important;
    margin: 0 !important;
    color: #174f93 !important;
    font-size: 11px !important;
    font-weight: 850 !important;
    letter-spacing: 0 !important;
    line-height: 1.1 !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}

#main-content .user-form-title h2,
#main-content .public-holiday-title h2,
#main-content .leave-settings-title h2,
#main-content .leave-requests-title h2,
#main-content .leave-history-title h2,
#main-content .family-members-title h2,
#main-content .leave-summary-title h2 {
    display: block !important;
    margin: 0 !important;
    color: #60738c !important;
    font-size: 10px !important;
    font-weight: 650 !important;
    line-height: 1.15 !important;
    text-align: left !important;
    text-transform: none !important;
    white-space: nowrap !important;
}

#main-content .user-form-title h2 i,
#main-content .public-holiday-title h2 i,
#main-content .leave-settings-title h2 i,
#main-content .leave-requests-title h2 i,
#main-content .leave-history-title h2 i,
#main-content .family-members-title h2 i,
#main-content .leave-summary-title h2 i,
#main-content .admin-list-panel > .panel-heading:not(.attendance-filter-heading) h2 i {
    display: none !important;
}

#main-content .admin-list-panel > .panel-heading:not(.attendance-filter-heading) > h1,
#main-content .admin-list-panel > .panel-heading:not(.attendance-filter-heading) > h2,
#main-content .admin-list-panel > .panel-heading:not(.attendance-filter-heading) > h3,
#main-content .admin-list-panel > .panel-heading:not(.attendance-filter-heading) > h4,
#main-content .admin-list-panel > .panel-heading:not(.attendance-filter-heading) > h5,
#main-content .admin-list-panel > .panel-heading:not(.attendance-filter-heading) > h6 {
    margin: 0 !important;
    color: #174f93 !important;
    font-size: 11px !important;
    font-weight: 850 !important;
    line-height: 1.1 !important;
    text-transform: uppercase !important;
}

#main-content .admin-list-panel > .panel-heading:not(.attendance-filter-heading) > a.btn,
#main-content .admin-list-panel > .panel-heading:not(.attendance-filter-heading) > .btn,
#main-content .user-form-heading > a.btn,
#main-content .public-holiday-heading > a.btn,
#main-content .leave-requests-heading > a.btn,
#main-content .family-members-heading > a.btn {
    display: inline-flex !important;
    min-width: 104px !important;
    height: 30px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 5px !important;
    background: #255aa0 !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    float: none !important;
}

#main-content .admin-list-panel > .panel-heading:not(.attendance-filter-heading) > a.btn:hover,
#main-content .admin-list-panel > .panel-heading:not(.attendance-filter-heading) > .btn:hover,
#main-content .user-form-heading > a.btn:hover,
#main-content .public-holiday-heading > a.btn:hover,
#main-content .leave-requests-heading > a.btn:hover,
#main-content .family-members-heading > a.btn:hover {
    background: #1d4d8e !important;
    color: #ffffff !important;
}

#main-content .admin-list-panel > .panel-heading:not(.attendance-filter-heading) > a.btn i,
#main-content .admin-list-panel > .panel-heading:not(.attendance-filter-heading) > .btn i,
#main-content .user-form-heading > a.btn i,
#main-content .public-holiday-heading > a.btn i,
#main-content .leave-requests-heading > a.btn i,
#main-content .family-members-heading > a.btn i {
    display: none !important;
}

#main-content .admin-list-panel > .panel-heading:not(.attendance-filter-heading) > a.btn:before,
#main-content .user-form-heading > a.btn:before,
#main-content .public-holiday-heading > a.btn:before,
#main-content .leave-requests-heading > a.btn:before,
#main-content .family-members-heading > a.btn:before {
    content: "+" !important;
    display: inline-flex !important;
    width: 14px !important;
    height: 14px !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.22) !important;
    color: #ffffff !important;
    font-family: Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 14px !important;
}

#main-content .admin-list-panel > .panel-heading:not(.attendance-filter-heading) .pull-right {
    float: none !important;
    margin-left: auto !important;
}

@media (max-width: 767px) {
    #main-content .admin-list-panel > .panel-heading:not(.attendance-filter-heading),
    #main-content .user-form-heading,
    #main-content .public-holiday-heading,
    #main-content .leave-settings-heading,
    #main-content .leave-requests-heading,
    #main-content .leave-history-heading,
    #main-content .family-members-heading,
    #main-content .leave-summary-heading {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    #main-content .admin-list-panel > .panel-heading:not(.attendance-filter-heading) > a.btn,
    #main-content .admin-list-panel > .panel-heading:not(.attendance-filter-heading) > .btn,
    #main-content .user-form-heading > a.btn,
    #main-content .public-holiday-heading > a.btn,
    #main-content .leave-requests-heading > a.btn,
    #main-content .family-members-heading > a.btn {
        width: 100% !important;
    }
}

/* Global legacy panel headers: same compact header as Employees */
#main-content .panel > .panel-heading:not(.attendance-filter-heading) {
    position: relative !important;
    display: flex !important;
    min-height: 50px !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 9px 12px 9px 16px !important;
    border-bottom: 1px solid #d8e3f1 !important;
    background: #ffffff !important;
    color: #174f93 !important;
    font-size: 11px !important;
    font-weight: 850 !important;
    line-height: 1.15 !important;
    text-align: left !important;
    text-transform: uppercase !important;
}

#main-content .panel > .panel-heading:not(.attendance-filter-heading):before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 3px !important;
    background: #255aa0 !important;
}

#main-content .panel > .panel-heading:not(.attendance-filter-heading) > i:first-child {
    display: none !important;
}

#main-content .panel > .panel-heading:not(.attendance-filter-heading) h1,
#main-content .panel > .panel-heading:not(.attendance-filter-heading) h2,
#main-content .panel > .panel-heading:not(.attendance-filter-heading) h3,
#main-content .panel > .panel-heading:not(.attendance-filter-heading) h4,
#main-content .panel > .panel-heading:not(.attendance-filter-heading) h5,
#main-content .panel > .panel-heading:not(.attendance-filter-heading) h6 {
    margin: 0 !important;
    color: #174f93 !important;
    font-size: 11px !important;
    font-weight: 850 !important;
    line-height: 1.15 !important;
    text-align: left !important;
    text-transform: uppercase !important;
}

#main-content .panel > .panel-heading:not(.attendance-filter-heading) h1 i,
#main-content .panel > .panel-heading:not(.attendance-filter-heading) h2 i,
#main-content .panel > .panel-heading:not(.attendance-filter-heading) h3 i,
#main-content .panel > .panel-heading:not(.attendance-filter-heading) h4 i,
#main-content .panel > .panel-heading:not(.attendance-filter-heading) h5 i,
#main-content .panel > .panel-heading:not(.attendance-filter-heading) h6 i {
    display: none !important;
}

#main-content .panel > .panel-heading:not(.attendance-filter-heading) .admin-list-eyebrow {
    color: #174f93 !important;
    font-size: 11px !important;
    font-weight: 850 !important;
    line-height: 1.1 !important;
    text-transform: uppercase !important;
}

#main-content .panel > .panel-heading:not(.attendance-filter-heading) p,
#main-content .panel > .panel-heading:not(.attendance-filter-heading) small,
#main-content .panel > .panel-heading:not(.attendance-filter-heading) .header-subtitle {
    margin: 0 !important;
    color: #60738c !important;
    font-size: 10px !important;
    font-weight: 650 !important;
    line-height: 1.15 !important;
    text-transform: none !important;
}

#main-content .panel > .panel-heading:not(.attendance-filter-heading) > .btn,
#main-content .panel > .panel-heading:not(.attendance-filter-heading) > a.btn,
#main-content .panel > .panel-heading:not(.attendance-filter-heading) > button.btn {
    display: inline-flex !important;
    height: 30px !important;
    min-width: 96px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    margin-left: auto !important;
    padding: 0 12px !important;
    border-radius: 5px !important;
    font-size: 10px !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    text-transform: none !important;
    text-decoration: none !important;
    box-shadow: none !important;
    float: none !important;
}

#main-content .panel > .panel-heading:not(.attendance-filter-heading) > .btn-primary,
#main-content .panel > .panel-heading:not(.attendance-filter-heading) > a.btn-primary,
#main-content .panel > .panel-heading:not(.attendance-filter-heading) > button.btn-primary {
    border: 0 !important;
    background: #255aa0 !important;
    color: #ffffff !important;
}

#main-content .panel > .panel-heading:not(.attendance-filter-heading) > .btn-info,
#main-content .panel > .panel-heading:not(.attendance-filter-heading) > a.btn-info,
#main-content .panel > .panel-heading:not(.attendance-filter-heading) > button.btn-info {
    border: 1px solid #c7d5e8 !important;
    background: #eef5ff !important;
    color: #174f93 !important;
}

#main-content .panel > .panel-heading:not(.attendance-filter-heading) > .btn-default,
#main-content .panel > .panel-heading:not(.attendance-filter-heading) > a.btn-default,
#main-content .panel > .panel-heading:not(.attendance-filter-heading) > button.btn-default {
    border: 1px solid #c7d5e8 !important;
    background: #ffffff !important;
    color: #34465d !important;
}

#main-content .panel > .panel-heading:not(.attendance-filter-heading) > .btn-primary i,
#main-content .panel > .panel-heading:not(.attendance-filter-heading) > a.btn-primary i,
#main-content .panel > .panel-heading:not(.attendance-filter-heading) > button.btn-primary i {
    display: none !important;
}

#main-content .panel > .panel-heading:not(.attendance-filter-heading) > .btn-primary:before,
#main-content .panel > .panel-heading:not(.attendance-filter-heading) > a.btn-primary:before,
#main-content .panel > .panel-heading:not(.attendance-filter-heading) > button.btn-primary:before {
    content: "+" !important;
    display: inline-flex !important;
    width: 14px !important;
    height: 14px !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.22) !important;
    color: #ffffff !important;
    font-family: Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 14px !important;
}

#main-content .panel > .panel-heading:not(.attendance-filter-heading) > .btn-default:before,
#main-content .panel > .panel-heading:not(.attendance-filter-heading) > a.btn-default:before,
#main-content .panel > .panel-heading:not(.attendance-filter-heading) > button.btn-default:before {
    content: none !important;
}

#main-content .panel > .panel-heading:not(.attendance-filter-heading) > .btn-default i,
#main-content .panel > .panel-heading:not(.attendance-filter-heading) > a.btn-default i,
#main-content .panel > .panel-heading:not(.attendance-filter-heading) > button.btn-default i,
#main-content .panel > .panel-heading:not(.attendance-filter-heading) > .btn-info i,
#main-content .panel > .panel-heading:not(.attendance-filter-heading) > a.btn-info i,
#main-content .panel > .panel-heading:not(.attendance-filter-heading) > button.btn-info i {
    display: none !important;
}

#main-content .panel > .panel-heading:not(.attendance-filter-heading) form {
    margin: 0 !important;
    margin-left: auto !important;
    text-transform: none !important;
}

@media (max-width: 767px) {
    #main-content .panel > .panel-heading:not(.attendance-filter-heading) {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    #main-content .panel > .panel-heading:not(.attendance-filter-heading) > .btn,
    #main-content .panel > .panel-heading:not(.attendance-filter-heading) > a.btn,
    #main-content .panel > .panel-heading:not(.attendance-filter-heading) > button.btn {
        width: 100% !important;
        margin-left: 0 !important;
    }
}

/* Daily attendance report user setting */
.attendance-report-setting {
    min-height: 62px;
}

.attendance-report-toggle {
    display: flex !important;
    min-height: 36px;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #cbd8e8;
    border-radius: 6px;
    background: #f8fbff;
    color: #34465d;
    font-size: 11px !important;
    font-weight: 750 !important;
    line-height: 1.25;
    cursor: pointer;
}

.attendance-report-toggle input {
    margin: 0 !important;
}

.users-report-chip {
    display: inline-flex;
    min-height: 20px;
    align-items: center;
    justify-content: center;
    padding: 3px 7px;
    border-radius: 5px;
    font-size: 9.5px !important;
    font-weight: 800 !important;
    line-height: 1;
}

.users-report-chip.is-enabled {
    border: 1px solid #bfeecf;
    background: #effcf5;
    color: #0e8f3d;
}

.users-report-chip.is-disabled {
    border: 1px solid #dbe5f2;
    background: #f5f8fc;
    color: #60738c;
}

.users-row-actions .action-report {
    border: 1px solid #c7d5e8 !important;
    background: #f5f8fc !important;
    color: #174f93 !important;
}

.users-table th:nth-child(6),
.users-table td:nth-child(6) { width: 9% !important; }
.users-table th:nth-child(7),
.users-table td:nth-child(7) { width: 11% !important; }
.users-table th:nth-child(8),
.users-table td:nth-child(8) { width: 15% !important; }

/* Attendance table polish */
.attendance-table-wrap {
    overflow-x: auto !important;
}

.attendance-table {
    table-layout: fixed !important;
    min-width: 980px !important;
}

.attendance-table thead th {
    padding: 13px 10px !important;
    font-size: 12px !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
}

.attendance-table tbody td {
    padding: 12px 10px !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    vertical-align: middle !important;
}

.attendance-table th:nth-child(1),
.attendance-table td:nth-child(1) { width: 17% !important; }
.attendance-table th:nth-child(2),
.attendance-table td:nth-child(2) { width: 13% !important; }
.attendance-table th:nth-child(3),
.attendance-table td:nth-child(3) { width: 15% !important; }
.attendance-table th:nth-child(4),
.attendance-table td:nth-child(4) { width: 18% !important; white-space: normal !important; }
.attendance-table th:nth-child(5),
.attendance-table td:nth-child(5) { width: 7% !important; text-align: center !important; }
.attendance-table th:nth-child(6),
.attendance-table td:nth-child(6) { width: 8% !important; text-align: center !important; }
.attendance-table th:nth-child(7),
.attendance-table td:nth-child(7) { width: 8% !important; text-align: center !important; }
.attendance-table th:nth-child(8),
.attendance-table td:nth-child(8) { width: 14% !important; text-align: right !important; }

.attendance-table .status-box {
    min-width: 42px !important;
    padding: 4px 9px !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    line-height: 1.1 !important;
}

.attendance-actions-cell .admin-row-actions {
    justify-content: flex-end !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
}

/* Attendance table without Valid Check In column */
.attendance-table th:nth-child(1),
.attendance-table td:nth-child(1) { width: 20% !important; }
.attendance-table th:nth-child(2),
.attendance-table td:nth-child(2) { width: 15% !important; }
.attendance-table th:nth-child(3),
.attendance-table td:nth-child(3) { width: 22% !important; white-space: normal !important; }
.attendance-table th:nth-child(4),
.attendance-table td:nth-child(4) { width: 8% !important; text-align: center !important; }
.attendance-table th:nth-child(5),
.attendance-table td:nth-child(5) { width: 10% !important; text-align: center !important; }
.attendance-table th:nth-child(6),
.attendance-table td:nth-child(6) { width: 10% !important; text-align: center !important; }
.attendance-table th:nth-child(7),
.attendance-table td:nth-child(7) { width: 15% !important; text-align: right !important; }

/* Leave requests page polish */
.leave-requests-page .admin-list-panel { border-radius: 8px !important; overflow: hidden !important; }
.leave-requests-heading { min-height: 50px !important; padding: 10px 14px !important; border-bottom: 1px solid #d8e3f1 !important; }
.leave-requests-title h2 { margin: 0 !important; display: block !important; font-size: 12px !important; line-height: 1.15 !important; letter-spacing: 0 !important; }
.leave-requests-title h2 i { display: none !important; }
.leave-requests-filter-shell { padding: 12px 14px !important; background: #fbfdff !important; border-bottom: 1px solid #d8e3f1 !important; }
.leave-requests-filter-form { display: grid !important; grid-template-columns: minmax(140px, .9fr) minmax(160px, 1fr) minmax(160px, 1fr) minmax(220px, 1.4fr) auto !important; gap: 10px !important; align-items: end !important; }
.leave-requests-filter-form .admin-filter-field label { margin-bottom: 5px !important; color: #60738c !important; font-size: 11px !important; font-weight: 900 !important; line-height: 1 !important; text-transform: uppercase !important; }
.leave-requests-filter-form .form-control,
.leave-requests-filter-form .select2-container .select2-selection--single { height: 36px !important; min-height: 36px !important; border: 1px solid #cad7e8 !important; border-radius: 6px !important; background-color: #ffffff !important; color: #17243a !important; font-size: 12px !important; font-weight: 700 !important; }
.leave-request-filter-actions .btn,
.leave-request-add-btn { height: 36px !important; border-radius: 6px !important; font-size: 12px !important; font-weight: 900 !important; box-shadow: 0 8px 18px rgba(37, 90, 160, 0.18) !important; }
.leave-requests-table { table-layout: fixed !important; min-width: 920px !important; }
.leave-requests-table thead th { padding: 12px 10px !important; font-size: 11px !important; line-height: 1.15 !important; }
.leave-requests-table tbody td { padding: 11px 10px !important; font-size: 12px !important; line-height: 1.25 !important; }
.leave-requests-table th:nth-child(1), .leave-requests-table td:nth-child(1) { width: 18% !important; }
.leave-requests-table th:nth-child(2), .leave-requests-table td:nth-child(2) { width: 14% !important; }
.leave-requests-table th:nth-child(3), .leave-requests-table td:nth-child(3) { width: 16% !important; }
.leave-requests-table th:nth-child(4), .leave-requests-table td:nth-child(4) { width: 10% !important; }
.leave-requests-table th:nth-child(5), .leave-requests-table td:nth-child(5) { width: 11% !important; }
.leave-requests-table th:nth-child(6), .leave-requests-table td:nth-child(6) { width: 19% !important; }
.leave-requests-table th:nth-child(7), .leave-requests-table td:nth-child(7) { width: 12% !important; }
.leave-request-employee strong,
.leave-request-duration span,
.leave-request-approved { font-size: 12px !important; line-height: 1.2 !important; }
.leave-request-employee small,
.leave-request-muted,
.leave-request-duration small,
.leave-request-duration em { font-size: 10.5px !important; line-height: 1.25 !important; }
.leave-type-chip,
.leave-status-chip { min-width: 56px !important; justify-content: center !important; padding: 5px 10px !important; border-radius: 999px !important; font-size: 11px !important; line-height: 1 !important; white-space: nowrap !important; }
.leave-request-note span { display: -webkit-box !important; -webkit-line-clamp: 2 !important; -webkit-box-orient: vertical !important; overflow: hidden !important; color: #17243a !important; font-weight: 650 !important; }
.leave-request-row-actions { justify-content: flex-end !important; gap: 8px !important; flex-wrap: nowrap !important; }
.leave-request-no-action { display: inline-flex !important; justify-content: center !important; min-width: 76px !important; padding: 5px 9px !important; border: 1px solid #d8e3f1 !important; border-radius: 999px !important; background: #f5f8fc !important; color: #60738c !important; font-size: 11px !important; font-weight: 850 !important; }
@media (max-width: 900px) {
    .leave-requests-filter-form { grid-template-columns: 1fr 1fr !important; }
    .leave-request-filter-actions { grid-column: span 2 !important; }
}

/* ==========================================================================
   Wahyd HRM Design System v2
   Shared, accessible SaaS component layer. Keep new component work here.
   ========================================================================== */
:root {
    --ds-bg: #f7f8fa;
    --ds-surface: #ffffff;
    --ds-surface-subtle: #f8fafc;
    --ds-primary: #175cd3;
    --ds-primary-hover: #1849a9;
    --ds-primary-soft: #eff4ff;
    --ds-text: #101828;
    --ds-text-secondary: #475467;
    --ds-text-muted: #667085;
    --ds-border: #d0d5dd;
    --ds-border-subtle: #eaecf0;
    --ds-success: #067647;
    --ds-success-soft: #ecfdf3;
    --ds-warning: #b54708;
    --ds-warning-soft: #fffaeb;
    --ds-danger: #b42318;
    --ds-danger-soft: #fef3f2;
    --ds-radius-sm: 8px;
    --ds-radius: 12px;
    --ds-shadow-float: 0 12px 32px rgba(16, 24, 40, 0.12);
    --ds-focus: 0 0 0 3px rgba(23, 92, 211, 0.24);
}

html {
    font-size: 16px;
}

body {
    background: var(--ds-bg) !important;
    color: var(--ds-text) !important;
    font-family: Inter, "SF Pro Text", "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 14px !important;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 9999;
    padding: 10px 16px;
    border-radius: var(--ds-radius-sm);
    background: var(--ds-text);
    color: #fff !important;
    font-weight: 700;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--ds-primary) !important;
    outline-offset: 2px;
    box-shadow: var(--ds-focus) !important;
}

.header,
.header.dark-bg {
    min-height: 64px !important;
    padding: 0 16px !important;
    border-bottom: 1px solid var(--ds-border-subtle) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06) !important;
    backdrop-filter: blur(12px);
}

.header .logo {
    height: 64px !important;
    margin-top: 0 !important;
    padding-left: 8px !important;
    color: var(--ds-text) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 64px !important;
    letter-spacing: -0.02em;
    text-transform: none !important;
}

.header .logo b {
    color: inherit;
}

.toggle-nav {
    margin-top: 0 !important;
    padding: 10px 8px 0 0 !important;
}

.toggle-nav .app-menu-toggle {
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border: 0;
    border-radius: var(--ds-radius-sm) !important;
    background: transparent !important;
    color: var(--ds-text-secondary) !important;
    transition: background-color 140ms ease, color 140ms ease;
}

.toggle-nav .app-menu-toggle:hover {
    background: var(--ds-primary-soft) !important;
    color: var(--ds-primary) !important;
}

.top-nav,
.notification-row {
    margin-top: 10px !important;
}

.top-nav .dropdown-toggle {
    min-height: 44px;
    padding: 6px 10px !important;
    border: 1px solid transparent;
    border-radius: 999px !important;
    background: transparent !important;
}

.top-nav .dropdown-toggle:hover,
.top-nav .dropdown-toggle:focus {
    border-color: var(--ds-border-subtle);
    background: var(--ds-surface-subtle) !important;
}

.top-nav .username,
.top-nav .caret {
    color: var(--ds-text-secondary) !important;
}

.profile-ava img {
    width: 32px !important;
    height: 32px !important;
    border: 1px solid var(--ds-border) !important;
}

.account-menu {
    padding: 8px !important;
    border: 1px solid var(--ds-border-subtle) !important;
    border-radius: var(--ds-radius) !important;
    box-shadow: var(--ds-shadow-float) !important;
}

#sidebar {
    width: 240px !important;
    margin-top: 0 !important;
    border-right: 1px solid var(--ds-border-subtle) !important;
    background: var(--ds-surface) !important;
    box-shadow: none !important;
}

#main-content {
    margin-left: 240px;
    background: var(--ds-bg) !important;
}

ul.sidebar-menu {
    margin-top: 64px !important;
    padding: 20px 12px 32px !important;
}

ul.sidebar-menu li {
    margin: 2px 0 !important;
}

ul.sidebar-menu li a {
    min-height: 44px !important;
    gap: 12px !important;
    padding: 10px 12px !important;
    border-radius: var(--ds-radius-sm) !important;
    color: var(--ds-text-secondary) !important;
    font-size: 14px !important;
    font-weight: 550 !important;
}

ul.sidebar-menu li a i {
    width: 20px !important;
    color: var(--ds-text-muted) !important;
    font-size: 16px;
}

ul.sidebar-menu li a:hover,
ul.sidebar-menu li.active_li a,
ul.sidebar-menu li.active a {
    background: var(--ds-primary-soft) !important;
    color: var(--ds-primary) !important;
}

ul.sidebar-menu li.active_li a,
ul.sidebar-menu li.active a {
    box-shadow: inset 3px 0 0 var(--ds-primary);
}

.sidebar-section-label {
    margin: 24px 12px 8px !important;
    color: var(--ds-text-muted) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wrapper {
    max-width: 1600px;
    margin: 0 auto !important;
    padding: 88px 32px 40px !important;
}

.panel,
.dashboard-insight-panel,
.dashboard-quick-actions {
    border: 1px solid var(--ds-border-subtle) !important;
    border-radius: var(--ds-radius) !important;
    background: var(--ds-surface) !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04) !important;
}

#main-content .panel > .panel-heading,
#main-content .admin-list-panel > .panel-heading:not(.attendance-filter-heading),
#main-content .panel > .panel-heading:not(.attendance-filter-heading) {
    min-height: 88px !important;
    padding: 20px 24px !important;
    border-bottom: 1px solid var(--ds-border-subtle) !important;
    background: var(--ds-surface) !important;
    color: var(--ds-text) !important;
    text-transform: none !important;
}

#main-content .panel > .panel-heading:before,
#main-content .admin-list-panel > .panel-heading:before {
    content: none !important;
}

#main-content .panel-heading h1,
#main-content .panel-heading h2,
#main-content .panel-heading h3,
#main-content .admin-list-panel .panel-heading h1 {
    margin: 0 0 4px !important;
    color: var(--ds-text) !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.025em !important;
    text-transform: none !important;
}

.admin-list-eyebrow,
.dashboard-eyebrow {
    display: block;
    margin-bottom: 4px !important;
    color: var(--ds-primary) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
}

.panel-heading p,
.panel-heading small,
.header-subtitle,
.users-title-block p {
    margin: 0 !important;
    color: var(--ds-text-muted) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    text-transform: none !important;
}

.panel-body {
    padding: 24px !important;
}

.panel-body.no-padding {
    padding: 0 !important;
}

.btn,
#main-content .panel > .panel-heading .btn {
    min-height: 40px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 14px !important;
    border-radius: var(--ds-radius-sm) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 20px !important;
    text-transform: none !important;
    box-shadow: none !important;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.btn:before {
    content: none !important;
}

.btn-primary,
.btn-theme1 {
    border-color: var(--ds-primary) !important;
    background: var(--ds-primary) !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-theme1:hover {
    border-color: var(--ds-primary-hover) !important;
    background: var(--ds-primary-hover) !important;
}

.btn-default {
    border-color: var(--ds-border) !important;
    background: var(--ds-surface) !important;
    color: var(--ds-text-secondary) !important;
}

.form-control,
.select2-container .select2-selection--single {
    min-height: 42px !important;
    padding: 9px 12px !important;
    border: 1px solid var(--ds-border) !important;
    border-radius: var(--ds-radius-sm) !important;
    background: var(--ds-surface) !important;
    color: var(--ds-text) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 22px !important;
    box-shadow: none !important;
}

.form-control:focus,
.select2-container--focus .select2-selection {
    border-color: var(--ds-primary) !important;
    box-shadow: var(--ds-focus) !important;
}

.admin-filter-field label,
.control-label,
.form-group > label {
    display: block;
    margin-bottom: 6px !important;
    color: var(--ds-text-secondary) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 18px !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.users-filter-shell,
.public-holiday-filter-shell,
.leave-requests-filter-shell {
    padding: 20px 24px !important;
    border-bottom: 1px solid var(--ds-border-subtle) !important;
    background: var(--ds-surface-subtle) !important;
}

.users-filter-grid,
.public-holiday-filter-form,
.leave-requests-filter-form,
.attendance-filter-row {
    gap: 16px !important;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    background: var(--ds-surface);
}

.admin-table thead {
    background: var(--ds-surface-subtle) !important;
}

.admin-table thead th {
    padding: 12px 16px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ds-border) !important;
    background: var(--ds-surface-subtle) !important;
    color: var(--ds-text-secondary) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 18px !important;
    letter-spacing: 0.04em;
    text-align: left;
    text-transform: uppercase;
}

.admin-table tbody td {
    min-height: 52px;
    padding: 14px 16px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ds-border-subtle) !important;
    background: var(--ds-surface) !important;
    color: var(--ds-text-secondary) !important;
    font-size: 14px !important;
    line-height: 20px !important;
    text-align: left;
    vertical-align: middle !important;
}

.admin-table tbody tr:hover td {
    background: #fcfcfd !important;
}

.admin-row-actions {
    gap: 8px !important;
}

.action-btn {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ds-border) !important;
    border-radius: var(--ds-radius-sm) !important;
    background: var(--ds-surface) !important;
    color: var(--ds-text-secondary) !important;
    font-size: 14px !important;
}

.action-btn:hover {
    border-color: #b2c3e0 !important;
    background: var(--ds-primary-soft) !important;
    color: var(--ds-primary) !important;
}

.action-btn.action-danger {
    color: var(--ds-danger) !important;
}

.action-btn.action-danger:hover {
    border-color: #fecdca !important;
    background: var(--ds-danger-soft) !important;
}

.users-chip,
.users-report-chip,
.users-status,
.status-box,
.leave-type-chip,
.leave-status-chip,
.public-holiday-days,
.public-holiday-text-chip {
    min-height: 26px !important;
    display: inline-flex !important;
    align-items: center;
    padding: 4px 9px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 18px !important;
}

.admin-pagination {
    padding: 16px 24px !important;
    border-top: 1px solid var(--ds-border-subtle) !important;
    background: var(--ds-surface) !important;
}

.pagination > li > a,
.pagination > li > span {
    min-width: 36px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-color: var(--ds-border-subtle) !important;
    color: var(--ds-text-secondary) !important;
}

.dashboard-command-hero {
    padding: 24px 28px !important;
    border: 1px solid var(--ds-border-subtle) !important;
    border-radius: var(--ds-radius) !important;
    background: var(--ds-surface) !important;
    box-shadow: none !important;
}

.dashboard-command-hero h1 {
    color: var(--ds-text) !important;
    font-size: 28px !important;
    line-height: 36px !important;
    letter-spacing: -0.03em;
}

.dashboard-stat-card {
    min-height: 144px !important;
    border: 1px solid var(--ds-border-subtle) !important;
    border-radius: var(--ds-radius) !important;
    background: var(--ds-surface) !important;
    color: var(--ds-text) !important;
    box-shadow: none !important;
}

.dashboard-stat-card:before {
    content: none !important;
}

.dashboard-stat-card:hover,
.dashboard-stat-card:focus {
    border-color: #b2ccff !important;
    background: var(--ds-surface) !important;
    color: var(--ds-text) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 24, 40, 0.08) !important;
}

.dashboard-stat-icon {
    background: var(--ds-primary-soft) !important;
    color: var(--ds-primary) !important;
}

.dashboard-stat-content strong,
.dashboard-stat-content span {
    color: var(--ds-text) !important;
}

.dashboard-stat-content small {
    color: var(--ds-text-muted) !important;
}

.attendance-filter-heading {
    display: grid !important;
    grid-template-columns: minmax(180px, auto) 1fr;
    gap: 24px !important;
    align-items: end !important;
}

.attendance-page-title h1 {
    margin: 0 !important;
    color: var(--ds-text) !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    letter-spacing: -0.025em;
}

.attendance-summary-strip {
    gap: 12px !important;
    padding: 16px 24px !important;
    border-bottom: 1px solid var(--ds-border-subtle);
    background: var(--ds-surface) !important;
}

.attendance-summary-card {
    min-height: 44px !important;
    padding: 10px 12px !important;
    border: 1px solid var(--ds-border-subtle) !important;
    border-radius: var(--ds-radius-sm) !important;
    font-size: 14px !important;
}

.attendance-summary-card label {
    font-size: 12px !important;
}

.alert {
    border-radius: var(--ds-radius-sm) !important;
    font-size: 14px;
}

@media (max-width: 991px) {
    .wrapper {
        padding: 80px 20px 32px !important;
    }

    .attendance-filter-heading {
        grid-template-columns: 1fr !important;
        align-items: stretch !important;
    }

    .dashboard-workspace-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 767px) {
    .header {
        position: fixed !important;
    }

    #sidebar {
        width: min(86vw, 320px) !important;
        height: 100vh !important;
        position: fixed !important;
        overflow-y: auto !important;
        box-shadow: var(--ds-shadow-float) !important;
    }

    .sidebar-closed #sidebar {
        margin-left: -330px !important;
    }

    #main-content {
        margin-left: 0 !important;
    }

    .wrapper {
        padding: 80px 16px 24px !important;
    }

    #main-content .panel > .panel-heading,
    #main-content .panel > .panel-heading:not(.attendance-filter-heading) {
        min-height: auto !important;
        padding: 20px !important;
    }

    #main-content .panel-heading h1,
    #main-content .panel-heading h2,
    .attendance-page-title h1 {
        font-size: 24px !important;
    }

    .panel-body,
    .users-filter-shell,
    .public-holiday-filter-shell,
    .leave-requests-filter-shell {
        padding: 16px !important;
    }

    .users-filter-grid,
    .public-holiday-filter-form,
    .leave-requests-filter-form,
    .attendance-filter-row {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .admin-filter-actions,
    .users-filter-actions,
    .public-holiday-filter-actions,
    .leave-request-filter-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        grid-column: auto !important;
    }

    .admin-filter-actions .btn {
        width: 100%;
    }

    .dashboard-command-hero {
        align-items: flex-start !important;
        flex-direction: column !important;
        padding: 20px !important;
    }

    .dashboard-stat-grid {
        grid-template-columns: 1fr !important;
    }

    .admin-table-wrap {
        overflow: visible !important;
        padding: 12px !important;
        background: var(--ds-bg);
    }

    .admin-table,
    .admin-table tbody {
        min-width: 0 !important;
        display: block;
    }

    .admin-table thead {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        overflow: hidden !important;
        clip: rect(0 0 0 0) !important;
        white-space: nowrap !important;
    }

    .admin-table tbody tr {
        display: block;
        margin-bottom: 12px;
        padding: 8px 16px;
        border: 1px solid var(--ds-border-subtle);
        border-radius: var(--ds-radius);
        background: var(--ds-surface);
        box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    }

    .admin-table tbody td {
        width: 100% !important;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 10px 0 !important;
        border-bottom: 1px solid var(--ds-border-subtle) !important;
        white-space: normal !important;
        text-align: right !important;
    }

    .admin-table tbody td:last-child {
        border-bottom: 0 !important;
    }

    .admin-table tbody td:before {
        content: attr(data-label);
        flex: 0 0 38%;
        color: var(--ds-text-muted);
        font-size: 12px;
        font-weight: 600;
        text-align: left;
        text-transform: uppercase;
    }

    .admin-table tbody td[colspan] {
        display: block;
        padding: 24px !important;
        text-align: center !important;
    }

    .admin-table tbody td[colspan]:before {
        content: none;
    }

    .admin-row-actions {
        justify-content: flex-end !important;
        flex-wrap: wrap !important;
    }

    .admin-pagination {
        padding: 16px !important;
    }

    .top-nav .username,
    .top-nav .caret {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High-specificity normalization for legacy page rules. */
.users-filter-grid .admin-filter-field label,
.public-holiday-filter-form .admin-filter-field label,
.leave-requests-filter-form .admin-filter-field label,
.attendance-filter-form .admin-filter-field label {
    margin-bottom: 6px !important;
    color: var(--ds-text-secondary) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 18px !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.users-filter-grid .form-control,
.public-holiday-filter-form .form-control,
.leave-requests-filter-form .form-control,
.leave-requests-filter-form .select2-container .select2-selection--single,
.attendance-filter-form .form-control {
    min-height: 42px !important;
    height: 42px !important;
    border-color: var(--ds-border) !important;
    border-radius: var(--ds-radius-sm) !important;
    color: var(--ds-text) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

#main-content small,
#main-content em,
.leave-request-muted,
.leave-request-duration em,
.leave-request-no-action,
.attendance-report-toggle {
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 18px !important;
}

/* Screenshot refinement: application shell and employee directory. */
.header a.logo {
    position: absolute !important;
    top: 0 !important;
    left: 76px !important;
    height: 64px !important;
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--ds-text) !important;
    line-height: 64px !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.header a.logo b {
    display: inline !important;
    color: var(--ds-text) !important;
    font-size: 17px !important;
    font-weight: 750 !important;
    letter-spacing: -0.02em !important;
    text-transform: none !important;
}

.sidebar-section-label {
    display: block !important;
    min-height: 18px !important;
    padding: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#main-content .users-page-heading {
    min-height: 104px !important;
    padding: 24px !important;
}

#main-content .users-page-heading:before {
    content: none !important;
}

#main-content .users-page-heading .users-title-block > h1 {
    display: block !important;
    margin: 0 0 6px !important;
    color: var(--ds-text) !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    line-height: 36px !important;
    letter-spacing: -0.03em !important;
    text-transform: none !important;
}

#main-content .users-page-heading .users-title-block > p {
    color: var(--ds-text-muted) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

.users-heading-actions {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.users-heading-actions .btn {
    min-width: 148px !important;
}

.users-filter-shell {
    overflow: visible !important;
}

.users-filter-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(140px, 1fr)) !important;
    gap: 16px !important;
    align-items: end !important;
}

.users-filter-grid .users-search-field {
    grid-column: span 2;
}

.users-filter-grid .users-filter-actions {
    display: flex !important;
    grid-column: span 2;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    white-space: nowrap;
}

.users-filter-grid .users-filter-actions .btn {
    width: auto !important;
    min-width: 112px !important;
}

.users-table-wrap {
    overflow-x: auto !important;
    scrollbar-color: #b7c3d4 transparent;
    scrollbar-width: thin;
}

.users-table {
    min-width: 1240px !important;
    table-layout: fixed !important;
}

.users-table thead th {
    height: auto !important;
    padding: 12px 14px !important;
    border-right: 0 !important;
    background: var(--ds-surface-subtle) !important;
    color: var(--ds-text-secondary) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-align: left !important;
}

.users-table tbody td {
    height: auto !important;
    padding: 12px 14px !important;
    color: var(--ds-text-secondary) !important;
    font-size: 13px !important;
}

.users-table th:nth-child(1),
.users-table td:nth-child(1) { width: 240px !important; }
.users-table th:nth-child(2),
.users-table td:nth-child(2) { width: 120px !important; }
.users-table th:nth-child(3),
.users-table td:nth-child(3) { width: 130px !important; }
.users-table th:nth-child(4),
.users-table td:nth-child(4) { width: 150px !important; }
.users-table th:nth-child(5),
.users-table td:nth-child(5) { width: 130px !important; }
.users-table th:nth-child(6),
.users-table td:nth-child(6) { width: 100px !important; }
.users-table th:nth-child(7),
.users-table td:nth-child(7) { width: 130px !important; }
.users-table th:nth-child(8),
.users-table td:nth-child(8) {
    width: 240px !important;
    text-align: right !important;
}

.users-row-actions {
    min-width: 220px;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
}

.users-identity strong {
    color: var(--ds-text) !important;
    font-size: 14px !important;
}

.users-identity small,
.users-work-time small {
    color: var(--ds-text-muted) !important;
    font-size: 12px !important;
}

@media (min-width: 1500px) {
    .users-filter-grid {
        grid-template-columns: minmax(130px, .8fr) minmax(130px, .8fr) minmax(140px, .9fr) minmax(160px, 1fr) minmax(260px, 1.6fr) auto !important;
    }

    .users-filter-grid .users-search-field,
    .users-filter-grid .users-filter-actions {
        grid-column: auto;
    }
}

@media (max-width: 767px) {
    .header a.logo {
        left: 68px !important;
    }

    .header a.logo b {
        font-size: 16px !important;
    }

    #main-content .users-page-heading {
        min-height: auto !important;
        padding: 20px !important;
    }

    #main-content .users-page-heading .users-title-block > h1 {
        font-size: 24px !important;
        line-height: 32px !important;
    }

    .users-filter-grid .users-search-field,
    .users-filter-grid .users-filter-actions {
        grid-column: auto;
    }

    .users-table {
        min-width: 0 !important;
        table-layout: auto !important;
    }
}

/* Branded application chrome */
.header,
.header.dark-bg {
    border-bottom-color: rgba(255, 255, 255, 0.12) !important;
    background: linear-gradient(110deg, #123b6d 0%, #175cd3 62%, #1d6fe8 100%) !important;
    box-shadow: 0 4px 16px rgba(18, 59, 109, 0.22) !important;
}

.header a.logo,
.header a.logo b {
    color: #ffffff !important;
}

.toggle-nav .app-menu-toggle {
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    background: rgba(255, 255, 255, 0.10) !important;
    color: #ffffff !important;
}

.toggle-nav .app-menu-toggle:hover,
.toggle-nav .app-menu-toggle:focus {
    border-color: rgba(255, 255, 255, 0.32) !important;
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
}

.top-nav .dropdown-toggle {
    border-color: rgba(255, 255, 255, 0.16) !important;
    background: rgba(255, 255, 255, 0.10) !important;
}

.top-nav .dropdown-toggle:hover,
.top-nav .dropdown-toggle:focus {
    border-color: rgba(255, 255, 255, 0.28) !important;
    background: rgba(255, 255, 255, 0.18) !important;
}

.top-nav .username,
.top-nav .caret {
    color: #ffffff !important;
}

.profile-ava img {
    border-color: rgba(255, 255, 255, 0.72) !important;
}

#sidebar {
    border-right-color: rgba(15, 50, 92, 0.45) !important;
    background: linear-gradient(180deg, #123b6d 0%, #164c89 54%, #123f75 100%) !important;
    box-shadow: 6px 0 24px rgba(18, 59, 109, 0.14) !important;
}

ul.sidebar-menu li a {
    color: rgba(255, 255, 255, 0.82) !important;
}

ul.sidebar-menu li a i {
    color: rgba(255, 255, 255, 0.66) !important;
}

ul.sidebar-menu li a:hover {
    background: rgba(255, 255, 255, 0.10) !important;
    color: #ffffff !important;
}

ul.sidebar-menu li a:hover i {
    color: #ffffff !important;
}

ul.sidebar-menu li.active_li a,
ul.sidebar-menu li.active a {
    background: rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
    box-shadow: inset 3px 0 0 #84c5ff, 0 6px 16px rgba(6, 28, 58, 0.16) !important;
}

ul.sidebar-menu li.active_li a i,
ul.sidebar-menu li.active a i {
    color: #ffffff !important;
}

.sidebar-section-label {
    color: rgba(219, 234, 254, 0.72) !important;
}

@media (max-width: 767px) {
    #sidebar {
        box-shadow: 12px 0 32px rgba(6, 28, 58, 0.28) !important;
    }
}

/* Reference-inspired light admin shell */
.header,
.header.dark-bg {
    min-height: 66px !important;
    padding: 0 20px 0 260px !important;
    border-bottom: 1px solid #e4e7ec !important;
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: none !important;
}

.header .toggle-nav {
    display: none;
}

.header a.logo {
    left: 260px !important;
    height: 66px !important;
    line-height: 66px !important;
}

.header a.logo b {
    color: var(--ds-text) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}

.header-workspace {
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-right: 236px;
}

.header-global-search {
    width: clamp(300px, 34vw, 480px);
    height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--ds-border);
    border-radius: 12px;
    background: #ffffff;
    color: var(--ds-text-muted);
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

.header-global-search:focus-within {
    border-color: var(--ds-primary);
    box-shadow: var(--ds-focus);
}

.header-global-search input {
    width: 100%;
    height: 40px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ds-text);
    font-size: 14px;
}

.header-global-search input::placeholder {
    color: #98a2b3;
}

.header-utility-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-utility-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ds-border-subtle);
    border-radius: 12px;
    background: #ffffff;
    color: var(--ds-text-muted) !important;
    font-size: 15px;
}

.header-utility-btn:hover,
.header-utility-btn:focus {
    border-color: #b2ccff;
    background: var(--ds-primary-soft);
    color: var(--ds-primary) !important;
}

.top-nav,
.notification-row {
    position: absolute;
    top: 0;
    right: 16px;
    margin-top: 8px !important;
}

.top-nav .dropdown-toggle {
    min-width: 208px;
    height: 50px;
    justify-content: flex-start;
    padding: 5px 10px !important;
    border-color: var(--ds-border-subtle) !important;
    background: #ffffff !important;
}

.top-nav .dropdown-toggle:hover,
.top-nav .dropdown-toggle:focus {
    border-color: var(--ds-border) !important;
    background: var(--ds-surface-subtle) !important;
}

.top-nav .username {
    display: block !important;
    overflow: hidden;
    color: var(--ds-text) !important;
    font-size: 13px !important;
    font-weight: 650 !important;
    line-height: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-nav .caret {
    margin-left: auto;
    color: var(--ds-text-muted) !important;
}

.account-identity {
    min-width: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
    text-align: left;
}

.account-identity small {
    color: var(--ds-text-muted) !important;
    font-size: 11px !important;
    line-height: 16px !important;
}

#sidebar {
    z-index: 1003;
    width: 220px !important;
    border-right: 1px solid #e4e7ec !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

.sidebar-brand {
    height: 92px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--ds-border-subtle);
    color: var(--ds-text) !important;
    text-decoration: none !important;
}

.sidebar-brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(145deg, #175cd3, #0f3f7a);
    color: #ffffff;
    font-size: 20px;
    font-weight: 750;
    box-shadow: 0 6px 14px rgba(23, 92, 211, 0.20);
}

.sidebar-brand > span:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-brand strong {
    color: var(--ds-text);
    font-size: 15px;
    line-height: 20px;
}

.sidebar-brand small {
    color: var(--ds-text-muted);
    font-size: 10px;
    line-height: 14px;
}

ul.sidebar-menu {
    margin-top: 0 !important;
    padding: 18px 12px 32px !important;
}

ul.sidebar-menu li a {
    color: var(--ds-text-secondary) !important;
}

ul.sidebar-menu li a i {
    color: var(--ds-text-muted) !important;
}

ul.sidebar-menu li a:hover {
    background: #f2f4f7 !important;
    color: var(--ds-text) !important;
}

ul.sidebar-menu li a:hover i {
    color: var(--ds-primary) !important;
}

ul.sidebar-menu li.active_li a,
ul.sidebar-menu li.active a {
    background: var(--ds-primary-soft) !important;
    color: var(--ds-primary) !important;
    box-shadow: inset 3px 0 0 var(--ds-primary) !important;
}

ul.sidebar-menu li.active_li a i,
ul.sidebar-menu li.active a i {
    color: var(--ds-primary) !important;
}

.sidebar-section-label {
    color: #98a2b3 !important;
}

#main-content {
    margin-left: 220px !important;
    background: #f5f7fa !important;
}

.wrapper {
    padding: 94px 22px 40px !important;
}

.users-panel {
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

#main-content .users-page-heading {
    min-height: auto !important;
    padding: 0 0 18px !important;
    border: 0 !important;
    background: transparent !important;
}

.users-filter-shell {
    margin-bottom: 16px;
    border: 1px solid var(--ds-border-subtle) !important;
    border-radius: 12px !important;
    background: #ffffff !important;
}

.users-table-panel {
    overflow: hidden !important;
    border: 1px solid var(--ds-border-subtle);
    border-radius: 12px;
    background: #ffffff;
}

.users-table-wrap {
    border-radius: 12px;
}

.users-pagination {
    margin-top: 12px;
    border: 1px solid var(--ds-border-subtle) !important;
    border-radius: 12px;
}

@media (max-width: 1100px) {
    .header-global-search {
        width: 280px;
    }

    .header-utility-actions {
        display: none;
    }
}

@media (max-width: 767px) {
    .header,
    .header.dark-bg {
        padding: 0 12px !important;
    }

    .header .toggle-nav {
        display: block;
    }

    .header a.logo {
        left: 68px !important;
    }

    .header a.logo b {
        font-size: 15px !important;
    }

    .header-workspace {
        display: none;
    }

    .top-nav .dropdown-toggle {
        min-width: 44px;
        width: 44px;
        padding: 5px !important;
    }

    .account-identity,
    .top-nav .caret {
        display: none !important;
    }

    #sidebar {
        width: min(86vw, 320px) !important;
    }

    #main-content {
        margin-left: 0 !important;
    }

    .sidebar-brand {
        height: 80px;
    }

    .wrapper {
        padding: 86px 14px 28px !important;
    }
}

/* Compact sidebar navigation cleanup */
ul.sidebar-menu li.sidebar-section-label {
    min-height: 0 !important;
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

ul.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

ul.sidebar-menu > li {
    margin: 0 !important;
    border-left: 0 !important;
    background: transparent !important;
}

ul.sidebar-menu > li.active_li,
ul.sidebar-menu > li.active {
    border-left: 0 !important;
    background: transparent !important;
}

ul.sidebar-menu > li > a {
    min-height: 44px !important;
    padding: 10px 12px !important;
    border: 1px solid transparent !important;
    border-radius: 9px !important;
    box-shadow: none !important;
}

ul.sidebar-menu > li > a i {
    width: 22px !important;
    min-width: 22px !important;
    color: #667085 !important;
    font-size: 15px !important;
}

ul.sidebar-menu > li > a:hover {
    border-color: #eaecf0 !important;
    background: #f8fafc !important;
}

ul.sidebar-menu > li.active_li > a,
ul.sidebar-menu > li.active > a {
    border-color: #d1e0ff !important;
    background: #eff4ff !important;
    color: #175cd3 !important;
    box-shadow: inset 3px 0 0 #175cd3 !important;
}

ul.sidebar-menu > li.active_li > a i,
ul.sidebar-menu > li.active > a i {
    color: #175cd3 !important;
}

@media (max-width: 767px) {
    ul.sidebar-menu {
        gap: 2px;
    }
}

/* Wahyd HRM auth screen refresh */
.auth-login-page {
    min-height: 100vh;
    margin: 0;
    color: #0f172a;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 34%),
        linear-gradient(135deg, #f8fafc 0%, #eef4ff 46%, #f6f8fb 100%) !important;
    background-attachment: fixed !important;
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

.auth-login-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 76%);
}

.auth-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
}

.auth-card {
    width: min(100%, 440px);
    padding: 36px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(18px);
}

.auth-brand {
    margin-bottom: 28px;
    text-align: center;
}

.auth-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 176px;
    min-height: 72px;
    margin-bottom: 16px;
}

.auth-logo {
    display: block;
    max-width: 176px;
    max-height: 72px;
    width: auto;
    height: auto;
}

.auth-kicker {
    margin: 0 0 8px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-brand h1 {
    margin: 0;
    color: #0f172a;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
}

.auth-subtitle {
    max-width: 340px;
    margin: 10px auto 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.55;
}

.login-form.auth-form {
    max-width: none;
    margin: 0;
    background: transparent;
}

.auth-field {
    margin-bottom: 18px;
}

.auth-field label,
.auth-label-row label {
    display: block;
    margin: 0 0 8px;
    color: #334155;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;
}

.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.auth-link-button {
    appearance: none;
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
}

.auth-link-button:hover,
.auth-link-button:focus-visible {
    color: #174ea6;
    text-decoration: underline;
}

.auth-input-group {
    display: flex;
    align-items: center;
    min-height: 48px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.auth-input-group:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.auth-input-icon {
    flex: 0 0 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 17px;
}

.login-form.auth-form .form-control {
    width: 100%;
    min-height: 46px;
    padding: 11px 14px 11px 0;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: none !important;
}

.login-form.auth-form .form-control::placeholder {
    color: #94a3b8;
}

.auth-submit.btn-theme,
.login-form.auth-form .auth-submit {
    min-height: 48px;
    margin-top: 8px;
    border: 0 !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, #2563eb, #174ea6) !important;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24);
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.auth-submit.btn-theme:hover,
.auth-submit.btn-theme:focus-visible {
    background: linear-gradient(135deg, #1d4ed8, #123f86) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.28);
    filter: saturate(1.04);
}

.auth-submit.btn-theme:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.auth-form .alert {
    margin: 0 0 18px;
    border-radius: 8px;
    font-size: 13px;
    text-align: left;
}

@media (max-width: 575px) {
    .auth-shell {
        align-items: flex-start;
        padding: 24px 16px;
    }

    .auth-card {
        padding: 28px 20px;
    }

    .auth-brand h1 {
        font-size: 24px;
    }

    .auth-subtitle {
        font-size: 13px;
    }

    .auth-logo-wrap,
    .auth-logo {
        max-width: 152px;
    }
}

/* Auth input focus cleanup: keep one clear focus ring */
.login-form.auth-form .form-control:focus,
.login-form.auth-form .form-control:focus-visible {
    outline: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
}

.auth-input-group {
    overflow: hidden;
}

.auth-input-group:focus-within .auth-input-icon {
    color: #2563eb;
}

/* Auth input fill cleanup */
.login-form.auth-form .form-control,
.login-form.auth-form .form-control:focus,
.login-form.auth-form .form-control:focus-visible {
    background-color: transparent !important;
    background-image: none !important;
}

.login-form.auth-form input:-webkit-autofill,
.login-form.auth-form input:-webkit-autofill:hover,
.login-form.auth-form input:-webkit-autofill:focus,
.login-form.auth-form input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: #0f172a !important;
    caret-color: #0f172a;
    transition: background-color 9999s ease-out 0s;
}

/* Users table without role column */
.users-table {
    min-width: 900px !important;
}

.users-table th:nth-child(1),
.users-table td:nth-child(1) { width: 260px !important; }
.users-table th:nth-child(2),
.users-table td:nth-child(2) { width: 140px !important; }
.users-table th:nth-child(3),
.users-table td:nth-child(3) { width: 160px !important; }
.users-table th:nth-child(4),
.users-table td:nth-child(4) { width: 130px !important; }
.users-table th:nth-child(5),
.users-table td:nth-child(5) { width: 110px !important; }
.users-table th:nth-child(6),
.users-table td:nth-child(6) { width: 120px !important; }
.users-table th:nth-child(7),
.users-table td:nth-child(7) {
    width: 160px !important;
    text-align: right !important;
}

/* Users table compact identity-only layout */
.users-table {
    min-width: 640px !important;
}

.users-table th:nth-child(1),
.users-table td:nth-child(1) { width: 42% !important; }
.users-table th:nth-child(2),
.users-table td:nth-child(2) { width: 16% !important; }
.users-table th:nth-child(3),
.users-table td:nth-child(3) { width: 16% !important; }
.users-table th:nth-child(4),
.users-table td:nth-child(4) {
    width: 26% !important;
    text-align: right !important;
}

/* Premium pagination refresh */
.admin-pagination {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    min-height: 58px;
    padding: 12px 24px !important;
    border-top: 1px solid #e5edf7 !important;
    background: #ffffff !important;
}

.pagination-shell {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}

.pagination.admin-pagination-list {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    float: none !important;
    margin: 0 !important;
    padding: 4px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.pagination.admin-pagination-list > li {
    display: inline-flex;
}

.pagination.admin-pagination-list > li > a,
.pagination.admin-pagination-list > li > span {
    min-width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 10px !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: #475569 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

.pagination.admin-pagination-list > li > a:hover,
.pagination.admin-pagination-list > li > a:focus {
    background: #eef4ff !important;
    color: #175cd3 !important;
    text-decoration: none !important;
}

.pagination.admin-pagination-list > .active > span,
.pagination.admin-pagination-list > .active > a {
    background: #175cd3 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 14px rgba(23, 92, 211, 0.24) !important;
}

.pagination.admin-pagination-list > .disabled > span,
.pagination.admin-pagination-list > .disabled > a {
    color: #98a2b3 !important;
    cursor: not-allowed !important;
    opacity: 0.75;
}

@media (max-width: 575px) {
    .admin-pagination {
        justify-content: center;
        padding: 12px !important;
    }

    .pagination-shell {
        justify-content: center;
    }

    .pagination.admin-pagination-list > li > a,
    .pagination.admin-pagination-list > li > span {
        min-width: 30px !important;
        height: 30px !important;
        padding: 0 8px !important;
        font-size: 11px !important;
    }
}

/* Profile page refresh */
.profile-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 28px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.profile-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #175cd3;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.profile-hero h1 {
    margin: 0;
    color: #0f172a;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 850;
}

.profile-hero p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.profile-secondary-action {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid #d7e3f4;
    border-radius: 8px;
    background: #f8fafc;
    color: #174ea6 !important;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
    white-space: nowrap;
}

.profile-secondary-action:hover,
.profile-secondary-action:focus {
    border-color: #b7ccf0;
    background: #eef4ff;
    color: #175cd3 !important;
}

.profile-card {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.profile-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px;
    border-bottom: 1px solid #e8eef7;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.profile-avatar-xl {
    width: 72px;
    height: 72px;
    display: inline-flex;
    flex: 0 0 72px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #cfe0f8;
    border-radius: 8px;
    background: linear-gradient(145deg, #175cd3, #123f86);
    color: #ffffff;
    font-size: 24px;
    font-weight: 850;
    box-shadow: 0 12px 24px rgba(23, 92, 211, 0.18);
}

.profile-avatar-xl img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-summary h2 {
    margin: 0;
    color: #0f172a;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 850;
}

.profile-summary p {
    margin: 4px 0 10px;
    color: #64748b;
    font-size: 13px;
}

.profile-status-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border: 1px solid #bde8cf;
    border-radius: 999px;
    background: #ecfdf3;
    color: #087b37;
    font-size: 11px;
    font-weight: 850;
}

.profile-form {
    padding: 28px;
}

.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-field label {
    margin: 0;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
}

.profile-field .form-control {
    width: 100%;
    height: 44px !important;
    padding: 10px 12px !important;
    border: 1px solid #cbd8e8 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 14px !important;
    font-weight: 600;
    box-shadow: none !important;
}

.profile-field .form-control:focus {
    border-color: #175cd3 !important;
    box-shadow: 0 0 0 4px rgba(23, 92, 211, 0.12) !important;
}

.profile-field .form-control[readonly] {
    background: #f8fafc !important;
    color: #64748b !important;
    cursor: not-allowed;
}

.profile-field small {
    color: #7a8aa0;
    font-size: 12px;
    line-height: 1.4;
}

.profile-photo-field {
    grid-column: 1 / -1;
}

.profile-upload-box {
    min-height: 76px;
    display: flex !important;
    align-items: center;
    gap: 14px;
    margin: 0 !important;
    padding: 16px;
    border: 1px dashed #b8c9df;
    border-radius: 8px;
    background: #f8fbff;
    color: #334155;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.profile-upload-box:hover,
.profile-upload-box:focus-within {
    border-color: #175cd3;
    background: #eef4ff;
    box-shadow: 0 0 0 4px rgba(23, 92, 211, 0.08);
}

.profile-upload-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #e8f1ff;
    color: #175cd3;
    font-size: 18px;
}

.profile-upload-box strong,
.profile-upload-box small {
    display: block;
}

.profile-upload-box strong {
    color: #0f172a;
    font-size: 13px;
    font-weight: 850;
}

.profile-upload-box small {
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.profile-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #e8eef7;
}

.profile-save-btn {
    min-width: 132px;
    min-height: 42px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0 !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, #2563eb, #174ea6) !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 850 !important;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

.profile-save-btn:hover,
.profile-save-btn:focus {
    background: linear-gradient(135deg, #1d4ed8, #123f86) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

@media (max-width: 767px) {
    .profile-hero,
    .profile-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-form-grid {
        grid-template-columns: 1fr;
    }

    .profile-hero,
    .profile-summary,
    .profile-form {
        padding: 20px;
    }

    .profile-secondary-action,
    .profile-save-btn {
        width: 100%;
    }
}

/* Departments page refresh */
.departments-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.directory-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 28px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.directory-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #175cd3;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.directory-hero h1 {
    margin: 0;
    color: #0f172a;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 850;
}

.directory-hero p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.directory-primary-action {
    min-height: 42px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, #2563eb, #174ea6) !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 850 !important;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

.directory-primary-action span {
    width: 17px;
    height: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
}

.directory-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.directory-summary-card {
    padding: 16px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.directory-summary-card span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
    text-transform: uppercase;
}

.directory-summary-card strong {
    display: block;
    margin-top: 6px;
    color: #0f172a;
    font-size: 26px;
    line-height: 1;
    font-weight: 900;
}

.directory-summary-card.is-success strong {
    color: #087b37;
}

.directory-summary-card.is-muted strong {
    color: #64748b;
}

.directory-panel {
    overflow: hidden !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08) !important;
}

.directory-panel-heading {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: auto !important;
    padding: 18px 22px !important;
    border-bottom: 1px solid #e8eef7 !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
}

.directory-panel-heading h2 {
    margin: 0;
    color: #0f172a;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 850;
}

.directory-panel-heading p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 12px;
    font-weight: 650;
}

.directory-table-panel {
    background: #ffffff;
}

.departments-table {
    margin: 0 !important;
    min-width: 720px;
    table-layout: fixed;
}

.departments-table th:nth-child(1),
.departments-table td:nth-child(1) { width: 58%; }
.departments-table th:nth-child(2),
.departments-table td:nth-child(2) { width: 18%; }
.departments-table th:nth-child(3),
.departments-table td:nth-child(3) { width: 24%; }

.departments-table thead th {
    height: 42px !important;
    padding: 11px 14px !important;
    background: #24599f !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    text-align: left !important;
    text-transform: uppercase;
}

.departments-table thead th:last-child {
    text-align: right !important;
}

.departments-table tbody td {
    height: 56px !important;
    padding: 10px 14px !important;
    border-top: 1px solid #e8eef7 !important;
    color: #172033 !important;
    font-size: 13px !important;
    font-weight: 650 !important;
    vertical-align: middle !important;
}

.departments-table tbody tr:nth-child(even) td {
    background: #f8fbff !important;
}

.departments-table tbody tr:hover td {
    background: #eef5ff !important;
}

.department-name-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.department-avatar {
    width: 34px;
    height: 34px;
    display: inline-flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid #cfe0f8;
    border-radius: 8px;
    background: #e8f1ff;
    color: #175cd3;
    font-size: 13px;
    font-weight: 900;
}

.department-name-cell strong {
    color: #0f172a;
    font-size: 13px;
    font-weight: 850;
}

.department-status-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 850;
}

.department-status-chip.is-active {
    border: 1px solid #bde8cf;
    background: #ecfdf3;
    color: #087b37;
}

.department-status-chip.is-inactive {
    border: 1px solid #ffd4dc;
    background: #fff1f3;
    color: #c01048;
}

.department-row-actions {
    justify-content: flex-end;
}

.department-row-actions .action-btn {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    border-radius: 7px !important;
}

.department-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}

.department-modal .modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e8eef7;
    background: #f8fbff;
}

.department-modal .modal-title {
    color: #0f172a;
    font-size: 16px;
    font-weight: 850;
}

.department-modal .modal-body {
    padding: 20px;
}

.department-modal .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #e8eef7;
    background: #ffffff;
}

.department-modal .btn-default {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #d7e3f4;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

@media (max-width: 767px) {
    .directory-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 20px;
    }

    .directory-primary-action {
        width: 100%;
    }

    .directory-summary-grid {
        grid-template-columns: 1fr;
    }

    .directory-panel-heading {
        padding: 16px !important;
    }
}

/* Offices page refresh */
.offices-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.offices-table {
    margin: 0 !important;
    min-width: 980px;
    table-layout: fixed;
}

.offices-table th:nth-child(1),
.offices-table td:nth-child(1) { width: 22%; }
.offices-table th:nth-child(2),
.offices-table td:nth-child(2) { width: 36%; }
.offices-table th:nth-child(3),
.offices-table td:nth-child(3) { width: 15%; }
.offices-table th:nth-child(4),
.offices-table td:nth-child(4) { width: 12%; }
.offices-table th:nth-child(5),
.offices-table td:nth-child(5) { width: 15%; }

.offices-table thead th {
    height: 42px !important;
    padding: 11px 14px !important;
    background: #24599f !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    text-align: left !important;
    text-transform: uppercase;
}

.offices-table thead th:last-child {
    text-align: right !important;
}

.offices-table tbody td {
    height: 58px !important;
    padding: 10px 14px !important;
    border-top: 1px solid #e8eef7 !important;
    color: #172033 !important;
    font-size: 13px !important;
    font-weight: 650 !important;
    vertical-align: middle !important;
}

.offices-table tbody tr:nth-child(even) td {
    background: #f8fbff !important;
}

.offices-table tbody tr:hover td {
    background: #eef5ff !important;
}

.office-name-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.office-avatar {
    width: 34px;
    height: 34px;
    display: inline-flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid #cfe0f8;
    border-radius: 8px;
    background: #e8f1ff;
    color: #175cd3;
    font-size: 13px;
    font-weight: 900;
}

.office-name-cell strong,
.office-name-cell small {
    display: block;
}

.office-name-cell strong {
    overflow: hidden;
    color: #0f172a;
    font-size: 13px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.office-name-cell small {
    margin-top: 3px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.office-address {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: #334155;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.office-phone-chip {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    max-width: 100%;
    padding: 0 10px;
    overflow: hidden;
    border: 1px solid #d7e3f4;
    border-radius: 999px;
    background: #f8fbff;
    color: #174ea6;
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.office-row-actions {
    justify-content: flex-end;
}

.office-row-actions .action-btn {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    border-radius: 7px !important;
}

@media (max-width: 767px) {
    .offices-table {
        min-width: 860px;
    }
}

/* Attendance check-in/check-out map option */
.attendance-row-actions .attendance-map-btn {
    border: 1px solid #cfe3ff !important;
    background: #eef6ff !important;
    color: #1d5fbf !important;
    cursor: pointer;
}

.attendance-row-actions .attendance-map-btn:hover,
.attendance-row-actions .attendance-map-btn:focus {
    border-color: #9fc3f7 !important;
    background: #dfeeff !important;
    color: #164b99 !important;
}

.attendance-row-actions .attendance-map-btn.is-disabled,
.attendance-row-actions .attendance-map-btn:disabled {
    border-color: #e2e8f0 !important;
    background: #f3f6fa !important;
    color: #9aa7b8 !important;
    cursor: not-allowed;
    opacity: 0.72;
}

.attendance-location-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}

.attendance-location-modal .modal-header {
    min-height: auto;
    padding: 16px 20px;
    border-bottom: 1px solid #e4ecf7;
    background: #f8fbff;
}

.attendance-location-modal .modal-title {
    margin: 2px 0 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 850;
    letter-spacing: -0.02em;
}

.attendance-map-eyebrow {
    display: block;
    color: #24599f;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.attendance-map-subtitle {
    margin: 4px 0 0;
    color: #5e718b;
    font-size: 12px;
    font-weight: 650;
}

.attendance-location-modal .modal-body {
    padding: 18px 20px 20px;
    background: #ffffff;
}

.attendance-location-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.attendance-location-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 10px 12px;
    border: 1px solid #dce7f5;
    border-radius: 10px;
    background: #f8fbff;
}

.attendance-location-card small,
.attendance-location-card strong {
    display: block;
}

.attendance-location-card small {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.attendance-location-card strong {
    margin-top: 2px;
    color: #102033;
    font-size: 12px;
    font-weight: 800;
    word-break: break-word;
}

.attendance-location-dot {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    border-radius: 999px;
    box-shadow: 0 0 0 4px rgba(36, 89, 159, 0.12);
}

.attendance-location-card.is-checkin .attendance-location-dot {
    background: #16a34a;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.13);
}

.attendance-location-card.is-checkout .attendance-location-dot {
    background: #24599f;
}

.attendance-location-map {
    width: 100%;
    height: 460px;
    overflow: hidden;
    border: 1px solid #d8e3f1;
    border-radius: 12px;
    background: #eef4fb;
}

.attendance-map-empty {
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid #ffd4dc;
    border-radius: 10px;
    background: #fff1f3;
    color: #b42348;
    font-size: 12px;
    font-weight: 750;
}

@media (max-width: 767px) {
    .attendance-location-summary {
        grid-template-columns: 1fr;
    }

    .attendance-location-map {
        height: 340px;
    }
}

/* Sub offices page refresh */
.sub-offices-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sub-offices-hero {
    margin-bottom: 16px;
}

.sub-offices-summary-grid {
    margin-bottom: 16px;
}

.sub-offices-table {
    margin: 0 !important;
    min-width: 980px;
    table-layout: fixed;
}

.sub-offices-table th:nth-child(1),
.sub-offices-table td:nth-child(1) { width: 24%; }
.sub-offices-table th:nth-child(2),
.sub-offices-table td:nth-child(2) { width: 16%; }
.sub-offices-table th:nth-child(3),
.sub-offices-table td:nth-child(3) { width: 31%; }
.sub-offices-table th:nth-child(4),
.sub-offices-table td:nth-child(4) { width: 13%; }
.sub-offices-table th:nth-child(5),
.sub-offices-table td:nth-child(5) { width: 8%; }
.sub-offices-table th:nth-child(6),
.sub-offices-table td:nth-child(6) { width: 8%; }

.sub-offices-table thead th {
    height: 42px !important;
    padding: 11px 14px !important;
    border-right: 1px solid rgba(255, 255, 255, 0.14) !important;
    background: #24599f !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
    text-align: left !important;
    text-transform: uppercase;
    white-space: nowrap;
}

.sub-offices-table thead th:last-child {
    border-right: 0 !important;
    text-align: right !important;
}

.sub-offices-table tbody td {
    height: 58px !important;
    padding: 10px 14px !important;
    border-top: 1px solid #e8eef7 !important;
    color: #172033 !important;
    font-size: 13px !important;
    font-weight: 650 !important;
    vertical-align: middle !important;
}

.sub-offices-table tbody tr:nth-child(even) td {
    background: #f8fbff !important;
}

.sub-offices-table tbody tr:hover td {
    background: #eef5ff !important;
}

.sub-office-name-cell strong,
.sub-office-name-cell small {
    display: block;
}

.sub-office-name-cell strong {
    max-width: 160px;
}

.sub-office-parent-chip {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 26px;
    padding: 0 10px;
    overflow: hidden;
    border: 1px solid #d7e3f4;
    border-radius: 999px;
    background: #f8fbff;
    color: #174ea6;
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.office-status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
}

.office-status-chip.is-active {
    border: 1px solid #bfeecf;
    background: #effcf5;
    color: #15803d;
}

.office-status-chip.is-inactive {
    border: 1px solid #ffd2dc;
    background: #fff1f3;
    color: #be123c;
}

.sub-office-row-actions {
    justify-content: flex-end;
}

.sub-office-row-actions .action-btn {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    border-radius: 7px !important;
}

.directory-empty-state {
    height: 160px !important;
    padding: 28px !important;
    color: #64748b !important;
    text-align: center !important;
}

.directory-empty-state i,
.directory-empty-state strong,
.directory-empty-state span {
    display: block;
}

.directory-empty-state i {
    margin-bottom: 10px;
    color: #9bb4d6;
    font-size: 28px;
}

.directory-empty-state strong {
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
}

.directory-empty-state span {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 767px) {
    .sub-offices-table {
        min-width: 860px;
    }
}

/* Admin portal mobile responsiveness safety net */
html,
body {
    max-width: 100%;
}

img,
canvas,
svg,
video,
iframe {
    max-width: 100%;
}

#main-content .table-responsive,
#main-content .admin-table-wrap,
#main-content .attendance-table-wrap,
#main-content .users-table-wrap,
#main-content .leave-requests-table-wrap,
#main-content .leave-history-table-wrap,
#main-content .departments-table-wrap,
#main-content .offices-table-wrap,
#main-content .sub-offices-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

#main-content table {
    max-width: none;
}

@media (max-width: 1199px) {
    .users-filter-grid,
    .attendance-filter-row,
    .leave-requests-filter-form,
    .leave-history-filter-form,
    .reports-filter-form,
    .public-holiday-filter-form {
        gap: 10px !important;
    }

    .dashboard-stat-grid,
    .directory-summary-grid,
    .sub-offices-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 991px) {
    body {
        overflow-x: hidden;
    }

    .wrapper {
        padding: 82px 16px 24px !important;
    }

    #main-content,
    #container.sidebar-closed #main-content,
    #container.sidebar-close #main-content {
        width: 100% !important;
        margin-left: 0 !important;
    }

    .header-global-search {
        width: min(360px, 44vw) !important;
    }

    .dashboard-main-grid,
    .profile-content-grid,
    .reports-grid,
    .settings-grid {
        grid-template-columns: 1fr !important;
    }

    .users-filter-grid,
    .attendance-filter-row,
    .leave-requests-filter-form,
    .leave-history-filter-form,
    .reports-filter-form,
    .public-holiday-filter-form {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        align-items: end !important;
    }

    .attendance-filter-row > *,
    .users-filter-grid > *,
    .leave-requests-filter-form > *,
    .leave-history-filter-form > *,
    .reports-filter-form > *,
    .public-holiday-filter-form > * {
        width: 100% !important;
        min-width: 0 !important;
    }

    .attendance-search-btn,
    .users-filter-actions,
    .leave-request-filter-actions {
        grid-column: 1 / -1 !important;
    }

    #main-content .panel,
    #main-content .admin-list-panel,
    .directory-hero,
    .dashboard-hero,
    .profile-card,
    .auth-card {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    html {
        font-size: 14px;
    }

    body {
        min-width: 0 !important;
        background: #f5f7fa !important;
    }

    .header,
    .header.dark-bg {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: 0 !important;
        z-index: 1010 !important;
        height: 64px !important;
        min-height: 64px !important;
        padding: 0 12px !important;
        border-bottom: 1px solid #e4e7ec !important;
        background: rgba(255, 255, 255, 0.96) !important;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08) !important;
        backdrop-filter: blur(12px);
    }

    .toggle-nav {
        top: 14px !important;
        left: 12px !important;
        z-index: 1020 !important;
    }

    .toggle-nav .app-menu-toggle,
    .app-menu-toggle {
        width: 38px !important;
        height: 38px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: 1px solid #d8e3f1 !important;
        border-radius: 10px !important;
        background: #ffffff !important;
        color: #34465d !important;
    }

    .header a.logo,
    .header .logo {
        display: block !important;
        position: absolute !important;
        left: 58px !important;
        max-width: 42vw !important;
        height: 64px !important;
        overflow: hidden;
        color: #111827 !important;
        font-size: 13px !important;
        font-weight: 850 !important;
        line-height: 64px !important;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .header-workspace,
    .header-global-search,
    .header-utility-actions {
        display: none !important;
    }

    .top-nav.notification-row {
        float: right !important;
        margin-top: 8px !important;
        margin-right: 0 !important;
    }

    .top-nav .dropdown-toggle {
        min-width: 44px !important;
        max-width: 152px !important;
        min-height: 46px !important;
        padding: 6px 8px !important;
        border: 1px solid #d8e3f1 !important;
        border-radius: 999px !important;
        background: #ffffff !important;
    }

    .top-nav .profile-ava img {
        width: 34px !important;
        height: 34px !important;
    }

    .top-nav .account-identity {
        display: none !important;
    }

    .top-nav .caret {
        margin-left: 4px !important;
    }

    .top-nav .dropdown-menu,
    .account-menu {
        right: 0 !important;
        left: auto !important;
        min-width: 210px !important;
        border-radius: 12px !important;
    }

    #sidebar {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        z-index: 1009 !important;
        width: min(84vw, 300px) !important;
        height: 100vh !important;
        max-height: 100vh !important;
        padding-top: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        background: #ffffff !important;
        box-shadow: 16px 0 34px rgba(15, 23, 42, 0.20) !important;
        transition: margin-left 180ms ease !important;
        -webkit-overflow-scrolling: touch;
    }

    #container.sidebar-closed #sidebar,
    #container.sidebar-close #sidebar,
    .sidebar-closed #sidebar,
    .sidebar-close #sidebar {
        margin-left: -310px !important;
    }

    #container:not(.sidebar-closed):not(.sidebar-close) #sidebar {
        margin-left: 0 !important;
    }

    #sidebar > ul,
    ul.sidebar-menu {
        width: 100% !important;
        padding: 12px 12px 28px !important;
    }

    .sidebar-brand {
        height: 78px !important;
        padding: 16px !important;
    }

    ul.sidebar-menu > li > a {
        min-height: 42px !important;
        padding: 9px 12px !important;
        font-size: 13px !important;
    }

    #main-content {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 0 !important;
    }

    .wrapper {
        width: 100% !important;
        min-height: calc(100vh - 64px) !important;
        padding: 80px 12px 20px !important;
        overflow-x: hidden !important;
    }

    .row {
        margin-right: -8px !important;
        margin-left: -8px !important;
    }

    [class*="col-"] {
        padding-right: 8px !important;
        padding-left: 8px !important;
    }

    #main-content .panel,
    #main-content .admin-list-panel,
    .directory-panel,
    .dashboard-chart-card,
    .dashboard-action-card,
    .profile-card {
        margin-bottom: 14px !important;
        overflow: hidden !important;
        border-radius: 12px !important;
    }

    #main-content .panel > .panel-heading,
    #main-content .admin-list-panel > .panel-heading,
    .directory-hero,
    .dashboard-hero,
    .profile-hero,
    .users-page-heading {
        align-items: stretch !important;
        flex-direction: column !important;
        gap: 12px !important;
        min-height: auto !important;
        padding: 16px !important;
    }

    #main-content .panel-heading h1,
    #main-content .panel-heading h2,
    .directory-title h1,
    .dashboard-hero h1,
    .profile-hero-copy h1,
    .attendance-page-title h1 {
        font-size: 22px !important;
        line-height: 1.2 !important;
    }

    #main-content .panel-heading p,
    .directory-title p,
    .dashboard-hero p,
    .profile-hero-copy p {
        font-size: 12px !important;
        line-height: 1.45 !important;
    }

    #main-content .panel-heading .btn,
    #main-content .panel-heading a.btn,
    .directory-primary-action,
    .profile-save-btn,
    .auth-submit {
        width: 100% !important;
        justify-content: center !important;
        margin-left: 0 !important;
    }

    .panel-body {
        padding: 14px !important;
    }

    .panel-body.no-padding,
    .no-padding,
    .directory-table-panel {
        padding: 0 !important;
    }

    .dashboard-stat-grid,
    .directory-summary-grid,
    .sub-offices-summary-grid,
    .profile-summary,
    .leave-balance-grid,
    .leave-balance-grid-usage {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .users-filter-grid,
    .attendance-filter-row,
    .leave-requests-filter-form,
    .leave-history-filter-form,
    .reports-filter-form,
    .public-holiday-filter-form {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .attendance-filter-row .form-control,
    .attendance-filter-row .select2-container,
    .users-filter-grid .form-control,
    .users-filter-grid .select2-container,
    .leave-requests-filter-form .form-control,
    .leave-requests-filter-form .select2-container,
    .form-control,
    select.form-control,
    textarea.form-control {
        width: 100% !important;
        min-width: 0 !important;
        height: 40px !important;
        font-size: 13px !important;
    }

    textarea.form-control {
        height: auto !important;
        min-height: 96px !important;
    }

    .select2-container {
        width: 100% !important;
    }

    .form-horizontal .form-group {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    .form-horizontal .control-label,
    .form-horizontal .col-sm-2,
    .form-horizontal .col-sm-3,
    .form-horizontal .col-sm-4,
    .form-horizontal .col-sm-5,
    .form-horizontal .col-sm-6,
    .form-horizontal .col-sm-7,
    .form-horizontal .col-sm-8,
    .form-horizontal .col-sm-9,
    .form-horizontal .col-sm-10 {
        width: 100% !important;
        float: none !important;
        text-align: left !important;
    }

    .btn,
    .btn-theme,
    .btn-theme1 {
        min-height: 38px !important;
        white-space: normal !important;
    }

    .admin-row-actions,
    .attendance-row-actions,
    .users-row-actions,
    .office-row-actions,
    .sub-office-row-actions,
    .department-row-actions,
    .leave-request-row-actions {
        flex-wrap: wrap !important;
        justify-content: flex-end !important;
        gap: 6px !important;
    }

    .action-btn {
        width: 32px !important;
        min-width: 32px !important;
        height: 32px !important;
    }

    .table-responsive::after,
    .admin-table-wrap::after {
        content: "Swipe horizontally to see more";
        display: block;
        padding: 8px 12px;
        border-top: 1px solid #e4e7ec;
        background: #f8fafc;
        color: #667085;
        font-size: 11px;
        font-weight: 750;
        text-align: center;
    }

    .admin-table,
    .users-table,
    .attendance-table,
    .leave-requests-table,
    .leave-history-table,
    .departments-table,
    .offices-table,
    .sub-offices-table,
    .public-holiday-table,
    .leave-settings-table,
    table.dataTable,
    .table {
        min-width: 760px !important;
    }

    .users-table,
    .attendance-table,
    .leave-requests-table,
    .offices-table,
    .sub-offices-table {
        min-width: 860px !important;
    }

    .admin-table thead th,
    .table thead th,
    table.dataTable thead th {
        padding: 10px 12px !important;
        font-size: 11px !important;
        white-space: nowrap !important;
    }

    .admin-table tbody td,
    .table tbody td,
    table.dataTable tbody td {
        padding: 10px 12px !important;
        font-size: 12px !important;
    }

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        width: 100% !important;
        float: none !important;
        margin: 8px 0 !important;
        text-align: left !important;
    }

    .dataTables_wrapper .dataTables_filter input,
    .dataTables_wrapper .dataTables_length select {
        width: 100% !important;
        margin: 6px 0 0 !important;
    }

    .pagination-shell,
    .admin-pagination,
    .pagination,
    .dataTables_paginate {
        justify-content: center !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
    }

    .modal-dialog,
    .modal-lg,
    .modal-md,
    .modal-sm {
        width: auto !important;
        max-width: calc(100vw - 24px) !important;
        margin: 76px 12px 16px !important;
    }

    .modal-content {
        max-height: calc(100vh - 96px) !important;
        overflow: hidden !important;
        border-radius: 12px !important;
    }

    .modal-body {
        max-height: calc(100vh - 190px) !important;
        overflow-y: auto !important;
        padding: 16px !important;
        -webkit-overflow-scrolling: touch;
    }

    .modal-header,
    .modal-footer {
        padding: 14px 16px !important;
    }

    .modal-footer {
        display: flex !important;
        flex-direction: column-reverse !important;
        gap: 8px !important;
    }

    .modal-footer .btn {
        width: 100% !important;
        margin: 0 !important;
    }

    #googleMap,
    .attendance-location-map,
    .profile-map,
    .map-container {
        height: 320px !important;
        min-height: 320px !important;
    }

    .auth-card {
        width: 100% !important;
        max-width: 420px !important;
        padding: 28px 20px !important;
    }
}

@media (max-width: 480px) {
    .wrapper {
        padding-right: 10px !important;
        padding-left: 10px !important;
    }

    .header .logo {
        max-width: 38vw !important;
        font-size: 12px !important;
    }

    .top-nav .dropdown-toggle {
        max-width: 64px !important;
    }

    #sidebar {
        width: 88vw !important;
    }

    .dashboard-stat-card,
    .directory-summary-card,
    .attendance-summary-card,
    .profile-summary-card {
        min-height: auto !important;
        padding: 14px !important;
    }

    .panel-body {
        padding: 12px !important;
    }

    .admin-table,
    .users-table,
    .attendance-table,
    .leave-requests-table,
    .offices-table,
    .sub-offices-table {
        min-width: 820px !important;
    }
}

/* Attendance date range filter reliability */
.attendance-filter-heading .attendance-filter-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    align-items: center !important;
    justify-content: flex-end !important;
}

.attendance-filter-heading .attendance-filter-row > .form-control,
.attendance-filter-heading .attendance-filter-row > .select2-container {
    flex: 1 1 138px !important;
    min-width: 138px !important;
    max-width: 230px !important;
}

.attendance-filter-heading .attendance-filter-row #user_id + .select2-container,
.attendance-filter-heading .attendance-filter-row #user_id {
    flex-basis: 190px !important;
    max-width: 260px !important;
}

.attendance-filter-heading .attendance-date-input {
    flex-basis: 142px !important;
    max-width: 160px !important;
}

.attendance-filter-heading .attendance-search-btn {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 96px !important;
    gap: 7px !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
}

@media (max-width: 767px) {
    .attendance-filter-heading .attendance-filter-row {
        justify-content: stretch !important;
    }

    .attendance-filter-heading .attendance-filter-row > .form-control,
    .attendance-filter-heading .attendance-filter-row > .select2-container,
    .attendance-filter-heading .attendance-filter-row #user_id + .select2-container,
    .attendance-filter-heading .attendance-filter-row #user_id,
    .attendance-filter-heading .attendance-date-input,
    .attendance-filter-heading .attendance-search-btn {
        flex: 1 1 100% !important;
        max-width: none !important;
        width: 100% !important;
    }
}

/* Employee location tracking control */
.users-location-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 26px;
    padding: 4px 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.users-location-chip.is-enabled { color: #16834b; background: #ecfbf2; border-color: #bdeecf; }
.users-location-chip.is-disabled { color: #64748b; background: #f1f5f9; border-color: #dbe3ec; }
.users-row-actions .action-location { color: #245bb2; background: #eef4ff; border-color: #cfe0ff; }
.users-row-actions .action-location:hover,
.users-row-actions .action-location:focus { color: #fff; background: #245bb2; border-color: #245bb2; }.location-setting-toggle { margin-top: 8px; }
.location-setting-toggle span { color: #475569; }
/* Employee page refinement */
#main-content .users-page-heading {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    min-height: 76px !important;
    padding: 18px 22px !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e7edf5 !important;
}
#main-content .users-page-heading .users-title-block h1 {
    margin: 0 !important;
    color: #102a56 !important;
    font-size: 20px !important;
    font-weight: 750 !important;
    letter-spacing: -.01em;
}
#main-content .users-page-heading .users-title-block p {
    margin: 4px 0 0 !important;
    color: #74839a !important;
    font-size: 12px !important;
}
#main-content .users-filter-shell {
    padding: 16px 22px 18px !important;
    background: #fbfcfe !important;
    border-bottom: 1px solid #e7edf5 !important;
}
#main-content .users-filter-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(150px, 1fr)) !important;
    gap: 12px 14px !important;
    align-items: end !important;
}
#main-content .users-filter-grid .admin-filter-field label {
    display: block !important;
    margin: 0 0 6px !important;
    color: #52627a !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}
#main-content .users-filter-grid .form-control,
#main-content .users-search-box .form-control {
    height: 38px !important;
    border-radius: 8px !important;
    border-color: #d4dfed !important;
    background: #fff !important;
    color: #1f3557 !important;
    font-size: 12px !important;
}
#main-content .users-filter-grid .users-search-field { grid-column: span 2 !important; }
#main-content .users-filter-grid .users-filter-actions {
    grid-column: span 2 !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 8px !important;
}
#main-content .users-filter-actions .btn { height: 38px !important; min-height: 38px !important; padding: 0 18px !important; border-radius: 8px !important; font-size: 12px !important; }
#main-content .users-table thead th {
    height: 42px !important;
    padding: 0 12px !important;
    background: #24599a !important;
    color: #fff !important;
    font-size: 11px !important;
    letter-spacing: .02em !important;
}
#main-content .users-table tbody td {
    height: 52px !important;
    padding: 8px 12px !important;
    color: #18345d !important;
    font-size: 12px !important;
    vertical-align: middle !important;
}
#main-content .users-table th:nth-child(1), #main-content .users-table td:nth-child(1) { width: 34% !important; }
#main-content .users-table th:nth-child(2), #main-content .users-table td:nth-child(2) { width: 13% !important; }
#main-content .users-table th:nth-child(3), #main-content .users-table td:nth-child(3) { width: 14% !important; }
#main-content .users-table th:nth-child(4), #main-content .users-table td:nth-child(4) { width: 13% !important; }
#main-content .users-table th:nth-child(5), #main-content .users-table td:nth-child(5) { width: 26% !important; }
#main-content .users-row-actions { gap: 6px !important; flex-wrap: nowrap !important; justify-content: flex-end !important; }
#main-content .users-row-actions .action-btn { width: 28px !important; min-width: 28px !important; height: 28px !important; border-radius: 7px !important; }
#main-content .users-row-actions .action-icon { font-size: 12px !important; line-height: 1 !important; }
@media (max-width: 900px) and (min-width: 768px) {
    #main-content .users-filter-grid { grid-template-columns: repeat(2, minmax(150px, 1fr)) !important; }
    #main-content .users-filter-grid .users-search-field,
    #main-content .users-filter-grid .users-filter-actions { grid-column: span 1 !important; }
}
@media (max-width: 767px) {
    #main-content .users-page-heading { align-items: stretch !important; padding: 14px 16px !important; }
    #main-content .users-filter-shell { padding: 14px 16px !important; }
    #main-content .users-filter-grid { grid-template-columns: 1fr !important; }
    #main-content .users-filter-grid .users-search-field,
    #main-content .users-filter-grid .users-filter-actions { grid-column: auto !important; }
    #main-content .users-filter-actions { justify-content: stretch !important; }
    #main-content .users-filter-actions .btn { flex: 1 1 0 !important; }
}.top-nav .dropdown-menu.account-menu li button.account-menu-logout {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: 0;
    background: transparent;
    text-align: left;
    font: inherit;
    cursor: pointer;
}
.top-nav .dropdown-menu.account-menu li button.account-menu-logout i { color: #dc2626 !important; }/* Employee access settings: compact, aligned controls */
.attendance-report-setting .attendance-report-toggle {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}
.attendance-report-setting .attendance-setting-option {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-height: 38px;
    margin: 0;
    padding: 9px 10px;
    border: 1px solid #d7e2ef;
    border-radius: 8px;
    background: #f8fbff;
    color: #294463;
    font-size: 12px;
    line-height: 1.35;
    cursor: pointer;
}
.attendance-report-setting .attendance-setting-option:hover {
    border-color: #8fb4e5;
    background: #f1f7ff;
}
.attendance-report-setting .attendance-setting-option input {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 1px 0 0;
    accent-color: #2864c7;
}
.form-group > .radio {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 38px;
    margin: 8px 0 0;
    padding-left: 0;
}
.form-group > .radio label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: #294463;
    font-size: 12px;
}
.form-group > .radio input[type="radio"] {
    float: none;
    margin: 0;
}
@media (max-width: 767px) {
    .attendance-report-setting .attendance-setting-option { min-height: 42px; }
}