@import 'tailwindcss';

@source '../views';
@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';

@theme {
    --font-sans:
        Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        'Segoe UI', sans-serif;
}

:root {
    --primary: #52bb0b;
    --primary-rgb: 82, 187, 11;
    --primary-dark: #197343;
    --primary-dark-rgb: 25, 115, 67;
    --primary-soft: #e8f7df;
    --accent-blue: #197343;
    --accent-blue-rgb: 25, 115, 67;
    --background: #f5fbf1;
    --surface: #fff;
    --text-primary: #292929;
    --text-secondary: #667085;
    --border: #e5e9e7;
    --warning: #f5a623;
    --danger: #e53935;
    --radius-lg: 16px;
    --shadow-card:
        0 1px 2px rgba(16, 24, 40, 0.02), 0 4px 12px rgba(16, 24, 40, 0.04);
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--background);
    color: var(--text-primary);
    font-family: var(--font-sans);
}

.employee-mobile-shell {
    min-height: 100vh;
    background: var(--mobile-background);
}
.employee-mobile-page {
    width: min(100%, 520px);
    min-height: 100vh;
    margin: 0 auto;
    padding-bottom: 86px;
    background: var(--mobile-background);
}
.employee-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    background: #fff;
}
.employee-mobile-brand img {
    display: block;
    width: 108px;
    height: auto;
}
.employee-mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.employee-mobile-icon-button,
.employee-mobile-avatar {
    position: relative;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--primary) 12%, white);
    border-radius: 50%;
    background: #fff;
    color: #50645b;
    text-decoration: none;
    font-size: 19px;
}
.employee-mobile-avatar {
    border: 0;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 800;
}
.employee-mobile-notification-menu {
    position: relative;
}
.employee-mobile-notification-popover {
    position: absolute;
    top: 47px;
    right: 0;
    z-index: 20;
    width: min(300px, calc(100vw - 28px));
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--primary) 12%, white);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(var(--primary-dark-rgb), 0.14);
}
.employee-mobile-notification-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px;
    border-bottom: 1px solid color-mix(in srgb, var(--primary) 8%, white);
}
.employee-mobile-notification-heading strong {
    color: #244438;
    font-size: 12px;
}
.employee-mobile-notification-heading span {
    color: #83958b;
    font-size: 10px;
}
.employee-mobile-notification-heading button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--primary);
    font-size: 10px;
    font-weight: 750;
}
.employee-mobile-notification-list {
    max-height: 330px;
    overflow-y: auto;
}
.employee-mobile-notification-list article {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 12px 13px;
    border-bottom: 1px solid color-mix(in srgb, var(--primary) 8%, white);
}
.employee-mobile-notification-list article.is-unread {
    background: color-mix(in srgb, var(--primary) 6%, white);
    cursor: pointer;
}
.employee-mobile-notification-list article:last-child {
    border-bottom: 0;
}
.employee-mobile-notification-icon {
    display: grid;
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    place-items: center;
    border-radius: 8px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
}
.employee-mobile-notification-list article > div {
    min-width: 0;
}
.employee-mobile-notification-list strong {
    display: block;
    overflow: hidden;
    color: #29483b;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.employee-mobile-notification-list p {
    margin: 3px 0 0;
    color: #71827a;
    font-size: 10px;
    line-height: 1.4;
}
.employee-mobile-notification-list small {
    display: block;
    margin-top: 5px;
    color: #9aa9a2;
    font-size: 9px;
}
.employee-mobile-notification-empty {
    margin: 0;
    padding: 22px 13px;
    color: #8b9b94;
    font-size: 11px;
    text-align: center;
}
.employee-mobile-profile-menu {
    position: relative;
}
.employee-mobile-profile-popover {
    position: absolute;
    top: 47px;
    right: 0;
    z-index: 20;
    display: grid;
    width: 190px;
    gap: 4px;
    padding: 13px;
    border: 1px solid color-mix(in srgb, var(--primary) 12%, white);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(var(--primary-dark-rgb), 0.14);
}
.employee-mobile-profile-popover strong {
    overflow: hidden;
    color: #244438;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.employee-mobile-profile-popover span {
    color: #83958b;
    font-size: 10px;
}
.employee-mobile-profile-popover button {
    margin-top: 8px;
    padding: 8px 0 0;
    border: 0;
    border-top: 1px solid color-mix(in srgb, var(--primary) 8%, white);
    background: transparent;
    color: #c2554d;
    font-size: 11px;
    font-weight: 750;
    text-align: left;
}
.employee-mobile-notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #e06c4e;
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    line-height: 13px;
    text-align: center;
}
.employee-mobile-notification-footer {
    display: block;
    padding: 11px 13px;
    border-top: 1px solid color-mix(in srgb, var(--primary) 8%, white);
    color: var(--primary);
    font-size: 10px;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
}
.employee-mobile-notification-page-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #83958b;
    font-size: 11px;
}
.employee-mobile-notification-page-actions button {
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 10px;
    font-weight: 750;
}
.employee-mobile-notification-page-list {
    max-height: none;
    overflow: visible;
    border: 1px solid color-mix(in srgb, var(--primary) 12%, white);
    border-radius: 14px;
    background: #fff;
}
.employee-mobile-notification-page-list a {
    display: inline-block;
    margin-top: 6px;
    color: var(--primary);
    font-size: 10px;
    font-weight: 750;
    text-decoration: none;
}
.employee-mobile-content {
    padding: 20px 18px 24px;
}
.employee-mobile-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
}
.employee-mobile-overline {
    margin: 0 0 5px;
    color: #7c8e85;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.employee-mobile-welcome h1 {
    margin: 0;
    color: #16352a;
    font-size: 27px;
    letter-spacing: -0.04em;
}
.employee-mobile-welcome h1 span {
    font-size: 22px;
}
.employee-mobile-subtitle {
    margin: 5px 0 0;
    color: #71827a;
    font-size: 12px;
}
.employee-mobile-profile-initials {
    display: grid;
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 18px;
    background: var(--primary-dark);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}
.employee-mobile-date-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #63776d;
    font-size: 12px;
}
.employee-mobile-date-icon {
    color: var(--primary);
    font-size: 15px;
}
.employee-mobile-branch {
    margin-left: auto;
    max-width: 45%;
    overflow: hidden;
    color: #9aa9a2;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.employee-mobile-attendance-card {
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(
        145deg,
        var(--primary-dark),
        color-mix(in srgb, var(--primary-dark) 78%, black)
    );
    color: #fff;
    box-shadow: 0 10px 24px rgba(var(--primary-dark-rgb), 0.18);
}
.employee-mobile-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
.employee-mobile-attendance-card .employee-mobile-overline {
    color: color-mix(in srgb, var(--primary) 32%, white);
}
.employee-mobile-card-heading h2 {
    margin: 0;
    font-size: 19px;
    letter-spacing: -0.02em;
    text-transform: capitalize;
}
.employee-mobile-status {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.14);
    color: color-mix(in srgb, var(--primary) 45%, white);
    font-size: 12px;
}
.employee-mobile-status.is-warning {
    color: #ffd08c;
}
.employee-mobile-status.is-neutral {
    color: #d6e1dc;
}
.employee-mobile-time-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 20px 0 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.employee-mobile-time-grid div {
    min-width: 0;
}
.employee-mobile-time-grid span {
    display: block;
    margin-bottom: 5px;
    color: color-mix(in srgb, var(--primary) 32%, white);
    font-size: 10px;
}
.employee-mobile-time-grid strong {
    display: block;
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.employee-mobile-primary-action {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 11px 13px;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 750;
    text-align: left;
}
.employee-mobile-primary-action span {
    font-size: 17px;
}
.employee-mobile-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 10px;
    margin: 25px 2px 11px;
}
.employee-mobile-section-heading h2 {
    margin: 0;
    color: #1c392e;
    font-size: 17px;
    letter-spacing: -0.025em;
}
.employee-mobile-section-heading a,
.employee-mobile-section-count {
    color: var(--primary);
    font-size: 11px;
    font-weight: 750;
    text-decoration: none;
}
.employee-mobile-overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.employee-mobile-overview-grid article {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 10px;
    padding: 14px;
    border: 1px solid color-mix(in srgb, var(--primary) 10%, white);
    border-radius: 16px;
    background: #fff;
}
.employee-mobile-overview-grid strong {
    align-self: center;
    color: #1d3b30;
    font-size: 20px;
}
.employee-mobile-overview-grid article > span:last-child {
    grid-column: 2;
    color: #7c8d85;
    font-size: 10px;
}
.employee-mobile-overview-icon {
    display: grid;
    width: 30px;
    height: 30px;
    grid-row: span 2;
    place-items: center;
    border-radius: 10px;
    font-size: 17px;
}
.employee-mobile-overview-icon.is-green {
    background: var(--primary-soft);
    color: var(--primary-dark);
}
.employee-mobile-overview-icon.is-orange {
    background: #fff1dc;
    color: #bd7624;
}
.employee-mobile-balance-list,
.employee-mobile-payslip-list {
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--primary) 10%, white);
    border-radius: 16px;
    background: #fff;
}
.employee-mobile-balance-list article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px;
    border-bottom: 1px solid color-mix(in srgb, var(--primary) 8%, white);
}
.employee-mobile-balance-list article:last-child {
    border-bottom: 0;
}
.employee-mobile-balance-list strong,
.employee-mobile-payslip-list strong {
    display: block;
    color: #29483b;
    font-size: 12px;
}
.employee-mobile-balance-list span,
.employee-mobile-payslip-list small {
    display: block;
    margin-top: 3px;
    color: #8b9b94;
    font-size: 10px;
}
.employee-mobile-balance-list b,
.employee-mobile-payslip-list b {
    color: var(--primary-dark);
    font-size: 12px;
    white-space: nowrap;
}
.employee-mobile-payslip-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    border-bottom: 1px solid color-mix(in srgb, var(--primary) 8%, white);
    color: inherit;
}
.employee-mobile-payslip-row:last-child {
    border-bottom: 0;
}
.employee-mobile-payslip-row b {
    margin-left: auto;
}
.employee-mobile-payslip-row > span:last-child {
    color: #a2b0aa;
    font-size: 21px;
}
.employee-mobile-payslip-icon {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary);
}
.employee-mobile-empty {
    margin: 0;
    padding: 18px 14px;
    color: #8b9b94;
    font-size: 12px;
}
.employee-mobile-announcement {
    margin-top: 24px;
    padding: 16px;
    border: 1px solid color-mix(in srgb, var(--primary) 18%, white);
    border-radius: 17px;
    background: var(--primary-soft);
}
.employee-mobile-announcement h2 {
    margin: 0 0 6px;
    color: var(--primary-dark);
    font-size: 15px;
}
.employee-mobile-announcement p:last-child {
    margin: 0;
    color: #537365;
    font-size: 12px;
    line-height: 1.55;
}
.employee-mobile-bottom-nav {
    position: fixed;
    z-index: 15;
    bottom: 12px;
    left: 50%;
    display: grid;
    width: min(calc(100% - 24px), 500px);
    grid-template-columns: repeat(5, 1fr);
    padding: 7px 7px calc(7px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    border: 1px solid color-mix(in srgb, var(--primary) 12%, white);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 8px 24px rgba(var(--primary-dark-rgb), 0.12);
    backdrop-filter: blur(14px);
}
.employee-mobile-nav-item {
    display: grid;
    min-height: 52px;
    place-items: center;
    gap: 4px;
    border-radius: 15px;
    color: #8b9b94;
    font-size: 9px;
    font-weight: 700;
    text-decoration: none;
    transition:
        background 0.18s ease,
        color 0.18s ease;
}
.employee-mobile-nav-icon {
    display: grid;
    height: 22px;
    place-items: center;
    line-height: 1;
}
.employee-mobile-nav-item.is-active {
    background: color-mix(in srgb, var(--primary) 12%, white);
    color: var(--primary-dark);
}
.employee-mobile-nav-item.is-primary {
    position: relative;
    z-index: 2;
    align-self: start;
    min-height: 70px;
    margin-top: -24px;
    border: 0;
    border-radius: 17px;
    background: transparent;
    color: var(--primary-dark);
    box-shadow: none;
}
.employee-mobile-nav-item.is-primary .employee-mobile-nav-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 1px;
    border: 5px solid var(--mobile-background);
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 18px rgba(var(--primary-rgb), 0.3);
}
.employee-mobile-nav-item.is-disabled {
    cursor: default;
    opacity: 0.52;
}
.employee-mobile-nav-attendance {
    position: relative;
    z-index: 3;
    min-height: 74px;
    margin-top: -4px;
    border: 0;
    background: transparent;
    color: var(--primary-dark);
    font: inherit;
    font-weight: 800;
}
.employee-mobile-nav-attendance .employee-mobile-nav-icon {
    width: 64px;
    height: 64px;
    margin-top: -25px;
    border: 6px solid var(--mobile-background);
    border-radius: 50%;
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 10px 22px rgba(var(--primary-rgb), 0.38);
}
.employee-mobile-bottom-nav {
    height: 69px;
    grid-auto-rows: 52px;
}
.employee-mobile-nav-attendance {
    align-self: start;
    height: 52px;
    min-height: 52px;
    margin-top: 0;
    overflow: visible;
}
.employee-mobile-nav-attendance .employee-mobile-nav-icon {
    position: absolute;
    top: -29px;
    left: 50%;
    margin: 0;
    transform: translateX(-50%);
}
.employee-mobile-bottom-nav {
    position: fixed;
    height: 72px;
    padding: 8px 9px calc(8px + env(safe-area-inset-bottom));
    overflow: visible;
    border-radius: 27px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(var(--primary-dark-rgb), 0.14);
}
.employee-mobile-bottom-nav::before {
    position: absolute;
    z-index: 1;
    top: -27px;
    left: 50%;
    width: 102px;
    height: 54px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: var(--mobile-background);
    content: '';
}
.employee-mobile-nav-attendance {
    z-index: 4;
    font-size: 0;
}
.employee-mobile-nav-attendance .employee-mobile-nav-icon {
    top: -22px;
    width: 52px;
    height: 52px;
    border: 4px solid var(--mobile-background);
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    box-shadow: 0 7px 16px rgba(var(--primary-rgb), 0.32);
}
.employee-mobile-nav-attendance .employee-mobile-nav-icon svg {
    width: 24px;
    height: 24px;
}
.employee-mobile-nav-item:not(.employee-mobile-nav-attendance) {
    position: relative;
    z-index: 2;
}
.employee-mobile-bottom-nav {
    height: 72px;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    border: 1px solid color-mix(in srgb, var(--primary) 12%, white);
    border-radius: 23px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(var(--primary-dark-rgb), 0.1);
}
.employee-mobile-bottom-nav::before {
    display: none;
}
.employee-mobile-nav-item {
    min-height: 54px;
    border-radius: 15px;
    color: #91a09a;
    font-size: 9px;
    font-weight: 650;
}
.employee-mobile-nav-item {
    gap: 1px;
}
.employee-mobile-nav-label {
    display: block;
    line-height: 1;
    transform: translateY(-3px);
}
.employee-mobile-nav-item {
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}
.employee-mobile-nav-item:focus-visible {
    outline: 3px solid rgba(var(--primary-rgb), 0.22);
    outline-offset: 2px;
}
.employee-mobile-nav-item:not(.is-disabled):hover {
    background: color-mix(in srgb, var(--primary) 8%, white);
    color: var(--primary-dark);
    transform: translateY(-2px);
}
.employee-mobile-nav-item:not(.is-disabled):active {
    transform: translateY(0) scale(0.96);
}
.employee-mobile-nav-item:not(.is-disabled):hover .employee-mobile-nav-icon {
    transform: scale(1.08);
}
.employee-mobile-nav-attendance:hover {
    background: transparent;
    transform: translateY(-2px);
}
.employee-mobile-nav-attendance:hover .employee-mobile-nav-icon {
    box-shadow:
        0 10px 22px rgba(var(--primary-rgb), 0.38),
        0 0 0 4px color-mix(in srgb, var(--primary) 6%, white);
    transform: scale(1.08);
}
.employee-mobile-nav-attendance:active {
    transform: translateY(0) scale(0.96);
}
.employee-mobile-nav-item.is-active {
    background: color-mix(in srgb, var(--primary) 12%, white);
    color: var(--primary-dark);
}
.employee-mobile-nav-item.is-disabled {
    opacity: 0.62;
}
.employee-mobile-nav-attendance {
    position: relative;
    z-index: 4;
    align-self: start;
    height: 72px;
    min-height: 72px;
    margin-top: -12px;
    color: var(--primary-dark);
    font-size: 9px;
    font-weight: 800;
}
.employee-mobile-nav-attendance .employee-mobile-nav-icon {
    position: static;
    width: 52px;
    height: 52px;
    margin: 0 auto 0;
    border: 4px solid #fff;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow:
        0 7px 18px rgba(var(--primary-rgb), 0.3),
        0 0 0 4px color-mix(in srgb, var(--primary) 6%, white);
    transform: none;
}
.employee-mobile-nav-attendance .employee-mobile-nav-icon svg {
    width: 22px;
    height: 22px;
}
.employee-mobile-request-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin-bottom: 12px;
    padding: 4px;
    border-radius: 13px;
    background: color-mix(in srgb, var(--primary) 8%, white);
}
.employee-mobile-request-tabs button {
    display: grid;
    gap: 2px;
    padding: 9px 4px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #789086;
    font-size: 10px;
    font-weight: 700;
}
.employee-mobile-request-tabs button span {
    color: #a0aea7;
    font-size: 9px;
}
.employee-mobile-request-tabs button.is-active {
    background: #fff;
    color: var(--primary-dark);
    box-shadow: 0 2px 6px rgba(var(--primary-dark-rgb), 0.08);
}
.employee-mobile-request-tabs button.is-active span {
    color: var(--primary);
}
.employee-mobile-new-request {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid color-mix(in srgb, var(--primary) 18%, white);
    border-radius: 15px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    text-align: left;
}
.employee-mobile-new-request > span:first-child {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 10px;
    background: color-mix(in srgb, var(--primary) 22%, white);
    font-size: 18px;
}
.employee-mobile-new-request strong,
.employee-mobile-new-request small {
    display: block;
}
.employee-mobile-new-request strong {
    font-size: 12px;
}
.employee-mobile-new-request small {
    margin-top: 3px;
    color: #759183;
    font-size: 10px;
}
.employee-mobile-new-request b {
    margin-left: auto;
    font-size: 18px;
}
.employee-mobile-request-list {
    display: grid;
    gap: 10px;
}
.employee-mobile-request-list article {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px;
    border: 1px solid color-mix(in srgb, var(--primary) 12%, white);
    border-radius: 16px;
    background: #fff;
}
.employee-mobile-request-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 11px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 17px;
}
.employee-mobile-request-copy {
    min-width: 0;
    flex: 1;
}
.employee-mobile-request-copy strong,
.employee-mobile-request-copy span,
.employee-mobile-request-copy small {
    display: block;
}
.employee-mobile-request-copy strong {
    color: #29483b;
    font-size: 12px;
    text-transform: capitalize;
}
.employee-mobile-request-copy span {
    margin-top: 3px;
    color: #71877a;
    font-size: 10px;
}
.employee-mobile-request-copy small {
    margin-top: 5px;
    overflow: hidden;
    color: #9aa8a1;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.employee-mobile-request-copy .employee-mobile-request-amount {
    margin-top: 4px;
    color: #29483b;
    font-size: 11px;
    font-weight: 750;
    white-space: normal;
}
.employee-mobile-request-copy .employee-mobile-request-receipt {
    margin-top: 4px;
    color: var(--primary-dark);
    font-weight: 650;
    white-space: normal;
}
.employee-mobile-request-status {
    padding: 4px 7px;
    border-radius: 99px;
    background: #fff2d9;
    color: #a86a1e;
    font-size: 8px;
    font-weight: 800;
}
.employee-mobile-request-status.is-approved {
    background: var(--primary-soft);
    color: var(--primary-dark);
}
.employee-mobile-request-status.is-rejected {
    background: #fde9e7;
    color: #bd5048;
}
.employee-mobile-form-backdrop {
    position: fixed;
    z-index: 30;
    inset: 0;
    display: flex;
    align-items: end;
    justify-content: center;
    background: rgba(var(--primary-dark-rgb), 0.24);
}
.employee-mobile-request-sheet {
    width: min(100%, 520px);
    max-height: 88vh;
    overflow-y: auto;
    padding: 10px 18px calc(24px + env(safe-area-inset-bottom));
    border-radius: 26px 26px 0 0;
    background: #fff;
}
.employee-mobile-request-form {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}
.employee-mobile-request-form label {
    display: grid;
    gap: 6px;
    color: #5c7166;
    font-size: 11px;
    font-weight: 700;
}
.employee-mobile-request-form input,
.employee-mobile-request-form select,
.employee-mobile-request-form textarea {
    width: 100%;
    padding: 10px 11px;
    border: 1px solid color-mix(in srgb, var(--primary) 12%, white);
    border-radius: 10px;
    outline: 0;
    background: #fff;
    color: #29483b;
    font: inherit;
    font-size: 12px;
}
.employee-mobile-request-form textarea {
    min-height: 76px;
    resize: vertical;
}
.employee-mobile-request-form input:focus,
.employee-mobile-request-form select:focus,
.employee-mobile-request-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, white);
}
.employee-mobile-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}
.employee-mobile-request-form > button {
    padding: 12px;
    border: 0;
    border-radius: 11px;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 750;
}
.employee-mobile-request-form > button:disabled {
    opacity: 0.65;
}
.employee-mobile-form-error {
    color: #c2554d;
    font-size: 10px;
}
.employee-mobile-page-heading {
    margin: 4px 2px 20px;
}
.employee-mobile-page-heading h1 {
    margin: 0;
    color: #1c392e;
    font-size: 27px;
    letter-spacing: -0.04em;
}
.employee-mobile-page-heading p:last-child {
    margin: 7px 0 0;
    color: #71827a;
    font-size: 12px;
    line-height: 1.45;
}
.employee-mobile-payslips-list {
    display: grid;
    gap: 12px;
}
.employee-mobile-payslip-card {
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--primary) 12%, white);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(var(--primary-dark-rgb), 0.04);
}
.employee-mobile-payslip-card-heading {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 11px;
    padding: 14px;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
}
.employee-mobile-payslip-large-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 19px;
}
.employee-mobile-payslip-card-heading strong,
.employee-mobile-payslip-card-heading small {
    display: block;
}
.employee-mobile-payslip-card-heading strong {
    color: #29483b;
    font-size: 13px;
}
.employee-mobile-payslip-card-heading small {
    margin-top: 3px;
    color: #8b9b94;
    font-size: 10px;
}
.employee-mobile-payslip-chevron {
    margin-left: auto;
    color: #81958a;
    font-size: 19px;
}
.employee-mobile-payslip-net {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 14px 14px;
    padding: 12px 13px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--primary) 5%, white);
}
.employee-mobile-payslip-net span {
    color: #6e8578;
    font-size: 10px;
}
.employee-mobile-payslip-net strong {
    color: var(--primary-dark);
    font-size: 16px;
}
.employee-mobile-payslip-detail {
    padding: 0 14px 14px;
    border-top: 1px solid color-mix(in srgb, var(--primary) 8%, white);
}
.employee-mobile-payslip-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px 0;
}
.employee-mobile-payslip-summary span {
    display: grid;
    gap: 4px;
}
.employee-mobile-payslip-summary small {
    color: #8b9b94;
    font-size: 10px;
}
.employee-mobile-payslip-summary b {
    color: #29483b;
    font-size: 12px;
}
.employee-mobile-payslip-detail h3 {
    margin: 0 0 7px;
    color: #587266;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.employee-mobile-payslip-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--primary) 8%, white);
}
.employee-mobile-payslip-line span,
.employee-mobile-payslip-line b {
    color: #385447;
    font-size: 11px;
}
.employee-mobile-payslip-line small {
    display: block;
    margin-top: 3px;
    color: #99a69f;
    font-size: 9px;
}
.employee-mobile-payslip-line b {
    white-space: nowrap;
}
.employee-mobile-payslip-line b.is-deduction {
    color: #c26053;
}
.employee-mobile-payslip-download {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding: 11px 13px;
    border-radius: 11px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 750;
    text-decoration: none;
}
.employee-mobile-empty-card {
    padding: 34px 18px;
    border: 1px solid color-mix(in srgb, var(--primary) 12%, white);
    border-radius: 18px;
    background: #fff;
    text-align: center;
}
.employee-mobile-empty-card > span {
    display: block;
    color: var(--primary);
    font-size: 28px;
}
.employee-mobile-empty-card h2 {
    margin: 12px 0 5px;
    color: #29483b;
    font-size: 16px;
}
.employee-mobile-empty-card p {
    margin: 0;
    color: #8b9b94;
    font-size: 11px;
}
.employee-mobile-activity-list {
    display: grid;
    gap: 10px;
}
.employee-mobile-activity-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px;
    border: 1px solid color-mix(in srgb, var(--primary) 12%, white);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(var(--primary-dark-rgb), 0.035);
}
.employee-mobile-activity-date {
    display: grid;
    width: 42px;
    min-width: 42px;
    height: 46px;
    place-content: center;
    border-radius: 12px;
    background: color-mix(in srgb, var(--primary) 12%, white);
    color: var(--primary-dark);
    text-align: center;
}
.employee-mobile-activity-date span {
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
}
.employee-mobile-activity-date small {
    margin-top: 4px;
    color: #6d8a7b;
    font-size: 8px;
    text-transform: uppercase;
}
.employee-mobile-activity-copy {
    min-width: 0;
    flex: 1;
}
.employee-mobile-activity-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}
.employee-mobile-activity-heading strong {
    color: #29483b;
    font-size: 12px;
}
.employee-mobile-activity-copy > small {
    display: block;
    margin-top: 4px;
    color: #8b9b94;
    font-size: 9px;
}
.employee-mobile-activity-copy p {
    display: -webkit-box;
    overflow: hidden;
    margin: 7px 0 0;
    color: #71827a;
    font-size: 10px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.employee-mobile-activity-scope {
    flex: 0 0 auto;
    padding: 4px 6px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 12%, white);
    color: var(--primary-dark);
    font-size: 8px;
    font-weight: 800;
}
.employee-mobile-activity-scope.is-all {
    background: #edf2ff;
    color: #526ca8;
}
.employee-mobile-attendance-sheet-backdrop {
    position: fixed;
    z-index: 30;
    inset: 0;
    display: flex;
    align-items: end;
    justify-content: center;
    background: rgba(var(--primary-dark-rgb), 0.24);
}
.employee-mobile-attendance-sheet {
    width: min(100%, 520px);
    padding: 10px 18px calc(24px + env(safe-area-inset-bottom));
    border-radius: 26px 26px 0 0;
    background: #fff;
    box-shadow: 0 -12px 35px rgba(var(--primary-dark-rgb), 0.16);
}
.employee-mobile-location-backdrop {
    position: fixed;
    z-index: 40;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(var(--primary-dark-rgb), 0.42);
    backdrop-filter: blur(4px);
}
/* Clock in / out sheet (compact, modern) */
.employee-clock-sheet {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
    background: #fff;
    box-shadow: 0 -16px 44px rgba(var(--primary-dark-rgb), 0.18);
    animation: employee-mobile-sheet-up 0.18s ease-out;
}
.employee-clock-sheet .employee-mobile-sheet-handle {
    margin-bottom: 8px;
}
.employee-clock-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.employee-clock-head h2 {
    margin: 2px 0 6px;
    color: #16332a;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.employee-clock-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #eef3f0;
    color: #5d746a;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2px;
}
.employee-clock-pill i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.employee-clock-pill.is-active {
    background: var(--primary-soft);
    color: var(--primary-dark);
}
.employee-clock-pill.is-active i {
    animation: employee-clock-pulse 1.6s ease-in-out infinite;
}
.employee-clock-pill.is-done {
    background: #e9f1ff;
    color: #29569c;
}
.employee-clock-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid color-mix(in srgb, var(--primary) 8%, white);
    border-radius: 14px;
    background: #f8fbf9;
}
.employee-clock-grid-item span {
    display: block;
    margin-bottom: 3px;
    color: #8b9b94;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.employee-clock-grid-item strong {
    display: block;
    overflow: hidden;
    color: #1d3d31;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.employee-clock-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.employee-clock-action {
    display: grid;
    place-items: center;
    padding: 14px 12px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: #fff;
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-align: center;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        opacity 0.15s ease;
}
.employee-clock-action.is-in {
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--primary-dark) 100%
    );
    box-shadow: 0 8px 18px color-mix(in srgb, var(--primary) 30%, transparent);
}
.employee-clock-action.is-out {
    background: linear-gradient(135deg, #2f4a63 0%, #1d2f42 100%);
    box-shadow: 0 8px 18px rgba(29, 47, 66, 0.24);
}
.employee-clock-action:active:not(:disabled) {
    transform: scale(0.985);
}
.employee-clock-action:disabled {
    cursor: not-allowed;
    opacity: 0.42;
    box-shadow: none;
    filter: grayscale(0.15);
}
.employee-clock-action-icon {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 16px;
    font-weight: 700;
}
.employee-clock-action-copy strong {
    display: block;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.employee-clock-action-copy small {
    display: block;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 10px;
}
.employee-clock-action-go {
    font-size: 15px;
    opacity: 0.85;
}
.employee-clock-history {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    border: 1px dashed color-mix(in srgb, var(--primary) 22%, white);
    border-radius: 12px;
    background: #fbfdfc;
    color: #3f6355;
    font-size: 11.5px;
    font-weight: 700;
}
.employee-clock-history svg {
    width: 15px;
    height: 15px;
    color: var(--primary-dark);
}
.employee-clock-history span {
    margin-left: auto;
    color: #93a59c;
}
@keyframes employee-clock-pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.35;
    }
}
@keyframes employee-mobile-sheet-up {
    from {
        transform: translateY(18px);
        opacity: 0.4;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
@media (prefers-reduced-motion: reduce) {
    .employee-clock-sheet {
        animation: none;
    }
    .employee-clock-pill.is-active i {
        animation: none;
    }
}
.employee-mobile-location-dialog {
    width: min(100%, 390px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 22px;
    border: 1px solid color-mix(in srgb, var(--primary) 12%, white);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(var(--primary-dark-rgb), 0.22);
    animation: employee-mobile-dialog-in 0.18s ease-out;
}
.employee-mobile-location-dialog .employee-mobile-sheet-heading {
    margin-bottom: 20px;
}
.employee-mobile-location-dialog .employee-mobile-attendance-action {
    width: 100%;
}
@keyframes employee-mobile-dialog-in {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
@media (prefers-reduced-motion: reduce) {
    .employee-mobile-location-dialog {
        animation: none;
    }
}
.employee-mobile-sheet-handle {
    width: 38px;
    height: 4px;
    margin: 0 auto 18px;
    border-radius: 99px;
    background: #dce7e1;
}
.employee-mobile-sheet-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}
.employee-mobile-sheet-heading h2 {
    margin: 0;
    color: #1c392e;
    font-size: 19px;
    letter-spacing: -0.03em;
}
.employee-mobile-sheet-heading p:last-child {
    max-width: 290px;
    margin: 6px 0 0;
    color: #7c8d85;
    font-size: 11px;
    line-height: 1.45;
}
.employee-mobile-sheet-close {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #f1f6f3;
    color: #60766a;
    font-size: 22px;
}
.employee-mobile-attendance-actions {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}
.employee-mobile-attendance-action {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border: 1px solid color-mix(in srgb, var(--primary) 12%, white);
    border-radius: 16px;
    background: #fff;
    color: #244438;
    text-align: left;
}
.employee-mobile-attendance-action.is-in {
    border-color: color-mix(in srgb, var(--primary) 22%, white);
    background: var(--primary-soft);
}
.employee-mobile-attendance-action.is-out {
    border-color: #f2dfc4;
    background: #fff8ed;
}
.employee-mobile-action-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: color-mix(in srgb, var(--primary) 20%, white);
    color: var(--primary-dark);
    font-size: 23px;
    font-weight: 500;
}
.employee-mobile-attendance-action.is-out .employee-mobile-action-icon {
    background: #fce8c8;
    color: #b36b20;
}
.employee-mobile-attendance-action strong,
.employee-mobile-attendance-action small {
    display: block;
}
.employee-mobile-attendance-action strong {
    font-size: 13px;
}
.employee-mobile-attendance-action small {
    margin-top: 3px;
    color: #83958b;
    font-size: 10px;
}
.employee-mobile-action-arrow {
    color: #81958a;
    font-size: 20px;
}
.employee-mobile-profile-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 4px 0 18px;
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(
        145deg,
        color-mix(in srgb, var(--primary) 14%, white),
        color-mix(in srgb, var(--primary) 3%, white)
    );
}
.employee-mobile-profile-large-avatar {
    display: grid;
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 18px;
    background: var(--primary-dark);
    color: #fff;
    font-size: 17px;
    font-weight: 800;
}
.employee-mobile-profile-hero h1 {
    margin: 0;
    color: #1c392e;
    font-size: 18px;
}
.employee-mobile-profile-hero p:last-child {
    margin: 5px 0 0;
    color: #71827a;
    font-size: 11px;
}
.employee-mobile-profile-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}
.employee-mobile-profile-details div {
    padding: 12px;
    border: 1px solid color-mix(in srgb, var(--primary) 10%, white);
    border-radius: 14px;
    background: #fff;
}
.employee-mobile-profile-details span,
.employee-mobile-profile-details strong {
    display: block;
}
.employee-mobile-profile-details span {
    margin-bottom: 5px;
    color: #8b9b94;
    font-size: 10px;
}
.employee-mobile-profile-details strong {
    overflow: hidden;
    color: #29483b;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.employee-mobile-profile-card {
    padding: 16px;
    border: 1px solid color-mix(in srgb, var(--primary) 10%, white);
    border-radius: 18px;
    background: #fff;
}
.employee-mobile-profile-form {
    display: grid;
    gap: 13px;
}
.employee-mobile-profile-form label {
    display: grid;
    gap: 6px;
    color: #5c7166;
    font-size: 11px;
    font-weight: 700;
}
.employee-mobile-profile-form input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid color-mix(in srgb, var(--primary) 12%, white);
    border-radius: 11px;
    outline: 0;
    color: #244438;
    font-size: 12px;
}
.employee-mobile-profile-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, white);
}
.employee-mobile-profile-form small {
    color: #c2554d;
    font-size: 10px;
}
.employee-mobile-profile-form > button {
    padding: 12px;
    border: 0;
    border-radius: 11px;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 750;
}
.employee-mobile-profile-form > button:disabled {
    cursor: wait;
    opacity: 0.65;
}
.employee-mobile-password-card {
    margin-top: 14px;
    padding: 0;
    overflow: hidden;
}
.employee-mobile-password-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: 0;
    background: transparent;
    text-align: left;
}
.employee-mobile-password-toggle strong {
    display: block;
    color: #244438;
    font-size: 12px;
    font-weight: 750;
}
.employee-mobile-password-toggle small {
    display: block;
    margin-top: 3px;
    color: #8b9b94;
    font-size: 10px;
}
.employee-mobile-password-chevron {
    display: grid;
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 8px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 800;
}
.employee-mobile-password-form {
    padding: 0 16px 16px;
    border-top: 1px solid color-mix(in srgb, var(--primary) 10%, white);
    padding-top: 14px;
}
.employee-mobile-password-hint {
    margin: 0;
    color: #8b9b94;
    font-size: 10px;
}
.employee-mobile-password-show {
    display: flex !important;
    grid-auto-flow: column;
    width: fit-content;
    align-items: center;
    gap: 8px !important;
}
.employee-mobile-password-show input {
    width: 15px;
    height: 15px;
    padding: 0;
}
.employee-mobile-password-show span {
    font-weight: 600;
}
.employee-mobile-profile-success {
    margin: -2px 0 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 11px;
}
@media (min-width: 700px) {
    .employee-mobile-shell {
        padding: 18px 0;
    }
    .employee-mobile-page {
        border: 1px solid color-mix(in srgb, var(--primary) 12%, white);
        border-radius: 28px;
        box-shadow: 0 12px 38px rgba(var(--primary-dark-rgb), 0.08);
        overflow: hidden;
    }
    .employee-mobile-bottom-nav {
        bottom: 30px;
    }
}
.employee-mobile-bottom-nav {
    bottom: 0;
    width: min(100%, 520px);
    border-bottom: 0;
    border-radius: 23px 23px 0 0;
}
@media (min-width: 700px) {
    .employee-mobile-bottom-nav {
        bottom: 0;
        border-radius: 23px 23px 0 0;
    }
}
button,
input {
    font: inherit;
}
button {
    cursor: pointer;
}
.app-shell {
    display: flex;
    min-height: 100vh;
}
.sidebar {
    position: fixed;
    z-index: 20;
    display: flex;
    width: 248px;
    height: 100vh;
    flex-direction: column;
    border-right: 1px solid var(--border);
    background: var(--surface);
}
.brand {
    display: flex;
    min-height: 90px;
    align-items: flex-start;
    gap: 11px;
    padding: 18px 25px;
    border-bottom: 1px solid #f0f2f1;
}
.brand-content {
    display: grid;
    min-width: 0;
    gap: 7px;
}
.brand-logo {
    display: block;
    width: 156px;
    height: auto;
}
.brand-company-name {
    overflow: hidden;
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.brand .mobile-close {
    margin-left: auto;
}
.main-nav {
    flex: 1;
    overflow-y: auto;
    padding: 20px 14px 12px;
}
.nav-section + .nav-section {
    margin-top: 8px;
}
.nav-label {
    margin: 0 12px 8px;
    color: #98a39e;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.13em;
}
.nav-section-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    margin: 0;
    padding: 8px 11px;
    border: 1px solid #edf2ef;
    border-radius: 11px;
    background: #fafcfb;
    color: #708078;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: left;
}
.nav-section-toggle:hover {
    background: #f6faf8;
    color: var(--primary-dark);
}
.nav-section-toggle svg {
    transition: transform 0.18s ease;
}
.nav-section-title {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}
.nav-section-title svg {
    color: #8aa097;
}
.nav-section-toggle[aria-expanded='true'] svg {
    transform: rotate(180deg);
}
.nav-subitem {
    margin-left: 12px;
    padding-left: 16px;
    border-left: 1px solid #e3ece7;
    border-radius: 0 9px 9px 0;
    font-size: 12px;
}
.nav-item {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 13px;
    margin: 2px 0;
    padding: 11px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    text-align: left;
    transition:
        background 0.18s ease,
        color 0.18s ease;
}
.nav-item:hover {
    background: #f6faf8;
    color: var(--primary-dark);
}
.nav-item.active {
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 650;
}
.nav-count {
    min-width: 21px;
    margin-left: auto;
    padding: 1px 6px;
    border-radius: 8px;
    background: #fff2d8;
    color: #b87700;
    font-size: 10px;
    text-align: center;
}
.empty-nav {
    padding: 12px;
    color: var(--text-secondary);
    font-size: 12px;
}
.sidebar-bottom {
    padding: 14px;
}
.help-card {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    padding: 12px;
    border-radius: 11px;
    background: #f5faf7;
    color: var(--primary-dark);
    text-decoration: none;
}
.help-card > div {
    flex: 1;
}
.help-card strong,
.help-card small {
    display: block;
}
.help-card strong {
    font-size: 11px;
}
.help-card small {
    margin-top: 2px;
    color: var(--text-secondary);
    font-size: 10px;
}
.help-icon {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}
.icon-button {
    display: inline-grid;
    place-items: center;
    padding: 4px;
    border: 0;
    background: transparent;
    color: var(--text-secondary);
}
.mobile-close,
.mobile-menu,
.sidebar-overlay {
    display: none;
}
.main-area {
    min-width: 0;
    width: 100%;
    padding-left: 248px;
}
.topbar {
    display: flex;
    height: 90px;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 0 38px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.82);
}
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 19px;
    margin-left: auto;
}
.topbar-button {
    position: relative;
    display: grid;
    place-items: center;
    padding: 3px;
    border: 0;
    background: transparent;
    color: var(--text-secondary);
}
.notification-button span {
    position: absolute;
    top: -7px;
    right: -7px;
    display: grid;
    width: 16px;
    height: 16px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 8px;
    font-weight: 700;
}
.header-notifications {
    position: relative;
}
.notification-popover {
    position: absolute;
    z-index: 30;
    top: calc(100% + 15px);
    right: -10px;
    width: 360px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.14);
}
.notification-popover-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}
.notification-popover-heading div {
    display: grid;
    gap: 3px;
}
.notification-popover-heading strong {
    font-size: 13px;
}
.notification-popover-heading span,
.notification-popover-item small {
    color: var(--text-secondary);
    font-size: 10px;
}
.notification-popover-heading button {
    border: 0;
    background: transparent;
    color: var(--primary);
    font-size: 10px;
}
.notification-popover-item {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid #edf1ef;
    cursor: pointer;
}
.notification-popover-item.is-unread {
    background: #f4fbf7;
}
.notification-popover-item > div:last-child {
    min-width: 0;
}
.notification-popover-icon {
    display: grid;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 8px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}
