﻿:root {
    --bg: #f4f7f7;
    --surface: #ffffff;
    --surface-soft: #f0f5f4;
    --surface-strong: #f8fbfa;
    --ink: #182229;
    --muted: #64727c;
    --line: #dce6e5;
    --brand: #c92f3f;
    --brand-dark: #982737;
    --teal: #1d766d;
    --teal-dark: #155a54;
    --amber: #b7791f;
    --indigo: #4d5fa8;
    --sidebar: #1e2d32;
    --sidebar-2: #2d4147;
    --radius: 8px;
    --shadow: 0 18px 42px rgba(23, 37, 43, .08);
    --shadow-soft: 0 8px 22px rgba(23, 37, 43, .06);
    --focus: 0 0 0 .22rem rgba(29, 118, 109, .16);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    letter-spacing: 0;
    text-rendering: optimizeLegibility;
}

a {
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

:focus-visible {
    outline: 0;
    box-shadow: var(--focus);
}

.login-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(30, 45, 50, .96), rgba(29, 118, 109, .78)),
        repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 1px, transparent 1px 22px);
}

.login-shell {
    width: min(980px, 100%);
    min-height: 560px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.22);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .30);
}

.login-brand {
    padding: 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    background:
        linear-gradient(160deg, rgba(29,118,109,.94), rgba(30,45,50,.97)),
        repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, transparent 1px 72px);
}

.brand-mark,
.brand-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--brand);
    color: #fff;
    font-weight: 800;
}

.login-brand h1 {
    margin: 28px 0 8px;
    font-size: 42px;
    line-height: 1.08;
}

.login-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
}

.login-meta span:first-child {
    color: var(--teal);
    font-weight: 700;
}

.login-brand p,
.panel-heading p,
.topbar p {
    color: var(--muted);
    margin: 0;
}

.login-brand p {
    color: rgba(255,255,255,.76);
}

.login-points {
    display: grid;
    gap: 12px;
    margin-top: 34px;
}

.login-points span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,.88);
}

.login-panel {
    padding: 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.panel-heading {
    margin-bottom: 24px;
}

.panel-heading h2,
.panel-title h2,
.topbar h1 {
    margin: 0;
    font-weight: 800;
    color: var(--ink);
}

.panel-heading h2 {
    font-size: 30px;
}

.eyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--teal);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.form-label {
    font-weight: 700;
    font-size: 13px;
    color: #3a4248;
}

.form-control,
.form-select {
    border-color: #ced7dc;
    border-radius: 6px;
    min-height: 44px;
    color: var(--ink);
    background-color: #fff;
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--teal);
    box-shadow: var(--focus);
}

.btn {
    border-radius: 6px;
    font-weight: 700;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform .14s ease, box-shadow .14s ease, background-color .14s ease, border-color .14s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-sm {
    min-height: 36px;
    padding: .42rem .72rem;
}

.table .btn-sm {
    min-width: 36px;
}

.btn-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

.btn-brand:hover,
.btn-brand:focus {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
    box-shadow: 0 12px 22px rgba(201, 47, 63, .18);
}

.btn-light {
    border-color: var(--line);
    background: #f9fbfb;
}

.btn-light:hover,
.btn-light:focus {
    border-color: #cfdcda;
    background: #fff;
}

.app-shell {
    min-height: 100vh;
    max-width: 100%;
    overflow-x: hidden;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 280px;
    z-index: 1030;
    background: var(--sidebar);
    color: #fff;
    overflow-y: auto;
    transition: transform .2s ease;
}

.sidebar::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar {
    height: 10px;
    width: 10px;
}

.sidebar::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb {
    background: rgba(100, 114, 124, .32);
    border-radius: 999px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 82px;
    padding: 18px 20px;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.brand:hover {
    color: #fff;
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    color: rgba(255,255,255,.62);
    font-size: 12px;
}

.sidebar-nav {
    padding: 14px 12px 28px;
}

.nav-link,
.nav-toggle {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: rgba(255,255,255,.78);
    border: 0;
    border-radius: 6px;
    background: transparent;
    text-align: left;
}

.nav-link i,
.nav-toggle i:first-child {
    width: 18px;
    text-align: center;
}

.nav-link:hover,
.nav-link.active,
.nav-group.open > .nav-toggle {
    color: #fff;
    background: var(--sidebar-2);
}

.nav-link.active {
    box-shadow: inset 4px 0 0 var(--brand);
}

.nav-children {
    display: grid;
    gap: 4px;
    max-height: 0;
    overflow: hidden;
    padding: 0 0 0 42px;
    opacity: 0;
    transition: max-height .24s ease, padding .24s ease, opacity .18s ease;
}

.nav-group.open .nav-children {
    padding: 6px 0 8px 42px;
    opacity: 1;
}

.nav-child {
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 8px 10px;
    color: rgba(255,255,255,.66);
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.25;
}

.nav-child:hover,
.nav-child.active {
    color: #fff;
    background: rgba(255,255,255,.08);
}

.app-main {
    min-height: 100vh;
    margin-left: 280px;
    min-width: 0;
    overflow-x: hidden;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1010;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 20px;
    background: rgba(255,255,255,.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(23, 37, 43, .045);
}

.topbar h1 {
    font-size: 21px;
    line-height: 1.1;
    white-space: nowrap;
}

.topbar-title {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar p {
    font-size: 12px;
    white-space: nowrap;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: nowrap;
    min-width: 0;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 4px 12px 4px 4px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.user-chip .avatar {
    width: 30px;
    height: 30px;
}

.user-chip strong {
    white-space: nowrap;
}

.user-chip strong,
.user-chip small,
td strong,
td small {
    display: block;
}

.user-chip small,
td small {
    color: var(--muted);
    font-size: 12px;
}

.avatar {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #dce9e6;
    color: var(--teal);
    font-weight: 800;
}

.icon-btn {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    background: var(--surface);
    transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
}

.icon-btn:hover,
.icon-btn:focus {
    border-color: #cfdcda;
    box-shadow: var(--shadow-soft);
    transform: translateY(-1px);
}

.content-wrap {
    padding: 24px;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.metric-grid.compact {
    grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.metric-card,
.panel {
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.metric-card {
    min-height: 140px;
    display: grid;
    align-content: space-between;
    padding: 18px;
    position: relative;
    overflow: hidden;
}

.metric-card:hover,
.panel:hover {
    box-shadow: 0 20px 46px rgba(23, 37, 43, .10);
}

.metric-card::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--teal);
}

.metric-card.accent-red::after {
    background: var(--brand);
}

.metric-card.accent-amber::after {
    background: var(--amber);
}

.metric-card.accent-indigo::after {
    background: var(--indigo);
}

.metric-card small {
    color: var(--muted);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0;
}

.metric-card strong {
    margin-top: 8px;
    font-size: clamp(22px, 1.65vw, 28px);
    line-height: 1.1;
}

.metric-card p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.leave-card-breakdown {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.metric-card .leave-today-highlight {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 10px;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(201, 47, 63, .10);
    color: var(--brand);
    font-size: 16px;
    font-weight: 800;
}

.muted-line,
.empty-state {
    color: var(--muted);
    margin: 0;
}

.metric-card.mini {
    min-height: 92px;
}

.metric-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    color: var(--teal);
    background: var(--surface-soft);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    gap: 18px;
}

.hr-dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.hr-dashboard-hero h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
}

.hr-dashboard-hero p {
    margin: 6px 0 0;
    color: var(--muted);
}

.hr-dashboard-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.hr-kpi-grid .metric-card {
    min-height: 132px;
}

.hr-dashboard-grid {
    display: grid;
    gap: 18px;
}

.hr-dashboard-grid-wide {
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, .55fr);
}

.hr-dashboard-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hr-dashboard-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hr-dashboard-panel {
    min-height: 100%;
}

.hr-dashboard-panel .panel-title {
    align-items: center;
}

.hr-dashboard-panel .panel-title h2 {
    height: auto;
    display: block;
    place-items: initial;
}

.hr-dashboard-table {
    table-layout: fixed;
    min-width: 680px;
}

.hr-dashboard-table th,
.hr-dashboard-table td {
    padding-left: 10px;
    padding-right: 10px;
}

.hr-dashboard-table td strong,
.hr-record-stack strong {
    display: block;
}

.hr-dashboard-table td small,
.hr-record-stack small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}

.hr-stat-list {
    display: grid;
    gap: 10px;
}

.hr-stat-list > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.hr-stat-list > div:last-child {
    border-bottom: 0;
}

.hr-stat-list span {
    color: var(--muted);
    font-weight: 700;
    min-width: 0;
}

.hr-stat-list strong {
    color: var(--ink);
    text-align: right;
    white-space: nowrap;
}

.hr-money-block {
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.hr-money-block.compact {
    padding: 12px;
}

.hr-money-block strong {
    display: block;
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1.1;
}

.hr-money-block span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.hr-doughnut-chart {
    height: 230px;
}

.hr-record-stack .status-row {
    align-items: flex-start;
}

.hr-record-stack .status-row > span {
    min-width: 0;
}

.hr-record-stack .status-row .badge {
    margin-top: 6px;
}

.hr-notice-list article p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.page-grid {
    display: grid;
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
    gap: 18px;
}

.page-leave .page-grid {
    grid-template-columns: 1fr;
}

.page-leave .leave-summary-grid {
    grid-template-columns: repeat(3, minmax(190px, 1fr));
}

.page-leave .wide-panel {
    order: 1;
}

.page-leave .form-panel {
    order: 2;
}

.page-grid > *,
.dashboard-grid > *,
.settings-grid > * {
    min-width: 0;
}

.settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .52fr);
    gap: 18px;
}

.panel {
    padding: 20px;
    transition: box-shadow .16s ease, transform .16s ease;
}

.panel-title {
    min-height: 42px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.panel-title h2 {
    font-size: 18px;
    line-height: 1.2;
}

.wide-panel {
    min-width: 0;
}

.form-panel {
    align-self: start;
}

.today-leave-list {
    display: grid;
    gap: 10px;
}

.today-leave-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 60px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface-strong);
}

.today-leave-row > div {
    min-width: 0;
}

.today-leave-row strong,
.today-leave-row small {
    display: block;
}

.today-leave-row small {
    color: var(--muted);
}

.page-leave .btn:hover,
.page-leave .btn:focus,
.page-leave .icon-btn:hover,
.page-leave .icon-btn:focus {
    transform: none;
}

.page-leave .metric-card:hover,
.page-leave .panel:hover {
    box-shadow: var(--shadow);
}

.page-leave .table-responsive {
    scrollbar-gutter: stable;
}

.page-leave .action-cell {
    min-width: 158px;
}

.page-leave .table .btn-sm {
    width: 36px;
    min-width: 36px;
    padding-left: 0;
    padding-right: 0;
}

.leave-action-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.leave-balance-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.leave-balance-panel div {
    min-height: 70px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface-strong);
}

