.email-template-list .list-group-item {
    border-left: 3px solid transparent;
    padding: 1rem;
    text-align: left;
}

.email-template-list .list-group-item.active {
    background: #f5fbfe;
    border-color: #e5e7eb;
    border-left-color: #0088cc;
    color: #333;
}

.email-template-list .list-group-item.active .text-white-50 {
    color: #777 !important;
}

.email-template-tokens {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: .35rem 0 .5rem;
}

.email-template-preview {
    background: #fff;
    border: 1px solid #ddd;
    height: 430px;
    width: 100%;
}

.email-template-preview-large {
    border: 0;
    height: min(70vh, 760px);
}

.note-editor.note-frame {
    border-color: #ccc;
    box-shadow: none;
}

.note-editor.note-frame:focus-within {
    border-color: #33bbff;
    box-shadow: 0 0 0 .2rem rgba(0, 136, 204, .15);
}
@media print {
    .header, .sidebar-left, .page-header, .payroll-no-print, .modal-backdrop,
    .inner-wrapper::before, .inner-wrapper::after {
        display: none !important;
    }

    html, body, .body, .inner-wrapper, .content-body {
        background: #fff !important;
        margin: 0 !important;
        padding: 0 !important;
        min-height: auto !important;
    }

    .payroll-payslip, .report-print {
        border: 0 !important;
        box-shadow: none !important;
    }

    .payroll-payslip .card-header,
    .payroll-payslip .card-body {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .payroll-payslip table, .report-print table {
        break-inside: avoid;
    }
}

.report-print {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: #fff;
}
h1:focus {
    outline: none;
}

:root {
    --xa-focus: #0088cc;
}

body {
    background: #f4f4f4;
}

/* Keep form cards pixel-aligned with Porto's theme.css card rules.
   The scoped selectors prevent Bootstrap's more-specific card rules
   from overriding Porto while leaving non-form cards unchanged. */
.content-body section.card:has(form),
.content-body form > section.card {
    background: transparent;
    border: 1px solid #ccc !important;
    border-radius: 5px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
}

.content-body section.card:has(form) > .card-header,
.content-body form > section.card > .card-header {
    background: #f6f6f6;
    border-radius: 5px 5px 0 0 !important;
    border-bottom: 1px solid #DADADA;
    padding: 18px;
    position: relative;
}

.content-body section.card:has(form) > .card-body,
.content-body form > section.card > .card-body {
    background: #fdfdfd;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    border-radius: 5px;
}

.content-body section.card:has(form) > .card-header + .card-body,
.content-body form > section.card > .card-header + .card-body {
    border-radius: 0 0 5px 5px;
}

.content-body section.card:has(form) > .card-footer,
.content-body form > section.card > .card-footer {
    border-radius: 0 0 5px 5px;
    margin-top: -5px;
    background: #FFF;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--xa-focus) 45%, transparent);
    outline-offset: 2px;
}

.logo-container .logo img {
    object-fit: contain;
}

.toggle-sidebar-left {
    color: #fff;
    cursor: pointer;
    height: 60px;
    width: 60px;
}

.userbox .profile-avatar {
    align-items: center;
    background: #0088cc;
    color: #fff;
    display: inline-flex;
    height: 35px;
    justify-content: center;
    font-size: 1.35rem;
    width: 35px;
}

.userbox .userbox-menu-item {
    background: transparent;
    border: 0;
    border-radius: 2px;
    color: #7d7d7d;
    display: block;
    font-size: .75rem;
    line-height: 1.3rem;
    padding: 4px 10px;
    text-align: left;
    width: 100%;
}

.userbox .userbox-menu-item:hover,
.userbox .userbox-menu-item:focus {
    background: #ccc;
    color: #fff;
}

.content-body {
    min-height: calc(100vh - 60px);
}

.page-header {
    margin-bottom: 2rem;
}

.page-header > .right-wrapper {
    padding-right: 20px;
}

.table-responsive {
    min-height: .01%;
}

/* Porto tables-ajax register treatment. Data remains server-paged by Blazor. */
.content-body section.card table.table {
    border-collapse: collapse !important;
    margin: 0 !important;
    width: 100% !important;
}

.content-body section.card table.table > thead > tr > th {
    background: #f6f6f6;
    border: 1px solid #dee2e6;
    color: #333;
    font-weight: 600;
    padding: .75rem;
    vertical-align: middle;
}

.content-body section.card table.table > tbody > tr > td {
    border: 1px solid #dee2e6;
    padding: .75rem;
    vertical-align: middle;
}

.content-body section.card table.table > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(0, 0, 0, .025);
}