.notification-popover-item strong {
    display: block;
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.notification-popover-item p {
    margin: 3px 0;
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.35;
}
.notification-popover-item a {
    display: inline-block;
    margin-left: 8px;
    color: var(--primary);
    font-size: 10px;
    text-decoration: none;
}
.notification-popover-empty {
    margin: 0;
    padding: 24px 16px;
    color: var(--text-secondary);
    font-size: 12px;
    text-align: center;
}
.notification-popover-footer {
    display: block;
    padding: 11px 16px;
    color: var(--primary);
    font-size: 11px;
    text-align: center;
    text-decoration: none;
}
.topbar-divider {
    width: 1px;
    height: 28px;
    background: var(--border);
}
.profile-menu {
    position: relative;
}
.profile-trigger {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
}
.profile-copy strong {
    display: block;
    font-size: 12px;
}
.profile-copy span {
    display: block;
    margin-top: 2px;
    color: var(--text-secondary);
    font-size: 10px;
}
.profile-chevron {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1;
}
.profile-dropdown {
    position: absolute;
    z-index: 40;
    top: calc(100% + 12px);
    right: 0;
    min-width: 220px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(24, 69, 53, 0.14);
}
.profile-dropdown-user {
    padding: 8px 10px 10px;
    border-bottom: 1px solid #eef1ef;
}
.profile-dropdown-user strong,
.profile-dropdown-user span {
    display: block;
}
.profile-dropdown-user strong {
    font-size: 12px;
}
.profile-dropdown-user span {
    margin-top: 3px;
    overflow: hidden;
    color: var(--text-secondary);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.profile-dropdown-user small {
    display: block;
    margin-top: 5px;
    color: var(--primary);
    font-size: 10px;
    font-weight: 650;
}
.profile-logout {
    width: 100%;
    margin-top: 6px;
    padding: 9px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #b54d4d;
    font-size: 12px;
    text-align: left;
}
.profile-link {
    display: block;
    padding: 9px 10px;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 12px;
    text-decoration: none;
}
.profile-link:hover {
    background: #f5faf7;
}
.profile-logout:hover {
    background: #fff1f1;
}
.profile-menu-compact .profile-copy,
.profile-menu-compact .profile-chevron {
    display: none;
}
.profile-menu-compact .profile-dropdown {
    top: calc(100% + 10px);
}
.profile-copy strong {
    display: block;
    font-size: 12px;
}
.profile-copy span {
    display: block;
    margin-top: 2px;
    color: var(--text-secondary);
    font-size: 10px;
}
.avatar {
    display: inline-grid;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    color: #42544d;
    font-size: 10px;
    font-weight: 700;
}
.avatar-green {
    background: #d9f1e6;
    color: var(--primary-dark);
}
.avatar-small {
    width: 27px;
    height: 27px;
    background: #eef4f0;
    font-size: 8px;
}
.avatar-pink {
    background: #f8dfe8;
}
.avatar-blue {
    background: #dcecf4;
}
.avatar-yellow {
    background: #fff0cf;
}
.avatar-purple {
    background: #e9e0f7;
}
.dashboard-content {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 16px 20px 28px;
}
.dashboard-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 14px 0 8px;
}
.dashboard-section-heading h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.dashboard-section-heading p {
    margin: 2px 0 0;
    color: var(--text-secondary);
    font-size: 11px;
}
.dashboard-kpi-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}
@media (max-width: 1180px) {
    .dashboard-kpi-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 720px) {
    .dashboard-kpi-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 420px) {
    .dashboard-kpi-row {
        grid-template-columns: minmax(0, 1fr);
    }
}
.dashboard-kpi-row .kpi-card {
    grid-column: auto;
}
.dashboard-grid.dashboard-insight-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.dashboard-grid.dashboard-insight-grid > .dashboard-card {
    grid-column: auto;
}
@media (max-width: 1100px) {
    .dashboard-grid.dashboard-insight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.page-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 0;
}
.page-intro .eyebrow {
    margin-bottom: 6px;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.eyebrow {
    margin: 0 0 9px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.page-intro h1 {
    margin: 0;
    font-size: clamp(22px, 2.4vw, 26px);
    font-weight: 700;
    letter-spacing: -0.03em;
}
.page-intro h1 span {
    font-size: 22px;
}
.page-intro p:last-child {
    margin: 4px 0 0;
    color: var(--text-secondary);
    font-size: 12px;
}
.date-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface);
    color: var(--text-secondary);
    font-size: 12px;
    box-shadow: var(--shadow-card);
}
.dashboard-empty-copy {
    margin: 14px 0;
    color: var(--text-secondary);
    font-size: 12px;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 12px;
}
.bento-card {
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-card);
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}
.bento-card:hover {
    border-color: #d7ded9;
    box-shadow:
        0 2px 4px rgba(16, 24, 40, 0.03),
        0 8px 20px rgba(16, 24, 40, 0.06);
}
.kpi-card {
    display: flex;
    align-items: center;
    gap: 10px;
    grid-column: span 3;
    padding: 8px 12px;
    background: var(--surface);
}
.kpi-topline {
    flex: 0 0 auto;
    gap: 0;
}
.kpi-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}
.kpi-card .kpi-label {
    display: grid;
    min-width: 0;
    gap: 1px;
    color: var(--text-primary);
}
.kpi-card .kpi-label em {
    overflow: hidden;
    color: var(--text-secondary);
    font-size: 11px;
    font-style: normal;
    font-weight: 650;
    letter-spacing: 0.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.kpi-card .kpi-label strong {
    color: var(--text-primary);
    font-size: clamp(17px, 1.5vw, 20px);
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
    line-height: 1.15;
}
.kpi-card .kpi-label small {
    overflow: hidden;
    color: #98a2b3;
    font-size: 10px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dash-card.kpi-amber {
    background: linear-gradient(135deg, #fffdf7, #fff6e4);
    border-color: #fbe9c2;
}
.dash-card.kpi-red {
    background: linear-gradient(135deg, #fffafa, #fdecea);
    border-color: #f8d7d3;
}
.dash-card.kpi-blue {
    background: linear-gradient(135deg, #fafcff, #e9f1fd);
    border-color: #d6e4fb;
}
.dash-card.kpi-green {
    background: linear-gradient(135deg, #fafdf8, #e7f7ec);
    border-color: #d3eede;
}
.dash-card.kpi-purple {
    background: linear-gradient(135deg, #fdfbff, #f2ebfd);
    border-color: #e2d5f8;
}
.dash-card.kpi-purple .kpi-icon {
    background: #efe7fb;
    color: #7c3aed;
}
.kpi-topline,
.kpi-value-row,
.card-heading,
.chart-legend,
.department-list span,
.event-item,
.employee-cell {
    display: flex;
    align-items: center;
}
.kpi-topline {
    gap: 9px;
}
.kpi-icon {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border-radius: 9px;
}
.kpi-label {
    flex: 1;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
}
.kpi-value-row {
    justify-content: space-between;
    margin-top: 14px;
}
.kpi-value-row strong {
    font-size: 31px;
    font-weight: 650;
    letter-spacing: -0.05em;
}
.sparkline {
    width: 82px;
    height: 32px;
}
.kpi-change {
    margin: 4px 0 0;
    color: var(--primary);
    font-size: 11px;
}
.kpi-change span {
    font-weight: 800;
}
.kpi-change em {
    color: #a0aaa5;
    font-style: normal;
}
.kpi-green .kpi-icon,
.dot-green {
    background: #d8f1e5;
    color: var(--primary);
}
.kpi-green .sparkline {
    color: var(--primary);
}
.kpi-blue .kpi-icon,
.dot-blue {
    background: #dceff7;
    color: var(--accent-blue);
}
.kpi-blue .sparkline {
    color: var(--accent-blue);
}
.kpi-amber .kpi-icon,
.dot-amber {
    background: #fff0d5;
    color: var(--warning);
}
.kpi-amber .sparkline {
    color: var(--warning);
}
.kpi-red .kpi-icon,
.dot-red {
    background: #fce2e1;
    color: var(--danger);
}
.kpi-red .sparkline {
    color: var(--danger);
}
.dot-purple {
    background: #e5ddf4;
    color: #8664bd;
}
.dash-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}
.dash-card:hover {
    border-color: color-mix(in srgb, var(--primary) 22%, var(--border));
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.07);
}
.dash-card .card-heading h2 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.dashboard-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 12px 14px 14px;
}
.dashboard-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    opacity: 0;
    content: '';
}
.attendance-table-primary::before {
    opacity: 1;
}
.card-heading {
    justify-content: flex-start;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f4f2;
}
.card-heading h2 {
    flex: 1;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dashboard-card:not(.attendance-table-primary) .card-heading {
    margin-bottom: 0;
}
.card-heading-icon {
    display: grid;
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 8px;
}
.accent-green {
    background: #e3f6eb;
    color: #0d8a4f;
}
.accent-blue {
    background: #e3eefd;
    color: #2563eb;
}
.accent-amber {
    background: #fff2d6;
    color: #b47708;
}
.accent-red {
    background: #fde5e3;
    color: #dc2626;
}
.accent-purple {
    background: #efe7fb;
    color: #7c3aed;
}
.accent-pink {
    background: #fde8f0;
    color: #db2777;
}
.text-button {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
}
.attendance-overview {
    grid-column: span 6;
    min-height: 310px;
}
.department-card {
    grid-column: span 3;
}
.events-card {
    grid-column: span 3;
}
.chart-legend {
    gap: 19px;
    margin: 25px 0 9px;
    color: var(--text-secondary);
    font-size: 10px;
}
.chart-legend > span:not(.chart-period) {
    display: flex;
    align-items: center;
    gap: 6px;
}
.chart-period {
    margin-left: auto;
    color: #9aa49f;
}
.legend-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.line-chart {
    position: relative;
    height: 219px;
    padding-left: 39px;
}
.chart-y {
    position: absolute;
    left: 0;
    top: 1px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #9ea8a3;
    font-size: 9px;
}
.chart-svg {
    display: block;
    width: 100%;
    height: 183px;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 44px,
        #f0f3f1 45px
    );
}
.chart-x {
    display: flex;
    justify-content: space-between;
    color: #9ea8a3;
    font-size: 9px;
}
.donut-wrap {
    display: grid;
    height: 168px;
    place-items: center;
}
.division-overview {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
}
.division-overview .donut {
    width: 104px;
    height: 104px;
    flex: 0 0 auto;
}
.division-overview .donut::before {
    width: 70px;
    height: 70px;
}
.division-overview .donut strong {
    font-size: 19px;
    font-variant-numeric: tabular-nums;
}
.division-legend {
    display: grid;
    flex: 1;
    gap: 2px;
    min-width: 0;
}
.division-legend-item {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr) 34px 26px;
    align-items: center;
    gap: 7px;
    padding: 3px 4px;
    border-radius: 7px;
    color: var(--text-secondary);
    font-size: 11px;
}
.division-legend-item:hover {
    background: #f7faf8;
}
.division-legend-item span {
    overflow: hidden;
    color: var(--text-primary);
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.division-legend-item b {
    color: var(--text-primary);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    text-align: right;
}
.division-legend-item em {
    color: var(--text-secondary);
    font-size: 11px;
    font-style: normal;
    font-variant-numeric: tabular-nums;
    text-align: right;
}
.legend-dot {
    width: 8px;
    height: 8px;
    background: currentColor;
}
.donut {
    position: relative;
    display: grid;
    width: 142px;
    height: 142px;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(
        var(--primary) 0 42%,
        var(--accent-blue) 42% 59%,
        var(--warning) 59% 73%,
        #8664bd 73% 86%,
        #e9efec 86% 100%
    );
}
.donut::before {
    position: absolute;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: #fff;
    content: '';
}
.donut > div {
    z-index: 1;
    text-align: center;
}
.donut strong,
.donut span {
    display: block;
}
.donut strong {
    font-size: 20px;
}
.donut span {
    color: var(--text-secondary);
    font-size: 10px;
}
.department-list {
    display: grid;
    gap: 9px;
    padding-top: 8px;
    border-top: 1px solid #f0f2f1;
}
.department-list {
    margin-top: 14px;
}
.department-list span {
    gap: 8px;
    color: var(--text-secondary);
    font-size: 11px;
}
.department-list b {
    margin-left: auto;
    color: var(--text-primary);
    font-weight: 600;
}
.event-list {
    display: grid;
    gap: 0;
    margin-top: 2px;
}
.event-item {
    width: 100%;
    gap: 10px;
    padding: 8px 0;
    border: 0;
    border-bottom: 1px solid #f0f2f1;
    background: transparent;
    color: var(--text-primary);
    text-align: left;
    text-decoration: none;
}
.event-item:hover {
    color: var(--primary-dark);
}
.event-item:last-child {
    border-bottom: 0;
}
.event-item > span:nth-child(2) {
    flex: 1;
}
.event-item strong,
.event-item small {
    display: block;
}
.event-item strong {
    font-size: 12px;
    font-weight: 600;
}
.event-item small {
    margin-top: 3px;
    color: var(--text-secondary);
    font-size: 11px;
}
.event-icon {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 9px;
    font-size: 16px;
}
.event-purple {
    background: #f1ebfa;
}
.event-amber {
    background: #fff2d9;
}
.event-blue {
    background: #e4f3f9;
}
.attendance-table-card {
    grid-column: span 8;
    overflow: hidden;
}
.attendance-table-primary {
    grid-column: 1 / -1;
}
.attendance-table-primary .card-heading {
    flex-wrap: wrap;
    row-gap: 10px;
}
.dashboard-card-meta {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}
.dashboard-pagination {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 4px;
    padding: 2px;
    border-radius: 8px;
    background: #fff;
    box-shadow: inset 0 0 0 1px #edf1ef;
}
.dashboard-pagination button {
    display: inline-flex;
    min-width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 1px solid #e3e9e5;
    border-radius: 6px;
    background: var(--surface);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}
.dashboard-pagination button:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary-dark);
}
.dashboard-pagination button.is-active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}
.dashboard-pagination button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}
.recent-attendance-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 0;
}
.recent-attendance-filters {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 6px;
    border: 1px solid #edf1ef;
    border-radius: 9px;
    background: #f7faf8;
}
.recent-attendance-field,
.recent-attendance-select {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
}
.recent-attendance-filters select,
.recent-attendance-filters input {
    height: 32px;
    min-height: 32px;
    padding: 0 26px 0 10px;
    border: 1px solid #e3e9e5;
    border-radius: 7px;
    background-color: var(--surface);
    color: var(--text-primary);
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    appearance: none;
}
.recent-attendance-filters select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 9px center;
}
.recent-attendance-filters input[type='date'] {
    padding-right: 26px;
    cursor: pointer;
}
.recent-attendance-filters
    input[type='date']::-webkit-calendar-picker-indicator {
    position: absolute;
    right: 6px;
    width: 14px;
    height: 14px;
    opacity: 0.55;
    cursor: pointer;
}
.recent-attendance-filters select:hover,
.recent-attendance-filters input:hover {
    border-color: #cfd9d3;
}
.recent-attendance-filters select:focus-visible,
.recent-attendance-filters input:focus-visible {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.14);
}
.recent-attendance-search {
    position: relative;
    display: flex;
    min-width: 180px;
    flex: 1 1 200px;
    align-items: center;
}
.recent-attendance-search > svg {
    position: absolute;
    top: 50%;
    left: 10px;
    display: block;
    width: 14px;
    height: 14px;
    color: #98a2b3;
    pointer-events: none;
    transform: translateY(-50%);
    transition: color 0.15s ease;
}
.recent-attendance-search:focus-within > svg {
    color: var(--primary);
}
.recent-attendance-search input {
    width: 100%;
    height: 32px;
    min-height: 32px;
    padding: 0 30px 0 32px;
    border: 1px solid #e3e9e5;
    border-radius: 8px;
    background: var(--surface);
    color: var(--text-primary);
    font-size: 11.5px;
    font-weight: 500;
    cursor: text;
    appearance: none;
}
.recent-attendance-search input:hover {
    border-color: #cfd9d3;
}
.recent-attendance-search input:focus-visible {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.14);
}
.recent-attendance-search input::placeholder {
    color: #98a2b3;
    font-weight: 500;
    opacity: 1;
}
.recent-attendance-search input::-webkit-search-cancel-button {
    height: 12px;
    cursor: pointer;
}
.recent-attendance-reset {
    display: inline-flex;
    height: 32px;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    border: 1px solid #f3d6d3;
    border-radius: 8px;
    background: #fff7f6;
    color: #c2410c;
    font-size: 11px;
    font-weight: 650;
    white-space: nowrap;
}
.recent-attendance-reset:hover {
    border-color: #efc0ba;
    background: #fdece9;
}
.date-range {
    position: relative;
    flex: 0 0 auto;
}
.date-range-trigger {
    display: inline-flex;
    height: 32px;
    min-width: 232px;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    border: 1px solid #e3e9e5;
    border-radius: 8px;
    background: var(--surface);
    color: var(--text-primary);
    font-size: 11.5px;
    font-weight: 650;
    white-space: nowrap;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}
.date-range-trigger > span {
    flex: 1;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
}
.date-range-trigger > svg:first-child {
    flex: 0 0 auto;
}
.date-range-chevron {
    flex: 0 0 auto;
    transition: transform 0.18s ease;
}
.date-range-trigger.is-open .date-range-chevron {
    transform: rotate(180deg);
}
.date-range-trigger > svg {
    color: #98a2b3;
}
.date-range-chevron {
    color: #98a2b3;
}
.date-range-trigger:hover {
    border-color: #cfd9d3;
}
.date-range-trigger.is-open {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}
.date-range-trigger.is-open > svg:first-child {
    color: var(--primary);
}
.date-range-popover {
    position: absolute;
    z-index: 40;
    top: calc(100% + 6px);
    left: 0;
    width: 288px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: 0 12px 32px rgba(16, 24, 40, 0.14);
}
.date-range-popover.is-floating {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
}
.date-range-popover.is-floating::before {
    position: absolute;
    top: -5px;
    left: calc(100% - 40px);
    width: 9px;
    height: 9px;
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
    background: var(--surface);
    content: '';
    transform: rotate(45deg);
}
.date-range-popover.is-floating.is-top::before {
    top: auto;
    bottom: -5px;
    border: 0;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.date-range-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid #f1f4f2;
}
.date-range-presets button {
    flex: 1 1 auto;
    padding: 5px 8px;
    border: 1px solid #e8eeea;
    border-radius: 6px;
    background: #fafcfa;
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 650;
    white-space: nowrap;
}
.date-range-presets button:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary-dark);
}
.date-range-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.date-range-nav strong {
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 700;
}
.date-range-nav button {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border: 1px solid #e8eeea;
    border-radius: 6px;
    background: #fff;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1;
}
.date-range-nav button:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}
.date-range-weekdays,
.date-range-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.date-range-weekdays span {
    padding: 4px 0;
    color: #98a2b3;
    font-size: 9px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}
.date-range-day {
    display: grid;
    height: 32px;
    place-items: center;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.date-range-day:hover {
    background: #eef6f0;
}
.date-range-day.is-outside {
    color: #c3ccd6;
}
.date-range-day.is-today {
    box-shadow: inset 0 0 0 1px var(--primary);
}
.date-range-day.is-range {
    border-radius: 0;
    background: #e7f5ec;
    color: var(--primary-dark);
}
.date-range-day.is-start {
    border-radius: 7px 0 0 7px;
}
.date-range-day.is-end {
    border-radius: 0 7px 7px 0;
}
.date-range-day.is-start.is-end {
    border-radius: 7px;
}
.date-range-day.is-edge {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
}
.date-range-day.is-edge.is-today {
    box-shadow: none;
}
.date-range-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 8px;
    margin-top: 8px;
    border-top: 1px solid #f1f4f2;
}
.date-range-footer span {
    overflow: hidden;
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.date-range-cancel {
    padding: 5px 9px;
    border: 1px solid #e8eeea;
    border-radius: 6px;
    background: #fff;
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 650;
}
.date-range-cancel:hover {
    border-color: #cfd9d3;
    color: var(--text-primary);
}
@media (max-width: 720px) {
    .date-range-popover {
        position: fixed;
        top: auto;
        right: 12px;
        bottom: 12px;
        left: 12px;
        width: auto;
        max-height: calc(100vh - 24px);
        overflow-y: auto;
    }
    .date-range-day {
        height: 36px;
        font-size: 12px;
    }
}
.recent-attendance-count {
    flex: 0 0 auto;
    margin: 0;
    padding: 0 2px;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.dashboard-filter-submit {
    display: inline-flex;
    height: 30px;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    padding: 0 11px;
    border: 0;
    border-radius: 7px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 650;
}
.dashboard-filter-submit:hover {
    background: var(--primary-dark);
}
.dashboard-table-footnote {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    margin: 14px 0 0;
    padding: 12px 16px;
    border: 1px solid #edf1ef;
    border-radius: 10px;
    background: #fbfcfb;
    color: var(--text-secondary);
    font-size: 11px;
}
.dashboard-table-footnote > span {
    padding-left: 2px;
    font-weight: 600;
    white-space: nowrap;
}
.dashboard-table-footnote > .text-button {
    flex: 0 0 auto;
}
.dashboard-table-footnote > span,
.dashboard-table-footnote > nav,
.dashboard-table-footnote > a {
    align-self: center;
}
.dashboard-card-meta {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}
.dashboard-pagination {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 4px;
    padding: 2px;
    border-radius: 8px;
    background: #fff;
    box-shadow: inset 0 0 0 1px #edf1ef;
}
.dashboard-pagination button {
    display: inline-flex;
    min-width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 1px solid #e3e9e5;
    border-radius: 6px;
    background: var(--surface);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}
.dashboard-pagination button:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary-dark);
}
.dashboard-pagination button.is-active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}
.dashboard-pagination button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}
.recent-attendance-table {
    margin: 8px -14px 0;
}
.recent-attendance-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
}
.recent-attendance-table table {
    min-width: 680px;
    /* Fixed layout keeps the clock location column wide enough to wrap cleanly
       instead of being squeezed by the adjacent content-driven columns. */
    table-layout: fixed;
}
.recent-attendance-table .col-employee {
    width: 32%;
}
.recent-attendance-table .col-time {
    width: 12%;
}
.recent-attendance-table .col-status {
    width: 15%;
}
.recent-attendance-table .col-location {
    width: 12%;
}
.recent-attendance-table .col-clock-location {
    width: 30%;
}
/* Long geocoded addresses wrap instead of being clipped by the row. */
.recent-attendance-table td.col-clock-location {
    vertical-align: top;
    white-space: normal;
}
.recent-attendance-table .table-location {
    display: grid;
    gap: 1px;
    color: var(--text-secondary);
    font-size: 10px;
    line-height: 1.45;
    white-space: normal;
}
.recent-attendance-table .table-location + .table-location {
    margin-top: 6px;
}
.table-location-label {
    color: #98a2b3;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.table-location-text {
    display: flex;
    gap: 4px;
    align-items: flex-start;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.table-location-text svg {
    flex: none;
    margin-top: 2px;
}
.recent-attendance-table .table-location-empty {
    color: var(--text-secondary);
}

.recent-attendance-table td {
    vertical-align: middle;
}
.recent-attendance-table .employee-cell {
    gap: 9px;
}
.employee-cell-copy {
    display: grid;
    min-width: 0;
    gap: 1px;
}
.employee-cell-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.employee-cell-copy small {
    color: #98a2b3;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.table-muted {
    color: var(--text-secondary);
}
.table-time {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 6px;
    background: #f4f7f5;
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}
.recent-attendance-table td.recent-attendance-empty {
    padding: 22px 16px 24px;
    text-align: center;
    white-space: normal;
}
.recent-attendance-empty-icon {
    display: inline-grid;
    width: 34px;
    height: 34px;
    margin-bottom: 8px;
    place-items: center;
    border-radius: 10px;
    background: #f2f6f3;
    color: #98a2b3;
}
.recent-attendance-empty strong {
    display: block;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 700;
}
.recent-attendance-empty small {
    display: block;
    margin-top: 3px;
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.5;
}
.recent-attendance-table th {
    padding: 7px 14px;
    font-size: 10px;
}
.recent-attendance-table td {
    padding: 7px 14px;
    font-size: 11px;
}
.recent-attendance-table tbody tr:hover td {
    background: #fafcfa;
}
.recent-attendance-table tbody tr:last-child td {
    border-bottom: 1px solid #f1f4f2;
}

.kpi-hint {
    margin: 8px 0 0;
    color: var(--text-secondary);
    font-size: 11px;
}
.status-badge {
    padding: 3px 8px;
    font-weight: 700;
}
.status-badge.info {
    background: #ece7fb;
    color: #6d28d9;
}
.composition-card {
    grid-column: span 4;
}
.composition-block + .composition-block {
    margin-top: 12px;
}
.composition-block:first-child h3 {
    margin-top: 12px;
}
.composition-block h3 {
    margin: 14px 0 6px;
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.composition-row {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    color: var(--text-secondary);
    font-size: 11px;
}
.composition-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.composition-row b {
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
}
.composition-bar {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #eff3f0;
}
.composition-bar i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--primary);
    transition: width 0.4s ease;
}
.division-legend-item .legend-dot {
    border-radius: 3px;
}
.bar-green {
    background: linear-gradient(90deg, #34d399, #0d8a4f);
}
.bar-blue {
    background: linear-gradient(90deg, #60a5fa, #2563eb);
}
.bar-amber {
    background: linear-gradient(90deg, #fbbf24, #d97706);
}
.bar-purple {
    background: linear-gradient(90deg, #a78bfa, #7c3aed);
}
.bar-pink {
    background: linear-gradient(90deg, #f472b6, #db2777);
}
.logs-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    margin: 6px 0 14px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fbfcfb;
}
.logs-filter-bar label {
    display: grid;
    gap: 5px;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
}
.logs-filter-bar select,
.logs-filter-bar input {
    min-height: 36px;
    min-width: 170px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text-primary);
    font: inherit;
    font-size: 12px;
}
.data-table-expanded-row > td {
    padding: 0 !important;
    border-bottom: 1px solid var(--border);
    background: #f6f9f7;
}
.logs-detail-panel {
    margin: 0;
    padding: 12px 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.logs-detail-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.logs-detail-head strong {
    color: var(--text-primary);
    font-size: 12px;
}
.logs-detail-head span {
    color: var(--text-secondary);
    font-size: 11px;
}
.logs-detail-head button {
    margin-left: auto;
}
.logs-detail-table {
    width: 100%;
    border-collapse: collapse;
}
.logs-detail-table th {
    padding: 6px 8px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
}
.logs-detail-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #eef2ef;
    color: var(--text-primary);
    font-size: 11px;
    word-break: break-word;
}
.logs-filter-actions {
    display: flex;
    gap: 8px;
}
.table-wrap {
    overflow-x: auto;
    margin: 12px -14px -14px;
}
table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
}
th,
td {
    padding: 12px 16px;
    border-top: 1px solid #f0f2f1;
    color: var(--text-secondary);
    font-size: 10px;
    text-align: left;
    white-space: nowrap;
}
th {
    padding-top: 10px;
    padding-bottom: 10px;
    background: #fbfcfb;
    color: #8c9791;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.employee-cell {
    gap: 8px;
}
.employee-cell strong {
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 600;
}
.employee-cell small {
    display: block;
    color: #9aa49f;
    font-size: 9px;
}
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 600;
}
.status-badge.success {
    background: #dcf5e6;
    color: #0d8a4f;
}
.status-badge.warning {
    background: #fff1d7;
    color: #b47708;
}
.status-badge.danger {
    background: #fce5e3;
    color: var(--danger);
}
.leave-tabs {
    display: flex;
    gap: 8px;
    padding: 0;
    margin-bottom: 16px;
    border: 0;
    border-bottom: 1px solid #e7eeeb;
    border-radius: 0;
    background: transparent;
}
.leave-tabs button {
    padding: 10px 14px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
}
.leave-tabs button.active {
    border-bottom-color: var(--primary);
    color: var(--primary);
}
.simple-data-list {
    display: grid;
}
.simple-data-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid #f0f2f1;
}
.simple-data-item:first-child {
    border-top: 0;
}
.simple-data-item strong,
.simple-data-item p {
    display: block;
}
.simple-data-item strong {
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 600;
}
.simple-data-item p {
    margin: 4px 0 0;
    color: var(--text-secondary);
    font-size: 10px;
}
.balance-value {
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}
.leave-table-wrap {
    margin-top: 0;
}
.leave-table {
    min-width: 760px;
}
.leave-table td strong,
.leave-table td small {
    display: block;
}
.leave-table td strong {
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 600;
}
.leave-table td small {
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 9px;
}
.leave-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 18px;
    color: var(--text-secondary);
    font-size: 10px;
}
.leave-pagination > div {
    display: flex;
    align-items: center;
    gap: 8px;
}
.leave-page-number {
    color: var(--text-primary);
    font-weight: 600;
}
@media (max-width: 640px) {
    .leave-tabs button {
        padding: 9px 6px;
        font-size: 9px;
    }
    .simple-data-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
    .leave-pagination {
        align-items: flex-start;
        flex-direction: column;
    }
}
.birthdays-card {
    grid-column: span 4;
}
.birthday-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}
.birthday-when {
    margin-left: auto;
    padding: 2px 7px;
    border-radius: 999px;
    background: #f2f5f3;
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}
.birthday-when.is-today {
    background: #ffe9ef;
    color: #b3184a;
}
.birthday-person {
    display: grid;
    grid-template-columns: 31px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 8px;
}
.birthday-person strong {
    grid-column: 2;
}
.birthday-person small {
    grid-column: 2;
}
.birthday-person .birthday-when {
    grid-column: 3;
    grid-row: 1 / span 2;
    margin-left: 0;
}
.birthday-person .avatar {
    grid-row: span 2;
    width: 31px;
    height: 31px;
}
.birthday-person strong,
.birthday-person small {
    display: block;
}
.birthday-person strong {
    overflow: hidden;
    font-size: 11px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.birthday-person small {
    margin-top: 2px;
    color: var(--text-secondary);
    font-size: 10px;
}
.announcement-card {
    grid-column: span 4;
}
.announcement {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    padding: 10px 11px;
    border-radius: 11px;
    background: var(--primary-soft);
}
.announcement-link {
    color: inherit;
    text-decoration: none;
}
.announcement-link:hover {
    background: #dff3e8;
}
.dashboard-card-empty {
    min-height: 0;
}
.dashboard-card .module-empty {
    min-height: 0;
    padding: 14px 0;
}
.dashboard-card-empty .module-empty-icon {
    display: none;
}
.dashboard-card-empty h2 {
    margin: 0;
    font-size: 12px;
    font-weight: 650;
}
.dashboard-card-empty p {
    margin: 4px 0 0;
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.5;
}
.announcement-icon {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 8px;
    background: #fff;
    font-size: 15px;
}
.announcement strong {
    font-size: 12px;
}
.announcement p {
    display: -webkit-box;
    overflow: hidden;
    margin: 7px 0;
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}
.announcement small {
    color: #8ba398;
    font-size: 9px;
}
@media (max-width: 1200px) {
    .topbar {
        padding-right: 24px;
        padding-left: 24px;
    }
    .attendance-overview {
        grid-column: span 8;
    }
    .department-card,
    .events-card,
    .composition-card {
        grid-column: span 4;
    }
    .attendance-table-card {
        grid-column: span 8;
    }
    .attendance-table-primary {
        grid-column: 1 / -1;
    }
    .birthdays-card,
    .announcement-card {
        grid-column: span 4;
    }
}
@media (max-width: 1024px) {
    .kpi-card {
        grid-column: span 6;
    }
    .attendance-overview,
    .department-card,
    .events-card,
    .composition-card,
    .attendance-table-card,
    .birthdays-card,
    .announcement-card {
        grid-column: span 6;
    }
    .attendance-table-primary {
        grid-column: 1 / -1;
    }
    .recent-attendance-filters label {
        flex: 1 1 150px;
    }
}
@media (max-width: 720px) {
    .sidebar {
        left: -260px;
        box-shadow: none;
        transition: left 0.2s ease;
    }
    .sidebar.is-open {
        left: 0;
        box-shadow: 14px 0 30px rgba(24, 69, 53, 0.12);
    }
    .sidebar-overlay {
        position: fixed;
        z-index: 10;
        inset: 0;
        display: block;
        border: 0;
        background: rgba(20, 38, 31, 0.22);
    }
    .mobile-menu,
    .mobile-close {
        display: inline-grid;
    }
    .main-area {
        padding-left: 0;
    }
    .topbar {
        height: 72px;
        padding: 0 16px;
    }
    .topbar-actions {
        gap: 12px;
    }
    .notification-popover {
        position: fixed;
        top: 63px;
        right: 12px;
        width: min(360px, calc(100vw - 24px));
    }
    .recent-attendance-search {
        flex: 1 1 100%;
    }
    .dashboard-table-footnote {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 12px;
    }
    .dashboard-table-footnote > .text-button {
        justify-content: flex-end;
    }
    .dashboard-pagination {
        margin-left: auto;
    }
    .kpi-card strong {
        font-size: 20px;
    }
    .division-overview {
        flex-direction: column;
        align-items: stretch;
    }
    .topbar-divider,
    .profile-menu:not(.profile-menu-compact) .profile-copy,
    .profile-menu:not(.profile-menu-compact) .profile-chevron {
        display: none;
    }
    .dashboard-content {
        padding: 22px 16px 42px;
    }
    .dashboard-kpi-row,
    .dashboard-grid.dashboard-insight-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }
    .page-intro {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 23px;
    }
    .date-button {
        align-self: stretch;
        justify-content: center;
    }
    .dashboard-grid {
        gap: 12px;
    }
    .dashboard-section-heading {
        margin-top: 22px;
    }
    .kpi-card,
    .attendance-overview,
    .department-card,
    .events-card,
    .composition-card,
    .attendance-table-card,
    .birthdays-card,
    .announcement-card {
        grid-column: 1 / -1;
    }
    .kpi-card {
        padding: 17px;
    }
    .dashboard-card {
        padding: 18px;
    }
    .attendance-overview {
        min-height: 285px;
    }
    .birthday-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 8px;
    }
}

