:root {
    --theme-default: #e41b12;
    --theme-secondary: #030405;
    --theme-terciary: #fab515;
    --estado-facturado: #127b88;
    --estado-vencido: #9e2222;
    --estado-vigente: #2f8f2f;
    --estado-porcobrar: #8f6a2f;
}

:root .dark-only {
    --theme-default: #e41b12;
    --theme-secondary: #030405;
    --theme-terciary: #fab515;
    --estado-facturado: #2fb8cc;
    --estado-vencido: #e05252;
    --estado-vigente: #4caf50;
    --estado-porcobrar: #d9a441;
}

input.form-control.ui-autocomplete-input {
    background-image: url(https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/icons/search.svg);
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px 16px;
    padding-right: 30px;
    border-color: var(--theme-secondary) !important;
}

.page-wrapper .page-body-wrapper .page-title {
    margin: 0 -27px 30px;
    padding: 9px 16px 4px;
    background-color: #fab515;
}

body.dark-only .page-wrapper .page-body-wrapper .page-title {
    background-color: #171818;
    background-image: linear-gradient(to right, rgb(228 27 18 / 12%), rgb(3 4 5 / 40%));
}

.card h3 {
    padding: 10px 0px;
}

.simplebar-mask {
    top: 118px !important;
}

.close_icon .simplebar-mask {
    top: 90px !important;
}

.close_icon .page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .simplebar-content {
    justify-self: center;
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper.close_icon {
    width: 70px;
}

.panelDashVista {
    min-height: 45px !important;
}

.stat-card.panelDashVista {
    min-height: 0 !important;
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image: url('data:image/svg+xml;utf8,<svg fill="gray" height="16" viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M4 6l4 4 4-4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px 16px;
    padding-right: 30px;
    border-color: var(--theme-secondary) !important;
}

.page-wrapper .page-body-wrapper .page-title .breadcrumb .breadcrumb-item {
    color: var(--theme-default);
}

.page-wrapper .page-body-wrapper .page-title .breadcrumb .breadcrumb-item+.breadcrumb-item:before {
    color: var(--theme-default);
}

input#user_imagen {
    width: 100%;
}

.cantPaginasPagination {
    padding-left: 20px;
    font-weight: bold;
}

.iso-wrapper img {
    height: 36px;
}

ul.sidebar-submenu a {
    cursor: pointer;
}

.sidebar-list {
    cursor: pointer !important;
}

.pagination {
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ededed;
}

.table th {
    font-weight: bold;
}

.hidden {
    display: none !important;
}

.form {
    padding-left: 20px;
    padding-right: 20px;
}

.modal-content .form {
    padding-left: 0px;
    padding-right: 0px;
}

td.listActions {
    padding-right: 30px;
    font-size: 18px !important;
    white-space: nowrap;
    text-align: right;
}

.filters {
    display: none;
    margin-bottom: 0px;
}

.filters,
.filters.forms.card.card-body {
    padding: 0.65rem 0.85rem;
    margin-top: 0.5rem;
    border: 1px solid var(--theme-default) !important;
    border-radius: 0.45rem !important;
    box-shadow: var(--theme-secondary);
}

.filters form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.45rem 0.65rem;
}

.filters h3 {
    flex: 0 0 100%;
    font-size: 0.9rem !important;
    font-weight: 600;
    padding: 0 0 0.35rem 0;
    margin: 0 0 0.25rem 0;
    color: var(--filter-accent);
    line-height: 1.2;
    border-bottom: 1px solid var(--filter-border);
    letter-spacing: 0.01em;
}

.filters .mb-3.row {
    display: flex;
    flex-direction: column;
    margin: 0;
    flex: 1 1 155px;
    min-width: 130px;
    max-width: 195px;
}

.filters .mb-3.row.form-group-wide {
    flex: 1 1 210px;
    max-width: 240px;
}

.filters .mb-3.row:has(.form-check),
.filters .mb-3.row.form-group-check {
    flex: 1 1 100%;
    max-width: none;
    min-width: 0;
    justify-content: center;
}

.filters .mb-3.row label {
    font-size: 0.78rem;
    font-weight: 500;
    margin-bottom: 0.15rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filters .mb-3.row .form-check-label {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.filters .form-control,
.filters select.form-control {
    min-height: calc(1.5em + 0.45rem + 2px);
    padding: 0.2rem 0.45rem;
    font-size: 0.8125rem;
    width: 100%;
    background-color: var(--bs-body-bg);
    border-color: var(--filter-border);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.filters .form-control:focus,
.filters select.form-control:focus {
    border-color: var(--filter-accent);
    box-shadow: 0 0 0 0.15rem rgba(79, 152, 195, 0.18);
}

.filters .mb-3.row>.col-sm-2,
.filters .mb-3.row>.col-sm-9,
.filters .mb-3.row>.col-md-3,
.filters .mb-3.row>.col-md-6 {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.filters .filters-actions,
.filters form>div:not(.form-group) {
    display: flex;
    align-items: flex-end;
    gap: 0.35rem;
    flex: 0 0 auto;
    margin-left: auto;
    padding-bottom: 1px;
}

.filters .select2-container {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    display: block !important;
}

.filters .select2-container .select2-selection--single,
.filters .select2-container .select2-selection--multiple {
    min-height: calc(1.5em + 0.45rem + 2px);
    font-size: 0.8125rem;
    border-color: var(--filter-border);
    background-color: var(--bs-body-bg);
}

.filters .select2-container .select2-selection--multiple {
    padding: 0.1rem 0.25rem;
}

.filters .select2-container .select2-selection__choice {
    font-size: 0.75rem;
    padding: 0.1rem 0.35rem !important;
    margin: 0.1rem !important;
}

.filters .row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.45rem 0.65rem;
    width: 100%;
    margin: 0;
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
}

.filters .row>[class*="col-"] {
    flex: 1 1 155px;
    min-width: 130px;
    max-width: 195px;
    padding: 0;
}

.filters .row>.botones {
    flex: 1 1 100%;
    max-width: none;
    margin-left: 0;
    justify-content: flex-end;
}

td.listActions .fa {
    margin-right: 5px !important;
}

.filters .row {
    margin: 0px 10px;
    margin-bottom: 15 !important;
}

.filters button {
    margin: 0px 10px;
    margin-bottom: 15 !important;
}

.filters form {
    align-items: end;
}

span.toggle-handle.btn.btn-default {
    background-color: var(--theme-secondary) !important;
}

label.btn.btn-default.active.toggle-off {
    background-color: #dbdbdb;
}

.panelButtonList {
    margin-bottom: 5px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
    align-items: center;
}

.page-title {
    margin-bottom: 10px !important;
}

.theme-form input[type=date],
.theme-form input[type=datetime-local],
.theme-form input[type=email],
.theme-form input[type=file],
.theme-form input[type=month],
.theme-form input[type=number],
.theme-form input[type=password],
.theme-form input[type=search],
.theme-form input[type=tel],
.theme-form input[type=text],
.theme-form input[type=time],
.theme-form input[type=url],
.theme-form input[type=week],
.theme-form select,
.theme-form textarea {
    border-color: #b8bdc2 !important;
}

body.dark-only .theme-form input[type=date],
body.dark-only .theme-form input[type=datetime-local],
body.dark-only .theme-form input[type=email],
body.dark-only .theme-form input[type=file],
body.dark-only .theme-form input[type=month],
body.dark-only .theme-form input[type=number],
body.dark-only .theme-form input[type=password],
body.dark-only .theme-form input[type=search],
body.dark-only .theme-form input[type=tel],
body.dark-only .theme-form input[type=text],
body.dark-only .theme-form input[type=time],
body.dark-only .theme-form input[type=url],
body.dark-only .theme-form input[type=week],
body.dark-only .theme-form select,
body.dark-only .theme-form textarea {
    background-color: #fab5150a !important;
    border: 1px solid #575757 !important;
    color: #fff;
}

.active>.page-link,
.page-link.active {
    background-color: var(--theme-default);
    border-color: var(--theme-default);
}

tr.rowNoElements {
    font-size: 14px;
}

.page-link {
    color: var(--theme-default);
    display: list-item;
    cursor: pointer;
}

span.loadMiga.breadcrumb-item {
    cursor: pointer;
}

button.btn.btn-sm.btn-primary.searchList {
    height: 32px;
}

.page-wrapper .page-header .header-wrapper {
    padding: 10px 35px;
}

.page-wrapper.compact-wrapper .page-body-wrapper .page-body {
    margin-top: 60px;
    min-height: calc(100vh - 118px);
}

.loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 0;
    margin: 0;
}

.loading::before {
    content: '';
    width: 50px;
    height: 50px;
    border: 4px solid #e3e3e3;
    border-top: 4px solid var(--theme-default);
    border-radius: 50%;
    animation: loading-spin 1s linear infinite;
}

.loading::after {
    content: 'Cargando...';
    position: absolute;
    top: 60%;
    font-size: 14px;
    color: var(--theme-secondary);
    font-weight: 500;
    text-align: center;
    width: 100%;
}

@keyframes loading-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Variante compacta del indicador de carga */
.loading.loading-compact {
    background: rgba(255, 255, 255, 0.8);
}

.loading.loading-compact::before {
    width: 30px;
    height: 30px;
    border-width: 3px;
}

.loading.loading-compact::after {
    font-size: 12px;
    top: 65%;
}

/* Variante sin texto */
.loading.loading-no-text::after {
    display: none;
}

/* Variante con efecto de pulso */
.loading.loading-pulse::before {
    animation: loading-pulse 1.5s ease-in-out infinite;
    border: none;
    background: var(--theme-default);
}

@keyframes loading-pulse {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }

    100% {
        transform: scale(0.8);
        opacity: 1;
    }
}

.numberData {
    text-wrap: nowrap;
    text-align: right !important;
}

.table-hover tbody tr:hover {
    background-color: rgb(154 154 154 / 0%);
}

form .card {
    border-color: #727c8680;
}

body.dark-only .page-wrapper .page-body-wrapper .page-body .card:not(.email-body) {
    border: 1px solid var(--theme-terciary) !important;
}

.table-responsive {
    margin-bottom: 10px;
    padding-bottom: 10px;
}

table {
    font-size: 12px;
}

body.dark-only .page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content>li .sidebar-submenu li a.active {
    color: var(--theme-default);
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content>li .sidebar-submenu li a.active {
    color: var(--theme-default);
}

.listActions .iconDelete {
    color: #b14c4c;
}

.iconDelete {
    cursor: pointer !important;
}

.listActions .iconEdit {
    color: #a29ac9;
}

.listActions .verHistorial {
    color: #6fa16f;
}

.dragHandleTipoProductoPrecio {
    color: #6699cc;
}

h3.screen-title {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.error-required {
    background-color: #FF917D !important;
}

body.dark-only .error-required {
    background-color: #FF917D !important;
}

.logo-wrapper img {
    width: 100% !important;
    height: auto !important;
    margin-top: 5px;
}

.close_icon .logo-icon-wrapper {
    padding: 0 15px !important;
    padding-top: 10px !important;
}

.form-control {
    padding: 3px 8px !important;
    /*min-width: max-content;*/
    height: 30px;
}

span.input-group-append.input-group-text {
    height: 30px;
}

form#formClienteCredito .form-switch {
    padding-left: 0px;
    margin-left: -15px;
}

.filters form h3 {
    font-size: 20px;
    margin-bottom: 0px;
    margin-right: 20px;
}

.dark-only .pagination {
    background-color: transparent;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #575757;
}

.dark-only .page-link {
    color: hsla(0, 0%, 100%, 0.8);
    display: list-item;
    cursor: pointer;
}

.dark-only .active>.page-link,
.page-link.active {
    background-color: var(--theme-default);
    border-color: var(--theme-default);
}

.dark-only .loading {
    background: rgba(24, 24, 24, 0.9);
}

.dark-only .loading::before {
    border: 4px solid #333333;
    border-top: 4px solid var(--theme-default);
}

.dark-only .loading::after {
    color: #ffffff;
}

.dark-only .ui-widget-content {
    border: 1px solid #aaaaaa;
    background: #181818;
    color: #9f9f9f;
}

.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active,
a.ui-button:active,
.ui-button:active,
.ui-button.ui-state-active:hover {
    border: 1px solid var(--theme-secondary);
    background: var(--theme-default);
    font-weight: normal;
    color: white;
}


.dark-only .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgb(141 141 141 / 20%);
    --bs-table-accent-bg: unset;
}

.logo-wrapper {
    border-right: 0px !important;
}

/* Modern Info Box - Zono Theme Compatibility */
.info-box {
    display: flex;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 20px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 100px;
    align-items: center;
    border: 1px solid #f0f0f0;
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.info-box-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 24px;
    margin-right: 15px;
    color: #fff;
    background-color: var(--theme-default) !important;
}

.info-box-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-box-text {
    font-size: 10px;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.dark-only .info-box-text {
    color: #ffffff !important;
}

.info-box-number {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    display: block;
}

.info-box-number-caja {
    font-weight: 700;
    color: #ffffff;
    display: block;
}



/* Background Variations */
.bg-info .info-box-icon {
    background-color: #3e8ef7 !important;
}

.bg-success .info-box-icon {
    background-color: #22af47 !important;
}

.bg-danger .info-box-icon {
    background-color: #f33923 !important;
}

.bg-warning .info-box-icon {
    background-color: #ff9800 !important;
}

/* Dark mode adjustments */
body.dark-only .info-box {
    background-color: #2d6d9421;
    border-color: #2b668a;
}

body.dark-only .info-box-text {
    color: #a1a1a1;
}

body.dark-only .info-box-number {
    color: #fff;
}

/* Small box compatibility (Legacy) */
.small-box {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: block;
    margin-bottom: 20px;
    position: relative;
    padding: 15px;
}

.small-box .icon>i {
    font-size: 50px !important;
    position: absolute;
    right: 15px;
    top: 15px;
    transition: all .3s linear;
    opacity: 0.9;
}

/* Panel de estadísticas (genérico; cc-* mantiene compatibilidad) */
.cc-resumen-cliente {
    border: 1px solid #eef1f6;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.stat-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cc-ficha-stats {
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
}

.stat-panel--inline {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.stat-panel--inline .stat-panel-group--identity {
    flex: 0 0 auto;
    min-width: 220px;
}

.stat-panel--inline .stat-panel-group--flex {
    flex: 1 1 360px;
    display: flex;
    align-items: center;
}

.stat-panel--inline .stat-panel-group--flex .stat-row {
    width: 100%;
}

.stat-panel-group,
.cc-ficha-stats-group {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border: 1px solid #e8edf5;
    border-radius: 12px;
    padding: 10px 12px;
}

.stat-panel-group--identity {
    display: flex;
    align-items: center;
}

.stat-panel-title,
.cc-ficha-stats-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #475569;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #dbe3ef;
}

.stat-panel-title i,
.cc-ficha-stats-title i {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #fff;
    background: var(--theme-default, #3e8ef7);
}

.stat-row,
.cc-stats-stack,
.cc-stats-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
}

.stat-row .stat-card,
.cc-stats-row .cc-stat-item {
    flex: 1 1 100px;
    min-width: 90px;
    max-width: 100%;
    align-self: flex-start;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 6px 8px;
    gap: 6px;
}

.stat-row .stat-accent,
.cc-stats-row .cc-stat-accent {
    left: 0;
    right: 0;
    top: 0;
    bottom: auto;
    width: 100%;
    height: 3px;
    border-radius: 10px 10px 0 0;
}

.stat-row .stat-icon,
.cc-stats-row .cc-stat-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    font-size: 13px;
    margin: 0;
}

.stat-row .stat-body,
.cc-stats-row .cc-stat-body {
    align-items: center;
    width: 100%;
    flex: 0 0 auto;
}

.stat-row .stat-value,
.cc-stats-row .cc-stat-value {
    font-size: 13px;
}

.stat-row .stat-meta,
.cc-stats-row .cc-stat-meta {
    font-size: 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.stat-card,
.cc-stat-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px 11px 14px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e8edf5;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover,
.cc-stat-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.stat-accent,
.cc-stat-accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 10px 0 0 10px;
}

.stat-icon,
.cc-stat-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #fff;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}

.stat-body,
.cc-stat-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    gap: 1px;
}

.stat-label,
.cc-stat-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    line-height: 1.2;
}

.stat-value,
.cc-stat-value {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-meta,
.cc-stat-meta {
    font-size: 10px;
    color: #94a3b8;
    line-height: 1.2;
}

.stat-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.stat-identity-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    background: linear-gradient(135deg, #3e8ef7, #1d4ed8);
    box-shadow: 0 4px 12px rgba(62, 142, 247, 0.35);
}

.stat-identity-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}

