.harmonia-theme {
    --harmonia-card: linear-gradient(135deg, #fdfcff, #f3f0fd);
    --harmonia-action: linear-gradient(115deg, #07854e, #008477 66%, #006887);
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: .9rem;
}

.harmonia-theme .content-wrapper > .content-header {
    padding: 22px 20px 12px;
}

.harmonia-theme .content-wrapper > .content:where(:not(:has(> .harmonia-invoice))) {
    padding-right: 16px;
    padding-left: 16px;
}

.harmonia-theme .content-wrapper > .content:where(:first-child) {
    padding-top: 20px;
}

.harmonia-theme .content-header :is(h1, h2),
.harmonia-theme .content > .container-fluid > .row.mb-2 > div > h3,
.harmonia-theme #erTitulo,
.harmonia-theme #notificacionesAdminTitulo {
    color: var(--harmonia-ink);
    font-family: inherit;
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    font-weight: 750;
    letter-spacing: -.03em;
}

.harmonia-theme .content-header :is(h1, h2)::before {
    content: '\f5fd';
    display: inline-block;
    margin-right: .65rem;
    color: var(--harmonia-accent);
    font-family: 'Font Awesome 5 Free';
    font-size: .85em;
    font-weight: 900;
}

.harmonia-theme .breadcrumb {
    padding: .35rem 0;
    background: transparent;
    font-size: .85rem;
}

.harmonia-theme .breadcrumb-item + .breadcrumb-item::before {
    color: #9671d9;
}

.harmonia-theme .row > :is(.col, [class^='col-']) {
    min-width: 0;
}

.harmonia-theme .row > .form-group:where(:not([class*='col-'])) {
    flex: 1 1 100%;
    min-width: 0;
}

.harmonia-theme .card:where(:not(.harmonia-invoice *)) {
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, .94);
    border-radius: 18px;
    background: var(--harmonia-card);
    box-shadow: var(--harmonia-shadow) !important;
    color: var(--harmonia-ink);
}

.harmonia-theme .card.card-outline:where(:not(.harmonia-invoice *)) {
    border-top: 3px solid #a38ae6;
}