.login-page {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(360px, 0.92fr) 1.08fr;
    background: var(--surface);
}
.login-visual {
    position: relative;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 52px clamp(34px, 6vw, 92px) 34px;
    background: var(--primary-dark);
    color: #fff;
}
.login-visual::before,
.login-visual::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    content: '';
}
.login-visual::before {
    width: 490px;
    height: 490px;
    right: -225px;
    bottom: -180px;
}
.login-visual::after {
    width: 650px;
    height: 650px;
    right: -305px;
    bottom: -270px;
}
.login-visual-content,
.login-visual-footer {
    position: relative;
    z-index: 1;
}
.login-logo {
    display: block;
    width: 190px;
    height: auto;
    padding: 8px;
    border-radius: 9px;
    background: #fff;
}
.login-visual-copy {
    max-width: 410px;
    margin-top: clamp(80px, 16vh, 176px);
}
.login-eyebrow {
    margin: 0 0 13px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.login-visual .login-eyebrow {
    color: rgba(255, 255, 255, 0.7);
}
.login-visual-copy h1 {
    margin: 0;
    font-size: clamp(32px, 4vw, 53px);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 1.1;
}
.login-visual-copy > p:last-child {
    max-width: 370px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 15px;
    line-height: 1.75;
}
.login-highlight {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 300px;
    margin-top: 54px;
    padding: 15px 17px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
}
.highlight-icon {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border-radius: 9px;
    background: var(--primary-soft);
    color: #fff;
    font-weight: 800;
}
.login-highlight strong,
.login-highlight small {
    display: block;
}
.login-highlight strong {
    font-size: 12px;
}
.login-highlight small {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 10px;
}
.login-visual-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 10px;
}
.login-form-panel {
    display: grid;
    place-items: center;
    padding: 42px 24px;
    background: var(--background);
}
.login-form-wrap {
    width: min(100%, 420px);
}
.mobile-login-brand {
    display: none;
}
.login-heading {
    margin-bottom: 32px;
}
.login-heading h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 29px;
    font-weight: 650;
    letter-spacing: -0.04em;
}
.login-heading .login-eyebrow {
    margin-bottom: 10px;
}
.login-heading > p:last-child {
    margin: 10px 0 0;
    color: var(--text-secondary);
    font-size: 13px;
}
.login-company-picker {
    position: fixed;
    right: 24px;
    bottom: 20px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 5px;
    max-width: calc(100vw - 32px);
    color: var(--text-secondary);
    font-size: 10px;
}
.login-company-picker > label {
    white-space: nowrap;
}
.login-company-picker select {
    min-width: 0;
    max-width: 190px;
    padding: 2px 18px 2px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-secondary);
    font-size: 10px;
    cursor: pointer;
}
.login-company-picker select:focus {
    color: var(--primary);
}
.login-form {
    display: grid;
    gap: 21px;
}
.field {
    display: grid;
    gap: 8px;
}
.field label,
.field-label-row label {
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
}
.field-label-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.field-label-row a,
.login-support a {
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
}
.field-label-row a:hover,
.login-support a:hover {
    text-decoration: underline;
}
.field input {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid var(--border);
    border-radius: 9px;
    outline: none;
    background: #fff;
    color: var(--text-primary);
    font-size: 13px;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}
.field input::placeholder {
    color: #a4ada8;
}
.field input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(7, 133, 87, 0.1);
}
.password-field {
    position: relative;
}
.password-field input {
    padding-right: 44px;
}
.password-field button {
    position: absolute;
    top: 50%;
    right: 10px;
    display: grid;
    place-items: center;
    padding: 4px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #96a19b;
}
.remember-me {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--text-secondary);
    font-size: 11px;
    cursor: pointer;
}
.remember-me input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.custom-checkbox {
    display: grid;
    width: 16px;
    height: 16px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: #fff;
}
.remember-me input:checked + .custom-checkbox {
    border-color: var(--primary);
    background: var(--primary);
}
.login-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 3px;
    padding: 12px 18px;
    border: 0;
    border-radius: 9px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 650;
    transition:
        background 0.18s ease,
        transform 0.18s ease;
}
.login-submit span {
    font-size: 18px;
    line-height: 12px;
}
.login-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}
.login-message {
    margin: -8px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff5df;
    color: #9a6800;
    font-size: 11px;
}
.login-support {
    margin: 32px 0 0;
    color: var(--text-secondary);
    font-size: 11px;
    text-align: center;
}
@media (max-width: 760px) {
    .login-page {
        display: block;
    }
    .login-visual {
        display: none;
    }
    .login-form-panel {
        min-height: 100vh;
        padding: 28px 22px;
        place-items: start center;
    }
    .mobile-login-brand {
        display: block;
        margin-bottom: 72px;
    }
    .mobile-login-brand .login-logo {
        width: 178px;
    }
    .login-form-wrap {
        padding-top: 4px;
    }
    .login-heading h2 {
        font-size: 26px;
    }
    .login-company-picker {
        right: 16px;
        bottom: 16px;
    }
}

/* Login: modern white form card on a soft background. */
.login-form-panel {
    background:
        radial-gradient(
            circle at 100% 0%,
            color-mix(in srgb, var(--primary) 10%, transparent),
            transparent 42%
        ),
        radial-gradient(
            circle at 0% 100%,
            color-mix(in srgb, var(--primary) 7%, transparent),
            transparent 46%
        ),
        var(--background);
}
.login-form-wrap {
    width: min(100%, 432px);
    padding: clamp(26px, 3.4vw, 38px);
    border: 1px solid #eceff7;
    border-radius: 20px;
    background: var(--surface);
    box-shadow:
        0 1px 2px rgba(16, 24, 40, 0.04),
        0 18px 42px rgba(16, 24, 40, 0.08);
}
.login-form-wrap::before {
    display: none;
}
.login-heading {
    margin-bottom: 24px;
}
/* Login: minimal form with a floating field and inline icons. */
.login-form-panel {
    background: var(--background);
}
.login-heading {
    margin-bottom: 28px;
}
.login-heading h2 {
    font-size: clamp(26px, 2.4vw, 30px);
    font-weight: 700;
    letter-spacing: -0.035em;
}
.login-heading > p:last-child {
    margin-top: 8px;
    font-size: 12.5px;
    line-height: 1.6;
}
.login-form {
    display: grid;
    gap: 16px;
}
.login-form .field {
    display: grid;
    gap: 7px;
}
.login-form .field > label {
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.login-form .field {
    position: relative;
}
.login-form .login-input-wrap,
.login-form .password-field {
    position: relative;
    display: block;
}
.login-input-wrap > span,
.password-field > .login-input-icon,
.login-form .login-input-icon {
    position: absolute;
    top: 50%;
    left: 13px;
    display: inline-grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 0;
    background: transparent;
    color: #94a3a0;
    transform: translateY(-50%);
    pointer-events: none;
    transition: color 0.15s ease;
}
.field:focus-within .login-input-wrap > span,
.field:focus-within .login-input-icon {
    color: var(--primary);
}
.login-form .field input,
.login-input-wrap input,
.password-field input {
    width: 100%;
    min-height: 44px;
    padding: 11px 14px 11px 41px;
    border: 1px solid #e2e9e4;
    border-radius: 10px;
    background: var(--surface);
    color: var(--text-primary);
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}
.password-field input {
    padding-right: 46px;
}
.login-form .field input::placeholder,
.login-input-wrap input::placeholder,
.password-field input::placeholder {
    color: #9aa6a0;
    font-weight: 400;
}
.login-form .field input:hover,
.login-input-wrap input:hover,
.password-field input:hover {
    border-color: #cfdad4;
}
.login-form .field input:focus,
.login-input-wrap input:focus,
.password-field input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent);
}
.password-field button {
    position: absolute;
    top: 50%;
    right: 8px;
    display: inline-grid;
    width: 30px;
    height: 30px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #94a3a0;
    transform: translateY(-50%);
    transition:
        background 0.15s ease,
        color 0.15s ease;
}
.password-field button:hover {
    background: #f1f7f3;
    color: var(--text-primary);
}
.password-field button:focus-visible {
    outline: none;
    color: var(--primary);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 22%, transparent);
}
.login-form .remember-me {
    margin-top: 2px;
    font-size: 12px;
    font-weight: 500;
}
.custom-checkbox {
    width: 17px;
    height: 17px;
    border-radius: 5px;
    border-color: #cdd8d2;
    transition:
        border-color 0.15s ease,
        background 0.15s ease;
}
.remember-me:hover .custom-checkbox {
    border-color: var(--primary);
}
.login-submit {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 28%, transparent);
    transition:
        background 0.16s ease,
        box-shadow 0.16s ease,
        transform 0.16s ease;
}
.login-submit:hover {
    background: var(--primary-dark);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 34%, transparent);
    transform: translateY(-1px);
}
.login-submit:active {
    transform: translateY(0);
}
.login-submit:disabled {
    cursor: progress;
    opacity: 0.75;
    transform: none;
}
.login-submit span {
    font-size: 16px;
    line-height: 1;
}
.login-message {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 9px 11px;
    border: 1px solid #f6dfb2;
    border-radius: 8px;
    background: #fffaf0;
    color: #9a6800;
    font-size: 11.5px;
    font-weight: 600;
}
.login-support {
    margin-top: 20px;
    font-size: 11.5px;
}
.login-support a {
    font-weight: 700;
}

/* Login: solid brand panel with only the company logo centred, form on the right. */
.login-visual {
    display: grid;
    place-items: center;
    padding: 48px;
    overflow: hidden;
    isolation: auto;
    background: linear-gradient(
        140deg,
        var(--primary-dark) 0%,
        var(--primary-dark) 38%,
        var(--primary) 100%
    );
}
.login-visual::before,
.login-visual::after {
    z-index: auto;
    pointer-events: none;
}
.login-visual::before {
    width: 420px;
    height: 420px;
    right: auto;
    bottom: auto;
    left: 50%;
    top: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
    transform: translate(-50%, -50%) scale(1.9);
}
.login-visual::after {
    width: 300px;
    height: 300px;
    right: auto;
    bottom: auto;
    left: 50%;
    top: 50%;
    border-color: rgba(255, 255, 255, 0.07);
    transform: translate(-50%, -50%) scale(2.7);
}
.login-visual-center {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    display: grid;
    place-items: center;
    max-width: calc(100% - 96px);
    transform: translate(-50%, -50%);
}
.login-visual-logo {
    display: block;
    width: auto;
    max-width: min(78%, 320px);
    max-height: 168px;
    padding: 18px 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}
.login-page {
    grid-template-columns: minmax(340px, 42%) 1fr;
    background: var(--background);
}
.login-heading {
    margin-bottom: 26px;
}
.login-heading h2 {
    font-size: clamp(26px, 2.6vw, 32px);
}
.login-form {
    gap: 18px;
}
.login-input-wrap input,
.password-field input {
    padding-top: 12px;
    padding-bottom: 12px;
    border-radius: 10px;
}
.login-submit {
    min-height: 46px;
    border-radius: 10px;
    box-shadow: 0 8px 18px var(--primary-soft);
}
.login-support {
    margin-top: 22px;
}
.mobile-login-brand {
    display: none;
}
@media (max-width: 760px) {
    .login-page {
        display: block;
    }
    .login-visual {
        display: none;
    }
    .login-form-panel {
        min-height: 100dvh;
        padding: 40px 18px 64px;
        place-items: center;
    }
    .login-form-wrap {
        width: min(100%, 420px);
    }
    .mobile-login-brand {
        display: flex;
        justify-content: center;
        margin-bottom: 18px;
    }
    .mobile-login-brand .login-logo {
        display: block;
        width: auto;
        max-width: 190px;
        max-height: 84px;
        padding: 8px 12px;
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 6px 16px rgba(16, 24, 40, 0.06);
    }
    .login-version {
        margin-top: 18px;
        font-size: 11px;
    }
}

/* Login: app version label on the desktop brand panel and the mobile card. */
.login-visual-version {
    position: absolute;
    bottom: 22px;
    left: 0;
    z-index: 1;
    width: 100%;
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-align: center;
    text-transform: uppercase;
}
.login-version {
    margin: 16px 0 0;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
}

/* Login: banner image on the left panel, decorative image behind the form. */
.login-page {
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    background: var(--background);
}
.login-visual {
    position: relative;
    display: block;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(160deg, #0a4a9e 0%, #0b2b63 100%);
}
.login-visual::before,
.login-visual::after {
    display: none;
}
.login-visual-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center;
}
.login-visual-version {
    position: absolute;
    bottom: 22px;
    left: 0;
    z-index: 1;
    width: 100%;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
}
.login-form-panel {
    display: grid;
    min-height: 0;
    padding: 24px;
    place-items: center;
    overflow: auto;
    background:
        var(--login-background-image) center / cover no-repeat,
        var(--background);
}
/* Larger, roomier form card. */
.login-form-wrap {
    width: min(100%, 520px);
    padding: clamp(26px, 2.6vw, 42px);
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(6px);
}
.login-form-wrap .login-heading h2 {
    font-size: clamp(28px, 2.4vw, 34px);
}
.login-form-wrap .login-heading > p:last-child,
.login-form-wrap .login-form .field > label {
    font-size: 13.5px;
}
.login-form-wrap .login-eyebrow {
    font-size: 12.5px;
}
.login-form-wrap .login-form {
    gap: 18px;
}
.login-form-wrap .login-form .field input,
.login-form-wrap .login-input-wrap input,
.login-form-wrap .password-field input {
    min-height: 50px;
    padding-top: 13px;
    padding-bottom: 13px;
    font-size: 14.5px;
}
.login-form-wrap .login-form .remember-me {
    font-size: 13px;
}
.login-form-wrap .custom-checkbox {
    width: 19px;
    height: 19px;
}
.login-form-wrap .login-submit {
    min-height: 50px;
    font-size: 14.5px;
}
.login-form-wrap .login-support,
.login-form-wrap .login-version {
    font-size: 12px;
}
@media (max-width: 760px) {
    .login-visual {
        display: none;
    }
    .login-page {
        overflow: auto;
    }
    .login-form-panel {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 20px 16px;
        overflow: visible;
        background:
            var(--login-background-image) center / cover no-repeat,
            var(--background);
    }
    .login-form-wrap {
        width: min(100%, 460px);
        padding: 24px 20px;
    }
}

.module-page {
    min-height: 100vh;
    width: 100%;
    padding-left: 248px;
    background: var(--background);
}
.module-content {
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px 32px 72px;
}
.module-back {
    display: inline-block;
    margin-bottom: 28px;
    color: var(--text-secondary);
    font-size: 12px;
    text-decoration: none;
}
.module-back:hover {
    color: var(--primary);
}
.module-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 28px;
}
.module-heading .eyebrow {
    margin-bottom: 8px;
}
.module-heading h1 {
    margin: 0;
    font-size: 30px;
    font-weight: 650;
    letter-spacing: -0.04em;
}
.module-heading p:last-child {
    max-width: 620px;
    margin: 9px 0 0;
    color: var(--text-secondary);
    font-size: 13px;
}
.module-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border: 0;
    border-radius: 9px;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
}
.module-action:hover {
    background: var(--primary-dark);
}
.module-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}
.module-stats > div {
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #fff;
    box-shadow: var(--shadow-card);
}
.module-stats span,
.module-stats strong {
    display: block;
}
.module-stats span {
    color: var(--text-secondary);
    font-size: 11px;
}
.module-stats strong {
    margin-top: 8px;
    font-size: 26px;
    font-weight: 650;
}
.module-panel {
    min-height: 410px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-card);
}
.module-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f0f2f1;
}
.module-panel-heading h2 {
    margin: 0;
    font-size: 15px;
}
.module-panel-heading p {
    margin: 5px 0 0;
    color: var(--text-secondary);
    font-size: 11px;
}
.module-filter {
    padding: 8px 11px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text-secondary);
    font-size: 11px;
}
.module-filter span {
    margin-left: 5px;
}
.ui-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 11px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
    font-size: 11px;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}
.ui-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    line-height: 1;
}
.ui-button-primary {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
    font-weight: 650;
}
.ui-button-primary:hover {
    border-color: var(--primary-dark);
    background: var(--primary-dark);
}
.ui-button-secondary {
    background: #fff;
    color: var(--text-secondary);
}
.ui-button-secondary:hover {
    border-color: #cbd7d0;
    color: var(--primary-dark);
}
.ui-button-danger {
    background: #fff;
    color: var(--danger);
}
.ui-button-danger:hover {
    border-color: #f2b7b5;
    background: #fff6f5;
}
.ui-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}
.ui-button.icon-button {
    display: inline-grid;
    width: 30px;
    height: 30px;
    padding: 0;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--text-secondary);
    font-size: 18px;
}
.toast {
    position: fixed;
    z-index: 60;
    top: 22px;
    right: 22px;
    display: flex;
    max-width: min(400px, calc(100vw - 32px));
    align-items: center;
    gap: 10px;
    padding: 12px 12px 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.12);
    color: var(--text-primary);
    font-size: 12px;
}
.toast-success {
    border-color: #b9dfcc;
}
.toast-error {
    border-color: #f2b7b5;
}
.toast-icon {
    display: grid;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 700;
}
.toast-error .toast-icon {
    background: #fff0ef;
    color: var(--danger);
}
.toast-close {
    width: 24px !important;
    height: 24px !important;
    margin-left: 4px;
    color: var(--text-secondary);
}
.module-empty {
    display: grid;
    min-height: 290px;
    place-items: center;
    align-content: center;
    text-align: center;
}
.module-empty-icon {
    display: grid;
    width: 45px;
    height: 45px;
    place-items: center;
    margin-bottom: 13px;
    border-radius: 13px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 19px;
}
.module-empty h2 {
    margin: 0;
    font-size: 16px;
}
.module-empty p {
    margin: 7px 0 17px;
    color: var(--text-secondary);
    font-size: 11px;
}
.company-list-card {
    min-height: 0;
}
.datatable-toolbar,
.datatable-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.datatable-toolbar {
    padding: 16px 0 14px;
}
.datatable-search {
    display: flex;
    flex: 1;
    max-width: 460px;
    align-items: center;
    gap: 8px;
}
.datatable-search input,
.datatable-per-page select {
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: var(--text-primary);
    font-size: 11px;
}
.datatable-search input {
    min-width: 0;
    flex: 1;
}
.datatable-search input:focus,
.datatable-per-page select:focus,
.profile-field select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(7, 133, 87, 0.1);
}
.datatable-per-page {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 11px;
    white-space: nowrap;
}
.datatable-per-page select {
    padding-right: 24px;
}
.data-table-wrapper {
    overflow-x: auto;
    padding-top: 14px;
}
.data-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: 12px;
    table-layout: fixed;
    white-space: nowrap;
}
.data-table thead {
    border-top: 1px solid #f0f2f1;
    border-bottom: 1px solid #f0f2f1;
    background: #fbfcfb;
}
.data-table .company-column {
    width: 29%;
}
.data-table .number-column {
    width: 6%;
}
.data-table-number-column {
    padding-right: 6px !important;
    padding-left: 6px !important;
}
.data-table .code-column {
    width: 15%;
}
.data-table .timezone-column {
    width: 20%;
}
.data-table .status-column {
    width: 13%;
}
.data-table .actions-column {
    width: 20%;
}
.data-table th {
    height: 40px;
    padding: 10px 12px;
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    vertical-align: middle;
}
.data-table td {
    padding: 12px;
    border-top: 1px solid #f0f2f1;
    color: var(--text-secondary);
    vertical-align: middle;
}
.data-table td:first-child {
    color: var(--text-primary);
}
.data-table-align-left {
    text-align: left;
}
.data-table-align-center {
    text-align: center;
}
.data-table-align-right {
    text-align: right;
}
.data-table td strong,
.data-table td small {
    display: block;
}
.overtime-reason {
    display: block;
    overflow-wrap: anywhere;
    white-space: normal;
    line-height: 1.45;
}
.permission-period,
.permission-reason {
    display: block;
    max-width: 100%;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.45;
    overflow-wrap: anywhere;
    white-space: normal;
}
.permission-period {
    display: grid;
    gap: 2px;
}
.data-table td small {
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 11px;
}
.data-table .table-cell-wrap {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
    line-height: 1.45;
}
.data-table .table-cell-wrap strong {
    overflow-wrap: anywhere;
    white-space: normal;
}
.document-file-link {
    display: block;
    color: var(--primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.document-file-link:hover {
    color: var(--text-primary);
}
.permission-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    white-space: normal;
}
.permission-chip {
    display: inline-block;
    padding: 4px 7px;
    border: 1px solid #e1e9e5;
    border-radius: 5px;
    color: var(--text-secondary);
    font-size: 10px;
}
.module-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid #e7eeeb;
}
.module-tabs button {
    padding: 10px 14px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
}
.module-tabs button.active {
    border-bottom-color: var(--primary);
    color: var(--primary);
}
.access-role-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}
.permission-fieldset {
    min-width: 0;
    margin: 0;
    padding: 12px;
    border: 1px solid #e1e9e5;
    border-radius: 8px;
}
.permission-fieldset legend {
    padding: 0 5px;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
}
.permission-checkboxes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.permission-module-list {
    display: grid;
    gap: 12px;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 4px;
}
.permission-select-all,
.permission-module-title {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 600;
}
.permission-select-all {
    margin-bottom: 10px;
}
.permission-module {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid #edf2ef;
    border-radius: 7px;
    background: #fbfcfb;
}
.permission-module > strong {
    color: var(--text-primary);
    font-size: 11px;
    text-transform: capitalize;
}
.permission-module-title strong {
    font-size: 11px;
    text-transform: capitalize;
}
.permission-detail-modal {
    max-height: min(720px, calc(100vh - 32px));
    overflow: hidden;
}
.permission-detail-list {
    display: grid;
    gap: 10px;
    max-height: 520px;
    overflow-y: auto;
    padding-top: 16px;
}
.permission-detail-module {
    display: grid;
    gap: 7px;
    padding: 10px;
    border: 1px solid #edf2ef;
    border-radius: 7px;
}
.permission-detail-module > strong {
    color: var(--text-primary);
    font-size: 11px;
    text-transform: capitalize;
}
.permission-detail-empty {
    margin: 0;
    color: var(--text-secondary);
    font-size: 12px;
}
.permission-checkboxes label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text-secondary);
    font-size: 11px;
}
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}
.data-table-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}
.workflow-step-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}
.workflow-step-heading > button {
    display: none;
}
.workflow-step-heading h3 {
    margin: 0;
    font-size: 13px;
}
.workflow-step-row {
    display: grid;
    grid-template-columns: 28px 1fr 1fr auto auto;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}
.workflow-step-row select {
    width: 100%;
    min-width: 0;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: 9px;
    outline: none;
    background: #fff;
    color: var(--text-primary);
    font: inherit;
    font-size: 13px;
}
.workflow-step-row select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(7, 133, 87, 0.1);
}
.workflow-step-row select[aria-label^='Minimum scope'] {
    display: none;
}
.workflow-step-row {
    grid-template-columns: 28px 1fr auto auto;
}
.workflow-step-number {
    display: grid;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    place-items: center;
}
@media (max-width: 620px) {
    .workflow-step-row {
        grid-template-columns: 28px 1fr auto;
    }
    .workflow-step-row select:first-of-type {
        grid-column: 2 / -1;
    }
}
.datatable-footer {
    padding-top: 14px;
    border-top: 1px solid #f0f2f1;
}
.datatable-footer p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 11px;
}
.datatable-pagination {
    display: flex;
    align-items: center;
    gap: 5px;
}
.datatable-pagination .ui-button.active {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 700;
}
.datatable-pagination .ui-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}
.required-marker {
    margin-left: 3px;
    color: var(--danger);
    font-size: 14px;
    font-weight: 700;
}
.modal-backdrop {
    position: fixed;
    z-index: 40;
    inset: 0;
    display: grid;
    overflow-y: auto;
    place-items: center;
    padding: 20px;
    background: rgba(41, 41, 41, 0.32);
}
.work-schedule-detail-backdrop {
    z-index: 39;
}
.company-modal {
    width: min(100%, 520px);
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: 0 18px 50px rgba(16, 24, 40, 0.16);
}
.cash-receipt-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.cash-receipt-modal {
    width: min(100%, 720px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 20px 22px 0;
}
.cash-receipt-modal .company-modal-heading {
    padding-bottom: 12px;
}
.cash-receipt-modal .company-modal-heading h2 {
    font-size: 16px;
}
.cash-receipt-modal .company-modal-heading p {
    margin-top: 2px;
    font-size: 11px;
}
.cash-receipt-form {
    gap: 12px;
}
.cash-receipt-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
}
.cash-receipt-form-grid .profile-field {
    gap: 5px;
}
.cash-receipt-form .profile-field label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1px;
}
.cash-receipt-form .profile-field input,
.cash-receipt-form .profile-field select,
.cash-receipt-form .profile-field textarea {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 12px;
}
.cash-receipt-form .profile-field textarea {
    min-height: 58px;
    resize: vertical;
}
.cash-receipt-span-2 {
    grid-column: 1 / -1;
}
.cash-receipt-form .profile-field input[readonly] {
    border-color: #e3e9e5;
    background: #f3f6f4;
    color: var(--text-primary);
    cursor: default;
}
.cash-receipt-form .profile-field input[readonly]:focus {
    outline: none;
    box-shadow: none;
}
.cash-receipt-members {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fafbfa;
}
.cash-receipt-members-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.cash-receipt-members-head > div:first-child {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}
.cash-receipt-members-head strong {
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.cash-receipt-members-head > div:first-child span {
    color: var(--text-muted);
    font-size: 10px;
}
.cash-receipt-members-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cash-receipt-members-tools input {
    width: 168px;
    min-height: 30px;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    font-size: 11px;
}
.cash-receipt-member-badge {
    padding: 3px 8px;
    border-radius: 999px;
    background: #e8f4ed;
    color: #1f7a4d;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}
.cash-receipt-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 104px;
    overflow-y: auto;
}
.cash-receipt-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px 4px 6px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-primary);
    font-size: 11px;
    cursor: pointer;
    transition:
        border-color 0.15s ease,
        background 0.15s ease;
}
.cash-receipt-chip:hover {
    border-color: #b7dcc8;
}
.cash-receipt-chip.is-selected {
    border-color: #1f7a4d;
    background: #1f7a4d;
    color: #fff;
}
.cash-receipt-chip-mark {
    display: grid;
    width: 16px;
    height: 16px;
    place-items: center;
    border-radius: 999px;
    background: #eef3f0;
    color: #1f7a4d;
    font-size: 10px;
    font-weight: 700;
}
.cash-receipt-chip.is-selected .cash-receipt-chip-mark {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}
.cash-receipt-chips-empty {
    margin: 0;
    padding: 6px 2px;
    color: var(--text-muted);
    font-size: 11px;
}
.cash-receipt-modal .profile-form-actions {
    position: sticky;
    bottom: 0;
    margin: 0 -22px;
    padding: 12px 22px;
    border-top: 1px solid var(--border);
    background: var(--surface);
    justify-content: flex-end;
}
.event-history-members {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 12px;
}
.event-history-members strong {
    color: var(--text-primary);
    font-weight: 600;
}
.company-modal-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f2f1;
}
.company-modal-heading h2 {
    margin: 0;
    font-size: 18px;
}
.company-modal-heading p:last-child {
    margin: 6px 0 0;
    color: var(--text-secondary);
    font-size: 12px;
}
.confirm-dialog {
    width: min(100%, 420px);
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: 0 18px 50px rgba(16, 24, 40, 0.16);
}
.confirm-dialog-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.confirm-dialog-icon {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: #fff2d8;
    color: #9b6500;
    font-weight: 700;
}
.confirm-dialog h2 {
    margin: 0;
    font-size: 17px;
}
.confirm-dialog p {
    margin: 7px 0 0;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.5;
}
.confirm-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
}
.profile-grid {
    display: grid;
    grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.5fr);
    gap: 14px;
    align-items: start;
}
.profile-content {
    max-width: none;
    padding: 22px 20px 44px;
}
.profile-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.profile-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 12px;
}
.profile-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}
.profile-breadcrumb a:hover {
    text-decoration: underline;
}
.profile-content .module-back {
    margin: 0;
}
.profile-content > .module-back {
    display: block;
    text-align: right;
}
.profile-content .module-heading {
    margin-bottom: 18px;
}
.report-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    overflow-x: auto;
    border-bottom: 1px solid var(--border);
}
.report-tabs button {
    padding: 9px 13px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    font: inherit;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}
