/*
|--------------------------------------------------------------------------
| Employee Portal
|--------------------------------------------------------------------------
| The employee web portal at /employee. It stands on its own - none of the
| ERP's stylesheets are loaded - so a change to the ERP's global CSS can never
| break it, and so it reads cleanly on a worker's phone.
|
| The visual language is the ERP's house style (Documentation Help Center,
| Settings panel): indigo primary, slate ink, 16/12/9 radii, layered shadows,
| one easing curve, a dark hero band with a masked grid.
|
| Every colour comes from the tokens below, which is what lets the whole
| portal switch between light and dark without a view being touched.
*/

:root {
    color-scheme: light;

    --ep-primary: #4f46e5;
    --ep-primary-600: #4338ca;
    --ep-primary-700: #3730a3;
    --ep-primary-soft: #eef2ff;
    --ep-primary-text: #4338ca;
    --ep-on-primary: #ffffff;
    --ep-ring: rgba(79, 70, 229, .16);

    --ep-bg: #f4f6fb;
    --ep-surface: #ffffff;
    --ep-soft: #f8fafc;
    --ep-softer: #f1f5f9;
    --ep-border: #e4e8f0;
    --ep-border-soft: #eef1f6;

    --ep-ink: #0f172a;
    --ep-ink-2: #334155;
    --ep-muted: #64748b;
    --ep-faint: #94a3b8;

    --ep-success: #047857;
    --ep-success-soft: #ecfdf5;
    --ep-warning: #b45309;
    --ep-warning-soft: #fffbeb;
    --ep-danger: #dc2626;
    --ep-danger-soft: #fef2f2;
    --ep-info: #0369a1;
    --ep-info-soft: #f0f9ff;
    --ep-violet: #7c3aed;
    --ep-violet-soft: #f5f3ff;

    --ep-sidebar: #ffffff;
    --ep-bar: rgba(255, 255, 255, .9);
    --ep-backdrop: rgba(15, 23, 42, .45);

    --ep-radius-lg: 16px;
    --ep-radius: 12px;
    --ep-radius-sm: 9px;

    --ep-shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 2px 6px -2px rgba(15, 23, 42, .06);
    --ep-shadow-md: 0 4px 12px -4px rgba(15, 23, 42, .08), 0 10px 26px -12px rgba(15, 23, 42, .12);
    --ep-shadow-lg: 0 24px 60px -20px rgba(15, 23, 42, .35);

    --ep-ease: cubic-bezier(.4, 0, .2, 1);
    --ep-sidebar-width: 264px;
}

