@font-face {
    font-family: "Sole Repsol Display";
    src: local("Sole Repsol Display Regular"), local("SoleRepsolDisplay-Regular");
    font-weight: 400;
}

@font-face {
    font-family: "Sole Repsol Display";
    src: local("Sole Repsol Display Bold"), local("SoleRepsolDisplay-Bold");
    font-weight: 700;
}

@font-face {
    font-family: "Sole Repsol Display";
    src: local("Sole Repsol Display xBold"), local("SoleRepsolDisplay-xBold");
    font-weight: 800;
}

html.fi {
    color-scheme: light;
    --font-family: "Sole Repsol Display", "Inter Variable", sans-serif;
    --latco-night: #0a1a2f;
    --latco-steel: #3f5c79;
    --latco-terracotta: #e39b63;
    --latco-yellow: #f0d98a;
    --latco-navy-logo: #001737;
    --latco-logo-surface: #fff;
    --latco-gradient: linear-gradient(135deg, #e6932a, #c12a3a);
}

html.fi.dark {
    color-scheme: dark;
    --latco-logo-surface: var(--latco-navy-logo);
}

.fi-panel-workforce.fi-body {
    background-color: light-dark(var(--gray-50), var(--latco-night));
}

.fi-panel-workforce .fi-topbar {
    background-color: var(--latco-logo-surface);
    background-image: var(--latco-gradient);
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: 100% 3px;
}

.fi-panel-workforce :is(.fi-sidebar, .fi-sidebar-header) {
    background-color: var(--latco-navy-logo);
}

.fi-panel-workforce .fi-sidebar {
    border-inline-end: 1px solid var(--latco-steel);
    color: #fff;
}

.fi-panel-workforce .fi-sidebar-header .fi-logo-light { display: none; }
.fi-panel-workforce .fi-sidebar-header .fi-logo-dark { display: block; }
.fi-panel-workforce .fi-sidebar-header .fi-icon-btn { color: #fff; }
.fi-panel-workforce .fi-sidebar-nav { overscroll-behavior: contain; }

.fi-panel-workforce .fi-sidebar-close-overlay {
    background-color: color-mix(in srgb, var(--latco-night) 56%, transparent);
}

.fi-panel-workforce .fi-sidebar-item-btn > .fi-sidebar-item-label { color: var(--gray-100); }
.fi-panel-workforce .fi-sidebar-item-btn > .fi-icon { color: var(--gray-300); }

.fi-panel-workforce .fi-sidebar-item.fi-active > .fi-sidebar-item-btn {
    background-color: var(--latco-steel);
    box-shadow: inset 0 0 0 1px var(--latco-terracotta);

    & > :is(.fi-icon, .fi-sidebar-item-label) { color: var(--latco-yellow); }
}

.fi-panel-workforce .fi-sidebar-item-btn:focus-visible {
    background-color: var(--gray-800);
    outline: 2px solid var(--latco-yellow);
    outline-offset: -2px;
}

@media (hover: hover) {
    .fi-panel-workforce .fi-sidebar-item:not(.fi-active) > .fi-sidebar-item-btn:hover {
        background-color: var(--gray-800);
    }
}

.fi-panel-workforce :is(.fi-header-heading, .workforce-page-heading h1, .fi-section-header-heading) {
    color: light-dark(var(--latco-night), #fff);
    font-weight: 800;
}

.fi-panel-workforce .workforce-dashboard-welcome {
    background-color: var(--latco-steel);
    border-inline-start: 4px solid var(--latco-terracotta);
    color: #fff;

    & .fi-section-header-heading { color: var(--latco-yellow); }
    & > .fi-section-content-ctn { border-color: rgb(255 255 255 / .24); }
}

.workforce-dashboard-module .fi-btn { width: 100%; }

.workforce-stack { display: grid; gap: 1.5rem; }
.workforce-page-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.workforce-page-heading h1 { font-size: 1.875rem; line-height: 1.2; }
.workforce-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.workforce-field { display: grid; align-content: start; gap: .45rem; font-size: .875rem; font-weight: 500; }
.workforce-password-toggle {
    display: inline-grid;
    place-items: center;
    min-inline-size: 2rem;
    min-block-size: 2rem;
    border-radius: .375rem;
    color: light-dark(var(--gray-600), var(--gray-300));
    cursor: pointer;
}
.workforce-password-toggle:hover { background: light-dark(var(--gray-100), var(--gray-700)); }
.workforce-password-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
.workforce-password-toggle[hidden],
.workforce-password-toggle[aria-pressed="false"] [data-password-hide],
.workforce-password-toggle[aria-pressed="true"] [data-password-show] { display: none; }
.workforce-password-rules { display: grid; gap: .2rem; color: light-dark(var(--gray-600), var(--gray-300)); font-size: .75rem; font-weight: 400; }
.workforce-password-rules [data-password-marker] { display: inline-block; inline-size: 1em; }
.workforce-password-rules [data-met="true"] { color: light-dark(#166534, #86efac); }
.workforce-actions { display: flex; align-items: end; flex-wrap: wrap; gap: .75rem; }
.workforce-vacation-filters { display: grid; gap: .75rem; }
.workforce-muted { color: light-dark(var(--gray-600), var(--gray-300)); font-size: .875rem; }
.workforce-notice { border: 1px solid currentColor; border-radius: .5rem; padding: .8rem 1rem; color: light-dark(var(--latco-steel), var(--latco-yellow)); }
.workforce-error { color: light-dark(#b91c1c, #fca5a5); }
.workforce-table-wrap { overflow-x: auto; }
.workforce-table { border-collapse: collapse; width: 100%; font-size: .875rem; }
.workforce-table :is(th, td) { text-align: start; padding: .75rem; border-bottom: 1px solid light-dark(var(--gray-200), var(--gray-700)); }
.workforce-table th { font-weight: 600; }
.workforce-table a:not(.fi-btn), .workforce-link { text-decoration: underline; text-underline-offset: .2em; }
.workforce-leave-list { min-inline-size: 0; }
.workforce-leave-table :is(th, td) { padding-inline: .55rem; }
.workforce-leave-table :is(.workforce-leave-reference, .workforce-leave-state, .workforce-leave-print) { white-space: nowrap; }
.workforce-leave-state .fi-badge { inline-size: max-content; }
.workforce-attendance-summary { min-inline-size: 0; }

.workforce-advance-options { display: flex; flex-wrap: wrap; gap: .5rem; }
.workforce-advance-options label {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-block-size: 2.5rem;
    padding-inline: .75rem;
    border: 1px solid light-dark(var(--gray-300), var(--gray-600));
    border-radius: .5rem;
    cursor: pointer;
}
.workforce-advance-options label:has(input:checked) {
    border-color: light-dark(var(--latco-steel), var(--latco-yellow));
    background: light-dark(var(--gray-100), var(--gray-800));
}
.workforce-advance-options label:has(input:focus-visible) {
    outline: 2px solid light-dark(var(--latco-steel), var(--latco-yellow));
    outline-offset: 2px;
}
.workforce-advance-options label:has(input:disabled) { cursor: default; opacity: .6; }
.workforce-advance-options input { appearance: auto; accent-color: light-dark(var(--latco-steel), var(--latco-yellow)); }

.workforce-attendance-code {
    display: inline-block;
    padding: .15rem .45rem;
    border-radius: .375rem;
    color: light-dark(var(--latco-night), var(--gray-100));
    background: light-dark(var(--gray-100), var(--gray-800));
    font-weight: 600;
    white-space: nowrap;
}
.workforce-calendar {
    --calendar-border: light-dark(var(--gray-200), var(--gray-700));
    --calendar-surface: light-dark(#fff, var(--gray-900));
    --calendar-muted: light-dark(var(--gray-600), var(--gray-300));
    min-inline-size: 0;
    border: 1px solid var(--calendar-border);
    border-radius: .75rem;
    background: var(--calendar-surface);
}

.workforce-calendar-filters { min-inline-size: 0; }
.workforce-calendar-filters .workforce-field { flex: 1 1 10rem; min-inline-size: 0; max-inline-size: 17rem; }

.workforce-calendar-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.25rem;
}

.workforce-calendar-toolbar h2 { font-size: 1.35rem; font-weight: 800; }
.workforce-calendar-toolbar p, .workforce-calendar-empty { color: var(--calendar-muted); font-size: .875rem; }
.workforce-calendar-empty { padding: 0 1.25rem 1rem; }
.workforce-calendar-scroll { overflow-x: auto; border-end-start-radius: inherit; border-end-end-radius: inherit; }
.workforce-calendar-scroll:focus-visible { outline: 2px solid light-dark(var(--latco-steel), var(--latco-yellow)); outline-offset: -2px; }
.workforce-calendar-grid { width: 100%; min-inline-size: 52.5rem; table-layout: fixed; border-collapse: collapse; font-size: .875rem; }
.workforce-calendar-grid :is(th, td) { border-block-start: 1px solid var(--calendar-border); border-inline-end: 1px solid var(--calendar-border); }
.workforce-calendar-grid :is(th, td):last-child { border-inline-end: 0; }
.workforce-calendar-grid th { padding: .65rem .45rem; background: light-dark(var(--gray-100), var(--latco-navy-logo)); font-weight: 700; }
.workforce-calendar-grid td { vertical-align: top; }
.workforce-calendar-weekend { background: light-dark(var(--gray-50), color-mix(in srgb, var(--latco-night) 38%, var(--calendar-surface))); }
.workforce-calendar-outside { background: light-dark(var(--gray-100), var(--latco-night)); }
.workforce-calendar-outside time { color: var(--calendar-muted); }

.workforce-calendar-day {
    display: grid;
    align-content: start;
    gap: .4rem;
    min-block-size: 8.5rem;
    padding: .5rem;
}

.workforce-calendar-day time {
    display: grid;
    place-items: center;
    inline-size: 1.75rem;
    block-size: 1.75rem;
    font-size: 1rem;
    font-weight: 700;
}

.workforce-calendar-day time[aria-current="date"] { border-radius: 50%; color: #fff; background: var(--latco-steel); }

.workforce-calendar-event {
    display: grid;
    gap: .125rem;
    padding: .4rem .5rem;
    border-inline-start: 3px solid light-dark(var(--latco-steel), var(--gray-400));
    border-radius: .375rem;
    color: light-dark(var(--latco-night), #fff);
    background: light-dark(var(--gray-100), var(--gray-800));
    font-size: .75rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.workforce-calendar-event-vacation {
    border-inline-start-color: light-dark(#9b6b13, var(--latco-yellow));
    background: light-dark(
        color-mix(in srgb, var(--latco-yellow) 42%, #fff),
        color-mix(in srgb, var(--latco-yellow) 15%, var(--latco-night))
    );
}

.workforce-calendar-event-holiday {
    border-inline-start-color: light-dark(#b91c1c, #fca5a5);
    background: light-dark(#fef2f2, #3b2232);
}

.workforce-calendar-event strong { font-weight: 700; }
.workforce-calendar-more summary { cursor: pointer; color: var(--calendar-muted); font-size: .75rem; }
.workforce-calendar-more .workforce-calendar-event { margin-block-start: .4rem; }
.workforce-calendar-day :is(a, summary):focus-visible { outline: 2px solid light-dark(var(--latco-steel), var(--latco-yellow)); outline-offset: 1px; }

@media (hover: hover) {
    a.workforce-calendar-event:hover strong, .workforce-calendar-more summary:hover { text-decoration: underline; }
}

.workforce-textarea { color: inherit; background: transparent; border: 1px solid light-dark(var(--gray-500), var(--gray-400)); border-radius: .5rem; padding: .5rem .75rem; width: 100%; }
.workforce-description dt { font-weight: 600; }
.workforce-description dd { margin-block-start: .25rem; overflow-wrap: anywhere; }
.workforce-checks { display: grid; gap: .5rem; }
.workforce-checks label { display: flex; align-items: center; gap: .5rem; }
.workforce-pagination { margin-block-start: .75rem; }
.workforce-auth-card { width: min(100%, 26rem); margin: 5vh auto; }
.workforce-auth-main {
    min-block-size: 100svh;
    padding: 1.25rem;
    background-color: var(--latco-logo-surface);
    background-image: var(--latco-gradient);
    background-repeat: no-repeat;
    background-size: 100% .25rem;
}

.workforce-auth-brand { display: flex; justify-content: center; margin-block-end: 1rem; }
.workforce-auth-brand .fi-logo { min-block-size: 7rem; }
.workforce-pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.workforce-page { padding-block: 1.5rem 2rem; }
#leave-employee-selected:empty, #leave-employee-results:empty { display: none; }
.workforce-payroll-months :is(th, td) { white-space: nowrap; }
.workforce-payroll-months :is(th, td):last-child { text-align: end; }

.workforce-payroll-workspace {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    block-size: 100dvh;
    padding: clamp(.5rem, 2vw, 1.25rem);
}

.workforce-payroll-toolbar, .workforce-payroll-title {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.workforce-payroll-toolbar { justify-content: space-between; }
.workforce-payroll-title h1 { font-size: clamp(1.15rem, 2vw, 1.55rem); font-weight: 800; line-height: 1.25; }
.workforce-payroll-workspace .workforce-notice { padding: .45rem .65rem; font-size: .875rem; }

.workforce-payroll-pending-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem 1rem;
}

.workforce-payroll-pending-modal :is(.fi-modal-window-ctn, .fi-modal-window, .fi-modal-content) {
    overscroll-behavior: contain;
}

.workforce-payroll-pending-list > li + li {
    margin-block-start: .75rem;
    padding-block-start: .75rem;
    border-block-start: 1px solid light-dark(var(--gray-200), var(--gray-700));
}

.workforce-payroll-pending-issues {
    margin-block-start: .25rem;
    padding-inline-start: 1.25rem;
    list-style: disc;
}

.workforce-payroll-viewport {
    flex: 1 1 0;
    min-block-size: min(12rem, 36dvh);
    min-inline-size: 0;
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid light-dark(var(--gray-200), var(--gray-700));
    border-radius: .5rem;
}

.workforce-payroll-viewport:focus-visible {
    outline: 2px solid light-dark(var(--latco-steel), var(--latco-yellow));
    outline-offset: 2px;
}

.workforce-payroll-grid {
    inline-size: max-content;
    min-inline-size: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .8125rem;
    font-variant-numeric: tabular-nums;
}

.workforce-payroll-grid :is(th, td) {
    padding: .35rem .55rem;
    border-inline-end: 1px solid light-dark(var(--gray-200), var(--gray-700));
    white-space: nowrap;
}

.workforce-payroll-grid td { max-inline-size: 18rem; white-space: normal; overflow-wrap: anywhere; }
.workforce-payroll-grid tbody tr { --payroll-row: light-dark(white, var(--latco-night)); background: var(--payroll-row); }
.workforce-payroll-grid tbody tr:nth-child(even) { --payroll-row: light-dark(var(--gray-50), color-mix(in srgb, var(--latco-night) 88%, var(--latco-steel))); }
.workforce-payroll-grid :is(thead, tfoot) :is(th, td) { position: sticky; background: light-dark(var(--gray-100), var(--gray-800)); z-index: 2; }
.workforce-payroll-grid thead th { inset-block-start: 0; }
.workforce-payroll-grid tfoot :is(th, td) { inset-block-end: 0; font-weight: 700; }
.workforce-payroll-grid :is(.workforce-payroll-employee, .workforce-payroll-row-number) { position: sticky; inset-inline-start: 0; }
.workforce-payroll-grid tbody :is(.workforce-payroll-employee, .workforce-payroll-row-number) { background: var(--payroll-row); z-index: 1; }
.workforce-payroll-grid :is(thead, tfoot) :is(.workforce-payroll-employee, .workforce-payroll-row-number) { z-index: 3; }
.workforce-payroll-grid .workforce-payroll-employee { min-inline-size: 12rem; max-inline-size: 17rem; white-space: normal; }
.workforce-payroll-grid .workforce-payroll-employee .workforce-muted { font-size: .75rem; }
.workforce-payroll-cell-editor { display: block; width: 100%; min-block-size: 1.5rem; text-align: start; cursor: pointer; }
.workforce-payroll-cell-manual { text-decoration: underline dotted; text-underline-offset: .2em; }
.workforce-payroll-cell-editor:focus-visible { outline: 2px solid light-dark(var(--latco-steel), var(--latco-yellow)); }
@media (hover: hover) {
    .workforce-payroll-cell-editor:hover { text-decoration: underline; text-underline-offset: .2em; }
}
.fi-topbar-start:has(.workforce-sidebar-toggle) .fi-topbar-collapse-sidebar-btn-ctn { display: none; }
.workforce-sidebar-toggle { margin-inline-start: .5rem; flex-shrink: 0; }