.report-tabs button:hover {
    border-bottom-color: var(--primary-soft);
    background: var(--primary-soft);
    color: var(--primary);
}
.report-tabs button.is-active {
    border-bottom-color: var(--primary);
    color: var(--primary);
}
.report-filters {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: linear-gradient(135deg, var(--surface), #f7fbf8);
    box-shadow: var(--shadow-card);
}
.report-filter-field {
    display: grid;
    gap: 5px;
}
.report-filter-field label {
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.report-filter-field input,
.report-filter-field select {
    min-width: 150px;
    min-height: 36px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text-primary);
    font: inherit;
    font-size: 12px;
    outline: none;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}
.report-filter-field input:focus,
.report-filter-field select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(7, 133, 87, 0.11);
}
.report-filter-field select {
    min-width: 240px;
    cursor: pointer;
}
.report-filter-field #report-event {
    width: clamp(220px, 25vw, 320px);
}
.report-search-field {
    flex: 1;
    min-width: 220px;
}
.report-pagination {
    margin-top: 14px;
}
.report-card-per-page {
    margin-left: auto;
}
.data-table.report-data-table {
    min-width: 1180px;
}
.data-table.report-data-table thead th {
    vertical-align: bottom;
}
.data-table.report-data-table td {
    vertical-align: top;
}
.report-attendance-scroll:focus-visible {
    outline: 2px solid var(--primary-dark);
    outline-offset: -2px;
}
.data-table.report-data-table.is-attendance {
    min-width: 1100px;
    table-layout: auto;
}
.report-data-table.is-attendance th,
.report-data-table.is-attendance
    td:is([data-column='employee'], [data-column='branch']) {
    white-space: normal;
}
.report-data-table.is-attendance
    td:is([data-column='employee'], [data-column='branch']) {
    overflow-wrap: anywhere;
}
.report-data-table.is-attendance
    :is([data-column='clock_in_location'], [data-column='clock_out_location']) {
    width: 15%;
    min-width: 160px;
}
.report-data-table.is-attendance
    :is(
        [data-column='meal_allowance'],
        [data-column='late_minutes'],
        [data-column='early_leave_minutes'],
        [data-column='overtime_hours']
    ) {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.data-table .report-location-cell,
.report-location-cell {
    display: block;
    max-width: 230px;
    color: var(--text-primary);
    font-size: 11px;
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}
.report-location-cell:hover {
    text-decoration: underline;
}
.report-heading-actions {
    display: flex;
    gap: 8px;
}
.notification-list {
    overflow: hidden;
}
.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #edf1ef;
    cursor: pointer;
}
.notification-item:last-child {
    border-bottom: 0;
}
.notification-item.is-unread {
    background: #f4fbf7;
}
.notification-item-icon,
.settings-card-icon {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 700;
}
.notification-item-content {
    min-width: 0;
    flex: 1;
}
.notification-item-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.notification-item-heading h2 {
    margin: 0;
    font-size: 13px;
}
.notification-item-heading time {
    color: var(--text-secondary);
    font-size: 10px;
    white-space: nowrap;
}
.notification-item-content p {
    margin: 5px 0 0;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.45;
}
.notification-item-content a {
    display: inline-block;
    margin-top: 7px;
    color: var(--primary);
    font-size: 11px;
    text-decoration: none;
}
.notification-unread-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    margin-top: 7px;
    border-radius: 50%;
    background: var(--primary);
}
.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.settings-card {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-card);
    color: inherit;
    text-decoration: none;
}
.settings-card:hover {
    border-color: #a9d9bd;
    transform: translateY(-1px);
}
.settings-card > div {
    min-width: 0;
    flex: 1;
}
.settings-card h2 {
    margin: 0;
    font-size: 14px;
}
.settings-card p {
    margin: 6px 0 0;
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.5;
}
.settings-card-arrow {
    color: var(--primary);
    font-size: 18px;
}
.settings-card-status {
    padding: 4px 7px;
    border-radius: 6px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
}
.settings-card.is-disabled {
    opacity: 0.78;
}
.settings-card-form {
    cursor: default;
}
.settings-card-form:hover {
    transform: none;
}
.settings-logo-preview {
    display: block;
    max-width: 180px;
    max-height: 62px;
    margin: 14px 0;
    object-fit: contain;
    object-position: left center;
}
.settings-favicon-preview {
    display: block;
    width: 48px;
    height: 48px;
    margin: 14px 0 8px;
    object-fit: contain;
}
.settings-logo-form,
.settings-favicon-form {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 16px;
    max-width: 760px;
    margin-top: 18px;
}
.settings-logo-form label,
.settings-favicon-form label {
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 650;
}
.settings-logo-form input,
.settings-favicon-form input {
    min-width: 0;
    max-width: 100%;
    color: var(--text-secondary);
    font-size: 11px;
}
.settings-logo-form button,
.settings-favicon-form button {
    white-space: nowrap;
}
.settings-logo-visibility-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    max-width: 760px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}
.settings-logo-visibility-form button {
    margin-left: auto;
}
.settings-platform-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}
.settings-platform-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.settings-platform-grid label {
    display: grid;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
}
.settings-platform-grid input[type='text'],
.settings-platform-grid input:not([type]) {
    min-height: 36px;
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    font-size: 12px;
}
.settings-platform-previews {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 60px;
    padding: 10px 12px;
    border: 1px dashed var(--border);
    border-radius: 10px;
    background: #fafbfa;
}
@media (max-width: 760px) {
    .settings-platform-grid {
        grid-template-columns: 1fr;
    }
}
.settings-company-picker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
}
.settings-company-picker span {
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.settings-company-picker select {
    min-width: 180px;
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text-primary);
    font-size: 12px;
}
.settings-signature-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}
.settings-signature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 620px;
}
.settings-signature-form label {
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
}
.settings-signature-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.settings-signature-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    max-width: 620px;
}
.settings-signature-block-head strong {
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
}
.settings-signature-clear {
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}
.settings-signature-clear:hover {
    color: var(--text-primary);
}
.signature-pad {
    width: 100%;
    max-width: 620px;
    border: 1px dashed var(--border);
    border-radius: 10px;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 27px,
            #eef2ef 28px
        ),
        var(--surface);
    cursor: crosshair;
    touch-action: none;
}
.settings-signature-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 620px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fafbfa;
}
.settings-signature-preview span {
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.settings-signature-preview img {
    max-height: 52px;
    max-width: 180px;
    object-fit: contain;
}
.settings-signature-preview small {
    color: var(--text-muted);
    font-size: 11px;
}
.settings-signature-actions {
    display: flex;
    gap: 8px;
}
.settings-domain-form .profile-help {
    display: block;
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 11px;
}
.settings-password-form .profile-field {
    margin: 0;
}
.settings-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 2px;
}
.settings-feedback {
    margin-bottom: 14px;
    padding: 11px 14px;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 12px;
}
.settings-panel {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}
.settings-tabs {
    display: flex;
    gap: 4px;
    padding: 8px;
    border-bottom: 1px solid var(--border);
    background: #fbfcfb;
}
.settings-tabs button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
}
.settings-tabs button:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
}
.settings-tabs button.is-active {
    background: var(--primary);
    color: #fff;
}
.settings-tab-panel {
    padding: 22px;
}
.settings-tab-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.settings-tab-heading h2 {
    margin: 0;
    font-size: 15px;
}
.settings-tab-heading p {
    margin: 5px 0 0;
    color: var(--text-secondary);
    font-size: 12px;
}
.settings-password-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
@media (max-width: 760px) {
    .settings-password-grid {
        grid-template-columns: 1fr;
    }
    .settings-tabs {
        overflow-x: auto;
    }
    .settings-tab-panel {
        padding: 18px;
    }
    .settings-logo-form,
    .settings-favicon-form {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .settings-logo-form button,
    .settings-favicon-form button {
        justify-self: start;
    }
    .settings-logo-visibility-form button {
        margin-left: 0;
    }
}
.settings-theme-form {
    display: grid;
    gap: 18px;
    margin-top: 20px;
}
.settings-theme-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.settings-color-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}
.settings-color-field span {
    display: grid;
    gap: 4px;
    min-width: 0;
}
.settings-color-field strong {
    font-size: 12px;
}
.settings-color-field small {
    color: var(--text-secondary);
    font-size: 10px;
    line-height: 1.4;
}
.settings-color-field input {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    cursor: pointer;
}
.settings-color-field em {
    color: var(--text-secondary);
    font-size: 10px;
    font-style: normal;
    text-transform: uppercase;
}
.settings-theme-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 76px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
}
.settings-theme-preview span:first-child {
    padding: 9px 13px;
    border-radius: 8px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}
.settings-theme-preview span:nth-child(2) {
    font-size: 11px;
    font-weight: 700;
}
.settings-theme-preview small {
    margin-left: auto;
    color: var(--text-secondary);
    font-size: 10px;
}
@media (max-width: 760px) {
    .settings-signature-grid {
        grid-template-columns: 1fr;
    }
    .signature-pad {
        height: 140px;
    }
}

.settings-meal-table-wrap {
    overflow-x: auto;
    margin-top: 20px;
}
.settings-meal-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}
.settings-meal-table th,
.settings-meal-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}
.settings-meal-table td input {
    width: 100%;
    min-width: 96px;
}
.settings-meal-table th {
    white-space: nowrap;
}
.settings-meal-table th {
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}
.settings-meal-table td strong,
.settings-meal-table td small {
    display: block;
}
.settings-meal-table td strong {
    color: var(--text-primary);
    font-size: 12px;
}
.settings-meal-table td small {
    margin-top: 3px;
    color: var(--text-secondary);
    font-size: 10px;
}
.settings-meal-input-label input {
    width: 140px;
    padding: 9px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text-primary);
    font-size: 12px;
}
.settings-meal-empty {
    margin: 20px 0 0;
    color: var(--text-secondary);
    font-size: 12px;
}
.calendar-page {
    --calendar-accent: var(--primary);
}
.calendar-heading {
    align-items: flex-end;
}
.calendar-heading p:not(.eyebrow) {
    margin: 8px 0 0;
    color: var(--text-secondary);
    font-size: 12px;
}
.calendar-shell {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: 0 10px 28px rgba(30, 39, 46, 0.05);
}
.calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--primary-soft);
}
.calendar-toolbar strong,
.calendar-toolbar span {
    display: block;
}
.calendar-toolbar strong {
    color: var(--text-primary);
    font-family: Georgia, serif;
    font-size: 24px;
    text-transform: capitalize;
}
.calendar-toolbar span {
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 11px;
}
.calendar-toolbar-actions {
    display: flex;
    gap: 8px;
}
.calendar-weekdays,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}
.calendar-weekdays {
    background: var(--primary-soft);
}
.calendar-weekdays span {
    padding: 11px 12px;
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.calendar-day {
    min-height: 118px;
    padding: 11px;
    border: 0;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-primary);
    text-align: left;
    transition:
        background 0.18s ease,
        box-shadow 0.18s ease;
}
.calendar-day:nth-child(7n) {
    border-right: 0;
}
.calendar-day:hover {
    background: var(--primary-soft);
    box-shadow: inset 0 0 0 2px var(--primary);
}
.calendar-day.is-muted {
    color: var(--text-secondary);
    opacity: 0.55;
}
.calendar-day.is-today .calendar-day-number {
    display: inline-grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 50%;
    background: var(--calendar-accent);
    color: #fff;
}
.calendar-day-number {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
}
.calendar-day-activities {
    display: grid;
    gap: 5px;
    margin-top: 10px;
}
.calendar-activity-chip {
    overflow: hidden;
    display: block;
    padding: 6px 7px;
    border-left: 3px solid var(--calendar-accent);
    border-radius: 5px;
    background: var(--primary-soft);
    color: var(--text-primary);
    font-size: 10px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.calendar-activity-color-1 {
    filter: hue-rotate(42deg);
}
.calendar-activity-color-2 {
    filter: hue-rotate(86deg);
}
.calendar-activity-color-3 {
    filter: hue-rotate(148deg);
}
.calendar-activity-color-4 {
    filter: hue-rotate(218deg);
}
.calendar-activity-color-5 {
    filter: hue-rotate(286deg);
}
.calendar-day-activities small {
    color: var(--text-secondary);
    font-size: 10px;
}
.calendar-modal {
    width: min(620px, calc(100vw - 32px));
}
.calendar-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.calendar-modal textarea {
    resize: vertical;
}
.calendar-selected-employees {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.calendar-selected-employee {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 8px;
    border: 1px solid var(--primary);
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font: inherit;
    font-size: 10px;
    cursor: pointer;
}
.calendar-selected-employee span {
    font-size: 14px;
    line-height: 10px;
}
.calendar-employee-options {
    max-height: 184px;
    overflow-y: auto;
    margin-top: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}
.calendar-employee-options::before {
    content: 'Select employee';
    display: block;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    background: var(--primary-soft);
    color: var(--text-secondary);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.calendar-employee-option {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 11px;
    cursor: pointer;
}
.calendar-employee-option:last-child {
    border-bottom: 0;
}
.calendar-employee-option:hover {
    background: var(--primary-soft);
}
.calendar-employee-option input {
    accent-color: var(--primary);
}
.profile-help {
    display: block;
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 10px;
}
@media (max-width: 760px) {
    .calendar-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
    .calendar-grid {
        min-width: 720px;
    }
    .calendar-shell {
        overflow-x: auto;
    }
    .calendar-weekdays {
        min-width: 720px;
    }
    .calendar-form-grid {
        grid-template-columns: 1fr;
    }
}

/* Keep the employee surface on the same company palette as the admin shell. */
.employee-mobile-shell,
.employee-mobile-page {
    background: var(--mobile-background);
}
.employee-mobile-attendance-card {
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
}
.employee-mobile-primary-action {
    color: var(--primary-dark);
}
.employee-mobile-profile-initials {
    background: var(--primary-dark);
}
.employee-mobile-nav-item.is-active {
    background: var(--primary-soft);
    color: var(--primary-dark);
}
.employee-mobile-nav-item.is-primary .employee-mobile-nav-icon,
.employee-mobile-nav-attendance .employee-mobile-nav-icon {
    background: var(--primary);
}
.employee-mobile-date-icon,
.employee-mobile-section-heading a,
.employee-mobile-section-count,
.employee-mobile-payslip-icon {
    color: var(--primary);
}
.employee-mobile-announcement {
    background: var(--primary-soft);
    border-color: var(--primary-soft);
}
.employee-mobile-bottom-nav::before {
    background: var(--mobile-background);
}
.profile-identity,
.profile-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}
.profile-identity {
    min-height: 230px;
    padding: 22px;
    background: linear-gradient(145deg, #f1faf5 0%, #fff 68%);
}
.profile-large-avatar {
    display: grid;
    width: 58px;
    height: 58px;
    margin-bottom: 15px;
    place-items: center;
    border-radius: 18px;
    font-size: 18px;
    font-weight: 700;
}
.profile-identity h2,
.profile-card-heading h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 650;
    letter-spacing: -0.02em;
}
.profile-identity p,
.profile-card-heading p {
    margin: 7px 0 0;
    color: var(--text-secondary);
    font-size: 12px;
}
.profile-status {
    display: inline-flex;
    margin-top: 11px;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.profile-identity-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid #dfece5;
}
.profile-identity-copy strong {
    font-size: 12px;
}
.profile-identity-copy span {
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.5;
}
.profile-card {
    padding: 20px;
}
.profile-card.leave-tabs {
    padding: 0;
    border: 0;
    border-bottom: 1px solid #e7eeeb;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.profile-card-heading {
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f2f1;
}
.company-list-card .profile-card-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.profile-form {
    display: grid;
    gap: 13px;
    padding-top: 17px;
}
.profile-field {
    display: grid;
    gap: 5px;
}
.profile-field label {
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
}
.profile-field input {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: 9px;
    outline: none;
    background: #fff;
    color: var(--text-primary);
    font: inherit;
    font-size: 13px;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}
.profile-field select {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: 9px;
    outline: none;
    background: #fff;
    color: var(--text-primary);
    font: inherit;
    font-size: 13px;
}
.profile-field textarea {
    width: 100%;
    min-height: 76px;
    resize: vertical;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: 9px;
    outline: none;
    background: #fff;
    color: var(--text-primary);
    font: inherit;
    font-size: 13px;
}
.profile-field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(7, 133, 87, 0.1);
}
.branch-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}
.branch-form-grid.organization-form-grid-without-company {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.work-schedule-form-grid .work-schedule-employee-field {
    grid-column: 1 / -1;
}
.work-schedule-detail-modal {
    width: min(100%, 880px);
    max-height: min(820px, calc(100vh - 32px));
    overflow-y: auto;
}
.work-schedule-detail-modal .company-modal-heading {
    margin-bottom: 6px;
}
.work-schedule-detail-periods {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}
.work-schedule-period-card {
    display: grid;
    gap: 13px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fbfdfc;
}
.work-schedule-period-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.work-schedule-period-heading div {
    display: grid;
    gap: 4px;
}
.work-schedule-period-heading span:first-child {
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.work-schedule-period-heading strong {
    font-size: 14px;
}
.work-schedule-week-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 7px;
}
.work-schedule-day-card {
    display: grid;
    min-width: 0;
    min-height: 112px;
    align-content: start;
    gap: 6px;
    padding: 10px;
    border: 1px solid #e4ebe7;
    border-radius: 10px;
    background: #fff;
}
.work-schedule-day-card.is-workday {
    border-color: #bfe3cf;
    background: #f4fbf7;
}
.work-schedule-day-card.is-off {
    background: #fafafa;
}
.work-schedule-day-card > span {
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.work-schedule-day-card > strong {
    overflow: hidden;
    color: var(--text-primary);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.work-schedule-day-card > small {
    min-height: 28px;
    color: var(--text-secondary);
    font-size: 9px;
    line-height: 1.4;
}
.work-schedule-day-delete {
    justify-self: start;
    padding: 4px 6px;
    font-size: 9px;
}
.salary-assignment-form {
    gap: 14px;
}
.salary-assignment-form-intro {
    margin: -2px 0 2px;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.5;
}
.salary-assignment-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.salary-assignment-form-full-grid .profile-field {
    grid-column: 1 / -1;
}
.salary-assignment-form .profile-field input,
.salary-assignment-form .profile-field select {
    min-height: 42px;
}
.branch-form-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    align-items: end;
}
.branch-checkbox-label {
    display: flex;
    min-height: 38px;
    align-items: center;
    gap: 8px;
}
.branch-modal .branch-office-checkbox {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--primary);
}
.branch-office-field small {
    color: var(--text-muted);
    font-size: 11px;
}
.cash-receipt-request-field {
    grid-column: auto;
}
.salary-assignment-target-error {
    grid-column: 1 / -1;
}
.schedule-pattern-row {
    display: grid;
    grid-template-columns: 110px 130px 1fr;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}
.schedule-pattern-row strong {
    font-size: 12px;
}
.schedule-pattern-row select {
    min-width: 0;
}
.face-camera-preview {
    display: block;
    width: 100%;
    max-height: 360px;
    border-radius: 14px;
    background: #10251e;
    object-fit: cover;
    transform: scaleX(-1);
}
.face-upload-preview-wrap {
    display: grid;
    gap: 10px;
}
.face-upload-preview {
    display: block;
    width: 100%;
    max-height: 360px;
    border-radius: 14px;
    background: #f1f5f3;
    object-fit: contain;
}
.face-enrollment-photo {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.face-enrollment-photo-button {
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    line-height: 0;
}
.face-enrollment-photo-button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}
.face-photo-preview-modal {
    max-width: 600px;
}
.face-enrollment-photo-preview {
    display: block;
    width: 100%;
    max-height: 70vh;
    border-radius: 16px;
    object-fit: contain;
}
.face-enrollment-modal {
    max-width: 560px;
}
.salary-structure-modal {
    max-width: 620px;
}
.salary-component-selector {
    display: grid;
    gap: 10px;
    padding-top: 4px;
}
.salary-component-selector-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.salary-component-selector-heading label {
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
}
.salary-component-selector-heading p {
    margin: 4px 0 0;
    color: var(--text-secondary);
    font-size: 11px;
}
.salary-component-selector-heading > span {
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.salary-component-list {
    display: grid;
    gap: 8px;
    max-height: 250px;
    overflow-y: auto;
    padding: 2px;
}
.salary-component-option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
}
.salary-component-option.is-selected {
    border-color: rgba(7, 133, 87, 0.4);
    background: #f7fcf9;
}
.salary-component-check {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.salary-component-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}
.salary-component-check span {
    display: grid;
    min-width: 0;
    gap: 2px;
}
.salary-component-check strong {
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    white-space: nowrap;
}
.salary-component-check small {
    color: var(--text-secondary);
    font-size: 10px;
}
.salary-component-amount {
    display: grid;
    gap: 4px;
}
.salary-component-amount label {
    color: var(--text-secondary);
    font-size: 10px;
}
.salary-component-amount input {
    width: 100%;
    padding: 7px 9px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
    font-size: 12px;
}
.salary-component-amount input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(7, 133, 87, 0.1);
}
.salary-structure-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f2f1;
}
.salary-structure-summary div {
    display: grid;
    gap: 4px;
}
.salary-structure-summary span,
.salary-detail-row small {
    color: var(--text-secondary);
    font-size: 10px;
}
.salary-structure-summary strong {
    font-size: 12px;
}
.salary-structure-description {
    margin: 14px 0 0;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.5;
}
.payslip-modal {
    max-width: 620px;
}
.payslips-table th:first-child,
.payslips-table td:first-child {
    width: 48px;
    padding-right: 8px;
    padding-left: 8px;
    text-align: center;
}
.payslip-modal .profile-form-actions {
    margin-top: 5px;
}
.payslip-total {
    display: grid;
    gap: 5px;
    margin-top: 18px;
    padding: 16px;
    border-radius: 10px;
    background: #effaf4;
}
.payslip-total span {
    color: var(--text-secondary);
    font-size: 11px;
}
.payslip-total strong {
    color: var(--primary);
    font-size: 22px;
}
.payslip-lines {
    display: grid;
    gap: 0;
    margin-top: 16px;
}
.payslip-lines > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid #edf1ef;
    font-size: 12px;
}
.payslip-lines span {
    display: grid;
    gap: 3px;
}
.payslip-lines small {
    color: var(--text-secondary);
    font-size: 10px;
}
.salary-detail-items {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}
.salary-detail-items-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.salary-detail-items-heading h3 {
    margin: 0;
    font-size: 13px;
}
.salary-detail-items-heading span {
    color: var(--text-secondary);
    font-size: 11px;
}
.salary-detail-list {
    display: grid;
    gap: 7px;
}
.salary-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #f8fbf9;
}
.salary-detail-row div {
    display: grid;
    min-width: 0;
    gap: 2px;
}
.salary-detail-row strong {
    font-size: 12px;
}
.salary-detail-empty {
    margin: 0;
    color: var(--text-secondary);
    font-size: 12px;
}
.salary-detail-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px;
    padding: 12px;
    border-top: 2px solid var(--primary);
    color: var(--primary-dark);
}
.salary-detail-total span {
    font-size: 12px;
    font-weight: 600;
}
.salary-detail-total strong {
    font-size: 14px;
}
.salary-structure-modal .profile-field > label::after {
    content: ' *';
    color: #e53935;
}
.salary-structure-modal .salary-component-selector-heading label::after {
    content: '';
}
.salary-structure-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f2f1;
}
.salary-structure-summary div {
    display: grid;
    gap: 4px;
}
.salary-structure-summary span,
.salary-detail-row small {
    color: var(--text-secondary);
    font-size: 10px;
}
.salary-structure-summary strong {
    font-size: 12px;
}
.salary-structure-description {
    margin: 14px 0 0;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.5;
}
.salary-detail-items {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}
.salary-detail-items-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.salary-detail-items-heading h3 {
    margin: 0;
    font-size: 13px;
}
.salary-detail-items-heading span {
    color: var(--text-secondary);
    font-size: 11px;
}
.salary-detail-list {
    display: grid;
    gap: 7px;
}
.salary-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #f8fbf9;
}
.salary-detail-row div {
    display: grid;
    min-width: 0;
    gap: 2px;
}
.salary-detail-row strong {
    font-size: 12px;
}
.salary-detail-empty {
    margin: 0;
    color: var(--text-secondary);
    font-size: 12px;
}
.salary-structure-detail-modal {
    width: min(100%, 680px);
    max-height: min(760px, calc(100vh - 32px));
    overflow-y: auto;
}
.salary-structure-detail-modal .company-modal-heading {
    margin-bottom: 4px;
}
.salary-structure-detail-modal .salary-structure-summary {
    padding: 15px 0 16px;
}
.salary-structure-summary-item {
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fbfdfc;
}
.salary-structure-summary-item .profile-status {
    width: fit-content;
    margin-top: 0;
}
.salary-structure-description {
    display: grid;
    gap: 5px;
    margin-top: 16px;
    padding: 12px 14px;
    border-left: 3px solid var(--primary);
    border-radius: 0 10px 10px 0;
    background: var(--primary-soft);
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.5;
}
.salary-structure-description > span {
    color: var(--primary-dark);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.salary-structure-description p {
    margin: 0;
}
.salary-detail-row {
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}
.salary-detail-row:hover {
    border-color: rgba(7, 133, 87, 0.3);
    background: #f4fbf7;
    transform: translateY(-1px);
}
.salary-detail-row small {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}
.salary-detail-type {
    padding: 3px 6px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.salary-detail-type.is-earning {
    background: var(--primary-soft);
    color: var(--primary-dark);
}
.salary-detail-type.is-deduction {
    background: #fff1f0;
    color: #bd514b;
}
.salary-detail-row .is-earning {
    color: var(--primary-dark);
}
.salary-detail-row .is-deduction {
    color: #bd514b;
}
.salary-detail-totals {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
    padding-top: 14px;
    border-top: 2px solid var(--primary);
}
.salary-detail-totals > div {
    display: grid;
    gap: 5px;
    padding: 11px 12px;
    border-radius: 10px;
    background: #f8fbf9;
}
.salary-detail-totals span {
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 600;
}
.salary-detail-totals strong {
    color: var(--text-primary);
    font-size: 13px;
}
.salary-detail-totals .is-net {
    border: 1px solid #bfe5d1;
    background: var(--primary-soft);
}
.salary-detail-totals .is-net strong {
    color: var(--primary-dark);
    font-size: 15px;
}
.salary-detail-totals .is-deduction {
    color: #bd514b;
}
.phase5-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(360px, 1.15fr);
    gap: 16px;
}
.correction-modal {
    max-width: 520px;
}
.card-heading,
.approval-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.card-heading h2,
.approval-card-header h2 {
    margin: 3px 0 0;
    font-size: 20px;
}
.soft-badge,
.count-badge,
.pending-summary {
    border-radius: 999px;
    background: #e8f5ef;
    color: #078557;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 10px;
    white-space: nowrap;
}
.count-badge {
    min-width: 28px;
    text-align: center;
}
.required-mark {
    color: #e53935;
}
.optional-label {
    color: #667085;
    font-size: 12px;
    font-weight: 400;
}
.form-grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.correction-request-list {
    display: grid;
    gap: 10px;
}
.correction-request-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #e5e9e7;
    padding: 12px 0;
}
.correction-request-item:last-child {
    border-bottom: 0;
}
.correction-request-item p,
.approval-reason {
    color: #667085;
    margin: 5px 0 0;
}
.approval-list {
    display: grid;
    gap: 16px;
}
.approval-card-header {
    border-bottom: 1px solid #e5e9e7;
    padding-bottom: 16px;
}
.before-after-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.before-after-grid > div {
    min-width: 0;
}
.before-after-grid span {
    color: #667085;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}
.before-after-grid pre {
    overflow: auto;
    border-radius: 10px;
    background: #f6f8f7;
    color: #292929;
    font-size: 12px;
    margin: 7px 0 0;
    padding: 12px;
}
.approval-card .profile-form-actions {
    justify-content: flex-end;
}
.attendance-date-filter {
    display: flex;
    align-items: end;
    gap: 8px;
    margin: -4px 0 16px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}
.attendance-date-control {
    display: grid;
    gap: 5px;
}
.attendance-date-filter label {
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 650;
}
.attendance-date-filter input {
    min-width: 156px;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text-primary);
    font: inherit;
    font-size: 12px;
}
.attendance-date-filter button {
    min-height: 36px;
    padding: 0 12px;
}
.attendance-location-cell {
    display: flex;
    gap: 5px;
    align-items: flex-start;
    width: 100%;
    max-width: 210px;
    color: var(--text-primary);
    font-size: 11px;
    line-height: 1.45;
    text-decoration: none;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}