/* Dark: when the system asks for it and nothing else was chosen, or when chosen. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;

        --ep-primary: #6366f1;
        --ep-primary-600: #818cf8;
        --ep-primary-700: #a5b4fc;
        --ep-primary-soft: rgba(99, 102, 241, .16);
        --ep-primary-text: #a5b4fc;
        --ep-ring: rgba(129, 140, 248, .28);

        --ep-bg: #0b1120;
        --ep-surface: #121a2e;
        --ep-soft: #172036;
        --ep-softer: #1b2540;
        --ep-border: #26314d;
        --ep-border-soft: #1f2942;

        --ep-ink: #e8edf7;
        --ep-ink-2: #c3cde0;
        --ep-muted: #8c9bb8;
        --ep-faint: #62728f;

        --ep-success: #34d399;
        --ep-success-soft: rgba(52, 211, 153, .12);
        --ep-warning: #fbbf24;
        --ep-warning-soft: rgba(251, 191, 36, .12);
        --ep-danger: #f87171;
        --ep-danger-soft: rgba(248, 113, 113, .12);
        --ep-info: #38bdf8;
        --ep-info-soft: rgba(56, 189, 248, .12);
        --ep-violet: #a78bfa;
        --ep-violet-soft: rgba(167, 139, 250, .12);

        --ep-sidebar: #0f1729;
        --ep-bar: rgba(11, 17, 32, .9);
        --ep-backdrop: rgba(2, 6, 23, .65);

        --ep-shadow-sm: 0 1px 2px rgba(2, 6, 23, .3);
        --ep-shadow-md: 0 8px 22px -10px rgba(2, 6, 23, .6);
        --ep-shadow-lg: 0 24px 60px -20px rgba(2, 6, 23, .8);
    }
}

:root[data-theme="dark"] {
    color-scheme: dark;

    --ep-primary: #6366f1;
    --ep-primary-600: #818cf8;
    --ep-primary-700: #a5b4fc;
    --ep-primary-soft: rgba(99, 102, 241, .16);
    --ep-primary-text: #a5b4fc;
    --ep-ring: rgba(129, 140, 248, .28);

    --ep-bg: #0b1120;
    --ep-surface: #121a2e;
    --ep-soft: #172036;
    --ep-softer: #1b2540;
    --ep-border: #26314d;
    --ep-border-soft: #1f2942;

    --ep-ink: #e8edf7;
    --ep-ink-2: #c3cde0;
    --ep-muted: #8c9bb8;
    --ep-faint: #62728f;

    --ep-success: #34d399;
    --ep-success-soft: rgba(52, 211, 153, .12);
    --ep-warning: #fbbf24;
    --ep-warning-soft: rgba(251, 191, 36, .12);
    --ep-danger: #f87171;
    --ep-danger-soft: rgba(248, 113, 113, .12);
    --ep-info: #38bdf8;
    --ep-info-soft: rgba(56, 189, 248, .12);
    --ep-violet: #a78bfa;
    --ep-violet-soft: rgba(167, 139, 250, .12);

    --ep-sidebar: #0f1729;
    --ep-bar: rgba(11, 17, 32, .9);
    --ep-backdrop: rgba(2, 6, 23, .65);

    --ep-shadow-sm: 0 1px 2px rgba(2, 6, 23, .3);
    --ep-shadow-md: 0 8px 22px -10px rgba(2, 6, 23, .6);
    --ep-shadow-lg: 0 24px 60px -20px rgba(2, 6, 23, .8);
}

/* ---- Base ------------------------------------------------------------ */

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body.ep {
    margin: 0;
    min-height: 100vh;
    background: var(--ep-bg);
    color: var(--ep-ink-2);
    font-family: "Inter", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

/* Resets carry no weight (:where), so any component class below wins over them. */
:where(.ep) :where(h1, h2, h3, h4, h5, h6) {
    margin: 0;
    color: var(--ep-ink);
    letter-spacing: -.012em;
    line-height: 1.3;
}

:where(.ep) :where(p) { margin: 0; }
:where(.ep) :where(a) { color: var(--ep-primary-text); text-decoration: none; }
:where(.ep) :where(a:hover) { text-decoration: underline; }
:where(.ep) :focus-visible { outline: 2px solid var(--ep-primary); outline-offset: 2px; }
:where(.ep) :where(img) { max-width: 100%; }
:where(.ep) :where(small) { font-size: 12px; }

.ep-muted { color: var(--ep-muted); }
.ep-nowrap { white-space: nowrap; }
.ep-mono { font-variant-numeric: tabular-nums; }
.ep-text-end { text-align: right; }
.ep-mt { margin-top: 18px; }
.ep-mb { margin-bottom: 18px; }

/* ---- Shell: menu down the left, the page on the right ---------------- */

.ep-app { display: flex; align-items: stretch; min-height: 100vh; }
.ep-main { flex: 1 1 auto; min-width: 0; }

.ep-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 28px calc(56px + env(safe-area-inset-bottom, 0px));
}

.ep-sidebar {
    flex: 0 0 var(--ep-sidebar-width);
    width: var(--ep-sidebar-width);
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--ep-sidebar);
    border-right: 1px solid var(--ep-border);
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    z-index: 40;
}

.ep-sidebar__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 16px 12px;
}

.ep-sidebar .ep-sidebar__close { display: none; margin-left: auto; }

.ep-brand { display: flex; align-items: center; gap: 11px; min-width: 0; color: inherit; }
.ep-brand:hover { text-decoration: none; }

.ep-brand__mark {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 11px;
    background: linear-gradient(135deg, #6366f1, #4f46e5 55%, #3730a3);
    color: #fff;
    font-size: 16px;
    box-shadow: 0 8px 18px -8px rgba(79, 70, 229, .7);
}

.ep-brand__mark img { width: 100%; height: 100%; object-fit: contain; background: #fff; }

.ep-brand__text { min-width: 0; }

.ep-brand__text strong {
    display: block;
    color: var(--ep-ink);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ep-brand__text span {
    display: block;
    color: var(--ep-muted);
    font-size: 11.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* The list scrolls on its own, so a long menu never pushes the session
   controls off the bottom of the screen. It scrolls without a visible bar:
   the wheel, a finger or the keyboard move it, and no grey track sits beside
   the menu. */
.ep-sidenav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px 12px 16px;
}

.ep-sidenav::-webkit-scrollbar { display: none; width: 0; height: 0; }

.ep-sidenav__group {
    margin: 18px 10px 6px;
    color: var(--ep-faint);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.ep-sidenav__group:first-child { margin-top: 6px; }

.ep-sidenav__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }

.ep-sidenav__link {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: var(--ep-radius-sm);
    color: var(--ep-muted) !important;
    font-size: 13.5px;
    font-weight: 600;
    transition: background .18s var(--ep-ease), color .18s var(--ep-ease);
}

.ep-sidenav__link i { width: 18px; flex: 0 0 18px; text-align: center; font-size: 15px; }
.ep-sidenav__link:hover { background: var(--ep-softer); color: var(--ep-ink) !important; text-decoration: none !important; }

.ep-sidenav__link.is-active {
    background: var(--ep-primary-soft);
    color: var(--ep-primary-text) !important;
    box-shadow: inset 3px 0 0 var(--ep-primary);
}

.ep-sidenav__badge {
    margin-left: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--ep-primary);
    color: var(--ep-on-primary);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.ep-sidebar__foot { border-top: 1px solid var(--ep-border); padding: 14px 16px 16px; }

.ep-who { display: flex; align-items: center; gap: 10px; min-width: 0; margin-bottom: 12px; }
.ep-who__text { min-width: 0; }

.ep-who__text strong {
    display: block;
    color: var(--ep-ink);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ep-who__text span { display: block; color: var(--ep-muted); font-size: 11.5px; }

.ep-sidebar__actions { display: flex; align-items: center; gap: 8px; }
.ep-sidebar__actions form { margin: 0; flex: 1 1 auto; }

.ep-avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: var(--ep-primary-soft);
    color: var(--ep-primary-text);
    font-size: 13px;
    font-weight: 700;
}

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

.ep-avatar--xl {
    width: 84px;
    height: 84px;
    flex-basis: 84px;
    font-size: 28px;
    border: 3px solid rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.ep-iconbtn {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius-sm);
    background: var(--ep-surface);
    color: var(--ep-muted);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: color .18s var(--ep-ease), border-color .18s var(--ep-ease), background .18s var(--ep-ease);
}

.ep-iconbtn:hover { color: var(--ep-ink); border-color: var(--ep-faint); text-decoration: none !important; }
.ep-iconbtn--text { width: auto; padding: 0 10px; font-size: 12px; }

/* The language menu, when there are more than two languages to choose from. */
.ep-lang { position: relative; flex: 0 0 auto; }
.ep-lang > summary { display: inline-flex; gap: 6px; list-style: none; user-select: none; }
.ep-lang > summary::-webkit-details-marker { display: none; }
.ep-lang[open] > summary { color: var(--ep-ink); border-color: var(--ep-faint); }

.ep-lang__menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 60;
    min-width: 190px;
    max-height: min(340px, 60vh);
    overflow-y: auto;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--ep-surface);
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius);
    box-shadow: var(--ep-shadow-md);
}