.stat-identity-name {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-identity-meta {
    font-size: 12px;
    color: #64748b;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-primary .stat-accent,
.stat-primary .stat-icon,
.cc-stat-total .cc-stat-accent,
.cc-stat-total .cc-stat-icon {
    background: linear-gradient(135deg, #3e8ef7, #1d4ed8);
}

.stat-success .stat-accent,
.stat-success .stat-icon,
.cc-stat-cobrado .cc-stat-accent,
.cc-stat-cobrado .cc-stat-icon {
    background: linear-gradient(135deg, #22af47, #15803d);
}

.stat-danger .stat-accent,
.stat-danger .stat-icon,
.cc-stat-adeudado .cc-stat-accent,
.cc-stat-adeudado .cc-stat-icon {
    background: linear-gradient(135deg, #f33923, #c2410c);
}

.stat-warning .stat-accent,
.stat-warning .stat-icon,
.cc-stat-sin-imputar .cc-stat-accent,
.cc-stat-sin-imputar .cc-stat-icon {
    background: linear-gradient(135deg, #ff9800, #d97706);
}

.stat-purple .stat-accent,
.stat-purple .stat-icon,
.cc-stat-creditos .cc-stat-accent,
.cc-stat-creditos .cc-stat-icon {
    background: linear-gradient(135deg, #7c7cb8, #5b5b9a);
}

.stat-indigo .stat-accent,
.stat-indigo .stat-icon,
.cc-stat-deuda-credito .cc-stat-accent,
.cc-stat-deuda-credito .cc-stat-icon {
    background: linear-gradient(135deg, #6366f1, #4338ca);
}

.stat-alert .stat-accent,
.stat-alert .stat-icon,
.cc-stat-vencidas .cc-stat-accent,
.cc-stat-vencidas .cc-stat-icon {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
}

.stat-alert .stat-value,
.cc-stat-vencidas .cc-stat-value {
    color: #b91c1c;
}

.stat-secondary .stat-accent,
.stat-secondary .stat-icon {
    background: linear-gradient(135deg, #64748b, #475569);
}

.stat-info .stat-accent,
.stat-info .stat-icon {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.stat-bank .stat-accent,
.stat-bank .stat-icon {
    background: linear-gradient(135deg, #33414e, #1e293b);
}

.stat-mercado .stat-accent,
.stat-mercado .stat-icon {
    background: linear-gradient(135deg, #00b1ea, #009ee3);
}

.stat-cheque .stat-accent,
.stat-cheque .stat-icon {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.stat-action {
    display: block;
    margin-top: 6px;
}

.stat-action .btn {
    font-size: 10px;
    padding: 2px 8px;
    line-height: 1.35;
    border-radius: 6px;
}

.stat-panel--caja .stat-row--featured .stat-card {
    flex: 1 1 160px;
    min-width: 130px;
    padding: 16px 12px 14px;
    gap: 8px;
}

.stat-panel--caja .stat-row--featured .stat-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    font-size: 17px;
}

.stat-panel--caja .stat-row--featured .stat-label {
    font-size: 11px;
}

.stat-panel--caja .stat-row--featured .stat-value {
    font-size: 18px;
}

.stat-panel--caja .stat-row--featured .stat-meta {
    font-size: 10px;
}

.stat-panel--caja .stat-row--secondary {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px dashed #dbe3ef;
}

.stat-panel--caja .stat-row--secondary .stat-card {
    flex: 1 1 130px;
    min-width: 120px;
}

.stat-panel--caja .btn-toggle-caja-bancos.active,
.stat-panel--caja .btn-toggle-caja-bancos[aria-expanded="true"] {
    background: rgba(6, 182, 212, 0.12);
    border-color: #0891b2;
    color: #ffffff;
}

.stat-olive .stat-accent,
.stat-olive .stat-icon {
    background: linear-gradient(135deg, #8a8c58, #6b6d42);
}

.stat-panel--dash .stat-row--featured .stat-card {
    flex: 1 1 150px;
    min-width: 130px;
    padding: 16px 12px 14px;
    gap: 8px;
}

.stat-panel--dash .stat-row--featured .stat-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    font-size: 17px;
}

.stat-panel--dash .stat-row--featured .stat-label {
    font-size: 11px;
}

.stat-panel--dash .stat-row--featured .stat-value {
    font-size: 22px;
}

.stat-panel--dash .stat-row--featured .stat-meta {
    font-size: 10px;
}

.stat-panel--dash .stat-row--shortcuts .stat-card {
    flex: 1 1 180px;
    min-width: 160px;
    padding: 14px 12px;
}

.stat-panel--dash .stat-row--shortcuts .stat-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 16px;
}

.stat-card--shortcut .stat-label--shortcut {
    font-size: 13px;
    line-height: 1.3;
    white-space: normal;
    text-transform: none;
    letter-spacing: 0;
    color: #0f172a;
    font-weight: 700;
}

.stat-card.panelDashVista {
    cursor: pointer;
}

.stat-card.panelDashVista:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.cc-cliente-form-wrap .form-title h4,
.cc-cliente-form-wrap .form-title h5 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e293b;
}

.cc-cliente-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.cc-cliente-mini-card {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border: 1px solid var(--theme-terciary, #fab515);
    border-top: 3px solid var(--theme-terciary, #fab515);
    border-radius: 10px;
    padding: 8px 10px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.cc-cliente-mini-head-icon {
    color: var(--theme-terciary, #fab515);
}

.cc-cliente-mini-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eef1f6;
}

.cc-cliente-mini-head h6 {
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}


.cc-cliente-mini-head-name {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
}

.cc-cliente-mini-head-name h6 {
    flex: 0 1 auto;
}

.cc-cliente-mini-score {
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}


.cc-cliente-mini-head .btnEditarCliente {
    width: 26px;
    height: 26px;
    min-height: 26px;
    max-height: 26px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 6px;
}

.cc-cliente-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 8px;
}

.cc-mini-field {
    font-size: 13px;
    line-height: 1.25;
    min-width: 0;
    padding: 3px 6px;
    background: #fff;
    border: 1px solid #eef1f6;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cc-mini-field span {
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-right: 4px;
}

.cc-mini-field strong {
    color: #1e293b;
    font-weight: 600;
}

.cc-mini-field-wide {
    grid-column: span 2;
}


.cc-mini-field-full {
    grid-column: span 3;
}

.cc-cliente-slot {
    margin-top: 8px;
    min-height: 0;
}

.cc-cliente-datos-vista {
    margin-top: 4px;
}

.cc-dato-item {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e8edf5;
}

.cc-dato-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cc-dato-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 2px;
}

.cc-dato-value {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
    word-break: break-word;
}

.cc-cliente-datos-edit {
    margin-top: 4px;
}

.cc-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.cc-cliente-form-wrap .control-label {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 4px;
    text-align: left;
}

.cc-cliente-form-wrap .form-control,
.cc-cliente-form-wrap .form-select {
    font-size: 13px;
    min-height: 34px;
    padding: 6px 10px;
}

.cc-cliente-form-wrap .mb-3 {
    margin-bottom: 0.65rem !important;
}

.cc-section-card {
    border: 1px solid #eef1f6;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
    margin-bottom: 1rem;
    padding-top: 14px;
    padding-bottom: 14px;
}

.cc-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px 16px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eef1f6;
}

.cc-section-head-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 120px;
}

.cc-section-head-title i {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--theme-default), var(--theme-secondary));
    box-shadow: 0 3px 8px rgba(62, 142, 247, 0.25);
}

.cc-section-head-title h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.2;
}

.cc-section-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 8px;
    flex: 1;
}

.cc-filter-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 110px;
}

.cc-filter-field-wide {
    min-width: 150px;
    max-width: 180px;
}

.cc-filter-field label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin: 0;
    line-height: 1;
}

.cc-filter-field .form-control,
.cc-filter-field .form-select {
    min-height: 30px;
    height: 30px;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 6px;
    border-color: #dbe3ef;
}

.cc-filter-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.cc-filter-actions .btn {
    width: 30px;
    height: 30px;
    min-height: 30px;
    max-height: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cc-table-wrap {
    margin-top: 0;
    border: 1px solid #eef1f6;
    border-radius: 8px;
}

.table-pagos-a-cuenta th,
.table-pagos-a-cuenta td {
    padding: 0.4rem 0.5rem;
    font-size: 12.5px;
}

.table-pagos-a-cuenta td.cc-obs-cell {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contentPagoGlobal .form-control {
    font-size: 13px;
    padding: 6px 8px;
}

.contentPagoGlobal .itemMetodoPago select.form-control {
    padding-left: 6px;
    padding-right: 22px;
}

/* Fecha: 2026-08-24 | Dev: Charlie | Funcionalidad: dar margen a los checkbox de seleccion de facturas (head y filas) respecto al borde de la tabla */
.table-facturas th:first-child,
.table-facturas td:first-child {
    padding-left: 14px;
}

/* Fecha: 2026-08-24 | Dev: Charlie | Funcionalidad: alinear titulo de "Pagos a cuenta disponibles"/"Registrar pago" con el estilo de cc-section-head-title de "Facturas" y unificar tamaño de titulos */
.cc-section-card>.card-header {
    padding: 0 0 10px 0;
    margin-bottom: 12px;
    border-bottom: 1px solid #eef1f6;
    background: transparent;
}

.cc-section-card>.card-header h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.2;
}

body.dark-only .cc-resumen-cliente,
body.dark-only .cc-section-card {
    border-color: var(--theme-terciary, #fab515);
    box-shadow: none;
}

body.dark-only .stat-identity-meta {
    color: #94a3b8;
}

body.dark-only .stat-panel--caja .stat-row--secondary {
    border-top-color: #2b668a;
}

body.dark-only .stat-panel--caja .btn-toggle-caja-bancos.active,
body.dark-only .stat-panel--caja .btn-toggle-caja-bancos[aria-expanded="true"] {
    background: rgba(6, 182, 212, 0.2);
    border-color: #22d3ee;
    color: #67e8f9;
}

body.dark-only .stat-card--shortcut .stat-label--shortcut {
    color: #e2e8f0;
}

body.dark-only .stat-panel-group,
body.dark-only .cc-ficha-stats-group {
    background: linear-gradient(180deg, #06060600 0%, #782d9421 100%);
    border-color: #593450;
}

body.dark-only .stat-panel-title,
body.dark-only .cc-ficha-stats-title {
    color: #cbd5e1;
    border-bottom-color: #2b668a;
}

body.dark-only .stat-card,
body.dark-only .cc-stat-item {
    background: transparent;
    border-color: #2b668a;
}

body.dark-only .stat-label,
body.dark-only .cc-stat-label,
body.dark-only .cc-filter-field label {
    color: #94a3b8;
}

body.dark-only .stat-value,
body.dark-only .stat-identity-name,
body.dark-only .cc-stat-value,
body.dark-only .cc-cliente-form-wrap .form-title h4,
body.dark-only .cc-cliente-form-wrap .form-title h5,
body.dark-only .cc-section-head-title h4,
body.dark-only .cc-section-card>.card-header h4,
body.dark-only .cc-dato-value {
    color: #e2e8f0;
}

body.dark-only .cc-dato-label {
    color: #94a3b8;
}

body.dark-only .cc-dato-item {
    border-bottom-color: #2b668a;
}

body.dark-only .cc-cliente-mini-card {
    background: linear-gradient(180deg, color-mix(in srgb, var(--theme-terciary, #fab515) 22%, #1a1508) 0%, color-mix(in srgb, var(--theme-terciary, #fab515) 15%, transparent) 100%);
    border-color: var(--theme-terciary, #fab515);
}

body.dark-only .cc-cliente-mini-head {
    border-bottom-color: var(--theme-terciary, #fab515);
}

body.dark-only .cc-cliente-mini-head h6 {
    color: #e2e8f0;
}

body.dark-only .cc-mini-field {
    background: color-mix(in srgb, var(--theme-terciary, #fab515) 15%, transparent);
    border-color: var(--theme-terciary, #fab515);
}

body.dark-only .cc-mini-field strong {
    color: #e2e8f0;
}

@media (max-width: 767.98px) {
    .cc-cliente-mini-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cc-mini-field-wide {
        grid-column: span 2;
    }

    .cc-mini-field-wide-mobile {
        grid-column: span 2;
    }

    .cc-mini-field-full {
        grid-column: span 2;
    }
}

body.dark-only .cc-stat-meta {
    color: #64748b;
}

body.dark-only .cc-section-head,
body.dark-only .cc-section-card>.card-header {
    border-bottom-color: var(--theme-terciary, #fab515);
}

@media (max-width: 991.98px) {
    .cc-section-head {
        align-items: stretch;
    }

    .cc-section-filters {
        justify-content: flex-start;
    }

    .stat-row .stat-card,
    .cc-stats-row .cc-stat-item {
        flex: 1 1 calc(25% - 6px);
        min-width: 70px;
    }
}

@media (max-width: 767.98px) {
    .stat-panel--inline {
        flex-direction: column;
    }

    .stat-row .stat-card,
    .cc-stats-row .cc-stat-item {
        flex: 1 1 calc(50% - 4px);
    }

    .cc-filter-field,
    .cc-filter-field-wide {
        flex: 1 1 calc(50% - 4px);
        min-width: 0;
        max-width: none;
    }
}

.form-grids .card-header {
    display: none;
}

button.btn {
    white-space: nowrap;
    max-height: 30px;
    min-height: 30px;
    padding: 0 15px;
}

button.btn.btn-secondary.submitVenta {
    min-height: 70px;
}

.btn-info {
    background-color: #3d6a71a3 !important;
    border-color: #3d6a71a3 !important;
    -webkit-tap-highlight-color: transparent;
    transform: translateZ(0);
}

.dark-only .page-wrapper .page-body-wrapper .page-title .breadcrumb .breadcrumb-item {
    color: #b1b1b1;
}

.dark-only .page-wrapper .page-body-wrapper .page-title .breadcrumb .breadcrumb-item+.breadcrumb-item:before {
    color: #b1b1b1;
}

.page-wrapper .page-header .header-wrapper {
    box-shadow: 0px -5px 15px var(--theme-secondary);
}

.panelRapido {
    display: flex;
    gap: 5px;
    margin-left: 10px;
}

.panelRapido button {
    width: 36px;
    height: 36px;
    min-height: 0 !important;
    padding: 0;
    font-size: 14px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar-links .sidebar-title i {
    margin-top: 2px !important;
    margin-left: -4px;
    color: var(--theme-secondary);
}

.table td {
    padding: 0.5rem;
}

/* Fecha: 2026-08-24 | Dev: Charlie | Funcionalidad: alinear checkbox del head con los checkbox de filas (thead traia 0.75rem del template vs 0.5rem de .table td) */
.table th {
    padding: 0.5rem;
}

thead {
    background-color: var(--theme-default);
    white-space: nowrap;
    border-left: 1px solid;
    border-right: 1px solid;
}

thead {
    background-color: rgb(250 181 21 / 12%);
    white-space: nowrap;
    border-left: 1px solid;
    border-right: 1px solid;
    border-left-color: rgb(228 27 18) !important;
    border-right-color: rgb(3 4 5) !important;
}

.dark-only thead {
    background-color: rgb(250 181 21 / 18%);

}

.dark-only .btn-info {
    background-color: #353535 !important;
    border-color: #575757 !important;
}

body.dark-only .page-wrapper .page-body-wrapper .page-title .breadcrumb li:first-child {
    background-color: transparent;
}

.card.table-responsive thead {
    border-top: 10px solid #ffffff;
}

.dark-only .card.table-responsive thead {
    border-top: 10px solid #171818 !important;
}

.page-wrapper .page-header .header-wrapper .search-full .form-group input {
    background-color: #f5f5f5;
    color: #1f2f3e;
    font-weight: 500;
    letter-spacing: 0.4px;
    line-height: 1.4;
    padding: 5px 0 5px 25px;
    width: 100% !important;
}


.responsive_hide {
    display: block;
}

.responsive_show {
    display: none !important;
}


.listActions span {
    cursor: pointer;
}

.p-10 {
    padding: 10px !important;
}

.dropify-render {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

input[name="color_nombre"] {
    text-transform: uppercase !important;
}

input[name="tipoOperacion_nombre"] {
    text-transform: uppercase !important;
}

.nowrap {
    white-space: nowrap !important;
}


/* Galeria de Imagenes - Vehiculos */
.st-imagen-contenedor {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.st-imagen-contenedor .image-cont {
    background-color: #000;
    width: 200;
    height: 200;
    margin-left: 10px;
    margin-bottom: 10px;
    position: relative;
    border-radius: 5%;
}

.st-imagen-contenedor .image-cont img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    border-radius: 5% !important;
}

.st-imagen-contenedor .image-cont .delete-img {
    background-color: rgb(223, 103, 103);
    left: 4px;
    top: 4px;
    align-content: center;
    text-align: center;
    color: #FFF;
    position: absolute;
    border-radius: 10px;
    cursor: pointer;
    padding: 6px 10px;
}

.vehiculo-imagen-container .image-cont img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    border-radius: 5% !important;
}

/* Fin Galeria de Imagenes - Vehiculos */

div#telefonos_contenedor span {
    margin-right: 10px;
    padding: 8px;
    font-size: 16px !important;
    border: 2px solid var(--theme-secondary);
    background-color: #f3f0e7;
    color: black;
}


:root {
    --icon-tab-color: var(--theme-secondary) !important;
}

:root.dark-only {
    --icon-tab-color: var(--theme-default);
}

.icon-tab {
    font-size: 19px;
    color: var(--icon-tab-color);
    margin-right: 5px;
    transition: color 0.3s ease;
}

.fa-trash {
    color: #d35e5e !important;
}

.form-check-input {
    margin-left: -0.5rem !important;
}

.form-switch .form-check-input {
    height: 18px;
    width: 40px;
    margin-left: 15px !important;
}


@media (max-width: 768px) {

    .div_stock_in {
        display: block !important;
    }

    .auto_stock_in {
        min-width: 100% !important;
        margin-right: 0;
    }


    .responsive_hide {
        display: none !important;
    }

    .responsive_hide_contents {
        display: none !important;
    }

    .responsive_show {
        display: block !important;
    }

    .responsive_show_contents {
        display: contents !important;
    }

    .responsive_hide_td {
        display: none !important;
    }

    .responsive_show_td {
        display: table-cell !important;
    }

    .container-fluid.main {
        padding-left: 10;
        padding-right: 10;
        padding-bottom: 0;
    }


    td.listActions {
        padding-right: 10px;
        justify-items: right;
        min-width: auto !important;
    }

    span.title_hide {
        display: none;
    }

    td.listActions span {
        display: table-cell;
        padding-right: 10px;

    }

    .control-label {
        width: 100%;
        display: flex;
    }

    .form-body .form-group {
        text-align: center;
        display: flow;
    }

    .form-body .col-md-10.hidden-xs.hidden-sm {
        width: 100% !important;
    }

    td.listActions .fa {
        font-size: 6vw !important;
    }

    .filters .row {
        width: 100%;
    }

    .summary-card .summary-progressbar ul li {
        padding: 10 !important;
        margin-right: 0;
        border: 1px solid var(--theme-default) !important;
    }

    .equivalDolarContent {
        position: relative !important;
        text-align: left !important;
        display: flex;
        white-space: nowrap;
    }

    .signal-table.table-responsive .table tbody tr td:nth-child(n+2) {
        min-width: auto;
    }

    .page-wrapper.compact-wrapper .page-body-wrapper .page-body {
        margin-top: 72px;
    }

    .dolarinfo {
        position: relative !important;
        color: #2aaf66 !important;
        font-weight: bold !important;
        font-size: 13px !important;
        text-align: right !important;
    }

    select.form-control {
        min-width: 0 !important;
        text-overflow: ellipsis;
    }

}

.contentTotalMetodosPago,
.equivalencia_monto {
    font-weight: bold;
    color: var(--theme-secondary);
    font-size: 13px;
}

.dark-only .dropify-wrapper .dropify-preview,
.dark-only .dropify-wrapper,
.dark-only div#telefonos_contenedor span {
    background-color: var(--theme-default);
}

body.dark-only .form-check-input,
body.dark-only .icon-lists div:hover {
    background-color: var(--theme-default);
}

.dark-only input.form-control.ui-autocomplete-input {
    border: 1px solid #575757 !important;
    background-color: var(--theme-default) !important;
    border-color: var(--theme-secondary) !important;
}


.dark-only select.form-control {
    border-color: var(--theme-secondary) !important;
}

/* Hace que el div ocupe solo lo necesario */
.checkbox-inline.form-switch {
    display: inline-flex;
    padding: 0;
    margin: 0;
    width: fit-content;
}

.checkbox-inline.form-switch .form-check-input {
    margin: 0;
}

select.form-control,
textarea.form-control,
input.form-control {
    border-color: var(--theme-secondary) !important;
}

.input-con-color {
    background-repeat: no-repeat !important;
    background-position: 4px center !important;
    background-size: 12px 12px !important;
    padding-left: 24px !important;
}

.vehiculoNoDisponible {
    background-color: #ff9c9c2b;
}

.small-box {
    background-color: white;
}

.dark-only .small-box {
    background-color: transparent;
    box-shadow: 0 0 1px rgb(255 255 255 / 92%), 0 1px 3px rgb(255 255 255 / 31%);
}

.contentFinanciacion,
.contentCreditoPrendario {
    padding: 5px 15px !important;
    border: 1px solid !important;
    margin: 15px 0px 15px 0px !important;
    border-radius: 5px !important;
    background-color: #e1eddf !important;
    font-size: 13px !important;
    box-sizing: border-box !important;
}

@media (min-width: 768px) {

    .contentCreditoPrendario,
    .contentFinanciacion {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

@media (min-width: 992px) {

    .contentFinanciacion,
    .contentCreditoPrendario {
        white-space: nowrap !important;
    }
}

.contentFinanciacion span,
.contentCreditoPrendario span {
    word-break: break-word !important;
}

.control-label {
    white-space: nowrap;
    text-align: right;
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .form-grids .control-label {
        white-space: normal;
    }
}

.equivalencia_monto {
    margin: 5px;
}

.form-control:disabled {
    background-color: var(--bs-secondary-bg) !important;
    opacity: 1;
}

/* MARGENES */
.mt-5 {
    margin-top: 5px !important;
}

.mt-20 {
    margin-top: 20px !important;
}

.mr-20 {
    margin-right: 20px !important;
}

.ml-20 {
    margin-left: 20px !important;
}

.mb-5 {
    margin-bottom: 5px !important;
}

/* FIN MARGENES */

.page:not(:last-child) {
    page-break-after: always;
}

@media (max-width: 768px) {
    .modal-footer button {
        margin: 10px !important;
    }
}

.btn-theme-default {
    background-color: var(--theme-default);
    border-color: var(--theme-default);
    color: white;
}

.btn-theme-default:hover {
    background-color: #6f717d;
}

.btn-theme-secondary {
    background-color: var(--theme-secondary);
    border-color: var(--theme-secondary);
    color: white;
}

.btn-theme-secondary:hover {
    background-color: #1b234f;
    color: white;
}

span#operacion_diff {
    color: red !important;
}

span#total_credito_prendario {
    color: black;
    font-size: 14px;
}

.montoConMoneda {
    white-space: nowrap;
}

.contentFinanciacion {
    background-color: #24306412 !important;
}

span#total_financiado {
    color: black;
    font-size: 14px;
}

span#total {
    color: black;
    font-size: 14px;
}

button#addMetodoPago {
    padding: 3px 15px;
}

.datos-pago-cheque fieldset {
    border: 1px solid #bbb9b9;
    padding: 10px;
    margin-left: 12px;
    border-radius: 5px;
}

.modal-header {
    background-color: var(--theme-secondary) !important;
    color: white !important;
}

.modal-title {
    color: white !important;
}

.btn-close {
    background-color: var(--theme-default);
}

@media (max-width: 768px) {
    .tfoot-desktop {
        display: none;
    }

    .logo-wrapper {
        border-right: 0px !important;
        display: flex;
        text-align: center;
    }
}

@media (min-width: 769px) {
    .tfoot-mobile {
        display: none;
    }
}

.nav-tabs .nav-link {
    border: 1px solid var(--theme-secondary);
    color: var(--theme-secondary);
    background-color: transparent;
}

.nav-tabs .nav-link.active {
    background-color: var(--theme-secondary);
    color: #fff;
}

.nav-tabs .nav-link:hover {
    background-color: var(--theme-default);
    color: #fff;
}

span.label.labelFactura {
    background: #e1dfd1;
    border: solid 1px #a19d7b;
    color: white;
    padding: 5px 20px;
    font-size: 12px;
    display: inline-block;
    margin-right: 10px;
    margin-top: 5px;
    border-radius: 20px;
    background: var(--theme-secondary) !important;
}

.dolarinfo {
    position: relative !important;
    color: #2aaf66 !important;
    font-weight: bold !important;
    font-size: 13px !important;
    text-align: right !important;
}

#cke_editor1 .cke_contents {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
}

#cke_v_catalogo_editor .cke_contents {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
}

.cke_top {
    border-bottom: 1px solid #24306429 !important;
    background: #24306429 !important;
}

@media (max-width: 767px) {
    .input-group {
        display: block !important;
        width: 100% !important;
    }

    .input-group select,
    .input-group input {
        margin-bottom: 8px;
        width: 100% !important;
    }
}

.tar {
    text-align: right !important;
}

.tac {
    text-align: center !important;
}

.tai {
    text-align: left !important;
}

input.form-control.potencial {
    background-color: var(--bs-secondary-bg) !important;
}

.potencial .itemSearch {
    padding: 20px 10px;
    border: 2px dotted;
    margin: 0px 0px 20px 0px;
    border-radius: 8px;
}

.potencial .form-control {
    min-width: auto !important;
}

.itemSearch {
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0 !important;
}

.itemSearch:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-2px);
}

.deleteItemSearch {
    transition: all 0.2s ease;
    background-color: transparent !important;
    border: 1px solid #dc3545 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

.deleteItemSearch:hover {
    transform: scale(1.1);
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}

.deleteItemSearch:hover i {
    color: white !important;
}

.deleteItemSearch:focus {
    outline: none !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.form-label {
    margin-bottom: 0.5rem;
    color: #495057;
    font-size: 0.9rem;
}

.alert-info {
    border-radius: 8px;
}

.alert-info h4 {
    color: #17a2b8;
}

.card {
    border-radius: 10px;
}

.card-title {
    color: #495057;
    font-weight: 600;
}

.btn-success {
    transition: all 0.3s ease;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.btn-primary {
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

/* .input-group .form-control:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
} */

.shadow-sm {
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.075) !important;
}

#formClientePotencial input[type="text"]:focus,
#formClientePotencial select:focus,
#formClientePotencial textarea:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.contentItemSearch {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-required {
    border-color: #dc3545 !important;
    animation: shake 0.3s;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* FUENTES */

.fw {
    font-weight: bold !important;
}

/* FIN FUENTES */

/*ACTIONS RESPONSIVE*/

.actions-responsive {
    display: table-cell !important;
    text-align: right !important;
    vertical-align: middle !important;
    padding: 0.5rem !important;
}

.actions-responsive .fa {
    margin-left: 10px !important;
}

.actions-responsive .fa:first-child {
    margin-left: 0 !important;
}

@media (max-width: 600px) {
    .actions-responsive {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 0.5rem !important;
    }

    .actions-responsive .fa {
        font-size: 16px !important;
        margin-left: 0 !important;
    }
}

.actions-responsive .fa {
    cursor: pointer !important;
    transition: transform 0.2s ease, color 0.2s ease !important;
}

.actions-responsive .fa:hover {
    transform: scale(1.2) !important;
    color: #007bff !important;
}

/*FIN ACTIONS RESPONSIVE*/

#ordent_addProducto,
.agregar-prod,
label[for="ordent_addProducto"] {
    cursor: pointer !important;
}

.ui-autocomplete {
    z-index: 99999 !important;
}

.medioPago {
    border: 1px solid var(--theme-secondary) !important;
    border-radius: 20px !important
}

.p15 {
    padding: 10px 10px 0px !important
}

.mtlb-15-5-0 {
    margin: 15px 5px 0px !important;
}

.mt-15 {
    margin-top: 15px !important;
}

.block {
    pointer-events: none !important;
}

.color-indicator {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #a3919aff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    vertical-align: middle;
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .form-control.d-flex {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    .color-indicator {
        width: 25px;
        height: 25px;
    }
}

.nota {
    font-size: 14px !important;
    margin-top: 10px !important;
    font-weight: bold !important;
    color: red !important;
}

/*COLOR ESTADO PRIODIDAD PRESUPUESTO*/
.prioridad-alta {
    background-color: #28a745 !important;
    color: white !important;
}

.prioridad-media {
    background-color: #ffc107 !important;
    color: black !important;
}

.prioridad-baja {
    background-color: #dc3545 !important;
    color: white !important;
}

/* Aplicar color al select cuando tiene una clase de prioridad */
select.prioridad-alta {
    background-color: #28a745;
    color: white;
}

select.prioridad-media {
    background-color: #ffc107;
    color: black;
}

select.prioridad-baja {
    background-color: #dc3545;
    color: white;
}

/*FIN COLOR ESTADO PRIODIDAD PRESUPUESTO*/



/* Optimizaciones para Listado de Presupuestos (Notebooks/MacBook 13/14) */
@media (min-width: 992px) and (max-width: 1600px) {
    .table-clientePotencial {
        table-layout: auto !important;
    }

    .table-clientePotencial td,
    .table-clientePotencial th {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    /* Columna Nº */
    .table-clientePotencial td:nth-child(1),
    .table-clientePotencial th:nth-child(1) {
        width: 1% !important;
        white-space: nowrap !important;
    }

    /* Columna Cliente */
    .table-clientePotencial td:nth-child(2) {
        max-width: 140px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Columna Fecha */
    .table-clientePotencial td:nth-child(3) {
        width: 1% !important;
        white-space: nowrap !important;
    }

    /* Columna Vehículo */
    .table-clientePotencial td:nth-child(4) {
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Columna Prioridad - Forzar a que ocupe solo lo necesario */
    .table-clientePotencial td:nth-child(5),
    .table-clientePotencial th:nth-child(5) {
        width: 1% !important;
        white-space: nowrap !important;
        text-align: center !important;
    }

    .table-clientePotencial .select-prioridad {
        width: 95px !important;
        font-size: 11px !important;
        height: 24px !important;
        padding: 2px !important;
        display: inline-block !important;
    }

    /* Columna Total */
    .table-clientePotencial td:nth-child(6) {
        width: 1% !important;
        white-space: nowrap !important;
        font-weight: bold;
        text-align: left !important;
        /* Forzamos alineación a la izquierda */
    }

    /* Columna Acciones */
    .table-clientePotencial td.listActions,
    .table-clientePotencial th.listActions {
        width: 1% !important;
        white-space: nowrap !important;
        padding-right: 5px !important;
        text-align: left !important;
        /* Forzamos alineación a la izquierda */
    }

    /* General para todos los TD y TH de esta tabla en notebook */
    .table-clientePotencial td,
    .table-clientePotencial th {
        text-align: left !important;
    }

    /* Excepto prioridad que la queremos centrada */
    .table-clientePotencial td:nth-child(5) {
        text-align: center !important;
    }

    .table-clientePotencial td.listActions .fa {
        margin-right: 4px !important;
        /* Un poco mas de aire que antes pero controlado */
    }
}

/* ESTILOS ITEMS DE SERVICIO*/

.items-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.servicio-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    transition: background 0.2s ease;
    flex: 1 1 200px;
    cursor: pointer;
}

.servicio-item:hover {
    background: #f0f0f0;
}

.servicio-item input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
}

.contentSelectAll {
    cursor: pointer !important;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.contentSelectAll label {
    font-weight: 500;
    font-size: 1rem;
}

.contentSelectAll input[type="checkbox"] {
    margin-left: 8px;
    transform: scale(1.2);
}

.servicio-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.servicio-item input[type="checkbox"] {
    flex-shrink: 0;
}

.servicio-item span {
    flex-grow: 1;
}

.servicio-item .fa-trash {
    margin-left: auto;
    cursor: pointer;
}

@media (max-width: 576px) {
    .contentSelectAll {
        justify-content: center;
        text-align: center;
    }

    .contentSelectAll label {
        margin-bottom: 6px;
    }

    .contentSelectAll input[type="checkbox"] {
        margin-left: 0;
    }
}

/* FIN ESTILOS ITEMS DE SERVICIO*/

/* ESTILOS ITEMS DE CONTRATO DE SERVICIO*/
.productos-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}

.producto-item {
    display: flex !important;
    align-items: center !important;
    padding: 8px 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    background: #f9f9f9 !important;
    transition: background 0.2s ease !important;
    flex: 1 1 200px !important;
    cursor: pointer !important;
    min-width: 0;
}

.producto-item:hover {
    background: #f0f0f0 !important;
}

.producto-item input[type="checkbox"] {
    margin-right: 8px !important;
    transform: scale(1.2) !important;
    flex-shrink: 0;
}

/* ── Permisos por módulo ── */
.permisos-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.permisos-select-all-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 8px;
    background: #e9edf5;
    border: 1px solid #c5cbda;
    cursor: pointer;
    user-select: none;
    font-weight: 600;
    font-size: 13px;
    transition: background 0.18s;
}

.permisos-select-all-wrap:hover {
    background: #d5dbeb;
}

.permisos-select-all-wrap input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
    margin-top: 0 !important;
}

.permiso-modulo-card {
    border-radius: 10px;
    border: 1px solid #dde2ed;
    overflow: hidden;
    transition: box-shadow 0.18s;
}

.permiso-modulo-card:hover {
    box-shadow: 0 4px 16px rgba(36, 48, 100, 0.10);
}

.permiso-modulo-header {
    padding: 10px 14px;
    border-bottom: none;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background-color: var(--theme-secondary) !important;
    border-color: var(--theme-secondary) !important;
}

.permiso-modulo-title {
    color: #fff !important;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.permiso-modulo-check-all {
    display: flex;
    align-items: center;
    gap: 6px;
    border: none;
    border-radius: 20px;
    padding: 4px 12px 4px 8px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
    margin-bottom: 0;
}

.permiso-modulo-check-all span {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.permiso-modulo-check-all .form-check-input {
    width: 17px;
    height: 17px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 0;
    border-color: rgba(255, 255, 255, 0.7);
    background-color: rgba(255, 255, 255, 0.15);
}

.permiso-modulo-check-all .form-check-input:checked {
    background-color: #fff;
    border-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23243064' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.permiso-modulo-body {
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #fff;
}

.permiso-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.12s;
    margin: 0;
}

.permiso-item:hover {
    background: #f0f3fb;
}

.permiso-item .form-check-input {
    margin-top: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.permiso-item .form-check-label {
    cursor: pointer;
    font-size: 12px;
    margin-bottom: 0;
    line-height: 1.3;
}

.permisos-select-all-wrap input[name="selectAll"] {
    border-color: rgb(98 94 94 / 70%) !important;
}

/* Dark mode */
body.dark-only .permisos-select-all-wrap {
    background: #2a2d3e;
    border-color: #444860;
    color: #c8cde8;
}

body.dark-only .permisos-select-all-wrap:hover {
    background: #333652;
}

body.dark-only .permiso-modulo-card {
    border-color: #444860;
}

body.dark-only .permiso-modulo-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

body.dark-only .permiso-modulo-header {
    background-color: var(--theme-secondary) !important;
    border-color: var(--theme-secondary) !important;
}

body.dark-only .permiso-modulo-body {
    background: #1e2130;
}

body.dark-only .permiso-item:hover {
    background: #272b3e;
}

body.dark-only .permiso-item .form-check-label {
    color: #b8bdda;
}

body.dark-only .permisos-select-all-wrap input[name="selectAll"] {
    border-color: rgba(255, 255, 255, 0.7) !important;
}

/* Responsive grid */
.permisos-grid {
    --bs-gutter-x: 12px;
    --bs-gutter-y: 12px;
}

/* FIN ESTILOS ITEMS DE CONTRATO DE SERVICIO*/

/* ========================================
                MODAL HISTORIAL
   ======================================== */

/* --- Modo claro --- */
#modalHistorial .modal-body {
    background-color: #f8f9fa;
}

#modalHistorial .card.table-responsive {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
}

.table-historial td {
    color: #1f2f3e;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
}

.table-historial tr:last-child td {
    border-bottom: none;
}

.table-historial td.historial-fecha {
    white-space: nowrap;
    color: #495057;
    font-size: 0.85em;
    min-width: 120px;
}

.table-historial td.historial-desc {
    color: #1f2f3e;
}

.table-historial .historial-update {
    color: #1a3a8f;
    font-weight: bold;
}

.table-historial .historial-insert {
    color: #1a6b1a;
    font-weight: bold;
}

.table-historial .historial-delete {
    color: #a01e1e;
    font-weight: bold;
}

.table-historial .historialModificacion {
    color: #6c757d;
    font-style: italic;
    font-size: 0.92em;
}

/* --- Modo oscuro --- */
body.dark-only #modalHistorial .modal-body,
body.dark-only #modalHistorial .modal-content {
    background-color: #1e1f2b;
}

body.dark-only #modalHistorial .card.table-responsive {
    background-color: #252636;
    border: 1px solid #3a3b50;
}

body.dark-only .table-historial td {
    color: #d0d4e4;
    border-bottom: 1px solid #3a3b50;
}

body.dark-only .table-historial tr:last-child td {
    border-bottom: none;
}

body.dark-only .table-historial td.historial-fecha {
    color: #9fa8c0;
}

body.dark-only .table-historial td.historial-desc {
    color: #d0d4e4;
}

body.dark-only .table-historial .historial-update {
    color: #7b9ef5;
    font-weight: bold;
}

body.dark-only .table-historial .historial-insert {
    color: #6ecb6e;
    font-weight: bold;
}

body.dark-only .table-historial .historial-delete {
    color: #f07070;
    font-weight: bold;
}

body.dark-only .table-historial .historialModificacion {
    color: #8892aa;
    font-style: italic;
    font-size: 0.92em;
}

body.dark-only #modalHistorial .table-hover tbody tr:hover td {
    background-color: rgba(255, 255, 255, 0.06);
    color: #e8ecf8;
}

/* ========================================
   MODAL FILE (Documentación) - Estilos modo claro/oscuro
   ======================================== */

/* --- Modo claro --- */
#modalFile .modal-body {
    background-color: #f8f9fa;
}

#modalFile .table-responsive {
    background-color: #ffffff;
    border-radius: 4px;
}

#modalFile .tableDetalle thead th {
    color: #1f2f3e;
    font-weight: bold;
    background-color: #eef0f8;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
}

#modalFile .tableDetalle tbody td {
    color: #1f2f3e;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
}

#modalFile .tableDetalle tbody tr:last-child td {
    border-bottom: none;
}

#modalFile .tableDetalle tbody tr:nth-of-type(odd) td {
    background-color: rgba(36, 48, 100, 0.04);
}