.attendance-location-cell span:first-child {
    flex: none;
    font-size: 10px;
    line-height: 1.6;
}
.attendance-location-cell:hover span:last-child {
    text-decoration: underline;
}
.attendance-location-summary {
    display: grid;
    gap: 8px;
    margin-top: 14px;
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #f7f9f8;
}
.attendance-location-summary .eyebrow {
    margin: 0;
}
.attendance-location-summary small {
    display: block;
    margin-bottom: 2px;
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
@media (max-width: 760px) {
    .phase5-grid,
    .form-grid-two,
    .before-after-grid {
        grid-template-columns: 1fr;
    }
    .attendance-date-filter {
        align-items: stretch;
        flex-direction: column;
    }
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}
.profile-field input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(7, 133, 87, 0.1);
}
.profile-password-input {
    position: relative;
}
.profile-password-input input {
    padding-right: 40px;
}
.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    display: grid;
    width: 28px;
    height: 28px;
    padding: 0;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--text-secondary);
}
.password-toggle:hover {
    color: var(--primary);
}
.profile-error {
    color: var(--danger);
    font-size: 11px;
}
.profile-field input[aria-invalid='true'],
.profile-field select[aria-invalid='true'],
.profile-field textarea[aria-invalid='true'] {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(213, 71, 71, 0.1);
}
.profile-success {
    margin: 14px 0 0;
    padding: 9px 11px;
    border-radius: 8px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 12px;
}
.profile-password-heading {
    padding-top: 4px;
    border-top: 1px solid #f0f2f1;
}
.profile-password-heading h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 650;
}
.profile-password-heading p {
    margin: 6px 0 0;
    color: var(--text-secondary);
    font-size: 11px;
}
.profile-password-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}
.profile-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 2px;
}
.profile-form-actions .module-action:disabled {
    cursor: wait;
    opacity: 0.65;
}
.payroll-detail-content {
    width: 100%;
    max-width: none;
}
.payroll-detail-content {
    padding: 16px 16px 32px;
}
.payroll-detail-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin: 8px 0 14px;
    padding: 25px 28px;
    border: 1px solid #dcebe3;
    border-radius: var(--radius-lg);
    background: linear-gradient(120deg, #effaf4 0%, #fff 64%);
    box-shadow: var(--shadow-card);
}
.payroll-detail-hero-copy {
    min-width: 0;
}
.payroll-detail-hero-meta {
    display: grid;
    min-width: 150px;
    justify-items: end;
    gap: 7px;
}
.payroll-detail-hero-meta small {
    color: var(--text-secondary);
    font-size: 11px;
    text-align: right;
}
.payroll-detail-hero h1 {
    margin: 0;
    font-size: 30px;
    font-weight: 650;
    letter-spacing: -0.04em;
}
.payroll-detail-hero p:not(.eyebrow) {
    max-width: 620px;
    margin: 8px 0 0;
    color: var(--text-secondary);
    font-size: 13px;
}
.payroll-period-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--border);
    box-shadow: var(--shadow-card);
}
.payroll-period-meta > div {
    display: grid;
    gap: 5px;
    padding: 13px 16px;
    background: var(--surface);
}
.payroll-period-meta span {
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.payroll-period-meta strong {
    overflow: hidden;
    color: var(--text-primary);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.payroll-detail-hero .profile-status {
    margin-top: 2px;
}
.payroll-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}
.payroll-summary-card {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 17px 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow-card);
}
.payroll-summary-card-primary {
    border-color: #bfe5d1;
    background: #effaf4;
}
.payroll-summary-label,
.payroll-section-kicker {
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}
.payroll-summary-card strong {
    overflow: hidden;
    color: var(--text-primary);
    font-size: 18px;
    font-variant-numeric: tabular-nums;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.payroll-summary-card-primary strong {
    color: var(--primary-dark);
    font-size: 20px;
}
.payroll-summary-card small {
    color: var(--text-secondary);
    font-size: 11px;
}
.payroll-readiness-card,
.payroll-results-card {
    margin-top: 16px;
    padding: 22px 24px;
}
.payroll-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #edf1ef;
}
.payroll-section-heading h2 {
    margin: 5px 0 0;
    font-size: 18px;
    font-weight: 650;
    letter-spacing: -0.02em;
}
.payroll-section-heading p {
    margin: 6px 0 0;
    color: var(--text-secondary);
    font-size: 12px;
}
.readiness-count {
    display: grid;
    min-width: 74px;
    padding: 9px 12px;
    border-radius: 10px;
    background: #e8f7ef;
    color: var(--primary);
    text-align: center;
}
.readiness-count.is-warning {
    background: #fff4e5;
    color: #a86100;
}
.readiness-count strong {
    font-size: 20px;
    line-height: 1;
}
.readiness-count span {
    margin-top: 4px;
    font-size: 10px;
}
.readiness-success {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding: 13px 15px;
    border: 1px solid #d8eee1;
    border-radius: 10px;
    background: #f6fcf8;
}
.readiness-success > span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: #dff4e7;
    color: var(--primary);
    font-weight: 700;
}
.readiness-success strong,
.readiness-error strong {
    display: block;
    font-size: 12px;
}
.readiness-success p,
.readiness-error p {
    margin: 3px 0 0;
    color: var(--text-secondary);
    font-size: 11px;
}
.readiness-errors {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}
.readiness-error {
    display: flex;
    gap: 11px;
    padding: 12px 14px;
    border: 1px solid #f4d9c9;
    border-radius: 9px;
    background: #fff9f5;
}
.readiness-error-icon {
    display: grid;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    place-items: center;
    border-radius: 50%;
    background: #ffe8dc;
    color: #b95726;
    font-weight: 700;
}
.payroll-result-count {
    padding: 7px 10px;
    border-radius: 7px;
    background: #f2f5f3;
    color: var(--text-secondary);
    font-size: 11px;
    white-space: nowrap;
}
.payroll-results-table {
    min-width: 800px;
}
.payroll-results-table th:first-child,
.payroll-results-table td:first-child {
    width: 48px;
    padding-right: 8px;
    padding-left: 8px;
    text-align: center;
}
.payroll-results-table th:nth-child(3),
.payroll-results-table th:nth-child(4),
.payroll-results-table th:nth-child(5),
.payroll-results-table td:nth-child(3),
.payroll-results-table td:nth-child(4),
.payroll-results-table td:nth-child(5) {
    text-align: right;
}
.payroll-results-table td:nth-child(3),
.payroll-results-table td:nth-child(4),
.payroll-results-table td:nth-child(5) {
    font-variant-numeric: tabular-nums;
}
.payroll-results-table th:last-child,
.payroll-results-table td:last-child {
    text-align: right;
}
.payroll-status-cell {
    display: inline-flex;
    margin-left: auto;
}
.payroll-results-table th,
.payroll-results-table td {
    padding-top: 14px;
    padding-bottom: 14px;
}
.payroll-components-row td {
    padding: 0 14px 14px !important;
    border-top: 0;
    background: #fbfdfc;
}
.payroll-components {
    margin: -2px 0 0 40px;
    padding: 14px 16px 12px;
    border: 1px solid #dcebe3;
    border-radius: 12px;
    background: linear-gradient(180deg, #fbfefc 0%, #fff 100%);
    box-shadow: 0 5px 14px rgba(35, 78, 58, 0.04);
}
.payroll-components-heading,
.payroll-component,
.payroll-components-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.payroll-components-heading {
    padding-bottom: 11px;
    border-bottom: 1px solid #e6f0ea;
    color: var(--text-secondary);
    font-size: 11px;
}
.payroll-components-heading strong {
    color: var(--text-primary);
}
.payroll-components-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
}
.payroll-component-group {
    min-width: 0;
}
.payroll-component-group-heading {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 0 6px;
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-align: left;
    text-transform: uppercase;
}
.payroll-component-group-heading span {
    color: var(--text-primary);
    text-align: left;
}
.payroll-component-group-heading small {
    display: inline-flex;
    min-width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    border-radius: 999px;
    background: #eef5f0;
    color: var(--primary);
    font-size: 9px;
    line-height: 1;
    text-align: center;
}
.payroll-component {
    min-width: 0;
    min-height: 58px;
    padding: 10px 0;
    border-top: 1px solid #f0f3f1;
}
.payroll-component > span {
    display: grid;
    min-width: 0;
    align-items: start;
    justify-items: start;
    gap: 3px;
}
.payroll-component > strong {
    flex: 0 0 auto;
    overflow: visible;
    font-size: 11px;
    text-align: right;
    white-space: nowrap;
}
.payroll-component > span > strong {
    margin-left: 0;
    overflow: hidden;
    font-size: 11px;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.payroll-component-type {
    width: fit-content;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.payroll-component-type-earning {
    background: #e8f7ef;
    color: var(--primary);
}
.payroll-component-type-deduction {
    background: #fff1ea;
    color: #b95726;
}
.payroll-component-earning {
    color: var(--primary);
}
.payroll-component-deduction {
    color: #b95726;
}
.payroll-components-total {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid #dfece4;
    color: var(--text-secondary);
    font-size: 11px;
}
.payroll-components-total strong {
    color: var(--primary);
    font-size: 13px;
}
.payroll-employee-cell {
    display: grid;
    gap: 6px;
}
.payroll-details-toggle {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 5px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--primary);
    font: inherit;
    font-size: 10px;
    font-weight: 650;
    cursor: pointer;
}
.payroll-details-toggle:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}
.payroll-details-toggle span {
    font-size: 12px;
    line-height: 1;
}
.payroll-employee {
    display: flex;
    align-items: center;
    gap: 10px;
}
.payroll-employee-avatar {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 9px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}
.payroll-net-value {
    color: var(--primary);
}
.payroll-detail-content .payroll-detail-hero {
    margin: 4px 0 10px;
    padding: 18px 20px;
}
.payroll-detail-content .payroll-period-meta {
    margin-bottom: 10px;
}
.payroll-detail-content .payroll-summary-grid {
    gap: 12px;
    margin-top: 12px;
    margin-bottom: 12px;
}
.payroll-detail-content .payroll-summary-card {
    padding: 13px 14px;
}
.payroll-detail-content .payroll-readiness-card,
.payroll-detail-content .payroll-results-card {
    margin-top: 10px;
    padding: 16px 18px;
}
.payroll-detail-content .payroll-section-heading {
    gap: 12px;
    padding-bottom: 11px;
}
.payroll-detail-content .readiness-success {
    margin-top: 12px;
    padding: 10px 12px;
}
.payroll-detail-content .readiness-errors {
    gap: 6px;
    margin-top: 12px;
}
.payroll-detail-content .readiness-error {
    gap: 9px;
    padding: 9px 11px;
}
.payroll-inline-preview {
    margin-top: 10px;
    padding: 16px 18px;
}
.payroll-inline-preview .profile-card-heading {
    margin-bottom: 10px;
}
.payroll-preview-summary {
    min-height: 0;
    margin: 0 0 10px;
    padding: 12px 14px;
}
.payroll-preview-summary .module-empty-icon {
    margin-bottom: 5px;
}
.payroll-preview-summary h2 {
    margin: 0;
    font-size: 16px;
}
.payroll-preview-summary p {
    margin: 5px 0 0;
}
.payroll-inline-preview .data-table th,
.payroll-inline-preview .data-table td {
    padding-top: 10px;
    padding-bottom: 10px;
}
.payroll-inline-preview .data-table th:first-child,
.payroll-inline-preview .data-table td:first-child {
    width: 42px;
    padding-right: 7px;
    padding-left: 7px;
    text-align: center;
}
@media (max-width: 720px) {
    .module-page {
        padding-left: 0;
    }
}
@media (max-width: 640px) {
    .module-page {
        padding-left: 0;
    }
    .module-content {
        padding: 25px 16px 48px;
    }
    .module-heading {
        align-items: flex-start;
        flex-direction: column;
    }
    .module-heading h1 {
        font-size: 27px;
    }
    .module-action {
        width: 100%;
    }
    .module-stats {
        grid-template-columns: 1fr;
    }
    .module-panel {
        padding: 17px;
    }
    .module-panel-heading {
        align-items: flex-start;
        flex-direction: column;
    }
    .profile-grid {
        grid-template-columns: 1fr;
    }
    .profile-navigation {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }
    .profile-card,
    .profile-identity {
        padding: 16px;
    }
    .profile-password-fields {
        grid-template-columns: 1fr;
    }
    .branch-form-grid {
        grid-template-columns: 1fr;
    }
    .cash-receipt-form-grid {
        grid-template-columns: 1fr;
    }
    .branch-form-meta {
        grid-template-columns: 1fr;
    }
    .branch-form-grid.organization-form-grid-without-company {
        grid-template-columns: 1fr;
    }
    .module-filter {
        width: 100%;
    }
    .datatable-toolbar,
    .datatable-footer {
        align-items: stretch;
        flex-direction: column;
    }
    .datatable-search {
        max-width: none;
    }
    .datatable-pagination {
        flex-wrap: wrap;
    }
    .data-table th,
    .data-table td {
        padding-right: 9px;
        padding-left: 9px;
    }
    .company-modal {
        padding: 16px;
    }
    .salary-component-option {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .salary-component-amount {
        padding-left: 26px;
    }
    .salary-structure-summary {
        grid-template-columns: 1fr;
    }
    .payroll-detail-hero {
        flex-direction: column;
        padding: 20px;
    }
    .payroll-detail-hero-meta {
        justify-items: start;
    }
    .payroll-detail-hero-meta small {
        text-align: left;
    }
    .payroll-period-meta {
        grid-template-columns: 1fr;
    }
    .payroll-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .payroll-readiness-card,
    .payroll-results-card {
        padding: 17px;
    }
    .payroll-components {
        margin-left: 0;
    }
    .payroll-components-grid {
        grid-template-columns: 1fr;
    }
    .payroll-detail-content {
        padding: 16px 16px 32px;
    }
    .payroll-detail-content .payroll-detail-hero {
        padding: 16px;
    }
    .payroll-detail-content .payroll-readiness-card,
    .payroll-detail-content .payroll-results-card {
        padding: 14px;
    }
    .payroll-detail-content .payroll-summary-grid {
        gap: 9px;
        margin-top: 10px;
    }
    .payroll-detail-content .payroll-summary-card {
        padding: 11px 12px;
    }
}
.employee-mobile-submit-request {
    align-self: flex-end;
    padding: 6px 9px;
    border: 0;
    border-radius: 8px;
    background: #e1f5e8;
    color: #17714d;
    font-size: 9px;
    font-weight: 800;
}
.employee-mobile-print-request {
    align-self: flex-end;
    min-width: 72px;
    padding: 9px 13px;
    border: 1px solid color-mix(in srgb, var(--primary) 30%, white);
    border-radius: 10px;
    background: #fff;
    color: var(--primary-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.01em;
    white-space: nowrap;
}
.employee-mobile-submit-request:disabled {
    opacity: 0.6;
}
.employee-mobile-submit-request {
    min-width: 72px;
    padding: 9px 13px;
    border: 1px solid #13865a;
    border-radius: 10px;
    background: #13865a;
    box-shadow: 0 4px 10px rgba(19, 134, 90, 0.16);
    color: #fff;
    font-size: 10px;
    letter-spacing: 0.01em;
}
.employee-mobile-submit-request::after {
    margin-left: 5px;
    content: '→';
    font-size: 12px;
}
.employee-mobile-submit-request:hover {
    background: #0d704a;
    border-color: #0d704a;
    transform: translateY(-1px);
}
.employee-mobile-submit-request:disabled {
    background: #8ebbaa;
    border-color: #8ebbaa;
    box-shadow: none;
}
.employee-mobile-request-status {
    order: -1;
    align-self: center;
}
.employee-mobile-request-list article {
    display: grid;
    grid-template-columns: auto 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
}
.employee-mobile-request-list article {
    border: 0;
    border-bottom: 1px solid #e5eee9;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.employee-mobile-request-list article {
    border: 1px solid #e1ece6;
    border-radius: 16px;
    background: #fff;
}
.employee-mobile-request-icon {
    width: 32px;
    height: 40px;
    background: transparent;
}
.employee-mobile-request-icon {
    width: 40px;
    height: 40px;
}
.employee-mobile-request-list article {
    border-color: #dcebe3;
    background: linear-gradient(135deg, #fff 0%, #fbfefc 100%);
    box-shadow: 0 5px 16px rgba(35, 78, 58, 0.06);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}
.employee-mobile-request-list article:hover {
    border-color: #b9ddc8;
    box-shadow: 0 8px 20px rgba(35, 78, 58, 0.1);
    transform: translateY(-1px);
}
.employee-mobile-request-icon {
    width: 40px;
    height: 40px;
    border: 1px solid #bfe3cf;
    border-radius: 50%;
    background: #effaf4;
    color: #14845a;
    font-size: 19px;
}
.employee-mobile-request-status {
    padding: 5px 9px;
    border: 1px solid #f5ddb0;
    background: #fff8e9;
    font-size: 9px;
    letter-spacing: 0.04em;
}
.employee-mobile-request-title {
    display: flex;
    align-items: center;
    gap: 8px;
}
.employee-mobile-request-title .employee-mobile-request-status {
    order: 0;
    flex: 0 0 auto;
}
.employee-mobile-request-icon.is-draft {
    border-color: #f1d69e;
    background: #fff8e9;
    color: #b6751f;
}
.employee-mobile-request-icon.is-submitted {
    border-color: #b9d8f0;
    background: #f0f7fd;
    color: #3979a8;
}
.employee-mobile-request-icon.is-approved {
    border-color: #b9e2ca;
    background: #effaf4;
    color: #188257;
}
.employee-mobile-request-icon.is-rejected {
    border-color: #f0c3c0;
    background: #fff3f2;
    color: #c05a53;
}
.employee-mobile-request-list article {
    grid-template-columns: 40px minmax(0, 1fr) auto;
}
.employee-mobile-request-status {
    width: fit-content;
    padding: 4px 8px;
    font-size: 8px;
}
@media (max-width: 420px) {
    .employee-mobile-request-list article {
        grid-template-columns: 36px minmax(0, 1fr) auto;
    }
}
.employee-mobile-request-status {
    order: 0;
}
.employee-mobile-submit-request {
    min-width: 84px;
    justify-self: end;
    padding: 9px 12px;
}
@media (max-width: 420px) {
    .employee-mobile-request-list article {
        grid-template-columns: auto 36px minmax(0, 1fr) auto;
        gap: 8px;
        padding: 12px;
    }
    .employee-mobile-request-icon {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
    .employee-mobile-submit-request {
        min-width: 76px;
        padding: 8px 9px;
    }
}
@media (max-width: 760px) {
    .work-schedule-detail-modal {
        max-height: calc(100vh - 24px);
        padding: 16px;
    }
    .work-schedule-week-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .work-schedule-day-card {
        min-height: 96px;
    }
    .work-schedule-detail-modal .profile-form-actions {
        position: sticky;
        bottom: -16px;
        margin: 8px -16px -16px;
        padding: 12px 16px 16px;
        border-top: 1px solid var(--border);
        background: var(--surface);
    }
    .salary-assignment-form-grid {
        grid-template-columns: 1fr;
    }
}
.employee-mobile-form-label {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    min-height: 15px;
}
.employee-mobile-form-label b {
    color: #c2554d;
    font-size: 12px;
    line-height: 1;
}
@media (max-width: 620px) {
    .salary-structure-detail-modal {
        max-height: calc(100vh - 24px);
        padding: 16px;
    }
    .salary-detail-row {
        align-items: flex-start;
    }
    .salary-detail-row > strong {
        flex: 0 0 auto;
        text-align: right;
    }
    .salary-detail-totals {
        grid-template-columns: 1fr;
    }
    .salary-structure-detail-modal .profile-form-actions {
        position: sticky;
        bottom: -16px;
        margin: 8px -16px -16px;
        padding: 12px 16px 16px;
        border-top: 1px solid var(--border);
        background: var(--surface);
    }
}
.employee-mobile-request-copy,
.employee-mobile-request-form label,
.employee-mobile-request-form input,
.employee-mobile-request-form select,
.employee-mobile-request-form textarea {
    min-width: 0;
}
@media (max-width: 420px) {
    .employee-mobile-page-heading {
        margin-bottom: 14px;
    }
    .employee-mobile-page-heading h1 {
        font-size: 24px;
    }
    .employee-mobile-page-heading p:last-child {
        font-size: 11px;
    }
    .employee-mobile-request-tabs {
        gap: 3px;
        padding: 3px;
    }
    .employee-mobile-request-tabs button {
        min-width: 0;
        padding: 8px 2px;
        font-size: 9px;
    }
    .employee-mobile-new-request {
        gap: 8px;
        padding: 10px;
    }
    .employee-mobile-new-request > span:first-child {
        width: 28px;
        height: 28px;
        flex: 0 0 28px;
    }
    .employee-mobile-new-request strong {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .employee-mobile-new-request small {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .employee-mobile-request-list article {
        grid-template-columns: 36px minmax(0, 1fr) auto;
        grid-template-areas: 'icon copy action';
        align-items: start;
        gap: 5px 8px;
        padding: 11px;
    }
    .employee-mobile-request-icon {
        grid-area: icon;
    }
    .employee-mobile-request-copy {
        grid-area: copy;
    }
    .employee-mobile-request-copy strong {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .employee-mobile-request-copy small {
        white-space: normal;
        overflow-wrap: anywhere;
    }
    .employee-mobile-request-status,
    .employee-mobile-submit-request {
        grid-area: action;
        align-self: start;
        justify-self: end;
    }
    .employee-mobile-submit-request {
        justify-self: end;
        min-width: 0;
        padding: 7px 10px;
    }
    .employee-mobile-request-sheet {
        width: 100%;
        max-height: 94dvh;
        padding-right: 13px;
        padding-left: 13px;
        border-radius: 20px 20px 0 0;
    }
    .employee-mobile-form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .employee-mobile-request-form input,
    .employee-mobile-request-form select,
    .employee-mobile-request-form textarea {
        max-width: 100%;
    }
}
.employee-mobile-bottom-nav {
    grid-template-columns: repeat(6, 1fr);
}
.employee-mobile-history-list {
    display: grid;
    gap: 10px;
}
.employee-mobile-history-card {
    padding: 14px;
    border: 1px solid #e1ece6;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(30, 70, 51, 0.04);
}
.employee-mobile-history-date {
    display: grid;
    gap: 3px;
    min-width: 0;
}
.employee-mobile-history-date span,
.employee-mobile-history-times small {
    color: #91a19a;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.employee-mobile-history-date strong {
    overflow: hidden;
    color: #29483b;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.employee-mobile-history-status {
    display: inline-flex;
    margin-top: 8px;
    padding: 4px 8px;
    border-radius: 99px;
    background: #eef3f0;
    color: #718279;
    font-size: 9px;
    font-weight: 800;
}
.employee-mobile-history-status.is-present,
.employee-mobile-history-status.is-late {
    background: #e4f6eb;
    color: #24724f;
}
.employee-mobile-history-status.is-absent {
    background: #fde9e7;
    color: #bd5048;
}
.employee-mobile-history-times {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 13px;
    padding-top: 11px;
    border-top: 1px solid #edf3f0;
}
.employee-mobile-history-times div {
    display: grid;
    gap: 4px;
}
.employee-mobile-history-times strong {
    color: #29483b;
    font-size: 12px;
}
.employee-mobile-history-metrics {
    margin-top: 8px;
    padding-top: 8px;
}
.employee-mobile-history-locations {
    display: grid;
    gap: 8px;
    margin-top: 11px;
    padding: 10px 11px;
    border: 1px solid #e6f0ea;
    border-radius: 13px;
    background: #f7fbf8;
}
.employee-mobile-history-locations div {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.employee-mobile-history-locations div > span {
    flex: none;
    font-size: 11px;
    line-height: 16px;
}
.employee-mobile-history-locations p {
    display: grid;
    gap: 3px;
    min-width: 0;
    margin: 0;
}
.employee-mobile-history-locations small {
    color: #91a19a;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.employee-mobile-history-locations strong {
    color: #33564a;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.45;
    word-break: break-word;
}
.employee-mobile-bottom-nav {
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
}
.employee-mobile-nav-item {
    min-width: 0;
    min-height: 50px;
    gap: 2px;
    border-radius: 13px;
    font-size: 8px;
}
.employee-mobile-nav-icon {
    height: 20px;
}
.employee-mobile-nav-icon svg {
    width: 19px;
    height: 19px;
}
.employee-mobile-nav-label {
    overflow: hidden;
    max-width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.employee-mobile-nav-item.is-active {
    background: #edf8f2;
}
.employee-mobile-nav-attendance {
    height: 66px;
    min-height: 66px;
    margin-top: -8px;
    font-size: 8px;
}
.employee-mobile-nav-attendance .employee-mobile-nav-icon {
    width: 48px;
    height: 48px;
    border-width: 3px;
}
.employee-mobile-nav-attendance .employee-mobile-nav-icon svg {
    width: 21px;
    height: 21px;
}
.employee-mobile-nav-attendance .employee-mobile-nav-label {
    transform: translateY(-1px);
}
.employee-mobile-attendance-action.is-history {
    border-color: #dce9e3;
    background: #f7fbf9;
}
.employee-mobile-attendance-action.is-history .employee-mobile-action-icon {
    background: #e7f1ed;
    color: #507466;
}
.employee-mobile-clock-in-sheet {
    max-height: 92vh;
}
/* Attendance capture (face verification) */
.employee-capture-sheet,
.employee-mobile-clock-in-sheet {
    max-height: 92vh;
}
.employee-capture-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.employee-capture-head h2 {
    margin: 6px 0 0;
    color: #16332a;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.employee-capture-step-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}
.employee-capture-step-badge.is-out {
    background: #eaf0f6;
    color: #2f4a63;
}
.employee-capture-frame {
    position: relative;
    overflow: hidden;
    min-height: 0;
    height: clamp(210px, 44dvh, 340px);
    margin: 0;
    border-radius: 18px;
    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(255, 255, 255, 0.08),
            transparent 60%
        ),
        #0f231c;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.employee-capture-frame video,
.employee-capture-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.employee-capture-frame video {
    transform: scaleX(-1);
}
.employee-capture-frame.is-busy::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.16),
        transparent
    );
    content: '';
    animation: employee-capture-scan 1.6s linear infinite;
}
/* Oval guide: a static mask on the frame instead of a giant animated box-shadow,
   so it never repaints on camera frames, and motion stays reduced-motion safe. */
.employee-capture-oval {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(58%, 220px);
    aspect-ratio: 3 / 4;
    transform: translate(-50%, -50%);
    isolation: isolate;
    border-radius: 50%;
    pointer-events: none;
}
.employee-capture-oval::before {
    position: absolute;
    inset: 0;
    border: 2px dashed rgba(255, 255, 255, 0.55);
    border-radius: inherit;
    content: '';
}
.employee-capture-oval::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: rgba(6, 20, 15, 0.22);
    box-shadow: 0 0 0 9999px rgba(6, 20, 15, 0.22);
    content: '';
}
.employee-capture-frame.is-captured .employee-capture-oval::before {
    border-color: #7cf0b3;
    border-style: solid;
}
.employee-capture-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.75);
    pointer-events: none;
}
.employee-capture-corner.is-tl {
    top: 12px;
    left: 12px;
    border-right: 0;
    border-bottom: 0;
    border-radius: 6px 0 0 0;
}
.employee-capture-corner.is-tr {
    top: 12px;
    right: 12px;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0 6px 0 0;
}
.employee-capture-corner.is-bl {
    bottom: 12px;
    left: 12px;
    border-top: 0;
    border-right: 0;
    border-radius: 0 0 0 6px;
}
.employee-capture-corner.is-br {
    right: 12px;
    bottom: 12px;
    border-top: 0;
    border-left: 0;
    border-radius: 0 0 6px 0;
}
.employee-capture-hud {
    position: absolute;
    right: 10px;
    bottom: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.employee-capture-chip {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(8, 24, 18, 0.62);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    backdrop-filter: blur(6px);
}
.employee-capture-chip i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
}
.employee-capture-chip i.is-live {
    background: #5cf08c;
    animation: employee-clock-pulse 1.6s ease-in-out infinite;
}
.employee-capture-chip i.is-busy {
    background: #ffd166;
    animation: employee-clock-pulse 1s ease-in-out infinite;
}
.employee-capture-chip i.is-locked {
    background: #7cc4ff;
}
.employee-capture-hint {
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(8, 24, 18, 0.58);
    color: #eaf6ef;
    font-size: 10.5px;
    line-height: 1.35;
    backdrop-filter: blur(6px);
}
.employee-capture-toast {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 8px;
    padding: 9px 10px;
    border: 1px solid #f3c9c2;
    border-radius: 12px;
    background: #fff4f2;
    animation: employee-capture-toast-in 0.16s ease-out;
}
.employee-capture-toast-icon {
    display: grid;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: #e0574a;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}
.employee-capture-toast-copy {
    flex: 1;
    color: #8c3a2f;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.4;
}
.employee-capture-toast-close {
    flex: 0 0 auto;
    padding: 0 2px;
    border: 0;
    background: transparent;
    color: #b5736a;
    font-size: 15px;
    line-height: 1;
}
@keyframes employee-capture-toast-in {
    from {
        transform: translateY(-4px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.employee-capture-checks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}
.employee-capture-checks li {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 8px;
    border: 1px solid #e7eeea;
    border-radius: 10px;
    background: #f8fbf9;
    color: #7c8d85;
    font-size: 9.5px;
    font-weight: 650;
    line-height: 1.2;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.employee-capture-checks li.is-ok {
    border-color: color-mix(in srgb, var(--primary) 24%, white);
    background: var(--primary-soft);
    color: var(--primary-dark);
}
.employee-capture-checks li i {
    display: grid;
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: #e9efec;
    color: #7c8d85;
    font-size: 9px;
    font-style: normal;
    font-weight: 800;
}
.employee-capture-checks li.is-ok i {
    background: var(--primary);
    color: #fff;
}
.employee-capture-submit {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    padding: 13px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--primary-dark) 100%
    );
    box-shadow: 0 10px 22px color-mix(in srgb, var(--primary) 28%, transparent);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.employee-capture-submit:disabled {
    cursor: wait;
    box-shadow: none;
    opacity: 0.7;
}
.employee-capture-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: employee-capture-spin 0.8s linear infinite;
}
@keyframes employee-capture-scan {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(100%);
    }
}
@keyframes employee-capture-spin {
    to {
        transform: rotate(360deg);
    }
}
@media (max-width: 699px) {
    .employee-mobile-clock-in-sheet {
        display: flex;
        width: 100%;
        height: 100%;
        max-height: 100dvh;
        flex-direction: column;
        overflow-y: auto;
        border-radius: 0;
    }
    .employee-mobile-clock-in-sheet .employee-capture-frame {
        flex: 1;
        max-height: none;
        aspect-ratio: auto;
        min-height: 210px;
    }
}

/* Face verification sheet: the sheet fills the viewport height and the camera preview
   flexes, so a growing error box would shrink and regrow the oval. Balance both sides. */
.employee-mobile-attendance-sheet-backdrop {
    overscroll-behavior: contain;
}
@media (max-width: 699px) {
    .employee-mobile-attendance-sheet-backdrop {
        align-items: center;
    }
}
.employee-mobile-clock-in-sheet {
    flex-direction: column;
}
.employee-mobile-clock-in-sheet > .employee-capture-frame {
    flex: 0 0 auto;
}
@media (max-width: 699px) {
    .employee-mobile-clock-in-sheet > .employee-capture-frame {
        flex: 1 1 0;
        max-height: none;
        aspect-ratio: auto;
        min-height: 210px;
    }
}

/* Profile: optional fingerprint enrollment. */
.employee-biometric-card {
    position: relative;
    overflow: hidden;
    margin-top: 14px;
    padding: 16px;
    border: 1px solid color-mix(in srgb, var(--primary) 16%, white);
    border-radius: 20px;
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(var(--primary-rgb), 0.1),
            transparent 46%
        ),
        #fff;
    box-shadow: 0 6px 18px rgba(var(--primary-dark-rgb), 0.06);
}
.employee-biometric-head {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: start;
    gap: 11px;
    margin-bottom: 14px;
}
.employee-biometric-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    box-shadow: 0 6px 14px rgba(var(--primary-rgb), 0.26);
    color: #fff;
}
.employee-biometric-mark svg {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}
.employee-biometric-kicker {
    margin: 0;
    color: #8b9b94;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.employee-biometric-head h2 {
    margin: 2px 0 0;
    color: #16332a;
    font-size: 16px;
    letter-spacing: -0.02em;
}
.employee-biometric-sub {
    margin: 5px 0 0;
    color: #71877f;
    font-size: 11px;
    line-height: 1.45;
}
.employee-biometric-state {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #f1f5f3;
    color: #7b8d85;
    font-size: 9.5px;
    font-weight: 800;
    white-space: nowrap;
}
.employee-biometric-state i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.employee-biometric-state.is-on {
    background: color-mix(in srgb, var(--primary) 14%, white);
    color: var(--primary-dark);
}
.employee-biometric-empty {
    margin: 0 0 12px;
    padding: 11px 12px;
    border: 1px dashed #d9e6de;
    border-radius: 12px;
    background: #f8fbf9;
    color: #71877f;
    font-size: 11px;
    line-height: 1.45;
}
.employee-biometric-devices {
    display: grid;
    gap: 8px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}
.employee-biometric-devices li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px 11px;
    border: 1px solid #e3eee8;
    border-radius: 13px;
    background: #fff;
}
.employee-biometric-device-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary-dark);
}
.employee-biometric-device-icon svg {
    width: 17px;
    height: 17px;
}
.employee-biometric-device-copy {
    min-width: 0;
}
.employee-biometric-device-copy strong,
.employee-biometric-device-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.employee-biometric-device-copy strong {
    color: #29483b;
    font-size: 12px;
}
.employee-biometric-device-copy small {
    margin-top: 2px;
    color: #8b9b94;
    font-size: 10px;
}
.employee-biometric-revoke {
    flex: 0 0 auto;
    padding: 6px 11px;
    border: 1px solid #f0c9c3;
    border-radius: 9px;
    background: #fff5f3;
    color: #a8453a;
    font-size: 10px;
    font-weight: 750;
}
.employee-biometric-revoke:disabled {
    opacity: 0.55;
}
.employee-biometric-register {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 8px 18px rgba(var(--primary-rgb), 0.22);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}
.employee-biometric-register svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}
.employee-biometric-register:disabled {
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.6;
}
.employee-biometric-spinner {
    width: 13px;
    height: 13px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: employee-capture-spin 0.8s linear infinite;
}
.employee-biometric-note {
    margin: 8px 0 0;
    color: #8b9b94;
    font-size: 10px;
    line-height: 1.45;
    text-align: center;
}
.employee-biometric-message {
    margin: 10px 0 0;
    padding: 9px 11px;
    border: 1px solid color-mix(in srgb, var(--primary) 22%, white);
    border-radius: 11px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.4;
}
@media (prefers-reduced-motion: reduce) {
    .employee-biometric-spinner {
        animation: none;
    }
}