.ep-lang--up .ep-lang__menu { top: auto; bottom: calc(100% + 6px); left: 0; right: auto; }

.ep-lang__menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    border-radius: var(--ep-radius-sm);
    color: var(--ep-ink);
    font-size: 14px;
    text-decoration: none;
}

.ep-lang__menu a:hover { background: var(--ep-soft); text-decoration: none; }
.ep-lang__menu a small { color: var(--ep-faint); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.ep-lang__menu a.is-active { background: var(--ep-primary-soft); color: var(--ep-primary-text); font-weight: 600; }

/* The theme button shows the theme it switches to. */
.ep-theme__to-light { display: none; }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .ep-theme__to-dark { display: none; }
    :root:not([data-theme="light"]) .ep-theme__to-light { display: inline; }
}

:root[data-theme="dark"] .ep-theme__to-dark { display: none; }
:root[data-theme="dark"] .ep-theme__to-light { display: inline; }

.ep-mobilebar,
.ep-backdrop { display: none; }

@media (max-width: 960px) {
    /* The bar sits above the page, not beside it; the menu slides over both. */
    .ep-app { display: block; }

    .ep-mobilebar {
        position: sticky;
        top: 0;
        z-index: 30;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px;
        background: var(--ep-bar);
        border-bottom: 1px solid var(--ep-border);
        backdrop-filter: blur(10px);
    }

    .ep-mobilebar .ep-brand { flex: 1 1 auto; }

    .ep-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        transform: translateX(-102%);
        transition: transform .26s var(--ep-ease);
        box-shadow: var(--ep-shadow-lg);
    }

    .ep-sidebar .ep-sidebar__close { display: grid; }

    .ep-app.is-sidebar-open .ep-sidebar { transform: none; }

    .ep-app.is-sidebar-open .ep-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 35;
        background: var(--ep-backdrop);
    }

    .ep-shell { padding: 16px 16px calc(48px + env(safe-area-inset-bottom, 0px)); }
}

/* ---- Hero ------------------------------------------------------------- */

/* A compact heading card, drawn like the back office's shared hero
   (application-info.css): soft surface, indigo edge and a faint dot field in
   the far corner. The employee's avatar is the tile, the date or section name
   is a chip beside the greeting, and the status chip sits on the right. */
.ep-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 68px;
    padding: 11px 14px 11px 15px;
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius);
    color: var(--ep-ink-2);
    background:
        radial-gradient(90% 220% at 100% 0%, color-mix(in srgb, var(--ep-primary) 9%, transparent) 0%, transparent 55%),
        var(--ep-soft);
    box-shadow: var(--ep-shadow-sm);
}

.ep-hero::before {
    content: "";
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 0;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, var(--ep-primary), color-mix(in srgb, var(--ep-primary) 35%, transparent));
}