.leave-balance-panel span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.leave-balance-panel strong {
    display: block;
    margin-top: 6px;
    font-size: 18px;
}

.leave-balance-note {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.leave-balance-note.is-warning {
    color: var(--brand);
    font-weight: 700;
}

.leave-report-title {
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.leave-report-filter {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.leave-report-filter .form-select {
    width: 156px;
    min-height: 38px;
}

.leave-report-filter .form-control,
.leave-report-filter .btn-sm,
.leave-report-filter .soft-count {
    min-height: 38px;
}

.leave-report-filter .soft-count {
    min-width: 116px;
    justify-content: center;
}

.leave-report-filter .btn-sm {
    width: auto;
    min-width: 132px;
    padding-left: .72rem;
    padding-right: .72rem;
}

.leave-report-custom-range {
    display: none;
    align-items: center;
    gap: 8px;
}

.leave-report-filter.is-custom .leave-report-custom-range {
    display: flex;
}

.leave-report-custom-range .form-control {
    width: 150px;
}

.leave-report-matrix-wrap {
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow-x: auto;
}

.leave-report-matrix-table {
    width: 100%;
    min-width: 680px;
    table-layout: fixed;
}

.leave-report-matrix-table th,
.leave-report-matrix-table td {
    padding-left: 10px;
    padding-right: 10px;
    text-align: center;
    white-space: nowrap;
}

.leave-report-matrix-table thead th {
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
}

.leave-report-matrix-table tbody td {
    font-size: 15px;
}

.leave-report-matrix-table th:first-child,
.leave-report-matrix-table td:first-child {
    text-align: left;
    width: 22%;
}

.leave-report-matrix-table tfoot th {
    border-top: 1px solid var(--line);
    background: var(--surface-strong);
    font-size: 15px;
    font-weight: 800;
    text-align: center;
}

.leave-report-matrix-table tfoot th:first-child {
    text-align: left;
}

.soft-count,
.code-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: #335047;
    font-size: 12px;
    font-weight: 800;
}

.table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table {
    min-width: 720px;
}

.table-responsive {
    max-width: 100%;
    overflow-x: auto;
}

.table thead th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0;
    white-space: nowrap;
    border-bottom-color: var(--line);
    padding-top: 12px;
    padding-bottom: 12px;
}

.table td {
    vertical-align: middle;
    font-size: 14px;
    padding-top: 13px;
    padding-bottom: 13px;
    border-bottom-color: #edf2f1;
    overflow-wrap: anywhere;
}

.data-table tbody tr {
    transition: background-color .14s ease;
}

.data-table tbody tr:hover {
    background: #f8fbfa;
}

.person-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 210px;
}

.action-cell {
    min-width: 190px;
}

.employee-records-table {
    min-width: 1240px;
    table-layout: fixed;
}

.module-records-table {
    min-width: 1160px;
}

.module-records-table th,
.module-records-table td {
    white-space: nowrap;
}

.module-records-table td {
    max-width: 240px;
}