/* Method picker: only rendered when the employee registered a fingerprint. */
.employee-capture-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 8px;
    padding: 4px;
    border-radius: 12px;
    background: #eef3f0;
}
.employee-capture-method {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 6px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #6d8479;
    font-size: 11px;
    font-weight: 750;
    transition:
        background-color 0.18s ease,
        color 0.18s ease;
}
.employee-capture-method svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
}
.employee-capture-method.is-active {
    background: #fff;
    color: var(--primary-dark);
    box-shadow: 0 2px 6px rgba(var(--primary-dark-rgb), 0.1);
}
.employee-capture-method:focus-visible {
    outline: 3px solid rgba(var(--primary-rgb), 0.22);
    outline-offset: 1px;
}
/* Biometric panel replaces the camera preview; same box so the layout never jumps. */
.employee-biometric-frame {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: clamp(210px, 44dvh, 340px);
    padding: 20px 18px 14px;
    overflow: hidden;
    border-radius: 18px;
    background:
        radial-gradient(
            circle at 50% 34%,
            rgba(var(--primary-rgb), 0.16),
            transparent 58%
        ),
        linear-gradient(168deg, #f5fbf7, #e6f2eb);
    box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb), 0.14);
    text-align: center;
}
.employee-biometric-frame strong {
    margin-top: 14px;
    color: #16332a;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.employee-biometric-sub {
    max-width: 250px;
    margin-top: 2px;
    color: #71877f;
    font-size: 11px;
    line-height: 1.45;
}
.employee-biometric-sensor {
    position: relative;
    display: grid;
    width: 92px;
    height: 92px;
    flex: 0 0 92px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    box-shadow: 0 12px 26px rgba(var(--primary-rgb), 0.3);
    color: #fff;
}
/* A soft halo around the sensor, so the pulse reads as a glow rather than a shape. */
.employee-biometric-sensor::before {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.12);
    content: '';
    pointer-events: none;
}
.employee-biometric-sensor svg {
    position: relative;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
}
/* Concentric ring expands outward while the sensor is waiting for a finger. */
.employee-biometric-ring {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}
.employee-biometric-sensor.is-scanning .employee-biometric-ring {
    animation: employee-biometric-pulse 1.5s ease-out infinite;
}
@keyframes employee-biometric-pulse {
    from {
        transform: scale(1);
        opacity: 0.7;
    }
    to {
        transform: scale(1.18);
        opacity: 0;
    }
}
.employee-biometric-steps {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: auto 0 0;
    padding: 12px 0 0;
    border-top: 1px solid rgba(var(--primary-rgb), 0.12);
    list-style: none;
    counter-reset: biometric-step;
}
.employee-biometric-steps li {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #8b9b94;
    font-size: 9.5px;
    font-weight: 700;
    white-space: nowrap;
}
.employee-biometric-steps li::before {
    display: grid;
    width: 14px;
    height: 14px;
    place-items: center;
    border-radius: 50%;
    background: #dce8e2;
    color: #7b8d85;
    content: counter(biometric-step);
    counter-increment: biometric-step;
    font-size: 8px;
    font-weight: 800;
}
.employee-biometric-steps li + li::after {
    display: none;
}
.employee-biometric-steps li.is-done {
    color: var(--primary-dark);
}
.employee-biometric-steps li.is-done::before {
    background: var(--primary);
    color: transparent;
}
/* Completed steps show a check mark instead of their number. */
.employee-biometric-steps li.is-done::before {
    content: '✓';
    color: #fff;
}
.employee-biometric-steps li.is-active {
    color: #16332a;
    font-weight: 800;
}
.employee-biometric-steps li.is-active::before {
    background: #fff;
    box-shadow: 0 0 0 2px var(--primary);
    color: var(--primary-dark);
}
@media (max-width: 699px) {
    .employee-mobile-clock-in-sheet > .employee-biometric-frame {
        flex: 1 1 0;
        max-height: none;
        min-height: 210px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .employee-biometric-sensor.is-scanning .employee-biometric-ring {
        animation: none;
    }
}

/* Stable retry feedback: reserved row below the camera, no layout shift. */
/* Fixed slot: 54px holds the steady state; an error card grows the slot downward
   while the camera preview gives the space back, so the oval keeps its size. */
.employee-capture-notice {
    display: block;
    min-height: 54px;
    margin-top: 8px;
}
/* Clear retry feedback: title, plain-language guidance, and the server code for HR.
   The box only grows into space the camera gives back, so the oval never resizes. */
.employee-capture-error {
    display: flex;
    height: 54px;
    padding: 5px 9px;
    border: 1px solid #f0c2bb;
    border-radius: 12px;
    background: linear-gradient(180deg, #fff6f4, #fdece9);
    box-shadow: 0 4px 12px rgba(224, 87, 74, 0.1);
    gap: 9px;
    animation: employee-capture-error-in 0.18s ease-out;
}
.employee-capture-error.is-empty {
    height: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
    box-shadow: none;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
}
.employee-capture-error-icon {
    display: grid;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    align-self: center;
    place-items: center;
    border-radius: 50%;
    background: #e0574a;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}
.employee-capture-error-body {
    min-width: 0;
    flex: 1;
}
.employee-capture-error-title {
    display: block;
    overflow: hidden;
    color: #7c2b21;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: -0.01em;
    line-height: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.employee-capture-error-hint {
    display: block;
    overflow: hidden;
    color: #9c4a3e;
    font-size: 11px;
    font-weight: 600;
    line-height: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.employee-capture-error-code {
    display: inline-flex;
    height: 15px;
    align-items: center;
    gap: 4px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(124, 43, 33, 0.08);
    color: #7c2b21;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.employee-capture-error-code b {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 9px;
    letter-spacing: 0;
    text-transform: none;
}
.employee-capture-error-close {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(124, 43, 33, 0.08);
    color: #a4564a;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}
@keyframes employee-capture-error-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (prefers-reduced-motion: reduce) {
    .employee-capture-error,
    .employee-capture-frame.is-busy::after,
    .employee-capture-spinner,
    .employee-capture-chip i.is-live,
    .employee-capture-chip i.is-busy {
        animation: none;
    }
}
/* Employee home refresh */
.employee-mobile-content {
    padding-top: 14px;
}
.employee-mobile-hero {
    margin: -14px -18px 14px;
    padding: 20px 18px 22px;
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(76, 190, 137, 0.36),
            transparent 38%
        ),
        linear-gradient(145deg, #123f31, #08694a);
    color: #fff;
}
.employee-mobile-hero-topline,
.employee-mobile-hero-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.employee-mobile-hero-topline {
    margin-bottom: 24px;
    color: #a8d9c2;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.employee-mobile-hero-date {
    color: #d5eee1;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}
.employee-mobile-hero-greeting {
    margin: 0 0 4px;
    color: #b7ddca;
    font-size: 11px;
}
.employee-mobile-hero h1 {
    margin: 0;
    color: #fff;
    font-size: 29px;
    letter-spacing: -0.045em;
}
.employee-mobile-hero h1 span {
    font-size: 21px;
}
.employee-mobile-hero-meta {
    margin: 7px 0 0;
    overflow: hidden;
    color: #b8d9ca;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.employee-mobile-hero-avatar {
    display: grid;
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    place-items: center;
    border: 3px solid rgba(255, 255, 255, 0.28);
    border-radius: 19px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}
.employee-mobile-attendance-card {
    position: relative;
    overflow: hidden;
    margin-top: 0;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    background: linear-gradient(145deg, #176b4b, #0b4e38);
    box-shadow: 0 12px 24px rgba(14, 91, 62, 0.18);
}
.employee-mobile-attendance-card::after {
    position: absolute;
    right: -28px;
    bottom: -42px;
    width: 130px;
    height: 130px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    box-shadow:
        0 0 0 18px rgba(255, 255, 255, 0.025),
        0 0 0 36px rgba(255, 255, 255, 0.025);
    content: '';
}
.employee-mobile-attendance-card-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.employee-mobile-card-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: #b7d9c9;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}
.employee-mobile-attendance-card h2 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    letter-spacing: -0.025em;
}
.employee-mobile-attendance-pulse {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 99px;
    color: #d9f3e5;
    font-size: 9px;
    font-weight: 800;
}
.employee-mobile-attendance-pulse i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6fe6a8;
    box-shadow: 0 0 0 3px rgba(111, 230, 168, 0.16);
}
.employee-mobile-attendance-card.is-ready .employee-mobile-attendance-pulse i {
    background: #ffd078;
    box-shadow: 0 0 0 3px rgba(255, 208, 120, 0.16);
}
.employee-mobile-attendance-card.is-complete
    .employee-mobile-attendance-pulse
    i {
    background: #b7e5ff;
    box-shadow: 0 0 0 3px rgba(183, 229, 255, 0.16);
}
.employee-mobile-attendance-summary {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 0.8fr 0.8fr 1.4fr;
    gap: 8px;
    margin: 20px 0 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.employee-mobile-attendance-summary div {
    min-width: 0;
}
.employee-mobile-attendance-summary span {
    display: block;
    margin-bottom: 5px;
    color: #a9d4c0;
    font-size: 9px;
}
.employee-mobile-attendance-summary strong {
    display: block;
    overflow: hidden;
    color: #fff;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.employee-mobile-attendance-hint {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 11px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.1);
    color: #d1ebde;
    font-size: 10px;
    line-height: 1.35;
}
.employee-mobile-attendance-hint span:last-child {
    flex: 0 0 auto;
    color: #fff;
    font-size: 17px;
}
.employee-mobile-section-heading-spaced {
    margin-top: 27px;
}
.employee-mobile-overview-card {
    position: relative;
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    column-gap: 10px;
    row-gap: 9px;
    overflow: hidden;
    padding: 15px !important;
    border: 1px solid #e1ece6 !important;
    box-shadow: 0 5px 14px rgba(30, 70, 51, 0.04);
}
.employee-mobile-overview-card::after {
    position: absolute;
    right: -21px;
    bottom: -28px;
    width: 70px;
    height: 70px;
    border: 1px solid #edf5f0;
    border-radius: 50%;
    content: '';
}
.employee-mobile-overview-card .employee-mobile-overview-icon {
    align-self: start;
    width: 34px;
    height: 34px;
}
.employee-mobile-overview-card > div {
    min-width: 0;
}
.employee-mobile-overview-card strong {
    display: block;
    font-size: 22px;
}
.employee-mobile-overview-card > div > span {
    display: block;
    margin-top: 2px;
    color: #73877c;
    font-size: 10px;
}
.employee-mobile-overview-card a {
    grid-column: 1 / -1;
    color: #17714d;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}
.employee-mobile-overview-card a span {
    margin-left: 4px;
    font-size: 13px;
}
.employee-mobile-overview-card.is-pending .employee-mobile-overview-icon {
    background: #fff1dc;
    color: #bd7624;
}
.employee-mobile-section-link {
    color: var(--primary);
    font-size: 11px;
    font-weight: 750;
    text-decoration: none;
}
.employee-mobile-balance-list-redesign article {
    padding: 13px 14px 12px;
}
.employee-mobile-balance-heading {
    display: flex;
    align-items: center;
    gap: 9px;
}
.employee-mobile-balance-heading > div {
    min-width: 0;
    flex: 1;
}
.employee-mobile-balance-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #3eb77d;
    box-shadow: 0 0 0 4px #e5f6ec;
}
.employee-mobile-balance-heading strong {
    font-size: 12px;
}
.employee-mobile-balance-heading span {
    margin-top: 3px;
}
.employee-mobile-balance-heading b {
    color: #176b4b;
    font-size: 12px;
    white-space: nowrap;
}
.employee-mobile-balance-progress {
    height: 5px;
    margin: 11px 0 0 17px;
    overflow: hidden;
    border-radius: 99px;
    background: #edf3ef;
}
.employee-mobile-balance-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #20a66c, #75d19e);
}
.employee-mobile-balance-item {
    position: relative;
    display: block;
    width: 100%;
    padding: 13px 14px 12px;
    border: 0;
    border-bottom: 1px solid #edf3f0;
    background: #fff;
    color: inherit;
    text-align: left;
}
.employee-mobile-balance-item:last-child {
    border-bottom: 0;
}
.employee-mobile-balance-item.is-clickable {
    cursor: pointer;
}
.employee-mobile-balance-item.is-clickable:active {
    background: #f4faf7;
}
.employee-mobile-balance-chevron {
    position: absolute;
    top: 50%;
    right: 13px;
    display: block;
    margin: 0 !important;
    color: #9aaca3 !important;
    font-size: 20px !important;
    transform: translateY(-50%);
}
.employee-mobile-detail-backdrop {
    position: fixed;
    z-index: 30;
    inset: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0;
    background: #f7faf8;
}
.employee-mobile-detail-sheet {
    width: min(100%, 520px);
    height: 100%;
    max-height: none;
    overflow: auto;
    padding: 20px;
    background: #fff;
}
.employee-mobile-detail-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
}
.employee-mobile-detail-heading > div > span {
    color: #82968d;
    font-size: 10px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.employee-mobile-detail-heading h2 {
    margin: 5px 0 3px;
    color: #234638;
    font-size: 18px;
}
.employee-mobile-detail-heading small {
    color: #82968d;
    font-size: 11px;
}
.employee-mobile-detail-close {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: #eef6f1;
    color: #39745c;
    font-size: 20px;
    line-height: 1;
}
.employee-mobile-detail-balance {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin: 20px 0 18px;
    padding: 14px;
    border-radius: 14px;
    background: #e8f7ee;
}
.employee-mobile-detail-balance span {
    color: #527467;
    font-size: 11px;
}
.employee-mobile-detail-balance strong {
    color: #08764b;
    font-size: 18px;
}
.employee-mobile-history-list h3 {
    margin: 0 0 8px;
    color: #274b3c;
    font-size: 13px;
}
.employee-mobile-history-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #edf3f0;
}
.employee-mobile-history-row:last-child {
    border-bottom: 0;
}
.employee-mobile-history-row strong,
.employee-mobile-history-row b {
    display: block;
    color: #29483b;
    font-size: 11px;
}
.employee-mobile-history-row b {
    color: #c0614d;
    text-align: right;
}
.employee-mobile-history-row small {
    display: block;
    margin-top: 4px;
    color: #8b9b94;
    font-size: 10px;
}
.employee-mobile-history-empty {
    margin: 0;
    color: #8b9b94;
    font-size: 11px;
}
.employee-mobile-detail-add {
    width: 100%;
    margin-bottom: 18px;
    padding: 11px 13px;
    border: 1px solid #bfe5ce;
    border-radius: 11px;
    background: #f0faf4;
    color: #08764b;
    font-size: 11px;
    font-weight: 800;
    text-align: left;
}
.employee-mobile-history-form {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
    padding: 13px;
    border-radius: 13px;
    background: #f5faf7;
}
.employee-mobile-history-form h3 {
    margin: 0 0 2px;
    color: #29483b;
    font-size: 13px;
}
.employee-mobile-history-form label {
    display: grid;
    gap: 4px;
    color: #527467;
    font-size: 10px;
    font-weight: 700;
}
.employee-mobile-history-form input {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #dcebe2;
    border-radius: 8px;
    background: #fff;
    color: #29483b;
    font: inherit;
}
.employee-mobile-history-form > div {
    display: flex;
    gap: 8px;
}
.employee-mobile-history-form button {
    padding: 9px 12px;
    border: 0;
    border-radius: 8px;
    background: #08764b;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}
.employee-mobile-history-form button[type='button'] {
    background: #e7f0eb;
    color: #527467;
}
.event-history-modal {
    max-width: 900px;
}
.event-history-table-wrap {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e6eee9;
}
.event-history-table-wrap h3 {
    margin: 0 0 10px;
    color: #29483b;
    font-size: 14px;
}
.event-history-table-wrap > p {
    color: #8b9b94;
    font-size: 12px;
}
.event-history-list {
    max-height: 320px;
    overflow: auto;
    border: 1px solid #e4eee9;
    border-radius: 12px;
}
.event-history-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border-bottom: 1px solid #edf3f0;
}
.event-history-row:last-child {
    border-bottom: 0;
}
.event-history-row strong,
.event-history-row b {
    display: block;
    color: #29483b;
    font-size: 12px;
}
.event-history-row b {
    color: #c0614d;
    text-align: right;
}
.event-history-row small {
    display: block;
    margin-top: 4px;
    color: #8b9b94;
    font-size: 11px;
}
.event-history-row div:last-child small {
    text-align: right;
}
.event-history-form-card {
    margin-top: 18px;
    padding: 22px;
}
.event-history-form-card .profile-form {
    max-width: 900px;
}
.employee-mobile-payslip-list-redesign {
    box-shadow: 0 5px 14px rgba(30, 70, 51, 0.04);
}
.employee-mobile-payslip-list-redesign .employee-mobile-payslip-row {
    text-decoration: none;
}
.employee-mobile-payslip-icon.is-latest {
    background: #e2f6e9;
    color: #178357;
}
.employee-mobile-payslip-icon.is-older {
    background: #f1f4f2;
    color: #71877b;
}
.employee-mobile-announcement-redesign {
    position: relative;
    overflow: hidden;
    margin-top: 25px;
    background: linear-gradient(135deg, #e7f8ee, #f5fbf7);
    box-shadow: 0 5px 14px rgba(30, 70, 51, 0.04);
}
.employee-mobile-announcement-redesign::after {
    position: absolute;
    right: -28px;
    bottom: -34px;
    width: 100px;
    height: 100px;
    border: 1px solid #cfe8d9;
    border-radius: 50%;
    content: '';
}
.employee-mobile-announcement-label {
    margin-bottom: 10px;
    color: #21744f;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.employee-mobile-announcement-label span {
    margin-right: 5px;
    font-size: 13px;
}
.employee-mobile-announcement-redesign small {
    display: block;
    margin-top: 10px;
    color: #7a9889;
    font-size: 10px;
}
.employee-mobile-attendance-command {
    padding: 19px;
}
.employee-mobile-attendance-focus {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 22px 0 20px;
}
.employee-mobile-attendance-orbit {
    display: grid;
    width: 88px;
    height: 88px;
    flex: 0 0 auto;
    place-content: center;
    justify-items: center;
    border: 1px solid rgba(165, 239, 199, 0.45);
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(125, 230, 171, 0.25) 0 52%,
            transparent 53%
        ),
        conic-gradient(
            #9eeac1 var(--progress, 50%),
            rgba(255, 255, 255, 0.12) 0
        );
    box-shadow:
        0 0 0 8px rgba(255, 255, 255, 0.04),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.employee-mobile-attendance-orbit span {
    color: #bdf4d4;
    font-size: 12px;
    line-height: 1;
}
.employee-mobile-attendance-orbit b {
    margin-top: 2px;
    color: #fff;
    font-size: 20px;
    letter-spacing: -0.05em;
}
.employee-mobile-attendance-orbit small {
    color: #acd9c1;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.employee-mobile-attendance-focus-copy {
    display: grid;
    min-width: 0;
    gap: 5px;
}
.employee-mobile-attendance-focus-label {
    overflow: hidden;
    color: #b7d9c9;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.employee-mobile-attendance-focus-copy strong {
    color: #fff;
    font-size: 16px;
    line-height: 1.15;
}
.employee-mobile-attendance-focus-copy > span:last-child {
    color: #c2e0d0;
    font-size: 10px;
    line-height: 1.4;
}
.employee-mobile-attendance-timeline {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 0 0 15px;
}
.employee-mobile-attendance-timeline::before {
    position: absolute;
    top: 5px;
    right: 18px;
    left: 18px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    content: '';
}
.employee-mobile-attendance-timeline div {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 7px;
}
.employee-mobile-attendance-timeline i {
    z-index: 1;
    width: 11px;
    height: 11px;
    grid-row: span 2;
    border: 3px solid #176b4b;
    border-radius: 50%;
    background: #6fe6a8;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28);
}
.employee-mobile-attendance-timeline div:not(.is-done) i {
    background: #719489;
}
.employee-mobile-attendance-timeline div.is-next i {
    background: #ffd078;
    box-shadow: 0 0 0 4px rgba(255, 208, 120, 0.15);
}
.employee-mobile-attendance-timeline span {
    color: #a9d4c0;
    font-size: 9px;
}
.employee-mobile-attendance-timeline b {
    color: #fff;
    font-size: 12px;
}
.employee-mobile-attendance-cta {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    align-items: center;
    gap: 8px;
    padding: 12px 13px;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: #176b4b;
    font-size: 11px;
    font-weight: 800;
    text-align: left;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}
.employee-mobile-attendance-cta span {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 7px;
    background: #e5f6ec;
    font-size: 15px;
}
.employee-mobile-attendance-cta b {
    margin-left: auto;
    font-size: 17px;
}
.employee-mobile-attendance-card.is-ready .employee-mobile-attendance-orbit {
    --progress: 8%;
}
.employee-mobile-attendance-card.is-active .employee-mobile-attendance-orbit {
    --progress: 52%;
}
.employee-mobile-attendance-card.is-complete .employee-mobile-attendance-orbit {
    --progress: 100%;
}
.employee-mobile-attendance-total {
    display: grid;
    width: 106px;
    height: 106px;
    flex: 0 0 auto;
    align-content: center;
    justify-items: center;
    border: 1px solid rgba(165, 239, 199, 0.4);
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(125, 230, 171, 0.24) 0 63%,
        transparent 64%
    );
    box-shadow:
        0 0 0 8px rgba(255, 255, 255, 0.04),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.employee-mobile-attendance-total span {
    color: #b7d9c9;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.employee-mobile-attendance-total strong {
    margin-top: 3px;
    color: #fff;
    font-size: 25px;
    letter-spacing: -0.06em;
}
.employee-mobile-attendance-total small {
    margin-top: 2px;
    color: #acd9c1;
    font-size: 9px;
}
.employee-mobile-informative-empty {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 16px 14px;
}
.employee-mobile-informative-empty > span {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 11px;
    background: #e8f5ef;
    color: #078557;
    font-size: 18px;
}
.employee-mobile-informative-empty div {
    display: grid;
    gap: 4px;
}
.employee-mobile-informative-empty strong {
    color: #29483b;
    font-size: 12px;
}
.employee-mobile-informative-empty small {
    color: #8b9b94;
    font-size: 10px;
}
.employee-mobile-section-heading-spaced h2,
.employee-mobile-section-heading > div > h2 {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
}
@media (max-width: 360px) {
    .employee-mobile-attendance-focus {
        gap: 10px;
    }
    .employee-mobile-attendance-total {
        width: 92px;
        height: 92px;
    }
    .employee-mobile-attendance-total strong {
        font-size: 22px;
    }
    .employee-mobile-attendance-focus-copy strong {
        font-size: 14px;
    }
}

/* Compact mobile dashboard reference layout */
.employee-mobile-shell {
    background: #f5f7f6;
}
.employee-mobile-page {
    padding-bottom: 78px;
    background: #f5f7f6;
}
.employee-mobile-header {
    padding: 10px 12px 8px;
}
.employee-mobile-brand img {
    width: 78px;
}
.employee-mobile-avatar {
    width: 28px;
    height: 28px;
    font-size: 9px;
}
.employee-mobile-content {
    padding: 0 6px 16px;
}
.employee-mobile-hero {
    margin: 0 0 11px;
    padding: 12px 11px 13px;
    border-radius: 0;
}
.employee-mobile-hero-topline {
    margin-bottom: 15px;
    font-size: 8px;
}
.employee-mobile-hero-date {
    font-size: 8px;
}
.employee-mobile-hero-greeting {
    margin-bottom: 3px;
    font-size: 8px;
}
.employee-mobile-hero h1 {
    font-size: 19px;
}
.employee-mobile-hero h1 span {
    font-size: 15px;
}
.employee-mobile-hero-meta {
    margin-top: 4px;
    font-size: 8px;
}
.employee-mobile-hero-avatar {
    width: 30px;
    height: 30px;
    border-width: 1px;
    border-radius: 9px;
    font-size: 9px;
}
.employee-mobile-attendance-command {
    margin: 0 2px;
    padding: 11px;
    border-radius: 14px;
    box-shadow: 0 6px 12px rgba(14, 91, 62, 0.16);
}
.employee-mobile-card-eyebrow {
    margin-bottom: 4px;
    font-size: 7px;
}
.employee-mobile-attendance-card h2 {
    font-size: 11px;
    text-transform: uppercase;
}
.employee-mobile-attendance-pulse {
    padding: 3px 6px;
    font-size: 7px;
}
.employee-mobile-attendance-pulse i {
    width: 5px;
    height: 5px;
}
.employee-mobile-attendance-focus {
    margin: 13px 0 12px;
}
.employee-mobile-attendance-focus-copy {
    gap: 3px;
}
.employee-mobile-attendance-focus-copy strong {
    font-size: 12px;
}
.employee-mobile-attendance-focus-copy > span:last-child {
    font-size: 7px;
}
.employee-mobile-attendance-summary {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 5px;
    margin: 0 0 9px;
    padding-top: 9px;
}
.employee-mobile-attendance-summary span {
    margin-bottom: 3px;
    font-size: 7px;
}
.employee-mobile-attendance-summary strong {
    font-size: 9px;
}
.employee-mobile-attendance-hint {
    padding: 7px 8px;
    font-size: 7px;
}
.employee-mobile-attendance-hint span:last-child {
    font-size: 12px;
}
.employee-mobile-attendance-timeline {
    margin-bottom: 10px;
}
.employee-mobile-attendance-cta {
    padding: 8px 9px;
    font-size: 8px;
}
.employee-mobile-attendance-cta span {
    width: 17px;
    height: 17px;
    font-size: 11px;
}
.employee-mobile-section-heading {
    margin: 14px 5px 7px;
}
.employee-mobile-section-heading-spaced {
    margin-top: 14px;
}
.employee-mobile-section-heading > div > h2,
.employee-mobile-section-heading-spaced h2 {
    font-size: 8px;
    letter-spacing: 0.06em;
}
.employee-mobile-section-link,
.employee-mobile-section-count {
    font-size: 8px;
}
.employee-mobile-overview-grid {
    gap: 7px;
}
.employee-mobile-overview-card {
    gap: 4px 7px;
    padding: 10px !important;
    border-radius: 10px !important;
    box-shadow: 0 3px 9px rgba(30, 70, 51, 0.05);
}
.employee-mobile-overview-card .employee-mobile-overview-icon {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    font-size: 11px;
}
.employee-mobile-overview-card strong {
    font-size: 14px;
}
.employee-mobile-overview-card > div > span {
    font-size: 7px;
}
.employee-mobile-overview-card a {
    font-size: 7px;
}
.employee-mobile-overview-card a span {
    font-size: 10px;
}
.employee-mobile-balance-list-redesign,
.employee-mobile-payslip-list-redesign {
    border-radius: 10px;
    box-shadow: 0 3px 9px rgba(30, 70, 51, 0.04);
}
.employee-mobile-balance-list-redesign article {
    padding: 10px;
}
.employee-mobile-balance-list-redesign .employee-mobile-balance-item {
    padding: 10px;
}
.employee-mobile-balance-heading {
    gap: 7px;
}
.employee-mobile-balance-dot {
    width: 6px;
    height: 6px;
    box-shadow: 0 0 0 3px #e5f6ec;
}
.employee-mobile-balance-heading strong {
    font-size: 8px;
}
.employee-mobile-balance-heading span {
    font-size: 7px;
}
.employee-mobile-balance-heading b {
    font-size: 8px;
}
.employee-mobile-balance-progress {
    height: 3px;
    margin: 8px 0 0 13px;
}
.employee-mobile-informative-empty {
    padding: 10px;
    gap: 8px;
}
.employee-mobile-informative-empty > span {
    width: 23px;
    height: 23px;
    border-radius: 6px;
    font-size: 12px;
}
.employee-mobile-informative-empty strong {
    font-size: 8px;
}
.employee-mobile-informative-empty small {
    font-size: 7px;
}
.employee-mobile-payslip-row {
    gap: 7px;
    padding: 10px;
}
.employee-mobile-payslip-icon {
    width: 23px;
    height: 23px;
    border-radius: 6px;
    font-size: 12px;
}
.employee-mobile-payslip-list-redesign strong {
    font-size: 8px;
}
.employee-mobile-payslip-list-redesign small {
    font-size: 7px;
}
.employee-mobile-payslip-list-redesign b {
    font-size: 8px;
}
.employee-mobile-payslip-row > span:last-child {
    font-size: 14px;
}
.employee-mobile-overview-icon svg,
.employee-mobile-informative-empty > span svg,
.employee-mobile-payslip-icon svg {
    width: 13px;
    height: 13px;
}
.employee-mobile-overview-card.is-pending .employee-mobile-overview-icon {
    background: #fff1dc;
    color: #bd7624;
}
.employee-mobile-overview-card.is-leave .employee-mobile-overview-icon {
    background: #e8f5ef;
    color: #078557;
}
.employee-mobile-informative-empty > span {
    color: #67ae4d;
}
.employee-mobile-informative-empty > span svg {
    width: 15px;
    height: 15px;
}
.employee-mobile-payslip-icon svg {
    width: 14px;
    height: 14px;
}
.employee-mobile-attendance-pulse i.is-check {
    display: grid;
    width: 14px;
    height: 14px;
    place-items: center;
    border: 0;
    background: rgba(211, 248, 226, 0.25);
    color: #d9f8e5;
    font-size: 9px;
    box-shadow: none;
}
.employee-mobile-bottom-nav {
    bottom: 5px;
    width: calc(100% - 10px);
    height: 51px;
    padding: 4px 5px calc(4px + env(safe-area-inset-bottom));
    border-radius: 16px;
}
.employee-mobile-nav-item {
    min-height: 40px;
    font-size: 7px;
}
.employee-mobile-nav-icon {
    height: 16px;
}
.employee-mobile-nav-icon svg {
    width: 15px;
    height: 15px;
}
.employee-mobile-nav-attendance {
    min-height: 40px;
}
.employee-mobile-nav-attendance .employee-mobile-nav-icon {
    top: -15px;
    width: 37px;
    height: 37px;
    border-width: 3px;
}
.employee-mobile-nav-attendance .employee-mobile-nav-icon svg {
    width: 17px;
    height: 17px;
}
.employee-mobile-announcement-redesign {
    margin-top: 14px;
    padding: 11px;
    border-radius: 10px;
}
.employee-mobile-announcement-label {
    margin-bottom: 6px;
    font-size: 7px;
}
.employee-mobile-announcement-redesign h2 {
    margin-bottom: 4px;
    font-size: 10px;
}
.employee-mobile-announcement-redesign p {
    font-size: 8px;
}
.employee-mobile-detail-sheet {
    padding: 14px;
    border-radius: 16px 16px 10px 10px;
}
.employee-mobile-detail-heading h2 {
    font-size: 14px;
}
.employee-mobile-detail-heading small,
.employee-mobile-detail-balance span,
.employee-mobile-history-row small {
    font-size: 8px;
}
.employee-mobile-detail-balance {
    margin: 13px 0 12px;
    padding: 10px;
    border-radius: 10px;
}
.employee-mobile-detail-balance strong {
    font-size: 14px;
}
.employee-mobile-history-list h3,
.employee-mobile-history-row strong,
.employee-mobile-history-row b {
    font-size: 9px;
}
.employee-mobile-history-empty {
    font-size: 9px;
}
.employee-mobile-detail-backdrop {
    background: linear-gradient(180deg, #f1f8f4 0%, #fbfdfc 42%, #f6faf8 100%);
}
.employee-mobile-detail-sheet {
    position: relative;
    width: min(100%, 540px);
    padding: 28px 22px calc(30px + env(safe-area-inset-bottom));
    background: transparent;
    box-shadow: none;
}
.employee-mobile-detail-heading {
    align-items: center;
    padding: 8px 2px 24px;
}
.employee-mobile-detail-heading > div > span {
    color: #719487;
    font-size: 10px;
    letter-spacing: 0.2em;
}
.employee-mobile-detail-heading h2 {
    margin: 8px 0 6px;
    color: #173f30;
    font-size: 24px;
    letter-spacing: -0.04em;
}
.employee-mobile-detail-heading small {
    color: #78968a;
    font-size: 12px;
}
.employee-mobile-detail-close {
    width: 42px;
    height: 42px;
    background: #e4f1ea;
    color: #287157;
    font-size: 26px;
    box-shadow: 0 5px 14px rgba(37, 103, 76, 0.08);
}
.employee-mobile-detail-balance {
    position: relative;
    overflow: hidden;
    align-items: center;
    margin: 0 0 16px;
    padding: 20px;
    border: 1px solid #cfeadb;
    border-radius: 20px;
    background: linear-gradient(135deg, #e4f7eb 0%, #d2f0df 100%);
    box-shadow: 0 10px 24px rgba(32, 112, 77, 0.08);
}
.employee-mobile-detail-balance::after {
    position: absolute;
    right: -28px;
    bottom: -42px;
    width: 130px;
    height: 130px;
    border: 1px solid rgba(30, 132, 86, 0.12);
    border-radius: 50%;
    content: '';
}
.employee-mobile-detail-balance span {
    position: relative;
    z-index: 1;
    color: #467866;
    font-size: 12px;
}
.employee-mobile-detail-balance strong {
    position: relative;
    z-index: 1;
    color: #08764b;
    font-size: 22px;
    letter-spacing: -0.04em;
}
.employee-mobile-bottom-nav {
    bottom: 14px;
    width: calc(100% - 24px);
    height: 64px;
    padding: 6px 7px calc(6px + env(safe-area-inset-bottom));
    border: 1px solid #dfeae4;
    border-radius: 21px;
    box-shadow: 0 10px 28px rgba(23, 61, 44, 0.16);
}
.employee-mobile-detail-add {
    margin-bottom: 28px;
    padding: 15px 16px;
    border-color: #a8dfbf;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 7px 18px rgba(30, 100, 70, 0.06);
    font-size: 12px;
}
.employee-mobile-history-form {
    margin-bottom: 28px;
    padding: 16px;
    border: 1px solid #dcece3;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 7px 18px rgba(30, 100, 70, 0.05);
}
.employee-mobile-history-form h3 {
    font-size: 14px;
}
.employee-mobile-history-form input {
    padding: 11px;
    border-radius: 10px;
}
.employee-mobile-history-list {
    padding: 0 2px;
}
.employee-mobile-history-list h3 {
    margin-bottom: 12px;
    color: #587c6d;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.employee-mobile-history-row {
    position: relative;
    margin-bottom: 9px;
    padding: 14px;
    border: 1px solid #e1eee7;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 5px 14px rgba(30, 70, 51, 0.04);
}
.employee-mobile-history-row:last-child {
    margin-bottom: 0;
}
.employee-mobile-history-row strong {
    color: #234b3b;
    font-size: 12px;
}
.employee-mobile-history-row b {
    color: #d06451;
    font-size: 12px;
}
.employee-mobile-history-row small {
    font-size: 10px;
}
.employee-mobile-history-delete {
    align-self: center;
    padding: 5px 7px;
    border: 0;
    border-radius: 7px;
    background: #fff0ed;
    color: #c45d4c;
    font-size: 12px;
    line-height: 1;
}
.employee-mobile-delete-confirm {
    position: fixed;
    z-index: 40;
    top: 50%;
    left: 50%;
    width: min(calc(100% - 36px), 360px);
    padding: 24px 20px 20px;
    border: 1px solid #e7eee9;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(22, 59, 43, 0.2);
    text-align: center;
    transform: translate(-50%, -50%);
}
.employee-mobile-delete-confirm-icon {
    display: grid;
    width: 44px;
    height: 44px;
    margin: 0 auto 12px;
    place-items: center;
    border-radius: 14px;
    background: #fff0ed;
    color: #c45d4c;
    font-size: 18px;
}
.employee-mobile-delete-confirm h2 {
    margin: 0;
    color: #244b3b;
    font-size: 16px;
}
.employee-mobile-delete-confirm p {
    margin: 8px 0 20px;
    color: #82958c;
    font-size: 11px;
    line-height: 1.5;
}
.employee-mobile-delete-confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}
.employee-mobile-delete-confirm-actions button {
    padding: 11px 8px;
    border: 0;
    border-radius: 10px;
    background: #edf5f0;
    color: #527467;
    font-size: 11px;
    font-weight: 800;
}
.employee-mobile-delete-confirm-actions button:last-child {
    background: #c45d4c;
    color: #fff;
}
.employee-mobile-history-form {
    gap: 14px;
    margin-bottom: 22px;
    padding: 18px;
    border: 1px solid #d9ebe1;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 20px rgba(30, 100, 70, 0.06);
}
.employee-mobile-history-form h3 {
    margin: 0 0 2px;
    color: #234b3b;
    font-size: 16px;
    letter-spacing: -0.02em;
}
.employee-mobile-history-form label {
    gap: 7px;
    color: #527467;
    font-size: 11px;
    font-weight: 750;
}
.employee-mobile-history-form label > span {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
}
.employee-mobile-history-form label b {
    color: #c45d4c;
    font-size: 13px;
}
.employee-mobile-history-form input,
.employee-mobile-history-form select,
.employee-mobile-history-form textarea {
    width: 100%;
    min-height: 42px;
    padding: 11px 12px;
    border: 1px solid #d6e8de;
    border-radius: 11px;
    outline: 0;
    background: #fff;
    color: #29483b;
    font: inherit;
    font-size: 12px;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}
.employee-mobile-history-form input[type='file'] {
    min-height: 42px;
    padding: 10px 11px;
}
.employee-mobile-history-form textarea {
    min-height: 88px;
    resize: vertical;
    line-height: 1.45;
}
.employee-mobile-history-form input:focus,
.employee-mobile-history-form select:focus,
.employee-mobile-history-form textarea:focus {
    border-color: #70bd92;
    box-shadow: 0 0 0 3px rgba(112, 189, 146, 0.16);
}
.employee-mobile-history-form > div {
    display: flex;
    gap: 9px;
}
.employee-mobile-history-form > div button {
    min-height: 42px;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 11px;
}

/* Employee mobile readability and visual system refresh */
.employee-mobile-shell,
.employee-mobile-page {
    background: #f4f8f6;
}
.employee-mobile-page {
    padding-bottom: 98px;
}
.employee-mobile-header {
    min-height: 64px;
    padding: 14px 18px 12px;
    border-bottom: 1px solid #e8f0eb;
}
.employee-mobile-brand img {
    width: 112px;
}
.employee-mobile-header-actions {
    gap: 10px;
}
.employee-mobile-icon-button,
.employee-mobile-avatar {
    width: 40px;
    height: 40px;
    font-size: 20px;
}
.employee-mobile-avatar {
    font-size: 12px;
}
.employee-mobile-content {
    padding: 20px 18px 30px;
}
.employee-mobile-hero {
    margin: -20px -18px 18px;
    padding: 24px 18px 26px;
    border-radius: 0 0 24px 24px;
}
.employee-mobile-hero-topline {
    margin-bottom: 24px;
    font-size: 11px;
}
.employee-mobile-hero-date {
    font-size: 11px;
}
.employee-mobile-hero-greeting {
    font-size: 13px;
}
.employee-mobile-hero h1 {
    font-size: 29px;
}
.employee-mobile-hero h1 span {
    font-size: 22px;
}
.employee-mobile-hero-meta {
    font-size: 12px;
}
.employee-mobile-hero-avatar {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    font-size: 15px;
}
.employee-mobile-attendance-card {
    padding: 20px;
    border-radius: 22px;
}
.employee-mobile-attendance-command {
    margin: 0;
    padding: 20px;
}
.employee-mobile-card-eyebrow {
    margin-bottom: 7px;
    font-size: 11px;
}
.employee-mobile-attendance-card h2 {
    font-size: 19px;
}
.employee-mobile-attendance-pulse {
    padding: 6px 9px;
    font-size: 10px;
}
.employee-mobile-attendance-focus {
    margin: 22px 0 20px;
}
.employee-mobile-attendance-focus-copy {
    gap: 5px;
}
.employee-mobile-attendance-focus-copy strong {
    font-size: 17px;
}
.employee-mobile-attendance-focus-copy > span:last-child {
    font-size: 11px;
}
.employee-mobile-attendance-summary {
    gap: 10px;
    margin: 20px 0 15px;
    padding-top: 15px;
}
.employee-mobile-attendance-summary span {
    font-size: 10px;
}
.employee-mobile-attendance-summary strong {
    font-size: 14px;
}
.employee-mobile-attendance-hint {
    padding: 11px 12px;
    font-size: 11px;
}
.employee-mobile-attendance-cta {
    padding: 13px 14px;
    font-size: 12px;
}
.employee-mobile-section-heading {
    margin: 28px 2px 12px;
}
.employee-mobile-section-heading > div > h2,
.employee-mobile-section-heading-spaced h2 {
    font-size: 15px;
    letter-spacing: -0.02em;
    text-transform: none;
}
.employee-mobile-section-link,
.employee-mobile-section-count {
    font-size: 12px;
}
.employee-mobile-overview-grid {
    gap: 11px;
}
.employee-mobile-overview-card {
    gap: 8px 11px;
    padding: 16px !important;
    border-radius: 17px !important;
}
.employee-mobile-overview-card .employee-mobile-overview-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    font-size: 18px;
}
.employee-mobile-overview-card strong {
    font-size: 23px;
}
.employee-mobile-overview-card > div > span {
    font-size: 11px;
}
.employee-mobile-overview-card a {
    font-size: 11px;
}
.employee-mobile-balance-list-redesign,
.employee-mobile-payslip-list-redesign {
    border-radius: 17px;
}
.employee-mobile-balance-list-redesign article,
.employee-mobile-balance-list-redesign .employee-mobile-balance-item {
    min-height: 64px;
    padding: 16px;
}
.employee-mobile-balance-heading {
    gap: 10px;
}
.employee-mobile-balance-dot {
    width: 10px;
    height: 10px;
}
.employee-mobile-balance-heading strong {
    font-size: 14px;
}
.employee-mobile-balance-heading span {
    font-size: 12px;
}
.employee-mobile-balance-heading b {
    font-size: 14px;
}
.employee-mobile-balance-progress {
    height: 6px;
    margin: 12px 0 0 19px;
}
.employee-mobile-balance-list-redesign .employee-mobile-informative-empty,
.employee-mobile-payslip-list-redesign .employee-mobile-informative-empty {
    min-height: 64px;
    gap: 10px;
    padding: 15px 16px;
}
.employee-mobile-balance-list-redesign
    .employee-mobile-informative-empty
    > span,
.employee-mobile-payslip-list-redesign
    .employee-mobile-informative-empty
    > span {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 17px;
}
.employee-mobile-balance-list-redesign
    .employee-mobile-informative-empty
    strong,
.employee-mobile-payslip-list-redesign
    .employee-mobile-informative-empty
    strong {
    font-size: 13px;
}
.employee-mobile-balance-list-redesign .employee-mobile-informative-empty small,
.employee-mobile-payslip-list-redesign
    .employee-mobile-informative-empty
    small {
    font-size: 11px;
}
.employee-mobile-payslip-row {
    gap: 10px;
    padding: 14px 16px;
}
.employee-mobile-payslip-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 17px;
}
.employee-mobile-payslip-list-redesign strong {
    font-size: 13px;
}
.employee-mobile-payslip-list-redesign small {
    font-size: 11px;
}
.employee-mobile-payslip-list-redesign b {
    font-size: 12px;
}
.employee-mobile-announcement-redesign {
    margin-top: 28px;
    padding: 16px;
    border-radius: 17px;
}
.employee-mobile-announcement-label {
    margin-bottom: 9px;
    font-size: 10px;
}
.employee-mobile-announcement-redesign h2 {
    font-size: 16px;
}
.employee-mobile-announcement-redesign p {
    font-size: 12px;
    line-height: 1.5;
}
.employee-mobile-announcement-redesign small {
    font-size: 11px;
}
.employee-mobile-page-heading {
    margin: 6px 2px 22px;
}
.employee-mobile-page-heading h1 {
    font-size: 29px;
}
.employee-mobile-page-heading p:last-child {
    font-size: 13px;
}
.employee-mobile-request-tabs button {
    padding: 11px 5px;
    font-size: 12px;
}
.employee-mobile-request-tabs button span {
    font-size: 10px;
}
.employee-mobile-new-request {
    padding: 14px;
}
.employee-mobile-new-request strong {
    font-size: 13px;
}
.employee-mobile-new-request small {
    font-size: 11px;
}
.employee-mobile-request-list {
    gap: 11px;
}
.employee-mobile-request-list article {
    padding: 15px;
}
.employee-mobile-request-copy strong {
    font-size: 13px;
}
.employee-mobile-request-copy span,
.employee-mobile-request-copy small {
    font-size: 11px;
}
.employee-mobile-request-status {
    font-size: 10px;
}
.employee-mobile-request-form {
    gap: 15px;
    margin-top: 22px;
}
.employee-mobile-request-form label,
.employee-mobile-profile-form label,
.employee-mobile-history-form label {
    gap: 7px;
    color: #49675a;
    font-size: 13px;
    font-weight: 750;
}
.employee-mobile-request-form input,
.employee-mobile-request-form select,
.employee-mobile-request-form textarea,
.employee-mobile-profile-form input,
.employee-mobile-history-form input,
.employee-mobile-history-form select,
.employee-mobile-history-form textarea {
    min-height: 46px;
    padding: 12px 13px;
    border-radius: 12px;
    font-size: 14px;
}
.employee-mobile-request-form textarea,
.employee-mobile-history-form textarea {
    min-height: 96px;
}
.employee-mobile-request-form > button,
.employee-mobile-profile-form > button,
.employee-mobile-history-form > div button {
    min-height: 46px;
    font-size: 13px;
}
.employee-mobile-form-label,
.employee-mobile-history-form label > span,
.employee-mobile-profile-form label > span {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}
.employee-mobile-form-label b,
.employee-mobile-history-form label b,
.employee-mobile-profile-form label b {
    color: #dc3545;
    font-size: 15px;
    font-weight: 800;
}
.employee-mobile-form-error,
.employee-mobile-profile-form small {
    font-size: 11px;
}
.employee-mobile-sheet-heading h2 {
    font-size: 21px;
}
.employee-mobile-sheet-heading p:last-child {
    font-size: 12px;
}
.employee-mobile-profile-hero {
    padding: 20px;
}
.employee-mobile-profile-large-avatar {
    width: 62px;
    height: 62px;
    font-size: 18px;
}
.employee-mobile-profile-hero h1 {
    font-size: 20px;
}
.employee-mobile-profile-hero p:last-child {
    font-size: 12px;
}
.employee-mobile-profile-details div {
    padding: 14px;
}
.employee-mobile-profile-details span {
    font-size: 11px;
}
.employee-mobile-profile-details strong {
    font-size: 13px;
}
.employee-mobile-profile-card {
    padding: 18px;
    border-radius: 18px;
}
.employee-mobile-profile-form {
    gap: 15px;
}
.employee-mobile-profile-success {
    font-size: 12px;
}
.employee-mobile-bottom-nav {
    bottom: 12px;
    width: calc(100% - 24px);
    height: 68px;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    border-radius: 22px;
}
.employee-mobile-nav-item {
    min-height: 52px;
    font-size: 10px;
}
.employee-mobile-nav-icon {
    height: 22px;
}
.employee-mobile-nav-icon svg {
    width: 19px;
    height: 19px;
}
.employee-mobile-nav-attendance {
    min-height: 64px;
    margin-top: -8px;
    font-size: 10px;
}
.employee-mobile-nav-attendance .employee-mobile-nav-icon {
    width: 56px;
    height: 56px;
}
.employee-mobile-nav-attendance .employee-mobile-nav-icon svg {
    width: 23px;
    height: 23px;
}
.employee-mobile-empty-card {
    padding: 40px 20px;
}
.employee-mobile-empty-card h2 {
    font-size: 18px;
}
.employee-mobile-empty-card p {
    font-size: 12px;
}
.employee-mobile-overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.employee-mobile-request-overview-card {
    display: grid;
    min-width: 0;
    align-content: center;
    justify-items: center;
    gap: 6px;
    padding: 13px 7px;
    border: 1px solid #e1ece6;
    border-radius: 16px;
    background: #fff;
    color: #29483b;
    text-decoration: none;
    box-shadow: 0 5px 14px rgba(30, 70, 51, 0.04);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}
.employee-mobile-request-overview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(30, 70, 51, 0.08);
}
.employee-mobile-request-overview-card .employee-mobile-overview-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 16px;
}
.employee-mobile-request-overview-card strong {
    color: #1d3b30;
    font-size: 22px;
    line-height: 1;
}
.employee-mobile-request-overview-card > span:last-child {
    overflow: hidden;
    max-width: 100%;
    color: #71877a;
    font-size: 10px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.employee-mobile-request-overview-card.is-leave .employee-mobile-overview-icon {
    background: #e8f5ef;
    color: #078557;
}
.employee-mobile-request-overview-card.is-permission
    .employee-mobile-overview-icon {
    background: #fff1dc;
    color: #bd7624;
}
.employee-mobile-request-overview-card.is-overtime
    .employee-mobile-overview-icon {
    background: #e8efff;
    color: #3867c8;
}
.employee-mobile-all-balances-list {
    display: grid;
    gap: 12px;
}
.employee-mobile-all-balance-card {
    padding: 16px;
    border: 1px solid #e1ece6;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 5px 14px rgba(30, 70, 51, 0.04);
}
.employee-mobile-page {
    padding-bottom: 96px;
}
.employee-mobile-bottom-nav {
    position: fixed;
    z-index: 15;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 50%;
    display: grid;
    width: min(calc(100% - 24px), 520px);
    height: 68px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 7px 7px calc(7px + env(safe-area-inset-bottom));
    overflow: visible;
    transform: translateX(-50%);
    border: 1px solid #dfeae4;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 10px 28px rgba(23, 61, 44, 0.14);
    backdrop-filter: blur(14px);
}
.employee-mobile-bottom-nav::before {
    display: none;
}
.employee-mobile-nav-item {
    display: grid;
    min-width: 0;
    min-height: 52px;
    align-content: center;
    justify-items: center;
    gap: 3px;
    border-radius: 14px;
    color: #80938a;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}
.employee-mobile-nav-icon {
    display: grid;
    width: 100%;
    height: 21px;
    place-items: center;
    line-height: 1;
}
.employee-mobile-nav-icon svg {
    width: 19px;
    height: 19px;
}
.employee-mobile-nav-label {
    display: block;
    line-height: 1.2;
    white-space: nowrap;
}
.employee-mobile-nav-item.is-active {
    background: #e8f6ee;
    color: #086b48;
}
.employee-mobile-nav-item.is-disabled {
    opacity: 0.52;
}
.employee-mobile-nav-attendance {
    position: relative;
    z-index: 4;
    align-self: start;
    height: 64px;
    min-height: 64px;
    margin-top: -7px;
    color: #086b48;
    font-size: 9px;
    font-weight: 800;
}
.employee-mobile-nav-attendance .employee-mobile-nav-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto;
    border: 4px solid #fff;
    border-radius: 50%;
    background: linear-gradient(145deg, #19a86e, #08754b);
    color: #fff;
    box-shadow:
        0 7px 18px rgba(7, 133, 87, 0.3),
        0 0 0 3px #edf7f1;
}
.employee-mobile-nav-attendance .employee-mobile-nav-icon svg {
    width: 22px;
    height: 22px;
}
@media (hover: hover) {
    .employee-mobile-nav-item:not(.is-disabled):not(
            .employee-mobile-nav-attendance
        ):hover {
        background: #eef9f3;
        color: var(--primary-dark);
        transform: translateY(-2px);
    }
    .employee-mobile-nav-attendance:hover {
        background: transparent;
        transform: translateY(-2px);
    }
    .employee-mobile-nav-attendance:hover .employee-mobile-nav-icon {
        box-shadow:
            0 10px 22px rgba(7, 133, 87, 0.38),
            0 0 0 4px #edf7f1;
    }
}
.employee-mobile-all-balance-heading {
    display: flex;
    align-items: center;
    gap: 10px;
}
.employee-mobile-all-balance-heading > div {
    min-width: 0;
    flex: 1;
}
.employee-mobile-all-balance-heading strong,
.employee-mobile-all-balance-heading span {
    display: block;
}
.employee-mobile-all-balance-heading strong {
    overflow: hidden;
    color: #29483b;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.employee-mobile-all-balance-heading span {
    margin-top: 4px;
    color: #8b9b94;
    font-size: 11px;
}
.employee-mobile-all-balance-heading b {
    color: #176b4b;
    font-size: 13px;
    white-space: nowrap;
}
.employee-mobile-all-balance-card .employee-mobile-balance-progress {
    margin: 14px 0 0;
}
.employee-mobile-all-balance-card > small {
    display: block;
    margin: 7px 0 0 19px;
    color: #8b9b94;
    font-size: 11px;
}
.employee-mobile-calendar-activities {
    display: grid;
    gap: 9px;
}
.employee-mobile-calendar-activity {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 12px;
    border: 1px solid #e1ece6;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 14px rgba(30, 70, 51, 0.04);
}
.employee-mobile-calendar-date {
    display: grid;
    width: 43px;
    height: 47px;
    flex: 0 0 43px;
    align-content: center;
    justify-items: center;
    border-radius: 12px;
    background: #e8f6ee;
    color: #176b4b;
}
.employee-mobile-calendar-date span {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.08em;
}
.employee-mobile-calendar-date strong {
    margin-top: 1px;
    font-size: 19px;
    line-height: 1;
}
.employee-mobile-calendar-copy {
    min-width: 0;
    flex: 1;
}
.employee-mobile-calendar-copy strong,
.employee-mobile-calendar-copy span,
.employee-mobile-calendar-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.employee-mobile-calendar-copy strong {
    color: #29483b;
    font-size: 12px;
}
.employee-mobile-calendar-copy span {
    margin-top: 4px;
    color: #6f8578;
    font-size: 10px;
}
.employee-mobile-calendar-copy small {
    margin-top: 4px;
    color: #9aa9a2;
    font-size: 9px;
}
.employee-mobile-calendar-activity > svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    color: #9aaca3;
}
.employee-mobile-calendar-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 14px;
    border: 1px dashed #cfe2d6;
    border-radius: 16px;
    background: #f7fbf8;
    color: #80958a;
    font-size: 11px;
}
.employee-mobile-calendar-empty svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
}
.employee-mobile-calendar-activity {
    width: 100%;
    border: 1px solid #e1ece6;
    color: inherit;
    text-align: left;
    cursor: pointer;
}
.employee-mobile-calendar-activity:active {
    background: #f4faf7;
    transform: scale(0.99);
}
.employee-mobile-calendar-modal-backdrop {
    position: fixed;
    z-index: 35;
    inset: 0;
    display: flex;
    align-items: end;
    justify-content: center;
    background: rgba(23, 53, 42, 0.28);
}
.employee-mobile-calendar-modal {
    width: min(100%, 520px);
    padding: 10px 18px calc(22px + env(safe-area-inset-bottom));
    border-radius: 26px 26px 0 0;
    background: #fff;
    box-shadow: 0 -12px 35px rgba(23, 73, 51, 0.16);
}
.employee-mobile-calendar-modal-handle {
    width: 38px;
    height: 4px;
    margin: 0 auto 18px;
    border-radius: 99px;
    background: #dce7e1;
}
.employee-mobile-calendar-modal-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
}
.employee-mobile-calendar-modal-heading span {
    color: #82968d;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.employee-mobile-calendar-modal-heading h2 {
    margin: 5px 0 0;
    color: #234638;
    font-size: 20px;
    line-height: 1.2;
}
.employee-mobile-calendar-modal-close {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #eef6f1;
    color: #39745c;
    font-size: 22px;
    line-height: 1;
}
.employee-mobile-calendar-modal-date,
.employee-mobile-calendar-modal-meta {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 20px;
    padding: 12px;
    border-radius: 13px;
    background: #f1f9f4;
    color: #176b4b;
}
.employee-mobile-calendar-modal-date svg,
.employee-mobile-calendar-modal-meta svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}
.employee-mobile-calendar-modal-date div,
.employee-mobile-calendar-modal-meta div {
    min-width: 0;
}
.employee-mobile-calendar-modal-date span,
.employee-mobile-calendar-modal-meta span {
    display: block;
    color: #71877a;
    font-size: 10px;
}
.employee-mobile-calendar-modal-date strong,
.employee-mobile-calendar-modal-meta strong {
    display: block;
    margin-top: 3px;
    color: #29483b;
    font-size: 12px;
}
.employee-mobile-calendar-modal-meta {
    margin-top: 8px;
    background: #f8faf9;
}
.employee-mobile-calendar-modal-description {
    margin: 18px 0 0;
    color: #587266;
    font-size: 12px;
    line-height: 1.55;
    white-space: pre-line;
}
.employee-mobile-calendar-modal-status {
    display: inline-flex;
    margin-top: 18px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #e8f6ee;
    color: #24724f;
    font-size: 9px;
    font-weight: 800;
    text-transform: capitalize;
}
.employee-mobile-back-link {
    display: block;
    margin: 20px 2px 0;
    color: var(--primary);
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
}
.employee-mobile-balance-hero {
    position: relative;
    overflow: hidden;
    margin: -4px -2px 26px;
    padding: 22px 20px 24px;
    border-radius: 24px;
    background: linear-gradient(135deg, #124b37 0%, #08764d 68%, #149566 100%);
    color: #fff;
    box-shadow: 0 14px 28px rgba(13, 102, 68, 0.18);
}
.employee-mobile-balance-hero::after {
    position: absolute;
    right: -34px;
    bottom: -58px;
    width: 170px;
    height: 170px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    box-shadow:
        0 0 0 18px rgba(255, 255, 255, 0.035),
        0 0 0 38px rgba(255, 255, 255, 0.025);
    content: '';
}
.employee-mobile-balance-hero-topline {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}
.employee-mobile-balance-hero-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.13);
}
.employee-mobile-balance-hero-icon svg {
    width: 22px;
    height: 22px;
}
.employee-mobile-balance-hero-count {
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.1);
    color: #d5f3e3;
    font-size: 11px;
    font-weight: 750;
}
.employee-mobile-balance-hero .employee-mobile-overline {
    position: relative;
    z-index: 1;
    margin-bottom: 8px;
    color: #b8e4cd;
    font-size: 11px;
}
.employee-mobile-balance-hero h1 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #fff;
    font-size: 30px;
    letter-spacing: -0.045em;
}
.employee-mobile-balance-hero > p:last-child {
    position: relative;
    z-index: 1;
    max-width: 300px;
    margin: 9px 0 0;
    color: #d2eee0;
    font-size: 13px;
    line-height: 1.45;
}
.employee-mobile-all-balances-list {
    gap: 15px;
}
.employee-mobile-all-balance-card {
    position: relative;
    overflow: hidden;
    padding: 19px 17px 16px;
    border: 1px solid #dcebe3;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(30, 70, 51, 0.055);
}
.employee-mobile-all-balance-card-accent {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 5px;
    background: linear-gradient(180deg, #20ad70, #8bd6ab);
}
.employee-mobile-all-balance-card.is-amount
    .employee-mobile-all-balance-card-accent {
    background: linear-gradient(180deg, #eead4c, #f4d58a);
}
.employee-mobile-all-balance-heading {
    gap: 11px;
}
.employee-mobile-all-balance-icon {
    display: grid;
    width: 39px;
    height: 39px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 13px;
    background: #e6f7ed;
    color: #078557;
}
.employee-mobile-all-balance-icon svg {
    width: 20px;
    height: 20px;
}
.employee-mobile-all-balance-card.is-amount .employee-mobile-all-balance-icon {
    background: #fff3df;
    color: #c17a20;
}
.employee-mobile-all-balance-heading strong {
    font-size: 15px;
}
.employee-mobile-all-balance-heading span {
    font-size: 11px;
}
.employee-mobile-all-balance-heading b {
    font-size: 14px;
}
.employee-mobile-all-balance-card .employee-mobile-balance-progress {
    height: 8px;
    margin: 18px 0 0 50px;
    background: #edf4ef;
}
.employee-mobile-all-balance-card .employee-mobile-balance-progress span {
    background: linear-gradient(90deg, #1ca66b, #75d39e);
}
.employee-mobile-all-balance-card.is-amount
    .employee-mobile-balance-progress
    span {
    background: linear-gradient(90deg, #e8a03e, #f3c873);
}
.employee-mobile-all-balance-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 9px 0 0 50px;
}
.employee-mobile-all-balance-footer small {
    color: #8b9b94;
    font-size: 11px;
}
.employee-mobile-all-balance-footer small:first-child {
    color: #3b8867;
    font-weight: 750;
}
.employee-mobile-back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0 2px 18px;
    padding: 10px 13px;
    border-radius: 11px;
    background: #e8f5ef;
    color: #08764b;
    font-size: 13px;
}
.employee-mobile-back-link span {
    font-size: 20px;
    line-height: 1;
}
.employee-mobile-detail-sheet {
    padding: 24px 18px calc(32px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, #f4faf6 0%, #fff 32%);
}
.employee-mobile-detail-heading {
    padding: 4px 2px 20px;
}
.employee-mobile-detail-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #4d866c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.employee-mobile-detail-kicker-icon {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border-radius: 9px;
    background: #dff3e7;
    color: #08764b;
}
.employee-mobile-detail-kicker-icon svg {
    width: 15px;
    height: 15px;
}
.employee-mobile-detail-heading h2 {
    margin: 10px 0 5px;
    color: #173f30;
    font-size: 27px;
    letter-spacing: -0.045em;
}
.employee-mobile-detail-heading small {
    font-size: 13px;
}
.employee-mobile-detail-close {
    width: 40px;
    height: 40px;
    background: #fff;
    color: #39745c;
    font-size: 25px;
    box-shadow: 0 5px 15px rgba(37, 103, 76, 0.08);
}
.employee-mobile-detail-balance {
    position: relative;
    margin: 0 0 16px;
    padding: 18px;
    border: 1px solid #c7e8d4;
    border-radius: 20px;
    background: linear-gradient(135deg, #dff6e8, #effbf4);
    box-shadow: 0 10px 24px rgba(32, 112, 77, 0.08);
}
.employee-mobile-detail-balance > div {
    display: grid;
    gap: 5px;
}
.employee-mobile-detail-balance span {
    color: #4d806a;
    font-size: 11px;
}
.employee-mobile-detail-balance strong {
    color: #08764b;
    font-size: 23px;
    letter-spacing: -0.04em;
}
.employee-mobile-detail-balance-total {
    position: absolute;
    top: 18px;
    right: 18px;
    padding-left: 16px;
    border-left: 1px solid #bfe1cc;
    text-align: right;
}
.employee-mobile-detail-balance-total strong {
    color: #4d806a;
    font-size: 14px;
}
.employee-mobile-detail-add {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 14px 15px;
    border: 1px solid #b6e2c7;
    border-radius: 13px;
    background: #fff;
    color: #08764b;
    font-size: 13px;
    box-shadow: 0 7px 18px rgba(30, 100, 70, 0.06);
}
.employee-mobile-history-form {
    margin-bottom: 24px;
    padding: 18px;
    border-radius: 18px;
}
.employee-mobile-history-list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 11px;
}
.employee-mobile-history-list-heading h3 {
    margin: 0;
    color: #234b3b;
    font-size: 16px;
}
.employee-mobile-history-list-heading span {
    padding: 5px 8px;
    border-radius: 99px;
    background: #e8f5ef;
    color: #398565;
    font-size: 10px;
    font-weight: 750;
}
.employee-mobile-history-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 9px;
    padding: 14px;
    border: 1px solid #e1eee7;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 14px rgba(30, 70, 51, 0.04);
}
.employee-mobile-history-row:last-child {
    margin-bottom: 0;
}
.employee-mobile-history-row strong {
    overflow: hidden;
    color: #234b3b;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.employee-mobile-history-row b {
    color: #c45d4c;
    font-size: 13px;
    white-space: nowrap;
}
.employee-mobile-history-row small {
    font-size: 10px;
}
.employee-mobile-history-row a {
    display: inline-block;
    margin-top: 6px;
    color: #08764b;
    font-size: 10px;
    font-weight: 750;
    text-decoration: none;
}
.employee-mobile-history-delete {
    min-width: 30px;
    min-height: 30px;
    padding: 6px 8px;
    border-radius: 9px;
    font-size: 13px;
}
@media (max-width: 380px) {
    .employee-mobile-detail-balance-total {
        position: static;
        margin-top: 12px;
        padding: 10px 0 0;
        border-top: 1px solid #bfe1cc;
        border-left: 0;
        text-align: left;
    }
    .employee-mobile-detail-balance-total strong {
        font-size: 13px;
    }
    .employee-mobile-history-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }
    .employee-mobile-history-row > div:nth-child(2) {
        grid-column: 1;
    }
    .employee-mobile-history-row > button {
        grid-column: 2;
        grid-row: 1 / span 2;
    }
}