.ep-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-image: radial-gradient(color-mix(in srgb, var(--ep-primary) 26%, transparent) 1px, transparent 1.3px);
    background-size: 12px 12px;
    -webkit-mask-image: radial-gradient(38% 150% at 100% 0%, #000 0%, transparent 100%);
    mask-image: radial-gradient(38% 150% at 100% 0%, #000 0%, transparent 100%);
    pointer-events: none;
}

.ep-hero > * { position: relative; z-index: 1; }
.ep-hero__main { display: flex; align-items: center; gap: 12px; min-width: 0; }

.ep-hero__text {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 10px;
    min-width: 0;
}

.ep-hero .ep-avatar--xl {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    font-size: 16px;
}

.ep-hero h1 {
    order: 1;
    margin: 0;
    color: var(--ep-ink);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.015em;
    line-height: 1.3;
}

.ep-hero p {
    order: 3;
    flex-basis: 100%;
    color: var(--ep-muted);
    font-size: 13px;
    line-height: 1.5;
}

.ep-hero__aside { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }

.ep-eyebrow {
    order: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 1px 9px;
    border: 1px solid color-mix(in srgb, var(--ep-primary) 16%, transparent);
    border-radius: 999px;
    background: var(--ep-primary-soft);
    color: var(--ep-primary-700);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;
    white-space: nowrap;
}

.ep-eyebrow i { font-size: 11px; }

.ep-hero__chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    padding: 5px 12px;
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius-sm);
    background: var(--ep-surface);
    color: var(--ep-ink);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.ep-hero__chip i { font-size: 17px; color: var(--ep-primary); }
.ep-hero__chip strong { display: block; font-size: 13px; line-height: 1.25; }
.ep-hero__chip span { display: block; color: var(--ep-muted); font-size: 12px; line-height: 1.3; }

@media (max-width: 720px) {
    .ep-hero { flex-direction: column; align-items: flex-start; gap: 10px; }
    .ep-hero__aside { justify-content: flex-start; }
}

/* ---- Page heading (screens without a hero) --------------------------- */

.ep-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.ep-page-head h1 { font-size: 24px; font-weight: 700; }
.ep-page-head p { margin-top: 3px; color: var(--ep-muted); font-size: 14px; }
.ep-page-head__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- Cards --------------------------------------------------------------- */

.ep-grid { display: grid; gap: 18px; }
.ep-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ep-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ep-grid--main { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; }

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

@media (max-width: 720px) {
    .ep-grid--2,
    .ep-grid--3 { grid-template-columns: minmax(0, 1fr); }
}

.ep-stack { display: grid; gap: 18px; align-content: start; }

.ep-card {
    min-width: 0;
    background: var(--ep-surface);
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius-lg);
    box-shadow: var(--ep-shadow-sm);
}

.ep-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--ep-border-soft);
}

.ep-card__title { min-width: 0; flex: 1 1 auto; }
.ep-card__title h2 { font-size: 15.5px; font-weight: 700; }
.ep-card__title p { margin-top: 1px; color: var(--ep-muted); font-size: 12.5px; }
.ep-card__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ep-card__body { padding: 18px 20px; }
.ep-card__body--flush { padding: 0; }

.ep-card__foot {
    padding: 12px 20px;
    border-top: 1px solid var(--ep-border-soft);
    color: var(--ep-muted);
    font-size: 12.5px;
}

.ep-tile {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--ep-primary-soft);
    color: var(--ep-primary-text);
    font-size: 16px;
}

.ep-tile--success { background: var(--ep-success-soft); color: var(--ep-success); }
.ep-tile--warning { background: var(--ep-warning-soft); color: var(--ep-warning); }
.ep-tile--danger { background: var(--ep-danger-soft); color: var(--ep-danger); }
.ep-tile--info { background: var(--ep-info-soft); color: var(--ep-info); }
.ep-tile--violet { background: var(--ep-violet-soft); color: var(--ep-violet); }

/* ---- KPI tiles ---------------------------------------------------------- */

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

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

.ep-kpi {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--ep-surface);
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius-lg);
    box-shadow: var(--ep-shadow-sm);
    transition: transform .2s var(--ep-ease), box-shadow .2s var(--ep-ease);
}

.ep-kpi:hover { transform: translateY(-1px); box-shadow: var(--ep-shadow-md); }
.ep-kpi .ep-tile { width: 44px; height: 44px; flex-basis: 44px; font-size: 18px; }
.ep-kpi__value { color: var(--ep-ink); font-size: 28px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ep-kpi__value small { color: var(--ep-muted); font-size: 13px; font-weight: 600; }
.ep-kpi__label { margin-top: 2px; color: var(--ep-muted); font-size: 12.5px; font-weight: 600; }

@media (max-width: 520px) {
    .ep-kpi { padding: 13px 14px; gap: 10px; }
    .ep-kpi .ep-tile { width: 36px; height: 36px; flex-basis: 36px; font-size: 15px; }
    .ep-kpi__value { font-size: 22px; }
}

/* ---- Buttons ------------------------------------------------------------ */

.ep-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: var(--ep-radius-sm);
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none !important;
    transition: background .18s var(--ep-ease), border-color .18s var(--ep-ease), color .18s var(--ep-ease), box-shadow .18s var(--ep-ease), transform .18s var(--ep-ease);
}