.page-extra_benefits .metric-grid.compact {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.page-extra_benefits .module-records-table {
    min-width: 1080px;
    table-layout: fixed;
}

.page-extra_benefits .module-records-table th,
.page-extra_benefits .module-records-table td {
    padding-left: 10px;
    padding-right: 10px;
}

.page-extra_benefits .module-records-table th:nth-child(1),
.page-extra_benefits .module-records-table td:nth-child(1) {
    width: 42px;
}

.page-extra_benefits .module-records-table th:nth-child(2),
.page-extra_benefits .module-records-table td:nth-child(2) {
    width: 88px;
}

.page-extra_benefits .module-records-table th:nth-child(3),
.page-extra_benefits .module-records-table td:nth-child(3) {
    width: 160px;
}

.page-extra_benefits .module-records-table th:nth-child(4),
.page-extra_benefits .module-records-table td:nth-child(4),
.page-extra_benefits .module-records-table th:nth-child(5),
.page-extra_benefits .module-records-table td:nth-child(5) {
    width: 120px;
}

.page-extra_benefits .module-records-table th:nth-child(6),
.page-extra_benefits .module-records-table td:nth-child(6) {
    width: 150px;
}

.page-extra_benefits .module-records-table th:nth-child(7),
.page-extra_benefits .module-records-table td:nth-child(7) {
    width: 92px;
}

.page-extra_benefits .module-records-table th:nth-child(8),
.page-extra_benefits .module-records-table td:nth-child(8) {
    width: 88px;
    text-align: right;
}

.page-extra_benefits .module-records-table th:nth-child(9),
.page-extra_benefits .module-records-table td:nth-child(9),
.page-extra_benefits .module-records-table th:nth-child(10),
.page-extra_benefits .module-records-table td:nth-child(10) {
    width: 78px;
    text-align: center;
}

.page-extra_benefits .module-records-table th:nth-child(11),
.page-extra_benefits .module-records-table td:nth-child(11) {
    width: 112px;
}

.page-extra_benefits .module-records-table th:nth-child(12),
.page-extra_benefits .module-records-table td:nth-child(12) {
    width: 86px;
    text-align: center;
}

.page-extra_benefits .module-records-table th:nth-child(13),
.page-extra_benefits .module-records-table td:nth-child(13) {
    width: 92px;
    text-align: right;
}

.page-extra_benefits .module-records-table .btn-sm {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-grid;
    place-items: center;
}

.page-extra_benefits .action-cell {
    min-width: 92px;
}

.page-loans .metric-grid.compact {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.page-loans .module-records-table {
    min-width: 1040px;
    table-layout: fixed;
}

.page-loans .module-records-table th,
.page-loans .module-records-table td {
    padding-left: 10px;
    padding-right: 10px;
}

.page-loans .module-records-table th:nth-child(1),
.page-loans .module-records-table td:nth-child(1) {
    width: 42px;
}

.page-loans .module-records-table th:nth-child(2),
.page-loans .module-records-table td:nth-child(2) {
    width: 190px;
}

.page-loans .module-records-table th:nth-child(3),
.page-loans .module-records-table td:nth-child(3) {
    width: 145px;
}

.page-loans .module-records-table th:nth-child(4),
.page-loans .module-records-table td:nth-child(4) {
    width: 115px;
}

.page-loans .module-records-table th:nth-child(5),
.page-loans .module-records-table td:nth-child(5) {
    width: 105px;
}

.page-loans .module-records-table th:nth-child(6),
.page-loans .module-records-table td:nth-child(6),
.page-loans .module-records-table th:nth-child(8),
.page-loans .module-records-table td:nth-child(8) {
    width: 118px;
    text-align: right;
}

.page-loans .module-records-table th:nth-child(7),
.page-loans .module-records-table td:nth-child(7) {
    width: 120px;
    text-align: center;
}

.page-loans .module-records-table th:nth-child(9),
.page-loans .module-records-table td:nth-child(9) {
    width: 96px;
    text-align: center;
}

.page-loans .module-records-table th:nth-child(10),
.page-loans .module-records-table td:nth-child(10) {
    width: 92px;
    text-align: right;
}

.page-loans .module-records-table .badge {
    min-width: 64px;
    justify-content: center;
}

.page-loans .module-records-table .btn-sm {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-grid;
    place-items: center;
}

.page-loans .action-cell {
    min-width: 92px;
}

.page-notices .module-records-table {
    min-width: 1180px;
    table-layout: fixed;
}

.page-notices .module-records-table th,
.page-notices .module-records-table td {
    padding-left: 10px;
    padding-right: 10px;
}

.page-notices .module-records-table th:nth-child(1),
.page-notices .module-records-table td:nth-child(1) {
    width: 50px;
}

.page-notices .module-records-table th:nth-child(2),
.page-notices .module-records-table td:nth-child(2) {
    width: 130px;
}

.page-notices .module-records-table th:nth-child(3),
.page-notices .module-records-table td:nth-child(3) {
    width: 250px;
}

.page-notices .module-records-table th:nth-child(4),
.page-notices .module-records-table td:nth-child(4) {
    width: 380px;
    white-space: normal;
}

.page-notices .module-records-table td:nth-child(4) {
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.page-notices .module-records-table th:nth-child(5),
.page-notices .module-records-table td:nth-child(5) {
    width: 130px;
    text-align: center;
}

.page-notices .module-records-table th:nth-child(6),
.page-notices .module-records-table td:nth-child(6) {
    width: 120px;
    text-align: center;
}

.page-notices .module-records-table th:nth-child(7),
.page-notices .module-records-table td:nth-child(7) {
    width: 118px;
}

.page-notices .action-cell {
    min-width: 118px;
}

.page-trainings .module-records-table {
    min-width: 1180px;
    table-layout: fixed;
}

.page-trainings .module-records-table th,
.page-trainings .module-records-table td {
    padding-left: 10px;
    padding-right: 10px;
}

.page-trainings .module-records-table th:nth-child(1),
.page-trainings .module-records-table td:nth-child(1) {
    width: 48px;
}

.page-trainings .module-records-table th:nth-child(2),
.page-trainings .module-records-table td:nth-child(2) {
    width: 240px;
}

.page-trainings .module-records-table th:nth-child(3),
.page-trainings .module-records-table td:nth-child(3) {
    width: 330px;
    white-space: normal;
}

.page-trainings .module-records-table td:nth-child(3) {
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.page-trainings .module-records-table th:nth-child(4),
.page-trainings .module-records-table td:nth-child(4) {
    width: 170px;
}

.page-trainings .module-records-table th:nth-child(5),
.page-trainings .module-records-table td:nth-child(5) {
    width: 140px;
    text-align: center;
}

.page-trainings .module-records-table th:nth-child(6),
.page-trainings .module-records-table td:nth-child(6) {
    width: 140px;
    text-align: center;
}

.page-trainings .module-records-table th:nth-child(7),
.page-trainings .module-records-table td:nth-child(7) {
    width: 118px;
}

.page-trainings .action-cell {
    min-width: 118px;
}

.page-hr_policies .module-records-table {
    min-width: 900px;
    table-layout: fixed;
}

.page-hr_policies .module-records-table th,
.page-hr_policies .module-records-table td {
    padding-left: 12px;
    padding-right: 12px;
}

.page-hr_policies .module-records-table th:nth-child(1),
.page-hr_policies .module-records-table td:nth-child(1) {
    width: 52px;
}

.page-hr_policies .module-records-table th:nth-child(2),
.page-hr_policies .module-records-table td:nth-child(2) {
    width: 260px;
}

.page-hr_policies .module-records-table th:nth-child(3),
.page-hr_policies .module-records-table td:nth-child(3) {
    width: 420px;
    white-space: normal;
}

.page-hr_policies .module-records-table td:nth-child(3) {
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.page-hr_policies .module-records-table th:nth-child(4),
.page-hr_policies .module-records-table td:nth-child(4) {
    width: 120px;
    text-align: center;
}

.page-hr_policies .module-records-table th:nth-child(5),
.page-hr_policies .module-records-table td:nth-child(5) {
    width: 118px;
}

.page-hr_policies .action-cell {
    min-width: 118px;
}

.page-id_cards .module-records-table {
    min-width: 1120px;
    table-layout: fixed;
}

.page-id_cards .module-records-table th,
.page-id_cards .module-records-table td {
    padding-left: 10px;
    padding-right: 10px;
}

.page-id_cards .module-records-table th:nth-child(1),
.page-id_cards .module-records-table td:nth-child(1) {
    width: 48px;
}

.page-id_cards .module-records-table th:nth-child(2),
.page-id_cards .module-records-table td:nth-child(2) {
    width: 210px;
}

.page-id_cards .module-records-table th:nth-child(3),
.page-id_cards .module-records-table td:nth-child(3) {
    width: 130px;
}

.page-id_cards .module-records-table th:nth-child(4),
.page-id_cards .module-records-table td:nth-child(4) {
    width: 210px;
}

.page-id_cards .module-records-table th:nth-child(5),
.page-id_cards .module-records-table td:nth-child(5) {
    width: 155px;
}

.page-id_cards .module-records-table th:nth-child(6),
.page-id_cards .module-records-table td:nth-child(6) {
    width: 230px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.page-id_cards .module-records-table th:nth-child(7),
.page-id_cards .module-records-table td:nth-child(7) {
    width: 105px;
    text-align: center;
}

.page-id_cards .module-records-table th:nth-child(8),
.page-id_cards .module-records-table td:nth-child(8) {
    width: 118px;
}

.page-id_cards .action-cell {
    min-width: 118px;
}

.employee-records-table .employee-col-person {
    width: 270px;
}

.employee-records-table .employee-col-department {
    width: 135px;
}

.employee-records-table .employee-col-contact {
    width: 230px;
}

.employee-records-table .employee-col-joining {
    width: 150px;
}

.employee-records-table .employee-col-dob {
    width: 130px;
}

.employee-records-table .employee-col-salary {
    width: 125px;
}

.employee-records-table .employee-col-login {
    width: 190px;
}

.employee-records-table .employee-col-status {
    width: 96px;
}

.employee-records-table .employee-col-actions {
    width: 92px;
}

.employee-records-table th,
.employee-records-table td {
    padding-left: 14px;
    padding-right: 14px;
}

.employee-records-table .person-cell {
    min-width: 0;
    align-items: flex-start;
}

.employee-records-table .person-cell > span:last-child,
.employee-records-table .contact-cell,
.employee-records-table .login-cell {
    min-width: 0;
}

.employee-records-table .department-cell,
.employee-records-table .date-cell,
.employee-records-table .salary-cell,
.employee-records-table .status-cell,
.employee-records-table .employee-actions-cell {
    white-space: nowrap;
}

.employee-records-table .salary-cell {
    text-align: right;
}

.benefit-amount-locked {
    background-color: #f3f6f8;
    border-color: #d8e0e6;
    color: #82909c;
    cursor: not-allowed;
}

.employee-records-table th:nth-child(6) {
    text-align: right;
}

.employee-records-table .status-cell,
.employee-records-table th:nth-child(8) {
    text-align: center;
}

.employee-records-table .status-cell .badge {
    min-width: 68px;
    justify-content: center;
}

.employee-records-table .employee-actions-cell {
    min-width: 92px;
    padding-left: 8px;
}

.employee-records-table .employee-actions-cell .btn-sm {
    min-width: 34px;
}

.chart-box {
    width: 100%;
    height: 290px;
    max-height: 290px;
}

.status-stack,
.announcement-list,
.note-list {
    display: grid;
    gap: 10px;
}

.status-row,
.announcement-list article,
.note-list p {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface-strong);
}

.announcement-list article {
    display: block;
}

.announcement-list p {
    margin: 6px 0;
    color: var(--muted);
}

.announcement-list small {
    color: var(--muted);
}

.note-list p {
    justify-content: flex-start;
    color: var(--muted);
}

.note-list i {
    color: var(--teal);
}

.budget-hero {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 16px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.budget-hero h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
}

.budget-hero p,
.budget-note {
    margin: 8px 0 0;
    color: var(--muted);
}

.budget-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.budget-tabs a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.budget-tabs a.active {
    border-color: rgba(29, 118, 109, .38);
    box-shadow: inset 4px 0 0 var(--teal), var(--shadow-soft);
}

.budget-tabs span {
    color: var(--teal);
    font-weight: 800;
    white-space: nowrap;
}

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

.budget-profile div,
.budget-filter-total,
.budget-rollup {
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface-strong);
}

.budget-profile div {
    min-height: 70px;
    padding: 12px;
}

.budget-profile span,
.budget-filter-total span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.budget-profile strong {
    display: block;
    margin-top: 6px;
}

.budget-filter-total {
    min-height: 44px;
    padding: 8px 12px;
}

.budget-title-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.attendance-report-title {
    align-items: center;
    margin-bottom: 10px;
}

.attendance-report-filter {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.attendance-report-filter .form-select {
    width: 150px;
    min-height: 36px;
}

.attendance-report-filter .employee-report-select {
    width: 240px;
}

.attendance-report-custom-range {
    display: none;
    align-items: center;
    gap: 8px;
}

.attendance-report-filter.is-custom .attendance-report-custom-range {
    display: flex;
}

.attendance-report-custom-range .form-control {
    width: 140px;
    min-height: 36px;
}

.attendance-report-filter .soft-count {
    min-height: 36px;
    white-space: nowrap;
}

.page-attendance .attendance-report-title {
    align-items: center;
}

.page-attendance .attendance-report-title h2 {
    white-space: nowrap;
}

.page-attendance .attendance-report-title + .table-responsive .data-table {
    min-width: 1260px;
}

.metric-grid.compact.daily-attendance-metrics {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.attendance-entry-filter-panel {
    padding: 14px 20px;
}

.attendance-entry-filter {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(250px, .85fr) minmax(250px, .85fr) minmax(260px, 1fr);
    align-items: end;
    gap: 14px;
}

.attendance-filter-field {
    min-width: 0;
}

.attendance-filter-field .form-label {
    margin-bottom: 6px;
}

.attendance-entry-filter .form-control,
.attendance-entry-filter .form-select {
    min-height: 38px;
}

.attendance-inline-action {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.attendance-inline-action .btn-sm {
    min-height: 38px;
    padding-left: 12px;
    padding-right: 12px;
}

.attendance-date-with-day {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.attendance-date-with-day span {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--muted);
    background: var(--surface-strong);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.attendance-entry-panel {
    padding: 18px 20px 16px;
}

.daily-attendance-title {
    align-items: center;
    min-height: 34px;
    margin-bottom: 12px;
}

.daily-attendance-heading-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.daily-attendance-summary {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.daily-attendance-summary span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 28px;
    padding: 3px 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--muted);
    background: var(--surface-strong);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.daily-attendance-summary strong {
    color: var(--ink);
}

.daily-attendance-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-strong);
}

.daily-bulk-control {
    display: grid;
    grid-template-columns: auto minmax(140px, 200px) auto;
    align-items: center;
    gap: 8px;
}

.daily-bulk-control .form-label {
    margin-bottom: 0;
    white-space: nowrap;
}

.daily-bulk-control .form-select-sm,
.daily-bulk-control .btn-sm,
.daily-attendance-toolbar > .btn-sm {
    min-height: 38px;
}

.daily-attendance-table {
    min-width: 1120px;
    table-layout: fixed;
}

.daily-attendance-table th,
.daily-attendance-table td {
    padding-left: 10px;
    padding-right: 10px;
}

.daily-attendance-table th:nth-child(1),
.daily-attendance-table td:nth-child(1) {
    width: 220px;
}

.daily-attendance-table th:nth-child(2),
.daily-attendance-table td:nth-child(2) {
    width: 150px;
}

.daily-attendance-table th:nth-child(3),
.daily-attendance-table td:nth-child(3) {
    width: 180px;
}

.daily-attendance-table th:nth-child(4),
.daily-attendance-table td:nth-child(4),
.daily-attendance-table th:nth-child(5),
.daily-attendance-table td:nth-child(5) {
    width: 145px;
}

.daily-attendance-table th:nth-child(6),
.daily-attendance-table td:nth-child(6),
.daily-attendance-table th:nth-child(7),
.daily-attendance-table td:nth-child(7) {
    width: 112px;
}

.daily-attendance-table th:nth-child(8),
.daily-attendance-table td:nth-child(8) {
    width: 210px;
}

.attendance-time-locked {
    background-color: #f3f6f8;
    border-color: #d8e0e6;
    color: #82909c;
    cursor: not-allowed;
}

.missing-entry-card {
    grid-column: 1 / -1;
    min-height: 82px;
    display: grid;
    grid-template-columns: minmax(170px, 220px) minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 16px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.missing-entry-card small,
.missing-entry-card strong {
    grid-column: 1;
}

.missing-entry-card strong {
    margin-top: 0;
    font-size: 24px;
}

.missing-entry-list {
    grid-column: 2;
    grid-row: 1 / 3;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    min-width: 0;
    max-height: 42px;
    margin-top: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
}

.missing-entry-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 4px 8px;
    border: 1px solid rgba(201, 47, 63, .22);
    border-radius: 6px;
    color: var(--brand-dark);
    background: rgba(201, 47, 63, .08);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color .14s ease, border-color .14s ease, transform .14s ease;
}

.missing-entry-pill:hover,
.missing-entry-pill:focus {
    border-color: rgba(201, 47, 63, .42);
    color: var(--brand-dark);
    background: rgba(201, 47, 63, .13);
    transform: translateY(-1px);
}

.missing-entry-day {
    color: var(--ink);
    font-weight: 700;
}

.missing-entry-clear {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    color: var(--teal);
    font-size: 13px;
    font-weight: 800;
}

.page-attendance,
.page-daily_attendance_entry {
    --attendance-green: #1d766d;
    --attendance-red: #c92f3f;
    --attendance-amber: #b7791f;
    --attendance-blue: #3d6f9f;
    --attendance-indigo: #4d5fa8;
    --attendance-gray: #64727c;
}

.page-attendance .panel,
.page-daily_attendance_entry .panel,
.page-attendance .metric-card,
.page-daily_attendance_entry .metric-card {
    box-shadow: 0 12px 30px rgba(23, 37, 43, .065);
}

.page-attendance .panel:hover,
.page-daily_attendance_entry .panel:hover,
.page-attendance .metric-card:hover,
.page-daily_attendance_entry .metric-card:hover {
    box-shadow: 0 16px 36px rgba(23, 37, 43, .085);
}

.attendance-kpi-grid,
.daily-attendance-metrics {
    gap: 12px;
}

.attendance-kpi-card {
    --status-color: var(--attendance-green);
    --status-bg: rgba(29, 118, 109, .10);
    min-height: 88px;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    align-content: center;
    gap: 12px;
    padding: 14px 16px;
    border-color: rgba(29, 118, 109, .16);
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,250,.96)),
        var(--surface);
}

.attendance-kpi-card::after {
    inset: 0 auto 0 0;
    width: 4px;
    height: auto;
    background: var(--status-color);
}

.attendance-kpi-card.is-present {
    --status-color: var(--attendance-green);
    --status-bg: rgba(29, 118, 109, .11);
}

.attendance-kpi-card.is-absent {
    --status-color: var(--attendance-red);
    --status-bg: rgba(201, 47, 63, .10);
}

.attendance-kpi-card.is-late,
.attendance-kpi-card.is-extra-duty {
    --status-color: var(--attendance-amber);
    --status-bg: rgba(183, 121, 31, .12);
}

.attendance-kpi-card.is-leave,
.attendance-kpi-card.is-vacation {
    --status-color: var(--attendance-indigo);
    --status-bg: rgba(77, 95, 168, .10);
}

.attendance-kpi-card.is-weekend {
    --status-color: var(--attendance-gray);
    --status-bg: rgba(100, 114, 124, .11);
}

.attendance-kpi-card.is-holiday {
    --status-color: var(--attendance-blue);
    --status-bg: rgba(61, 111, 159, .11);
}

.attendance-kpi-card.is-total {
    --status-color: var(--attendance-indigo);
    --status-bg: rgba(77, 95, 168, .10);
}

.attendance-kpi-copy {
    min-width: 0;
}

.attendance-kpi-card small {
    display: block;
    color: #51616b;
    line-height: 1.25;
}

.attendance-kpi-card strong {
    display: block;
    margin-top: 7px;
    font-size: 28px;
    color: #0f1b22;
}

.attendance-control-panel,
.attendance-entry-filter-panel {
    padding: 14px 16px;
    border-color: #d4e1df;
}

.attendance-main-filter,
.attendance-entry-filter {
    display: grid;
    grid-template-columns: minmax(260px, .9fr) minmax(220px, .75fr) minmax(190px, .62fr) minmax(260px, auto);
    align-items: end;
    gap: 14px;
}

.attendance-filter-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.attendance-control-panel .form-control,
.attendance-control-panel .form-select,
.attendance-entry-filter-panel .form-control,
.attendance-entry-filter-panel .form-select {
    min-height: 40px;
}

.attendance-control-panel .soft-count,
.attendance-report-filter .soft-count,
.attendance-filter-actions .btn-sm {
    min-height: 40px;
}

.attendance-date-with-day {
    grid-template-columns: minmax(0, 1fr) minmax(92px, auto);
}

.attendance-date-with-day span {
    justify-content: center;
    min-height: 40px;
    color: #41515a;
}

.attendance-table-panel,
.attendance-entry-panel,
.attendance-report-section {
    padding: 18px 20px;
}

.attendance-table-panel .panel-title,
.attendance-entry-panel .panel-title,
.attendance-report-title {
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.attendance-table-panel .panel-title h2,
.attendance-entry-panel .panel-title h2,
.attendance-report-title h2 {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 18px;
}

.attendance-table-panel .panel-title h2 i,
.attendance-entry-panel .panel-title h2 i,
.attendance-report-title h2 i {
    color: var(--teal);
    font-size: 16px;
}

.attendance-report-filter {
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-strong);
}

.attendance-report-filter .form-select,
.attendance-report-filter .form-control,
.attendance-report-filter .btn-sm {
    min-height: 38px;
}

.attendance-report-filter .btn-sm {
    min-width: 124px;
}

.attendance-report-filter .soft-count {
    min-width: 170px;
    justify-content: center;
    background: #edf4f2;
}

.page-attendance .table-responsive,
.page-daily_attendance_entry .table-responsive {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.page-attendance .data-table thead th,
.page-daily_attendance_entry .data-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f7faf9;
    color: #455965;
    border-bottom-color: #d7e3e1;
}

.page-attendance .data-table td,
.page-daily_attendance_entry .data-table td {
    border-bottom-color: #eef3f2;
}

.page-attendance .data-table tbody tr,
.page-daily_attendance_entry .data-table tbody tr,
.page-attendance .data-table tbody tr:nth-child(even),
.page-daily_attendance_entry .data-table tbody tr:nth-child(even) {
    background: #fff;
}

.page-attendance .data-table tbody td,
.page-daily_attendance_entry .data-table tbody td {
    color: #000;
    font-weight: 400;
}

.page-attendance .data-table tbody td strong,
.page-daily_attendance_entry .data-table tbody td strong {
    color: #000;
    font-weight: 700;
}

.page-attendance .data-table tbody td small,
.page-daily_attendance_entry .data-table tbody td small {
    color: #53626b;
    font-weight: 600;
}

.attendance-records-table,
.department-attendance-table,
.employee-attendance-table {
    table-layout: fixed;
}

.attendance-records-table {
    min-width: 1160px;
}

.department-attendance-table {
    min-width: 1160px;
}

.employee-attendance-table {
    min-width: 1360px;
}

.attendance-records-table th:nth-child(1),
.attendance-records-table td:nth-child(1) {
    width: 220px;
}

.attendance-records-table th:nth-child(2),
.attendance-records-table td:nth-child(2),
.attendance-records-table th:nth-child(3),
.attendance-records-table td:nth-child(3),
.attendance-records-table th:nth-child(4),
.attendance-records-table td:nth-child(4) {
    width: 150px;
}

.attendance-records-table th:nth-child(5),
.attendance-records-table td:nth-child(5),
.attendance-records-table th:nth-child(6),
.attendance-records-table td:nth-child(6),
.attendance-records-table th:nth-child(7),
.attendance-records-table td:nth-child(7) {
    width: 116px;
}

.attendance-records-table th:nth-child(9),
.attendance-records-table td:nth-child(9) {
    width: 112px;
}

.department-attendance-table th:not(:first-child),
.department-attendance-table td:not(:first-child),
.employee-attendance-table th:nth-child(n+4),
.employee-attendance-table td:nth-child(n+4) {
    text-align: center;
}

.department-attendance-table th:first-child,
.department-attendance-table td:first-child {
    width: 190px;
}

.employee-attendance-table th:first-child,
.employee-attendance-table td:first-child {
    width: 220px;
    text-align: left;
}

.employee-attendance-table th:nth-child(2),
.employee-attendance-table td:nth-child(2),
.employee-attendance-table th:nth-child(3),
.employee-attendance-table td:nth-child(3) {
    width: 160px;
    text-align: left;
}

.attendance-total-row td {
    border-top: 1px solid #d7e3e1;
    background: #f4f8f7;
    font-weight: 800;
}

.daily-attendance-metrics {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.missing-entry-card {
    grid-column: 1 / -1;
    min-height: 80px;
    grid-template-columns: minmax(180px, 230px) minmax(0, 1fr);
    grid-template-rows: 1fr;
    align-items: center;
    column-gap: 14px;
}

.missing-entry-card .attendance-kpi-copy {
    grid-column: 1;
}

.missing-entry-card .missing-entry-list {
    grid-column: 2;
    grid-row: 1;
    max-height: 40px;
}

.missing-entry-card small,
.missing-entry-card strong {
    grid-column: auto;
}

.missing-entry-pill {
    min-height: 30px;
    border-color: rgba(201, 47, 63, .26);
    background: rgba(201, 47, 63, .075);
}

.daily-attendance-title {
    gap: 12px;
}

.daily-attendance-heading-actions {
    flex: 1;
    min-width: 0;
}

.daily-attendance-summary {
    justify-content: flex-end;
    gap: 6px;
}

.attendance-status-chip {
    --chip-color: var(--teal);
    --chip-bg: rgba(29, 118, 109, .10);
    border-color: rgba(29, 118, 109, .20) !important;
    color: #36524d !important;
    background: var(--chip-bg) !important;
}

.attendance-status-chip.is-absent {
    --chip-color: var(--brand);
    --chip-bg: rgba(201, 47, 63, .09);
    border-color: rgba(201, 47, 63, .22) !important;
}

.attendance-status-chip.is-late,
.attendance-status-chip.is-extra-duty {
    --chip-color: var(--amber);
    --chip-bg: rgba(183, 121, 31, .10);
    border-color: rgba(183, 121, 31, .24) !important;
}

.attendance-status-chip.is-leave,
.attendance-status-chip.is-vacation {
    --chip-color: var(--indigo);
    --chip-bg: rgba(77, 95, 168, .09);
    border-color: rgba(77, 95, 168, .22) !important;
}

.attendance-status-chip.is-weekend {
    --chip-color: var(--muted);
    --chip-bg: rgba(100, 114, 124, .10);
    border-color: rgba(100, 114, 124, .22) !important;
}

.attendance-status-chip.is-holiday {
    --chip-color: #3d6f9f;
    --chip-bg: rgba(61, 111, 159, .10);
    border-color: rgba(61, 111, 159, .22) !important;
}

.attendance-status-chip strong {
    color: var(--chip-color);
}

.daily-attendance-table {
    min-width: 1180px;
}

.daily-attendance-table th,
.daily-attendance-table td {
    padding-left: 11px;
    padding-right: 11px;
}

.daily-attendance-table .form-select-sm,
.daily-attendance-table .form-control-sm {
    min-height: 36px;
    border-color: #cfdcda;
}

.attendance-person-cell strong,
.attendance-person-cell small {
    display: block;
}

.attendance-person-cell small {
    color: var(--muted);
    margin-top: 2px;
}

.page-attendance .attendance-kpi-card,
.page-attendance .attendance-control-panel,
.page-attendance .attendance-report-section,
.page-attendance .attendance-table-panel {
    background: #fff;
    border-color: #dde7e5;
}

.page-attendance .attendance-kpi-card small,
.page-attendance .attendance-date-with-day span,
.page-attendance .attendance-report-filter .soft-count {
    color: #4c5c65;
}

.page-attendance .attendance-kpi-card strong {
    color: #000;
}

.page-attendance .attendance-report-filter {
    background: #fff;
    border-color: #dde7e5;
}

.page-attendance .attendance-report-filter .soft-count {
    background: #f6f8f8;
}

.page-attendance .table-responsive {
    border-color: #e2e9e8;
}

.page-attendance .data-table thead th {
    background: #fff;
    color: #283840;
    border-bottom-color: #e2e9e8;
}

.page-attendance .data-table td {
    border-bottom-color: #edf1f1;
}

.page-attendance .data-table tbody tr:hover {
    background: #fafafa;
}

.page-attendance .attendance-total-row td {
    background: #fff;
    color: #000;
    border-top: 2px solid #e2e9e8;
}

.budget-filter-total strong {
    display: block;
    margin-top: 2px;
}

.budget-rollup {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 12px;
    color: var(--muted);
}

.budget-rollup span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.budget-table {
    min-width: 1440px;
}

.page-budget .metric-grid {
    gap: 14px;
}

.page-budget .metric-card {
    min-height: 118px;
    padding: 14px 18px;
}

.page-budget .metric-card strong {
    margin-top: 6px;
    font-size: 28px;
}

.page-budget .metric-card p {
    margin-top: 4px;
}

.page-budget .metric-icon {
    width: 32px;
    height: 32px;
}

.budget-table th:nth-child(n+5),
.budget-table td:nth-child(n+5):nth-child(-n+9) {
    text-align: right;
    white-space: nowrap;
}

.upload-box {
    min-height: 160px;
    display: grid;
    place-items: center;
    gap: 8px;
    padding: 24px;
    text-align: center;
    border: 1px dashed #b9c8c7;
    border-radius: 8px;
    background:
        linear-gradient(180deg, #fbfdfd, #f6faf9);
}

.upload-box i {
    color: var(--teal);
    font-size: 34px;
}

.upload-box p {
    max-width: 560px;
    margin: 0;
    color: var(--muted);
}

.inline-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.password-field .btn {
    min-width: 46px;
}

.permission-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-strong);
}

.department-scope-card {
    display: grid;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-strong);
}

.department-scope-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.department-scope-header strong,
.department-scope-header small {
    display: block;
}

.department-scope-header small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.department-scope-mode,
.department-scope-list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.department-scope-choice,
.department-scope-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    margin: 0;
    padding: 7px 10px;
    border: 1px solid #d8e4e2;
    border-radius: 6px;
    background: #fff;
    color: #38464d;
    font-size: 13px;
    font-weight: 700;
}

.department-scope-choice input,
.department-scope-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--teal);
}

