.hr {
    --paper: #fff;
    --ink: #182033;
    --muted: #68758a;
    --line: #e4e9f2;
    --bg: #f4f6fb;
    --brand: #5368ed;
    --soft: #eef1ff;
    background: var(--bg);
    color: var(--ink)
}

.hr[data-theme=dark],
html[data-theme=dark] .hr {
    --paper: #192232;
    --ink: #edf2fa;
    --muted: #a8b5c9;
    --line: #344053;
    --bg: #101722;
    --brand: #91a0ff;
    --soft: #26344d
}

.hr aside,
.hr header,
.hr .panel {
    background: var(--paper);
    color: var(--ink)
}

.hr .shell {
    min-width: 0
}

.hr main {
    margin: auto;
    width: 100%
}

.hr h1 {
    font-size: 1.85rem;
    margin: 0
}

.hr h2 {
    font-size: 1.12rem;
    margin: 0 0 18px
}

.hr .heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px
}

.hr .eyebrow {
    font-size: .7rem;
    color: var(--brand);
    font-weight: 800;
    letter-spacing: .14em
}

.hr a {
    color: var(--brand)
}

.hr .muted,
.hr footer,
.hr .crumb {
    color: var(--muted)
}

.hr .crumb {
    font-size: .8rem;
    margin: 0 0 25px
}

.hr .panel {
    border: 1px solid var(--line);
    margin-top: 0;
    margin-bottom: 20px;
    padding: 24px
}

.hr .button,
.hr button {
    display: inline-block;
    background: #5368ed;
    color: white;
    padding: 11px 16px;
    border-radius: 9px;
    text-decoration: none;
    font: inherit;
    white-space: nowrap;
    min-height: 42px
}

.hr .secondary {
    background: var(--soft);
    color: var(--brand)
}

.hr .danger {
    background: #b42335
}

.hr .danger-zone {
    border-color: #b4233540
}

.hr .header-tools {
    display: flex;
    align-items: center;
    gap: 12px
}

.hr .header-tools select {
    width: auto
}

.hr label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: .85rem;
    margin-bottom: 15px
}

.hr input,
.hr select,
.hr textarea {
    font: inherit;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 11px;
    border-radius: 8px;
    width: 100%;
    min-width: 0
}

.hr input:focus,
.hr select:focus,
.hr textarea:focus {
    outline: 2px solid var(--brand);
    outline-offset: 2px
}

.hr [aria-invalid=true] {
    border-color: #b42335
}

.hr .filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end
}

.hr .filters label {
    flex: 1;
    min-width: 140px;
    margin: 0
}

.hr .filters button {
    align-self: end
}

.hr .notice {
    border-radius: 10px;
    padding: 14px 18px;
    margin: 0 0 20px;
    overflow-wrap: anywhere
}

.hr .notice p {
    margin: 4px 0
}

.hr .notice.success {
    background: #d8f7e8;
    color: #066743
}

.hr .notice.error {
    background: #ffe7e6;
    color: #a32a30
}

.hr .table-scroll {
    overflow-x: auto
}

.hr table {
    width: 100%;
    border-collapse: collapse;
    text-align: left
}

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

.hr th,
.hr td {
    padding: 14px 9px;
    border-bottom: 1px solid var(--line)
}

.hr td small {
    display: block;
    margin-top: 5px
}

.hr .table-heading {
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px
}

.hr .badge {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 20px;
    background: var(--soft);
    font-size: .74rem
}

.hr .active-status {
    background: #d8f7e8;
    color: #066743
}

.hr .pagination {
    display: flex;
    gap: 8px;
    margin-top: 18px
}

.hr .pagination a {
    padding: 7px 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-decoration: none
}

.hr .pagination .selected {
    background: #5368ed;
    color: white
}

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

.hr .full-width {
    grid-column: 1/-1
}

.hr .form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px
}

.hr .employee-form h2:not(:first-child) {
    margin-top: 18px
}

.hr .profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px
}

.hr dl {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    font-size: .9rem;
    gap: 12px;
    margin-bottom: 25px
}

.hr dt {
    color: var(--muted)
}

.hr dd {
    margin: 0;
    overflow-wrap: anywhere
}

.hr .employee-photo,
.hr .photo-placeholder {
    width: 110px;
    height: 110px;
    border-radius: 18px;
    object-fit: cover;
    margin-bottom: 20px
}

.hr .photo-placeholder {
    background: var(--soft);
    color: var(--brand);
    font-size: 42px;
    display: grid;
    place-items: center
}

.hr .document-list {
    padding: 0;
    list-style: none
}

.hr .document-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--line)
}

.hr .document-list small {
    display: block;
    color: var(--muted);
    overflow-wrap: anywhere
}

.hr .org-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end
}

.hr .org-form label {
    flex: 1;
    min-width: 140px
}

.hr .org-form button {
    margin-bottom: 15px
}

.hr .org-record {
    padding: 14px 0;
    border-top: 1px solid var(--line)
}

.hr .org-record summary {
    cursor: pointer;
    margin-bottom: 12px
}

.hr .empty {
    padding: 40px;
    text-align: center
}

.hr .menu-toggle {
    display: none
}

.hr footer {
    font-size: .8rem;
    padding: 20px 42px
}

.hr .loading-overlay {
    position: fixed;
    inset: 0;
    background: #10172266;
    z-index: 3000;
    display: grid;
    place-items: center;
    color: white;
    font-size: 1.1rem
}

.hr .loading-overlay[hidden] {
    display: none
}

.hr .table-panel table {
    min-width: 680px
}

#app-toasts {
    position: fixed;
    right: 20px;
    top: 20px;
    z-index: 4000;
    max-width: min(360px, 90vw);
    display: grid;
    gap: 10px
}

.toast {
    border-radius: 10px;
    background: var(--paper, #fff);
    color: var(--ink, #182033);
    border: 1px solid var(--line, #e4e9f2);
    box-shadow: 0 8px 30px #0002;
    padding: 15px
}

.toast button {
    margin-left: 12px;
    font-size: .8rem;
    padding: 3px 8px
}

html[data-theme=dark] .swal2-popup {
    background: #192232;
    color: #edf2fa
}

html[data-theme=dark] .swal2-input {
    color: #edf2fa
}

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

    .hr .user-name {
        display: none
    }
}

@media(max-width:720px) {
    .hr aside {
        display: block;
        z-index: 2100;
        transform: translateX(-100%);
        transition: transform .2s
    }

    .hr aside.open {
        transform: translateX(0);
        box-shadow: 8px 0 40px #0004
    }

    .hr .menu-toggle {
        display: block
    }

    .hr header {
        padding: 12px 16px;
        height: auto;
        gap: 10px;
        flex-wrap: wrap
    }

    .hr header>span {
        display: none
    }

    .hr main {
        padding: 24px 16px
    }

    .hr .profile-grid,
    .hr .form-grid {
        grid-template-columns: 1fr
    }

    .hr .heading {
        align-items: start
    }

    .hr .heading h1 {
        font-size: 1.5rem
    }

    .hr .table-panel {
        padding: 16px
    }

    .hr .empty {
        padding: 20px
    }

    .hr footer {
        padding: 16px
    }

    .hr dl {
        grid-template-columns: 100px minmax(0, 1fr)
    }

    .hr .filters {
        align-items: stretch
    }

    .hr .filters label {
        min-width: calc(50% - 12px)
    }
}