.ep-btn:active { transform: translateY(1px); }
.ep-btn[disabled] { opacity: .6; cursor: not-allowed; }

.ep-btn--primary {
    background: linear-gradient(180deg, #5b54f0, var(--ep-primary));
    color: #fff !important;
    box-shadow: 0 8px 18px -10px rgba(79, 70, 229, .9);
}

.ep-btn--primary:hover { background: var(--ep-primary-600); }

.ep-btn--ghost {
    border-color: var(--ep-border);
    background: var(--ep-surface);
    color: var(--ep-ink-2) !important;
}

.ep-btn--ghost:hover { border-color: var(--ep-faint); color: var(--ep-ink) !important; }

.ep-btn--danger { border-color: transparent; background: var(--ep-danger-soft); color: var(--ep-danger) !important; }
.ep-btn--danger:hover { background: var(--ep-danger); color: #fff !important; }

.ep-btn--sm { min-height: 34px; padding: 0 12px; font-size: 12.5px; }
.ep-btn--block { width: 100%; }

.ep-btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }

.ep-btn.is-busy::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .55);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ep-spin .7s linear infinite;
}

.ep-btn--ghost.is-busy::after { border-color: var(--ep-border); border-top-color: var(--ep-primary); }

@keyframes ep-spin { to { transform: rotate(360deg); } }

/* ---- Forms -------------------------------------------------------------- */

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

@media (max-width: 560px) { .ep-form__row { grid-template-columns: minmax(0, 1fr); } }

.ep-field { display: grid; gap: 6px; min-width: 0; }

.ep-field > label {
    color: var(--ep-ink);
    font-size: 13px;
    font-weight: 600;
}

.ep-field > label .ep-req { color: var(--ep-danger); }
.ep-hint { color: var(--ep-muted); font-size: 12px; }

.ep-input,
.ep-select,
.ep-textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 13px;
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius-sm);
    background: var(--ep-surface);
    color: var(--ep-ink);
    font: inherit;
    font-size: 14px;
    transition: border-color .18s var(--ep-ease), box-shadow .18s var(--ep-ease);
}

.ep-textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.ep-input::placeholder, .ep-textarea::placeholder { color: var(--ep-faint); }

.ep-input:focus,
.ep-select:focus,
.ep-textarea:focus {
    outline: none;
    border-color: var(--ep-primary);
    box-shadow: 0 0 0 4px var(--ep-ring);
}

.ep-input.is-invalid,
.ep-select.is-invalid,
.ep-textarea.is-invalid { border-color: var(--ep-danger); }

.ep-input[type="file"] { padding: 8px 10px; }

.ep-error { color: var(--ep-danger); font-size: 12.5px; font-weight: 500; }
.ep-error:empty { display: none; }

.ep-password { position: relative; }
.ep-password .ep-input { padding-right: 46px; }

.ep-password__toggle {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--ep-muted);
    cursor: pointer;
}

.ep-password__toggle:hover { color: var(--ep-ink); }

/* A month or year stepper: previous, the period, next. */
.ep-stepper {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius);
    background: var(--ep-surface);
}

.ep-stepper .ep-iconbtn { width: 34px; height: 34px; border: 0; }
.ep-stepper .ep-iconbtn[aria-disabled="true"] { opacity: .35; pointer-events: none; }

.ep-stepper__label {
    min-width: 132px;
    padding: 0 6px;
    color: var(--ep-ink);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

/* ---- Alerts & badges --------------------------------------------------- */

.ep-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: var(--ep-radius);
    font-size: 13.5px;
}

.ep-alert i { margin-top: 2px; font-size: 16px; }
.ep-alert--info { background: var(--ep-primary-soft); color: var(--ep-primary-text); }
.ep-alert--success { background: var(--ep-success-soft); color: var(--ep-success); }
.ep-alert--warning { background: var(--ep-warning-soft); color: var(--ep-warning); }
.ep-alert--danger { background: var(--ep-danger-soft); color: var(--ep-danger); }

.ep-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--ep-softer);
    color: var(--ep-ink-2);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.ep-badge--success { background: var(--ep-success-soft); color: var(--ep-success); }
.ep-badge--warning { background: var(--ep-warning-soft); color: var(--ep-warning); }
.ep-badge--danger { background: var(--ep-danger-soft); color: var(--ep-danger); }
.ep-badge--info { background: var(--ep-info-soft); color: var(--ep-info); }
.ep-badge--primary { background: var(--ep-primary-soft); color: var(--ep-primary-text); }
.ep-badge--violet { background: var(--ep-violet-soft); color: var(--ep-violet); }

/* ---- Tables ------------------------------------------------------------- */

.ep-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

.ep-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }

.ep-table th {
    padding: 11px 16px;
    border-bottom: 1px solid var(--ep-border);
    background: var(--ep-soft);
    color: var(--ep-muted);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .05em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.ep-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--ep-border-soft);
    color: var(--ep-ink-2);
    vertical-align: middle;
}