.content-body section.card table.table > tbody > tr:hover > * {
    background-color: rgba(0, 0, 0, .055);
}

.expense-register-table {
    table-layout: fixed;
}

.expense-register-table .expense-date-column {
    width: 8%;
}

.expense-register-table .expense-account-column {
    width: 8%;
}

.expense-register-table .expense-category-column {
    width: 24%;
}

.expense-register-table .expense-description-column {
    width: 42%;
}

.expense-register-table .expense-amount-column {
    width: 6%;
}

.expense-register-table .expense-actions-column {
    width: 10%;
}

.expense-register-table td:nth-child(2),
.expense-register-table td:nth-child(3),
.expense-register-table td:nth-child(4) {
    overflow-wrap: anywhere;
}

.content-body section.card table.table > thead > tr > th:has(> button.btn-link) {
    padding-right: 24px !important;
    position: relative;
}

.content-body section.card table.table > thead > tr > th > button.btn-link {
    color: inherit;
    font-weight: inherit;
    text-align: inherit;
    text-decoration: none;
    width: 100%;
}

.content-body section.card table.table > thead > tr > th:has(> button.btn-link)::after {
    color: #aaa;
    content: "\2195";
    font-size: .75rem;
    line-height: 1;
    position: absolute;
    right: 8px;
    top: calc(50% - .375rem);
}

.content-body section.card .card-body:has(table.table) > .row.g-2.mb-3 {
    align-items: center;
    margin-bottom: 15px !important;
}

.xa-datatable-pager {
    clear: both;
    margin: 0;
    padding: 0;
}

.content-body section.card > .card-body:has(> .xa-datatable-pager) {
    display: flex;
    flex-direction: column;
}

.content-body section.card > .card-body > .xa-datatable-pager {
    display: contents;
}

.content-body section.card > .card-body > .xa-datatable-pager > .row:first-child {
    order: 1;
}

.content-body section.card > .card-body > .table-responsive {
    order: 2;
}

.content-body section.card > .card-body > .xa-datatable-pager > .row:last-child {
    order: 3;
}

.xa-datatable-pager .dataTables_paginate {
    margin: 0;
    text-align: right;
    white-space: nowrap;
}

.xa-datatable-pager .pagination {
    justify-content: flex-end;
    margin-bottom: 0;
    margin-top: 20px !important;
}

.xa-datatable-pager .page-link {
    min-width: 34px;
    text-align: center;
}

.card-footer .xa-datatable-pager .pagination {
    margin-top: 0 !important;
}

.employee-profile-tabs.tabs-vertical .nav-tabs {
    width: 15%;
}

.employee-profile-tabs .tabs-modern .nav .nav-link > i {
    color: var(--xa-focus) !important;
}

.employee-profile-tabs .tabs-modern > div[class*="col"]:last-child {
    min-width: 0;
}

.employee-profile-tabs #employee-profile-salary > section.card {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
}

.employee-profile-tabs #employee-profile-salary > section.card > .card-header {
    background: transparent !important;
    border: 0 !important;
    padding: 0 0 1rem !important;
}

.employee-profile-tabs #employee-profile-salary > section.card > .card-body {
    padding: 0 !important;
}

.employee-profile-records-table {
    table-layout: fixed;
    width: 100%;
}

.employee-profile-records-table .record-column {
    width: 18%;
}

.employee-profile-records-table .detail-column {
    width: 52%;
}

.employee-profile-records-table .date-column {
    width: 18%;
}

.employee-profile-records-table .status-column {
    width: 12%;
}

.employee-profile-records-table th,
.employee-profile-records-table td {
    overflow-wrap: anywhere;
    white-space: normal;
    word-break: break-word;
}

.employee-profile-detail-section {
    border-bottom: 1px solid #eee;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
}

.employee-profile-detail-section:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.employee-profile-detail-section > h3 {
    color: var(--xa-focus);
    font-weight: 600;
    margin-bottom: 1rem;
}

.employee-photo-preview {
    background: #f4f4f4;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .25);
    flex: 0 0 auto;
    height: 112px;
    object-fit: cover;
    width: 112px;
}

