:root {
    --bg: #eef8f1;
    --surface: #ffffff;
    --surface-soft: #eaf8ef;
    --text: #153524;
    --muted: #5f7868;
    --accent: #118a4f;
    --accent-dark: #0b6f3f;
    --accent-light: #dff4e7;
    --accent-soft: #f0fbf4;
    --forest: #042816;
    --forest-2: #0b5132;
    --leaf: #22a95f;
    --mint: #dff7e9;
    --line: #cfe4d6;
    --shadow: 0 12px 30px rgba(8, 72, 40, 0.08);
    --primary: #118a4f;
    --primary-light: #eaf8ef;
    --success: #22a95f;
    --success-light: #dff4e7;
    --info: #0b8f61;
    --info-light: #eefbf4;
    --purple: #2e8f4f;
    --purple-light: #edf9ef;
}

* {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: clip;
}

body {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    color: var(--text);
    background: var(--bg);
}

h1,
h2,
h3 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-wrap {
    width: min(1080px, 100%);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    border-radius: 24px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.auth-art {
    position: relative;
    display: flex;
    min-height: 560px;
    flex-direction: column;
    justify-content: space-between;
    gap: 34px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(8, 145, 178, 0.22), transparent 34%),
        linear-gradient(160deg, #042816 0%, #0b5132 54%, #087f5b 100%);
    color: #fff;
    padding: 56px 48px;
}

.auth-art::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, transparent 0 42%, rgba(255, 255, 255, 0.08) 42% 43%, transparent 43% 100%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 24px);
    opacity: 0.55;
    pointer-events: none;
}

.auth-art-content,
.auth-illustration {
    position: relative;
    z-index: 1;
}

.auth-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    margin-bottom: 18px;
    padding: 8px 12px;
    border: 1px solid rgba(178, 242, 187, 0.42);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #d9f99d;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-art h1 {
    max-width: 10ch;
    font-size: clamp(2.4rem, 4vw, 4.1rem);
    line-height: 1.02;
}

.auth-art p {
    margin-top: 18px;
    max-width: 42ch;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.02rem;
    line-height: 1.65;
}

.auth-feature-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.auth-feature-row span {
    padding: 9px 13px;
    border: 1px solid rgba(220, 252, 231, 0.36);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.11);
    color: #f7fee7;
    font-size: 0.86rem;
    font-weight: 800;
}

.auth-illustration {
    min-height: 230px;
}

.auth-phone-art {
    position: absolute;
    right: 34px;
    bottom: 6px;
    width: 190px;
    min-height: 236px;
    padding: 28px 20px 20px;
    border: 1px solid rgba(220, 252, 231, 0.34);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(232, 252, 240, 0.92));
    box-shadow: 0 26px 48px rgba(0, 0, 0, 0.26);
}

.auth-phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    width: 58px;
    height: 6px;
    border-radius: 999px;
    background: #0f172a;
    transform: translateX(-50%);
}

.auth-phone-title,
.auth-phone-line {
    height: 12px;
    border-radius: 999px;
    background: #cdebd6;
}

.auth-phone-title {
    width: 74px;
    margin: 18px auto 28px;
    background: #0f766e;
}

.auth-phone-line {
    width: 72%;
    margin: 0 0 12px;
}

.auth-phone-line.wide {
    width: 100%;
}

.auth-phone-button {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    margin: 28px auto 0;
    border-radius: 50%;
    background: linear-gradient(145deg, #16a34a, #0891b2);
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 900;
    box-shadow: 0 14px 24px rgba(8, 145, 178, 0.3);
}

.auth-check-ring,
.auth-pay-art,
.auth-flow-dot {
    position: absolute;
    z-index: 2;
}

.auth-check-ring {
    left: 12px;
    bottom: 74px;
    display: grid;
    width: 116px;
    height: 116px;
    place-items: center;
    border: 12px solid rgba(187, 247, 208, 0.42);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #16a34a;
    font-size: 2rem;
    font-weight: 900;
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.24);
}

.auth-pay-art {
    right: 0;
    bottom: 0;
    min-width: 142px;
    padding: 14px 16px;
    border: 1px solid rgba(220, 252, 231, 0.44);
    border-radius: 18px;
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 20px 34px rgba(0, 0, 0, 0.22);
}

.auth-pay-art strong,
.auth-pay-art span {
    display: block;
}

.auth-pay-art span {
    margin-top: 3px;
    color: #0f766e;
    font-weight: 800;
}

.auth-flow-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #bef264;
    box-shadow: 0 0 0 7px rgba(190, 242, 100, 0.18);
}

.auth-flow-dot.one {
    left: 142px;
    bottom: 144px;
}

.auth-flow-dot.two {
    right: 232px;
    bottom: 114px;
}

.auth-card {
    padding: 48px 40px;
}

.auth-card p {
    color: var(--muted);
}

label {
    display: block;
    margin-top: 10px;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 600;
}

.required-star {
    color: #d11a2a;
    margin-left: 4px;
    font-weight: 700;
}

input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 2px 8px;
    font: inherit;
    outline: none;
    box-sizing: border-box;
}

input:focus {
    border-color: #8db8a7;
    box-shadow: 0 0 0 3px rgba(0, 135, 90, 0.15);
}