.ep-table tbody tr { transition: background .15s var(--ep-ease); }
.ep-table tbody tr:hover { background: var(--ep-soft); }
.ep-table tbody tr:last-child td { border-bottom: 0; }
.ep-table .ep-text-end { text-align: right; }
.ep-table strong { color: var(--ep-ink); }

.ep-table tfoot td,
.ep-table tfoot th {
    padding: 12px 16px;
    border-top: 1px solid var(--ep-border);
    background: var(--ep-soft);
    color: var(--ep-ink);
    font-weight: 700;
}

/* ---- Details lists ------------------------------------------------------ */

.ep-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0; }
.ep-details--single { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 560px) { .ep-details { grid-template-columns: minmax(0, 1fr); } }

.ep-details__item { padding: 11px 0; border-bottom: 1px dashed var(--ep-border); min-width: 0; }
.ep-details dt { color: var(--ep-muted); font-size: 12px; font-weight: 600; }
.ep-details dd { margin: 2px 0 0; color: var(--ep-ink); font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.ep-details dd.is-empty { color: var(--ep-faint); font-weight: 400; }

/* ---- Rows list (leave, notices, notifications) ------------------------- */

.ep-rows { list-style: none; margin: 0; padding: 0; }

.ep-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--ep-border-soft);
}

.ep-row:last-child { border-bottom: 0; }
.ep-row__body { flex: 1 1 auto; min-width: 0; }

.ep-row__title {
    display: block;
    color: var(--ep-ink);
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ep-row__meta { display: block; margin-top: 2px; color: var(--ep-muted); font-size: 12.5px; }
.ep-row__aside { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
a.ep-row { color: inherit; transition: background .15s var(--ep-ease); }
a.ep-row:hover { background: var(--ep-soft); text-decoration: none; }

.ep-row.is-unread { background: linear-gradient(90deg, var(--ep-primary-soft), transparent 60%); }

.ep-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--ep-primary); }

/* ---- Progress ------------------------------------------------------------ */

.ep-progress { height: 7px; overflow: hidden; border-radius: 999px; background: var(--ep-softer); }

.ep-progress__bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #818cf8, var(--ep-primary));
    transition: width .5s var(--ep-ease);
}

.ep-progress__bar--warning { background: linear-gradient(90deg, #fbbf24, #d97706); }

/* ---- Leave balance ----------------------------------------------------- */

.ep-balance {
    padding: 16px 18px;
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius);
    background: var(--ep-surface);
}

.ep-balance__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ep-balance__name { color: var(--ep-ink); font-size: 14px; font-weight: 700; }
.ep-balance__left { color: var(--ep-ink); font-size: 24px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.ep-balance__left small { color: var(--ep-muted); font-size: 12px; font-weight: 600; }
.ep-balance__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin-top: 9px; color: var(--ep-muted); font-size: 12px; }
.ep-balance__meta .ep-badge { font-size: 11px; padding: 2px 8px; }

.ep-balances { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }

/* ---- Attendance calendar ------------------------------------------------ */

.ep-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--ep-muted); font-size: 12.5px; }
.ep-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ep-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.ep-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }

.ep-calendar__dow {
    padding: 0 4px 2px;
    color: var(--ep-faint);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-align: center;
    text-transform: uppercase;
}

.ep-day {
    position: relative;
    min-height: 84px;
    padding: 8px 9px;
    border: 1px solid var(--ep-border-soft);
    border-radius: 10px;
    background: var(--ep-soft);
    font-size: 11.5px;
    line-height: 1.35;
    overflow: hidden;
}