/* Mobile event balance history reference layout */
.employee-mobile-detail-backdrop {
    background: #f7fbf9;
}
.employee-mobile-detail-sheet {
    width: min(100%, 540px);
    padding: 34px 22px calc(34px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, #f4faf7 0%, #fff 45%);
}
.employee-mobile-detail-heading {
    align-items: flex-start;
    padding: 0 2px 32px;
}
.employee-mobile-detail-kicker {
    gap: 10px;
    color: #293c35;
    font-size: 21px;
    font-weight: 500;
    letter-spacing: -0.02em;
    text-transform: none;
}
.employee-mobile-detail-kicker-icon {
    width: 28px;
    height: 28px;
    background: transparent;
    color: #293c35;
}
.employee-mobile-detail-kicker-icon svg {
    width: 24px;
    height: 24px;
}
.employee-mobile-detail-heading h2 {
    margin: 26px 0 18px;
    color: #173f30;
    font-size: 31px;
    font-weight: 500;
    letter-spacing: -0.055em;
}
.employee-mobile-detail-heading small {
    color: #7a9b8c;
    font-size: 16px;
}
.employee-mobile-detail-close {
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #e8f5ef;
    color: #318565;
    font-size: 38px;
    font-weight: 300;
    box-shadow: none;
}
.employee-mobile-detail-balance {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 20px;
    margin: 0 0 28px;
    padding: 30px 36px;
    border: 1px solid #bfe8d1;
    border-radius: 23px;
    background: linear-gradient(135deg, #e0f7e9 0%, #d2f2df 100%);
    box-shadow: none;
}
.employee-mobile-detail-balance > div {
    position: relative;
    display: grid;
    align-content: center;
    gap: 10px;
}
.employee-mobile-detail-balance > div + div {
    padding-left: 20px;
    border-left: 1px solid rgba(57, 143, 103, 0.2);
}
.employee-mobile-detail-balance span {
    color: #4a806c;
    font-size: 16px;
    white-space: nowrap;
}
.employee-mobile-detail-balance strong {
    color: #08764b;
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -0.045em;
    white-space: nowrap;
}
.employee-mobile-detail-balance-total {
    position: static;
    margin: 0;
    padding: 0 !important;
    border: 0 !important;
    text-align: left;
}
.employee-mobile-detail-balance-total strong {
    color: #08764b;
    font-size: 27px;
}
.employee-mobile-detail-add {
    min-height: 88px;
    margin-bottom: 53px;
    padding: 18px 30px;
    border: 1px solid #8edbb0;
    border-radius: 22px;
    background: #fff;
    color: #08764b;
    font-size: 20px;
    font-weight: 750;
    box-shadow: none;
}
.employee-mobile-history-list {
    padding: 0 2px;
}
.employee-mobile-history-list-heading {
    display: block;
    margin: 0 0 22px;
}
.employee-mobile-history-list-heading h3 {
    margin: 0 0 25px;
    color: #5f8776;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.employee-mobile-history-list-heading span {
    color: #293c35;
    font-size: 17px;
}
.employee-mobile-history-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding: 28px 24px;
    border: 1px solid #dceee4;
    border-radius: 21px;
    background: #fff;
    box-shadow: 0 9px 22px rgba(30, 70, 51, 0.045);
}
.employee-mobile-history-row strong {
    font-size: 17px;
    font-weight: 750;
}
.employee-mobile-history-row small {
    margin-top: 8px;
    color: #8ca69a;
    font-size: 15px;
}
.employee-mobile-history-row > div:first-child small:first-of-type {
    display: none;
}
.employee-mobile-history-row > div:last-of-type {
    display: grid;
    justify-items: end;
    gap: 0;
}
.employee-mobile-history-row > div:last-of-type b {
    color: #d96352;
    font-size: 17px;
}
.employee-mobile-history-row > div:last-of-type small {
    margin-top: 8px;
    white-space: nowrap;
}
.employee-mobile-history-delete {
    min-width: 46px;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 13px;
    background: #fff0ed;
    color: #dc6a59;
    font-size: 17px;
}
.employee-mobile-history-row a {
    font-size: 12px;
}
@media (max-width: 420px) {
    .employee-mobile-detail-sheet {
        padding-right: 16px;
        padding-left: 16px;
    }
    .employee-mobile-detail-heading h2 {
        font-size: 28px;
    }
    .employee-mobile-detail-balance {
        gap: 10px;
        padding: 24px 18px;
    }
    .employee-mobile-detail-balance > div + div {
        padding-left: 12px;
    }
    .employee-mobile-detail-balance span {
        font-size: 13px;
    }
    .employee-mobile-detail-balance strong,
    .employee-mobile-detail-balance-total strong {
        font-size: 22px;
    }
    .employee-mobile-history-row {
        gap: 9px;
        padding: 22px 16px;
    }
    .employee-mobile-history-row strong,
    .employee-mobile-history-row > div:last-of-type b {
        font-size: 14px;
    }
    .employee-mobile-history-row small {
        font-size: 12px;
    }
}

/* Final clean mobile balance detail refinement */
.employee-mobile-detail-backdrop {
    background: #f8fbf9;
}
.employee-mobile-detail-sheet {
    padding: 30px 24px calc(30px + env(safe-area-inset-bottom));
    background: #f8fbf9;
}
.employee-mobile-detail-heading {
    padding: 0 0 34px;
}
.employee-mobile-detail-kicker {
    gap: 9px;
    color: #2f4039;
    font-size: 17px;
    font-weight: 500;
}
.employee-mobile-detail-kicker-icon {
    width: 25px;
    height: 25px;
    color: #2f4039;
}
.employee-mobile-detail-kicker-icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.7;
}
.employee-mobile-detail-heading h2 {
    margin: 27px 0 14px;
    color: #173f30;
    font-size: 30px;
    font-weight: 500;
    letter-spacing: -0.055em;
}
.employee-mobile-detail-heading small {
    color: #7f9c8e;
    font-size: 15px;
}
.employee-mobile-detail-close {
    width: 52px;
    height: 52px;
    background: #eaf5ef;
    color: #338568;
    font-size: 34px;
}
.employee-mobile-detail-balance {
    gap: 16px;
    margin-bottom: 26px;
    padding: 27px 28px;
    border: 1px solid #c6e9d4;
    border-radius: 22px;
    background: #e0f6e8;
    box-shadow: none;
}
.employee-mobile-detail-balance > div {
    gap: 8px;
}
.employee-mobile-detail-balance span {
    color: #558270;
    font-size: 15px;
}
.employee-mobile-detail-balance strong,
.employee-mobile-detail-balance-total strong {
    color: #08764b;
    font-size: 25px;
    font-weight: 700;
}
.employee-mobile-detail-balance-total {
    padding-left: 16px !important;
    border-left-color: #b7dfc7 !important;
}
.employee-mobile-detail-add {
    min-height: 68px;
    margin-bottom: 52px;
    padding: 16px 28px;
    border: 1px solid #9cdeba;
    border-radius: 18px;
    background: #fff;
    color: #08764b;
    font-size: 17px;
    font-weight: 750;
    box-shadow: none;
}
.employee-mobile-history-list-heading {
    margin-bottom: 22px;
}
.employee-mobile-history-list-heading h3 {
    margin-bottom: 24px;
    color: #668a7a;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.17em;
}
.employee-mobile-history-list-heading span {
    color: #2f4039;
    font-size: 16px;
}
.employee-mobile-history-row {
    grid-template-columns: minmax(0, 1fr) auto 38px;
    gap: 12px;
    padding: 23px 20px;
    border: 1px solid #dfede5;
    border-radius: 19px;
    background: #fff;
    box-shadow: none;
}
.employee-mobile-history-row strong {
    color: #2f5545;
    font-size: 16px;
}
.employee-mobile-history-row small {
    color: #91a99e;
    font-size: 13px;
}
.employee-mobile-history-row > div:last-of-type b {
    color: #db6957;
    font-size: 16px;
}
.employee-mobile-history-row > div:last-of-type small {
    font-size: 13px;
}
.employee-mobile-all-balance-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.employee-mobile-event-history-page-heading {
    padding: 4px 2px 28px;
}
.employee-mobile-event-history-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 25px;
}
.employee-mobile-event-history-title-row h1 {
    margin: 0 0 10px;
    color: #173f30;
    font-size: 30px;
    font-weight: 500;
    letter-spacing: -0.055em;
}
.employee-mobile-event-history-title-row p {
    margin: 0;
    color: #7f9c8e;
    font-size: 15px;
}
.employee-mobile-event-history-mark {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 14px;
    background: #e8f5ef;
    color: #338568;
    font-size: 22px;
}
.employee-mobile-event-history-summary {
    margin-bottom: 26px;
}
.employee-mobile-event-history-list {
    margin-top: 0;
}
.employee-mobile-history-delete {
    min-width: 38px;
    min-height: 36px;
    border-radius: 11px;
    background: #fff0ed;
    color: #da6b5c;
    font-size: 15px;
}
@media (max-width: 420px) {
    .employee-mobile-detail-sheet {
        padding-right: 16px;
        padding-left: 16px;
    }
    .employee-mobile-detail-heading h2 {
        font-size: 27px;
    }
    .employee-mobile-detail-balance {
        padding: 23px 17px;
    }
    .employee-mobile-detail-balance > div + div {
        padding-left: 12px !important;
    }
    .employee-mobile-detail-balance span {
        font-size: 13px;
    }
    .employee-mobile-detail-balance strong,
    .employee-mobile-detail-balance-total strong {
        font-size: 21px;
    }
}

