*,*::before,*::after{box-sizing:border-box} :root{font-family:Inter,Geist,"Segoe UI",system-ui,sans-serif;color:#152b42;background:#f3f6fa;line-height:1.5;font-synthesis:none;--ink:#152b42;--muted:#526a83;--blue:#165ca1;--teal:#15716d;--line:#dbe4ee;--nav:#0c2036}
body{margin:0;min-height:100vh;display:flex;flex-direction:column} a{color:var(--blue);text-decoration:none} a:hover{text-decoration:underline} button,input,select,textarea{font:inherit} :focus-visible{outline:3px solid #2484d6;outline-offset:3px} h1,h2,h3,p{margin:0} h2{font-size:1.13rem;line-height:1.25} h3{font-size:1rem} .muted{color:var(--muted)} .skip{position:fixed;top:-5rem;left:1rem;z-index:10;background:white;padding:.75rem}.skip:focus{top:1rem}
.app-header{position:sticky;top:0;z-index:6;background:var(--nav);color:#fff;box-shadow:0 2px 10px #14294218} .header-inner,.tabs>div,.shell,.footer>div{width:min(100% - 4rem,1320px);margin-inline:auto} .header-inner{min-height:77px;display:flex;align-items:center;justify-content:space-between;gap:1rem}.brand{display:inline-flex;align-items:center;gap:.8rem;color:white;text-decoration:none!important}.brand strong{font-size:1.48rem;font-weight:760;letter-spacing:-.055em;display:block;line-height:1.05}.brand strong span{color:#72d4ce}.brand small{display:block;font-size:.75rem;color:#b8cce0;letter-spacing:.015em;margin-top:.23rem}.brand-mark{display:flex;flex:none;width:43px;height:43px;background:#1a866f;border:1px solid #6dc9b2;border-radius:12px;align-items:flex-end;justify-content:center;gap:3px;padding-bottom:10px;transform:rotate(-5deg)} .brand-mark i{display:block;width:4px;background:#fff;border-radius:4px;height:10px}.brand-mark i:nth-child(2){height:16px}.brand-mark i:nth-child(3){height:21px}.brand-mark.large{width:63px;height:63px;border-radius:17px;padding-bottom:15px;gap:5px}.brand-mark.large i{width:6px;transform:scaleY(1.3);transform-origin:bottom}
.header-actions,.languages,.account summary{display:flex;align-items:center;gap:.65rem}.languages{gap:2px;border:1px solid #415770;border-radius:8px;padding:2px}.languages button{border:0;border-radius:5px;color:#cad9e7;background:transparent;padding:4px 8px;cursor:pointer;font-size:.78rem;font-weight:700}.languages button[aria-pressed=true]{background:#29415b;color:white}.account{position:relative}.account summary{cursor:pointer;list-style:none}.account summary::-webkit-details-marker{display:none}.account-name{font-size:.87rem}.avatar{display:grid;place-items:center;width:31px;height:31px;border-radius:50%;background:#c4eee6;color:#164c49;font-weight:700;font-size:.82rem}.account-menu{position:absolute;right:0;top:2.65rem;z-index:5;padding:1rem;background:#fff;min-width:155px;display:grid;gap:.65rem;border:1px solid var(--line);border-radius:12px;box-shadow:0 10px 35px #1e344728;color:var(--ink);font-size:.9rem}
.tabs{border-top:1px solid #ffffff20}.tabs>div{display:flex;align-items:center;overflow-x:auto;scrollbar-width:thin;gap:1.15rem}.tabs a{color:#c6d5e5;white-space:nowrap;display:block;padding:.92rem .28rem .8rem;border-bottom:3px solid transparent;font-size:.89rem;font-weight:630;text-decoration:none}.tabs a:hover,.tabs .active{color:#fff}.tabs .active{border-color:#64d4c4}
.shell{padding-block:2.25rem 3rem;flex:1}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1.5rem}.page-heading h1{font-size:clamp(1.8rem,3vw,2.55rem);letter-spacing:-.044em;line-height:1.15;font-weight:735}.page-heading p{margin-top:.45rem;color:var(--muted)}.entity-picker{display:flex;gap:.55rem;align-items:center;border:1px solid var(--line);background:white;padding:.6rem .82rem;border-radius:10px;white-space:nowrap}.entity-picker label{font-weight:600;font-size:.85rem;color:var(--muted)}.entity-picker strong{font-size:.88rem}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin-bottom:1.25rem}.stat{background:#fff;border:1px solid var(--line);border-radius:12px;padding:1.05rem 1.15rem;display:grid;gap:.4rem}.stat>span:not(.stat-mark){color:var(--muted);font-size:.89rem;font-weight:620}.stat strong{font-size:clamp(1.2rem,2vw,1.78rem);line-height:1.14;overflow-wrap:anywhere;letter-spacing:-.035em}.stat small{color:var(--muted);font-size:.78rem}.stat-mark{width:27px;height:27px;border-radius:7px;background:#e7f1fa;color:#235d8b;text-align:center;display:grid;place-items:center;font-size:1rem;font-weight:750}.stat-mark.violet{background:#ecebfa;color:#5b4f98}.stat-mark.amber{background:#fbf0df;color:#8a551a}.stat-mark.teal{background:#e3f4ee;color:#1e746a}
.panel{background:#fff;border:1px solid var(--line);border-radius:13px;margin-bottom:1.15rem;box-shadow:0 2px 4px #16334d05}.panel-head{padding:1rem 1.2rem;min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:1rem;border-bottom:1px solid var(--line)}.panel-head p{font-size:.87rem;color:var(--muted);margin-top:.25rem}.panel-head a,.table-link{font-weight:675}.padded{padding:1.1rem 1.2rem}.empty{text-align:center;color:var(--muted);padding:2.1rem}.counter{font-size:.8rem;border:1px solid var(--line);padding:.18rem .55rem;border-radius:8px;color:var(--muted)}.table-wrap{overflow-x:auto}.table-wrap table{width:100%;border-collapse:collapse;white-space:nowrap;text-align:left;font-size:.88rem}.table-wrap th{font-weight:650;color:#49617a;background:#f5f8fb}.table-wrap :is(td,th){padding:.72rem 1.2rem;border-bottom:1px solid #e8eef4;vertical-align:top}.table-wrap tbody tr:last-child td{border-bottom:0}.table-wrap tr:hover td{background:#f9fbfd}.num{text-align:right;font-variant-numeric:tabular-nums}.badge{display:inline-block;border-radius:5rem;background:#ecf1f7;color:#405b76;font-size:.77rem;font-weight:660;padding:.23rem .58rem}.badge.draft{background:#fff3dd;color:#75470e}.badge.submitted,.badge.reviewed{background:#e6f0fa;color:#195784}.badge.paid,.badge.locked{background:#e2f4ec;color:#176049}.badge.returned{background:#fbe8e7;color:#8d3535}
.button{display:inline-flex;align-items:center;justify-content:center;font-weight:665;font-size:.89rem;line-height:1.3;cursor:pointer;border:1px solid transparent;border-radius:8px;min-height:39px;padding:.5rem .85rem;text-decoration:none!important;white-space:nowrap}.primary{background:#1760a4;color:#fff}.primary:hover{background:#0e4f8f}.secondary{background:#fff;color:#254766;border-color:#cedbea}.secondary:hover{background:#eef5fb}.light{background:white;color:#153c62}.light:hover{background:#e6f6f6}
.form-row{display:flex;gap:.85rem;align-items:end;flex-wrap:wrap}.stack{display:grid;gap:.82rem;justify-items:start}.stack label,.stack textarea{width:100%}.stack .form-row{width:100%}.stack .form-row label{width:auto;flex:1}.form-row label,.stack label{display:grid;gap:.25rem;font-size:.87rem;font-weight:650;color:#344f69}.form-row input,.stack input,.form-row select,.stack select,.entity-picker select,.stack textarea{min-height:39px;padding:.4rem .65rem;border:1px solid #becddb;border-radius:7px;color:var(--ink);background:#fff;font-size:.91rem;max-width:100%}.stack textarea{font-family:ui-monospace,monospace}.stack input[type=file]{width:100%;display:block;max-width:100%}.split{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.notice{padding:.75rem 1rem;border:1px solid #b0d7c8;background:#e8f7f0;color:#205d4c;border-radius:9px;margin-bottom:1.05rem}.notice.error{border-color:#e2b4ac;background:#fcf0ec;color:#842f2f}.issue{color:#842f2f}.line-details>summary{cursor:pointer}.line-details>summary small{margin-left:.45rem;color:var(--muted)}.line-details ul{padding-left:1rem;margin:.35rem 0;white-space:normal}.line-details .stack{padding-block:.5rem}.detail-form{padding-top:.85rem}.details-grid{display:grid;grid-template-columns:auto 1fr;gap:.45rem .9rem;margin:0}.details-grid dt{font-weight:675}.details-grid dd{margin:0;color:var(--muted)}pre{background:#f4f7fb;color:#25425c;border-radius:8px;padding:.8rem;margin:0;overflow:auto;max-width:100%;max-height:32rem} summary{cursor:pointer}
.footer{margin-top:auto;color:var(--muted);border-top:1px solid var(--line);font-size:.83rem}.footer>div{display:flex;gap:.65rem;padding:1.1rem 0}.footer strong{color:#274560}.sign-in-shell{flex:1;width:min(100% - 3rem,850px);margin:4rem auto}.sign-in{display:grid;grid-template-columns:1fr 1fr;min-height:365px;box-shadow:0 15px 45px #0b264820;border-radius:16px;overflow:hidden}.sign-in-brand{display:grid;align-content:center;justify-items:start;gap:.5rem;background:linear-gradient(135deg,#10345e,#1c7373);padding:2.4rem;color:#fff}.sign-in-brand h1{font-size:3rem;letter-spacing:-.055em}.sign-in-brand p{color:#d3e9f2}.sign-in-card{background:#fff;padding:2.4rem;display:grid;align-content:center;justify-items:start;gap:.85rem}.sign-in-card h2{font-size:1.5rem}.sign-in-card p{color:var(--muted)}
@media(max-width:900px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.header-inner,.tabs>div,.shell,.footer>div{width:min(100% - 2.2rem,1320px)}.tabs>div{gap:.8rem}.entity-picker{align-self:start}} @media(max-width:600px){.page-heading{align-items:start;flex-direction:column}.shell{padding-top:1.55rem}.split,.sign-in{grid-template-columns:1fr}.sign-in-shell{margin:2rem auto}.sign-in-brand,.sign-in-card{padding:1.5rem}.brand small,.account-name{display:none}.header-inner{min-height:62px}.stat{padding:.9rem}.entity-picker{max-width:100%;flex-wrap:wrap}.table-wrap :is(td,th){padding:.65rem .8rem}}


.run-cycle{display:block;color:var(--muted);margin-top:.2rem}

.notice.attention{border-color:#e3cea5;background:#fff5e1;color:#714e24;margin-bottom:0}

.account-form{width:100%}

.salary-navigation { margin-bottom: 1rem; }
.salary-stats { margin: 0; }
.salary-stats .stat { align-content: start; box-shadow: none; }
.salary-stats .stat strong { font-size: 1.15rem; letter-spacing: normal; }
.salary-stats .stat small { margin-left: .15rem; font-weight: 500; }
.salary-stats .stat:last-child strong { color: #1760a4; }
.salary-rate-note { padding: 0 1.2rem 1rem; color: var(--muted); font-size: .85rem; }

/* Employee directory and profile */
.employee-panel-head {
    padding: 1.25rem 1.4rem;
    flex-wrap: wrap;
}

.employee-directory .employee-panel-head {
    box-shadow: inset 0 3px #1760a4;
    border-radius: 12px 12px 0 0;
}

.employee-actions {
    gap: .5rem;
    align-items: center;
}

.employee-actions .button, .employee-back { gap: .45rem; }
.employee-actions form { margin: 0; }
.employee-actions button:disabled {
    cursor: default;
    background: #f1f4f8;
    color: #566b80;
}

.employee-sync {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .2rem .8rem;
    padding: .75rem 1.4rem;
    border-bottom: 1px solid var(--line);
    background: #f5f8fc;
    font-size: .83rem;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.employee-sync strong { color: var(--ink); }
.employee-sync p[role="status"] { color: #842f2f; }

.employee-filters { padding: 1.2rem 1.4rem 0; gap: .65rem; }
.employee-search { flex: 1 1 17rem; }
.employee-filters label { min-width: 0; }
.employee-reset { color: var(--blue); }
.employee-reset:hover { background: #edf4fa; }

.employee-counts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    margin: 0;
    padding: 1rem 1.4rem 1.2rem;
}

.employee-counts div {
    display: grid;
    gap: .25rem;
    padding: .8rem 1rem;
    background: #f6f8fc;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.employee-counts dt, .employee-details dt {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 650;
}

.employee-counts dd {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.15;
    font-weight: 730;
    font-variant-numeric: tabular-nums;
}

.employee-table { border-radius: 0 0 12px 12px; }
.employee-table table {
    border-top: 1px solid var(--line);
    white-space: normal;
}

.employee-table :is(th, td) { padding: .8rem 1rem; vertical-align: middle; }
.employee-table :is(th, td):first-child { padding-inline-start: 1.4rem; width: 29%; }
.employee-table :is(th, td):last-child { padding-inline-end: 1.4rem; }
.employee-table th { font-size: .8rem; }
.employee-table td { overflow-wrap: anywhere; }

.employee-identity {
    display: flex;
    gap: .75rem;
    align-items: center;
    min-width: 0;
    overflow-wrap: anywhere;
}

.employee-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 2.2rem;
    height: 2.2rem;
    border-radius: 8px;
    background: #e7f0f9;
    color: #1a5185;
    font-size: .9rem;
    font-weight: 750;
}

.employee-profile .employee-avatar { flex-basis: 2.65rem; height: 2.65rem; }
.employee-cell-title { display: block; font-weight: 625; }
.employee-meta { display: block; margin-top: .18rem; color: var(--muted); font-size: .8rem; }
.employee-mobile-label { display: none; }

.employee-status {
    display: inline-block;
    border-radius: 20px;
    padding: .22rem .65rem;
    background: #edf1f7;
    color: #425a73;
    font-size: .76rem;
    font-weight: 680;
}

.employee-status.positive { background: #e2f4ec; color: #176049; }
.employee-status.warning { background: #fff1d9; color: #75470e; }
.employee-setup {
    gap: .35rem;
    min-height: 34px;
    padding: .35rem .6rem;
    font-size: .8rem;
    white-space: normal;
    text-align: center;
}
.employee-empty { border-top: 1px solid var(--line); padding: 2rem 1.4rem; text-align: center; }
.employee-empty p { color: var(--muted); margin-top: .25rem; }

.employee-back { margin-bottom: 1rem; }
.employee-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem 1.5rem;
    margin: 0;
}

.employee-details dd {
    margin: .25rem 0 0;
    overflow-wrap: anywhere;
}

.employee-profile .employee-note { margin: 0 1.2rem 1rem; }
.employee-history { border-top: 1px solid var(--line); }
.employee-history ul { margin: .5rem 0 0; padding: 0; list-style: none; }
.employee-history li {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .35rem .8rem;
    padding-block: .5rem;
}

.employee-history li + li { border-top: 1px solid var(--line); }
.employee-history [aria-current="true"] { text-decoration: underline; }

.employee-form .employee-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
}

.employee-form { gap: 0; }
.employee-form .employee-fields label { min-width: 0; }
.employee-form .employee-fields :is(input, select) { width: 100%; }
.employee-form-group { width: 100%; padding: 1.2rem 1.4rem; }
.employee-form-group + .employee-form-group { border-top: 1px solid var(--line); }
.employee-form-group h3 { margin-bottom: .8rem; }
.employee-form-group summary { font-weight: 675; }
.employee-form .employee-confirm {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    margin-bottom: .8rem;
}
.employee-form .employee-confirm input { min-height: auto; margin-top: .3rem; }
.employee-form-footer { background: #f6f8fc; border-radius: 0 0 12px 12px; }
.employee-form-footer .employee-actions { justify-content: flex-end; }

@media (max-width: 760px) {
    .employee-details, .employee-form .employee-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .employee-table { border-top: 1px solid var(--line); }
    .employee-table table, .employee-table tbody { display: block; }
    .employee-table table { border: 0; }
    .employee-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }
    .employee-table tbody tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: .85rem;
        padding: .7rem 1.4rem;
    }
    .employee-table tbody tr + tr { border-top: 1px solid var(--line); }
    .employee-table tbody tr td {
        display: block;
        width: auto;
        padding: .45rem 0;
        border: 0;
    }
    .employee-table tbody tr:hover td { background: transparent; }
    .employee-table tbody tr td:first-child { grid-column: 1 / -1; width: auto; padding: .45rem 0 .65rem; }
    .employee-table tbody tr td:last-child { padding-inline-end: 0; }
    .employee-mobile-label {
        display: block;
        margin-bottom: .15rem;
        color: var(--muted);
        font-size: .75rem;
        font-weight: 650;
    }
}

@media (max-width: 460px) {
    .employee-form .employee-fields { grid-template-columns: 1fr; }
    .employee-filters label { flex-basis: 100%; }
    .employee-counts { gap: .35rem; }
    .employee-counts div { padding: .6rem .45rem; grid-template-rows: 1fr auto; }
    .employee-counts dt { font-size: .73rem; overflow-wrap: anywhere; }
    .employee-counts dd { font-size: 1.18rem; }
    .employee-actions .button { white-space: normal; text-align: center; }
    .employee-directory .employee-actions { width: 100%; }
    .employee-directory .employee-actions > * { flex: 1 1 7.5rem; }
    .employee-directory .employee-actions > .primary { flex-basis: 100%; }
    .employee-directory .employee-actions form .button { width: 100%; }
}

.employee-form [hidden]{display:none}

.attendance-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: .8rem;
    margin: 0;
    padding: 1rem 1.2rem;
}
.attendance-metrics > div {
    padding: .85rem 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f5f8fb;
}
.attendance-metrics dt { color: var(--muted); font-size: .85rem; }
.attendance-metrics dd { margin: .3rem 0 0; font-size: 1.3rem; font-weight: 700; }
.attendance-report tbody th[scope="row"] { background: #fff; color: inherit; }

.audit-search { flex: 1 1 15rem; }
.audit-action { flex: 0 1 15rem; min-width: 0; }
.audit-filter-buttons, .audit-pagination {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .6rem;
}
.audit-filter-error { margin-inline: 1.2rem; }
.audit-results {
    margin: 0;
    padding: .65rem 1.2rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .87rem;
}
.audit-empty { border-top: 1px solid var(--line); }
.audit-table { min-width: 46rem; }
.audit-table .audit-value {
    max-width: 16rem;
    white-space: normal;
    overflow-wrap: anywhere;
}
.audit-table .audit-detail {
    min-width: 12rem;
    max-width: 28rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.audit-pagination {
    justify-content: end;
    border-top: 1px solid var(--line);
}
.audit-pagination span { color: var(--muted); font-size: .87rem; }

@media (max-width: 600px) {
    .audit-search, .audit-action { flex: 1 1 100%; }
    .audit-filters label:has(input[type="date"]) { flex: 1; min-width: 8rem; }
    .audit-pagination { justify-content: center; }
}

.overview-heading {
    align-items: end;
}

.overview-summary {
    margin-bottom: 1.4rem;
    padding: 1.2rem;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
}

.overview-period {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .8rem 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.overview-period h2 {
    margin-bottom: .2rem;
}

.overview-period time {
    color: var(--muted);
    font-size: .9rem;
    font-weight: 600;
}

.overview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.overview-metrics {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: .8rem;
    margin: 1rem 0 0;
}

.overview-metric {
    display: grid;
    align-content: start;
    gap: .35rem;
    min-width: 0;
    padding: .9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #f7f9fc;
}

.overview-metric-primary {
    border-color: #c5d9ed;
    background: #edf5fc;
}

.overview-metric-attention {
    border-color: #ead6ad;
    background: #fff7e8;
    color: #75470e;
}

.overview-metric dt {
    color: var(--muted);
    font-size: .84rem;
    font-weight: 650;
}

.overview-metric dd {
    margin: 0;
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    font-weight: 740;
    line-height: 1.15;
    letter-spacing: -.035em;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.overview-metric dd.overview-metric-note {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: normal;
}

.overview-table .panel-head {
    flex-wrap: wrap;
    gap: .45rem 1rem;
}

.overview-table .panel-head a {
    font-size: .85rem;
}

.overview-table .table-wrap th {
    font-size: .8rem;
}

.overview-table .table-wrap .num {
    font-weight: 675;
}

.overview-table .badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.overview-table .badge::before {
    content: "";
    width: .38rem;
    height: .38rem;
    border-radius: 50%;
    background: currentColor;
}

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

@media (max-width: 600px) {
    .overview-heading {
        align-items: start;
    }

    .overview-summary {
        padding: .9rem;
    }

    .overview-metric {
        padding: .7rem;
    }
}

@media (max-width: 400px) {
    .overview-metrics {
        grid-template-columns: minmax(0, 1fr);
    }
}