.ep-day__num { display: flex; justify-content: space-between; align-items: center; color: var(--ep-ink); font-size: 13px; font-weight: 700; }
.ep-day__line { display: block; margin-top: 3px; color: var(--ep-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-day__tag { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }

.ep-day.is-blank { visibility: hidden; }
.ep-day.is-none { opacity: .5; }
.ep-day.is-today { box-shadow: inset 0 0 0 2px var(--ep-primary); }

.ep-day.is-present { background: var(--ep-success-soft); border-color: transparent; }
.ep-day.is-present .ep-day__tag { color: var(--ep-success); }
.ep-day.is-late { background: var(--ep-warning-soft); border-color: transparent; }
.ep-day.is-late .ep-day__tag { color: var(--ep-warning); }
.ep-day.is-leave { background: var(--ep-violet-soft); border-color: transparent; }
.ep-day.is-leave .ep-day__tag { color: var(--ep-violet); }
.ep-day.is-holiday { background: var(--ep-info-soft); border-color: transparent; }
.ep-day.is-holiday .ep-day__tag { color: var(--ep-info); }
.ep-day.is-no_record { background: var(--ep-surface); border-style: dashed; }
.ep-day.is-no_record .ep-day__tag { color: var(--ep-faint); }

.ep-sw--present { background: var(--ep-success); }
.ep-sw--late { background: var(--ep-warning); }
.ep-sw--leave { background: var(--ep-violet); }
.ep-sw--holiday { background: var(--ep-info); }
.ep-sw--no_record { background: var(--ep-border); }

/* On a phone the calendar becomes a list: seven columns of times do not fit. */
.ep-daylist { display: none; }

@media (max-width: 760px) {
    .ep-calendar { display: none; }
    .ep-daylist { display: block; }
}

/* ---- Pane loading (month / year switch without a page load) ------------ */

[data-ep-pane] { transition: opacity .18s var(--ep-ease); }
[data-ep-pane].is-loading { opacity: .45; pointer-events: none; }

/* ---- Payslip ------------------------------------------------------------ */

.ep-net {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    border-radius: var(--ep-radius-lg);
    background: linear-gradient(120deg, var(--ep-success-soft), var(--ep-primary-soft));
    border: 1px solid var(--ep-border);
}

.ep-net__label { color: var(--ep-muted); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ep-net__value { color: var(--ep-ink); font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }

.ep-lines { list-style: none; margin: 0; padding: 0; }

.ep-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 20px;
    border-bottom: 1px solid var(--ep-border-soft);
    font-size: 13.5px;
}

.ep-line span { color: var(--ep-ink-2); }
.ep-line small { display: block; color: var(--ep-muted); }
.ep-line strong { color: var(--ep-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ep-line--sub span { padding-left: 14px; color: var(--ep-muted); }
.ep-line--sub strong { color: var(--ep-muted); font-weight: 500; }
.ep-line--total { background: var(--ep-soft); border-bottom: 0; font-weight: 700; }
.ep-line--total span { color: var(--ep-ink); font-weight: 700; }

/* ---- Timeline (salary & career) ---------------------------------------- */

.ep-timeline { list-style: none; margin: 0; padding: 4px 20px 8px; }

.ep-timeline li {
    position: relative;
    padding: 12px 0 14px 30px;
    border-left: 2px solid var(--ep-border);
    margin-left: 8px;
}

.ep-timeline li:last-child { border-left-color: transparent; }

.ep-timeline__dot {
    position: absolute;
    left: -9px;
    top: 13px;
    width: 16px;
    height: 16px;
    border: 3px solid var(--ep-surface);
    border-radius: 50%;
    background: var(--ep-primary);
    box-shadow: 0 0 0 1px var(--ep-border);
}

.ep-timeline__dot--success { background: var(--ep-success); }
.ep-timeline__dot--danger { background: var(--ep-danger); }
.ep-timeline__dot--violet { background: var(--ep-violet); }

.ep-timeline__date { color: var(--ep-muted); font-size: 12px; font-weight: 600; }
.ep-timeline__title { margin-top: 2px; color: var(--ep-ink); font-size: 14px; font-weight: 700; }
.ep-timeline__text { margin-top: 2px; color: var(--ep-ink-2); font-size: 13px; }

/* ---- Notice ------------------------------------------------------------- */

.ep-prose { color: var(--ep-ink-2); font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.ep-prose p { margin: 0 0 12px; }
.ep-prose ul, .ep-prose ol { padding-left: 22px; }
.ep-prose table { border-collapse: collapse; }
.ep-prose td, .ep-prose th { padding: 6px 10px; border: 1px solid var(--ep-border); }

/* ---- Empty state ---------------------------------------------------------- */

.ep-empty { padding: 34px 20px; text-align: center; color: var(--ep-muted); }

.ep-empty__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--ep-softer);
    color: var(--ep-faint);
    font-size: 24px;
}

.ep-empty strong { display: block; margin-bottom: 3px; color: var(--ep-ink); font-size: 14.5px; }
.ep-empty p { font-size: 13px; }

/* ---- Modal & confirm ------------------------------------------------------ */

.ep-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 18px;
    background: var(--ep-backdrop);
    opacity: 0;
    transition: opacity .2s var(--ep-ease);
}

.ep-modal.is-open { opacity: 1; }

.ep-modal__dialog {
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    background: var(--ep-surface);
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius-lg);
    box-shadow: var(--ep-shadow-lg);
    transform: translateY(10px) scale(.98);
    transition: transform .22s var(--ep-ease);
}

.ep-modal.is-open .ep-modal__dialog { transform: none; }
.ep-modal__dialog--sm { max-width: 420px; }

.ep-modal__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--ep-border-soft);
}

.ep-modal__head h2 { flex: 1 1 auto; font-size: 16px; font-weight: 700; }
.ep-modal__body { padding: 18px 20px; }

.ep-modal__foot {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 20px;
    border-top: 1px solid var(--ep-border-soft);
}

/* ---- Toasts --------------------------------------------------------------- */

.ep-toasts {
    position: fixed;
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    z-index: 200;
    display: grid;
    gap: 10px;
    width: min(380px, calc(100vw - 36px));
}

.ep-toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 15px;
    border: 1px solid var(--ep-border);
    border-left: 4px solid var(--ep-primary);
    border-radius: var(--ep-radius);
    background: var(--ep-surface);
    color: var(--ep-ink);
    box-shadow: var(--ep-shadow-lg);
    font-size: 13.5px;
    animation: ep-toast-in .25s var(--ep-ease);
}