#modalFile .tableDetalle a {
    color: #243064;
}

#modalFile .tableDetalle a:hover {
    color: #5364ae;
}

/* --- Modo oscuro --- */
body.dark-only #modalFile .modal-body,
body.dark-only #modalFile .modal-content {
    background-color: #1e1f2b;
}

body.dark-only #modalFile .table-responsive {
    background-color: #252636;
    border-radius: 4px;
}

body.dark-only #modalFile .tableDetalle thead th {
    color: #c8cfe8;
    background-color: #2e3050;
    border-bottom: 2px solid #3a3b50;
}

body.dark-only #modalFile .tableDetalle tbody td {
    color: #d0d4e4;
    border-bottom: 1px solid #3a3b50;
}

body.dark-only #modalFile .tableDetalle tbody tr:last-child td {
    border-bottom: none;
}

body.dark-only #modalFile .tableDetalle tbody tr:nth-of-type(odd) td {
    background-color: rgba(255, 255, 255, 0.04);
}

body.dark-only #modalFile .tableDetalle tbody tr:hover td {
    background-color: rgba(255, 255, 255, 0.06);
    color: #e8ecf8;
}

body.dark-only #modalFile .tableDetalle a {
    color: #7b9ef5;
}

body.dark-only #modalFile .tableDetalle a:hover {
    color: #a0bcff;
}

body.dark-only #modalFile .tableDetalle i {
    color: #9fa8c0;
}

.sort-arrows {
    display: inline-flex;
    gap: 2px;
    margin-left: 4px;
    vertical-align: middle;
}

.sort-arrows .sort-arrow {
    color: var(--theme-secondary);
    cursor: pointer;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    padding: 0 2px;
    transition: color 0.15s ease-in-out, opacity 0.15s ease-in-out;
}

.sort-arrows .sort-arrow:hover {
    color: var(--theme-secondary);
    opacity: 0.7;
    text-decoration: none;
}

.sort-arrows .sort-arrow.active {
    color: var(--theme-default);
    font-weight: 900;
    font-size: 18px;
}


/* ============================================================
   PANTALLA AGREGAR VENTA (a_venta.php)
   ============================================================ */

/* Migrado de inline <style> en a_venta.php */
.help {
    margin-top: 1px;
    margin-left: 5px;
    font-weight: bold;
    font-size: 10px;
    color: #01409f;
}

tr.filaInsumos td {
    padding-top: 2px;
    padding-bottom: 6px;
    border-top: none;
}

tr.filaInsumos .stockDisponibleHelp {
    margin-left: 0;
}

tr.filaInsumos .stockDisponibleHelp+.insumosHelp {
    margin-top: 4px;
}

tr.filaInsumos .insumosHelp {
    margin-left: 0;
}

tr.filaInsumos .insumosContent {
    display: block;
    font-weight: normal;
}

tr.filaInsumos .insumosContent>div {
    padding: 1px 0;
}

/* ---- Layout principal ---- */
.aventa-main-layout {
    margin-top: 4px;
}

.aventa-col-izq {
    padding-right: 10px;
}

.aventa-col-der {
    padding-left: 10px;
}

.aventa-sticky-panel {
    position: sticky;
    top: 75px;
}

/* ---- Cards de sección ---- */
.aventa-card {
    background: #fff;
    border: 1px solid #e4e9ef;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 14px;
}

.aventa-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--theme-default);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(13, 26, 42, 0.1);
}

/* ---- Sección cliente ---- */
.aventa-cliente-input {
    font-size: 16px !important;
    height: 44px !important;
    font-weight: 500;
}

.aventa-cliente-secondary {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.aventa-cc-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    user-select: none;
    margin: 0;
}

.aventa-cc-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.aventa-presupuesto-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--theme-terciary);
    color: var(--theme-secondary);
    border: 1px solid var(--theme-terciary);
    border-radius: 20px;
    padding: 3px 11px;
    font-size: 12px;
    font-weight: 600;
}

/* ---- Sección productos ---- */
.aventa-card-title-prod {
    width: 100%;
    flex-wrap: wrap;
    row-gap: 8px;
}

.aventa-card-title-prod>.aventa-btn-agregar-prod {
    margin-left: auto;
}

@media (max-width: 480px) {
    .aventa-card-title-prod>.aventa-btn-agregar-prod {
        width: 100%;
        margin-left: 0;
    }
}

.aventa-btn-agregar-prod {
    background: transparent;
    border: 1.5px solid var(--theme-default);
    color: var(--theme-default);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    transition: all 0.2s;
    white-space: nowrap;
}

.aventa-btn-agregar-prod:hover,
.aventa-btn-agregar-prod:focus {
    background: var(--theme-default);
    color: #fff !important;
}

.aventa-table-wrapper {
    border-radius: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e4e9ef;
    margin-bottom: 0;
}

.aventa-table-wrapper .table-productos {
    min-width: 650px;
}

.table-productos input[name="producto_search[]"] {
    min-width: 180px !important;
}

@media (max-width: 991px) {
    .aventa-col-izq {
        padding-right: 0 !important;
        padding-left: 0 !important;
        margin-bottom: 15px;
    }

    .aventa-col-der {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

.aventa .table-productos thead th {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #5c6b82;
    padding: 10px 10px;
    border-bottom: 2px solid #dde3ea;
}

.table-productos thead {
    background-color: rgb(250 181 21 / 12%) !important;
}

.aventa .table-productos tbody td {
    vertical-align: top;
    padding: 5px;
}

.table-productos tbody td {
    vertical-align: top;
}

tr.filaInsumos td {
    padding: 0 !important;
    padding-left: 5px !important;
}

.aventa .table-productos tbody tr:hover td {
    background: #f7f9fc;
}

.aventa-scan-hint {
    font-size: 11px;
    color: #9aa6b4;
    text-align: center;
    margin-top: 10px;
    padding: 7px 10px;
    background: #f8f9fb;
    border-radius: 6px;
    border: 1px dashed #dde3ea;
}

.aventa-scan-hint i {
    margin-right: 5px;
}

/* ---- Panel de Totales ---- */
.aventa-totales-card {
    padding: 0;
    overflow: hidden;
}

.aventa-total-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid #f0f3f6;
}

.aventa-total-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8a97a8;
}

.aventa-total-valor {
    font-size: 15px;
    font-weight: 700;
}

.aventa-total-principal {
    background: linear-gradient(135deg, #fab51538, #fbfbfb);
    border-bottom: 2px solid #c8d8f8 !important;
    padding: 14px 16px !important;
}

.aventa-total-principal .aventa-total-label {
    font-size: 13px !important;
    color: var(--theme-default) !important;
    font-weight: 800 !important;
}

.aventa-total-principal .aventa-total-valor {
    font-size: 26px !important;
    color: var(--theme-default) !important;
    font-weight: 800 !important;
}

.aventa-total-saldo .aventa-total-label {
    color: #c0392b;
}

/* ---- Descuentos (dentro del panel de totales) ---- */
.aventa-descuentos-section {
    padding: 10px 16px;
    background: #fffdf0;
    border-top: 1px dashed #e8d870;
}

.aventa-descuento-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
}

.aventa-descuento-row:last-child {
    margin-bottom: 0;
}

.aventa-descuento-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #a08030;
    min-width: 65px;
    white-space: nowrap;
}

.aventa-descuento-row .form-control {
    height: 32px !important;
    font-size: 13px;
    flex: 1;
}

/* ---- Método de pago ---- */
.aventa-pago-card .itemMetodoPago {
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #f0f3f6;
}

.aventa-pago-card .itemMetodoPago:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* ---- Botón Confirmar Venta ---- */
.aventa-confirmar-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 10px;
    background: linear-gradient(135deg, #27ae60, #1a9150);
    border: none;
    color: #fff !important;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 14px rgba(39, 174, 96, 0.38);
    transition: all 0.25s;
}

.aventa-confirmar-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(39, 174, 96, 0.5);
    color: #fff !important;
}

.aventa-confirmar-btn:disabled {
    opacity: 0.65;
    transform: none;
    box-shadow: none;
}

#anularVenta {
    display: block;
    width: 100%;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    margin-top: 10px;
    margin-bottom: 10px;
    max-height: none;
}

/* ---- Modal Confirmar Venta ---- */
.aventa-modal-confirmar-body {
    padding: 16px 24px 20px;
}

.aventa-modal-tipo-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 18px;
}

.aventa-modal-tipo-btn {
    flex: 1;
    max-width: 155px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 12px;
    border: 2px solid #dde3ea;
    border-radius: 12px;
    background: #fff;
    color: #555;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.aventa-modal-tipo-btn:hover {
    border-color: var(--theme-default);
    color: var(--theme-default);
    background: #f0f5ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(13, 26, 42, 0.12);
}

.aventa-modal-tipo-btn i {
    font-size: 28px;
}

.aventa-modal-tipo-btn-factura:hover {
    border-color: var(--theme-secondary);
    color: var(--theme-secondary);
    background: #fff5f5;
}

.aventa-modal-print-check {
    text-align: center;
    font-size: 13px;
    color: #666;
}

.aventa-modal-print-check label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

/* ---- Modo oscuro ---- */
body.dark-only .aventa-card {
    background: transparent;
    border-color: #9f4149;
}

body.dark-only .aventa-card-title {
    color: #8baed8;
    border-bottom-color: rgba(139, 174, 216, 0.15);
}

body.dark-only .aventa-cliente-input {
    background: #1e1f2b;
    color: #d0d4e4;
    border-color: #363754;
}

body.dark-only .aventa-cc-label {
    color: #9aa6c0;
}

body.dark-only .aventa-presupuesto-badge {
    background: transparent;
    border-color: var(--theme-terciary);
    color: var(--theme-terciary);
}

body.dark-only .aventa-table-wrapper {
    border-color: #363754;
}

body.dark-only .table-productos thead th {
    color: #8a97b8;
    border-bottom-color: #363754;
}

body.dark-only .table-productos tbody td {
    color: #c8cfe8;
}

body.dark-only .table-productos tbody tr:hover td {
    background: #272838;
}

body.dark-only .aventa-scan-hint {
    background: #1e1f2b;
    border-color: #363754;
    color: #5a6a7a;
}

body.dark-only .aventa-btn-agregar-prod {
    border-color: #8baed8;
    color: #8baed8;
}

body.dark-only .aventa-btn-agregar-prod:hover {
    background: #8baed8;
    color: #1e1f2b !important;
}

body.dark-only .aventa-total-item {
    border-bottom-color: #2e3050;
}

body.dark-only .aventa-total-label {
    color: #6b7a9a;
}

body.dark-only .aventa-total-valor {
    color: #c8cfe8;
}