.harmonia-theme .card:where(:not(.harmonia-invoice *)) > .card-header {
    padding: 14px 18px !important;
    border-bottom: 1px solid #e8e1f9;
    border-radius: 17px 17px 0 0;
    background: linear-gradient(115deg, #fcfaff, #f0eafa);
    color: var(--harmonia-ink);
}

.harmonia-theme :is(.card-dark, .card-primary, .card-gray, .card-secondary, .card-info, .card-success, .card-warning, .card-danger):not(.card-outline):where(:not(.harmonia-invoice *)) > .card-header {
    background: linear-gradient(115deg, #fcfaff, #f0eafa);
    color: var(--harmonia-ink);
}

.harmonia-theme .card-title:where(:not(.harmonia-invoice *)),
.harmonia-theme .card-header > :is(h2, h3, h4):where(:not(.harmonia-invoice *)) {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
}

.harmonia-theme .card-title > i:where(:not(.harmonia-invoice *)) {
    margin-right: .4rem;
    color: var(--harmonia-accent);
}

.harmonia-theme .card .card-tools:where(:not(.harmonia-invoice *)) {
    margin-top: 0;
}

.harmonia-theme .card .card-header .btn-tool {
    color: #65528c;
}

.harmonia-theme .card-footer:where(:not(.harmonia-invoice *)) {
    border-top: 1px solid #e7dff7;
    border-radius: 0 0 17px 17px;
    background: rgba(236, 229, 250, .38);
}

.harmonia-theme .collapsed-card:where(:not(.harmonia-invoice *)) > .card-header {
    border-bottom: 0;
    border-radius: 17px;
}

.harmonia-theme .form-group > label,
.harmonia-theme .col-form-label {
    color: var(--harmonia-ink);
    font-weight: 650;
}

.harmonia-theme .form-group > label > i {
    color: var(--harmonia-accent);
}

.harmonia-theme :is(.form-control, .form-select, .custom-select, .custom-file-label):where(:not(.harmonia-invoice *)) {
    border: 1px solid #c9bdee !important;
    border-radius: 9px;
    background-color: #faf8ff;
    color: var(--harmonia-ink);
    box-shadow: 0 2px 4px rgba(85, 60, 190, .045);
    font-size: .9rem;
}

.harmonia-theme :is(.form-select, .custom-select):where(:not(.harmonia-invoice *)) {
    display: block;
    width: 100%;
    min-height: calc(1.5em + .75rem + 2px);
}

.harmonia-theme :is(.form-control, .form-select, .custom-select):where(:not(.harmonia-invoice *)):focus {
    border-color: #8763dc !important;
    box-shadow: 0 0 0 3px rgba(116, 69, 220, .13);
}

.harmonia-theme .form-control:where(:not(.harmonia-invoice *))::placeholder {
    color: #74698c;
}

.harmonia-theme :is(.form-control, .form-select, .custom-select):where(:not(.harmonia-invoice *)):disabled,
.harmonia-theme .form-control:where(:not(.harmonia-invoice *))[readonly] {
    background-color: #ece8f5;
    color: #655978;
    opacity: 1;
}

.harmonia-theme :is(.form-control, .form-select, .custom-select).is-invalid,
.harmonia-theme .was-validated :is(.form-control, .form-select, .custom-select):invalid {
    border-color: #ce3d67 !important;
}

.harmonia-theme :is(.form-control, .form-select, .custom-select).is-valid,
.harmonia-theme .was-validated :is(.form-control, .form-select, .custom-select):valid {
    border-color: #168066 !important;
}

.harmonia-theme .input-group > :is(.input-group-prepend, .input-group-append) > :is(.input-group-text, .btn) {
    border-color: #c9bdee !important;
}

.harmonia-theme .input-group-text {
    background: #ece4fb;
    color: #5d3e9e;
}

.harmonia-theme :is(.form-check-input, .custom-control-input, input[type='checkbox'], input[type='radio']) {
    accent-color: var(--harmonia-accent);
}

.harmonia-theme .select2-container {
    max-width: 100%;
}

.harmonia-theme .select2-container :is(.select2-selection--single, .select2-selection--multiple),
.harmonia-theme .select2-dropdown {
    border-color: #c9bdee;
    border-radius: 9px;
    background: #faf8ff;
    color: var(--harmonia-ink);
}

.harmonia-theme .select2-container--default .select2-results__option--highlighted[aria-selected],
.harmonia-theme .select2-container--bootstrap4 .select2-results__option--highlighted[aria-selected] {
    background: #6a43c9;
    color: #fff;
}

.harmonia-theme .btn:where(:not(.harmonia-invoice *)) {
    border-radius: 9px;
    font-weight: 600;
}

.harmonia-theme .btn-primary:where(:not(.harmonia-invoice *)),
.harmonia-theme .btn-primary:where(:not(.harmonia-invoice *)):focus {
    border-color: #6942cf !important;
    background-color: #6942cf !important;
    background-image: linear-gradient(115deg, #7951df, #5a3ab9);
    color: #fff;
    box-shadow: 0 4px 10px rgba(94, 57, 181, .16);
}

.harmonia-theme .btn-success:where(:not(.harmonia-invoice *)),
.harmonia-theme .addNewRecord {
    border-color: transparent !important;
    background: var(--harmonia-action) !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(0, 131, 121, .14);
}

.harmonia-theme :is(.btn-info, .btn-secondary, .btn-default, .btn-light):where(:not(.harmonia-invoice *)) {
    border-color: #dbcef2;
    background: linear-gradient(115deg, #f1e9fd, #dfd0f8);
    color: #4f2e9c;
}

.harmonia-theme .btn-danger:where(:not(.harmonia-invoice *)) {
    border-color: #ecb7cb;
    background: linear-gradient(115deg, #fff5f9, #f7dcea);
    color: #ad1547;
}

.harmonia-theme .btn-outline-primary:where(:not(.harmonia-invoice *)) {
    border-color: #b6a0df;
    color: #6340b1;
}

.harmonia-theme .btn-outline-primary:where(:not(.harmonia-invoice *)):hover {
    background: #eee6fc;
    color: #4f2e9c;
}

.harmonia-theme .btn:where(:not(.harmonia-invoice *)):hover:not(:disabled):not(.disabled) {
    filter: brightness(.96);
}

.harmonia-theme :is(.btn, a, input, select, textarea):focus-visible {
    outline: 2px solid #8055da;
    outline-offset: 2px;
}

.harmonia-theme .btn:disabled,
.harmonia-theme .btn.disabled {
    opacity: .5;
}

.harmonia-theme .modal-content {
    border: 1px solid #e0d6f6;
    border-radius: 18px;
    background: #fcfaff;
    box-shadow: 0 16px 55px rgba(39, 22, 87, .25);
    color: var(--harmonia-ink);
}

.harmonia-theme .modal-content > .modal-header {
    align-items: center;
    padding: 14px 18px !important;
    border-bottom: 1px solid #e2d7f6;
    border-radius: 17px 17px 0 0;
    background: linear-gradient(115deg, #faf7ff, #eae0f9) !important;
    color: var(--harmonia-ink) !important;
}

.harmonia-theme .modal-title {
    font-weight: 700;
}

.harmonia-theme .modal-header :is(.close, .btn, .text-white) {
    color: #665080 !important;
}

.harmonia-theme .modal-footer {
    border-top-color: #e7dff7;
}

.harmonia-theme :is(.table, table.display):where(:not(.harmonia-invoice *)) {
    border-color: #ded4f3 !important;
    background: #fcfaff;
    color: var(--harmonia-ink);
    font-size: .875rem;
}

.harmonia-theme :is(table.table, table.dataTable, table.display):where(:not(.harmonia-invoice *)) > thead {
    border-color: #8764d2;
    background: linear-gradient(115deg, #7953dc, #6248bb) !important;
    color: #fff !important;
}

.harmonia-theme :is(table.table, table.dataTable, table.display):where(:not(.harmonia-invoice *)) > thead > tr > th {
    padding-top: .75rem;
    padding-right: .65rem;
    padding-bottom: .75rem;
    padding-left: .65rem;
    border-color: #8764d2;
    background-color: transparent !important;
    color: #fff !important;
    font-size: .82rem;
    font-weight: 650;
    vertical-align: middle;
}

.harmonia-theme table.dataTable:where(:not(.harmonia-invoice *)) > thead > tr > :is(.sorting, .sorting_asc, .sorting_desc) {
    padding-right: 1.5rem;
}

.harmonia-theme .table:where(:not(.harmonia-invoice *)) :is(td, th) {
    border-color: #e8e1f5;
}

.harmonia-theme :is(.table-striped, table.dataTable.display):where(:not(.harmonia-invoice *)) > tbody > tr:nth-of-type(odd):where(:not([class*='table-'], [class*='bg-'])) {
    background-color: #f3effb;
}

.harmonia-theme :is(.table-hover, table.dataTable.hover, table.dataTable.display):where(:not(.harmonia-invoice *)) > tbody > tr:hover:where(:not([class*='table-'], [class*='bg-'])) {
    background-color: #eae2fa;
}

.harmonia-theme table.dataTable:where(:not(.harmonia-invoice *)) > tbody > tr > td {
    padding: .55rem .65rem;
    font-size: .875rem !important;
}

.harmonia-theme .dataTables_wrapper:where(:not(.harmonia-invoice *)) {
    max-width: 100%;
    padding: 14px;
    border: 1px solid #e1d7f5;
    border-radius: 16px;
    background: rgba(253, 251, 255, .88);
    box-shadow: 0 5px 16px rgba(77, 58, 170, .07);
}

.harmonia-theme .dataTables_scrollHead:where(:not(.harmonia-invoice *)) {
    border-radius: 10px 10px 0 0;
}

.harmonia-theme .dataTables_wrapper :is(.dataTables_filter, .dataTables_length) label {
    margin-bottom: 12px;
    color: var(--harmonia-muted);
    font-size: .85rem;
}

.harmonia-theme .dataTables_wrapper :is(.dataTables_filter input, .dataTables_length select) {
    padding: .35rem .55rem;
    border: 1px solid #c9bdee !important;
    border-radius: 8px;
    background: #faf8ff;
    color: var(--harmonia-ink);
}

.harmonia-theme .dataTables_wrapper :is(.dataTables_info, .dataTables_paginate) {
    margin-top: 10px;
    color: var(--harmonia-muted);
    font-size: .82rem;
}

.harmonia-theme .dataTables_wrapper .dataTables_paginate .paginate_button,
.harmonia-theme .page-item .page-link {
    border-radius: 8px;
    color: #5e3ca3 !important;
}

.harmonia-theme .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.harmonia-theme .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover,
.harmonia-theme .page-item.active .page-link {
    border-color: #7049ce;
    background: #7049ce;
    color: #fff !important;
}

.harmonia-theme .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    border-color: #cfbfee;
    background: #ece3fb;
    color: #5e3ca3 !important;
}

.harmonia-theme button.dt-button,
.harmonia-theme a.dt-button {
    margin-bottom: 10px;
    padding: .5rem .85rem !important;
    border: 1px solid #d9cbef;
    border-radius: 9px;
    background: #eee5fa;
    color: #513290;
    font-size: .85rem;
    font-weight: 650;
}

.harmonia-theme .buttons-excel {
    border-color: transparent !important;
    background: var(--harmonia-action) !important;
    color: #fff !important;
}

.harmonia-theme .buttons-print {
    border-color: #d9cbef !important;
    background: #eee5fa !important;
    color: #513290 !important;
}

.harmonia-theme .nav-tabs {
    gap: 4px;
    border-bottom-color: #d9cbef;
}

.harmonia-theme .nav-tabs .nav-link {
    border-radius: 10px 10px 0 0;
    color: #665081;
}

.harmonia-theme .nav-tabs .nav-link.active {
    border-color: #d9cbef #d9cbef #fcfaff;
    background: #fcfaff;
    color: #5d32b4;
    font-weight: 700;
}

.harmonia-theme .info-box {
    border: 1px solid #e7ddf7;
    border-radius: 15px;
    background: #fcfaff;
    box-shadow: var(--harmonia-shadow);
    color: var(--harmonia-ink);
}

.harmonia-theme .info-box .info-box-icon {
    border-radius: 11px;
}

.harmonia-theme .small-box {
    border: 1px solid #d9cbf0 !important;
    border-radius: 16px;
    box-shadow: var(--harmonia-shadow);
}

.harmonia-theme .small-box.bg-info {
    background: linear-gradient(120deg, #7350ce, #5443a0) !important;
    color: #fff !important;
}

.harmonia-theme .small-box.bg-success {
    background: var(--harmonia-action) !important;
    color: #fff !important;
}

.harmonia-theme .small-box > .small-box-footer {
    border-radius: 0 0 15px 15px;
}

.harmonia-theme .content-wrapper .nav-pills .nav-link {
    border-radius: 10px;
    color: #604591;
}

.harmonia-theme .content-wrapper .nav-pills .nav-link.active {
    background: #7049ce;
    color: #fff;
}

.harmonia-theme .jstree-default .jstree-clicked {
    border-radius: 5px;
    background: #e7dcfa;
    box-shadow: none;
}

.harmonia-theme .jstree-default .jstree-hovered {
    border-radius: 5px;
    background: #f0e9fb;
    box-shadow: none;
}

.harmonia-theme .ui-autocomplete {
    border-color: #d4c5ef;
    border-radius: 10px;
    background: #fcfaff;
    box-shadow: var(--harmonia-shadow);
    color: var(--harmonia-ink);
}

.harmonia-theme .ui-autocomplete .ui-state-active {
    border-color: #7049ce;
    background: #7049ce;
    color: #fff;
}

.harmonia-theme .badge-primary {
    background: #7049ce;
}

.harmonia-theme .notificaciones-elemento.sin-leer {
    border-left-color: #7049ce;
    background: #f2ecfc;
}

.harmonia-theme .notificaciones-elemento .notificaciones-punto {
    background: #7049ce;
}

.harmonia-theme .dropdown-menu {
    border-color: #dfd3f3;
    border-radius: 12px;
    box-shadow: var(--harmonia-shadow);
}

.harmonia-theme .dropdown-item:focus,
.harmonia-theme .dropdown-item:hover {
    background: #eee6fa;
    color: #543493;
}

@media (max-width: 575.98px) {
    .harmonia-theme .content-wrapper > .content-header {
        padding: 18px 8px 8px;
    }

    .harmonia-theme .content-wrapper > .content:where(:not(:has(> .harmonia-invoice))) {
        padding-right: 8px;
        padding-left: 8px;
    }

    .harmonia-theme .card:where(:not(.harmonia-invoice *)) > .card-header {
        padding: 12px 14px !important;
    }

    .harmonia-theme .card:where(:not(.harmonia-invoice *)) > .card-header > .card-tools {
        float: none;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin: 8px 0 0;
    }

    .harmonia-theme .card:where(:not(.harmonia-invoice *)) > .card-header > .card-title {
        float: none;
    }

    .harmonia-theme .dataTables_wrapper:where(:not(.harmonia-invoice *)) {
        padding: 10px;
    }

    .harmonia-theme .dt-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }

    .harmonia-theme .dataTables_filter input {
        max-width: 100%;
    }
}