.department-scope-list {
    padding-top: 2px;
}

.permission-toolbar span,
.permission-card-actions,
.role-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.permission-matrix {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-height: 580px;
    overflow: auto;
    padding-right: 4px;
}

.permission-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.permission-card header {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    background: var(--surface-strong);
    border-bottom: 1px solid var(--line);
    font-weight: 800;
}

.permission-card header i {
    color: var(--teal);
}

.permission-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
}

.permission-check {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 6px 10px;
    border: 1px solid #e4eceb;
    border-radius: 6px;
    color: #38464d;
    background: #fbfdfd;
    font-size: 13px;
    font-weight: 700;
}

.permission-check input {
    appearance: none;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border: 1px solid #b8cbc8;
    border-radius: 6px;
    background: #fff;
    accent-color: var(--teal);
}

.permission-check input:checked {
    border-color: var(--teal);
    background: var(--teal);
}

.permission-check input:checked::after {
    content: "";
    width: 12px;
    height: 7px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translate(1px, -1px);
}

.permission-check span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.role-stack {
    display: grid;
    gap: 10px;
}

.role-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-strong);
}

.role-row strong,
.role-row small {
    display: block;
}

.role-row small {
    color: var(--muted);
}

.badge {
    font-weight: 800;
}

.sidebar-backdrop {
    display: none;
}