.employee-photo-placeholder {
    align-items: center;
    color: #aaa;
    display: flex;
    font-size: 3rem;
    justify-content: center;
}

.employee-photo-crop-panel {
    margin: 0 auto;
    max-width: 420px;
}

.employee-photo-crop-canvas {
    background: #222;
    cursor: grab;
    display: block;
    height: auto;
    max-width: 360px;
    touch-action: none;
    user-select: none;
    width: 100%;
}

.employee-photo-crop-canvas:active {
    cursor: grabbing;
}

.employee-directory-photo {
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
    display: inline-flex;
    height: 42px;
    object-fit: cover;
    vertical-align: middle;
    width: 42px;
}

.employee-directory-photo-placeholder {
    align-items: center;
    background: var(--xa-focus);
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    justify-content: center;
}

.candidate-profile-section {
    border-top: 1px solid #e5e5e5;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}

.candidate-profile-entry {
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 1rem;
    padding: 1rem;
    position: relative;
}

.candidate-entry-remove {
    position: absolute;
    right: .75rem;
    top: .75rem;
    z-index: 2;
}

.candidate-profile-entry .row {
    padding-right: 2.5rem;
}

.candidate-profile-description {
    max-width: 420px;
    white-space: pre-wrap;
}

.candidate-ai-import {
    background: linear-gradient(135deg, rgba(0, 136, 204, .1), rgba(0, 136, 204, .025));
    border: 2px solid var(--xa-focus, #0088cc);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 136, 204, .12);
    padding: 1.5rem;
}

.candidate-ai-import-heading {
    align-items: center;
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.candidate-ai-import-icon {
    align-items: center;
    background: var(--xa-focus, #0088cc);
    border-radius: 50%;
    color: #fff;
    display: flex;
    flex: 0 0 52px;
    font-size: 1.8rem;
    height: 52px;
    justify-content: center;
}

.candidate-resume-dropzone {
    align-items: center;
    background: #fff;
    border: 3px dashed var(--xa-focus, #0088cc);
    border-radius: 8px;
    color: #555;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 210px;
    overflow: hidden;
    padding: 2rem;
    position: relative;
    text-align: center;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.candidate-resume-dropzone:hover,
.candidate-resume-dropzone:focus-within {
    background: #f5fbfe;
    border-color: #006fa6;
    box-shadow: 0 0 0 4px rgba(0, 136, 204, .12);
    transform: translateY(-1px);
}

.candidate-resume-dropzone.is-processing {
    cursor: wait;
}

.candidate-resume-file-input {
    cursor: pointer;
    height: 100%;
    inset: 0;
    opacity: 0;
    position: absolute;
    width: 100%;
    z-index: 2;
}

.candidate-resume-upload-icon {
    color: var(--xa-focus, #0088cc);
    font-size: 4rem;
    margin-bottom: .65rem;
}

.candidate-resume-dropzone strong {
    color: #333;
    font-size: 1.15rem;
    margin-bottom: .35rem;
}

.candidate-ai-result {
    background: #fff;
    border: 1px solid #cde7d5;
    border-left: 4px solid #47a447;
    border-radius: 4px;
    padding: 1rem;
}

#menu li.nav-parent:not(:has(> ul.nav-children > li)) {
    display: none;
}

#expense-category-tree .jstree-ocl {
    background-image: none !important;
    color: #777;
    position: relative;
}

#expense-category-tree .jstree-open > .jstree-ocl::before,
#expense-category-tree .jstree-closed > .jstree-ocl::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    left: 7px;
    position: absolute;
    top: 2px;
}

#expense-category-tree .jstree-open > .jstree-ocl::before {
    content: "\f0d7";
}

#expense-category-tree .jstree-closed > .jstree-ocl::before {
    content: "\f0da";
}

.validation-message {
    display: block;
    font-size: .8rem;
    margin-top: .25rem;
}

.loading-state,
.empty-state,
.error-state {
    padding: 3rem 1rem;
    text-align: center;
}

@media (max-width: 767px) {
    .header-right {
        padding-right: .5rem;
    }

    .header-right > .separator {
        display: none;
    }

    .content-body {
        padding: 20px 15px;
    }

    .xa-datatable-pager .dataTables_paginate {
        text-align: center;
    }

    .xa-datatable-pager .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1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2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}