button {
    width: 100%;
    margin-top: 22px;
    border: 0;
    border-radius: 12px;
    padding: 13px 14px;
    font: inherit;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(120deg, var(--accent), #0f9f6e);
    cursor: pointer;
}

button:hover {
    background: linear-gradient(120deg, var(--accent-dark), #0d875f);
}

.alert {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.92rem;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.28s ease, transform 0.28s ease, margin 0.28s ease, padding 0.28s ease;
}

.alert.error {
    color: #9f2140;
    background: #ffe8ef;
}

.alert.success {
    color: #105d35;
    background: #e1f6e7;
}

.alert.is-dismissing {
    opacity: 0;
    transform: translateY(-8px);
}

.hr-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.hr-toast {
    min-width: 260px;
    max-width: min(420px, calc(100vw - 40px));
    padding: 12px 14px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    font-size: 0.92rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.hr-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hr-toast.is-success {
    color: #105d35;
    background: #e1f6e7;
}

.hr-toast.is-error {
    color: #9f2140;
    background: #ffe8ef;
}

/* Hide CodeIgniter debug toolbar icon (development only). */
#debug-icon,
#toolbarContainer {
    display: none !important;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    align-items: stretch;
    background: linear-gradient(180deg, #042816, #0b5132);
}

.sidebar {
    background: linear-gradient(180deg, #042816, #0b5132);
    color: #f2fff6;
    padding: 0;
    display: flex;
    flex-direction: column;
    /* Keep left menu frozen while page content scrolls */
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    min-height: 0;
    overflow: hidden;
    z-index: 50;
}

.sidebar-rail {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    flex: 1 1 auto;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 700;
    overflow: hidden;
    background: linear-gradient(120deg, #23b365, #9adf62);
}

.brand-mark.has-logo {
    width: 96px;
    height: 44px;
    flex: 0 0 96px;
    background: #ffffff;
    padding: 4px 6px;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.brand h1 {
    font-size: 1rem;
}

.brand p {
    margin: 2px 0 0;
    font-size: 0.8rem;
    color: #c7f3d5;
}

.menu {
    display: grid;
    gap: 8px;
}

.sidebar .menu {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    align-content: start;
}

.user-panel {
    border: 1px solid #2f8f5a;
    background: #07351f;
    border-radius: 14px;
    padding: 12px;
    display: grid;
    gap: 10px;
}

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

.user-panel-avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #23b365, #0b6f3f);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.user-panel-copy {
    min-width: 0;
}

.user-name {
    margin: 0;
    font-weight: 700;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.25;
}

.user-meta {
    margin: 2px 0 0;
    font-size: 11px;
    color: #d1f6dc;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-panel-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: #dc3545;
    color: #ffffff;
    border: 1px solid #b02a37;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.scope-switcher {
    border: 1px solid #3aa66a;
    border-radius: 10px;
    background: #0b4428;
    overflow: hidden;
}

.sidebar .scope-card,
.scope-card {
    width: 100% !important;
    margin: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 8px 10px !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    text-align: left;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    color: #f2fff6 !important;
    box-shadow: none !important;
    box-sizing: border-box;
}

.sidebar .scope-card:hover,
.sidebar .scope-card.is-open {
    background: rgba(17, 138, 79, 0.18) !important;
}

.scope-card.is-static {
    cursor: default;
}

.scope-card-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.scope-card-copy strong,
.scope-card-copy span {
    display: block;
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scope-card-copy strong {
    color: #ffffff;
    font-weight: 700;
}

.scope-card-copy span {
    color: #c7f3d5;
    font-size: 11px;
}

.scope-card-chevron {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #d1f6dc;
    font-size: 11px;
    line-height: 1;
}

.scope-card-chevron::after {
    content: '▾';
}

.scope-card.is-open .scope-card-chevron::after {
    content: '▴';
}

.user-panel-tools {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.user-panel-tools .user-panel-field {
    flex: 1 1 auto;
    min-width: 0;
}

.user-panel-tools .logout {
    flex: 0 0 auto;
    width: auto;
    height: 30px;
    margin: 0;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    gap: 6px;
    border-radius: 8px;
    font-size: 12px;
    background: rgba(176, 46, 63, 0.22);
    border: 1px solid rgba(240, 138, 148, 0.42);
    color: #ffd6da;
}

.user-panel-tools .logout .menu-icon {
    color: #ff9aa4;
}

.user-panel .required-star {
    display: none !important;
}

.user-panel-field,
.user-panel label.user-panel-field {
    display: grid;
    gap: 4px;
    margin: 0 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    color: #c7f3d5 !important;
}

.user-panel select,
.scope-panel select,
.sidebar .user-panel select,
.user-panel-tools select {
    width: 100%;
    margin: 0;
    appearance: none;
    background-color: #0b4428 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23d1f6dc' d='M1.2 1.3L6 6.1l4.8-4.8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    color: #f2fff6 !important;
    border: 1px solid #3aa66a !important;
    border-radius: 8px !important;
    min-height: 30px !important;
    height: 30px !important;
    padding: 2px 28px 2px 8px !important;
    font-size: 12px !important;
    box-shadow: none !important;
}

.user-panel select:required,
.user-panel select:required:focus {
    border-left: 1px solid #3aa66a !important;
    padding-left: 8px !important;
}

.scope-panel[hidden] {
    display: none !important;
}

.scope-panel {
    padding: 8px 10px 10px;
    border-top: 1px solid #32925e;
    background: rgba(4, 40, 22, 0.35);
}

.scope-panel,
.scope-panel form {
    display: grid;
    gap: 8px;
}

.sidebar .scope-apply-btn {
    width: 100% !important;
    min-height: 30px !important;
    height: 30px;
    margin: 2px 0 0 !important;
    padding: 0 10px !important;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(120deg, #23b365, #0b6f3f) !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 700;
    box-shadow: none !important;
}

.scope-chip {
    margin-top: 4px;
    background: #0b4428;
    border: 1px solid #32925e;
    border-radius: 8px;
    padding: 4px 8px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
}

.scope-chip span {
    color: #cff4da;
}

.scope-chip strong {
    color: #ffffff;
    font-weight: 600;
    text-align: right;
}

.menu a,
.logout {
    text-decoration: none;
    color: #f2fff6;
    padding: 10px 12px;
    border-radius: 10px;
}

.sidebar .menu a,
.sidebar .menu .master-toggle,
.sidebar .logout {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar .menu .master-toggle {
    justify-content: space-between;
}

.sidebar .menu-item-copy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.sidebar .menu-icon {
    display: inline-flex;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    color: #b7ebc8;
}

.sidebar .menu-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.sidebar .menu-label {
    min-width: 0;
}

.sidebar .menu a.active .menu-icon,
.sidebar .menu a:hover .menu-icon,
.sidebar .master-toggle.active .menu-icon,
.sidebar .master-toggle:hover .menu-icon,
.sidebar .logout:hover .menu-icon {
    color: #ffffff;
}

.menu a.active,
.menu a:hover,
.logout:hover {
    background: #0b6f3f;
    color: #fff;
}

.menu .master-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu .menu-arrow {
    font-size: 0.9rem;
    opacity: 0.9;
}

.menu .master-submenu {
    margin-top: -2px;
    padding: 4px 0 6px;
    border-left: 2px solid #55b978;
}

.menu .master-submenu .submenu-link {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 2px 0;
    padding: 7px 12px 7px 18px;
    font-size: 0.82rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu .master-submenu .submenu-link .menu-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu .master-submenu .submenu-link .menu-icon {
    width: 12px;
    height: 12px;
    flex-basis: 12px;
    opacity: 0.8;
}

.menu .master-submenu .submenu-link .menu-icon svg {
    width: 12px;
    height: 12px;
}

.sidebar-flyout {
    position: fixed;
    z-index: 1400;
    min-width: 248px;
    max-width: 320px;
    max-height: min(72vh, 560px);
    overflow: auto;
    padding: 8px;
    border-radius: 14px;
    border: 1px solid #3aa66a;
    background: #07351f;
    box-shadow: 12px 16px 40px rgba(4, 20, 12, 0.38);
}

.sidebar-flyout[hidden] {
    display: none !important;
}

.sidebar-flyout-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    margin-bottom: 4px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-flyout-head .menu-icon {
    color: #b7ebc8;
}

.sidebar-flyout-head .menu-label,
.sidebar-flyout .menu-label {
    display: inline !important;
    font-size: 13px;
    color: #f2fff6;
}

.sidebar-flyout-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-flyout .submenu-link {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 10px;
    border-radius: 10px;
    color: #f2fff6;
    text-decoration: none;
    font-size: 13px;
}

.sidebar-flyout .submenu-link:hover,
.sidebar-flyout .submenu-link.active {
    background: #0b6f3f;
    color: #ffffff;
}

.sidebar-flyout .submenu-link .menu-icon {
    display: inline-flex !important;
    width: 12px;
    height: 12px;
    flex-basis: 12px;
    color: #b7ebc8;
}

.sidebar .menu a.is-flyout-source,
.sidebar .menu .master-toggle.is-flyout-source {
    background: #0b6f3f;
}

.logout {
    margin-top: 0;
    border: 1px solid rgba(240, 138, 148, 0.42);
    background: rgba(176, 46, 63, 0.22);
    color: #ffd6da;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 12px;
}

.content {
    padding: 0;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    background: var(--bg);
    min-height: 100%;
}

.app-topbar h2 {
    font-size: 1.35rem;
}

.topbar h2 {
    font-size: 1.8rem;
}

.topbar p {
    margin: 8px 0 0;
    color: var(--muted);
}

.stats-grid {
    margin-top: 22px;
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.table-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    min-width: 0;
    max-width: 100%;
}

.card {
    padding: 18px 18px;
}

.card h3 {
    font-size: 0.95rem;
    color: var(--muted);
}

.card p {
    margin: 8px 0 0;
    font-size: 1.9rem;
    font-weight: 700;
}

.table-card {
    margin-top: 18px;
    padding: 14px;
}

.table-head {
    padding: 8px 8px 14px;
}

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

.table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
}

.dataTables_wrapper {
    padding: 4px 2px 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 12px;
}

.dataTables_wrapper .dt-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: nowrap;
}

.dataTables_wrapper .dt-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    flex: 0 0 auto;
}

.dataTables_wrapper .dt-button,
.dataTables_wrapper button.dt-button,
.dataTables_wrapper div.dt-button,
.dataTables_wrapper a.dt-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0 !important;
    border-radius: 10px !important;
    padding: 9px 14px !important;
    min-height: 40px;
    background: linear-gradient(120deg, var(--accent), #0f9f6e) !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(15, 159, 110, 0.16);
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;
    text-shadow: none !important;
    margin: 0 !important;
}

.dataTables_wrapper .dt-button:hover,
.dataTables_wrapper button.dt-button:hover,
.dataTables_wrapper div.dt-button:hover,
.dataTables_wrapper a.dt-button:hover {
    border: 0 !important;
    background: linear-gradient(120deg, #0f9f6e, #118d63) !important;
    color: #fff !important;
}

.dataTables_wrapper .dt-button:focus,
.dataTables_wrapper button.dt-button:focus,
.dataTables_wrapper div.dt-button:focus,
.dataTables_wrapper a.dt-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 159, 110, 0.18) !important;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 10px;
    background: #fff;
    min-height: 40px;
}

.dataTables_wrapper .dataTables_length {
    margin: 0;
    flex: 0 0 auto;
    white-space: nowrap;
}

.dataTables_wrapper .dataTables_filter {
    margin: 0 0 0 auto;
    flex: 1 1 auto;
    text-align: right;
}

.dataTables_wrapper .dataTables_filter label {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
}

.dataTables_wrapper .dataTables_filter input {
    width: min(260px, 100%);
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    margin-top: 12px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 8px !important;
}

.dataTables_wrapper .dataTables_processing,
div.dataTables_processing {
    display: none !important;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    overflow: visible;
}

.dataTables_wrapper .dt-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    border: 1px solid var(--line) !important;
    background: #dff4e7 !important;
    color: #063d25 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    border: 1px solid #8acfa8 !important;
    background: #f0fbf4 !important;
    color: #0b5132 !important;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table.dataTable {
    width: 100% !important;
    max-width: 100% !important;
}

table.dataTable > thead > tr > th,
table.dataTable > tbody > tr > td {
    white-space: nowrap;
    word-break: normal;
}

table.dataTable > thead > tr > th.dtr-control,
table.dataTable > tbody > tr > td.dtr-control {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    padding-right: 8px !important;
}

th,
td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    white-space: normal;
    word-break: break-word;
}

th {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.86rem;
}

th.dt-searchable-head {
    vertical-align: top;
}

.dt-head-label {
    display: block;
    margin-bottom: 6px;
    line-height: 1.2;
}

.dt-column-search {
    width: 100%;
    min-width: 110px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 400;
    background: #fff;
}

.dt-column-search:focus {
    border-color: #8db8a7;
    box-shadow: 0 0 0 3px rgba(0, 135, 90, 0.12);
}

table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control {
    position: relative;
    padding-left: 40px !important;
    cursor: pointer;
}

table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control::before,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control::before {
    content: "+";
    position: absolute;
    left: 12px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #0f9f6e;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(15, 159, 110, 0.18);
}

table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td.dtr-control::before,
table.dataTable.dtr-inline.collapsed > tbody > tr.parent > th.dtr-control::before {
    content: "-";
    background: #0b5132;
    box-shadow: 0 4px 10px rgba(11, 81, 50, 0.18);
}

table.dataTable.dtr-inline.collapsed > tbody > tr.child ul.dtr-details {
    width: 100%;
    margin: 0;
}

table.dataTable.dtr-inline.collapsed > tbody > tr.child ul.dtr-details > li {
    display: grid;
    grid-template-columns: minmax(110px, 180px) 1fr;
    gap: 8px 12px;
    padding: 8px 0;
    border-bottom: 1px solid #edf2f7;
}

table.dataTable.dtr-inline.collapsed > tbody > tr.child ul.dtr-details > li:last-child {
    border-bottom: 0;
}

table.dataTable.dtr-inline.collapsed > tbody > tr.child span.dtr-title {
    font-weight: 700;
    color: var(--text);
}

table.dataTable.dtr-inline.collapsed > tbody > tr.child span.dtr-data {
    white-space: normal;
    word-break: break-word;
}

select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 2px 8px;
    font: inherit;
    outline: none;
    background: #fff;
    box-sizing: border-box;
}

select:focus,
textarea:focus {
    border-color: #8db8a7;
    box-shadow: 0 0 0 3px rgba(0, 135, 90, 0.15);
}

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

.btn-link {
    display: inline-flex;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(120deg, var(--accent), #0f9f6e);
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 600;
}

.btn-ghost {
    background: #f0fbf4;
    color: #0b5132;
}

.action-wrap {
    display: flex;
    gap: 8px;
}

.action-wrap form {
    margin: 0;
}

.btn-mini {
    display: inline-flex;
    text-decoration: none;
    border: 0;
    border-radius: 8px;
    padding: 8px 10px;
    background: #dff4e7;
    color: #0b5132;
    font-size: 0.85rem;
    cursor: pointer;
    line-height: 1;
    width: auto;
    margin-top: 0;
}

.btn-danger {
    background: #ffe5eb;
    color: #9f2140;
}

.status-pill {
    display: inline-flex;
    font-size: 0.8rem;
    border-radius: 999px;
    padding: 4px 10px;
    font-weight: 600;
}

.status-pill.active {
    color: #0c6a3f;
    background: #e1f6e7;
}

.status-pill.inactive {
    color: #a1202f;
    background: #ffe8ef;
}

.employee-form {
    margin-top: 8px;
}

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

.hierarchy-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 12px;
    border: 1px dashed #c9d9e8;
    border-radius: 12px;
    margin-bottom: 10px;
    background: #f8fbff;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 16px;
}

.btn-submit {
    width: auto;
    min-width: 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 8px;
}

.detail-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    background: #fff;
}

.detail-card h4 {
    margin: 0 0 10px;
    font-size: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid #edf2f7;
    padding: 8px 0;
}

.detail-row span {
    color: var(--muted);
    font-size: 0.86rem;
}

.detail-row strong {
    font-size: 0.88rem;
    text-align: right;
    font-weight: 600;
}

.permissions-toolbar {
    margin-bottom: 12px;
    align-items: end;
    gap: 14px;
}

.permissions-search {
    min-width: min(340px, 100%);
    flex: 1 1 340px;
}

.permissions-status-wrap {
    display: flex;
    align-items: flex-end;
    min-height: 100%;
}

.permissions-status {
    color: #667085;
}

.permissions-table {
    table-layout: fixed;
}

.permissions-table .perm-menu-col {
    width: 28%;
    min-width: 250px;
}

.permissions-table .perm-flag-col {
    width: 72px;
}

.permissions-table .perm-menu-head,
.permissions-table .perm-menu-cell {
    text-align: left;
}

.permissions-table .perm-flag-head,
.permissions-table .perm-check-cell {
    text-align: center;
    vertical-align: middle;
    padding-left: 6px;
    padding-right: 6px;
}

.permissions-table .perm-head-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 74px;
    line-height: 1.15;
}

.permissions-table .perm-head-stack span {
    display: block;
    text-align: center;
    white-space: normal;
    word-break: break-word;
}

.permissions-table .perm-menu-cell {
    white-space: normal;
}

.permissions-table .perm-menu-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.permissions-table .perm-toggle-children {
    width: 24px;
    min-width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    border-radius: 999px;
    border: 1px solid #b9dcc7;
    background: #f0fbf4;
    color: var(--forest);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.permissions-table .perm-toggle-children:hover {
    background: #ddeaf5;
}

.permissions-table .perm-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.permissions-table .perm-menu-label {
    font-weight: 600;
    color: var(--text);
}

.permissions-table .perm-menu-label.is-submenu {
    padding-left: 40px;
    position: relative;
}

.permissions-table .perm-menu-label.is-submenu::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 50%;
    width: 14px;
    height: 2px;
    background: #9bb2c8;
    transform: translateY(-50%);
    border-radius: 999px;
}

.permissions-table .perm-menu-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.permissions-table .perm-submenu-count {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.permissions-table .perm-submenu-count {
    background: #e8f7ef;
    color: #166345;
}

.permissions-table .perm-row-menu {
    background: linear-gradient(180deg, #fbfcfe 0%, #f6f9fc 100%);
}

.permissions-table .perm-row-parent-only .perm-check-cell {
    background: linear-gradient(180deg, #fbfcfe 0%, #f6f9fc 100%);
}

.permissions-table .perm-row-parent-only .perm-check-cell::after {
    content: "";
    display: block;
    height: 18px;
}

.permissions-table .perm-row-submenu td {
    background: #fcfdff;
}

.permissions-table .perm-col-toggle,
.permissions-table .perm-cell-checkbox {
    width: 18px;
    height: 18px;
    margin: 0;
    vertical-align: middle;
}

.settings-scope-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 8px 14px;
    padding: 10px 12px;
    border: 1px dashed #c9d9e8;
    border-radius: 12px;
    background: #f8fbff;
    color: var(--muted);
    font-size: 0.9rem;
}

.settings-scope-bar strong {
    color: var(--text);
}

.settings-form-grid {
    margin-top: 6px;
}

.settings-group-card {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fdfefe;
}

.settings-group-card .table-head {
    padding: 0 0 12px;
}

.settings-workspace {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    margin-top: 18px;
    border: 1px solid #cfe4d6;
    border-radius: 20px;
    overflow: visible;
    background: linear-gradient(180deg, #ffffff, #eaf8ef);
    box-shadow: 0 18px 42px rgba(8, 72, 40, 0.08);
    padding: 14px;
}

.settings-menu {
    position: sticky;
    top: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: calc(100vh - 36px);
    max-height: none;
    overflow-y: auto;
    padding: 12px;
    min-height: 0;
    background: linear-gradient(180deg, #eaf8ef, #eef8f1);
    border: 1px solid #cfe4d6;
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.settings-menu-link {
    display: flex;
    align-items: center;
    min-height: 42px;
    width: 100%;
    text-decoration: none;
    border: 1px solid #d8eadf;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    color: #153524;
    text-align: left;
    padding: 10px 12px;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.25;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    white-space: normal;
    word-break: break-word;
}

.settings-menu-link[disabled] {
    cursor: not-allowed;
    opacity: 0.55;
}

.settings-menu-link:hover {
    background: #ffffff;
    border-color: #8acfa8;
    color: #0b5132;
    transform: translateX(2px);
    box-shadow: 0 8px 18px rgba(8, 72, 40, 0.08);
}

.settings-menu-link.active {
    background: linear-gradient(120deg, #118a4f, #0b6f3f);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 22px rgba(17, 138, 79, 0.22);
}

.settings-panels {
    min-width: 0;
    background: linear-gradient(180deg, #ffffff, #eaf8ef);
    padding: 0;
}

.settings-panel {
    display: none;
}

.settings-panel.active {
    display: block;
}

.settings-form-actions {
    margin-top: 18px;
}

.settings-panel .settings-group-card,
.settings-panel .penalty-raw-block {
    margin-top: 0;
}

.settings-panel .settings-group-card {
    border-radius: 18px;
    border-color: #cfe4d6;
    box-shadow: 0 10px 24px rgba(8, 72, 40, 0.05);
    background: #fff;
}

.settings-panel .settings-group-card .table-head h3 {
    margin: 0;
    font-size: 1.05rem;
}

.settings-panel .settings-group-card .table-head {
    margin: -16px -16px 16px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid #cfe4d6;
    background: linear-gradient(120deg, #ffffff, #eaf8ef);
    border-radius: 18px 18px 0 0;
}

.settings-tab-wrap {
    margin-top: 8px;
}

.settings-tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.settings-tab-link {
    border: 1px solid #c9d9e8;
    background: #f3f8fc;
    color: #26415c;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.settings-tab-link.active {
    background: linear-gradient(120deg, var(--accent), #0f9f6e);
    color: #fff;
    border-color: transparent;
}

.settings-tab-panel {
    display: none;
}

.settings-tab-panel.active {
    display: block;
}

.penalty-raw-block {
    margin-top: 0;
}

.penalty-raw-block > h2,
.penalty-raw-block > .table-head {
    margin: -16px -16px 16px;
    padding: 14px 16px !important;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(120deg, var(--accent), #16b4af);
    color: #fff;
}

.penalty-raw-block > h2 strong,
.penalty-raw-block > .table-head h3 {
    color: #fff;
    margin: 0;
}

.penalty-raw-block > .table-head.earning-copy-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
}

.penalty-raw-block > .table-head.earning-copy-head h2,
.penalty-raw-block > .table-head.earning-copy-head h3 {
    flex: 1 1 auto;
    min-width: 0;
    color: #fff;
    margin: 0;
}

.penalty-raw-block > .table-head.earning-copy-head h2 strong {
    color: #fff;
}

.penalty-raw-block > .table-head .earning-copy-btn {
    width: auto;
    margin: 0;
    flex: 0 0 auto;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    color: #0b5132;
    background: #fff;
}

.penalty-raw-block .box.box-block.bg-white {
    background: #fff;
    border: 1px solid #dbe6ef;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: none;
}

.penalty-raw-block .box.box-block.bg-white:last-child {
    margin-bottom: 0;
}

.approval_settingtab {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid #d9e4ee;
    margin-bottom: 16px;
}

.approval_settingtab .tablinks {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border: 1px solid #cfe0ec;
    border-radius: 999px;
    background: #f4f9fd;
    color: #244261;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.2;
    transition: all 0.18s ease;
}

.approval_settingtab .tablinks:hover {
    border-color: #8db8a7;
    color: var(--forest);
    background: #eef8f4;
}

.approval_settingtab .tablinks.active {
    background: linear-gradient(120deg, var(--accent), #0f9f6e);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 24px rgba(15, 159, 110, 0.18);
}

.approval_settingtabcontent {
    display: none;
    border: 1px solid #dbe6ef;
    border-radius: 16px;
    background: #fbfdff;
    padding: 16px;
    margin-top: 8px;
}

.approval_settingtabcontent.active {
    display: block !important;
}

.penalty-raw-block .table-responsive {
    overflow-x: auto;
}

.penalty-raw-block table.table {
    width: 100%;
    min-width: 920px;
    border-collapse: separate;
    border-spacing: 0;
}

.penalty-raw-block table.table thead th,
.penalty-raw-block table.table tbody td {
    vertical-align: middle;
    padding: 8px;
}

.penalty-raw-block table.table input,
.penalty-raw-block table.table select {
    width: 100%;
}

@media (max-width: 768px) {
    .settings-workspace {
        grid-template-columns: 1fr;
        border-radius: 18px;
    }

    .settings-menu {
        position: static;
        height: auto;
        max-height: none;
    }

    .settings-panels {
        padding: 0;
    }

    .approval_settingtab {
        gap: 8px;
    }

    .approval_settingtab .tablinks {
        width: 100%;
        justify-content: flex-start;
    }

    .approval_settingtabcontent {
        padding: 12px;
    }
}

.settings-field-full {
    grid-column: 1 / -1;
}

.settings-empty {
    margin: 8px;
    padding: 14px 16px;
    border: 1px dashed #c9d9e8;
    border-radius: 12px;
    background: #f8fbff;
    color: var(--muted);
}

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

@media (max-width: 768px) {
    .auth-wrap {
        grid-template-columns: 1fr;
    }

    .auth-art {
        padding: 32px 26px;
    }

    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        gap: 14px;
    }

    .content {
        padding: 0;
    }

    .hr-toast-container {
        left: 16px;
        right: 16px;
        top: 16px;
    }

    .hr-toast {
        min-width: 0;
        max-width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .table-head-row,
    .action-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .hierarchy-grid {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .btn-submit {
        width: 100%;
    }

    .permissions-table {
        min-width: 0;
    }

    .dataTables_wrapper .row {
        display: block;
    }

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        width: 100%;
        text-align: left !important;
        margin-bottom: 10px;
    }

    .dataTables_wrapper .dt-toolbar,
    .dataTables_wrapper .dt-buttons {
        width: 100%;
    }

    .dataTables_wrapper .dt-toolbar {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .dataTables_wrapper .dt-button,
    .dataTables_wrapper button.dt-button,
    .dataTables_wrapper div.dt-button,
    .dataTables_wrapper a.dt-button {
        flex: 1 1 auto;
    }

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        margin: 0;
    }

    .dataTables_wrapper .dataTables_filter {
        text-align: left;
    }

    .dataTables_wrapper .dataTables_filter label {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

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

    .dt-column-search {
        min-width: 90px;
    }
}

/* Green HR theme overrides */
.app-topbar h2,
.topbar h2,
.topbar h1,
.table-head h3,
.table-head h4,
.detail-card h4,
.detail-card h5,
.card p,
.card h1,
.card h2,
.card h3,
.card h4,
.card strong,
.brand h1,
.settings-panel h3,
.report-stat strong {
    color: #0b5132;
}

body,
.content,
.main,
.table-card,
.detail-card,
.settings-panel,
.settings-group-card,
.card,
.modal,
.profile-chip,
.kpi-row strong,
.mini-value,
.summary-card .value,
.list-item h4,
table td,
label {
    color: #153524;
}

.muted,
.text-muted,
.card small,
.content small,
.main small,
.employee-form small,
.employee-form .user-meta,
.content .user-meta,
.main .user-meta,
.form-help,
.field-help,
.help-text,
.hint,
.note,
.esic-field-help,
.esic-note,
.grade-leave-note,
.calendar-note,
.leave-note,
.permissions-status,
.summary-card .label,
.summary-card .sub,
.mini-label,
.kpi-row span:first-child,
.list-item p,
.list-item small,
.profile-chip .role,
.dataTables_info,
.dataTables_length label,
.dataTables_filter label,
.report-notes,
.report-filter-static {
    color: #5f7868 !important;
}

.employee-form .user-meta,
.content .user-meta,
.main .user-meta {
    display: block;
    margin-top: 10px;
    color: #2f6f4f !important;
    font-weight: 600;
}

input::placeholder,
textarea::placeholder {
    color: #6f8878 !important;
    opacity: 1;
}

select:disabled,
input:disabled,
textarea:disabled,
button:disabled,
.settings-menu-link[disabled] {
    color: #5f7868 !important;
    opacity: 0.82;
}

.hr-native-select-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.hr-search-select {
    position: relative;
    width: 100%;
}

.hr-search-select__button {
    width: 100%;
    min-height: 30px;
    height: 30px;
    margin: 0;
    padding: 2px 32px 2px 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: #153524;
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
    position: relative;
    box-shadow: none;
}

.hr-search-select__button::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid #0b5132;
    border-bottom: 2px solid #0b5132;
    transform: translateY(-65%) rotate(45deg);
}

.hr-search-select__button:hover,
.hr-search-select.is-open .hr-search-select__button {
    border-color: #8acfa8;
    box-shadow: 0 0 0 3px rgba(17, 138, 79, 0.12);
}

.hr-search-select__button.is-placeholder {
    color: #6f8878;
}

select:required + .hr-search-select .hr-search-select__button,
.employee-form select[required] + .hr-search-select .hr-search-select__button {
    border-left: 4px solid #d11a2a;
    padding-left: 11px;
}

.hr-search-select.is-disabled .hr-search-select__button {
    background: #f6fbf7;
    color: #5f7868;
    cursor: not-allowed;
    opacity: 0.82;
}

.hr-search-select__dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 80;
    display: none;
    padding: 10px;
    border: 1px solid #b9dcc7;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(8, 72, 40, 0.18);
}

.hr-search-select.is-open .hr-search-select__dropdown {
    display: block;
}

.hr-search-select__input {
    width: 100%;
    min-height: 30px;
    height: 30px;
    border: 1px solid #cfe4d6;
    border-radius: 8px;
    padding: 2px 8px;
    font: inherit;
    font-size: 12px;
    color: #153524;
    background: #f9fdfb;
    outline: none;
}

.hr-search-select__input:focus {
    border-color: #8acfa8;
    box-shadow: 0 0 0 3px rgba(17, 138, 79, 0.12);
}

.hr-search-select__list {
    max-height: 260px;
    overflow-y: auto;
    display: grid;
    gap: 4px;
    margin-top: 8px;
}

.hr-search-select__option {
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 9px;
    padding: 9px 10px;
    background: transparent;
    color: #153524;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.hr-search-select__option:hover,
.hr-search-select__option[aria-selected="true"] {
    background: #eaf8ef;
    color: #0b5132;
}

.hr-search-select__empty {
    padding: 12px 10px;
    color: #5f7868;
    font-size: 13px;
    text-align: center;
}

.text-dark,
.text-black,
.fw-bold,
.font-weight-bold,
.content a:not(.btn-link):not(.btn-submit):not(.btn-ghost):not(.app-topbar-link),
.main a:not(.btn-link):not(.btn-submit):not(.btn-ghost):not(.app-topbar-link) {
    color: #0b5132;
}

.table-card,
.card,
.detail-card,
.settings-group-card,
.settings-panel,
.employee-route-map,
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select,
input,
select,
textarea {
    border-color: #cfe4d6 !important;
}

.table-card,
.card,
.detail-card,
.settings-group-card,
.settings-panel {
    box-shadow: 0 14px 34px rgba(8, 72, 40, 0.07);
}

.table-head,
.detail-card,
.settings-group-card,
.report-page .card-panel {
    background: linear-gradient(180deg, #ffffff 0%, #f7fcf8 100%);
}

.btn-link,
.btn-submit,
.dataTables_wrapper .dt-button,
.dataTables_wrapper button.dt-button,
.dataTables_wrapper div.dt-button,
.dataTables_wrapper a.dt-button,
.bulk-training-link,
.report-side-list a.active,
.report-page .btn-link {
    background: linear-gradient(120deg, #118a4f, #0b6f3f) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 10px 24px rgba(17, 138, 79, 0.18) !important;
}

.btn-link:hover,
.btn-submit:hover,
.dataTables_wrapper .dt-button:hover,
.dataTables_wrapper button.dt-button:hover,
.dataTables_wrapper div.dt-button:hover,
.dataTables_wrapper a.dt-button:hover {
    background: linear-gradient(120deg, #0b6f3f, #118a4f) !important;
}

.btn-ghost,
.btn-link.btn-ghost,
.report-page .btn-ghost,
.dataTables_wrapper .dataTables_paginate .paginate_button,
.settings-menu-link,
.workspace-quick-link,
.scope-chip,
.mini-info,
.list-item,
.report-side-list a {
    background: #f0fbf4 !important;
    border-color: #cfe4d6 !important;
    color: #0b5132 !important;
}

.settings-menu-link.active,
.settings-menu-link:hover,
.workspace-quick-link.active,
.workspace-quick-link:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #dff4e7 !important;
    border-color: #8acfa8 !important;
    color: #063d25 !important;
}

.settings-menu .settings-menu-link {
    background: rgba(255, 255, 255, 0.72) !important;
    border-color: #d8eadf !important;
    color: #153524 !important;
}

.settings-menu .settings-menu-link:hover {
    background: #ffffff !important;
    border-color: #8acfa8 !important;
    color: #0b5132 !important;
}

.settings-menu .settings-menu-link.active {
    background: linear-gradient(120deg, #118a4f, #0b6f3f) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: 0 10px 22px rgba(17, 138, 79, 0.22) !important;
}

.workspace-menu-search input {
    border-color: #cfe4d6 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    color: #153524 !important;
}

.workspace-menu-search input::placeholder {
    color: #7c9386 !important;
}

.workspace-menu-search input:focus {
    border-color: #8acfa8 !important;
    box-shadow: 0 0 0 3px rgba(17, 138, 79, 0.14) !important;
}

table thead th,
.dataTables_wrapper table.dataTable thead th,
.report-table thead th,
.fy-breakdown-table th,
.db-blank-table th {
    background: #eaf8ef !important;
    color: #0b5132 !important;
    border-bottom-color: #cfe4d6 !important;
}

table tbody tr:hover td,
.dataTables_wrapper table.dataTable tbody tr:hover,
.report-table tbody tr:hover td,
.fy-breakdown-table tbody tr:hover td {
    background: #f5fbf7 !important;
}

input:focus,
select:focus,
textarea:focus,
.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
    border-color: #8acfa8 !important;
    box-shadow: 0 0 0 3px rgba(17, 138, 79, 0.14) !important;
}

input:required,
select:required,
textarea:required,
.employee-form input[required],
.employee-form select[required],
.employee-form textarea[required] {
    border-left: 4px solid #d11a2a !important;
    padding-left: 11px;
}

input:required:focus,
select:required:focus,
textarea:required:focus,
.employee-form input[required]:focus,
.employee-form select[required]:focus,
.employee-form textarea[required]:focus {
    border-left-color: #d11a2a !important;
}

.badge,
.status-badge,
.db-blank-tags span,
.route-summary div,
.summary-card,
.kpi-box,
.profile-chip {
    background: #f0fbf4 !important;
    border-color: #cfe4d6 !important;
    color: #0b5132 !important;
}

.alert.success,
.hr-toast.is-success {
    color: #0b5132;
    background: #dff4e7;
}

.alert.error,
.hr-toast.is-error {
    color: #7f1d1d;
    background: #fdecec;
}

.auth-card,
.auth-wrap {
    border: 1px solid #cfe4d6;
}

.auth-card h2 {
    color: #0b5132;
}

.app-shell.sidebar-collapsed .sidebar,
.sidebar {
    background: linear-gradient(180deg, #042816, #0b5132) !important;
    color: #f2fff6 !important;
}

.sidebar .brand p,
.sidebar .user-meta,
.sidebar .scope-chip span {
    color: #d1f6dc !important;
}

.sidebar .scope-chip,
.sidebar .user-panel {
    background: #07351f !important;
    border-color: #32925e !important;
    color: #f2fff6 !important;
}

.sidebar .scope-chip strong,
.sidebar .user-name {
    color: #ffffff !important;
}

.sidebar .menu a,
.sidebar .master-toggle {
    color: #f2fff6 !important;
}

.sidebar .logout {
    color: #ffd6da !important;
}

.sidebar .logout .menu-icon {
    color: #ff9aa4 !important;
}

.menu a.active,
.menu a:hover,
.sidebar .master-toggle.active,
.sidebar .master-toggle:hover {
    background: #0b6f3f !important;
    color: #ffffff !important;
}

.logout:hover,
.sidebar .logout:hover {
    background: rgba(176, 46, 63, 0.42) !important;
    border-color: rgba(255, 179, 186, 0.7) !important;
    color: #ffffff !important;
}

.logout:hover .menu-icon,
.sidebar .logout:hover .menu-icon {
    color: #ffffff !important;
}

.menu .master-submenu .submenu-link:hover,
.menu .master-submenu .submenu-link.active {
    background: #0b5934 !important;
    color: #ffffff !important;
}

.user-panel,
.scope-chip {
    box-shadow: inset 0 0 0 1px rgba(223, 244, 231, 0.06);
}

.card-blue,
.card-green,
.card-orange,
.card-red,
.card-purple,
.card-cyan {
    background: linear-gradient(135deg, #eaf8ef, #ffffff) !important;
    border-left-color: #118a4f !important;
}

.fill-blue,
.fill-green,
.fill-orange,
.fill-purple,
.progress-bar > div {
    background: linear-gradient(90deg, #118a4f, #7ed957) !important;
}

.training-video-card,
.bulk-training-card,
.video-shell {
    background: linear-gradient(135deg, #042816, #118a4f) !important;
}

.training-video-link,
.bulk-training-toggle,
.video-chip {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.24) !important;
    color: #fff !important;
}

.route-marker-label {
    background: #0b5132 !important;
}

.route-marker-label.end {
    background: #22a95f !important;
}

.route-marker-label.point {
    background: #118a4f !important;
}

.bulk-salary-card,
.bulk-salary-table-wrap {
    border-color: #cfe4d6 !important;
}

.bulk-salary-table th,
.bulk-salary-table thead .employee-info-col {
    background: #eaf8ef !important;
    color: #0b5132 !important;
}

.bulk-salary-table thead tr:nth-child(2) th,
.bulk-salary-table thead tr:nth-child(2) .employee-info-col {
    background: linear-gradient(180deg, #118a4f 0%, #22a95f 100%) !important;
    color: #ffffff !important;
}

.employee-info-name {
    color: #0b5132 !important;
}

.employee-info-meta,
.bulk-salary-note,
.bulk-salary-empty {
    color: #5f7868 !important;
}


@media (max-width: 768px) {
    .auth-art {
        min-height: auto;
        gap: 24px;
    }

    .auth-art h1 {
        max-width: 12ch;
        font-size: 2.35rem;
    }

    .auth-illustration {
        min-height: 220px;
    }

    .auth-phone-art {
        right: 8px;
        width: 162px;
        min-height: 206px;
    }

    .auth-check-ring {
        left: 0;
        bottom: 62px;
        width: 92px;
        height: 92px;
        border-width: 9px;
        font-size: 1.35rem;
    }

    .auth-pay-art {
        right: 0;
        bottom: 4px;
        min-width: 124px;
    }

    .auth-flow-dot.one {
        left: 112px;
    }

    .auth-flow-dot.two {
        right: 188px;
    }
}

/* Compact form typography, scaled to 12px inputs (was ~17px labels). */
label:not(.sr-only),
.employee-form label,
.form-grid label,
.settings-form-grid label,
.profile-dt-filters label,
.dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper .dataTables_length label,
.dt-head-label,
.detail-row span,
.profile-box span,
.summary-card .label,
.mini-label,
.kpi-row span:first-child,
.field-help strong,
.form-help strong {
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
}

.table-head h3,
.table-head h4,
.employee-form h3,
.compact-crud-form h3,
.settings-panel .settings-group-card .table-head h3 {
    font-size: 16px;
    line-height: 1.3;
}

.employee-form h3,
.compact-crud-form h3 {
    font-size: 14px;
    margin: 14px 0 8px;
}

.table-head p,
.form-help,
.field-help,
.help-text,
.hint {
    font-size: 12px;
}

.detail-row strong {
    font-size: 12px !important;
    font-weight: 600 !important;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]):not([type="range"]):not([type="color"]):not([type="file"]),
select:not([multiple]),
.hr-search-select__button {
    min-height: 30px !important;
    height: 30px;
    padding: 2px 8px !important;
    font-size: 12px !important;
    line-height: 1.2;
    border-radius: 8px;
    box-sizing: border-box;
}

.hr-search-select__button {
    padding: 2px 32px 2px 8px !important;
}

select[multiple],
textarea {
    min-height: 72px !important;
    height: auto;
    padding: 6px 8px !important;
    font-size: 12px !important;
    line-height: 1.35;
    border-radius: 8px;
    box-sizing: border-box;
}

input[type="file"] {
    min-height: 30px !important;
    height: auto;
    padding: 4px 8px !important;
    font-size: 12px !important;
    border-radius: 8px;
}

input[type="checkbox"],
input[type="radio"] {
    width: 16px !important;
    height: 16px !important;
    min-height: 16px !important;
    padding: 0 !important;
    margin: 0;
}

.dt-column-search,
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    min-height: 30px !important;
    height: 30px;
    padding: 2px 8px !important;
    font-size: 12px !important;
}

@media (max-width: 768px) {
    label:not(.sr-only),
    .employee-form label,
    .form-grid label,
    .settings-form-grid label,
    .profile-dt-filters label,
    .dataTables_wrapper .dataTables_filter label,
    .dataTables_wrapper .dataTables_length label,
    .dt-head-label {
        font-size: 13px !important;
    }
}

/* Company and Location create/edit forms. */
.compact-crud-form .form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 14px;
}
.compact-crud-form .compact-crud-grid-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.compact-crud-form .form-grid > div {
    min-width: 0;
}
.compact-crud-form label {
    font-size: 13px !important;
    line-height: 1.25 !important;
    margin-bottom: 4px;
}
.compact-crud-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.compact-crud-form select:not([multiple]),
.compact-crud-form .hr-search-select__button {
    min-height: 30px;
    height: 30px;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 12px;
}
.compact-crud-form textarea {
    min-height: 72px;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 12px;
}
.compact-crud-form input[type="checkbox"],
.compact-crud-form input[type="radio"] {
    width: 16px;
    height: 16px;
    min-height: 0;
    padding: 0;
}
@media (max-width: 1100px) {
    .compact-crud-form .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .compact-crud-form .form-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Compact action buttons: hug label width, match 30px inputs. */
.content .btn-link,
.content .btn-submit,
.content button.btn-link,
.content button.btn-submit,
.content a.btn-link,
.content input.btn-submit,
.dataTables_wrapper .dt-button,
.dataTables_wrapper button.dt-button,
.dataTables_wrapper div.dt-button,
.dataTables_wrapper a.dt-button {
    width: auto !important;
    min-width: 0 !important;
    min-height: 30px !important;
    height: 30px;
    margin-top: 0 !important;
    padding: 2px 12px !important;
    font-size: 12px !important;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 8px;
    box-sizing: border-box;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(17, 138, 79, 0.14) !important;
}

.content .btn-ghost,
.content .btn-link.btn-ghost {
    box-shadow: none !important;
}

.sidebar .btn-link,
.sidebar button.btn-link {
    min-height: 30px !important;
    height: 30px;
    padding: 2px 12px !important;
    font-size: 12px !important;
    line-height: 1.2;
    border-radius: 8px;
    box-shadow: none !important;
}

.leave-app-form-actions,
.leave-app-actions,
.form-actions {
    justify-content: flex-start;
}

.tox button,
.tox .tox-tbtn {
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    padding: unset;
    font-size: unset;
    margin: unset;
    box-shadow: none !important;
}

/* ColVis dropdown: stacked list (overrides toolbar .dt-button !important rules). */
div.dt-button-background {
    display: none !important;
    pointer-events: none !important;
}

div.dt-button-collection {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 4px;
    min-width: 220px;
    max-width: min(92vw, 320px);
    max-height: min(70vh, 480px);
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 8px !important;
    border-radius: 10px !important;
    border: 1px solid #d7e5dc !important;
    background: #fff !important;
    box-shadow: 0 12px 28px rgba(11, 81, 50, 0.14) !important;
    z-index: 10050 !important;
    pointer-events: auto !important;
}

div.dt-button-collection .dt-button,
div.dt-button-collection button.dt-button,
div.dt-button-collection div.dt-button,
div.dt-button-collection a.dt-button,
.dataTables_wrapper div.dt-button-collection .dt-button,
.dataTables_wrapper div.dt-button-collection button.dt-button,
.dataTables_wrapper div.dt-button-collection div.dt-button,
.dataTables_wrapper div.dt-button-collection a.dt-button {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    float: none !important;
    clear: both !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #f3faf6 !important;
    color: #0b5132 !important;
    box-shadow: none !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    text-align: left !important;
    text-shadow: none !important;
    box-sizing: border-box !important;
}

div.dt-button-collection .dt-button:hover,
div.dt-button-collection button.dt-button:hover,
div.dt-button-collection div.dt-button:hover,
div.dt-button-collection a.dt-button:hover,
.dataTables_wrapper div.dt-button-collection .dt-button:hover,
.dataTables_wrapper div.dt-button-collection button.dt-button:hover,
.dataTables_wrapper div.dt-button-collection div.dt-button:hover,
.dataTables_wrapper div.dt-button-collection a.dt-button:hover {
    background: #e5f4eb !important;
    color: #0b5132 !important;
    filter: none !important;
}

div.dt-button-collection .dt-button.active,
div.dt-button-collection button.dt-button.active,
.dataTables_wrapper div.dt-button-collection .dt-button.active,
.dataTables_wrapper div.dt-button-collection button.dt-button.active {
    background: #dff3e8 !important;
    color: #0b5132 !important;
}

div.dt-button-collection .dt-button.active:after,
div.dt-button-collection button.dt-button.active:after {
    color: #0f9f6e !important;
    text-shadow: none !important;
}
/* =========================================================
   Mobile responsiveness — app shell drawer + content fixes
   ========================================================= */
.mobile-nav-toggle,
.mobile-nav-close,
.mobile-nav-backdrop {
    display: none;
}

.mobile-nav-toggle {
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
}

.mobile-nav-toggle-bars {
    display: grid;
    gap: 4px;
    width: 16px;
}

.mobile-nav-toggle-bars span {
    display: block;
    height: 2px;
    border-radius: 999px;
    background: #fff;
}

.mobile-nav-close {
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 220;
    background: rgba(4, 40, 22, 0.48);
}

body.mobile-nav-locked {
    overflow: hidden;
}

@media (max-width: 900px) {
    .app-shell {
        grid-template-columns: 1fr !important;
    }

    .app-shell.sidebar-collapsed {
        grid-template-columns: 1fr !important;
    }

    .app-shell .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 240;
        width: min(86vw, 320px);
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        transform: translateX(-105%);
        transition: transform 0.22s ease;
        box-shadow: 18px 0 40px rgba(0, 0, 0, 0.28);
    }

    .app-shell.mobile-nav-open .sidebar {
        transform: translateX(0);
    }

    .app-shell .sidebar-rail {
        height: 100%;
        max-height: 100dvh;
        overflow: hidden;
    }

    .app-shell .sidebar .menu {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        flex: 1 1 auto;
        min-height: 0;
    }

    .mobile-nav-toggle,
    .mobile-nav-close {
        display: inline-flex;
    }

    .mobile-nav-backdrop:not([hidden]) {
        display: block;
    }

    /* On mobile, ignore desktop collapse rail */
    .app-shell.sidebar-collapsed .sidebar {
        width: min(86vw, 320px) !important;
    }

    .app-shell.sidebar-collapsed .brand-copy,
    .app-shell.sidebar-collapsed .user-panel-identity,
    .app-shell.sidebar-collapsed .scope-switcher,
    .app-shell.sidebar-collapsed .menu-label,
    .app-shell.sidebar-collapsed .menu-arrow {
        display: initial;
    }

    .app-shell.sidebar-collapsed .sidebar .menu a,
    .app-shell.sidebar-collapsed .sidebar .menu .master-toggle {
        width: auto;
        justify-content: flex-start;
    }

    .sidebar-toggle {
        display: none !important;
    }

    .content-body {
        padding: 14px 12px 20px !important;
    }

    .app-topbar {
        padding: 8px 10px 10px !important;
        position: sticky;
        top: 0;
        z-index: 180;
        gap: 8px !important;
    }

    .app-topbar h2 {
        white-space: normal !important;
        font-size: 17px !important;
        line-height: 1.25 !important;
    }

    .app-topbar-user-copy {
        display: none !important;
    }

    .app-topbar-links {
        display: none !important;
    }

    .global-employee-search {
        flex: 1 1 auto;
        min-width: 0 !important;
        width: auto !important;
        max-width: none !important;
    }

    .global-employee-search input {
        min-height: 40px;
        font-size: 16px !important;
    }

    .table-card,
    .card,
    .settings-group-card {
        border-radius: 14px;
    }

    .table-card,
    .table-wrap,
    .dataTables_wrapper,
    .bulk-salary-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }

    .table-head-row,
    .action-wrap,
    .form-actions {
        flex-wrap: wrap;
        gap: 10px;
    }

    .settings-workspace {
        grid-template-columns: 1fr !important;
    }

    .settings-menu {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        max-height: none !important;
        height: auto !important;
    }

    .settings-menu a,
    .settings-menu .settings-menu-link,
    .settings-menu button {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .settings-form-grid,
    .form-grid,
    .loan-advance-form-grid,
    .travel-reimb-grid,
    .hierarchy-grid,
    .detail-grid {
        grid-template-columns: 1fr !important;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .btn-submit,
    .content .btn-submit {
        width: 100% !important;
    }

    .content .btn-link,
    .content a.btn-link {
        white-space: normal;
    }

    /* Employee self-service long tables */
    .payroll-compact-table,
    .bulk-salary-table,
    table.table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .inline-upload input[type=file] {
        max-width: 100%;
    }
}

@media (max-width: 560px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    .content-body {
        padding: 12px 10px 18px !important;
    }

    .app-topbar-subtitle {
        display: none;
    }
}
