/* Finn ansatt — scoped layout, kort og modal (ikke avhengig av Tailwind-purge) */
[x-cloak] {
    display: none !important;
}

.fa-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .fa-layout {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    }
}

.fa-main {
    min-width: 0;
}

.fa-aside {
    position: sticky;
    top: 1rem;
    align-self: start;
    min-width: 0;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}

.fa-empty {
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 1rem;
    font-size: 0.875rem;
    line-height: 1.4;
    color: #64748b;
}

.fa-no-hits {
    margin: 0;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: #64748b;
}

.fa-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
}

.fa-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgb(15 23 42 / 0.5);
}

.fa-modal-center {
    position: relative;
    display: flex;
    min-height: 100%;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    pointer-events: none;
}

.fa-modal-panel {
    pointer-events: auto;
    width: 100%;
    max-width: 28rem;
    max-height: 90vh;
    overflow-y: auto;
    background: transparent;
    padding: 0;
    outline: none;
    box-shadow: none;
}

.fa-details h2,
.fa-details p,
.fa-details ul,
.fa-details li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.fa-details a {
    text-decoration: none;
}

.fa-card {
    overflow: hidden;
    border-radius: 0.75rem;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.fa-card-header {
    background: #1F4C6C;
    padding: 1rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    color: #fff;
}

.fa-card-header-text {
    min-width: 0;
}

.fa-card-header h2.fa-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    word-break: break-word;
}

.fa-card-header p.fa-card-subtitle {
    margin-top: 0.125rem;
    font-size: 0.875rem;
    color: #dbeafe;
}

.fa-card-row {
    padding: 0.75rem 1rem;
    border-top: 1px solid #e2e8f0;
}

.fa-card-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    color: #64748b;
}

.fa-card-value {
    margin-top: 0.125rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #0f172a;
}

.fa-card-mail {
    display: flex;
    align-items: flex-start;
    gap: 0.375rem;
}

.fa-card-mail a {
    color: #1F4C6C;
    word-break: break-all;
    min-width: 0;
}

.fa-card-mail a:hover {
    text-decoration: underline;
}

.fa-icon-btn {
    display: inline-flex;
    height: 1.25rem;
    width: 1.25rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0.25rem;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    padding: 0;
}

.fa-icon-btn:hover {
    background: #f1f5f9;
    color: #1F4C6C;
}

.fa-icon-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgb(31 76 108 / 0.3);
}

.fa-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid #e2e8f0;
}

.fa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    line-height: 1.25;
}

.fa-btn--primary,
.fa-btn--primary:hover,
.fa-btn--primary:focus {
    background: #1F4C6C;
    color: #fff !important;
    text-decoration: none !important;
}

.fa-btn--primary:hover {
    background: #183a52;
}

.fa-btn--primary:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgb(31 76 108 / 0.4);
}

.fa-btn--secondary {
    background: #fff;
    border-color: #cbd5e1;
    color: #334155;
}

.fa-btn--secondary:hover {
    background: #f8fafc;
}

.fa-btn--secondary:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgb(31 76 108 / 0.3);
}

.fa-placement {
    margin-top: 0.75rem;
    border-radius: 0.75rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 1rem;
}

.fa-placement-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.fa-placement-list {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.fa-placement-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fa-dot {
    height: 0.375rem;
    width: 0.375rem;
    border-radius: 9999px;
    background: #cbd5e1;
    flex-shrink: 0;
}

.fa-dot--current {
    background: #1e293b;
}

.fa-placement-label {
    font-size: 0.875rem;
    color: #475569;
}

.fa-placement-label--current {
    font-weight: 700;
    color: #0f172a;
}

.fa-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    font-size: 10px;
    font-weight: 600;
    border-radius: 9999px;
    background: #E8EEF4;
    color: #334155;
    flex-shrink: 0;
}

.fa-avatar--lg {
    width: 3rem;
    height: 3rem;
    font-size: 0.875rem;
}

#treeview [data-employee-dn-b64] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-sizing: border-box;
    position: relative;
    width: 100%;
    padding: 0.25rem 0.75rem 0.25rem 0.25rem;
}

#treeview [data-employee-dn-b64].is-selected {
    background: #E8EEF4;
    border-radius: 1.25rem 0.25rem 0.25rem 1.25rem;
}

#treeview [data-employee-dn-b64].is-selected [data-employee-avatar] {
    background: #1F4C6C;
    color: #fff;
}

#treeview [data-employee-dn-b64].is-selected [data-employee-name] {
    font-weight: 700;
}

.fa-title-badge {
    display: inline-block;
    margin-left: 0.25rem;
    border-radius: 0.25rem;
    background: #BEE0F0;
    padding: 0.0625rem 0.625rem;
    font-size: 10px;
    font-weight: 600;
    color: #1F4C6C;
    vertical-align: middle;
}