.ep-toast i { margin-top: 2px; }
.ep-toast--success { border-left-color: var(--ep-success); }
.ep-toast--success i { color: var(--ep-success); }
.ep-toast--error { border-left-color: var(--ep-danger); }
.ep-toast--error i { color: var(--ep-danger); }

@keyframes ep-toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ---- Sign-in ---------------------------------------------------------------- */

.ep-auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

.ep-auth__brand {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 30px;
    padding: 44px 48px;
    color: #fff;
    background:
        radial-gradient(120% 90% at 90% -10%, rgba(129, 140, 248, .5) 0%, rgba(129, 140, 248, 0) 60%),
        radial-gradient(90% 70% at -10% 110%, rgba(99, 102, 241, .35) 0%, rgba(99, 102, 241, 0) 60%),
        linear-gradient(135deg, #1e2144 0%, #2f3170 55%, #4338ca 100%);
}

.ep-auth__brand::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(80% 80% at 20% 10%, #000 0%, transparent 75%);
    mask-image: radial-gradient(80% 80% at 20% 10%, #000 0%, transparent 75%);
    pointer-events: none;
}

.ep-auth__brand > * { position: relative; z-index: 1; }
.ep-auth__brand .ep-brand__text strong { color: #fff; font-size: 15px; }
.ep-auth__brand .ep-brand__text span { color: rgba(233, 237, 250, .72); }

.ep-auth__pitch h1 { margin: 14px 0 10px; color: #fff; font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -.025em; }
.ep-auth__pitch p { max-width: 460px; color: rgba(233, 237, 250, .8); font-size: 15.5px; }

.ep-auth__features { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; max-width: 460px; }
.ep-auth__features li { display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, .92); font-size: 14px; }

.ep-auth__features i {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(199, 210, 254, .24);
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    color: #c7d2fe;
}

.ep-auth__foot { color: rgba(233, 237, 250, .6); font-size: 12px; }

.ep-auth__panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 24px;
}

.ep-auth__tools { position: absolute; top: 18px; right: 18px; display: flex; gap: 8px; z-index: 5; }

.ep-auth__card { width: 100%; max-width: 400px; margin: 0 auto; }
.ep-auth__card h2 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.ep-auth__card > p { margin: 6px 0 24px; color: var(--ep-muted); font-size: 14px; }
.ep-auth__help { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--ep-border); color: var(--ep-muted); font-size: 12.5px; }

@media (max-width: 900px) {
    .ep-auth { grid-template-columns: minmax(0, 1fr); }
    .ep-auth__brand { padding: 26px 22px 30px; gap: 14px; }
    .ep-auth__pitch h1 { font-size: 26px; margin: 12px 0 6px; }
    .ep-auth__features, .ep-auth__foot { display: none; }
    .ep-auth__panel { justify-content: flex-start; padding: 28px 18px 40px; }
    .ep-auth__tools { position: static; justify-content: flex-end; margin-bottom: 8px; }
}

/* ---- Print: only the payslip frame prints, never the portal chrome ------ */

.ep-print-frame { position: fixed; width: 0; height: 0; border: 0; visibility: hidden; }

/* ---- Chip: a small status card beside a page heading ------------------- */

.ep-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius);
    background: var(--ep-surface);
    color: var(--ep-ink);
    box-shadow: var(--ep-shadow-sm);
}

.ep-chip i { color: var(--ep-primary); font-size: 20px; }
.ep-chip strong { display: block; font-size: 14px; line-height: 1.25; }
.ep-chip span { display: block; color: var(--ep-muted); font-size: 12px; }

/* ---- Request kinds: a card that opens a request form ------------------- */

.ep-request-kind {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px 18px;
    font: inherit;
    text-align: left;
    color: inherit;
    cursor: pointer;
    transition: transform .2s var(--ep-ease), box-shadow .2s var(--ep-ease), border-color .2s var(--ep-ease);
}

.ep-request-kind:hover { transform: translateY(-1px); box-shadow: var(--ep-shadow-md); border-color: var(--ep-primary); }
.ep-request-kind .ep-tile { width: 44px; height: 44px; flex-basis: 44px; font-size: 18px; }
.ep-request-kind__text { flex: 1 1 auto; min-width: 0; }
.ep-request-kind__text strong { display: block; color: var(--ep-ink); font-size: 14.5px; }
.ep-request-kind__text span { display: block; margin-top: 2px; color: var(--ep-muted); font-size: 12.5px; }
.ep-request-kind.is-busy .ep-tile { opacity: .5; }

/* A past day on the attendance calendar opens a correction request. */
.ep-day[data-ep-modal] { cursor: pointer; transition: box-shadow .15s var(--ep-ease); }
.ep-day[data-ep-modal]:hover { box-shadow: inset 0 0 0 2px var(--ep-primary); }