body.dark-only .aventa-total-principal {
    background: linear-gradient(135deg, #b4cfd54d, #1e2850);
    border-bottom-color: #2e4080 !important;
}

body.dark-only .aventa-total-principal .aventa-total-label {
    color: #8baed8 !important;
}

body.dark-only .aventa-total-principal .aventa-total-valor {
    color: #a8c8f0 !important;
}

body.dark-only .aventa-descuentos-section {
    background: #252310;
    border-top-color: #5a5020;
}

body.dark-only .aventa-descuento-label {
    color: #c0a040;
}

body.dark-only .aventa-descuento-row .form-control {
    background: #1e1f2b;
    border-color: #363754;
    color: #d0d4e4;
}

body.dark-only .aventa-pago-card .itemMetodoPago {
    border-bottom-color: #2e3050;
}

body.dark-only .aventa-modal-tipo-btn {
    background: #1e1f2b;
    border-color: #363754;
    color: #c8cfe8;
}

body.dark-only .aventa-modal-tipo-btn:hover {
    background: #1a2340;
    border-color: #8baed8;
    color: #8baed8;
}

body.dark-only .aventa-modal-print-check {
    color: #8a97b8;
}

body.dark-only .help {
    color: #6aa0d8;
}


@media (max-width: 1470px) {
    .signal-table.table-responsive .table tbody tr td:nth-child(n+2) {
        min-width: auto;
    }
}

.table-scrollable {
    --scrollbar-width: 0.9em;
    display: flex;
    flex-flow: column;
}

.table-scrollable thead,
.table-scrollable tbody tr {
    display: table;
    table-layout: fixed;
}

.table-scrollable thead {
    flex: 0 0 auto;
    width: calc(100% - var(--scrollbar-width));
}

.table-scrollable tbody {
    display: block;
    flex: 1 1 auto;
    overflow-y: scroll;
}

.table-scrollable tbody tr {
    width: 100%;
}

.cc-cliente-documentacion {
    margin-top: 4px;
    margin-bottom: 0;
    padding: 10px;
    border: 1px solid #e8edf5;
    border-radius: 8px;
}

.cc-cliente-documentacion .cc-documentacion-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.cc-cliente-documentacion .table-archivos {
    font-size: 12px;
    margin-bottom: 0;
}

body.dark-only .cc-cliente-documentacion {
    background: color-mix(in srgb, var(--theme-terciary, #fab515) 15%, transparent);
    border-color: var(--theme-terciary, #fab515);
}

body.dark-only .cc-cliente-documentacion .cc-documentacion-title {
    color: #e2e8f0;
}

.cc-mini-doc {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eef1f6;
}

.cc-mini-doc-title {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
    margin-bottom: 6px;
}

.cc-mini-doc-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cc-mini-doc-list .cc-doc-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    background: #fff;
    border: 1px solid #eef1f6;
    border-radius: 6px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.cc-mini-doc-list .cc-doc-item:hover {
    border-color: #2b668a;
    color: #2b668a;
}

.cc-mini-doc-list .cc-doc-empty {
    font-size: 12px;
    color: #94a3b8;
    font-style: italic;
}

body.dark-only .cc-mini-doc {
    border-top-color: var(--theme-terciary, #fab515);
}

body.dark-only .cc-mini-doc-list .cc-doc-item {
    background: color-mix(in srgb, var(--theme-terciary, #fab515) 15%, transparent);
    border-color: var(--theme-terciary, #fab515);
    color: #e2e8f0;
}

.cc-mini-obs-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 170px;
    overflow-y: auto;
}

.cc-obs-item {
    padding: 5px 8px;
    font-size: 12px;
    background: #fff;
    border: 1px solid #eef1f6;
    border-radius: 6px;
}

.cc-obs-meta {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 2px;
}

.cc-obs-meta i {
    margin-right: 2px;
}

.cc-obs-text {
    color: #1e293b;
    line-height: 1.3;
    white-space: pre-wrap;
    word-break: break-word;
}

body.dark-only .cc-obs-item {
    background: color-mix(in srgb, var(--theme-terciary, #fab515) 15%, transparent);
    border-color: var(--theme-terciary, #fab515);
}

body.dark-only .cc-obs-text {
    color: #e2e8f0;
}

tr.ventaAnulada td {
    background-color: #edbab1 !important;
}

body.dark-only tr.ventaAnulada td {
    background-color: #f1404091 !important;
}

select.cobrador-bloqueado {
    pointer-events: none;
    background-color: #e9ecef;
}

.card.table-responsive.custom-scrollbar.signal-table h4 {
    padding-top: 10px;
}

/* ============================================================
   17/06/2026 | Estilos estándar para vistas de impresión (print-doc)
   Reutilizable en recibos, reportes y comprobantes impresos.
   ============================================================ */

@font-face {
    font-family: 'i2of5_S';
    src: url('../fonts/Interleaved2of5/2of5_S.woff');
}

@font-face {
    font-family: 'i2of5';
    src: url('../fonts/Interleaved2of5/2of5.woff');
}

@font-face {
    font-family: 'i2of5_L';
    src: url('../fonts/Interleaved2of5/2of5_L.woff');
}

@font-face {
    font-family: 'i2of5_XL';
    src: url('../fonts/Interleaved2of5/2of5_XL.woff');
}

@font-face {
    font-family: 'i2of5_XXL';
    src: url('../fonts/Interleaved2of5/2of5_XXL.woff');
}

.print-doc-page {
    margin: 0;
    padding: 8px;
    background: #fff;
    color: #1e293b;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
}

.print-doc-page * {
    box-sizing: border-box;
}

.print-doc {
    max-width: 100%;
    font-size: 12px;
    line-height: 1.45;
}

.print-doc__header {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 4px;
}

.print-doc__header td {
    vertical-align: top;
    padding: 10px;
}

.print-doc__header-brand {
    width: 33%;
}

.print-doc__header-title {
    width: 34%;
    text-align: center;
}

.print-doc__header-meta {
    width: 33%;
    text-align: right;
}

.print-doc__logo {
    max-height: 70px;
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
}

.print-doc__sucursal {
    font-size: 12px;
    padding-top: 6px;
}

.print-doc__sucursal-name {
    font-weight: 600;
    margin-bottom: 3px;
}

.print-doc__doc-title {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--theme-terciary, #2e3d61);
    padding: 8px 12px;
    border: 1px solid #dbe3ef;
    border-radius: 6px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.print-doc__meta-number {
    font-size: 18px;
    font-weight: 800;
    color: var(--theme-terciary, #2e3d61);
    margin-bottom: 4px;
}

.print-doc__meta-date {
    font-size: 12px;
    color: #475569;
    white-space: nowrap;
}

.print-doc__section {
    border-top: 1px solid #dbe3ef;
    border-bottom: 1px solid #dbe3ef;
    padding: 12px 24px;
    margin-top: 6px;
    background: #fafbfc;
}

.print-doc__section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--theme-secondary, #427c9f);
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px dashed #dbe3ef;
}

.print-doc__party-grid {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.print-doc__party-grid td {
    width: 50%;
    vertical-align: top;
    padding: 2px 0;
}

.print-doc__party-field {
    margin-bottom: 4px;
}

.print-doc__party-field:last-child {
    margin-bottom: 0;
}

.print-doc__party-field b {
    color: #64748b;
    font-weight: 600;
}

.print-doc__content {
    margin-top: 8px;
    padding: 0 10px;
}

.print-doc-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #dbe3ef;
    border-radius: 6px;
    overflow: hidden;
}

.print-doc-table thead {
    background: var(--theme-terciary, #2e3d61) !important;
    color: #fff !important;
}

.print-doc-table thead th {
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: none;
    white-space: nowrap;
}

.print-doc-table tbody td {
    padding: 10px 12px;
    font-size: 12px;
    border-top: 1px solid #eef1f6;
    vertical-align: top;
}

.print-doc-table tbody tr:nth-child(even) td {
    background: #f8fafc;
}

.print-doc-table .text-right,
.print-doc-table th.text-right {
    text-align: right;
}

.print-doc-table .text-center {
    text-align: center;
}

.print-doc__detail-sub {
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
}

.print-doc__detail-sub strong {
    color: #334155;
}

.print-doc__notice {
    border-top: 1px solid #dbe3ef;
    border-bottom: 1px solid #dbe3ef;
    margin-top: 8px;
    padding: 12px 24px;
    font-size: 12px;
    background: #fffdf5;
}

.print-doc__notice-title {
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--theme-terciary, #2e3d61);
}

.print-doc__footer {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
    padding: 0 10px;
    clear: both;
}

.print-doc__signature {
    width: 200px;
    height: 110px;
    border: 1px solid #dbe3ef;
    border-radius: 6px;
    position: relative;
    text-align: center;
    background: #fff;
}

.print-doc__signature-label {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.print-doc__payment-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    font-size: 12px;
}

.codigBarrasFont {
    font-family: i2of5_S, monospace;
    font-size: 28px;
    letter-spacing: 1px;
}

/* Alias legacy para migración gradual de otras impresiones */
.print-doc .tableDetalle {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #dbe3ef;
}

.print-doc .tableDetalle thead {
    background: var(--theme-terciary, #2e3d61) !important;
    color: #fff !important;
    border: none;
}

.print-doc .tableDetalle thead th {
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.print-doc .tableDetalle tbody td {
    padding: 10px 12px;
    font-size: 12px;
    border-top: 1px solid #eef1f6;
}

.print-doc .datosCliente .col-md-12,
.print-doc .factura .datosCliente .col-md-12 {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.print-doc-page--compact {
    font-size: 10px;
}

.print-doc-page--compact .print-doc {
    font-size: 10px;
}

.print-doc-page--compact .print-doc-table thead th,
.print-doc-page--compact .print-doc-table tbody td {
    font-size: 10px;
    padding: 6px 8px;
}

.print-doc-page .responsive_show_td {
    display: none !important;
}

.print-doc-page .responsive_hide_td {
    display: table-cell !important;
}

.print-doc__masthead {
    page-break-inside: avoid;
    break-inside: avoid;
    page-break-after: avoid;
    break-after: avoid;
}

.print-doc__credit-block {
    margin-top: 14px;
    page-break-inside: auto;
    break-inside: auto;
}

.print-doc__credit-block>.print-doc-table:first-of-type {
    page-break-inside: avoid;
    break-inside: avoid;
}

.print-doc__credit-block+.print-doc__credit-block {
    margin-top: 22px;
    padding-top: 10px;
    border-top: 2px solid #dbe3ef;
}

.print-doc__credit-cuotas {
    margin-top: 8px;
    margin-bottom: 28px;
}

.print-doc__content>.print-doc__credit-block:first-child {
    margin-top: 0;
}

.print-doc__status {
    font-weight: 700;
}

.print-doc__status--success {
    color: #15803d;
}

.print-doc__status--danger {
    color: #b91c1c;
}

.print-doc__status--info {
    color: #1d4ed8;
}

.print-doc__status--refinanciado {
    color: #6b6d42;
}

.print-doc__amount--ok {
    color: #15803d;
    font-weight: 600;
}

.print-doc__amount--deuda {
    color: #b91c1c;
    font-weight: 600;
}

.print-doc__liberado--ok {
    color: #15803d;
}

.print-doc__liberado--no {
    color: #b91c1c;
}

.print-doc-table tbody tr.print-doc__row--vencida td {
    background: #fef2f2 !important;
}

.print-doc__cuotas-summary {
    display: block;
    line-height: 1.5;
}

.print-doc__cuotas-summary .cuotas-ok {
    color: #15803d;
    display: block;
}

.print-doc__cuotas-summary .cuotas-danger {
    color: #b91c1c;
    display: block;
}

.print-doc__cuotas-summary .cuotas-info {
    color: #1d4ed8;
    display: block;
}

.print-doc__interes {
    color: #b91c1c;
}

.print-doc__pago-detalle {
    font-size: 10px;
    color: #475569;
    margin-top: 2px;
}

.print-doc__cell-meta {
    display: block;
    font-size: 10px;
    color: #64748b;
    margin-top: 2px;
}

.print-doc__cell-empty {
    color: #94a3b8;
    font-style: italic;
}

.print-doc-table tfoot td {
    padding: 10px 12px;
    font-weight: 700;
    text-align: right;
    border-top: 2px solid #dbe3ef;
    background: #f8fafc;
    font-size: 11px;
}

.print-doc-page .listActions,
.print-doc-page .iconPrint,
.print-doc-page .iconPagar,
.print-doc-page .iconDelete,
.print-doc-page .iconDeleteCuota,
.print-doc-page .iconLiberar {
    display: none !important;
}

/* Contenido HTML inyectado desde reportes (r_creditos_impresion, etc.) */
.print-doc__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding: 10px 14px;
    margin: 8px 0 14px;
    background: #f8fafc;
    border: 1px solid #dbe3ef;
    border-radius: 6px;
    font-size: 11px;
}

.print-doc__filter-item b {
    color: #64748b;
    font-weight: 600;
}

.print-doc__content-injected .responsive_show_full {
    display: none !important;
}

.print-doc__content-injected .responsive_hide_td_print {
    display: table-row !important;
}

.print-doc__content-injected .card,
.print-doc__content-injected .table-responsive {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

.print-doc__content-injected .table,
.print-doc__content-injected table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #dbe3ef;
    margin-bottom: 0;
    font-size: 10px;
}

.print-doc__content-injected .table thead,
.print-doc__content-injected table thead {
    background: var(--theme-terciary, #2e3d61) !important;
    color: #fff !important;
}

.print-doc__content-injected .table thead th,
.print-doc__content-injected table thead th {
    padding: 7px 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border: none;
    white-space: nowrap;
}

.print-doc__content-injected .table tbody td,
.print-doc__content-injected table tbody td {
    padding: 7px 10px;
    font-size: 10px;
    border-top: 1px solid #eef1f6;
    vertical-align: top;
}

.print-doc__content-injected .table tbody tr:nth-child(even) td,
.print-doc__content-injected table tbody tr:nth-child(even) td {
    background: #f8fafc;
}

.print-doc__content-injected tr.totalReporte td,
.print-doc__content-injected tr.responsive_hide_td_print td,
.print-doc__content-injected .table tbody tr:last-child td[colspan] {
    font-weight: 700;
    background: #f1f5f9 !important;
    border-top: 2px solid #dbe3ef;
}

.print-doc .contenidoReporte {
    margin-top: 4px;
}

.print-doc__notice--legal {
    text-align: justify;
    font-size: 11px;
    line-height: 1.5;
}

.print-doc__cae-block {
    border-top: 1px solid #dbe3ef;
    border-bottom: 1px solid #dbe3ef;
    margin-top: 8px;
    padding: 12px 24px;
    text-align: right;
    background: #f8fafc;
    font-size: 12px;
}

.print-doc__cae-copy-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
    color: var(--theme-terciary, #2e3d61);
}

.print-doc__afip-qr {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.print-doc__afip-qr td {
    vertical-align: top;
    padding: 8px 12px;
}

.print-doc__afip-qr-image {
    width: 140px;
}

.print-doc__afip-qr-img {
    width: 125px;
    max-width: 100%;
    height: auto;
    display: block;
}

.print-doc__afip-qr-info img {
    width: 130px;
    max-height: 48px;
}

.print-doc__afip-qr-title {
    font-weight: 700;
    margin: 10px 0;
    font-size: 12px;
}

.print-doc__afip-qr-detail {
    font-size: 10px;
    font-style: italic;
    color: #64748b;
    line-height: 1.45;
    margin-bottom: 4px;
}

.print-doc__page-break {
    display: none;
}

@media print {
    .print-doc-page {
        margin: 0;
        padding: 0;
    }

    .print-doc-table thead,
    .print-doc .tableDetalle thead {
        background: var(--theme-terciary, #2e3d61) !important;
        color: #fff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .print-doc__section {
        background: #fafbfc !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .print-doc-table tbody tr.print-doc__row--vencida td {
        background: #fef2f2 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .print-doc__content-injected .table thead,
    .print-doc__content-injected table thead {
        background: var(--theme-terciary, #2e3d61) !important;
        color: #fff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .print-doc__content-injected tr.totalReporte td,
    .print-doc__content-injected tr.responsive_hide_td_print td,
    .print-doc__content-injected .table tbody tr:last-child td[colspan] {
        background: #f1f5f9 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .print-doc__page-break {
        display: block;
        page-break-before: always;
    }

    .print-doc__masthead {
        page-break-inside: avoid;
        break-inside: avoid;
        page-break-after: avoid;
        break-after: avoid;
    }

    .print-doc__credit-block {
        page-break-inside: auto;
        break-inside: auto;
    }

    .print-doc-table thead {
        display: table-header-group;
    }

    .print-doc-table tr {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .print-doc__cae-block {
        background: #f8fafc !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

.cobrador-bloqueado {
    pointer-events: none;
    background-color: #e9ecef;
    cursor: not-allowed;
}

.credito-print-page {
    width: 21cm;
    min-height: 29.7cm;
    position: relative;
    margin: 0;
    padding: 0;
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
}

.credito-print-page__field {
    position: absolute;
    font-size: 12pt;
    white-space: nowrap;
}

@media print {
    .credito-print-page {
        margin: 0;
    }

    @page {
        size: A4;
        margin: 0;
    }
}

.page-wrapper .page-header .header-wrapper {
    flex-wrap: nowrap;
}

/* El formulario de búsqueda ocupaba col-sm-8 (66%) aunque el input visible es solo el 50% interno,
   dejando un hueco enorme antes del panel. Lo ajustamos al ancho real del input para que los botones
   queden pegados a la barra. */
.page-wrapper .page-header .header-wrapper .search-full {
    flex: 0 1 auto;
    width: auto;
    max-width: 50%;
    min-width: 0;
    margin-right: 12px;
}

.page-wrapper .page-header .header-wrapper .search-full .form-group {
    width: 100%;
}

.page-wrapper .page-header .header-wrapper .search-full .Typeahead {
    width: 22vw !important;
    max-width: 100%;
}

.page-wrapper .page-header .header-wrapper .nav-right {
    margin-left: auto;
    flex: 0 0 auto;
    width: auto;
    max-width: none;
}

.panelRapido {
    flex: 0 0 auto;
    align-items: center;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.panelRapido::-webkit-scrollbar {
    display: none;
}

@media (max-width: 1199.98px) {
    .panelRapido {
        gap: 4px;
    }

    .panelRapido button {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 575.98px) {
    .panelRapido {
        gap: 3px;
        margin-left: 6px;
    }

    .panelRapido button {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

.filters .mb-3.row.form-group-wide.campoCobradoresFiltro {
    flex: 0 1 auto;
    min-width: 210px;
    max-width: 420px;
}

.filters .select2-cobradoresFiltro.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
}

.filters .select2-cobradoresFiltro.select2-container--default .select2-selection--multiple .select2-selection__choice {
    float: none;
    flex: 0 0 auto;
}

@media (max-width: 767.98px) {
    .page-wrapper .page-header .header-wrapper .nav-right .profile-nav {
        order: -1;
    }
}

.nav-right .nav-menus .nuevaPestanaBtn {
    display: inline-flex;
    align-items: center;
}

@media (max-width: 767.98px) {
    .nav-right .nav-menus .nuevaPestanaBtn {
        display: none;
    }
}

.cuota-cards-page {
    background-image: linear-gradient(rgba(255, 255, 255, 0.89), rgba(255, 255, 255, 0.89)), url('../assets/images/logo/logo_opcion.png');
    background-repeat: repeat;
    background-size: 30mm auto;
    background-color: #fff;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
}

.cuota-cards-grid {
    box-sizing: border-box;
    width: 100%;
    padding: 10mm;
    display: flex;
    flex-wrap: wrap;
    gap: 6mm;
}

.cuota-card {
    box-sizing: border-box;
    flex: 0 0 calc((100% - 12mm) / 3);
    min-width: 0;
    min-height: 42mm;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.6);
    padding: 4mm;
    display: flex;
    flex-direction: column;
    color: #1e293b;
    page-break-inside: avoid;
    break-inside: avoid;
}

.cuota-card__header {
    display: grid;
    grid-template-columns: 25mm 1fr auto;
    align-items: center;
    gap: 2mm;
    border-bottom: 1px dashed #dbe3ef;
    padding-bottom: 2mm;
    margin-bottom: 2mm;
}

.cuota-card__logo img {
    width: 100%;
    height: auto;
    display: block;
}

.cuota-card__titulo {
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--theme-terciary, #2e3d61);
}

.cuota-card__meta {
    display: flex;
    flex-direction: column;
    text-align: right;
    line-height: 1.3;
}

.cuota-card__credito {
    font-size: 9px;
    font-weight: 700;
    color: var(--theme-terciary, #2e3d61);
    white-space: nowrap;
}

.cuota-card__cuota {
    font-size: 8px;
    color: var(--theme-secondary, #427c9f);
    white-space: nowrap;
}

.cuota-card__body {
    display: flex;
    flex-direction: column;
    gap: 2mm;
}

.cuota-card__campo b {
    display: block;
    font-size: 7px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.cuota-card__campo span {
    font-size: 10px;
}

.cuota-card__footer {
    margin-top: auto;
    padding-top: 2mm;
    border-top: 1px solid #dbe3ef;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2mm;
}

.cuota-card__monto {
    font-size: 13px;
    font-weight: 800;
    color: var(--theme-terciary, #2e3d61);
}

.cuota-card__firma {
    flex: 0 0 auto;
    width: 26mm;
    text-align: center;
    border-top: 1px solid #94a3b8;
    padding-top: 1mm;
    font-size: 8px;
    color: #64748b;
}

/* dash mobile */
@media (max-width: 767.98px) {

    .stat-panel--dash .stat-row--featured .stat-card[data-stat="ticketPromedio"],
    .stat-panel--dash .stat-row--featured .stat-card[data-stat="morosidad"] {
        flex: 1 1 100%;
    }
}

@media (max-width: 767.98px) {

    .card-header:has(.dashRankingCobPeriodo) {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .dashRankingCobPeriodo {
        width: 100%;
    }

    .dashRankingCobPeriodo .btn {
        flex: 1 1 0;
    }
}

/*fin dash mobile */


.btnDashRankingCob {
    color: #427c9f;
    border: 1px solid #427c9f;
    background-color: transparent;
}

.btnDashRankingCob:hover,
.btnDashRankingCob.active {
    color: #fff;
    background-color: #427c9f;
    border-color: #427c9f;
}


.input-bloqueado {
    pointer-events: none !important;
    background-color: #e9ecef !important;
    cursor: not-allowed !important;
}


/* ==========================================================================
   REDISEÑO MODERNO — Layout, Header, Sidebar y Footer
   ========================================================================== */

/* --- 1. Variables de diseño (paleta extendida) --- */
:root {
    --dust-background-soft: rgb(250 181 21 / 26%);
    --theme-default-hover: #8f1207;
    --theme-secondary-muted: rgba(4, 108, 66, 0.22);
    --dust-surface: #ffffff;
    --dust-surface-alt: #f4f7f5;
    --dust-border: rgb(245 179 22);
    --dust-border-strong: rgb(227 108 7);
    --dust-text: #1f2f3e;
    --dust-text-muted: #5a6b7d;
    --dust-shadow-sm: 0 1px 3px rgba(31, 47, 62, 0.06), 0 1px 2px rgba(31, 47, 62, 0.04);
    --dust-shadow-md: 0 4px 14px rgba(4, 108, 66, 0.10), 0 2px 6px rgba(31, 47, 62, 0.06);
    --dust-shadow-header: 0 2px 16px rgba(4, 108, 66, 0.12);
    --dust-radius-sm: 8px;
    --dust-radius-md: 12px;
    --dust-radius-pill: 999px;
    --dust-transition: 0.22s ease;
}

:root .dark-only {
    --dust-surface: #1a1f1e;
    --dust-surface-alt: #121615;
    --dust-border: rgb(250 181 21 / 54%);
    --dust-border-strong: rgba(255, 255, 255, 0.14);
    --dust-text: #e8ecea;
    --dust-text-muted: #9aa8a2;
    --dust-background-soft: rgb(97 83 82 / 22%);
    --dust-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
    --dust-shadow-md: 0 4px 18px rgba(0, 0, 0, 0.45);
    --dust-shadow-header: 0 2px 18px rgba(0, 0, 0, 0.5);
}

/* --- 2. Layout general (fondo y contenedor principal) --- */
.page-wrapper.compact-wrapper {
    background-color: var(--dust-surface-alt);
}

.page-wrapper.compact-wrapper .page-body-wrapper .page-body {
    background: transparent;
}

.page-wrapper.compact-wrapper .page-body-wrapper .page-body .container-fluid.main {
    animation: dsmaFadeIn 0.35s ease;
    padding-top: 50px;
    padding-bottom: 20px;
}

@keyframes dsmaFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- 3. Header superior --- */
.page-wrapper .page-header {
    background: var(--dust-surface);
    border-bottom: 1px solid var(--dust-border);
}

.page-wrapper .page-header .header-wrapper {
    box-shadow: var(--dust-shadow-header) !important;
    padding: 0px 24px;
    min-height: 64px;
    align-items: center;
    background: linear-gradient(180deg, var(--dust-surface) 0%, rgba(244, 247, 245, 0.92) 100%);
    backdrop-filter: blur(8px);
}

.page-wrapper .page-header .header-wrapper .logo-wrapper {
    border-right: 1px solid var(--dust-border) !important;
    padding-right: 12px;
}

.page-wrapper .page-header .header-wrapper .logo-wrapper img {
    margin-top: 8px;
    margin-left: 8%;
    transition: transform var(--dust-transition);
}

.page-wrapper .page-header .header-wrapper .logo-wrapper:hover img {
    transform: scale(1.02);
}

.page-wrapper .page-header .header-wrapper .toggle-sidebar {
    border-radius: var(--dust-radius-sm);
    transition: background-color var(--dust-transition);
}

.page-wrapper .page-header .header-wrapper .toggle-sidebar:hover {
    background-color: var(--dust-background-soft);
}

.page-wrapper .page-header .header-wrapper .search-full .form-group input {
    background-color: var(--dust-surface-alt) !important;
    border: 1px solid var(--theme-default) !important;
    border-radius: var(--dust-radius-pill) !important;
    padding: 8px 16px 8px 36px !important;
    font-size: 13px;
    transition: border-color var(--dust-transition), box-shadow var(--dust-transition), background-color var(--dust-transition);
}

.page-wrapper .page-header .header-wrapper .search-full .form-group input:focus {
    border-color: var(--theme-secondary) !important;
    box-shadow: 0 0 0 3px var(--dust-background-soft);
    background-color: var(--dust-surface) !important;
    outline: none;
}

.page-wrapper .page-header .header-wrapper .nav-right .nav-menus>li {
    margin: 0 4px;
}

.page-wrapper .page-header .header-wrapper .nav-right .nav-menus>li>a,
.page-wrapper .page-header .header-wrapper .nav-right .nav-menus>li .mode,
.page-wrapper .page-header .header-wrapper .nav-right .nav-menus>li .serchbox {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--dust-radius-sm);
    transition: background-color var(--dust-transition), color var(--dust-transition);
}

.page-wrapper .page-header .header-wrapper .nav-right .nav-menus>li>a:hover,
.page-wrapper .page-header .header-wrapper .nav-right .nav-menus>li .mode:hover,
.page-wrapper .page-header .header-wrapper .nav-right .nav-menus>li .serchbox:hover {
    background-color: var(--dust-background-soft);
}

.page-wrapper .page-header .header-wrapper .nav-right .profile-media {
    padding: 4px 10px 4px 4px;
    border-radius: var(--dust-radius-pill);
    border: 1px solid var(--dust-border);
    background: var(--dust-surface-alt);
    transition: border-color var(--dust-transition), box-shadow var(--dust-transition);
}

.page-wrapper .page-header .header-wrapper .nav-right .profile-media:hover {
    border-color: var(--theme-secondary);
    box-shadow: var(--dust-shadow-sm);
}

.page-wrapper .page-header .header-wrapper .nav-right .profile-media img {
    border: 2px solid var(--theme-secondary-muted);
}

.page-wrapper .page-header .header-wrapper .nav-right .profile-media .user span {
    font-weight: 600;
    color: var(--dust-text);
    font-size: 13px;
}

.page-wrapper .page-header .header-wrapper .nav-right .profile-media .user p {
    color: var(--dust-text-muted);
    font-size: 11px;
}

.page-wrapper .page-header .header-wrapper .nav-right .profile-dropdown.onhover-show-div {
    border-radius: var(--dust-radius-md);
    border: 1px solid var(--dust-border);
    box-shadow: var(--dust-shadow-md);
    overflow: hidden;
    padding: 6px;
}

.page-wrapper .page-header .header-wrapper .nav-right .profile-dropdown.onhover-show-div li a {
    border-radius: var(--dust-radius-sm);
    transition: background-color var(--dust-transition), color var(--dust-transition);
}

.page-wrapper .page-header .header-wrapper .nav-right .profile-dropdown.onhover-show-div li a:hover {
    background-color: var(--dust-background-soft);
    color: var(--theme-secondary);
}

.panelRapido button.btn {
    border-radius: var(--dust-radius-sm);
    border: 1px solid var(--dust-border-strong);
    background: var(--dust-surface);
    font-weight: 600;
    transition: all var(--dust-transition);
}

.panelRapido button.btn:hover {
    background: var(--theme-default) !important;
    border-color: var(--theme-secondary);
    color: #fff;
    box-shadow: var(--dust-shadow-sm);
}

/* --- 4. Sidebar / Menú lateral --- */
.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper {
    background: var(--dust-surface);
    border-right: 1px solid var(--dust-border);
    box-shadow: var(--dust-shadow-sm);
}


.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content>li.sidebar-main-title h6 {
    color: var(--dust-text-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.85;
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content>li .sidebar-link.sidebar-title,
.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content>li .sidebar-link {
    border-radius: var(--dust-radius-sm);
    margin: 2px 10px;
    padding: 10px 14px;
    font-weight: 500;
    color: var(--dust-text);
    transition: background-color var(--dust-transition), color var(--dust-transition), transform var(--dust-transition);
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content>li .sidebar-link.sidebar-title:hover,
.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content>li .sidebar-link:hover {
    background-color: var(--dust-background-soft);
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content>li .sidebar-link.active,
.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content>li .sidebar-link.sidebar-title.active {
    background: linear-gradient(90deg, var(--dust-background-soft) 0%, var(--dust-background-soft) 100%);
    color: var(--theme-default) !important;
    box-shadow: inset 3px 0 0 var(--theme-default);
    font-weight: 600;
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content>li .sidebar-link.active span,
.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content>li .sidebar-link.sidebar-title.active span {
    color: var(--theme-default) !important;
}

.sidebar-links .sidebar-title i,
.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content>li .sidebar-link i.fa {
    color: var(--theme-secondary);
    width: 18px;
    text-align: center;
    transition: color var(--dust-transition), transform var(--dust-transition);
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content>li .sidebar-link.active i.fa,
.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content>li .sidebar-link.sidebar-title.active i.fa {
    color: var(--theme-default);
}

.toggle-sidebar {
    right: 5px;
    top: 5px;
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content>li .sidebar-submenu {
    margin: 4px 0 8px;
    padding-left: 8px;
    border-left: 2px solid var(--dust-border);
    margin-left: 22px;
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content>li .sidebar-submenu li a {
    border-radius: var(--dust-radius-sm);
    margin: 2px 8px 2px 0;
    padding: 7px 12px;
    font-size: 12px;
    color: var(--dust-text-muted);
    transition: background-color var(--dust-transition), color var(--dust-transition), padding-left var(--dust-transition);
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content>li .sidebar-submenu li a:hover {
    background-color: var(--dust-background-soft);
    color: var(--theme-default) !important;
    padding-left: 16px;
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content>li .sidebar-submenu li a.active {
    background-color: var(--dust-background-soft);
    color: var(--theme-default) !important;
    font-weight: 600;
    box-shadow: inset 2px 0 0 var(--theme-secondary);
}

ul.sidebar-submenu i {
    color: var(--theme-secondary);
    opacity: 0.85;
}

.dark-only ul.sidebar-submenu i {
    color: var(--theme-terciary);
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links li .fa-thumb-tack {
    color: var(--theme-default);
    opacity: 0.55;
}

/* --- 5. Título de página y migas de pan --- */
.page-wrapper .page-body-wrapper .page-title {
    border-bottom: 1px solid var(--dust-border);
    border-radius: 0;
    left: 0;
    margin: 0 0 10px !important;
    padding: 8px 0 0px;
    position: fixed;
    width: 100%;
    z-index: 2;
}

@media (min-width: 1200px) {
    .page-wrapper.compact-wrapper .page-body-wrapper .page-title {
        left: 253px;
        width: calc(100% - 253px);
    }

    .page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper.close_icon~.page-body .page-title {
        left: 71px;
        width: calc(100% - 71px);
        transition: 0.5s;
    }
}

.page-wrapper .page-body-wrapper .page-title h3.screen-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--dust-text);
    letter-spacing: -0.01em;
}

.page-wrapper .page-body-wrapper .page-title .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.page-wrapper .page-body-wrapper .page-title .breadcrumb .breadcrumb-item {
    font-size: 12px;
    font-weight: 500;
}

.page-wrapper .page-body-wrapper .page-title .breadcrumb .breadcrumb-item a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--dust-radius-sm);
    background: var(--dust-background-soft);
    transition: background-color var(--dust-transition);
}

.page-wrapper .page-body-wrapper .page-title .breadcrumb .breadcrumb-item a:hover {
    background: var(--theme-secondary-muted);
}

.page-wrapper .page-body-wrapper .page-title .breadcrumb .breadcrumb-item.active {
    color: var(--theme-default);
    font-weight: 600;
}

/* --- 6. Footer --- */
footer.footer {
    background: var(--dust-surface);
    border-top: 1px solid var(--dust-border);
    box-shadow: 0 -2px 12px rgba(4, 108, 66, 0.06);
    padding: 10px 30px !important;
}

footer.footer .footer-copyright p,
footer.footer .heart {
    color: var(--dust-text-muted);
    font-size: 12px;
}

footer.footer .footer-copyright b a:hover {
    color: var(--theme-secondary) !important;
}

footer.footer .heart b {
    color: var(--theme-secondary);
}

/* --- 7. Tarjetas y contenido general (suave, reversible) --- */
.page-wrapper .page-body-wrapper .page-body .card:not(.email-body) {
    border: 1px solid var(--dust-border);
    border-radius: var(--dust-radius-md);
    box-shadow: var(--dust-shadow-sm);
    transition: box-shadow var(--dust-transition);
}

.page-wrapper .page-body-wrapper .page-body .card:not(.email-body):hover {
    box-shadow: var(--dust-shadow-md);
}

.tap-top {
    background: linear-gradient(135deg, var(--theme-secondary) 0%, var(--theme-default) 100%) !important;
    border-radius: var(--dust-radius-sm) !important;
    box-shadow: var(--dust-shadow-md);
}

/* --- 8. Modo oscuro --- */
body.dark-only .page-wrapper .page-header .header-wrapper {
    background: #121313;
}

body.dark-only .page-wrapper .page-header .header-wrapper .search-full .form-group input {
    background-color: rgba(255, 255, 255, 0.04) !important;
    border-color: var(--dust-border-strong) !important;
    color: var(--dust-text);
}

body.dark-only .page-wrapper .page-header .header-wrapper .nav-right .profile-media {
    background: rgba(255, 255, 255, 0.04);
}

body.dark-only .page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper,
body.dark-only .page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .logo-wrapper {
    background: #121313;
}

body.dark-only .page-wrapper .page-body-wrapper .page-title {
    background: #171818 !important;
    border-bottom-color: var(--dust-border);
}

body.dark-only .page-wrapper .page-header {
    background-color: transparent;
}

body.dark-only .page-wrapper .page-header .header-wrapper .search-full {
    background-color: transparent;
}

body.dark-only footer.footer {
    background: var(--dust-surface);
}

body.dark-only .page-wrapper .page-body-wrapper .page-body .card:not(.email-body) {
    border-color: var(--dust-border);
    background-color: var(--dust-surface);
}



body.dark-only .panelRapido button.btn:hover {
    background: var(--theme-secondary);
    color: #fff;
}

/* --- 9. Responsive --- */
@media (max-width: 1199px) {
    .page-wrapper .page-header .header-wrapper {
        padding: 6px 14px;
    }

    .page-wrapper .page-header .header-wrapper .nav-right .profile-media {
        padding: 2px 6px 2px 2px;
    }
}

@media (max-width: 768px) {
    .page-wrapper .page-body-wrapper .page-title {
        padding: 12px 0 10px;
    }

    .page-wrapper .page-body-wrapper .page-title h3.screen-title {
        font-size: 16px;
    }

    .page-wrapper.compact-wrapper .page-body-wrapper .page-body .container-fluid.main {
        padding-top: 86px;
    }

    .page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content>li .sidebar-link.sidebar-title,
    .page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content>li .sidebar-link {
        margin: 2px 6px;
        padding: 9px 12px;
    }
}

.page-wrapper.compact-wrapper .page-body-wrapper .page-body {
    margin-left: 253px;
    margin-top: 60px;
    min-height: calc(100vh - 105px);
}

@media (max-width: 575.98px) {
    .panelButtonList {
        gap: 10px;
    }

    .panelButtonList .btn {
        padding: 6px 14px !important;
    }
}

/* FIN REDISEÑO MODERNO */


@media (max-width: 768px) {
    #formCliente .control-label {
        display: block;
        white-space: normal;
        text-align: left;
    }
}

#formCliente .control-label-wrap {
    white-space: normal;
    text-align: left;
}

/*Estrellas del modal de calificación de cliente */
#modalCalificarCliente .calificacionEstrellas {
    font-size: 32px;
}

#modalCalificarCliente .calificacionEstrellas .estrella {
    color: #ddd;
    cursor: pointer;
    margin: 0 4px;
}

#modalCalificarCliente .calificacionEstrellas .estrella.activa {
    color: #f5b301;
}

.cc-cliente-mini-rating {
    font-size: 11px;
    white-space: nowrap;
    flex-shrink: 0;
    color: #ddd;
}

.cc-cliente-mini-rating .cc-cliente-mini-rating-activa {
    color: #f5b301;
}


.cc-cliente-ver-calificaciones {
    color: #888;
    font-size: 13px;
}

.cc-cliente-ver-calificaciones:hover {
    color: #f5b301;
}

/*alerta para cupos cambio de tipo*/
.sweet-alert p {
    white-space: pre-line;
}

#formNotificacionApp textarea.form-control {
    height: auto;
}

.rowTipoProductoMatch>td {
    background-color: rgba(255, 193, 7, 0.18);
}

.rowFactura.dropTargetPago>td {
    background-color: rgba(255, 193, 7, 0.28);
    box-shadow: inset 0 0 0 2px #ffc107;
}

body.dark-only .rowFactura.dropTargetPago>td {
    background-color: rgba(255, 193, 7, 0.4);
    box-shadow: inset 0 0 0 2px #ffca2c;
}

.form-check-input {
    border: 2px solid var(--theme-secondary) !important;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--theme-default);
    border-color: var(--theme-default);
    cursor: pointer;
}

body.dark-only .form-check-input {
    border-color: #6c6f7e !important;
}

body.dark-only .form-check-input:checked {
    background-color: var(--theme-default);
    border-color: var(--theme-default);
}

.small-box,
.small-box .inner,
.small-box h3,
.small-box p {
    color: #fff !important;
}

/* "Seleccionar todo" / "Deseleccionar todo" en detalle de movimiento */
.select-all-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
    white-space: nowrap;
    cursor: pointer;
}

.select-all-label input[type="checkbox"] {
    margin: 0 !important;
}

.select-all-label input[type="checkbox"]:disabled {
    cursor: not-allowed;
}

.select-all-label input[type="checkbox"]:disabled~.select-all-label__text {
    opacity: 0.6;
    cursor: not-allowed;
}

body.dark-only .sidebar-links .sidebar-title i,
body.dark-only .page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content>li .sidebar-link i.fa {
    color: var(--theme-default);
    opacity: 0.55;
}

.form-solo-lectura {
    pointer-events: none;
    opacity: 0.75;
}

.adjuntarComprobantePago {
    cursor: pointer;
    margin: 0;
}

.adjuntarComprobantePago:hover .fa-paperclip {
    color: var(--theme-default) !important;
}

.swal-confirm2 .swal-button--cancel,
body.dark-only .swal-confirm2 .swal-button--cancel {
    background-color: #dc3545 !important;
    color: #fff;
}

.swal-confirm2 .swal-button--cancel:hover,
.swal-confirm2 .swal-button--cancel:active,
.swal-confirm2 .swal-button--cancel:focus {
    background-color: #bb2d3b !important;
    color: #fff;
}

/* Fecha: 2026-09-14 */
/* Dev: Charlie */
/* Funcionalidad: pestañas del formulario de Personal (Datos Personales / Datos Laborales) */
#formPersonal .nav-tabs {
    margin-top: 15px;
    margin-bottom: 0;
    gap: 8px;
    border-bottom: 1px solid var(--theme-secondary);
}

#formPersonal .nav-tabs .nav-link {
    border-radius: 6px 6px 0 0;
}

#formPersonal .nav-tabs .nav-link.active {
    border-bottom: none;
    border-color: var(--theme-secondary) var(--theme-secondary) transparent var(--theme-secondary);
}

/* Fecha: 2026-09-15 */
/* Dev: Charlie */
/* Funcionalidad: borde tipo card (izq/der/abajo) en el contenido de las pestañas de Personal */
#formPersonal .tab-content {
    border: 1px solid var(--theme-secondary);
    border-top: none;
    border-radius: 0 0 6px 6px;
    padding: 15px;
}

/* Fecha: 2026-09-15 | Dev: Charlie | Funcionalidad: switch de Período de Prueba / Habilitado. El label queda como columna Bootstrap normal (mismo ancho/alineación que el resto de los .control-label); solo se evita que el label y el switch se apilen en pantallas angostas. */
#formPersonal .form-switch {
    padding-left: calc(var(--bs-gutter-x, 1.5rem) * .5);
    display: flex;
    align-items: center;
}

#formPersonal .form-switch .form-check-input {
    margin-left: 0;
    flex-shrink: 0;
}

@media (max-width: 575.98px) {
    #formPersonal .switch-pair {
        flex: 0 0 auto;
        width: auto;
        max-width: none;
    }
}

.swal-confirm2 .swal-button--confirm,
body.dark-only .swal-confirm2 .swal-button--confirm {
    background-color: #000 !important;
    color: #fff;
}

.swal-confirm2 .swal-button--confirm:hover,
.swal-confirm2 .swal-button--confirm:active,
.swal-confirm2 .swal-button--confirm:focus {
    background-color: #262626 !important;
    color: #fff;
}

tr.ventaPorCobrar td {
    background-color: #f3e4cb !important;
}

body.dark-only tr.ventaPorCobrar td {
    background-color: #8f6a2f !important;
}

.aventa-cobro-layout {
    margin-top: 4px;
}

.aventa-cobro-lista {
    padding-right: 10px;
}

.aventa-cobro-lista #ventas_load {
    background: #f3f6f9;
    border-radius: 10px;
    padding: 10px;
    min-height: 200px;
}

.aventa-cobro-detalle {
    padding-left: 10px;
}

.aventa-cobro-volver {
    display: none;
    margin-bottom: 12px;
    align-items: center;
    gap: 6px;
}

@media (min-width: 992px) {

    .aventa-cobro-lista,
    .aventa-cobro-detalle {
        min-height: calc(100vh - 230px);
        max-height: calc(100vh - 230px);
        overflow-y: auto;
    }
}

@media (max-width: 991px) {
    .aventa-cobro-layout {
        margin-left: 0;
        margin-right: 0;
    }

    .aventa-cobro-lista,
    .aventa-cobro-detalle {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .aventa-cobro-detalle {
        display: none;
    }

    .aventa-cobro-layout.mostrando-detalle .aventa-cobro-lista {
        display: none;
    }

    .aventa-cobro-layout.mostrando-detalle .aventa-cobro-detalle {
        display: block;
    }

    .aventa-cobro-volver {
        display: inline-flex;
    }
}

/* Items de la lista de ventas a cobrar (generados por js/socketcliente.js) */
.btn_ventas_cobro {
    display: block;
    width: 100%;
    text-align: left;
    background: #fff;
    border: 1px solid #e4e9ef;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn_ventas_cobro:hover {
    border-color: var(--theme-default);
    box-shadow: 0 2px 10px rgba(13, 26, 42, 0.08);
}

.aventa-cobro-item-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    padding: 2px 0;
}

.aventa-cobro-item-label {
    color: #8a97a8;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    white-space: nowrap;
}

.aventa-cobro-item-valor {
    text-align: right;
    color: #222;
    font-weight: 600;
}

.btn_ventas_cobro .solicitudAlert {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed #e8d870;
    color: #9e2222;
    font-weight: 700;
    font-size: 12px;
    text-align: center;
}

body.dark-only .aventa-cobro-lista #ventas_load {
    background: #1e1f2b;
}

body.dark-only .btn_ventas_cobro {
    background: transparent;
    border-color: #363754;
}

body.dark-only .btn_ventas_cobro:hover {
    border-color: var(--theme-default);
}

body.dark-only .aventa-cobro-item-label {
    color: #6b7a9a;
}

body.dark-only .aventa-cobro-item-valor {
    color: #c8cfe8;
}

#formActualizacionPrecio input.numeric {
    width: auto;
    min-width: 4ch;
    max-width: 100%;
    field-sizing: content;
}

.input-group {
    flex-wrap: nowrap !important;
}

.aventa-cobro-ocultar-lista {
    display: none;
    margin-bottom: 12px;
    align-items: center;
    gap: 6px;
}

@media (min-width: 992px) {
    .aventa-cobro-ocultar-lista {
        display: inline-flex;
    }

    .aventa-cobro-lista {
        transition: width 0.3s ease, opacity 0.25s ease, padding 0.3s ease;
        opacity: 1;
        overflow-x: hidden;
    }

    .aventa-cobro-detalle {
        transition: width 0.3s ease;
    }

    .aventa-cobro-layout.lista-oculta .aventa-cobro-lista {
        width: 0;
        padding-left: 0;
        padding-right: 0;
        opacity: 0;
        pointer-events: none;
    }

    .aventa-cobro-layout.lista-oculta .aventa-cobro-detalle {
        width: 100%;
    }
}

#formActualizacionPrecio .row {
    row-gap: 10px;
}

.estado-facturado {
    color: var(--estado-facturado);
}

.estado-vencido {
    color: var(--estado-vencido);
}

.estado-vigente {
    color: var(--estado-vigente);
}

.estado-porcobrar {
    color: var(--estado-porcobrar);
}

#formActualizacionPrecio input.prod_descuento[readonly] {
    background-color: var(--bs-secondary-bg) !important;
    opacity: 1;
    cursor: not-allowed;
}

/* Fecha: 2026-08-24 | Dev: Charlie | Funcionalidad: rediseño del panel resúmen de caja (banners tipo ledger) */

.caja-ledger-panel {
    background: #ffffff;
    border: 1px solid color-mix(in srgb, var(--theme-terciary, #fab515) 35%, #e6e9ef);
    border-top: 3px solid var(--theme-terciary, #fab515);
    border-radius: 14px;
    padding: 22px 26px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.caja-ledger-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid color-mix(in srgb, var(--theme-terciary, #fab515) 25%, #eef1f6);
}

.caja-ledger-header-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--theme-terciary, #fab515);
    background: color-mix(in srgb, var(--theme-terciary, #fab515) 16%, transparent);
}

.caja-ledger-header-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.01em;
}

.caja-ledger-header-meta {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 1px;
}

.caja-ledger-row {
    display: flex;
    align-items: stretch;
}

.caja-ledger-item {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 20px;
    position: relative;
}

.caja-ledger-item:first-child {
    padding-left: 0;
}

.caja-ledger-item:last-child {
    padding-right: 0;
}

.caja-ledger-item:not(:last-child) {
    border-right: 1px solid color-mix(in srgb, var(--theme-terciary, #fab515) 25%, #eef1f6);
}

.caja-ledger-icon {
    display: inline-flex;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-bottom: 10px;
}

.caja-ledger-icon--primary {
    color: #3e8ef7;
    background: #eef4ff;
}

.caja-ledger-icon--success {
    color: #16a34a;
    background: #eafaf0;
}

.caja-ledger-icon--info {
    color: #0891b2;
    background: #e6fbfd;
}

.caja-ledger-icon--mercado {
    color: #009ee3;
    background: #e6f7fd;
}

.caja-ledger-icon--cheque {
    color: #7c3aed;
    background: #f4effe;
}

.caja-ledger-label {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 6px;
}

.caja-ledger-value {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.caja-ledger-meta {
    font-size: 12px;
    color: #94a3b8;
}

.caja-ledger-toggle-row {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid color-mix(in srgb, var(--theme-terciary, #fab515) 25%, #eef1f6);
    display: flex;
    justify-content: center;
}

.caja-ledger-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 4px 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--theme-terciary, #fab515);
    cursor: pointer;
}

.caja-ledger-toggle:hover {
    filter: brightness(0.85);
}

.caja-ledger-toggle i {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.caja-ledger-toggle.active i,
.caja-ledger-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.caja-ledger-panel .caja-ledger-toggle.active,
.caja-ledger-panel .caja-ledger-toggle[aria-expanded="true"] {
    color: var(--theme-terciary, #fab515);
    background: none;
}

body.dark-only .caja-ledger-panel .caja-ledger-toggle.active,
body.dark-only .caja-ledger-panel .caja-ledger-toggle[aria-expanded="true"] {
    color: var(--theme-terciary, #fab515);
    background: none;
}

.caja-ledger-accounts {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.caja-ledger-acct {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: color-mix(in srgb, var(--theme-terciary, #fab515) 5%, #f8f8f7);
    border: 1px solid color-mix(in srgb, var(--theme-terciary, #fab515) 25%, #eef1f6);
    border-radius: 10px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.caja-ledger-acct:hover {
    background: color-mix(in srgb, var(--theme-terciary, #fab515) 10%, #f8f8f7);
    border-color: color-mix(in srgb, var(--theme-terciary, #fab515) 45%, #eef1f6);
}

.caja-ledger-acct-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--theme-terciary, #fab515);
    background: color-mix(in srgb, var(--theme-terciary, #fab515) 16%, transparent);
}

.caja-ledger-acct-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-width: 0;
}

.caja-ledger-acct-name {
    font-size: 13px;
    color: #334155;
    font-weight: 700;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.caja-ledger-acct-number {
    font-size: 11.5px;
    color: #94a3b8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.caja-ledger-acct-value {
    font-size: 14px;
    color: #0f172a;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

body.dark-only .caja-ledger-panel {
    background: transparent;
    border-color: var(--theme-terciary, #fab515);
    border-top-color: var(--theme-terciary, #fab515);
}

body.dark-only .caja-ledger-header {
    border-bottom-color: var(--theme-terciary, #fab515);
}

body.dark-only .caja-ledger-header-title {
    color: #e2e8f0;
}

body.dark-only .caja-ledger-item:not(:last-child) {
    border-right-color: var(--theme-terciary, #fab515);
}

body.dark-only .caja-ledger-value {
    color: #e2e8f0;
}

body.dark-only .caja-ledger-toggle-row {
    border-top-color: var(--theme-terciary, #fab515);
}

body.dark-only .caja-ledger-acct {
    background: color-mix(in srgb, var(--theme-terciary, #fab515) 10%, transparent);
    border-color: var(--theme-terciary, #fab515);
}

body.dark-only .caja-ledger-acct:hover {
    background: color-mix(in srgb, var(--theme-terciary, #fab515) 16%, transparent);
}

body.dark-only .caja-ledger-acct-name {
    color: #cbd5e1;
}

body.dark-only .caja-ledger-acct-number {
    color: #64748b;
}

body.dark-only .caja-ledger-acct-value {
    color: #e2e8f0;
}

@media (max-width: 991.98px) {
    .caja-ledger-row {
        flex-wrap: wrap;
        row-gap: 16px;
    }

    .caja-ledger-item {
        flex: 1 1 33.333%;
        min-width: 0;
        padding: 0 16px !important;
        border-right: none !important;
    }
}

/* Fecha: 2026-08-24 | Dev: Charlie | Funcionalidad: mismo estilo ledger del panel de caja aplicado a la cuenta corriente */

.cc-ledger-col {
    align-self: flex-start;
}

.cc-ledger-panel {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border: 1px solid var(--theme-terciary, #fab515);
    border-top: 3px solid var(--theme-terciary, #fab515);
    border-radius: 10px;
    padding: 10px 12px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.cc-ledger-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid color-mix(in srgb, var(--theme-terciary, #fab515) 25%, #eef1f6);
}

.cc-ledger-header-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--theme-terciary, #fab515);
    background: color-mix(in srgb, var(--theme-terciary, #fab515) 16%, transparent);
}

.cc-ledger-header-title {
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: 0.01em;
}

.cc-ledger-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cc-ledger-item {
    min-width: 0;
    padding: 8px 10px;
    position: relative;
}

.cc-ledger-item:nth-child(odd) {
    padding-left: 0;
}

.cc-ledger-item:nth-child(even) {
    padding-right: 0;
}

.cc-ledger-item:nth-child(-n+2) {
    padding-top: 0;
}

.cc-ledger-item:nth-child(n+3) {
    padding-bottom: 0;
}

.cc-ledger-item:nth-child(odd) {
    border-right: 1px solid color-mix(in srgb, var(--theme-terciary, #fab515) 25%, #eef1f6);
}

.cc-ledger-item:nth-child(-n+2) {
    border-bottom: 1px solid color-mix(in srgb, var(--theme-terciary, #fab515) 25%, #eef1f6);
}

.cc-ledger-icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    align-items: center;
    justify-content: center;
    font-size: 9.5px;
    margin-bottom: 5px;
}

.cc-ledger-icon--primary {
    color: #3e8ef7;
    background: #eef4ff;
}

.cc-ledger-icon--success {
    color: #16a34a;
    background: #eafaf0;
}

.cc-ledger-icon--danger {
    color: #f33923;
    background: #fdece9;
}

.cc-ledger-icon--warning {
    color: #ff9800;
    background: #fff4e5;
}

.cc-ledger-label {
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 3px;
}

.cc-ledger-value {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cc-ledger-meta {
    font-size: 10.5px;
    color: #94a3b8;
}

body.dark-only .cc-ledger-panel {
    background: linear-gradient(180deg, color-mix(in srgb, var(--theme-terciary, #fab515) 22%, #1a1508) 0%, color-mix(in srgb, var(--theme-terciary, #fab515) 15%, transparent) 100%);
    border-color: var(--theme-terciary, #fab515);
}

body.dark-only .cc-ledger-header {
    border-bottom-color: var(--theme-terciary, #fab515);
}

body.dark-only .cc-ledger-header-title {
    color: #e2e8f0;
}

body.dark-only .cc-ledger-item:nth-child(odd) {
    border-right-color: var(--theme-terciary, #fab515);
}

body.dark-only .cc-ledger-item:nth-child(-n+2) {
    border-bottom-color: var(--theme-terciary, #fab515);
}

body.dark-only .cc-ledger-value {
    color: #e2e8f0;
}

@media (max-width: 767.98px) {
    .cc-ledger-row {
        grid-template-columns: 1fr;
    }

    .cc-ledger-item {
        padding: 10px 0 !important;
        border-right: none !important;
        border-bottom: 1px solid color-mix(in srgb, var(--theme-terciary, #fab515) 25%, #eef1f6);
    }

    .cc-ledger-item:last-child {
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }

    .cc-ledger-item:first-child {
        padding-top: 0 !important;
    }

    .cc-ledger-value {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .cc-ledger-panel {
        margin-top: 18px;
        padding: 12px 14px;
    }

    body.dark-only .cc-ledger-item {
        border-right-color: transparent;
        border-bottom-color: var(--theme-terciary, #fab515);
    }

    body.dark-only .cc-ledger-item:last-child {
        border-bottom-color: transparent;
    }
}

@media (max-width: 767.98px) {
    .caja-ledger-row {
        flex-wrap: wrap;
        row-gap: 16px;
    }

    .caja-ledger-item {
        flex: 1 1 auto;
        width: 100%;
        padding: 14px 0 !important;
        border-right: none !important;
    }

    .caja-ledger-item:not(:last-child) {
        border-bottom: 1px solid color-mix(in srgb, var(--theme-terciary, #fab515) 25%, #eef1f6);
    }

    .caja-ledger-item:first-child {
        padding-top: 0 !important;
    }

    .caja-ledger-item:last-child {
        padding-bottom: 0 !important;
    }

    .caja-ledger-value {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .caja-ledger-panel {
        margin-top: 18px;
        padding: 18px 16px;
    }

    body.dark-only .caja-ledger-item:not(:last-child) {
        border-bottom-color: var(--theme-terciary, #fab515);
    }
}

.rowCuentaContableMatch>td {
    background-color: rgba(255, 193, 7, 0.18);
}

.reporteVenta-tablaDetalle {
    border: 1px solid #dee2e6;
}

body.dark-only .reporteVenta-tablaDetalle {
    border: 1px solid #3a3b50;
}

div.stockDisponibleContent {
    margin: 8px !important;
}

/*
 * Fecha: 2026-08-31
 * Dev: Charlie
 * Funcionalidad: Separador visual entre métodos de pago (comprobante por método) en cuenta corriente de proveedor
 */
.contentItemMetodoPago .itemMetodoPago {
    padding: 8px 10px 8px;
    margin-bottom: 0px;
    border-bottom: 1px solid #dee2e6;
}

.contentItemMetodoPago .itemMetodoPago:first-child {
    padding-top: 0;
}

.contentItemMetodoPago .itemMetodoPago:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Padding solo en las CC de cliente/proveedor (.contentPagoGlobal); la venta conserva el suyo */
.contentPagoGlobal .contentItemMetodoPago .itemMetodoPago,
.contentPagoGlobal .contentItemMetodoPago .itemMetodoPago:first-child,
.contentPagoGlobal .contentItemMetodoPago .itemMetodoPago:last-child {
    padding: 0 !important;
}

body.dark-only .contentItemMetodoPago .itemMetodoPago {
    border-bottom-color: #2e3050;
}

/*
 * Fecha: 2026-08-31
 * Dev: Charlie
 * Funcionalidad: Separador visual sobre la Observación general del pago en cuenta corriente de proveedor
 */
.pago-observacionGeneral-col {
    border-top: 1px solid #dee2e6;
    margin-top: 14px;
    padding-top: 14px;
}

body.dark-only .pago-observacionGeneral-col {
    border-top-color: #2e3050;
}

.asientoAnuladoBanner {
    background-color: #f8d7da;
    color: #b02a37;
    border: 2px solid #b02a37;
    border-radius: 6px;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-align: center;
    text-transform: uppercase;
    padding: 14px 16px;
    margin-bottom: 20px;
}

body.dark-only .asientoAnuladoBanner {
    background-color: #2c1215;
    color: #f1959c;
    border-color: #f1959c;
}

tr.asientoAnulado td {
    background-color: #edbab1 !important;
}

body.dark-only tr.asientoAnulado td {
    background-color: #f14040 !important;
}

.swal-opciones .swal-button {
    border: none;
    text-shadow: none;
}

.swal-opciones .swal-button--cancel,
body.dark-only .swal-opciones .swal-button--cancel {
    background-color: var(--theme-secondary) !important;
    color: #fff !important;
}

.swal-opciones .swal-btn-rojo {
    background-color: var(--theme-default) !important;
    color: #fff !important;
}

.swal-opciones .swal-btn-amarillo {
    background-color: var(--theme-terciary) !important;
    color: var(--theme-secondary) !important;
}

.swal-opciones .swal-btn-teal {
    background-color: var(--estado-facturado) !important;
    color: #fff !important;
}

.swal-opciones .swal-button--cancel:hover,
.swal-opciones .swal-button--cancel:active,
.swal-opciones .swal-button--cancel:focus,
.swal-opciones .swal-btn-rojo:hover,
.swal-opciones .swal-btn-rojo:active,
.swal-opciones .swal-btn-rojo:focus,
.swal-opciones .swal-btn-amarillo:hover,
.swal-opciones .swal-btn-amarillo:active,
.swal-opciones .swal-btn-amarillo:focus,
.swal-opciones .swal-btn-teal:hover,
.swal-opciones .swal-btn-teal:active,
.swal-opciones .swal-btn-teal:focus {
    filter: brightness(0.88);
    box-shadow: none !important;
}

/* modal Cierre de caja: modernizado y alineado al panel resumen tipo ledger */

#modalCierreCaja .modal-content {
    border: none;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
}

#modalCierreCaja .modal-header {
    align-items: center;
    padding: 15px 22px;
    border-bottom: 3px solid var(--theme-terciary, #fab515);
}

#modalCierreCaja .modal-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 16px;
    font-weight: 700;
}

#modalCierreCaja .modal-title i {
    font-size: 13px;
    color: var(--theme-terciary, #fab515) !important;
}

#modalCierreCaja .modal-body.cierre-caja-body {
    padding: 22px 24px;
    background: #f6f7f9;
}

#modalCierreCaja .cierre-caja-intro {
    margin: 0 0 18px;
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.5;
}

#modalCierreCaja .modal-footer {
    padding: 13px 22px;
    border-top: 1px solid #e6e9ef;
    background: #ffffff;
}

#modalCierreCaja .modal-footer .btn i {
    margin-right: 6px;
}

.cierre-caja-resumen {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.cierre-caja-card {
    background: #ffffff;
    border: 1px solid color-mix(in srgb, var(--theme-terciary, #fab515) 30%, #e6e9ef);
    border-top: 3px solid var(--theme-terciary, #fab515);
    border-radius: 12px;
    padding: 16px 18px;
}

.cierre-caja-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef1f6;
}

.cierre-caja-card-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--theme-terciary, #fab515);
    background: color-mix(in srgb, var(--theme-terciary, #fab515) 16%, transparent);
}

.cierre-caja-card-label {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 3px;
}

.cierre-caja-card-total {
    font-size: 21px;
    font-weight: 800;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.cierre-caja-desglose {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cierre-caja-desglose li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0;
    font-size: 13px;
}

.cierre-caja-desglose li+li {
    border-top: 1px dashed #eef1f6;
}

.cierre-caja-desglose-metodo {
    color: #64748b;
}

.cierre-caja-desglose-monto {
    color: #334155;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.cierre-caja-vacio {
    padding: 16px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    color: #64748b;
    font-size: 13px;
    text-align: center;
}

.cierre-caja-obs label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.cierre-caja-obs-opcional {
    font-weight: 500;
    color: #94a3b8;
}

.cierre-caja-obs textarea.form-control {
    border-radius: 10px;
    resize: vertical;
    min-height: 56px;
}

body.dark-only #modalCierreCaja .modal-content {
    background: #1e1f2b;
}

body.dark-only #modalCierreCaja .modal-body.cierre-caja-body {
    background: #1a1b25;
}

body.dark-only #modalCierreCaja .modal-footer {
    background: #1e1f2b;
    border-top-color: #3a3b50;
}

body.dark-only .cierre-caja-card {
    background: #252636;
    border-color: #3a3b50;
    border-top-color: var(--theme-terciary, #fab515);
}

body.dark-only .cierre-caja-card-head {
    border-bottom-color: #3a3b50;
}

body.dark-only .cierre-caja-card-total {
    color: #e2e8f0;
}

body.dark-only .cierre-caja-desglose li+li {
    border-top-color: #3a3b50;
}

body.dark-only .cierre-caja-desglose-monto {
    color: #cbd5e1;
}

body.dark-only .cierre-caja-obs label {
    color: #cbd5e1;
}

body.dark-only .cierre-caja-vacio {
    border-color: #3a3b50;
    color: #9fa8c0;
}

.form-check-input,
.form-check-label {
    cursor: pointer;
}

input[name="soloPendientes"].form-check-input {
    margin-right: 10px !important;
}

#filtrosReporteEgresoInsumos.form-inline .mb-3.row {
    align-items: flex-start;
}

.reporteSucursalOculta {
    display: none !important;
}

.form-check-input:disabled {
    pointer-events: auto !important;
    cursor: not-allowed !important;
}

.form-check-input:disabled~.form-check-label {
    cursor: not-allowed !important;
}

.table-centroCosto .rowCentroCostoPadre>td {
    background-color: rgba(42, 47, 67, 0.05);
}

body.dark-only .table-centroCosto .rowCentroCostoPadre>td {
    background-color: rgba(255, 255, 255, 0.06);
}

.table-centroCosto .rowCentroCostoMatch>td {
    background-color: rgba(255, 193, 7, 0.18);
}

.tableAsientoDetalle .montoDebe,
.tableAsientoDetalle .montoHaber {
    text-align: right;
}

.tableAsientoDetalle .iconQuitarFila {
    cursor: pointer;
    color: var(--theme-default);
}

.tableAsientoDetalle input[readonly] {
    background-color: rgba(0, 0, 0, 0.04);
}

body.dark-only .tableAsientoDetalle input[readonly] {
    background-color: rgba(255, 255, 255, 0.06);
}

tr.asientoBorrador td {
    background-color: rgba(255, 193, 7, 0.10);
}

body.dark-only tr.asientoBorrador td {
    background-color: rgba(255, 193, 7, 0.14);
}

/* Fecha: 2026-09-16 */
/* Dev: Charlie */
/* Funcionalidad: el textarea de Observaciones de Personal queda forzado a 30px por .form-control; se libera la altura para que respete el rows="4". */
#formPersonal textarea.form-control {
    height: auto;
}

.factura-datos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px 24px;
}

.factura-datos-grid>span {
    display: block;
}

.factura-datos-grid .form-control {
    display: inline-block;
    width: auto;
    max-width: 100%;
}

.tableDetalle th,
.tableDetalle td {
    padding: 8px 10px;
    vertical-align: middle;
}

.tableDetalle th.col-articulo,
.tableDetalle td.col-articulo {
    white-space: normal;
    word-break: break-word;
    min-width: 150px;
}

.tableDetalle th.col-imputacion {
    min-width: 140px;
}

.tableDetalle .celda-imputacion {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 130px;
}

.tableDetalle .celda-imputacion select.form-control {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: auto;
    padding: 4px 8px;
    font-size: 13px;
}

.tableDetalle .celda-imputacion .iconGuardarCentroCosto,
.tableDetalle .celda-imputacion .iconGuardarCuentaContable {
    flex: 0 0 auto;
    cursor: pointer;
    color: var(--theme-default);
    font-size: 15px;
}

.tableDetalle .celda-imputacion .iconGuardarCentroCosto:hover,
.tableDetalle .celda-imputacion .iconGuardarCuentaContable:hover {
    opacity: 0.75;
}

@media (max-width: 1366px) {
    .factura-datos-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 6px 16px;
        font-size: 13px;
    }

    .tableDetalle th,
    .tableDetalle td {
        padding: 5px 7px;
        font-size: 12.5px;
    }

    .tableDetalle th.col-articulo,
    .tableDetalle td.col-articulo {
        min-width: 110px;
    }

    .tableDetalle th.col-imputacion {
        min-width: 105px;
    }

    .tableDetalle .celda-imputacion {
        min-width: 95px;
        gap: 4px;
    }

    .tableDetalle .celda-imputacion select.form-control {
        padding: 3px 5px;
        font-size: 12px;
    }

    .tableDetalle .celda-imputacion .iconGuardarCentroCosto,
    .tableDetalle .celda-imputacion .iconGuardarCuentaContable {
        font-size: 13px;
    }
}

#modalComprobantePago .modal-content {
    border: none;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
}

#modalComprobantePago .modal-header {
    align-items: center;
    padding: 15px 22px;
    border-bottom: 3px solid var(--theme-terciary, #fab515);
}

#modalComprobantePago .modal-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 16px;
    font-weight: 700;
}

#modalComprobantePago .modal-title i {
    font-size: 13px;
    color: var(--theme-terciary, #fab515) !important;
}

#modalComprobantePago .comprobantePagoVisor {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 16px;
    background: #f6f7f9;
}

#modalComprobantePago .comprobantePagoVisor img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

#modalComprobantePago .comprobantePagoVisor iframe {
    width: 100%;
    height: 65vh;
    border: 0;
    border-radius: 6px;
    background: #ffffff;
}

#modalComprobantePago .modal-footer {
    padding: 13px 22px;
    border-top: 1px solid #e6e9ef;
    background: #ffffff;
}

#modalComprobantePago .modal-footer .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 150px;
    min-height: 30px;
    max-height: 30px;
    padding: 0 15px;
    white-space: nowrap;
}

.table-precioProveedores th.colCostoDolares {
    width: 16%;
    text-align: center;
}


.card_adjust {
    margin-left: -15px;
    margin-right: -15px;
    padding: 10 0;
}

.factura-datos-grid .periodoIva-dato select.form-control {
    height: auto;
    padding: 4px 8px;
    font-size: 13px;
}

.factura-datos-grid .periodoIva-dato .iconGuardarPeriodoIva {
    cursor: pointer;
    color: var(--theme-default);
    font-size: 15px;
    margin-left: 6px;
}

.factura-datos-grid .periodoIva-dato .iconGuardarPeriodoIva:hover {
    opacity: 0.75;
}

.table-caja tr.rowCaja.cajaBalanceCierre>td {
    background-color: rgba(115, 102, 255, 0.06);
    font-style: italic;
}

.formCajaGrid .control-label {
    display: block;
    width: 100%;
    text-align: left;
    white-space: normal;
    margin-bottom: 0.35rem;
}

@media (max-width: 575.98px) {
    .formCajaGrid button[type="submit"] {
        width: 100%;
    }
}

/* Fecha: 2026-09-25 | Dev: Charlie | Funcionalidad: texto auxiliar (razon social / dias para vencer) en Listado de deuda a proveedores */
.proveedorDeudaDias {
    font-size: 11px;
    color: #777;
}

/* Fecha: 2026-09-29 | Dev: Charlie | Funcionalidad: etiqueta "Cuenta de <sucursal padre>" en cuentas bancarias heredadas del panel de caja */
.caja-ledger-acct-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 700;
    color: #475569;
    background: #e2e8f0;
    border-radius: 8px;
    vertical-align: middle;
}

body.dark-only .caja-ledger-acct-badge {
    color: #cbd5e1;
    background: #334155;
}

.comprobanteConQuitar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.comprobanteConQuitar>label {
    flex: 0 0 100%;
}

.comprobanteConQuitar>input[type="file"] {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
}

.comprobanteConQuitar>.quitarComprobanteSeleccionado {
    flex: 0 0 auto;
    line-height: 1.5;
}

/*detalle de operaciones vinculadas y motivo en el modal de rechazo de cheque */
.rechazoChequeDetalle {
    text-align: left;
}

.rechazoChequeDetalle h5 {
    margin: 12px 0 4px;
    font-weight: 700;
}

.rechazoChequeDetalle ul {
    margin: 0;
    padding-left: 18px;
}

.rechazoChequeDetalle li {
    margin-bottom: 6px;
}

.rechazoChequeDetalle label {
    display: block;
    margin-top: 10px;
    font-weight: 600;
}

.rechazoChequeDetalle textarea {
    width: 100%;
}


.print-doc__anulada {
    margin: 6px 0 10px;
    padding: 8px 12px;
    border: 3px solid #c62828;
    color: #c62828;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.cc-stack-wrap {
    container-type: inline-size;
}

@container (max-width: 760px) {
    .cc-stack-table thead {
        display: none;
    }

    .cc-stack-table,
    .cc-stack-table tbody {
        display: block;
        width: 100%;
    }

    .cc-stack-table tbody tr {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 4px 12px;
        padding: 8px 10px;
        border-bottom: 1px solid #eef1f6;
    }

    .cc-stack-table tbody td,
    .cc-stack-table tbody td.nowrap,
    .table-pagos-a-cuenta.cc-stack-table td.cc-obs-cell {
        display: block;
        border: 0;
        padding: 0;
        max-width: none;
        min-width: 0;
        white-space: normal !important;
        overflow-wrap: anywhere;
        text-align: left !important;
    }

    .cc-stack-table tbody td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-size: 10.5px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        color: #64748b;
    }

    .cc-stack-table tbody td.listActions {
        grid-column: 1 / -1;
        text-align: right !important;
        width: auto;
    }
}

body.dark-only .cc-stack-table tbody tr {
    border-bottom-color: #374151;
}

body.dark-only .cc-stack-table tbody td[data-label]::before {
    color: #94a3b8;
}

#recordatoriosContent .recordatorioItem {
    --rec-accent: #28a745;
    --rec-badge-bg: rgba(40, 167, 69, 0.14);
    --rec-badge-border: rgba(40, 167, 69, 0.35);
    --rec-badge-text: #1e7e34;
    padding: 10px 12px 10px 16px;
    margin-bottom: 10px;
    background: #f8fafc;
    border: 1px solid #eef1f6;
    border-left: 4px solid var(--rec-accent);
    border-radius: var(--dust-radius-sm, 8px);
    transition: box-shadow var(--dust-transition, 0.22s ease);
}

#recordatoriosContent .recordatorioItem:last-child {
    margin-bottom: 0;
}

#recordatoriosContent .recordatorioItem:hover {
    box-shadow: var(--dust-shadow-md, 0 4px 14px rgba(31, 47, 62, 0.10));
}

#recordatoriosContent .recordatorioItem--fecha {
    --rec-accent: var(--theme-terciary, #fab515);
    --rec-badge-bg: rgba(250, 181, 21, 0.22);
    --rec-badge-border: rgba(250, 181, 21, 0.6);
    --rec-badge-text: #8a5a00;
}

#recordatoriosContent .recordatorioItem--mensual {
    --rec-accent: var(--theme-default, #e41b12);
    --rec-badge-bg: rgba(228, 27, 18, 0.10);
    --rec-badge-border: rgba(228, 27, 18, 0.35);
    --rec-badge-text: #b3150e;
}

#recordatoriosContent .recordatorioHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

#recordatoriosContent .recordatorioTitle {
    font-size: 13px;
    font-weight: 600;
    color: var(--dust-text-muted, #5a6b7d);
}

#recordatoriosContent .recordatorioBadge {
    display: inline-block;
    margin: 0 4px;
    padding: 1px 10px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--rec-badge-text);
    background: var(--rec-badge-bg);
    border: 1px solid var(--rec-badge-border);
    border-radius: var(--dust-radius-pill, 999px);
}

#recordatoriosContent .recordatorioTexto {
    font-size: 14px;
    color: var(--dust-text, #1f2f3e);
    overflow-wrap: anywhere;
}

#recordatoriosContent .recordatorioItem .remove2Reco {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 13px;
    color: #94a3b8;
    border-radius: 50%;
    cursor: pointer;
    transition: background var(--dust-transition, 0.22s ease), color var(--dust-transition, 0.22s ease);
}

#recordatoriosContent .recordatorioItem .remove2Reco:hover {
    color: var(--theme-default, #e41b12);
    background: rgba(228, 27, 18, 0.10);
}

body.dark-only #recordatoriosContent .recordatorioItem {
    background: var(--dust-surface-alt, #121615);
    border-color: var(--dust-border-strong, rgba(255, 255, 255, 0.14));
    border-left-color: var(--rec-accent);
}

body.dark-only #recordatoriosContent .recordatorioItem--hoy {
    --rec-badge-text: #5fd37e;
}

body.dark-only #recordatoriosContent .recordatorioItem--fecha {
    --rec-badge-text: #fab515;
}

body.dark-only #recordatoriosContent .recordatorioItem--mensual {
    --rec-badge-text: #ff7b73;
}

.print-doc__anulada {
    margin: 6px 0 10px;
    padding: 8px 12px;
    border: 3px solid #c62828;
    color: #c62828;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.cc-stack-wrap {
    container-type: inline-size;
}

@container (max-width: 760px) {
    .cc-stack-table thead {
        display: none;
    }

    .cc-stack-table,
    .cc-stack-table tbody {
        display: block;
        width: 100%;
    }

    .cc-stack-table tbody tr {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 4px 12px;
        padding: 8px 10px;
        border-bottom: 1px solid #eef1f6;
    }

    .cc-stack-table tbody td,
    .cc-stack-table tbody td.nowrap,
    .table-pagos-a-cuenta.cc-stack-table td.cc-obs-cell {
        display: block;
        border: 0;
        padding: 0;
        max-width: none;
        min-width: 0;
        white-space: normal !important;
        overflow-wrap: anywhere;
        text-align: left !important;
    }

    .cc-stack-table tbody td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-size: 10.5px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        color: #64748b;
    }

    .cc-stack-table tbody td.listActions {
        grid-column: 1 / -1;
        text-align: right !important;
        width: auto;
    }
}

.devolucion-dato {
    padding-right: 50px !important;
}

th.sortNum,
th.sortText,
th.sortDate,
th.sortMoney {
    white-space: nowrap;
}

th.sortNum .sort-arrows .sort-arrow,
th.sortText .sort-arrows .sort-arrow,
th.sortDate .sort-arrows .sort-arrow,
th.sortMoney .sort-arrows .sort-arrow {
    font-size: 11px;
    padding: 0 1px;
    color: inherit;
}

th.sortNum .sort-arrows .sort-arrow.active,
th.sortText .sort-arrows .sort-arrow.active,
th.sortDate .sort-arrows .sort-arrow.active,
th.sortMoney .sort-arrows .sort-arrow.active {
    color: var(--theme-default);
}

.calendarioMensual .fc-toolbar-title {
    font-size: 1.1rem;
    text-transform: capitalize;
}

.calendarioMensual .fc-event {
    cursor: default;
}

.calendarioMensual .fc-event-title {
    text-overflow: ellipsis;
}

.calendarioMensual .fc-event-main-frame>i {
    flex-shrink: 0;
    align-self: center;
}

/* commonView.js agrega una fila "No hay elementos" a toda tabla sin tbody; FullCalendar arma tablas propias */
.calendarioMensual .rowNoElements {
    display: none;
}

/* los switches del encabezado heredan estilos globales de .form-switch (float, margen y padding) que los superponen con el label */
.cardCalendarioMensual .card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.5rem;
}

.cardCalendarioMensual .card-header .form-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 0;
    margin: 0;
}

.cardCalendarioMensual .card-header .form-switch .form-check-input {
    float: none;
    flex-shrink: 0;
    margin: 0 !important;
}

.cardCalendarioMensual .card-header .form-switch .form-check-label {
    margin: 0;
    cursor: pointer;
}

.cardCalendarioMensual .calendarioMensualSelector {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.cardCalendarioMensual .calendarioMensualSelector select.form-control {
    width: auto;
}

/* separacion entre los botones de la barra (anterior / siguiente / hoy), que FullCalendar pega entre si */
.calendarioMensual .fc-toolbar-chunk {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.calendarioMensual .fc-toolbar-chunk>* {
    margin-left: 0 !important;
}

.calendarioMensual .fc-button-group {
    gap: 0.5rem;
}

.calendarioMensual .fc-button-group>.fc-button {
    margin-left: 0 !important;
    border-radius: 0.25rem !important;
}

/* color por tipo de evento (clase calendarioEvento--{id de la fuente}) */
.calendarioMensual .calendarioEvento--recordatorios {
    --fc-event-bg-color: #d9822b;
    --fc-event-border-color: #d9822b;
}

.calendarioMensual .calendarioEvento--altas {
    --fc-event-bg-color: #2e8b57;
    --fc-event-border-color: #2e8b57;
}

.calendarioMensual .calendarioEvento--bajas {
    --fc-event-bg-color: #b02a2a;
    --fc-event-border-color: #b02a2a;
}

body.dark-only .calendarioMensual {
    --fc-page-bg-color: transparent;
    --fc-neutral-bg-color: rgba(255, 255, 255, 0.05);
    --fc-border-color: rgba(255, 255, 255, 0.15);
    --fc-today-bg-color: rgba(255, 255, 255, 0.1);
}

/* campana de recordatorios de hoy en la barra superior */
.notifRecordatorios {
    position: relative;
}

.notifRecordatorios .notifBoton {
    position: relative;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: inherit;
    font-size: 20px;
    line-height: 1;
}

.notifRecordatorios .notifBoton:hover,
.notifRecordatorios .notifBoton[aria-expanded="true"] {
    background: rgba(0, 0, 0, 0.06);
}

.notifRecordatorios .notifBoton:focus-visible {
    outline: 3px solid var(--theme-terciary);
    outline-offset: 2px;
}

.notifRecordatorios .notifBadge {
    position: absolute;
    top: -2px;
    right: -3px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--theme-default);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 0 0 2px #fff;
}

.notifRecordatorios .notifDrop {
    position: absolute;
    top: 46px;
    right: -70px;
    width: 330px;
    max-width: calc(100vw - 16px);
    background: #fff;
    color: #1a1c1f;
    border: 1px solid #e6e8ec;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(3, 4, 5, 0.18);
    z-index: 20;
    overflow: hidden;
    text-align: left;
}

.notifRecordatorios .notifHead {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid #eceef1;
}

.notifRecordatorios .notifTitulo {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: inherit;
}

.notifRecordatorios .notifFecha {
    font-size: 12px;
    color: #5d636b;
    white-space: nowrap;
}

.notifRecordatorios .notifLista {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 320px;
    overflow-y: auto;
}

.notifRecordatorios .notifItem {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f2f5;
    cursor: pointer;
}

.notifRecordatorios .notifItem:hover {
    background: #f6f7f9;
}

.notifRecordatorios .notifPunto {
    width: 8px;
    height: 8px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--theme-default);
    flex-shrink: 0;
}

.notifRecordatorios .notifCuerpo {
    min-width: 0;
}

.notifRecordatorios .notifTexto {
    margin: 0;
    font-weight: 600;
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow-wrap: anywhere;
}

.notifRecordatorios .notifMeta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
    font-size: 12px;
    color: #5d636b;
}

.notifRecordatorios .notifChip {
    padding: 1px 6px;
    border-radius: 4px;
    background: #fdecea;
    color: #a3130c;
    font-size: 11px;
    font-weight: 700;
}

.notifRecordatorios .notifVacio {
    padding: 28px 16px;
    text-align: center;
    font-weight: 600;
    color: #5d636b;
}

.notifRecordatorios .notifVerTodos {
    display: block;
    width: 100%;
    padding: 11px 16px;
    border: 0;
    border-top: 1px solid #eceef1;
    background: #fafbfc;
    color: var(--theme-default);
    font-weight: 700;
    cursor: pointer;
}

.notifRecordatorios .notifVerTodos:hover {
    background: #f3f4f6;
}

body.dark-only .notifRecordatorios .notifBoton:hover,
body.dark-only .notifRecordatorios .notifBoton[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-only .notifRecordatorios .notifBadge {
    box-shadow: 0 0 0 2px #171818;
}

body.dark-only .notifRecordatorios .notifDrop {
    background: #1d2026;
    color: #e9ebee;
    border-color: #2c3037;
}

body.dark-only .notifRecordatorios .notifHead,
body.dark-only .notifRecordatorios .notifItem,
body.dark-only .notifRecordatorios .notifVerTodos {
    border-color: #2c3037;
}

body.dark-only .notifRecordatorios .notifItem:hover,
body.dark-only .notifRecordatorios .notifVerTodos:hover {
    background: #252932;
}

body.dark-only .notifRecordatorios .notifVerTodos {
    background: #1d2026;
}

body.dark-only .notifRecordatorios .notifFecha,
body.dark-only .notifRecordatorios .notifMeta,
body.dark-only .notifRecordatorios .notifVacio {
    color: #9aa1ab;
}

body.dark-only .notifRecordatorios .notifChip {
    background: #3a1b19;
    color: #ff9a94;
}

@media (max-width: 575px) {
    .notifRecordatorios .notifDrop {
        position: fixed;
        top: 64px;
        left: 8px;
        right: 8px;
        width: auto;
    }
}

body.dark-only select {
    color-scheme: dark;
}

body.dark-only select option,
body.dark-only select optgroup {
    background-color: #121313;
    color: #fff;
}

body.dark-only select option:disabled {
    color: #8a8f94;
}

#modalRecordatorio .recordatorioSwitch {
    display: flex;
    align-items: center;
    gap: 10px;
}

#modalRecordatorio .recordatorioSwitch label {
    margin-bottom: 0;
    cursor: pointer;
}

#modalRecordatorio .recordatorioSwitch .form-switch {
    padding-left: 0;
    display: flex;
    align-items: center;
}

#modalRecordatorio .recordatorioSwitch .form-switch .form-check-input {
    float: none;
    margin: 0 !important;
    flex-shrink: 0;
    cursor: pointer;
}

#modalRecordatorio .control-label {
    margin-bottom: 0;
}

#modalRecordatorio textarea.form-control {
    height: auto;
    resize: vertical;
}

#modalRecordatorio .form-control {
    min-width: 0;
    max-width: 100%;
}

#modalRecordatorio .recordatorioSwitch label {
    white-space: normal;
}

@media (min-width: 992px) {
    #modalRecordatorio .recordatorioLabelTextarea {
        padding-top: 5px;
    }

    #modalRecordatorio label[for="recordatorio_destino"],
    #modalRecordatorio label[for="recordatorio_sucursal"] {
        padding-top: 3px;
    }
}

@media (max-width: 575.98px) {

    #modalRecordatorio .modal-body,
    #modalRecordatorio .modal-header,
    #modalRecordatorio .modal-footer {
        padding-left: 12px;
        padding-right: 12px;
    }

    #modalRecordatorio .modal-footer {
        flex-wrap: nowrap;
    }

    #modalRecordatorio .modal-footer .btn {
        flex: 1 1 0;
    }
}

#modalRecordatorioDetalle .recordatorioDetalleTexto {
    font-size: 15px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

#modalRecordatorioDetalle .modal-title {
    padding-right: 40px;
    overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
    #modalRecordatorioDetalle .modal-title {
        font-size: 18px;
    }

    #modalRecordatorioDetalle .modal-body,
    #modalRecordatorioDetalle .modal-header,
    #modalRecordatorioDetalle .modal-footer {
        padding-left: 12px;
        padding-right: 12px;
    }

    #modalRecordatorioDetalle .modal-footer .btn {
        flex: 1 1 0;
    }
}

#recordatoriosContent .recordatorioTexto {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#recordatoriosContent .recordatorioTexto--cortado {
    cursor: pointer;
}

#recordatoriosContent .recordatorioTexto--cortado:hover {
    text-decoration: underline dotted;
}

.nc-pendiente-cae {
    color: var(--estado-porcobrar);
    font-weight: bold;
    font-size: 0.85em;
}


.presupuestoMailDestino .form-control {
    min-width: 0;
}

.permiso-modulo-header {
    padding: 8px !important;
}

:is(#modalRecordatorio, #modalRecordatorioDestino) .select2-container {
    width: 100% !important;
    max-width: 100%;
}

/* style.css pone width: unset a todo .select2-container--open con body.modal-open: el campo se encogía al abrir la lista */
body.modal-open :is(#modalRecordatorio, #modalRecordatorioDestino) .select2.select2-container--open {
    width: 100% !important;
}

:is(#modalRecordatorio, #modalRecordatorioDestino) .select2-container--default .select2-selection--multiple {
    min-height: 30px;
    padding: 1px 28px 1px 4px;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: var(--bs-border-radius, 0.375rem);
    background-color: #fff;
    cursor: text;
    position: relative;
}

:is(#modalRecordatorio, #modalRecordatorioDestino) .select2-container--default .select2-selection--multiple::after {
    content: "\f107";
    font-family: "Font Awesome 5 Free", FontAwesome;
    font-weight: 900;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
}

:is(#modalRecordatorio, #modalRecordatorioDestino) .select2-container--default.select2-container--focus .select2-selection--multiple,
:is(#modalRecordatorio, #modalRecordatorioDestino) .select2-container--default.select2-container--open .select2-selection--multiple {
    border-color: var(--theme-default);
    box-shadow: 0 0 0 0.15rem rgba(43, 95, 96, 0.2);
    outline: 0;
}

:is(#modalRecordatorio, #modalRecordatorioDestino) .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px;
    padding: 0;
    margin: 0;
    line-height: normal;
}

:is(#modalRecordatorio, #modalRecordatorioDestino) .select2-container--default .select2-selection--multiple .select2-selection__choice {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    margin: 2px 0;
    padding: 1px 8px;
    border: 1px solid var(--theme-default);
    border-radius: 12px;
    background-color: var(--theme-default);
    color: #fff;
    font-size: 12px;
    line-height: 18px;
    white-space: normal;
    word-break: break-word;
}

:is(#modalRecordatorio, #modalRecordatorioDestino) .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    order: 2;
    margin: 0 0 0 6px;
    color: #fff;
    opacity: 0.8;
    font-weight: bold;
}

:is(#modalRecordatorio, #modalRecordatorioDestino) .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #fff;
    opacity: 1;
}

:is(#modalRecordatorio, #modalRecordatorioDestino) .select2-container--default .select2-search--inline {
    flex: 1 1 120px;
    min-width: 120px;
}

:is(#modalRecordatorio, #modalRecordatorioDestino) .select2-container--default .select2-search--inline .select2-search__field {
    width: 100% !important;
    min-width: 0;
    height: 24px;
    margin: 0;
    padding: 0 4px;
    font-size: 14px;
    background: transparent;
}

:is(#modalRecordatorio, #modalRecordatorioDestino) .select2-container--default .select2-search--inline .select2-search__field::placeholder {
    color: #6c757d;
}

:is(#modalRecordatorio, #modalRecordatorioDestino) .select2-dropdown {
    border: 1px solid var(--theme-default);
    border-radius: var(--bs-border-radius, 0.375rem);
    overflow: hidden;
    z-index: 1076;
}

:is(#modalRecordatorio, #modalRecordatorioDestino) .select2-container--default .select2-results>.select2-results__options {
    max-height: 220px;
    overflow-y: auto;
}

:is(#modalRecordatorio, #modalRecordatorioDestino) .select2-results__option {
    padding: 6px 10px;
    font-size: 14px;
    white-space: normal;
    word-break: break-word;
}

:is(#modalRecordatorio, #modalRecordatorioDestino) .select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: rgba(43, 95, 96, 0.12);
}

:is(#modalRecordatorio, #modalRecordatorioDestino) .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--theme-default);
    color: #fff;
}

@media (max-width: 575.98px) {
    :is(#modalRecordatorio, #modalRecordatorioDestino) .select2-container--default .select2-results>.select2-results__options {
        max-height: 40vh;
    }

    :is(#modalRecordatorio, #modalRecordatorioDestino) .select2-container--default .select2-selection--multiple .select2-selection__choice {
        font-size: 13px;
        line-height: 20px;
    }

    :is(#modalRecordatorio, #modalRecordatorioDestino) .select2-results__option {
        padding: 9px 12px;
    }
}

body.dark-only :is(#modalRecordatorio, #modalRecordatorioDestino) .select2-container--default .select2-selection--multiple {
    background-color: #121313;
    border: 1px solid #afb3b3 !important;
}

body.dark-only :is(#modalRecordatorio, #modalRecordatorioDestino) .select2-container--default.select2-container--focus .select2-selection--multiple,
body.dark-only :is(#modalRecordatorio, #modalRecordatorioDestino) .select2-container--default.select2-container--open .select2-selection--multiple {
    border-color: var(--theme-default) !important;
}

body.dark-only :is(#modalRecordatorio, #modalRecordatorioDestino) .select2-container--default .select2-search--inline .select2-search__field,
body.dark-only :is(#modalRecordatorio, #modalRecordatorioDestino) .select2-container--default .select2-search--inline .select2-search__field::placeholder {
    color: #fff;
}

body.dark-only :is(#modalRecordatorio, #modalRecordatorioDestino) .select2-container--default .select2-results__option {
    color: #fff;
}

body.dark-only :is(#modalRecordatorio, #modalRecordatorioDestino) .select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: #1d2626 !important;
}

#recordatoriosContent .recordatorioAcciones {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

#recordatoriosContent .recordatorioItem .editDestinoReco,
#recordatoriosContent .recordatorioItem .verHistorial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 13px;
    color: #94a3b8;
    border-radius: 50%;
    cursor: pointer;
    transition: background var(--dust-transition, 0.22s ease), color var(--dust-transition, 0.22s ease);
}

#recordatoriosContent .recordatorioItem .editDestinoReco:hover,
#recordatoriosContent .recordatorioItem .verHistorial:hover {
    color: var(--theme-default, #2b5f60);
    background: rgba(43, 95, 96, 0.10);
}

#recordatoriosContent .recordatorioDestino {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 12px;
    color: var(--dust-text-muted, #5a6b7d);
}

#recordatoriosContent .recordatorioDestinoBadge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 8px;
    font-weight: 600;
    background: rgba(100, 116, 139, 0.10);
    border: 1px solid rgba(100, 116, 139, 0.25);
    border-radius: var(--dust-radius-pill, 999px);
    white-space: nowrap;
}

#recordatoriosContent .recordatorioDestinoNombres {
    min-width: 0;
    overflow-wrap: anywhere;
}

#modalRecordatorioDestino .recordatorioDestinoInfo {
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #eef1f6;
    border-radius: var(--dust-radius-sm, 8px);
}

#modalRecordatorioDestino .recordatorioDestinoFecha {
    font-size: 12px;
    font-weight: 700;
    color: var(--dust-text-muted, #5a6b7d);
}

#modalRecordatorioDestino .recordatorioDestinoTexto {
    margin-top: 4px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    max-height: 120px;
    overflow-y: auto;
}

#modalRecordatorioDestino .control-label {
    margin-bottom: 0;
}

#modalRecordatorioDestino .recordatorioDestinoCambios ul {
    padding-left: 18px;
}

body.dark-only #recordatoriosContent .recordatorioDestinoBadge {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
}

body.dark-only #modalRecordatorioDestino .recordatorioDestinoInfo {
    background: var(--dust-surface-alt, #121615);
    border-color: var(--dust-border-strong, rgba(255, 255, 255, 0.14));
}

.formCajaGrid .row.form-switch,
.aventa-opciones-card .row.form-switch {
    padding-left: 0;
    align-items: center;
}

.formCajaGrid .row.form-switch .control-label {
    width: auto;
    margin-bottom: 0;
}

.proveedorFacturaCabecera .inputPuntoVenta {
    flex: 0 0 90px;
}

.proveedorFacturaFechas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.proveedorFacturaFechas .input-group {
    flex: 1 1 215px;
}

.proveedorFacturaFechas .input-group-text {
    min-width: 104px;
}

/* El input-group-text del tema es más alto que el input y sobresale por debajo */
.proveedorFacturaFechas .input-group-text,
.proveedorFacturaNumero .input-group-text {
    font-size: 14px;
    padding-top: 0;
    padding-bottom: 0;
}

.proveedorFacturaCabecera .row.form-switch {
    padding-left: 0;
}

.proveedorFacturaCabecera .campoSwitch {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.proveedorFacturaCabecera .campoSwitch .form-check-input {
    float: none;
    flex-shrink: 0;
}

@media (min-width: 1200px) {
    .proveedorFacturaCabecera .control-label {
        flex: 0 0 175px;
        width: 175px;
        white-space: normal;
    }
}

/* Número y fechas quedan en línea en mobile; el buscador de proveedor se apila como el resto de los input-group del sistema */
@media (max-width: 767px) {

    .proveedorFacturaCabecera .proveedorFacturaNumero,
    .proveedorFacturaFechas .input-group {
        display: flex !important;
    }

    .proveedorFacturaCabecera .proveedorFacturaNumero input,
    .proveedorFacturaFechas .input-group input {
        margin-bottom: 0;
        width: auto !important;
    }
}

.facturaProveedorProductos {
    padding: 14px;
    margin-bottom: 0;
}

.facturaProveedorProductosHeader {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.facturaProveedorProductos .notaProductos {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.facturaProveedorProductos .table-responsive {
    border: 1px solid #e4e9ef;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.tablaFacturaProveedor {
    margin-bottom: 0;
    min-width: 720px;
}

.tablaFacturaProveedor.conImputacion {
    min-width: 860px;
}

.tablaFacturaProveedor thead th,
.tablaFacturaProveedor tbody td,
.tablaFacturaProveedor tfoot td {
    vertical-align: middle;
    padding: 8px;
}

.tablaFacturaProveedor thead th {
    white-space: nowrap;
    font-size: 12px;
}

/* Anchos solo en el th: en mobile las celdas pasan a ancho completo */
.tablaFacturaProveedor th.colDescripcion {
    min-width: 150px;
}

.tablaFacturaProveedor th.colImputacion {
    width: 18%;
    min-width: 150px;
}

.tablaFacturaProveedor th.colCantidad {
    width: 80px;
    min-width: 80px;
}

.tablaFacturaProveedor th.colPrecio {
    width: 115px;
    min-width: 115px;
}

.tablaFacturaProveedor th.colIva {
    width: 105px;
    min-width: 105px;
}

.tablaFacturaProveedor th.colSubtotal {
    width: 125px;
    min-width: 125px;
}

.tablaFacturaProveedor th.colAcciones {
    width: 40px;
    min-width: 40px;
}

.tablaFacturaProveedor .colDescripcion {
    white-space: normal;
    word-break: break-word;
}

.tablaFacturaProveedor .colSubtotal {
    text-align: right !important;
    white-space: nowrap;
}

.tablaFacturaProveedor .colAcciones {
    text-align: center;
}

.tablaFacturaProveedor .form-control {
    width: 100%;
    min-width: 0;
}

.tablaFacturaProveedor select.form-control {
    padding-right: 2rem !important;
    text-overflow: ellipsis;
}

.tablaFacturaProveedor input[name="prod_nombre[]"] {
    padding-right: 2rem !important;
    text-overflow: ellipsis;
}

.tablaFacturaProveedor .subtotalArsString {
    font-size: 13px;
    font-weight: 700;
    color: #C1236F;
}

.tablaFacturaProveedor .iconDeleteProducto {
    margin: 0;
    cursor: pointer;
}

.tablaFacturaProveedor .rowNoElements td {
    text-align: center;
    color: #8a94a6;
}

/* Con el sidebar abierto la tabla no entra sin scroll debajo de 1366px: cada producto pasa a ser una tarjeta con sus rótulos */
@media (max-width: 1365.98px) {
    .facturaProveedorProductos .table-responsive {
        border: 0;
    }

    .tablaFacturaProveedor,
    .tablaFacturaProveedor.conImputacion {
        display: block;
        min-width: 0;
    }

    .tablaFacturaProveedor thead {
        display: none;
    }

    .tablaFacturaProveedor tbody,
    .tablaFacturaProveedor tbody tr,
    .tablaFacturaProveedor tfoot,
    .tablaFacturaProveedor tfoot tr,
    .tablaFacturaProveedor tfoot td {
        display: block;
        width: 100%;
    }

    .tablaFacturaProveedor tbody {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 10px;
    }

    .tablaFacturaProveedor tbody tr {
        position: relative;
        border: 1px solid #e4e9ef;
        border-radius: 8px;
        padding: 8px 10px;
    }

    .tablaFacturaProveedor tbody td {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        min-width: 0;
        border: 0;
        padding: 4px 0;
        text-align: left !important;
    }

    .tablaFacturaProveedor tbody td[data-label]::before {
        content: attr(data-label);
        flex: 0 0 105px;
        font-size: 12px;
        font-weight: 600;
        color: #5c6b82;
    }

    .tablaFacturaProveedor tbody td>.form-control,
    .tablaFacturaProveedor tbody td>div {
        flex: 1 1 auto;
    }

    .facturaProveedorProductos {
        padding: 10px;
    }

    /* Descripción con el label arriba y el input a todo el ancho; el padding deja lugar al tachito */
    .tablaFacturaProveedor tbody td.colDescripcion {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding-right: 28px;
    }

    .tablaFacturaProveedor tbody td.colDescripcion::before {
        flex-basis: auto;
    }

    .tablaFacturaProveedor tbody td.colAcciones {
        position: absolute;
        top: 12px;
        right: 8px;
        width: auto;
        padding: 0;
    }

    /* "td.listActions .fa { font-size: 6vw !important }" agranda el ícono en mobile */
    .tablaFacturaProveedor tbody td.colAcciones .iconDeleteProducto {
        display: inline-block;
        font-size: 18px !important;
        padding: 0;
    }
}

.facturaProveedorTotales .bloqueTotales {
    height: 100%;
    border: 1px solid #e4e9ef;
    border-radius: 8px;
    padding: 4px 14px;
}

.filaTotalFactura {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid #eef1f4;
    font-size: 13px;
}

.filaTotalFactura:last-child {
    border-bottom: 0;
}

.filaTotalFactura label {
    flex: 0 0 auto;
    font-weight: 600;
}

.filaTotalFactura .form-control {
    flex: 0 1 200px;
    min-width: 0;
    text-align: right;
}

.filaTotalFactura .valorTotal {
    color: #9e2222;
    font-weight: 700;
    white-space: nowrap;
}

.filaTotalFactura.totalFinal {
    font-size: 16px;
    font-weight: 700;
}

body.dark-only .facturaProveedorProductos .table-responsive,
body.dark-only .facturaProveedorTotales .bloqueTotales,
body.dark-only .tablaFacturaProveedor tbody tr {
    border-color: rgba(255, 255, 255, 0.14);
}

body.dark-only .filaTotalFactura {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark-only input.form-control.ui-autocomplete-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ffffff' viewBox='0 0 16 16'%3e%3cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3e%3c/svg%3e");
}

/* Reporte de diferencia de I.V.A.: banners de totales */
.resumenIvaDiferencia {
    margin-top: 10px;
}

.resumenIvaDiferencia .resumenIvaDiferenciaCard {
    margin-bottom: 15px;
    border-left: 4px solid var(--theme-default);
}

.resumenIvaDiferencia .resumenIvaDiferenciaCard .card-body {
    padding: 15px 20px;
}

.resumenIvaDiferencia .resumenIvaDiferenciaCard.resumenIvaDiferenciaTotal {
    border-left-color: var(--theme-secondary);
}

.resumenIvaDiferenciaTitulo {
    display: block;
    font-size: 15px;
    font-weight: 600;
}

.resumenIvaDiferenciaDetalle {
    display: block;
    font-size: 12px;
    opacity: 0.75;
}

.resumenIvaDiferenciaMonto {
    margin-top: 6px;
    font-size: 22px;
    font-weight: 700;
    white-space: nowrap;
}

body.dark-only .resumenIvaDiferencia .resumenIvaDiferenciaCard.resumenIvaDiferenciaTotal {
    border-left-color: rgba(255, 255, 255, 0.6);
}

.table-reporte-stock tfoot .reporteStockTotal td {
    font-weight: bold;
}

.table-reporte-stock tfoot .reporteStockTotalMonto {
    font-size: 16px;
}

.formCajaGrid .medio_item {
    height: 100%;
    padding: 15px 15px 0;
    border: 1px solid #598084;
    border-radius: 8px;
}

.formCajaGrid .medio_item_titulo {
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.75rem;
}

.dashConfigBar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

/* tarjetas del escritorio: mismo encabezado (título a la izquierda, controles a la derecha), scroll y mensajes de vacío */
.dashCard>.card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* alto de línea = alto de un control sm, para que el encabezado mida lo mismo con o sin controles */
.dashCard .dashCardTitulo {
    line-height: 31px;
}

.dashCard .dashCardAcciones {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.dashCard .dashCardAcciones select {
    width: auto;
}

.dashCard .calendarioMensualSelector {
    margin-left: 0;
}

.dashCard .dashCardScroll {
    overflow: auto;
    max-height: 320px;
}

.dashCard .dashCardScroll thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

.dashCard .dashCardVacio {
    padding: 12px 0;
    text-align: center;
    color: var(--dust-text-muted, #5a6b7d);
}

/* tarjetas de la misma fila con el mismo alto */
.dashSeccion>[class*="col-"] {
    display: flex;
    flex-direction: column;
}

.dashSeccion>[class*="col-"]>.dashCard {
    flex: 1 1 auto;
}

.dashChequesTotal {
    margin-top: 8px;
    text-align: right;
}

#modalDashConfig .dashConfigCards .form-switch {
    align-items: center;
}

.rowDanger>td {
    background-color: #fdecec;
}

body.dark-only .rowDanger>td {
    background-color: rgba(220, 53, 69, 0.16);
    color: #f5c2c7;
}

body.dark-only .rowDanger>td .txt-danger {
    color: #ff8a95 !important;
}

.cc-estado {
    font-weight: bold;
}

.cc-estado.cc-estado--sinPagar {
    color: #8f2f2f;
}

.cc-estado.cc-estado--parcial {
    color: #2f6a8f;
}

.cc-estado.cc-estado--pagado {
    color: #2f8f2f;
}

.cc-estado.cc-estado--anulado {
    color: #d00000;
}

body.dark-only .cc-estado--sinPagar {
    color: #f28b8b;
}

body.dark-only .cc-estado--parcial {
    color: #7cc4f0;
}

body.dark-only .cc-estado--pagado {
    color: #6fd38a;
}

body.dark-only .cc-estado--anulado {
    color: #ff6b6b;
}

.cc-thead-detalle>tr>th {
    background-color: #83827b;
    color: #fff;
}

body.dark-only .cc-thead-detalle>tr>th {
    background-color: #2f3542;
    color: #e2e8f0;
}

body.dark-only #clienteCcWrapper .text-muted {
    color: #94a3b8 !important;
}

/* La regla global .control-label usa nowrap: en los modales los labels largos se tapaban con el campo */
#clienteCcWrapper .modal .control-label,
#modalNuevaOrdenServicio .control-label {
    white-space: normal;
    padding-top: calc(0.375rem + 1px);
    margin-bottom: 0;
}

@media (max-width: 575.98px) {

    #clienteCcWrapper .modal .control-label,
    #modalNuevaOrdenServicio .control-label {
        text-align: left;
        padding-top: 0;
        margin-bottom: 4px;
    }
}

.cc-pago-destino,
.cc-pago-resumen {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
}

.cc-pago-resumen {
    margin-top: 1rem;
}

body.dark-only .cc-pago-destino,
body.dark-only .cc-pago-resumen {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: #2b668a;
    color: #e2e8f0;
}

body.dark-only .cc-pago-resumen .text-success {
    color: #6fd38a !important;
}

body.dark-only .cc-pago-resumen .text-danger {
    color: #ff8a95 !important;
}

.cc-pago-cols {
    font-size: 12px;
    color: #64748b;
}

body.dark-only .cc-pago-cols {
    color: #94a3b8;
}

#clienteCcWrapper .modal .border-top {
    border-top-color: #e2e8f0 !important;
}

body.dark-only #clienteCcWrapper .modal .border-top {
    border-top-color: #2b668a !important;
}

.cc-total-verde {
    color: #087d30;
    font-weight: bold;
}

body.dark-only .cc-total-verde {
    color: #6fd38a;
}

.filaInsumosServicio>.insumosServicioCelda {
    padding: 0 8px 10px 30px;
}

.insumosServicioTitulo {
    font-size: 12px;
    margin-bottom: 5px;
}

.tableInsumosServicio {
    margin-bottom: 0;
}

.tableInsumosServicio .insumosServicioColCantidad {
    width: 30%;
}

#ordenServicioDetalle_content>tr:not(.filaInsumosServicio):not(:first-child)>td {
    border-top: 2px solid #adb5bd;
}

#ordenServicioDetalle_content>tr:not(.filaInsumosServicio)>td {
    border-bottom: none;
}

#ordenServicioDetalle_content>tr.filaInsumosServicio>td {
    background-color: #f6f8fa;
    border-top: none;
    border-bottom: none;
}

#ordenServicioDetalle_content>tr.filaInsumosServicio .tableInsumosServicio> :not(caption)>*>* {
    background-color: transparent;
}

body.dark-only #ordenServicioDetalle_content>tr:not(.filaInsumosServicio):not(:first-child)>td {
    border-top-color: #4b5563;
}

body.dark-only #ordenServicioDetalle_content>tr.filaInsumosServicio>td {
    background-color: rgba(255, 255, 255, 0.04);
}

.insumosEgresoCard {
    margin-top: 35px;
}

.insumosEgresoCard h3 {
    margin-bottom: 10px;
}

.table-insumosEgreso .insumosEgresoColCodigo {
    width: 12%;
}

.table-insumosEgreso .insumosEgresoColDisponible {
    width: 18%;
}

.table-insumosEgreso .insumosEgresoColRetirada {
    width: 22%;
}

.table-insumosEgreso .insumoEgresoStock {
    font-size: 11px;
    color: #777;
}

.egresoContratacionDatos {
    margin-bottom: 1.5em;
}

.egresoContratacionDatos > span {
    display: inline-block;
    margin: 0.5em 1em;
}

.egresoContratacionObservacion {
    padding: 0.5em 1em;
    border-top: 1px solid #eee;
}

.tableInsumosServicio .insumoCantidadRetirada {
    font-size: 11px;
    color: #777;
    margin-top: 2px;
}

.periodoContratacion {
    border: 1px solid var(--dust-border);
    border-left: 4px solid var(--theme-default);
    background: var(--dust-background-soft);
    border-radius: 6px;
    padding: 10px 10px 0;
    margin-bottom: 1rem;
}

.periodoContratacion .periodoContratacionTitulo {
    color: var(--dust-text);
    font-weight: bold;
    margin-bottom: 10px;
}

#formOrdenServicio .control-label {
    white-space: normal;
}

.dashConfigDragHandle {
    color: #6699cc;
    cursor: move;
}

.dashSeccion {
    display: contents;
}

/* dash responsive: con cualquier orden de secciones, encabezados y barra del calendario se acomodan en pantallas chicas */
@media (max-width: 767.98px) {

    .dashCard>.card-header {
        flex-direction: column;
        align-items: stretch;
    }

    .dashCard .dashCardAcciones {
        margin-left: 0;
    }

    .dashCard .dashCardAcciones select,
    .dashCard .dashCardAcciones .btn {
        flex: 1 1 0;
    }

    .cardCalendarioMensual .calendarioMensualSelector {
        margin-left: 0;
        width: 100%;
    }

    .cardCalendarioMensual .calendarioMensualSelector select.form-control {
        flex: 1 1 0;
    }

    .calendarioMensual .fc-header-toolbar {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .calendarioMensual .fc-toolbar-chunk {
        flex-wrap: wrap;
        justify-content: center;
    }
}