/* Compact creative employee event page */
.employee-mobile-event-history-page-heading {
    padding: 2px 2px 20px;
}
.employee-mobile-event-history-page-heading .employee-mobile-detail-kicker {
    gap: 7px;
    color: #315146;
    font-size: 14px;
}
.employee-mobile-event-history-page-heading
    .employee-mobile-detail-kicker-icon {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: #e2f4e9;
    color: #08764b;
}
.employee-mobile-event-history-page-heading
    .employee-mobile-detail-kicker-icon
    svg {
    width: 16px;
    height: 16px;
}
.employee-mobile-event-history-title-row {
    margin-top: 17px;
}
.employee-mobile-event-history-title-row h1 {
    margin-bottom: 7px;
    color: #173f30;
    font-size: 25px;
    font-weight: 600;
    letter-spacing: -0.05em;
}
.employee-mobile-event-history-title-row p {
    font-size: 13px;
}
.employee-mobile-event-history-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    font-size: 17px;
}
.employee-mobile-event-history-summary {
    gap: 12px;
    margin-bottom: 16px;
    padding: 17px 18px;
    border-radius: 17px;
}
.employee-mobile-event-history-summary > div {
    gap: 5px;
}
.employee-mobile-event-history-summary > div + div {
    padding-left: 13px !important;
}
.employee-mobile-event-history-summary span {
    font-size: 12px;
}
.employee-mobile-event-history-summary strong,
.employee-mobile-event-history-summary
    .employee-mobile-detail-balance-total
    strong {
    font-size: 20px;
}
.employee-mobile-event-history-page-heading
    + .employee-mobile-event-history-summary
    + .employee-mobile-detail-add {
    min-height: 54px;
    margin-bottom: 28px;
    padding: 13px 17px;
    border-radius: 14px;
    font-size: 14px;
}
.employee-mobile-event-history-list .employee-mobile-history-list-heading {
    margin-bottom: 14px;
}
.employee-mobile-event-history-list .employee-mobile-history-list-heading h3 {
    margin-bottom: 12px;
    font-size: 12px;
    letter-spacing: 0.14em;
}
.employee-mobile-event-history-list .employee-mobile-history-list-heading span {
    font-size: 13px;
}
.employee-mobile-event-history-list .employee-mobile-history-row {
    grid-template-columns: minmax(0, 1fr) auto 32px;
    gap: 8px;
    padding: 15px 13px;
    border-radius: 15px;
}
.employee-mobile-event-history-list .employee-mobile-history-row strong {
    font-size: 13px;
}
.employee-mobile-event-history-list .employee-mobile-history-row small {
    margin-top: 5px;
    font-size: 11px;
}
.employee-mobile-event-history-list
    .employee-mobile-history-row
    > div:last-of-type
    b {
    font-size: 13px;
}
.employee-mobile-event-history-list
    .employee-mobile-history-row
    > div:last-of-type
    small {
    font-size: 10px;
}
.employee-mobile-event-history-list .employee-mobile-history-delete {
    min-width: 32px;
    min-height: 30px;
    padding: 5px;
    border-radius: 9px;
    font-size: 13px;
}
.employee-mobile-event-history-list .employee-mobile-history-row a {
    margin-top: 4px;
    font-size: 10px;
}
.employee-mobile-event-history-page-heading ~ .employee-mobile-history-form {
    gap: 11px;
    margin-bottom: 18px;
    padding: 14px;
    border-radius: 15px;
}
.employee-mobile-event-history-page-heading ~ .employee-mobile-history-form h3 {
    font-size: 14px;
}
.employee-mobile-event-history-page-heading
    ~ .employee-mobile-history-form
    label {
    gap: 5px;
    font-size: 12px;
}
.employee-mobile-event-history-page-heading
    ~ .employee-mobile-history-form
    input,
.employee-mobile-event-history-page-heading
    ~ .employee-mobile-history-form
    textarea {
    min-height: 40px;
    padding: 9px 10px;
    font-size: 13px;
}
.employee-mobile-event-history-page-heading
    ~ .employee-mobile-history-form
    textarea {
    min-height: 72px;
}
.employee-mobile-event-history-page-heading
    ~ .employee-mobile-history-form
    > div
    button {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 12px;
}
@media (max-width: 420px) {
    .employee-mobile-event-history-page-heading .employee-mobile-detail-kicker {
        font-size: 13px;
    }
    .employee-mobile-event-history-title-row h1 {
        font-size: 23px;
    }
    .employee-mobile-event-history-summary {
        padding: 15px 14px;
    }
    .employee-mobile-event-history-summary > div + div {
        padding-left: 9px !important;
    }
    .employee-mobile-event-history-summary span {
        font-size: 11px;
    }
    .employee-mobile-event-history-summary strong,
    .employee-mobile-event-history-summary
        .employee-mobile-detail-balance-total
        strong {
        font-size: 17px;
    }
}

/* Align event balance summary on narrow screens */
.employee-mobile-event-history-summary {
    position: relative;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    padding: 18px 20px;
}
.employee-mobile-event-history-summary::after {
    display: none;
}
.employee-mobile-event-history-summary > div {
    min-width: 0;
    align-content: center;
}
.employee-mobile-event-history-summary > div + div {
    padding-left: 14px !important;
}
.employee-mobile-event-history-summary span {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
}
.employee-mobile-event-history-summary strong,
.employee-mobile-event-history-summary
    .employee-mobile-detail-balance-total
    strong {
    display: block;
    overflow: hidden;
    font-size: clamp(16px, 4.3vw, 22px);
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.employee-mobile-event-history-page-heading
    .employee-mobile-event-history-title-row
    h1 {
    font-size: 24px;
}
.employee-mobile-event-history-mark {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 15px;
}
.employee-mobile-event-history-page-heading
    + .employee-mobile-event-history-summary
    + .employee-mobile-detail-add {
    min-height: 58px;
    margin-bottom: 32px;
    padding: 13px 18px;
    border-radius: 15px;
    font-size: 15px;
}
@media (max-width: 380px) {
    .employee-mobile-event-history-summary {
        gap: 9px;
        padding-right: 15px;
        padding-left: 15px;
    }
    .employee-mobile-event-history-summary > div + div {
        padding-left: 9px !important;
    }
    .employee-mobile-event-history-summary span {
        font-size: 11px;
    }
    .employee-mobile-event-history-summary strong,
    .employee-mobile-event-history-summary
        .employee-mobile-detail-balance-total
        strong {
        font-size: 15px;
    }
}

/* Event balance history refresh */
.event-history-page {
    background: linear-gradient(180deg, #f5f8f7 0, #fff 300px);
}
.event-history-hero {
    position: relative;
    overflow: hidden;
    margin: 4px 0 18px;
    padding: 30px 32px;
    border: 1px solid #d5e5dd;
    border-radius: 24px;
    background: linear-gradient(120deg, #102f27 0%, #17664b 67%, #1e9a6a 100%);
    color: #fff;
    box-shadow: 0 18px 36px rgba(12, 76, 51, 0.16);
}
.event-history-hero::after {
    position: absolute;
    right: -50px;
    bottom: -75px;
    width: 210px;
    height: 210px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    box-shadow:
        0 0 0 20px rgba(255, 255, 255, 0.03),
        0 0 0 44px rgba(255, 255, 255, 0.025);
    content: '';
}
.event-history-hero > div:first-child {
    position: relative;
    z-index: 1;
}
.event-history-hero .eyebrow {
    color: #b6e1cc;
}
.event-history-hero h1 {
    color: #fff;
    font-size: 30px;
    letter-spacing: -0.04em;
}
.event-history-hero p:last-child {
    color: #d0ecde;
}
.event-history-hero > button {
    position: relative;
    z-index: 1;
    align-self: center;
    border-color: rgba(255, 255, 255, 0.18);
    background: #fff;
    color: #08764b;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}
.event-history-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 13px;
    margin-bottom: 18px;
}
.event-history-summary-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 18px;
    border: 1px solid #e0ece5;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(30, 70, 51, 0.05);
}
.event-history-summary-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
    background: #e5f6ec;
    color: #078557;
    font-size: 15px;
    font-weight: 800;
}
.event-history-summary-card.is-expense .event-history-summary-icon {
    background: #fff2dc;
    color: #be7721;
    font-size: 11px;
}
.event-history-summary-card.is-balance .event-history-summary-icon {
    background: #e8efff;
    color: #3867c8;
}
.event-history-summary-card.is-initial-balance .event-history-summary-icon {
    background: #f4eaff;
    color: #8053b5;
    font-size: 11px;
}
.event-history-summary-card div {
    display: grid;
    min-width: 0;
    gap: 4px;
}
.event-history-summary-card strong {
    overflow: hidden;
    color: #244b3b;
    font-size: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.event-history-summary-card span:last-child {
    color: #81958a;
    font-size: 11px;
}
.event-history-table-card {
    padding: 10px;
    border-color: #deebe4;
    border-radius: 20px;
    box-shadow: 0 10px 26px rgba(30, 70, 51, 0.06);
}
.event-history-table-card .data-table-toolbar {
    padding: 8px 12px 16px;
}
.event-history-table-card .data-table-wrapper {
    border-radius: 14px;
}
.event-history-expense-amount {
    color: #bc673e;
    font-weight: 700;
    white-space: nowrap;
}
.cash-receipt-history-modal {
    width: min(100%, 640px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    border-color: #d7e7df;
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(18, 51, 39, 0.2);
}
.cash-receipt-history-modal .profile-form {
    gap: 17px;
}
.cash-receipt-history-modal .profile-field input,
.cash-receipt-history-modal .profile-field select {
    min-height: 42px;
}
.cash-receipt-history-modal .profile-form-actions {
    margin-top: 4px;
    padding-top: 17px;
    border-top: 1px solid #edf2ef;
}
@media (max-width: 760px) {
    .event-history-hero {
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
        padding: 22px;
    }
    .event-history-hero h1 {
        font-size: 25px;
    }
    .event-history-hero > button {
        align-self: flex-start;
    }
    .event-history-summary-grid {
        gap: 8px;
    }
    .event-history-summary-card {
        display: grid;
        justify-items: start;
        gap: 9px;
        padding: 12px;
    }
    .event-history-summary-icon {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }
    .event-history-summary-card strong {
        font-size: 15px;
    }
    .event-history-summary-card span:last-child {
        font-size: 10px;
    }
}

@media (max-width: 380px) {
    .employee-mobile-content {
        padding-left: 14px;
        padding-right: 14px;
    }
    .employee-mobile-hero {
        margin-left: -14px;
        margin-right: -14px;
    }
    .employee-mobile-hero h1 {
        font-size: 25px;
    }
    .employee-mobile-attendance-focus {
        gap: 10px;
    }
    .employee-mobile-attendance-total {
        width: 92px;
        height: 92px;
    }
}

/* mobile_design.md system: KCK mobile balance detail */
.employee-mobile-header {
    min-height: 54px;
    padding: 9px 16px 8px;
}
.employee-mobile-brand img {
    width: 94px;
}
.employee-mobile-header-actions {
    gap: 8px;
}
.employee-mobile-icon-button,
.employee-mobile-avatar {
    width: 36px;
    height: 36px;
}
.employee-mobile-icon-button {
    font-size: 18px;
}
.employee-mobile-avatar {
    font-size: 11px;
}
.employee-mobile-notification-popover,
.employee-mobile-profile-popover {
    top: 43px;
}
.employee-mobile-shell {
    --primary-ring: color-mix(in srgb, var(--primary) 18%, white);
    --surface: #fff;
    --text-primary: #183d32;
    --text-secondary: #71877f;
    --text-muted: #94a39d;
    --border: #dfe9e4;
    --radius-small: 12px;
    --radius-medium: 18px;
    --radius-large: 28px;
}
.employee-mobile-event-history-page-heading {
    padding: 0 0 24px;
}
.employee-mobile-event-history-page-heading .employee-mobile-detail-kicker {
    color: var(--text-primary);
    font-size: 15px;
    letter-spacing: 0;
}
.employee-mobile-event-history-page-heading
    .employee-mobile-detail-kicker-icon {
    width: 24px;
    height: 24px;
    background: transparent;
    color: var(--text-primary);
}
.employee-mobile-event-history-title-row {
    margin-top: 20px;
}
.employee-mobile-event-history-title-row h1 {
    color: var(--text-primary);
    font-size: 25px;
    letter-spacing: -0.04em;
}
.employee-mobile-event-history-title-row p {
    color: var(--text-secondary);
    font-size: 14px;
}
.employee-mobile-event-history-mark {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-small);
    background: var(--primary-soft);
    color: var(--primary-dark);
}
.employee-mobile-event-history-summary {
    gap: 16px;
    margin-bottom: 16px;
    padding: 18px 16px;
    border: 1px solid #cdebd9;
    border-radius: var(--radius-medium);
    background: var(--primary-soft);
}
.employee-mobile-event-history-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
}
.employee-mobile-detail-balance.employee-mobile-event-history-summary,
.employee-mobile-detail-balance {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
}
.employee-mobile-detail-balance::after {
    display: none;
}
.employee-mobile-detail-balance > div {
    min-width: 0;
    align-content: center;
}
.employee-mobile-detail-balance > div + div {
    padding-left: 16px !important;
    border-left: 1px solid #c6e5d3 !important;
}
.employee-mobile-detail-balance span {
    overflow: hidden;
    color: var(--text-secondary);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.employee-mobile-detail-balance strong {
    display: block;
    overflow: hidden;
    color: var(--primary-dark);
    font-size: clamp(17px, 4.2vw, 22px);
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.employee-mobile-detail-balance-total {
    position: static !important;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-top: 0 !important;
    text-align: left !important;
}
.employee-mobile-event-history-summary::after {
    display: none;
}
.employee-mobile-event-history-summary > div {
    min-width: 0;
    gap: 6px;
}
.employee-mobile-event-history-summary > div + div {
    padding-left: 16px !important;
    border-left: 1px solid #c6e5d3 !important;
}
.employee-mobile-event-history-summary span {
    color: var(--text-secondary);
    font-size: 12px;
}
.employee-mobile-event-history-summary strong,
.employee-mobile-event-history-summary
    .employee-mobile-detail-balance-total
    strong {
    color: var(--primary-dark);
    font-size: clamp(17px, 4.2vw, 22px);
    font-weight: 700;
}
.employee-mobile-event-history-page-heading
    + .employee-mobile-event-history-summary
    + .employee-mobile-detail-add {
    min-height: 56px;
    margin-bottom: 32px;
    padding: 12px 16px;
    border: 1px solid var(--primary);
    border-radius: var(--radius-medium);
    background: var(--surface);
    color: var(--primary-dark);
    font-size: 15px;
    font-weight: 700;
    box-shadow: none;
}
.employee-mobile-event-history-list {
    padding: 0;
}
.employee-mobile-event-history-list .employee-mobile-history-list-heading {
    margin-bottom: 16px;
}
.employee-mobile-event-history-list .employee-mobile-history-list-heading h3 {
    margin-bottom: 10px;
    color: #608575;
    font-size: 12px;
    letter-spacing: 0.14em;
}
.employee-mobile-event-history-list .employee-mobile-history-list-heading span {
    color: var(--text-primary);
    font-size: 14px;
}
.employee-mobile-event-history-list .employee-mobile-history-row {
    grid-template-columns: minmax(0, 1fr) auto 32px;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    background: var(--surface);
    box-shadow: none;
}
.employee-mobile-event-history-list .employee-mobile-history-row strong {
    color: #2b5544;
    font-size: 14px;
}
.employee-mobile-event-history-list .employee-mobile-history-row small {
    color: var(--text-muted);
    font-size: 11px;
}
.employee-mobile-event-history-list
    .employee-mobile-history-row
    > div:last-of-type
    b {
    color: #d86251;
    font-size: 14px;
}
.employee-mobile-event-history-list
    .employee-mobile-history-row
    > div:last-of-type
    small {
    font-size: 10px;
}
.employee-mobile-event-history-list .employee-mobile-history-delete {
    min-width: 32px;
    min-height: 30px;
    border-radius: var(--radius-small);
    background: #fff0ed;
    color: #d86251;
    font-size: 12px;
}
.employee-mobile-back-link {
    margin-bottom: 16px;
    padding: 8px 0;
    background: transparent;
    color: var(--primary-dark);
    font-size: 13px;
}
.employee-mobile-event-history-page-heading
    + .employee-mobile-event-history-summary {
    margin-top: 0;
}
.employee-mobile-back-link {
    margin-top: 0;
    margin-bottom: 8px;
    padding: 4px 0;
}
.employee-mobile-event-history-page-heading {
    padding-bottom: 16px;
}
.employee-mobile-event-history-title-row {
    margin-top: 10px;
}
.employee-mobile-event-history-title-row h1 {
    margin-bottom: 5px;
    font-size: 24px;
}
.employee-mobile-event-history-title-row p {
    font-size: 13px;
}
.employee-mobile-event-history-mark {
    width: 32px;
    height: 32px;
}
@media (max-width: 380px) {
    .employee-mobile-event-history-summary {
        gap: 10px;
        padding: 16px 12px;
    }
    .employee-mobile-event-history-summary > div + div {
        padding-left: 10px !important;
    }
    .employee-mobile-event-history-summary strong,
    .employee-mobile-event-history-summary
        .employee-mobile-detail-balance-total
        strong {
        font-size: 15px;
    }
}
.employee-mobile-overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.employee-mobile-request-overview-card {
    position: relative;
    display: grid;
    min-height: 126px;
    align-content: start;
    justify-items: start;
    gap: 0;
    padding: 14px 12px 13px;
    overflow: hidden;
    border: 1px solid #dfece5;
    border-radius: 18px;
    background: linear-gradient(155deg, #fff 0%, #f8fcf9 100%);
    color: #29483b;
    text-align: left;
    text-decoration: none;
    box-shadow: 0 5px 14px rgba(30, 70, 51, 0.045);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}
.employee-mobile-request-overview-card::after {
    position: absolute;
    right: -18px;
    bottom: -22px;
    width: 68px;
    height: 68px;
    border: 1px solid #e4f0e8;
    border-radius: 50%;
    content: '';
}
.employee-mobile-request-overview-card .employee-mobile-overview-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(23, 107, 75, 0.08);
    border-radius: 11px;
    font-size: 16px;
}
.employee-mobile-request-overview-card .employee-mobile-overview-icon svg {
    width: 17px;
    height: 17px;
}
.employee-mobile-request-overview-card strong {
    display: block;
    margin-top: 14px;
    color: #1d3b30;
    font-size: 25px;
    font-weight: 800;
    line-height: 1;
}
.employee-mobile-request-overview-card > span:last-child {
    display: block;
    margin-top: 6px;
    max-width: calc(100% - 4px);
    color: #71877a;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.2;
}
.employee-mobile-request-overview-card.is-leave {
    border-top: 3px solid #3eb77d;
}
.employee-mobile-request-overview-card.is-permission {
    border-top: 3px solid #b5a35f;
}
.employee-mobile-request-overview-card.is-overtime {
    border-top: 3px solid #62a99a;
}
.employee-mobile-request-overview-card.is-leave .employee-mobile-overview-icon {
    background: #e5f6ec;
    color: #078557;
}
.employee-mobile-request-overview-card.is-permission
    .employee-mobile-overview-icon {
    background: #f4f2e3;
    color: #897a36;
}
.employee-mobile-request-overview-card.is-overtime
    .employee-mobile-overview-icon {
    background: #e5f3ef;
    color: #287b6b;
}
.employee-mobile-request-overview-card:focus-visible {
    outline: 3px solid rgba(7, 133, 87, 0.2);
    outline-offset: 2px;
}
.employee-mobile-request-overview-card:active {
    transform: scale(0.98);
}
@media (hover: hover) {
    .employee-mobile-request-overview-card:hover {
        border-color: #b9ddc8;
        box-shadow: 0 9px 20px rgba(30, 70, 51, 0.09);
        transform: translateY(-2px);
    }
}

/* Warna employee mobile mengikuti tema company */
.employee-mobile-shell,
.employee-mobile-page {
    background: var(--mobile-background);
}
.employee-mobile-header {
    border-bottom-color: color-mix(in srgb, var(--primary) 10%, white);
}
.employee-mobile-hero {
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(var(--primary-rgb), 0.34),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            color-mix(in srgb, var(--primary-dark) 55%, black),
            var(--primary-dark)
        );
}
.employee-mobile-hero-topline,
.employee-mobile-hero-date,
.employee-mobile-hero-greeting,
.employee-mobile-hero-meta {
    color: color-mix(in srgb, var(--primary) 42%, white);
}
.employee-mobile-attendance-card,
.employee-mobile-attendance-command {
    background: linear-gradient(
        145deg,
        var(--primary-dark),
        color-mix(in srgb, var(--primary-dark) 76%, black)
    );
    box-shadow: 0 12px 24px rgba(var(--primary-dark-rgb), 0.18);
}
.employee-mobile-card-eyebrow,
.employee-mobile-attendance-focus-label,
.employee-mobile-attendance-summary span,
.employee-mobile-attendance-total span,
.employee-mobile-attendance-total small {
    color: color-mix(in srgb, var(--primary) 32%, white);
}
.employee-mobile-attendance-pulse {
    color: color-mix(in srgb, var(--primary) 28%, white);
}
.employee-mobile-attendance-pulse i {
    background: color-mix(in srgb, var(--primary) 45%, white);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.16);
}
.employee-mobile-attendance-hint,
.employee-mobile-attendance-focus-copy > span:last-child {
    color: color-mix(in srgb, var(--primary) 24%, white);
}
.employee-mobile-attendance-orbit {
    border-color: rgba(var(--primary-rgb), 0.45);
    background:
        radial-gradient(
            circle,
            rgba(var(--primary-rgb), 0.25) 0 52%,
            transparent 53%
        ),
        conic-gradient(
            color-mix(in srgb, var(--primary) 40%, white) var(--progress, 50%),
            rgba(255, 255, 255, 0.12) 0
        );
}
.employee-mobile-attendance-orbit span {
    color: color-mix(in srgb, var(--primary) 35%, white);
}
.employee-mobile-attendance-orbit small {
    color: color-mix(in srgb, var(--primary) 30%, white);
}
.employee-mobile-attendance-timeline i {
    border-color: var(--primary-dark);
    background: color-mix(in srgb, var(--primary) 35%, white);
}
.employee-mobile-attendance-timeline span {
    color: color-mix(in srgb, var(--primary) 32%, white);
}
.employee-mobile-attendance-cta {
    color: var(--primary-dark);
}
.employee-mobile-attendance-cta span {
    background: var(--primary-soft);
}
.employee-mobile-attendance-total {
    border-color: rgba(var(--primary-rgb), 0.4);
    background: radial-gradient(
        circle,
        rgba(var(--primary-rgb), 0.24) 0 63%,
        transparent 64%
    );
}
.employee-mobile-overview-card.is-leave .employee-mobile-overview-icon,
.employee-mobile-request-overview-card.is-leave .employee-mobile-overview-icon,
.employee-mobile-informative-empty > span,
.employee-mobile-payslip-icon.is-latest,
.employee-mobile-all-balance-icon,
.employee-mobile-detail-kicker-icon,
.employee-mobile-event-history-mark {
    background: var(--primary-soft);
    color: var(--primary-dark);
}
.employee-mobile-informative-empty > span,
.employee-mobile-detail-kicker {
    color: var(--primary-dark);
}
.employee-mobile-overview-card {
    border-color: color-mix(in srgb, var(--primary) 12%, white) !important;
}
.employee-mobile-overview-card::after {
    border-color: color-mix(in srgb, var(--primary) 10%, white);
}
.employee-mobile-overview-card a {
    color: var(--primary-dark);
}
.employee-mobile-balance-dot {
    background: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
}
.employee-mobile-balance-heading b,
.employee-mobile-all-balance-heading b,
.employee-mobile-detail-balance strong,
.employee-mobile-detail-balance-total strong {
    color: var(--primary-dark);
}
.employee-mobile-balance-progress,
.employee-mobile-all-balance-card .employee-mobile-balance-progress {
    background: color-mix(in srgb, var(--primary) 8%, white);
}
.employee-mobile-balance-progress span,
.employee-mobile-all-balance-card .employee-mobile-balance-progress span {
    background: linear-gradient(
        90deg,
        var(--primary),
        color-mix(in srgb, var(--primary) 55%, white)
    );
}
.employee-mobile-announcement-redesign {
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--primary) 14%, white),
        color-mix(in srgb, var(--primary) 4%, white)
    );
}
.employee-mobile-announcement-label {
    color: var(--primary-dark);
}
.employee-mobile-request-overview-card {
    border-color: color-mix(in srgb, var(--primary) 12%, white);
    background: linear-gradient(
        155deg,
        #fff 0%,
        color-mix(in srgb, var(--primary) 4%, white) 100%
    );
    box-shadow: 0 5px 14px rgba(var(--primary-dark-rgb), 0.045);
}
.employee-mobile-request-overview-card::after {
    border-color: color-mix(in srgb, var(--primary) 10%, white);
}
.employee-mobile-request-overview-card.is-leave {
    border-top-color: var(--primary);
}
.employee-mobile-request-overview-card:focus-visible {
    outline-color: rgba(var(--primary-rgb), 0.2);
}
.employee-mobile-all-balance-card {
    border-color: color-mix(in srgb, var(--primary) 12%, white);
    box-shadow: 0 8px 20px rgba(var(--primary-dark-rgb), 0.055);
}
.employee-mobile-all-balance-card-accent {
    background: linear-gradient(
        180deg,
        var(--primary),
        color-mix(in srgb, var(--primary) 45%, white)
    );
}
.employee-mobile-all-balance-footer small:first-child {
    color: var(--primary-dark);
}
.employee-mobile-calendar-date,
.employee-mobile-calendar-modal-date,
.employee-mobile-calendar-modal-meta {
    background: var(--primary-soft);
    color: var(--primary-dark);
}
.employee-mobile-calendar-modal-status {
    background: color-mix(in srgb, var(--primary) 12%, white);
    color: var(--primary-dark);
}
.employee-mobile-calendar-empty {
    border-color: color-mix(in srgb, var(--primary) 22%, white);
    background: color-mix(in srgb, var(--primary) 4%, white);
}
.employee-mobile-calendar-activity {
    border-color: color-mix(in srgb, var(--primary) 12%, white);
    box-shadow: 0 5px 14px rgba(var(--primary-dark-rgb), 0.04);
}
.employee-mobile-back-link {
    background: var(--primary-soft);
    color: var(--primary-dark);
}
.employee-mobile-history-list-heading span {
    background: var(--primary-soft);
    color: var(--primary-dark);
}
.employee-mobile-history-row a {
    color: var(--primary-dark);
}
.employee-mobile-history-status.is-present,
.employee-mobile-history-status.is-late {
    background: var(--primary-soft);
    color: var(--primary-dark);
}
.employee-mobile-detail-close {
    background: var(--primary-soft);
    color: var(--primary-dark);
}
.employee-mobile-detail-backdrop {
    background: color-mix(in srgb, var(--primary) 5%, white);
}
.employee-mobile-detail-sheet {
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--primary) 5%, white) 0%,
        #fff 32%
    );
}
.employee-mobile-detail-balance {
    border-color: color-mix(in srgb, var(--primary) 20%, white);
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--primary) 14%, white),
        color-mix(in srgb, var(--primary) 6%, white)
    );
    box-shadow: 0 10px 24px rgba(var(--primary-dark-rgb), 0.08);
}
.employee-mobile-detail-balance-total {
    border-left-color: color-mix(in srgb, var(--primary) 18%, white);
}
.employee-mobile-detail-add {
    border-color: color-mix(in srgb, var(--primary) 25%, white);
    color: var(--primary-dark);
}
.employee-mobile-balance-hero {
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--primary-dark) 45%, black) 0%,
        var(--primary-dark) 68%,
        var(--primary) 100%
    );
    box-shadow: 0 14px 28px rgba(var(--primary-dark-rgb), 0.18);
}
.employee-mobile-balance-hero-count {
    color: color-mix(in srgb, var(--primary) 35%, white);
}
.employee-mobile-balance-hero .employee-mobile-overline {
    color: color-mix(in srgb, var(--primary) 32%, white);
}
.employee-mobile-balance-hero > p:last-child {
    color: color-mix(in srgb, var(--primary) 26%, white);
}
.employee-mobile-event-history-summary {
    border-color: color-mix(in srgb, var(--primary) 20%, white);
    background: var(--primary-soft);
}
.employee-mobile-event-history-summary > div + div,
.employee-mobile-detail-balance > div + div {
    border-left-color: color-mix(in srgb, var(--primary) 18%, white) !important;
}
.employee-mobile-nav-item.is-active {
    background: color-mix(in srgb, var(--primary) 12%, white);
    color: var(--primary-dark);
}
.employee-mobile-nav-attendance {
    color: var(--primary-dark);
}
.employee-mobile-nav-attendance .employee-mobile-nav-icon {
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    box-shadow:
        0 7px 18px rgba(var(--primary-rgb), 0.3),
        0 0 0 3px color-mix(in srgb, var(--primary) 6%, white);
}
.employee-mobile-bottom-nav {
    border-color: color-mix(in srgb, var(--primary) 12%, white);
    box-shadow: 0 10px 28px rgba(var(--primary-dark-rgb), 0.14);
}
@media (hover: hover) {
    .employee-mobile-nav-item:not(.is-disabled):not(
            .employee-mobile-nav-attendance
        ):hover {
        background: color-mix(in srgb, var(--primary) 8%, white);
    }
    .employee-mobile-nav-attendance:hover .employee-mobile-nav-icon {
        box-shadow:
            0 10px 22px rgba(var(--primary-rgb), 0.38),
            0 0 0 4px color-mix(in srgb, var(--primary) 6%, white);
    }
    .employee-mobile-request-overview-card:hover {
        border-color: color-mix(in srgb, var(--primary) 25%, white);
        box-shadow: 0 9px 20px rgba(var(--primary-dark-rgb), 0.09);
    }
}

/* Employee profile redesign */
.employee-profile-hero {
    position: relative;
    overflow: hidden;
    margin: 4px 0 14px;
    padding: 18px;
    border-radius: 22px;
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(var(--primary-rgb), 0.28),
            transparent 52%
        ),
        linear-gradient(
            150deg,
            color-mix(in srgb, var(--primary-dark) 88%, black),
            var(--primary-dark)
        );
    box-shadow: 0 12px 26px rgba(var(--primary-dark-rgb), 0.2);
    color: #fff;
}
.employee-profile-hero-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}
.employee-profile-avatar {
    position: relative;
    display: grid;
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.28);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 17px;
    font-weight: 800;
}
.employee-profile-avatar i {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 12px;
    height: 12px;
    border: 2px solid var(--primary-dark);
    border-radius: 50%;
    background: #6fe6a8;
}
.employee-profile-hero-copy {
    min-width: 0;
}
.employee-profile-kicker {
    margin: 0;
    color: color-mix(in srgb, var(--primary) 40%, white);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.employee-profile-hero h1 {
    overflow: hidden;
    margin: 3px 0 0;
    font-size: 19px;
    letter-spacing: -0.03em;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.employee-profile-role {
    overflow: hidden;
    margin: 3px 0 0;
    color: #cfe9dc;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.employee-profile-id {
    align-self: start;
    padding: 4px 9px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #e6f6ee;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.employee-profile-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 14px;
    margin: 16px 0 0;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.employee-profile-facts div {
    min-width: 0;
}
.employee-profile-facts dt {
    margin: 0;
    color: color-mix(in srgb, var(--primary) 34%, white);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.employee-profile-facts dd {
    overflow: hidden;
    margin: 3px 0 0;
    color: #fff;
    font-size: 12px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.employee-profile-card {
    margin-top: 12px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--primary) 12%, white);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(var(--primary-dark-rgb), 0.05);
}
.employee-profile-toggle {
    display: grid;
    width: 100%;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 13px 14px;
    border: 0;
    background: transparent;
    text-align: left;
}
.employee-profile-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 11px;
    background: var(--primary-soft);
    color: var(--primary-dark);
}
.employee-profile-toggle-copy {
    min-width: 0;
}
.employee-profile-toggle-copy strong,
.employee-profile-toggle-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.employee-profile-toggle-copy strong {
    color: #244438;
    font-size: 12.5px;
    font-weight: 750;
}
.employee-profile-toggle-copy small {
    margin-top: 2px;
    color: #8b9b94;
    font-size: 10.5px;
}
.employee-profile-chevron {
    color: #93a59c;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
}
.employee-profile-body {
    padding: 0 14px 14px;
    border-top: 1px solid #eef4f1;
    padding-top: 13px;
}
.employee-profile-form {
    display: grid;
    gap: 12px;
}
.employee-profile-form label {
    display: grid;
    gap: 6px;
    color: #527467;
    font-size: 11px;
    font-weight: 750;
}
.employee-profile-form label > span {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}
.employee-profile-form label b {
    color: #dc3545;
    font-size: 13px;
    font-weight: 800;
}
.employee-profile-form input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #d6e8de;
    border-radius: 11px;
    outline: 0;
    background: #fff;
    color: #29483b;
    font: inherit;
    font-size: 12px;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}
.employee-profile-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, white);
}
.employee-profile-form small {
    color: #c2554d;
    font-size: 10.5px;
}
.employee-profile-form > button {
    margin-top: 2px;
    padding: 12px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}
.employee-profile-form > button:disabled {
    cursor: wait;
    opacity: 0.65;
}
.employee-profile-success {
    margin: 0 0 12px;
    padding: 9px 11px;
    border: 1px solid color-mix(in srgb, var(--primary) 22%, white);
    border-radius: 11px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 650;
}
.employee-profile-form .employee-mobile-password-show {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 650;
}
.employee-profile-form .employee-mobile-password-show input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}