@media (max-width: 1200px) {
    .metric-grid,
    .metric-grid.compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .attendance-entry-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid,
    .hr-dashboard-grid-wide,
    .hr-dashboard-grid-three,
    .hr-dashboard-grid-two,
    .page-grid,
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1380px) {
    .page-grid,
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .hr-dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .hr-dashboard-actions {
        justify-content: flex-start;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-backdrop.open {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1020;
        background: rgba(0,0,0,.42);
    }

    .app-main {
        margin-left: 0;
    }

    .topbar {
        align-items: center;
    }
}

@media (max-width: 720px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-brand,
    .login-panel {
        padding: 32px 22px;
    }

    .login-brand h1 {
        font-size: 32px;
    }

    .content-wrap {
        padding: 16px;
    }

    .metric-grid,
    .metric-grid.compact {
        grid-template-columns: 1fr;
    }

    .topbar {
        padding: 8px 14px;
        gap: 10px;
    }

    .topbar-title {
        flex: 1 1 auto;
        min-width: 0;
    }

    .topbar h1 {
        font-size: 18px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .topbar p {
        display: none;
    }

    .topbar-actions {
        gap: 6px;
    }

    .user-chip {
        width: 38px;
        padding: 4px;
        justify-content: center;
        overflow: hidden;
    }

    .user-chip strong {
        display: none;
    }

    .panel-title {
        flex-direction: column;
    }

    .attendance-report-filter {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .attendance-entry-filter {
        grid-template-columns: 1fr;
    }

    .daily-attendance-toolbar,
    .daily-bulk-control,
    .attendance-inline-action {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .missing-entry-card {
        grid-template-columns: 1fr;
        row-gap: 8px;
    }

    .missing-entry-list {
        grid-column: 1;
        grid-row: auto;
        max-height: 46px;
    }

    .daily-attendance-toolbar .btn-brand {
        width: 100%;
    }

    .leave-report-filter {
        width: 100%;
        justify-content: flex-start;
    }

    .leave-report-filter .form-select,
    .leave-report-filter .form-control {
        width: 100%;
    }

    .inline-filter {
        width: 100%;
    }

    .inline-filter .form-control {
        flex: 1;
    }

    .permission-toolbar,
    .budget-hero,
    .department-scope-header,
    .permission-card header,
    .role-row {
        align-items: stretch;
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .budget-tabs,
    .budget-profile {
        grid-template-columns: 1fr;
    }

    .budget-tabs a {
        align-items: flex-start;
        flex-direction: column;
    }

    .permission-matrix,
    .permission-list {
        grid-template-columns: 1fr;
    }

    .permission-card-actions,
    .role-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 1200px) {
    .attendance-main-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .attendance-filter-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .attendance-main-filter {
        grid-template-columns: 1fr;
    }

    .attendance-filter-actions,
    .daily-attendance-heading-actions,
    .daily-attendance-summary {
        justify-content: flex-start;
    }

    .attendance-filter-actions .soft-count,
    .attendance-filter-actions .btn-sm,
    .attendance-report-filter .form-select,
    .attendance-report-filter .form-control,
    .attendance-report-filter .btn-sm,
    .attendance-report-filter .soft-count {
        width: 100%;
        min-width: 0;
    }

    .missing-entry-card .attendance-kpi-copy,
    .missing-entry-card .missing-entry-list {
        grid-column: 1;
        grid-row: auto;
    }

    .attendance-date-with-day {
        grid-template-columns: 1fr;
    }
}

.page-users {
    --users-panel-line: #d7e4e2;
    --users-soft: #f6faf9;
}

.page-users .users-metric-grid {
    gap: 14px;
}

.page-users .metric-card.mini {
    min-height: 104px;
    padding: 16px 18px;
    box-shadow: 0 12px 28px rgba(23, 37, 43, .065);
}

.page-users .metric-card.mini:hover,
.page-users .panel:hover {
    box-shadow: 0 14px 34px rgba(23, 37, 43, .09);
    transform: none;
}

.page-users .metric-card p {
    margin-top: 7px;
    color: #667780;
    font-size: 12px;
    font-weight: 700;
}

.page-users .users-access-layout {
    grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
    align-items: start;
}

.page-users .users-directory-layout {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
    align-items: start;
}

.page-users .panel {
    padding: 0;
    overflow: hidden;
    border-color: var(--users-panel-line);
    box-shadow: 0 14px 36px rgba(23, 37, 43, .07);
}

.page-users .panel-title {
    min-height: 66px;
    align-items: center;
    margin-bottom: 0;
    padding: 16px 18px;
    border-bottom: 1px solid var(--users-panel-line);
    background: linear-gradient(180deg, #ffffff 0, #f9fcfb 100%);
}

.page-users .panel-title h2 {
    font-size: 17px;
    line-height: 1.2;
}

.page-users .panel > form,
.page-users .role-stack {
    padding: 18px;
}

.page-users .panel > .table-responsive {
    padding: 0 18px 18px;
}

.page-users .form-label {
    margin-bottom: 6px;
    color: #2f3d43;
}

.page-users .form-control,
.page-users .form-select {
    min-height: 42px;
    border-color: #ccd9dc;
    background-color: #fff;
}

.page-users .users-account-form > .col-12:last-child .btn,
.page-users .users-role-form > .col-12:last-child .btn-brand {
    min-width: 170px;
}

.page-users .users-account-form > .col-12:last-child .btn {
    width: 100%;
}

.page-users .users-scope-card {
    gap: 12px;
    padding: 14px;
    border-color: var(--users-panel-line);
    background: var(--users-soft);
}

.page-users .department-scope-header {
    align-items: center;
}

.page-users .department-scope-mode,
.page-users .department-scope-list {
    gap: 8px;
}

.page-users .department-scope-choice,
.page-users .department-scope-check {
    min-height: 34px;
    padding: 7px 10px;
    border-color: #d4e2e0;
    background: #fff;
    color: #304047;
    font-size: 12px;
    font-weight: 800;
}

.page-users .department-scope-choice:has(input:checked),
.page-users .department-scope-check:has(input:checked) {
    border-color: rgba(29, 118, 109, .38);
    background: #eef8f6;
    color: var(--teal-dark);
}

.page-users .users-permission-toolbar {
    margin-bottom: 10px;
    padding: 10px 12px;
    border-color: var(--users-panel-line);
    background: var(--users-soft);
}

.page-users .permission-matrix {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
    max-height: 470px;
    padding: 2px 4px 2px 0;
    scrollbar-gutter: stable;
}

.page-users .permission-card {
    border-color: var(--users-panel-line);
    background: #fff;
    box-shadow: 0 6px 18px rgba(23, 37, 43, .035);
}

.page-users .permission-card header {
    min-height: 44px;
    padding: 9px 10px 9px 12px;
    border-bottom-color: var(--users-panel-line);
    background: #f7fbfa;
    color: #1f2c32;
    font-size: 13px;
}

.page-users .permission-card header > span:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.page-users .permission-card-actions {
    gap: 6px;
}

.page-users .permission-card-actions .btn-sm,
.page-users .users-permission-toolbar .btn-sm {
    min-height: 32px;
    padding: .32rem .58rem;
    font-size: 12px;
}

.page-users .permission-list {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 7px;
    padding: 10px;
}

.page-users .permission-check {
    min-height: 36px;
    align-items: center;
    padding: 7px 9px;
    border-color: #e0e9e8;
    background: #fcfefe;
    color: #35454c;
    font-size: 12px;
    font-weight: 750;
}

.page-users .permission-check:has(input:checked) {
    border-color: rgba(29, 118, 109, .35);
    background: #f1faf8;
    color: var(--teal-dark);
}

.page-users .permission-check input {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border-radius: 5px;
}

.page-users .permission-check input:checked::after {
    width: 8px;
    height: 5px;
    border-left-width: 2px;
    border-bottom-width: 2px;
    transform: rotate(-45deg) translate(1px, -1px);
}

.page-users .users-table {
    min-width: 936px;
    margin: 0;
    table-layout: fixed;
}

.page-users .users-table th:nth-child(1),
.page-users .users-table td:nth-child(1) {
    width: 205px;
}

.page-users .users-table th:nth-child(2),
.page-users .users-table td:nth-child(2) {
    width: 105px;
}

.page-users .users-table th:nth-child(3),
.page-users .users-table td:nth-child(3) {
    width: 180px;
}

.page-users .users-table th:nth-child(4),
.page-users .users-table td:nth-child(4) {
    width: 130px;
}

.page-users .users-table th:nth-child(5),
.page-users .users-table td:nth-child(5) {
    width: 144px;
}

.page-users .users-table th:nth-child(6),
.page-users .users-table td:nth-child(6) {
    width: 78px;
}

.page-users .users-table th:nth-child(7),
.page-users .users-table td:nth-child(7) {
    width: 94px;
}

.page-users .users-table th:nth-child(7),
.page-users .users-table td:nth-child(7) {
    padding-left: 6px;
    padding-right: 6px;
}

.page-users .data-table thead th {
    padding: 11px 10px;
    border-bottom: 1px solid var(--users-panel-line);
    background: #f6faf9;
    color: #52646c;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.page-users .data-table td {
    padding: 13px 10px;
    border-color: #e5edec;
    color: #182229;
    vertical-align: middle;
}

.page-users .data-table tbody tr {
    background: #fff;
}

.page-users .data-table tbody tr:hover {
    background: #f8fbfb;
}

.page-users .person-cell {
    align-items: center;
    gap: 10px;
}

.page-users .person-cell > span:last-child,
.page-users .employee-link-cell,
.page-users .scope-cell,
.page-users .permission-cell {
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
    line-height: 1.42;
}

.page-users .person-cell .avatar {
    width: 38px;
    height: 38px;
    background: #e5f1ef;
    color: var(--teal-dark);
}

.page-users .code-pill {
    max-width: 100%;
    background: #eef6f4;
    color: var(--teal-dark);
    border-color: #d2e4e1;
    white-space: normal;
}

.page-users .permission-cell,
.page-users .scope-cell,
.page-users .employee-link-cell {
    color: #52636b;
    font-size: 13px;
    font-weight: 650;
}

.page-users .users-actions-cell {
    white-space: nowrap;
}

.page-users .users-actions-cell .btn-sm {
    width: 36px;
    min-width: 36px;
    padding-left: 0;
    padding-right: 0;
}

.page-users .users-actions-cell form {
    display: inline-flex !important;
    margin-left: 4px;
}

.page-users .role-stack {
    gap: 9px;
}

.page-users .role-row {
    align-items: flex-start;
    padding: 13px;
    border-color: var(--users-panel-line);
    background: #fff;
    box-shadow: 0 6px 18px rgba(23, 37, 43, .035);
}

.page-users .role-row:hover {
    background: #f8fbfb;
}

.page-users .role-row strong {
    color: #17252b;
    line-height: 1.25;
}

.page-users .role-row small {
    margin-top: 4px;
    color: #61727b;
    line-height: 1.35;
}

.page-users .role-actions {
    justify-content: flex-end;
}

@media (max-width: 1380px) {
    .page-users .users-access-layout,
    .page-users .users-directory-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .page-users .panel-title,
    .page-users .panel > form,
    .page-users .role-stack,
    .page-users .panel > .table-responsive {
        padding: 14px;
    }

    .page-users .users-permission-toolbar,
    .page-users .department-scope-header,
    .page-users .permission-card header,
    .page-users .role-row {
        align-items: stretch;
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .page-users .permission-matrix,
    .page-users .permission-list {
        grid-template-columns: 1fr;
    }

    .page-users .users-account-form > .col-12:last-child .btn,
    .page-users .users-role-form > .col-12:last-child .btn-brand {
        width: 100%;
    }
}
